cp-namespace.c (cp_lookup_symbol_via_imports): New arg "search_scope_first".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-22 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
4 "search_scope_first". All callers updated.
5
6 2014-12-22 Doug Evans <xdje42@gmail.com>
7
8 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
9 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
10 arg "search". All callers updated.
11 (cp_lookup_bare_symbol): New function.
12 (cp_search_static_and_baseclasses): New function.
13 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
14 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
15 (cp_lookup_nested_symbol): Ditto.
16
17 2014-12-22 Doug Evans <xdje42@gmail.com>
18
19 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
20
21 2014-12-22 Doug Evans <xdje42@gmail.com>
22
23 * cp-namespace.c: Whitespace cleanup.
24
25 2014-12-20 Keith Seitz <keiths@redhat.com>
26 Mihail-Marian Nistor <mihail.nistor@freescale.com>
27
28 PR gdb/17394
29 * linespec.c (struct collect_minsyms): Add new member `symtab'.
30 (add_minsym): Handle cases where info.symtab is non-NULL.
31 (search_minsyms_for_name): Add new parameter `symtab'.
32 Handle limiting searches to a specific symtab.
33 (add_matching_symtabs_to_info): Search through minimal symbols
34 for language_asm files for which no new symbols are found.
35
36 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
37 Nigel Stephens <nigel@mips.com>
38 Chris Dearman <chris@mips.com>
39 Luis Machado <lgustavo@codesourcery.com>
40
41 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
42 (ALLDEPFILES): Add mips-sde-tdep.c.
43 * mips-sde-tdep.c: New file containg SDE specific code.
44 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
45 gdb_target_obs.
46 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
47 * osabi.c (gdb_osabi_names): Add SDE.
48 * NEWS: Mention the change.
49
50 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
51
52 * elfread.c (elf_symfile_init): Remove stale comment.
53 (elf_symfile_read): Same.
54 * symfile.h (struct sym_fns): Same.
55
56 2014-12-18 Nigel Stephens <nigel@mips.com>
57 Maciej W. Rozycki <macro@codesourcery.com>
58
59 * mips-tdep.c (print_fpu_flags): New function.
60 (mips_print_float_info): Likewise.
61 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
62 print_float_info routine.
63
64 2014-12-18 Yao Qi <yao@codesourcery.com>
65
66 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
67 * gdbarch.c: Re-generated.
68 * gdbarch.h: Likewise.
69 * infcmd.c (default_print_float_info): New function.
70 (print_float_info): Removed. Move code to
71 default_print_float_info.
72 (float_info): Adjust to call gdbarch_print_float_info.
73 * inferior.h (default_print_float_info): Declare it.
74
75 2014-12-18 Yao Qi <yao@codesourcery.com>
76
77 * h8300-tdep.c (h8300_print_float_info): Remove.
78 (h8300_gdbarch_init): Remove the call to
79 set_gdbarch_print_float_info.
80
81 2014-12-18 Doug Evans <xdje42@gmail.com>
82
83 * infcmd.c (jump_command): Minor simplification.
84
85 2014-12-18 Doug Evans <xdje42@gmail.com>
86
87 * language.c (language_lookup_primitive_type): Renamed from
88 language_lookup_primitive_type_by_name. All callers updated.
89
90 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
91
92 Fix MinGW compilation.
93 * compile/compile.c (get_compile_file_tempdir): Call error if
94 !HAVE_MKDTEMP.
95 * config.in: Regenerate.
96 * configure: Regenerate.
97 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
98
99 2014-12-17 Doug Evans <xdje42@gmail.com>
100
101 * valops.c (value_maybe_namespace_elt): Remove redundant call to
102 lookup_static_symbol.
103
104 2014-12-17 Doug Evans <xdje42@gmail.com>
105
106 New parameter "debug symbol-lookup".
107 * NEWS: Mention it.
108 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
109 output.
110 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
111 (cp_lookup_nested_symbol): Ditto.
112 * language.c (language_lookup_primitive_type_by_name): Add debug
113 output.
114 * minsyms.c (lookup_minimal_symbol): Add debug output.
115 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
116 * symfile-debug.c (debug_objfile_name): ... from here. All callers
117 updated.
118 * objfiles.h (objfile_debug_name): Declare.
119 * symtab.h (symbol_lookup_debug): Declare.
120 * symtab.c (symbol_lookup_debug): New global.
121 (lookup_language_this): Add debug output.
122 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
123 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
124 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
125 (_initialize_symtab): Add new parameter "debug symbol-lookup".
126
127 2014-12-16 Doug Evans <xdje42@gmail.com>
128
129 * buildsym.c: Add comments describing how the buildsym machinery
130 is used by the various file formats.
131 (really_free_pendings): Enhance function comment.
132 See pending_macros to NULL. Simplify resetting pending_addrmap.
133 Call free_buildsym_compunit.
134 (free_buildsym_compunit): Set current_subfile to NULL.
135 (prepare_for_building): New function.
136 (start_symtab): Call it. Remove call to set_last_source_file.
137 (restart_symtab): New arg "cust". All callers updated.
138 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
139 (reset_symtab_globals): Enhance function comment.
140 Set local_symbols, file_symbols, global_symbols to NULL.
141 Set pending_macros to NULL. Simplify resetting pending_addrmap.
142 Call free_buildysym_compunit.
143 (end_symtab_without_blockvector): Delete. All callers updated.
144 (end_symtab_with_blockvector): Remove redundant call to
145 free_buildsym_compunit.
146 (augment_type_symtab): Remove arg "cust". All callers updated.
147 (buildsym_init): Remove resetting of free_pendings, file_symbols,
148 global_symbols, pending_blocks, pending_macros. Instead make
149 handling consistent with pending_addrmap: Assert value was reset
150 at end of previous symtab building. Initialize context_stack here.
151
152 2014-12-16 Doug Evans <xdje42@gmail.com>
153
154 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
155 cp_lookup_symbol_imports. All callers updated.
156
157 2014-12-16 Doug Evans <xdje42@gmail.com>
158
159 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
160 find_type_baseclass_by_name. All callers updated.
161
162 2014-12-16 Doug Evans <xdje42@gmail.com>
163
164 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
165 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
166 (print_symbol_info): Delete arg symtab. All callers updated.
167 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
168
169 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
170
171 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
172 "Name" columns. Assure that the output is always indented.
173
174 2014-12-16 Joel Brobecker <brobecker@adacore.com>
175
176 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
177 already defined.
178 (linux_enable_event_reporting): Add parameter "attached".
179 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
180 declaration. New function.
181 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
182 (linux_enable_event_reporting): Add new parameter "attached".
183 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
184 nonzero.
185 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
186 Use it. Update function description.
187 (linux_child_post_attach, linux_child_post_startup_inferior):
188 Update call to linux_enable_event_reporting.
189
190 2014-12-16 Yao Qi <yao@codesourcery.com>
191
192 * NEWS: Move some entries to "Changes since GDB 7.8" section.
193
194 2014-12-16 Yao Qi <yao@codesourcery.com>
195
196 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
197 ARG_LAST.
198
199 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
200
201 * inferior.c (find_inferior_ptid): New function.
202 * inferior.h (find_inferior_ptid): New declaration.
203 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
204 * corelow.c (core_pid_to_str): Same.
205 * darwin-nat.c (darwin_resume): Same.
206 * infrun.c (fetch_inferior_event): Same.
207 (get_inferior_stop_soon): Same.
208 (handle_inferior_event): Same.
209 (handle_signal_stop): Same.
210 * linux-nat.c (resume_lwp): Same.
211 (stop_wait_callback): Same.
212 * mi/mi-interp.c (mi_new_thread): Same.
213 (mi_thread_exit): Same.
214 * proc-service.c (ps_pglobal_lookup): Same.
215 * record-btrace.c (record_btrace_step_thread): Same.
216 * remote-sim.c (gdbsim_close_inferior): Same.
217 (gdbsim_resume): Same.
218 (gdbsim_stop): Same.
219 * sol2-tdep.c (sol2_core_pid_to_str): Same.
220 * target.c (memory_xfer_partial_1): Same.
221 (default_thread_address_space): Same.
222 * thread.c (thread_change_ptid): Same.
223 (switch_to_thread): Same.
224 (do_restore_current_thread_cleanup): Same.
225
226 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
227
228 * defs.h (gdb_readline): Constify argument.
229 (gdb_readline_wrapper): Same.
230 (command_line_input): Same.
231 (deprecated_readline_hook): Same.
232 * top.c (deprecated_readline_hook): Same.
233 (gdb_readline): Same.
234 (gdb_readline_wrapper): Same.
235 (command_line_input): Constify argument. Pass prompt_arg to called
236 functions instead of local_prompt, overwriting prompt_arg if necessary.
237 * event-top.h (display_gdb_prompt): Constify argument.
238 * event-top.c (display_gdb_prompt): Same.
239 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
240 if building with Python 3.4 and up.
241
242 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
243
244 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
245 os.getcwdu().
246
247 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
248
249 PR gdb/15684
250 * memattr.c (mem_info_command): Remove "unsigned long" casts.
251
252 2014-12-13 Doug Evans <xdje42@gmail.com>
253
254 * utils.c (make_hex_string): Fix off-by-one error.
255
256 2014-12-13 Joel Brobecker <brobecker@adacore.com>
257
258 * ada-lang.h (ada_ensure_varsize_limit): Declare.
259 * ada-lang.c (check_size): Remove advance declaration.
260 (ada_ensure_varsize_limit): Renames check_size.
261 Replace calls to check_size by calls to ada_ensure_varsize_limit
262 throughout.
263 * ada-valprint.c (ada_val_print_ref): Add call to
264 ada_ensure_varsize_limit. Add comment explaining why.
265
266 2014-12-13 Joel Brobecker <brobecker@adacore.com>
267
268 * utils.c (make_hex_string): Replace use of sprintf by use of
269 xsnprintf.
270
271 2014-12-13 Joel Brobecker <brobecker@adacore.com>
272
273 * compile/compile-object-load.c (link_callbacks_multiple_definition)
274 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
275 newline at end of warning message.
276
277 2014-12-13 Joel Brobecker <brobecker@adacore.com>
278
279 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
280 new "EXTRA-ARGS" parameter.
281 * configure.ac: If large-file support is disabled in GDB,
282 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
283 * configure: Regenerate.
284
285 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 PR symtab/17642
288 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
289 TYPE if not TYPE_CODE_TYPEDEF.
290
291 2014-12-13 Joel Brobecker <brobecker@adacore.com>
292
293 PR backtrace/16215:
294 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
295 the frame unwinder must either be the dwarf2_frame_unwind
296 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
297 stack_addr is valid before calling get_frame_base. Throw
298 an error if not valid.
299
300 2014-12-12 Doug Evans <xdje42@gmail.com>
301
302 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
303 result != NULL.
304
305 2014-12-12 Doug Evans <xdje42@gmail.com>
306
307 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
308 All callers updated. Rename arg "namespace" to "symbol_name".
309
310 2014-12-12 Doug Evans <xdje42@gmail.com>
311
312 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
313 partial_map_symtabs_matching_filename. All uses updated.
314 (psym_find_pc_sect_compunit_symtab): Renamed from
315 find_pc_sect_compunit_symtab_from_partial. All uses updated.
316 Add function comment.
317 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
318 All uses updated. Add function comment.
319 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
320 Add function comment.
321 (psym_find_last_source_symtab): Renamed from
322 find_last_source_symtab_from_partial. All uses updated.
323 Add function comment.
324 (psym_forget_cached_source_info): Renamed from
325 forget_cached_source_info_partial. All uses updated.
326 Add function comment.
327 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
328 All uses updated. Add function comment.
329 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
330 updated. Add function comment.
331 (psym_expand_symtabs_for_function): Renamed from
332 read_symtabs_for_function. All uses updated. Update function comment.
333 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
334 All uses updated. Add function comment.
335 (psym_expand_symtabs_with_fullname): Renamed from
336 read_psymtabs_with_fullname. All uses updated. Add function comment.
337 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
338 All uses updated. Add function comment.
339 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
340 All uses updated.
341 (psym_expand_symtabs_matching): Renamed from
342 expand_symtabs_matching_via_partial. All uses updated.
343 Add function comment.
344 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
345 Add function comment.
346
347 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
348 Jan Kratochvil <jan.kratochvil@redhat.com>
349 Tom Tromey <tromey@redhat.com>
350
351 * NEWS: Update.
352 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
353 field.
354 * p-lang.c (pascal_language_defn): Update.
355 * opencl-lang.c (opencl_language_defn): Update.
356 * objc-lang.c (objc_language_defn): Update.
357 * m2-lang.c (m2_language_defn): Update.
358 * language.h (struct language_defn) <la_get_compile_instance,
359 la_compute_program>: New fields.
360 * language.c (unknown_language_defn, auto_language_defn)
361 (local_language_defn): Update.
362 * jv-lang.c (java_language_defn): Update.
363 * go-lang.c (go_language_defn): Update.
364 * f-lang.c (f_language_defn): Update.
365 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
366 * dwarf2loc.c (dwarf2_compile_property_to_c)
367 (locexpr_generate_c_location, loclist_generate_c_location): New
368 functions.
369 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
370 * defs.h (enum compile_i_scope_types): New.
371 (enum command_control_type) <compile_control>: New constant.
372 (struct command_line) <control_u>: New field.
373 * d-lang.c (d_language_defn): Update.
374 * compile/compile.c: New file.
375 * compile/compile-c-support.c: New file.
376 * compile/compile-c-symbols.c: New file.
377 * compile/compile-c-types.c: New file.
378 * compile/compile.h: New file.
379 * compile/compile-internal.h: New file.
380 * compile/compile-loc2c.c: New file.
381 * compile/compile-object-load.c: New file.
382 * compile/compile-object-load.h: New file.
383 * compile/compile-object-run.c: New file.
384 * compile/compile-object-run.h: New file.
385 * cli/cli-script.c (multi_line_command_p, print_command_lines)
386 (execute_control_command, process_next_line)
387 (recurse_read_control_structure): Handle compile_control.
388 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
389 * c-lang.c (c_language_defn, cplus_language_defn)
390 (asm_language_defn, minimal_language_defn): Update.
391 * ada-lang.c (ada_language_defn): Update.
392 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
393 New variables.
394 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
395 (HFILES_NO_SRCDIR): Add compile.h.
396 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
397 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
398 (compile.o, compile-c-types.o, compile-c-symbols.o)
399 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
400 (compile-c-support.o): New targets.
401
402 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * s390-linux-tdep.c (s390_gcc_target_options): New function.
405 (s390_gdbarch_init): Add it to gdbarch.
406
407 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
408
409 * linux-tdep.c: Include objfiles.h and infcall.h.
410 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
411 function.
412 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
413
414 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
415
416 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
417 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
418 translate_register. Now public.
419 (dwarf2_compile_expr_to_ax): Update.
420
421 2014-12-12 Tom Tromey <tromey@redhat.com>
422 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
425 (dwarf_expr_frame_base): Update caller.
426 (dwarf_expr_frame_base_1): Rename to ...
427 (func_get_frame_base_dwarf_block): ... this and make it public.
428 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
429 callers.
430 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
431
432 2014-12-12 Tom Tromey <tromey@redhat.com>
433
434 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
435 Update.
436 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
437 dwarf2_compile_cfa_to_ax.
438 (dwarf2_compile_cfa_to_ax): Remove.
439 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
440 (dwarf2_compile_cfa_to_ax): Remove.
441
442 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 * infcall.h (call_function_by_hand_dummy): Declare.
445 * infcall.c (call_function_by_hand): Use
446 call_function_by_hand_dummy.
447 (call_function_by_hand_dummy): Rename from call_function_by_hand.
448 Add arguments. Register a destructor.
449
450 2014-12-12 Tom Tromey <tromey@redhat.com>
451 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 * osabi.h (osabi_triplet_regexp): Declare.
454 * osabi.c (struct osabi_names): New.
455 (gdb_osabi_names): Change type to struct osabi_names. Update
456 values.
457 (gdbarch_osabi_name): Update.
458 (osabi_triplet_regexp): New function.
459 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
460 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
461 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
462 set_gdbarch_gnu_triplet_regexp.
463 * gdbarch.sh (gnu_triplet_regexp): New method.
464 * gdbarch.c, gdbarch.h: Rebuild.
465 * arch-utils.h (default_gnu_triplet_regexp): Declare.
466 * arch-utils.c (default_gnu_triplet_regexp): New function.
467
468 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 * arch-utils.c (default_infcall_mmap)
471 (default_gcc_target_options): New functions.
472 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
473 (GDB_MMAP_PROT_EXEC): Define.
474 (default_infcall_mmap, default_gcc_target_options): Declare.
475 * gdbarch.h: Rebuild.
476 * gdbarch.c: Rebuild.
477 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
478
479 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
480
481 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
482 fields.
483 (pop_dummy_frame): Call the destructor if it exists.
484 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
485 functions.
486 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
487 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
488
489 2014-12-12 Tom Tromey <tromey@redhat.com>
490
491 * gdbtypes.h (make_unqualified_type): Declare.
492 * gdbtypes.c (make_unqualified_type): New function.
493
494 2014-12-12 Tom Tromey <tromey@redhat.com>
495
496 * ui-file.h (ui_file_write_for_put): Declare.
497 * ui-file.c (ui_file_write_for_put): New function.
498 * mi/mi-out.c (do_write): Remove.
499 (mi_out_put): Use ui_file_write_for_put.
500
501 2014-12-12 Doug Evans <dje@google.com>
502
503 * NEWS: Mention gdb.lookup_objfile.
504 * python/python.c (GdbMethods): Add lookup_objfile.
505 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
506 * python/py-objfile.c: #include "symtab.h".
507 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
508 (objfpy_lookup_objfile_by_name): New function.
509 (objfpy_lookup_objfile_by_build_id): New function.
510 (gdbpy_lookup_objfile): New function.
511
512 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
513
514 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
515 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
516 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
517 macros.
518 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
519 Likewise.
520
521 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
522
523 * completer.c: Include "target.h", "reggroups.h", and
524 "user-regs.h".
525 (reg_or_group_completer): New.
526 * completer.h (reg_or_group_completer): Declare.
527 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
528 the "info registers" and "info all-registers" commands and the
529 dbx-mode "lr" command.
530
531 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
532
533 * user-regs.c: Include "arch-utils.h", "command.h", and
534 "cli/cli-cmds.h".
535 (maintenance_print_user_registers): New.
536 (_initialize_user_regs): Register new "maint print user-registers"
537 subcommand.
538 * NEWS: Mention new GDB command "maint print user-registers".
539
540 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
541 Maciej W. Rozycki <macro@mips.com>
542 Pedro Alves <pedro@codesourcery.com>
543
544 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
545 remove `predefault' and `invalid_p' initializers.
546 (make_symbol_special): New architecture method.
547 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
548 (objfile, symbol): New declarations.
549 * arch-utils.h (default_elf_make_msymbol_special): Remove
550 prototype.
551 (default_make_symbol_special): New prototype.
552 (default_adjust_dwarf2_addr): Likewise.
553 (default_adjust_dwarf2_line): Likewise.
554 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
555 * arch-utils.c (default_elf_make_msymbol_special): Remove
556 function.
557 (default_make_symbol_special): New function.
558 (default_adjust_dwarf2_addr): Likewise.
559 (default_adjust_dwarf2_line): Likewise.
560 * dwarf2-frame.c (decode_frame_entry_1): Call
561 `gdbarch_adjust_dwarf2_addr'.
562 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
563 * dwarf2read.c (create_addrmap_from_index): Likewise.
564 (process_psymtab_comp_unit_reader): Likewise.
565 (add_partial_symbol): Likewise.
566 (add_partial_subprogram): Likewise.
567 (process_full_comp_unit): Likewise.
568 (read_file_scope): Likewise.
569 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
570 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
571 (read_call_site_scope): Likewise.
572 (dwarf2_ranges_read): Likewise.
573 (dwarf2_record_block_ranges): Likewise.
574 (read_attribute_value): Likewise.
575 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
576 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
577 * elfread.c (elf_symtab_read): Don't call
578 `gdbarch_elf_make_msymbol_special' if unset.
579 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
580 the ISA bit from the PC.
581 * mips-tdep.c (mips_unmake_compact_addr): New function.
582 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
583 address appropriately.
584 (mips_make_symbol_special): New function.
585 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
586 (mips_pc_is_mips16): Likewise.
587 (mips_pc_is_micromips): Likewise.
588 (mips_pc_isa): Likewise.
589 (mips_adjust_dwarf2_addr): New function.
590 (mips_adjust_dwarf2_line): Likewise.
591 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
592 (mips_addr_bits_remove): Likewise.
593 (mips_skip_trampoline_code): Likewise.
594 (mips_write_pc): Don't set the ISA bit.
595 (mips_eabi_push_dummy_call): Likewise.
596 (mips_o64_push_dummy_call): Likewise.
597 (mips_gdbarch_init): Install `mips_make_symbol_special',
598 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
599 handlers.
600 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
601 target-specific symbol address adjustments.
602 * gdbarch.h: Regenerate.
603 * gdbarch.c: Regenerate.
604
605 2014-12-12 Yao Qi <yao@codesourcery.com>
606
607 PR tdep/14261
608 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
609 'skip_pc'. Remove code skipping prologue instructions, use
610 arm_analyze_prologue instead.
611 (arm_analyze_prologue): Stop the scanning for unrecognized
612 instruction when skipping prologue.
613
614 2014-12-12 Yao Qi <yao@codesourcery.com>
615
616 * arm-tdep.c (arm_instruction_restores_sp): New function.
617 (arm_analyze_prologue): Call arm_instruction_restores_sp.
618 (arm_in_function_epilogue_p): Move code to
619 arm_instruction_restores_sp.
620
621 2014-12-11 Doug Evans <xdje42@gmail.com>
622
623 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
624
625 2014-12-11 Doug Evans <xdje42@gmail.com>
626
627 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
628 (symbol *lookup_symbol_via_quick_fns): Ditto.
629 (lookup_symbol_in_objfile): Add forward decl.
630 (lookup_global_symbol_from_objfile): Simplify, call
631 lookup_symbol_in_objfile.
632
633 2014-12-11 Doug Evans <xdje42@gmail.com>
634
635 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
636
637 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
638
639 PR breakpoints/17012
640 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
641 it is marked as persistent.
642
643 2014-12-10 Doug Evans <xdje42@gmail.com>
644
645 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
646 closer to its subroutines.
647
648 2014-12-10 Doug Evans <xdje42@gmail.com>
649
650 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
651
652 2014-12-10 Doug Evans <xdje42@gmail.com>
653
654 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
655 * cp-support.h (cp_lookup_symbol_imports): Delete.
656
657 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
658
659 PR gdb/17627
660 * target.c (cleanup_restore_target_terminal): New function.
661 (make_cleanup_restore_target_terminal): New function.
662 * target.h (make_cleanup_restore_target_terminal): New declaration.
663 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
664
665 2014-12-08 Doug Evans <dje@google.com>
666
667 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
668
669 2014-12-08 Doug Evans <dje@google.com>
670
671 * NEWS: Mention gdb.Objfile.owner.
672 * python/py-objfile.c (objfpy_get_owner): New function.
673 (objfile_getset): Add "owner".
674
675 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
678 (lookup_global_symbol_from_objfile): Call it.
679
680 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 Remove const from struct objfile *.
683 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
684 symtab.c, symtab.h: In these files.
685
686 2014-12-05 Andreas From <andreas.from@ericsson.com>
687
688 * MAINTAINERS (Write After Approval): Add "Andreas From"
689
690 2014-12-05 Doug Evans <xdje42@gmail.com>
691
692 Revert:
693 PR symtab/17602
694 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
695
696 2014-12-04 Doug Evans <dje@google.com>
697
698 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
699 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
700 (objfile_getset): Add "add_separate_debug_file".
701
702 2014-12-04 Doug Evans <dje@google.com>
703
704 * NEWS: Mention gdb.Objfile.build_id.
705 * build-id.c (build_id_bfd_get): Make non-static.
706 * build-id.h (build_id_bfd_get): Add declaration.
707 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
708 (OBJFPY_REQUIRE_VALID): New macro.
709 (objfpy_get_build_id): New function.
710 (objfile_getset): Add "build_id".
711 * utils.c (make_hex_string): New function.
712 * utils.h (make_hex_string): Add declaration.
713
714 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
715
716 * block.c (block_lookup_symbol_primary): New function.
717 * block.h (block_lookup_symbol_primary): New declaration.
718 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
719 Call block_lookup_symbol_primary.
720
721 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
722
723 * tramp-frame.h (tramp_frame): Add `validate' member.
724 * tramp-frame.c (tramp_frame_start): Validate trampoline before
725 scanning.
726 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
727 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
728 (mips_linux_o32_sigframe): Initialize `validate' member.
729 (mips_linux_o32_rt_sigframe): Likewise.
730 (mips_linux_n32_rt_sigframe): Likewise.
731 (mips_linux_n64_rt_sigframe): Likewise.
732 (micromips_linux_o32_sigframe): New variable.
733 (micromips_linux_o32_rt_sigframe): Likewise.
734 (micromips_linux_n32_rt_sigframe): Likewise.
735 (micromips_linux_n64_rt_sigframe): Likewise.
736 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
737 (mips_linux_n32n64_sigframe_init): Likewise.
738 (mips_linux_sigframe_validate): New function.
739 (micromips_linux_sigframe_validate): Likewise.
740 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
741
742 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
743
744 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
745 * sparc-sol2-tdep.c: Include "regset.h".
746 (sparc32_sol2_supply_core_gregset): New function.
747 (sparc32_sol2_collect_core_gregset): Likewise.
748 (sparc32_sol2_supply_core_fpregset): Likewise.
749 (sparc32_sol2_collect_core_fpregset): Likewise.
750 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
751 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
752 tdep->fpregset/sizeof_fpregset.
753 * sparc64-sol2-tdep.c: Include "regset.h".
754 (sparc64_sol2_supply_core_gregset): New function.
755 (sparc64_sol2_collect_core_gregset): Likewise.
756 (sparc64_sol2_supply_core_fpregset): Likewise.
757 (sparc64_sol2_collect_core_fpregset): Likewise.
758 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
759 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
760 tdep->fpregset/sizeof_fpregset.
761
762 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
763
764 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
765 type.
766
767 2014-12-02 Doug Evans <dje@google.com>
768
769 * symtab.c (symbol_init_cplus_specific): Delete.
770 (symbol_set_demangled_name): Remove special c++ support.
771 (symbol_get_demangled_name, symbol_set_language): Ditto.
772 * symtab.h (struct cplus_specific): Delete.
773 (struct general_symbol_info) <language_specific>: Remove
774 cplus_specific.
775
776 2014-12-02 Doug Evans <dje@google.com>
777
778 PR symtab/17602
779 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
780
781 2014-12-02 Doug Evans <dje@google.com>
782
783 PR symtab/17591
784 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
785 to strip parameters.
786
787 2014-12-02 Doug Evans <dje@google.com>
788
789 * dwarf2read.c (peek_die_abbrev): Improve error message text.
790
791 2014-12-02 Doug Evans <dje@google.com>
792
793 * valops.c (do_search_struct_field): Remove remnant of Chill support.
794 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
795
796 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
797
798 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
799
800 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
801
802 * NEWS: Mention new Python events.
803 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
804 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
805 (py-infevents.o): New rule.
806 * doc/observer.texi (inferior_call_pre, inferior_call_post)
807 (memory_changed, register_changed): New observers.
808 * infcall.c (call_function_by_hand): Notify observer before and
809 after inferior call.
810 * python/py-event.h (inferior_call_kind): New enum.
811 (emit_inferior_call_event): New prototype.
812 (emit_register_changed_event): New prototype.
813 (emit_memory_changed_event): New prototype.
814 * python/py-events.h (events_object): New registries
815 inferior_call, memory_changed and register_changed.
816 * python/py-evts.c (gdbpy_initialize_py_events): Add the
817 inferior_call, memory_changed and register_changed registries.
818 * python/py-infevents.c: New.
819 * python/py-inferior.c (python_on_inferior_call_pre)
820 (python_on_inferior_call_post, python_on_register_change)
821 (python_on_memory_change): New functions.
822 (gdbpy_initialize_inferior): Attach python handler to new
823 observers.
824 * python/py-infthread.c(gdbpy_create_ptid_object): New.
825 (thpy_get_ptid) Use gdbpy_create_ptid_object.
826 * python/python-internal.h:
827 (gdbpy_create_ptid_object)
828 (gdbpy_initialize_inferior_call_pre_event)
829 (gdbpy_initialize_inferior_call_post_event)
830 (gdbpy_initialize_register_changed_event)
831 (gdbpy_initialize_memory_changed_event): New prototypes.
832 * python/python.c (_initialize_python): Initialize new events.
833 * valops.c (value_assign): Notify register_changed observer.
834
835 2014-12-02 Doug Evans <dje@google.com>
836
837 * python/py-infthread.c: Whitespace fixes.
838
839 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
840
841 * features/Makefile (s390-te-linux64-expedite): Replace
842 non-existant r14 and r15 by r14l and r15l, respectively.
843 * regformats/s390-te-linux64.dat: Regenerate.
844
845 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
846
847 * objfiles.c (allocate_objfile): Remove duplicate comment.
848
849 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
850
851 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
852 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
853 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
854 (supply_gregset, supply_fpregset): Remove.
855 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
856 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
857 and sizeof_gregset.
858
859 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
860
861 Add add-auto-load-scripts-directory.
862 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
863 * auto-load.c (add_auto_load_dir): New function.
864 (_initialize_auto_load): Install it.
865
866 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
867
868 Pushed by Joel Brobecker <brobecker@adacore.com>.
869 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
870
871 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
872
873 * eval.c (evaluate_subexp): Check that the thread stack temporaries
874 are not already enabled before enabling them.
875
876 2014-11-29 Yao Qi <yao@codesourcery.com>
877
878 * arm-tdep.c (arm_analyze_prologue): Move local variables
879 'framereg' and 'framesize' to inner block. Move code to
880 inner block too.
881
882 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
883
884 * eval.c: Include gdbthread.h.
885 (evaluate_subexp): Enable thread stack temporaries before
886 evaluating a complete expression and clean them up after the
887 evaluation is complete.
888 * gdbthread.h: Include common/vec.h.
889 (value_ptr): New typedef.
890 (VEC (value_ptr)): New vector type.
891 (value_vec): New typedef.
892 (struct thread_info): Add new fields stack_temporaries_enabled
893 and stack_temporaries.
894 (enable_thread_stack_temporaries)
895 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
896 (get_last_thread_stack_temporary)
897 (value_in_thread_stack_temporaries): Declare.
898 * gdbtypes.c (class_or_union_p): New function.
899 * gdbtypes.h (class_or_union_p): Declare.
900 * infcall.c (call_function_by_hand): Store return values of class
901 type as temporaries on stack.
902 * thread.c (enable_thread_stack_temporaries): New function.
903 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
904 (get_last_thread_stack_temporary): Likewise.
905 (value_in_thread_stack_temporaries): Likewise.
906 * value.c (value_force_lval): New function.
907 * value.h (value_force_lval): Declare.
908
909 2014-11-28 Pierre Muller <muller@sourceware.org>
910
911 Pushed by Joel Brobecker <brobecker@adacore.com>.
912 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
913 registers.
914
915 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
916
917 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
918 * config/sparc/linux.mh (NATDEPFILES): Likewise.
919 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
920 * m68klinux-nat.c (fetch_core_registers): Remove.
921 (linux_elf_core_fns): Remove.
922 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
923
924 2014-11-28 Joel Brobecker <brobecker@adacore.com>
925
926 * utils.c (gdb_realpath): Rework comment about handling on
927 Windows.
928
929 2014-11-28 Yao Qi <yao@codesourcery.com>
930
931 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
932 rename.
933 * gnulib/aclocal.m4: Re-generated.
934 * gnulib/config.in: Re-generated.
935 * gnulib/configure: Re-generated.
936 * gnulib/import/Makefile.am: Re-generated.
937 * gnulib/import/Makefile.in: Re-generated.
938 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
939 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
940 * import/basename-lgpl.c: New file.
941 * import/dirname-lgpl.c: New file.
942 * import/dirname.h: New file.
943 * import/m4/dirname.m4: New file.
944 * import/m4/malloc.m4: New file.
945 * import/m4/rename.m4: New file.
946 * import/m4/rmdir.m4: New file.
947 * import/m4/stdio_h.m4: New file.
948 * import/malloc.c: New file.
949 * import/rename.c: New file.
950 * import/rmdir.c: New file.
951 * import/same-inode.h: New file.
952 * import/stdio.c: New file.
953 * import/stdio.in.h: New file.
954 * import/stripslash.c: New file.
955
956 2014-11-28 Yao Qi <yao@codesourcery.com>
957
958 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
959 and realpath.
960 * config.in: Re-generated.
961 * configure: Re-generated.
962 * utils.c (gdb_realpath): Remove code calling realpath,
963 canonicalize_file_name and pathconf.
964 [!_WIN32]: Call canonicalize_file_name.
965
966 2014-11-28 Yao Qi <yao@codesourcery.com>
967
968 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
969 canonicalize-lgpl.
970 * aclocal.m4: Re-generated.
971 * config.in: Re-generated.
972 * configure: Re-generated.
973 * import/Makefile.am: Re-generated.
974 * import/Makefile.in: Re-generated.
975 * import/m4/gnulib-cache.m4: Re-generated.
976 * import/m4/gnulib-comp.m4: Re-generated.
977 * import/canonicalize-lgpl.c: New file.
978 * import/extra/snippet/_Noreturn.h: New file.
979 * import/m4/canonicalize.m4: New file.
980 * import/m4/double-slash-root.m4: New file.
981 * import/m4/eealloc.m4: New file.
982 * import/m4/malloca.m4: New file.
983 * import/m4/nocrash.m4: New file.
984 * import/m4/stdlib_h.m4: New file.
985 * import/malloca.c: New file.
986 * import/malloca.h: New file.
987 * import/malloca.valgrind: New file.
988
989 2014-11-28 Yao Qi <yao@codesourcery.com>
990
991 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
992 * config.in, configure: Regenerate.
993 * symfile.c (find_separate_debug_file_by_debuglink): Remove
994 code checking HAVE_LSTAT is defined.
995
996 2014-11-28 Yao Qi <yao@codesourcery.com>
997
998 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
999 lstat.
1000 * gnulib/aclocal.m4: Re-generated.
1001 * gnulib/config.in: Re-generated.
1002 * gnulib/configure: Re-generated.
1003 * gnulib/import/Makefile.am: Re-generated.
1004 * gnulib/import/Makefile.in: Re-generated.
1005 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1006 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1007 * gnulib/import/lstat.c: New file.
1008 * gnulib/import/m4/lstat.m4: New file.
1009
1010 2014-11-28 Yao Qi <yao@codesourcery.com>
1011
1012 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1013 * config.in, configure: Re-generate.
1014 * inf-child.c (inf_child_fileio_readlink): Don't check
1015 HAVE_READLINK is defined.
1016
1017 2014-11-28 Yao Qi <yao@codesourcery.com>
1018
1019 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1020 * gnulib/aclocal.m4: Re-generated.
1021 * gnulib/config.in: Likewise.
1022 * gnulib/configure: Likewise.
1023 * gnulib/import/Makefile.am: Likewise.
1024 * gnulib/import/Makefile.in: Likewise.
1025 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1026 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1027 * gnulib/import/dosname.h: New file
1028 * gnulib/import/m4/largefile.m4: New file.
1029 * gnulib/import/m4/readlink.m4: New file.
1030 * gnulib/import/m4/stat.m4: New file.
1031 * gnulib/import/readlink.c: New file.
1032 * gnulib/import/stat.c: New file.
1033
1034 2014-11-26 Mark Wielaard <mjw@redhat.com>
1035
1036 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1037 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1038
1039 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1040
1041 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1042 that there can be only one stack adjustment in the prologue
1043 with tests to detect specific disallowed stack adjustments.
1044
1045 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1046
1047 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1048 adjustments.
1049
1050 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1051
1052 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1053 the instruction as well as reading it from memory.
1054 (nios2_match_add): New.
1055 (nios2_match_sub): New.
1056 (nios2_match_addi): New.
1057 (nios2_match_orhi): New.
1058 (nios2_match_stw): New.
1059 (nios2_match_ldw): New.
1060 (nios2_match_rdctl): New.
1061 (enum branch_condition): New.
1062 (nios2_match_branch): New.
1063 (nios2_match_jmpi): New.
1064 (nios2_match_calli): New.
1065 (nios2_match_jmpr): New.
1066 (nios2_match_callr): New.
1067 (nios2_match_break): New.
1068 (nios2_match_trap): New.
1069 (nios2_in_epilogue_p): Rewrite to use new functions.
1070 (nios2_analyze_prologue): Likewise.
1071 (nios2_skip_prologue): Delete unused local limit_pc.
1072 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1073 (nios2_get_next_pc): Rewrite to use new functions.
1074
1075 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1076
1077 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1078
1079 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1080
1081 Pushed by Joel Brobecker <brobecker@adacore.com>
1082 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1083 elements pi_len by the size of the elements before calling
1084 vm_deallocate.
1085 (inf_validate_task_sc): Likewise, and properly deallocate the
1086 noise array.
1087
1088 2014-11-23 Doug Evans <xdje42@gmail.com>
1089
1090 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1091 number and name if present. All callers updated.
1092 (dump_fn_fieldlists): Fix indentation of args.
1093
1094 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1095
1096 * MAINTAINERS (Write After Approval): Add myself.
1097
1098 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1099
1100 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1101 to a bp_call_dummy breakpoint type.
1102
1103 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1104
1105 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1106 registering the signal handler.
1107
1108 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1109
1110 * event-top.h (call_stdin_event_handler_again_p): Declare.
1111 * event-top.c (call_stdin_event_handler_again_p): Define.
1112 (stdin_event_handler): Use it.
1113 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1114 handler again if there is pending input following a
1115 start sequence.
1116
1117 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1118
1119 Pushed by Joel Brobecker <brobecker@adacore.com>
1120 * linux-fork.c (checkpoint_command): Print index of new
1121 checkpoint in response message.
1122
1123 2014-11-23 Yao Qi <yao@codesourcery.com>
1124
1125 * valprint.c (read_string): Move local variables 'found_nul',
1126 'chunksize' and 'limit' to inner scope. Update comments.
1127
1128 2014-11-22 Doug Evans <xdje42@gmail.com>
1129
1130 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1131 function comment.
1132 (search_symbols): Fix comments and whitespace.
1133
1134 2014-11-22 Doug Evans <xdje42@gmail.com>
1135
1136 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1137
1138 2014-11-21 Doug Evans <dje@google.com>
1139
1140 * psymtab.c (psymtab_search_name): Fix whitespace.
1141
1142 2014-11-21 Yao Qi <yao@codesourcery.com>
1143
1144 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1145 errno.
1146 * gnulib/import/Makefile.am: Re-generated.
1147 * gnulib/import/Makefile.in: Likewise.
1148 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1149
1150 2014-11-21 Yao Qi <yao@codesourcery.com>
1151
1152 * gdb_wchar.h: Include wchar.h and wctype.h.
1153 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1154 include wchar.h and wctype.h.
1155 Don't check HAVE_WCHAR_H.
1156
1157 2014-11-21 Yao Qi <yao@codesourcery.com>
1158
1159 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1160 and wctype-h.
1161 * gnulib/import/Makefile.am: Re-generated.
1162 * gnulib/import/Makefile.in: Likewise.
1163 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1164
1165 2014-11-21 Yao Qi <yao@codesourcery.com>
1166
1167 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1168 memchr.
1169 * gnulib/import/Makefile.am: Re-generated.
1170 * gnulib/import/Makefile.in: Likewise.
1171 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1172
1173 2014-11-21 Yao Qi <yao@codesourcery.com>
1174
1175 * common/common-defs.h: Include alloca.h
1176 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1177 * configure: Re-generated.
1178 * defs.h: Remove code handling alloca.
1179 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1180 or not.
1181
1182 2014-11-21 Yao Qi <yao@codesourcery.com>
1183
1184 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1185 alloca.
1186 * gnulib/import/Makefile.am: Re-generated.
1187 * gnulib/import/Makefile.in: Likewise..
1188 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1189
1190 2014-11-21 Yao Qi <yao@codesourcery.com>
1191
1192 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1193 alphabetical order.
1194
1195 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1196
1197 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1198 flag_unsigned if HIGH_BOUND is constant and negative.
1199
1200 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1201
1202 PR breakpoints/10737
1203 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1204 modifier from "struct gdbarch" when compiling without Expat (XML)
1205 support.
1206 (get_syscall_by_number): Likewise.
1207 (get_syscall_by_name): Likewise.
1208 (get_syscall_names): Likewise.
1209
1210 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1211
1212 PR breakpoints/10737
1213 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1214 set_xml_syscall_file_name to provide gdbarch.
1215 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1216 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1217 * breakpoint.c (print_it_catch_syscall): Adjust call to
1218 get_syscall_by_number to provide gdbarch.
1219 (print_one_catch_syscall): Likewise.
1220 (print_mention_catch_syscall): Likewise.
1221 (print_recreate_catch_syscall): Likewise.
1222 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1223 and get_syscall_by_name to provide gdbarch.
1224 (catch_syscall_completer): Adjust call to get_syscall_names to
1225 provide gdbarch.
1226 * gdbarch.c: Regenerate.
1227 * gdbarch.h: Likewise.
1228 * gdbarch.sh: Forward declare "struct syscalls_info".
1229 (xml_syscall_file): New variable.
1230 (syscalls_info): Likewise.
1231 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1232 set_xml_syscall_file_name to provide gdbarch.
1233 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1234 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1235 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1236 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1237 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1238 * xml-syscall.c: Include gdbarch.h.
1239 (set_xml_syscall_file_name): Accept gdbarch parameter.
1240 (get_syscall_by_number): Likewise.
1241 (get_syscall_by_name): Likewise.
1242 (get_syscall_names): Likewise.
1243 (my_gdb_datadir): Delete global variable.
1244 (struct syscalls_info) <my_gdb_datadir>: New variable.
1245 (struct syscalls_info) <sysinfo>: Rename variable to
1246 "syscalls_info".
1247 (sysinfo): Delete global variable.
1248 (have_initialized_sysinfo): Likewise.
1249 (xml_syscall_file): Likewise.
1250 (sysinfo_free_syscalls_desc): Rename to...
1251 (syscalls_info_free_syscalls_desc): ... this.
1252 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1253 code to the new layout of "struct syscalls_info".
1254 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1255 "syscalls_info".
1256 (syscall_create_syscall_desc): Likewise.
1257 (syscall_start_syscall): Likewise.
1258 (syscall_parse_xml): Likewise.
1259 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1260 (init_sysinfo): Rename to...
1261 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1262 Adjust function to deal with gdbarch.
1263 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1264 gdbarch as a parameter. Adjust code.
1265 (xml_get_syscall_name): Likewise.
1266 (xml_list_of_syscalls): Likewise.
1267 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1268 (get_syscall_by_number): Likewise.
1269 (get_syscall_by_name): Likewise.
1270 (get_syscall_names): Likewise.
1271 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1272 (get_syscall_by_number): Likewise.
1273 (get_syscall_by_name): Likewise.
1274 (get_syscall_names): Likewise.
1275
1276 2014-11-20 Doug Evans <xdje42@gmail.com>
1277
1278 Split struct symtab into two: struct symtab and compunit_symtab.
1279 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1280 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1281 to "struct compunit_symtab *". All callers updated.
1282 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1283 "struct symtab *" argument to "struct compunit_symtab *".
1284 All callers updated.
1285 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1286 result to "struct compunit_symtab *". All callers updated.
1287 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1288 Change result to "struct compunit_symtab *". All callers updated.
1289 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1290 hange type to "struct compunit_symtab *". All uses updated.
1291 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1292 Change type to "struct compunit_symtab *". All uses updated.
1293 * buildsym.c (struct buildsym_compunit): New struct.
1294 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1295 (buildsym_compunit): New static global.
1296 (finish_block_internal): Update to fetch objfile from
1297 buildsym_compunit.
1298 (make_blockvector): Delete objfile argument.
1299 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1300 debugformat, producer.
1301 (start_buildsym_compunit): New function.
1302 (free_buildsym_compunit): Renamed from free_subfiles_list.
1303 All callers updated.
1304 (patch_subfile_names): Rewrite to use buildsym_compunit.
1305 (get_compunit_symtab): New function.
1306 (get_macro_table): Delete argument comp_dir. All callers updated.
1307 (start_symtab): Change result to "struct compunit_symtab *".
1308 All callers updated. Create the subfile of the main source file.
1309 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1310 (reset_symtab_globals): Update.
1311 (end_symtab_get_static_block): Update to use buildsym_compunit.
1312 (end_symtab_without_blockvector): Rewrite.
1313 (end_symtab_with_blockvector): Change result to
1314 "struct compunit_symtab *". All callers updated.
1315 Update to use buildsym_compunit. Don't set symtab->dirname,
1316 instead set it in the compunit.
1317 Explicitly make sure main symtab is first in its list.
1318 Set debugformat, producer, blockvector, block_line_section, and
1319 macrotable in the compunit.
1320 (end_symtab_from_static_block): Change result to
1321 "struct compunit_symtab *". All callers updated.
1322 (end_symtab, end_expandable_symtab): Ditto.
1323 (set_missing_symtab): Change symtab argument to
1324 "struct compunit_symtab *". All callers updated.
1325 (augment_type_symtab): Ditto.
1326 (record_debugformat): Update to use buildsym_compunit.
1327 (record_producer): Update to use buildsym_compunit.
1328 * buildsym.h (struct subfile) <dirname>: Delete.
1329 <producer, debugformat>: Delete.
1330 <buildsym_compunit>: New member.
1331 (get_compunit_symtab): Declare.
1332 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1333 from primary_symtab. Change type to "struct compunit_symtab *".
1334 All uses updated.
1335 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1336 All callers updated.
1337 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1338 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1339 symtab. Change type to "struct compunit_symtab *". All uses updated.
1340 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1341 All callers updated.
1342 (dw2_find_last_source_symtab): Ditto.
1343 (dw2_lookup_symbol): Ditto.
1344 (recursively_find_pc_sect_compunit_symtab): Renamed from
1345 recursively_find_pc_sect_symtab. Change result to
1346 "struct compunit_symtab *". All callers updated.
1347 (dw2_find_pc_sect_compunit_symtab): Renamed from
1348 dw2_find_pc_sect_symtab. Change result to
1349 "struct compunit_symtab *". All callers updated.
1350 (get_compunit_symtab): Renamed from get_symtab. Change result to
1351 "struct compunit_symtab *". All callers updated.
1352 (recursively_compute_inclusions): Change type of immediate_parent
1353 argument to "struct compunit_symtab *". All callers updated.
1354 (compute_compunit_symtab_includes): Renamed from
1355 compute_symtab_includes. All callers updated. Rewrite to compute
1356 includes of compunit_symtabs and not symtabs.
1357 (process_full_comp_unit): Update to work with struct compunit_symtab.
1358 (process_full_type_unit): Ditto.
1359 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1360 (dwarf_decode_lines): Remove special case handling of main subfile.
1361 (macro_start_file): Delete argument comp_dir. All callers updated.
1362 (dwarf_decode_macro_bytes): Ditto.
1363 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1364 use struct compunit_symtab.
1365 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1366 * jit.c (finalize_symtab): Build compunit_symtab.
1367 * jv-lang.c (get_java_class_symtab): Change result to
1368 "struct compunit_symtab *". All callers updated.
1369 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1370 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1371 comp_dir. Change type to "struct compunit_symtab *".
1372 All uses updated.
1373 (new_macro_table): Change comp_dir argument to cust,
1374 "struct compunit_symtab *". All callers updated.
1375 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1376 nr_primary_symtabs. All uses updated.
1377 (count_symtabs_and_blocks): Update to handle compunits.
1378 (report_command_stats): Update output, "primary symtabs" renamed to
1379 "compunits".
1380 * mdebugread.c (new_symtab): Change result to
1381 "struct compunit_symtab *". All callers updated.
1382 (parse_procedure): Change type of search_symtab argument to
1383 "struct compunit_symtab *". All callers updated.
1384 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1385 separate loop.
1386 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1387 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1388 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1389 All uses updated.
1390 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1391 All uses updated.
1392 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1393 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1394 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1395 symtab. Change type to "struct compunit_symtab *". All uses updated.
1396 * psymtab.c (psymtab_to_symtab): Change result type to
1397 "struct compunit_symtab *". All callers updated.
1398 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1399 find_pc_sect_symtab_from_partial. Change result type to
1400 "struct compunit_symtab *". All callers updated.
1401 (lookup_symbol_aux_psymtabs): Change result type to
1402 "struct compunit_symtab *". All callers updated.
1403 (find_last_source_symtab_from_partial): Ditto.
1404 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1405 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1406 and macro_table from compunit.
1407 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1408 type to "struct compunit_symtab *". All callers updated.
1409 (debug_qf_lookup_symbol): Ditto.
1410 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1411 debug_qf_find_pc_sect_symtab, change result type to
1412 "struct compunit_symtab *". All callers updated.
1413 * symfile.c (allocate_symtab): Delete objfile argument.
1414 New argument cust.
1415 (allocate_compunit_symtab): New function.
1416 (add_compunit_symtab_to_objfile): New function.
1417 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1418 Change result type to "struct compunit_symtab *". All uses updated.
1419 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1420 Change result type to "struct compunit_symtab *". All uses updated.
1421 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1422 separate loop.
1423 (dump_symtab_1): Update test for primary source symtab.
1424 (maintenance_info_symtabs): Update to handle compunit symtabs.
1425 (maintenance_check_symtabs): Ditto.
1426 * symtab.c (set_primary_symtab): Delete.
1427 (compunit_primary_filetab): New function.
1428 (compunit_language): New function.
1429 (iterate_over_some_symtabs): Change type of arguments "first",
1430 "after_last" to "struct compunit_symtab *". All callers updated.
1431 Update to loop over symtabs in each compunit.
1432 (error_in_psymtab_expansion): Rename symtab argument to cust,
1433 and change type to "struct compunit_symtab *". All callers updated.
1434 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1435 Change result type to "struct compunit_symtab *". All callers updated.
1436 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1437 Change result type to "struct compunit_symtab *". All callers updated.
1438 (find_pc_sect_line): Only loop over symtabs within selected compunit
1439 instead of all symtabs in the objfile.
1440 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1441 <compunit_symtab> New member.
1442 <block_line_section>: Moved to compunit_symtab.
1443 <locations_valid>: Ditto.
1444 <epilogue_unwind_valid>: Ditto.
1445 <macro_table>: Ditto.
1446 <dirname>: Ditto.
1447 <debugformat>: Ditto.
1448 <producer>: Ditto.
1449 <objfile>: Ditto.
1450 <call_site_htab>: Ditto.
1451 <includes>: Ditto.
1452 <user>: Ditto.
1453 <primary>: Delete
1454 (SYMTAB_COMPUNIT): New macro.
1455 (SYMTAB_BLOCKVECTOR): Update definition.
1456 (SYMTAB_OBJFILE): Update definition.
1457 (SYMTAB_DIRNAME): Update definition.
1458 (struct compunit_symtab): New type. Common members among all source
1459 symtabs within a compilation unit moved here. All uses updated.
1460 (COMPUNIT_OBJFILE): New macro.
1461 (COMPUNIT_FILETABS): New macro.
1462 (COMPUNIT_DEBUGFORMAT): New macro.
1463 (COMPUNIT_PRODUCER): New macro.
1464 (COMPUNIT_DIRNAME): New macro.
1465 (COMPUNIT_BLOCKVECTOR): New macro.
1466 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1467 (COMPUNIT_LOCATIONS_VALID): New macro.
1468 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1469 (COMPUNIT_CALL_SITE_HTAB): New macro.
1470 (COMPUNIT_MACRO_TABLE): New macro.
1471 (ALL_COMPUNIT_FILETABS): New macro.
1472 (compunit_symtab_ptr): New typedef.
1473 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1474
1475 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1476
1477 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1478 if the TYPE_CODE of range_type's base type does not match
1479 the TYPE_CODE of encoding_type's base type.
1480
1481 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1482
1483 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1484 it starts with '<'.
1485
1486 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1487
1488 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1489 (ada_is_redundant_index_type_desc): New function.
1490 (to_fixed_array_type): Ignore parallel XA type if redundant.
1491
1492 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1493
1494 * ada-lang.c (constrained_packed_array_type): Set the length
1495 of the return array as if both bounds where zero if that
1496 returned array's index type is dynamic.
1497
1498 2014-11-19 Yao Qi <yao@codesourcery.com>
1499
1500 * config/i386/go32.mh (CC): Remove.
1501
1502 2014-11-18 Doug Evans <xdje42@gmail.com>
1503
1504 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1505 updated.
1506
1507 2014-11-18 Doug Evans <xdje42@gmail.com>
1508
1509 * buildsym.c (buildsym_objfile): New static global.
1510 (buildsym_comp_dir): New static global.
1511 (finish_block_internal): Delete arg objfile. All callers updated.
1512 (finish_block): Delete arg objfile. All callers updated.
1513 (start_subfile): Delete arg dirname. All callers updated.
1514 (patch_subfile_names): Update buildsym_comp_dir.
1515 (get_macro_table): Delete arg objfile. All callers updated.
1516 (start_symtab): New arg objfile. All callers updated.
1517 Rename arg dirname to comp_dir.
1518 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1519 (end_symtab_get_static_block): Delete arg objfile. All callers
1520 updated.
1521 (end_symtab_without_blockvector): Ditto.
1522 (end_symtab_with_blockvector): Ditto.
1523 (end_symtab_from_static_block): Ditto.
1524 (end_symtab): Ditto.
1525 (end_expandable_symtab): Ditto.
1526 (augment_type_symtab): Ditto.
1527 * coffread.c (coff_start_symtab): New arg objfile. All callers
1528 updated.
1529
1530 2014-11-18 Doug Evans <xdje42@gmail.com>
1531
1532 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1533 updated.
1534
1535 2014-11-18 Doug Evans <xdje42@gmail.com>
1536
1537 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1538 symtab.dirname updated to use it.
1539
1540 2014-11-18 Doug Evans <xdje42@gmail.com>
1541
1542 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1543 symtab.objfile updated to use it.
1544
1545 2014-11-18 Doug Evans <xdje42@gmail.com>
1546
1547 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1548
1549 2014-11-18 Doug Evans <xdje42@gmail.com>
1550
1551 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1552 SYMBOL_OBJFILE.
1553 * findvar.c (default_read_var_value): Ditto.
1554 * jv-lang.c (add_class_symtab_symbol): Ditto.
1555 * parse.c (operator_check_standard): Ditto.
1556 * printcmd.c (address_info): Ditto.
1557 * symtab.c (fixup_symbol_section): Ditto.
1558 (skip_prologue_sal): Ditto.
1559 * tracepoint.c (scope_info): Ditto.
1560 * valops.c (find_function_in_inferior): Ditto.
1561 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1562 * python/py-symbol.c (set_symbol): Ditto.
1563
1564 2014-11-18 Doug Evans <xdje42@gmail.com>
1565
1566 * buildsym.c (main_subfile): New static global.
1567 (free_subfiles_list): New function.
1568 (start_symtab): Set main_subfile.
1569 (restart_symtab): Replace init of subfiles, current_subfile with
1570 call to free_subfiles_list.
1571 (watch_main_source_file_lossage): Use main_subfile.
1572 (reset_symtab_globals): Replace init of current_subfile with call
1573 to free_subfiles_list.
1574 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1575 functions, split out from ...
1576 (end_symtab_from_static_block): ... here. Rewrite to call them.
1577
1578 2014-11-18 Doug Evans <xdje42@gmail.com>
1579
1580 The result of symtab expansion is always a primary symtab.
1581 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1582 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1583 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1584 (psymtab_to_symtab): Add comment and assert.
1585 (map_matching_symbols_psymtab): Remove unnecessary test for
1586 non-primary symtab.
1587
1588 2014-11-15 Doug Evans <xdje42@gmail.com>
1589
1590 PR symtab/17559
1591 * symtab.c (find_pc_line_symtab): New function.
1592 * symtab.h (find_pc_line_symtab): Declare.
1593 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1594 find_pc_symtab.
1595 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1596 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1597 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1598 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1599 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1600 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1601
1602 2014-11-15 Doug Evans <xdje42@gmail.com>
1603
1604 * symtab.c (expand_symtab_containing_pc): Renamed from
1605 find_pc_sect_symtab_via_partial. All callers updated.
1606
1607 2014-11-15 Yao Qi <yao@codesourcery.com>
1608
1609 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1610
1611 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1612
1613 * common/common-defs.h: Move <stdarg.h> #include ahead of
1614 <stdio.h> #include.
1615
1616 2014-11-14 Pedro Alves <palves@redhat.com>
1617
1618 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1619 [!PHONY_ICONV] (gdb_iconv): New function.
1620 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1621
1622 2014-11-13 Doug Evans <dje@google.com>
1623
1624 PR symtab/17591
1625 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1626 "(anonymous namespace)".
1627
1628 2014-11-13 Doug Evans <dje@google.com>
1629
1630 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1631 infinite loop.
1632
1633 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
1635 * NEWS (maint set target-async): Fix typo.
1636
1637 2014-11-12 Pedro Alves <palves@redhat.com>
1638
1639 * infrun.c (enum infwait_states, infwait_state): Delete.
1640
1641 2014-11-12 Pedro Alves <palves@redhat.com>
1642
1643 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1644 Rewrite stepping over a permanent breakpoint.
1645 (thread_still_needs_step_over, proceed): Don't set
1646 stepping_over_breakpoint for permanent breakpoints.
1647 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1648 single-step breakpoints out of the target on hardware step
1649 targets.
1650 (process_event_stop_test): If stepping a permanent breakpoint
1651 doesn't hit the step-resume breakpoint, delete the step-resume
1652 breakpoint.
1653 (switch_back_to_stepped_thread): Also check if the stepped thread
1654 has advanced already on hardware step targets.
1655 (currently_stepping): Return true if the thread stepped a
1656 breakpoint.
1657
1658 2014-11-12 Pedro Alves <palves@redhat.com>
1659
1660 Mark locations as permanent, not the whole breakpoint.
1661 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1662 (mark_breakpoints_out): Don't mark permanent breakpoints as
1663 uninserted.
1664 (breakpoint_init_inferior): Use mark_breakpoints_out.
1665 (breakpoint_here_p): Adjust.
1666 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1667 of permanent breakpoints.
1668 (make_breakpoint_permanent): Mark each location as permanent,
1669 instead of marking the breakpoint.
1670 (add_location_to_breakpoint): If the location is permanent, mark
1671 it as such, and as inserted.
1672 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1673 (bp_location_compare, update_global_location_list): Adjust.
1674 (update_breakpoint_locations): Don't make the breakpoint permanent
1675 here.
1676 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1677 breakpoints.
1678 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1679 (struct bp_location) <permanent>: New field.
1680 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1681 reference to bp_permanent.
1682
1683 2014-11-12 Pedro Alves <palves@redhat.com>
1684
1685 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1686 * arch-utils.h (default_skip_permanent_breakpoint): New
1687 declaration.
1688 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1689 Install default_skip_permanent_breakpoint as default method.
1690 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1691 (i386_gdbarch_init): Don't install it.
1692 * infrun.c (resume): Assume there's always a
1693 gdbarch_skip_permanent_breakpoint implementation.
1694 * gdbarch.h, gdbarch.c: Regenerate.
1695
1696 2014-11-11 Daniel Colascione <dancol@dancol.org>
1697
1698 Warn about cross-PID-namespace debugging.
1699 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1700 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1701 * linux-thread-db.c (check_pid_namespace_match): New function.
1702 (thread_db_inferior_created): Call it.
1703
1704 2014-11-10 Doug Evans <xdje42@gmail.com>
1705
1706 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1707 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1708
1709 2014-11-10 Doug Evans <xdje42@gmail.com>
1710
1711 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1712
1713 2014-11-10 Doug Evans <xdje42@gmail.com>
1714
1715 PR symtab/17564
1716 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1717 (lookup_static_symbol): Move definition to new location and rewrite.
1718 (lookup_symbol_in_objfile): New function.
1719 (lookup_symbol_global_iterator_cb): Call it.
1720
1721 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1722
1723 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1724
1725 2014-11-07 Pedro Alves <palves@redhat.com>
1726
1727 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1728 check if we did a "nexti" inside a prologue.
1729 * symtab.c (in_prologue): Delete function.
1730 * symtab.h (in_prologue): Delete declaration.
1731
1732 2014-11-06 Doug Evans <xdje42@gmail.com>
1733
1734 * symtab.h (lookup_global_symbol): Improve function comment.
1735
1736 2014-11-06 Doug Evans <xdje42@gmail.com>
1737
1738 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1739 All callers updated.
1740 * symtab.h (lookup_global_symbol): Update decl.
1741 (lookup_static_symbol): Move decl to better location.
1742
1743 2014-11-06 Doug Evans <xdje42@gmail.com>
1744
1745 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1746
1747 2014-11-06 Doug Evans <xdje42@gmail.com>
1748
1749 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1750 All callers updated.
1751 (lookup_symbol_in_all_objfiles): Renamed from
1752 lookup_symbol_aux_symtabs. All callers updated.
1753 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1754 All callers updated.
1755 (lookup_symbol_in_objfile_symtabs): Renamed from
1756 lookup_symbol_aux_objfile. All callers updated.
1757
1758 2014-11-06 Doug Evans <xdje42@gmail.com>
1759
1760 * symtab.c (lookup_symbol_in_block): Renamed from
1761 lookup_symbol_aux_block. All callers updated.
1762
1763 2014-11-06 Doug Evans <xdje42@gmail.com>
1764
1765 * symtab.c (lookup_static_symbol): Renamed from
1766 lookup_static_symbol_aux. All callers updated.
1767 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1768 All callers updated.
1769
1770 2014-11-06 Doug Evans <xdje42@gmail.com>
1771
1772 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1773 * block.c (block_lookup_symbol): Use it.
1774 * cp-support.c (make_symbol_overload_list_block): Use it.
1775 * symtab.c (iterate_over_symbols): Use it.
1776
1777 2014-11-06 Doug Evans <xdje42@gmail.com>
1778
1779 * symtab.c (lookup_block_symbol): Moved to ...
1780 * block.c (block_lookup_symbol): ... here and renamed.
1781 All callers updated.
1782 * block.h (block_lookup_symbol): Declare.
1783 * symtab.h (lookup_block_symbol): Delete.
1784
1785 2014-11-06 Doug Evans <xdje42@gmail.com>
1786
1787 * ada-lang.c (ada_make_symbol_completion_list): Use
1788 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1789 * symtab.c (lookup_objfile_from_block): Ditto.
1790
1791 2014-11-06 Doug Evans <xdje42@gmail.com>
1792
1793 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1794 TYPE_CODE_STRUCT.
1795
1796 2014-11-06 Doug Evans <xdje42@gmail.com>
1797
1798 * objfiles.c (get_objfile_arch): Constify.
1799 * objfiles.h (get_objfile_arch): Update prototype.
1800 * solib.c (solib_global_lookup): Fetch arch from objfile,
1801 not target_gdbarch.
1802
1803 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1804
1805 * nios2-tdep.c (wild_insn): Delete.
1806 (profiler_insn, irqentry_insn): Delete.
1807 (nios2_match_sequence): Delete.
1808 (nios2_analyze_prologue): Update comments. Remove matching
1809 of obsolete profiler_insn and irqentry_insn sequences.
1810
1811 2014-11-05 Alan Modra <amodra@gmail.com>
1812
1813 * charset.c (convert_between_encodings): Shrink obstack using
1814 obstack_blank_fast.
1815 * minsyms.c (install_minimal_symbols): Likewise.
1816 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1817 to char* before doing pointer arithmetic.
1818
1819 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1820
1821 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1822
1823 2014-11-04 Pedro Alves <palves@redhat.com>
1824
1825 * breakpoint.c (breakpoint_thread_match): Delete function.
1826 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1827
1828 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1829
1830 PR c++/17494
1831 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1832 the method args also under EVAL_SKIP when evaluating method
1833 calls under EVAL_SKIP.
1834
1835 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1836
1837 * dwarf2loc.c (read_pieced_value): Do big endian
1838 processing only if gdb_regnum is not -1.
1839 (write_pieced_value): Ditto.
1840
1841 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1842
1843 * arm-linux-tdep.c (arm_linux_init_abi): Use
1844 info.byte_order_for_code to choose endianity of breakpoint
1845 instructions snippets.
1846
1847 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1848
1849 * arm-tdep.c (extract_arm_insn): Use
1850 gdbarch_byte_order_for_code to read arm instruction.
1851
1852 2014-11-02 Doug Evans <xdje42@gmail.com>
1853
1854 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1855
1856 2014-11-02 Doug Evans <xdje42@gmail.com>
1857
1858 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1859 main_subfile before returning.
1860
1861 2014-10-31 Doug Evans <xdje42@gmail.com>
1862
1863 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1864 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1865
1866 2014-10-31 Doug Evans <xdje42@gmail.com>
1867
1868 * valops.c (value_cast_pointers): Fix whitespace.
1869 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1870 Ditto.
1871
1872 2014-10-30 Doug Evans <dje@google.com>
1873
1874 * NEWS: Mention ability add attributes to gdb.Objfile and
1875 gdb.Progspace objects.
1876 * python/py-objfile.c (objfile_object): New member dict.
1877 (objfpy_dealloc): Py_XDECREF dict.
1878 (objfpy_initialize): Initialize dict.
1879 (objfile_getset): Add __dict__.
1880 (objfile_object_type): Set tp_dictoffset member.
1881 * python/py-progspace.c (progspace_object): New member dict.
1882 (pspy_dealloc): Py_XDECREF dict.
1883 (pspy_initialize): Initialize dict.
1884 (pspace_getset): Add __dict__.
1885 (pspace_object_type): Set tp_dictoffset member.
1886
1887 2014-10-30 Yao Qi <yao@codesourcery.com>
1888
1889 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1890 replace '\\' with '\\\\'.
1891
1892 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1893
1894 GDB 7.8.1 released.
1895
1896 2014-10-29 Pedro Alves <palves@redhat.com>
1897
1898 PR gdb/17408
1899 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1900 instead of assuming a thread with a stepping range is always
1901 stepping.
1902
1903 2014-10-29 Pedro Alves <palves@redhat.com>
1904
1905 PR python/17372
1906 * event-top.c (change_line_handler): Call
1907 gdb_rl_callback_handler_remove instead of
1908 rl_callback_handler_remove.
1909 (callback_handler_installed): New global.
1910 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1911 (gdb_rl_callback_handler_reinstall): New functions.
1912 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1913 gdb_rl_callback_handler_install instead of
1914 rl_callback_handler_remove and rl_callback_handler_install.
1915 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1916 instead of rl_callback_handler_remove.
1917 * event-top.h (gdb_rl_callback_handler_remove)
1918 (gdb_rl_callback_handler_install)
1919 (gdb_rl_callback_handler_reinstall): New declarations.
1920 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1921 cleanup function.
1922 (fetch_inferior_event): Install it.
1923 * top.c (gdb_readline_wrapper_line) Call
1924 gdb_rl_callback_handler_remove instead of
1925 rl_callback_handler_remove.
1926 (gdb_readline_wrapper_cleanup): Don't call
1927 rl_callback_handler_install.
1928
1929 2014-10-29 Pedro Alves <palves@redhat.com>
1930
1931 * event-top.c (command_line_handler): Clear the first byte of
1932 linebuffer, when it is first allocated.
1933
1934 2014-10-29 Pedro Alves <palves@redhat.com>
1935
1936 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1937 TRY_CATCH.
1938
1939 2014-10-29 Pedro Alves <palves@redhat.com>
1940
1941 PR tui/16138
1942 PR tui/17519
1943 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1944 (tui_allowed_p): Delete function.
1945 * tui/tui.c: Include "interps.h".
1946 (tui_enable): Don't use tui_allowed_p. Error out here with
1947 detailed error messages if the TUI is the top level interpreter,
1948 or if output is not a terminal. Use newterm instead of initscr,
1949 and error out if initializing the terminal fails. Also error out if
1950 the terminal doesn't support cursor addressing.
1951 * tui/tui.h (tui_allowed_p): Delete declaration.
1952
1953 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1954
1955 * arm-tdep.c (arm_skip_stack_protector): Return early if
1956 address loaded by first "ldr" instruction does not have
1957 a corresponding minimal symbol. Update comment.
1958
1959 2014-10-29 Yao Qi <yao@codesourcery.com>
1960
1961 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1962 loaded address correctly of ldr instruction.
1963
1964 2014-10-28 Pedro Alves <palves@redhat.com>
1965
1966 PR gdb/12623
1967 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1968 field.
1969 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1970 thread's stepped_breakpoint field. Skip if reverse debugging.
1971 Add comment.
1972 (init_thread_stepping_state, handle_signal_stop): Clear the
1973 thread's stepped_breakpoint field.
1974
1975 2014-10-27 Pedro Alves <palves@redhat.com>
1976
1977 * remote.c (remote_thread_alive): New, factored out from ...
1978 (remote_thread_alive): ... this.
1979 (remote_update_thread_list): Bail out before deleting threads if
1980 the target returned an empty list, and, the current thread has a
1981 magic/fake ptid.
1982
1983 2014-10-27 Pedro Alves <palves@redhat.com>
1984
1985 * infrun.c (handle_signal_stop): Also skip handlers when a random
1986 signal arrives while handling a "stepi" or a "nexti". Set the
1987 thread's 'step_after_step_resume_breakpoint' flag.
1988
1989 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1990
1991 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1992 (arm_record_ld_st_imm_offset): Reimplement to cover all
1993 load/store cases for ARM opcode 010.
1994 (arm_record_ld_st_multiple): Reimplement to cover all
1995 load/store cases for ARM opcode 100.
1996
1997 2014-10-26 Doug Evans <xdje42@gmail.com>
1998
1999 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2000
2001 2014-10-26 Doug Evans <xdje42@gmail.com>
2002
2003 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2004 parameter "kind" to "block_index".
2005 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2006 "block_index".
2007 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2008
2009 2014-10-26 Doug Evans <xdje42@gmail.com>
2010
2011 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2012
2013 2014-10-26 Doug Evans <xdje42@gmail.com>
2014
2015 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2016 obstack_alloc.
2017
2018 2014-10-26 Doug Evans <xdje42@gmail.com>
2019
2020 * parser-defs.h (block_found): Move decl from here ...
2021 * symtab.h (block_found): ... to here.
2022
2023 2014-10-26 Doug Evans <xdje42@gmail.com>
2024
2025 * symtab.h (struct field_of_this_result): Fix typo in comment.
2026 (lookup_symbol_in_language): Move function comment here.
2027 (lookup_symbol): Improve function comment.
2028 (basic_lookup_symbol_nonlocal): Ditto.
2029 (lookup_symbol_static, lookup_symbol_global): Ditto.
2030 (lookup_symbol_aux_block): Ditto.
2031 (lookup_language_this): Add function comment.
2032 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2033 function comment.
2034 (lookup_block_symbol): Improve function comment.
2035 (lookup_struct): Fix capitalization in function comment.
2036 (lookup_transparent_type): Add function comment.
2037 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2038 Improve function comment.
2039 (lookup_objfile_from_block): Add function comment.
2040 * symtab.c (lookup_symbol_in_language): Update function comment.
2041 (lookup_symbol, lookup_language_this): Ditto.
2042 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2043 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2044 (basic_lookup_symbol_nonlocal): Ditto.
2045 (lookup_symbol_static, lookup_symbol_global): Ditto.
2046 (lookup_transparent_type, lookup_block_symbol): Ditto.
2047
2048 2014-10-25 Doug Evans <xdje42@gmail.com>
2049
2050 * symtab.c (types_info): Delete forward decl.
2051 (functions_info, variables_info, sources_info): Ditto.
2052 (_initialize_symtab): Rewrite forward decl to use
2053 initialize_file_ftype.
2054
2055 2014-10-25 Doug Evans <xdje42@gmail.com>
2056
2057 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2058
2059 2014-10-25 Doug Evans <xdje42@gmail.com>
2060
2061 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2062 of local var child_die.
2063
2064 2014-10-24 Don Breazeal <donb@codesourcery.com>
2065
2066 * infrun.c (follow_fork_inferior): Update fork message printing
2067 to use target_terminal_ours_for_output instead of
2068 target_terminal_ours, to use _() for all format strings, to print
2069 "vfork" instead of "fork" for vforks, and to add a detach message.
2070 (handle_vfork_child_exec_or_exit): Update message printing to use
2071 target_terminal_ours_for_output instead of target_terminal_ours, to
2072 use _() for all format strings, and to fix some formatting.
2073
2074 2014-10-24 Pedro Alves <palves@redhat.com>
2075
2076 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2077 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2078 * config/vax/vax.mh: Delete.
2079 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2080 obsolete configurations section.
2081 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2082 * vax-nat.c: Delete file.
2083
2084 2014-10-24 Pedro Alves <palves@redhat.com>
2085
2086 * NEWS (Removed targets): Add OS/arch column.
2087
2088 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2089
2090 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2091 on the arg type of a constructor only if it is of reference type.
2092
2093 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2094
2095 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2096 accessors and constants from nios2 opcodes update.
2097 (nios2_get_next_pc): Likewise.
2098
2099 2014-10-19 Doug Evans <xdje42@gmail.com>
2100
2101 * gdbthread.h (set_running): Fix comment.
2102 (set_executing, finish_thread_state): Fix comment.
2103
2104 2014-10-18 Doug Evans <xdje42@gmail.com>
2105
2106 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2107
2108 2014-10-17 Doug Evans <dje@google.com>
2109
2110 * NEWS: Mention new event gdb.clear_objfiles.
2111 * python/py-event.h (emit_clear_objfiles_event): Clear
2112 * python/py-events.h (events_object): New member clear_objfiles.
2113 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2114 event.
2115 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2116 emit clear_objfiles event.
2117 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2118 function.
2119 (emit_clear_objfiles_event): New function.
2120 (clear_objfiles): New event.
2121 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2122 Declare.
2123 * python/python.c (_initialize_python): Call
2124 gdbpy_initialize_clear_objfiles_event.
2125
2126 2014-10-17 Doug Evans <dje@google.com>
2127
2128 * NEWS: Mention new gdb.Objfile.progspace attribute.
2129 * python/py-objfile.c (objfpy_get_progspace): New function.
2130 (objfile_getset): New entry for "progspace".
2131
2132 2014-10-17 Pedro Alves <palves@redhat.com>
2133
2134 PR gdb/17471
2135 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2136 returns a copy of the input.
2137 (run_command_1, continue_command, step_1, jump_command)
2138 (signal_command, until_command, advance_command, finish_command)
2139 (attach_command): Adjust and install a cleanup to free the
2140 stripped args.
2141
2142 2014-10-17 Pedro Alves <palves@redhat.com>
2143
2144 PR gdb/17300
2145 * infcmd.c (continue_1): If continuing all threads in the
2146 foreground, make sure the inferior's terminal settings are put in
2147 effect.
2148
2149 2014-10-17 Pedro Alves <palves@redhat.com>
2150
2151 PR gdb/17472
2152 * annotate.c (annotate_breakpoints_invalid): Use
2153 target_terminal_our_for_output instead of target_terminal_ours.
2154 Give back the terminal to the target.
2155 (annotate_frames_invalid): Likewise.
2156
2157 2014-10-17 Pedro Alves <palves@redhat.com>
2158
2159 * target.c (enum terminal_state): New enum.
2160 (terminal_state): New global.
2161 (target_terminal_init): New function.
2162 (target_terminal_inferior): Skip if inferior already owns the
2163 terminal.
2164 (target_terminal_ours, target_terminal_ours_for_output): New
2165 functions.
2166 * target.h (target_terminal_init): Convert to function prototype.
2167 (target_terminal_ours_for_output): Convert to function prototype
2168 and tweak comment.
2169 (target_terminal_ours): Convert to function prototype and tweak
2170 comment.
2171 * windows-nat.c (do_initial_windows_stuff): Call
2172 target_terminal_init instead of child_terminal_init_with_pgrp.
2173
2174 2014-10-17 Pedro Alves <palves@redhat.com>
2175
2176 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2177 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2178 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2179 solib-osf.c.
2180 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2181 * ada-lang.h [__alpha__ && __osf__]
2182 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2183 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2184 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2185 GDB_OSABI_OSF1.
2186 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2187 files.
2188 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2189 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2190 * configure: Regenerate.
2191 * configure.ac: Remove references to osf.
2192 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2193 section. Remove all other references to osf.
2194 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2195 Remove all other references to osf.
2196 * dec-thread.c: Delete file.
2197 * defs.h (GDB_OSABI_OSF1): Delete.
2198 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2199 defined.
2200 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2201 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2202 Delete code.
2203 (unconditionally_kill_inferior)
2204 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2205 * solib-osf.c: Delete file.
2206
2207 2014-10-17 Pedro Alves <palves@redhat.com>
2208
2209 * remote.c (clear_threads_listing_context): Move higher up, out of
2210 the HAVE_LIBEXPAT guard.
2211
2212 2014-10-16 Tristan Gingold <gingold@adacore.com>
2213
2214 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2215 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2216 on amd64.
2217
2218 2014-10-15 Pedro Alves <palves@redhat.com>
2219
2220 * dec-thread.c (dec_thread_count_gdb_threads)
2221 (dec_thread_add_gdb_thread): Delete.
2222 (dec_thread_update_thread_list): Delete.
2223 (dec_thread_find_new_threads): Rename to ...
2224 (dec_thread_update_thread_list): ... this. Delete GDB-size
2225 threads that are no longer found in dec_thread_list.
2226 (resync_thread_list): Delete.
2227 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2228 resync_thread_list.
2229
2230 2014-10-15 Pedro Alves <palves@redhat.com>
2231
2232 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2233 * remote.c (remote_update_thread_list): Skip calling prune_threads
2234 if any thread listing method is supported, and instead walk over
2235 the set of remote threads listed, deleting those that are not
2236 found in GDB's thread list.
2237
2238 2014-10-15 Pedro Alves <palves@redhat.com>
2239
2240 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2241 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2242 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2243 (bsd_uthread_target): Adjust.
2244 * corelow.c (core_open): Adjust.
2245 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2246 (dec_thread_update_thread_list): New function.
2247 (init_dec_thread_ops): Adjust.
2248 * gdbthread.h (prune_threads): New declaration.
2249 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2250 (thread_db_update_thread_list): ... this. Call prune_threads.
2251 (init_thread_db_ops): Adjust.
2252 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2253 (procfs_update_thread_list): ... this. Call prune_threads.
2254 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2255 Adjust.
2256 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2257 (obsd_update_thread_list): ... this. Call prune_threads.
2258 (obsd_add_target): Adjust.
2259 * procfs.c (procfs_target): Adjust.
2260 (procfs_notice_thread): Update comment.
2261 (procfs_find_new_threads): Rename to ...
2262 (procfs_update_thread_list): ... this. Call prune_threads.
2263 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2264 comment.
2265 (ravenscar_wait): Adjust.
2266 (ravenscar_find_new_threads): Rename to ...
2267 (ravenscar_update_thread_list): ... this. Call prune_threads.
2268 (init_ravenscar_thread_ops): Adjust.
2269 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2270 (record_btrace_update_thread_list): ... this. Adjust comment.
2271 (init_record_btrace_ops): Adjust.
2272 * remote.c (remote_threads_info): Rename to ...
2273 (remote_update_thread_list): ... this. Call prune_threads.
2274 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2275 Adjust.
2276 * sol-thread.c (check_for_thread_db): Adjust.
2277 (sol_find_new_threads_callback): Rename to ...
2278 (sol_update_thread_list_callback): ... this.
2279 (sol_find_new_threads): Rename to ...
2280 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2281 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2282 * target-delegates.c: Regenerate.
2283 * target.c (target_find_new_threads): Rename to ...
2284 (target_update_thread_list): ... this.
2285 * target.h (struct target_ops): Rename to_find_new_threads field
2286 to to_update_thread_list.
2287 (target_find_new_threads): Rename to ...
2288 (target_update_thread_list): ... this.
2289 * thread.c (prune_threads): Make extern.
2290 (update_thread_list): Adjust.
2291
2292 2014-10-15 Pedro Alves <palves@redhat.com>
2293
2294 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2295 Add describing comment. Return -1 if the qL packet is not
2296 supported.
2297 (struct thread_item, thread_item_t): Move higher up in
2298 the file. Add comments.
2299 (struct threads_parsing_context): Move higher up in
2300 the file, add comments, and remote to ...
2301 (struct threads_listing_context): ... this.
2302 (remote_newthread_step): Don't add the thread to GDB's thread
2303 database here. Instead push it to the thread_listing_context
2304 list.
2305 (remote_find_new_threads): Rename to ...
2306 (remote_get_threads_with_ql): ... this. Add target_ops and
2307 targets_listing_context parameters. Pass down context.
2308 (start_thread): Adjust.
2309 (clear_threads_parsing_context): Rename to ...
2310 (clear_threads_listing_context): ... this.
2311 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2312 remote_threads_info.
2313 (remote_get_threads_with_qthreadinfo): Ditto.
2314 (remote_threads_info): Reimplement.
2315
2316 2014-10-15 Pedro Alves <palves@redhat.com>
2317
2318 * infrun.c (resume): Don't force displaced-stepping for all
2319 single-steps on software single-stepping archs.
2320
2321 2014-10-15 Pedro Alves <palves@redhat.com>
2322
2323 * breakpoint.c (single_step_breakpoints): Delete global.
2324 (insert_single_step_breakpoint): Adjust to store the breakpoint
2325 pointer in the current thread.
2326 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2327 (cancel_single_step_breakpoints): Delete functions.
2328 (breakpoint_has_location_inserted_here): Make extern.
2329 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2330 breakpoint list.
2331 * breakpoint.h (breakpoint_has_location_inserted_here): New
2332 declaration.
2333 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2334 (cancel_single_step_breakpoints): Remove declarations.
2335 * gdbthread.h (struct thread_control_state)
2336 <single_step_breakpoints>: New field.
2337 (delete_single_step_breakpoints)
2338 (thread_has_single_step_breakpoints_set)
2339 (thread_has_single_step_breakpoint_here): New declarations.
2340 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2341 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2342 (singlestep_pc): Delete globals.
2343 (infrun_thread_ptid_changed): Remove references to removed
2344 globals.
2345 (resume_cleanups): Delete the current thread's single-step
2346 breakpoints.
2347 (maybe_software_singlestep): Remove references to removed globals.
2348 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2349 delete_single_step_breakpoints.
2350 (init_wait_for_inferior): Remove references to removed globals.
2351 (delete_thread_infrun_breakpoints): Delete the thread's
2352 single-step breakpoints too.
2353 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2354 single-step breakpoints here.
2355 (delete_stopped_threads_single_step_breakpoints): New function.
2356 (adjust_pc_after_break): Adjust to use
2357 thread_has_single_step_breakpoints_set.
2358 (handle_inferior_event): Remove references to removed globals.
2359 Use delete_stopped_threads_single_step_breakpoints.
2360 (handle_signal_stop): Adjust to per-thread single-step
2361 breakpoints. Swap test order to do cheaper tests first.
2362 (switch_back_to_stepped_thread): Extend debug output. Remove
2363 references to removed globals.
2364 * record-full.c (record_full_wait_1): Adjust to per-thread
2365 single-step breakpoints.
2366 * thread.c (delete_single_step_breakpoints)
2367 (thread_has_single_step_breakpoints_set)
2368 (thread_has_single_step_breakpoint_here): New functions.
2369 (clear_thread_inferior_resources): Also delete the thread's
2370 single-step breakpoints.
2371
2372 2014-10-15 Pedro Alves <palves@redhat.com>
2373
2374 * thread.c (delete_thread_breakpoint): New function.
2375 (delete_step_resume_breakpoint)
2376 (delete_exception_resume_breakpoint): Use it.
2377 (delete_at_next_stop): New function.
2378 (clear_thread_inferior_resources): Use delete_at_next_stop.
2379
2380 2014-10-15 Pedro Alves <palves@redhat.com>
2381
2382 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2383 (breakpoint_inserted_here_p): ... here. Remove special case for
2384 software single-step breakpoints.
2385 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2386 (software_breakpoint_inserted_here_p): ... here. Remove special
2387 case for software single-step breakpoints.
2388 (bp_target_info_copy_insertion_state)
2389 (deprecated_insert_raw_breakpoint)
2390 (deprecated_remove_raw_breakpoint): Delete functions.
2391 * breakpoint.h (deprecated_insert_raw_breakpoint)
2392 (deprecated_remove_raw_breakpoint): Remove declarations.
2393
2394 2014-10-15 Pedro Alves <palves@redhat.com>
2395
2396 PR breakpoints/9649
2397 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2398 Delete array globals.
2399 (single_step_breakpoints): New global.
2400 (breakpoint_xfer_memory): Remove special handling for single-step
2401 breakpoints.
2402 (update_breakpoints_after_exec): Delete bp_single_step
2403 breakpoints.
2404 (detach_breakpoints): Remove special handling for single-step
2405 breakpoints.
2406 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2407 (bpstat_stop_status): Add comment.
2408 (bpstat_what, bptype_string, print_one_breakpoint_location)
2409 (adjust_breakpoint_address, init_bp_location): Handle
2410 bp_single_step.
2411 (new_single_step_breakpoint): New function.
2412 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2413 handling for single-step breakpoints.
2414 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2415 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2416 Rewrite.
2417 (detach_single_step_breakpoints, find_single_step_breakpoint):
2418 Delete functions.
2419 (breakpoint_has_location_inserted_here): New function.
2420 (single_step_breakpoint_inserted_here_p): Rewrite.
2421 * breakpoint.h: Remove FIXME.
2422 (enum bptype) <bp_single_step>: New enum value.
2423 (insert_single_step_breakpoint): Update comment.
2424 * infrun.c (resume_cleanups)
2425 (delete_step_thread_step_resume_breakpoint): Remove single-step
2426 breakpoints.
2427 (fetch_inferior_event): Install a cleanup that removes infrun
2428 breakpoints.
2429 (switch_back_to_stepped_thread) <expect thread advanced also>:
2430 Clear step-over info.
2431
2432 2014-10-15 Pedro Alves <palves@redhat.com>
2433
2434 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2435 (delete_thread_infrun_breakpoints): New function, with parts
2436 salvaged from delete_step_resume_breakpoint_callback.
2437 (delete_step_thread_step_resume_breakpoint): Delete.
2438 (for_each_just_stopped_thread_callback_func): New typedef.
2439 (for_each_just_stopped_thread): New function.
2440 (delete_just_stopped_threads_infrun_breakpoints): New function.
2441 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2442 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2443 ... this. Adjust.
2444 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2445
2446 2014-10-15 Pedro Alves <palves@redhat.com>
2447
2448 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2449 trying to step past a non-steppable watchpoint.
2450 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2451 field.
2452 * infrun.c (struct step_over_info): Add new field
2453 'nonsteppable_watchpoint_p' and adjust comments.
2454 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2455 Adjust.
2456 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2457 (stepping_past_nonsteppable_watchpoint): New function.
2458 (step_over_info_valid_p): Also return true if stepping past a
2459 nonsteppable watchpoint.
2460 (proceed): Adjust call to set_step_over_info. Remove reference to
2461 init_infwait_state.
2462 (init_wait_for_inferior): Remove reference to init_infwait_state.
2463 (waiton_ptid): Delete global.
2464 (struct execution_control_state)
2465 <stepped_after_stopped_by_watchpoint>: Delete field.
2466 (wait_for_inferior, fetch_inferior_event): Always pass
2467 minus_one_ptid to target_wait.
2468 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2469 field.
2470 (init_infwait_state): Delete function.
2471 (handle_inferior_event): Remove infwait_state handling.
2472 (handle_signal_stop) <watchpoints handling>: Adjust after
2473 stepped_after_stopped_by_watchpoint removal. Don't remove
2474 breakpoints here nor set infwait_state. Set the thread's
2475 stepping_over_watchpoint flag, and call keep_going instead.
2476 (keep_going): Handle stepping_over_watchpoint. Adjust
2477 set_step_over_info calls.
2478 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2479 function.
2480
2481 2014-10-15 Pedro Alves <palves@redhat.com>
2482
2483 * infrun.c (step_over_info_valid_p): New function.
2484 (resume): Use step_over_info_valid_p instead of checking the
2485 threads's trap_expected flag.
2486
2487 2014-10-15 Doug Evans <dje@google.com>
2488 Walfred Tedeschi <walfred.tedeschi@intel.com>
2489
2490 PR python/17364
2491 * python/lib/gdb/__init__.py (packages): Add "printer".
2492 * python/lib/gdb/command/bound_registers.py: Moved to ...
2493 * python/lib/gdb/printer/bound_registers.py: ... here.
2494 Add printer to global set of builtin printers. Rename printer from
2495 "bound" to "mpx_bound128".
2496 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2497 registered as global "builtin" printer.
2498 (add_builtin_pretty_printer): New function.
2499 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2500 gdb/printer/__init__.py.
2501
2502 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2503
2504 * Makefile.in (SFILES): Remove d-support.c.
2505 (COMMON_OBS): Remove d-support.o.
2506 * d-lang.h (d_parse_symbol): Remove declaration.
2507 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2508 * d-support.c: Remove file.
2509
2510 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2511
2512 * gdb/infrun.c (process_event_stop_test): Apply
2513 gdbarch_addr_bits_remove to longjmp resume address.
2514
2515 2014-10-15 Pedro Alves <palves@redhat.com>
2516
2517 * regformats/microblaze.dat: Delete file.
2518
2519 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2520
2521 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2522 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2523
2524 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2525
2526 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2527 as non-trivial.
2528
2529 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2530
2531 PR c++/13403
2532 PR c++/15154
2533 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2534 with qualified args.
2535
2536 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2539 of the case where the second operand is a pointer.
2540 <BINOP_SUB>: Likewise.
2541
2542 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2543
2544 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2545 only if it is not NULL.
2546 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2547 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2548 (struct probe_ops) <clear_semaphore>: Likewise.
2549 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2550 not NULL.
2551 (stop_tracing): Likewise, for clear_semaphore.
2552
2553 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2554
2555 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2556 using language_c, instead of current_language.
2557
2558 2014-10-13 Doug Evans <dje@google.com>
2559
2560 * python/py-objfile.c (objfpy_initialize): New function.
2561 (objfpy_new, objfile_to_objfile_object): Call it.
2562 * python/py-progspace.c (pspy_initialize): New function.
2563 (pspy_new, pspace_to_pspace_object): Call it.
2564
2565 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2566 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 Fix "save breakpoints" for "catch" command.
2569 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2570 newline.
2571
2572 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2573
2574 Fix "save breakpoints" for "disable $bpnum" command.
2575 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2576
2577 2014-10-10 Pedro Alves <palves@redhat.com>
2578
2579 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2580 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2581 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2582 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2583 and been removed.
2584 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2585 * configure.ac: Remove references to IRIX.
2586 * configure.host: Add *-*-irix* to the obsolete hosts section.
2587 Remove all other references to irix.
2588 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2589 Delete files.
2590
2591 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2592
2593 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2594 isn't valid, release the tdesc arch data and return NULL.
2595
2596 2014-10-10 Pedro Alves <palves@redhat.com>
2597
2598 * linux-tdep.c: Include observer.h.
2599 (linux_inferior_data): New global.
2600 (struct linux_info): New structure.
2601 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2602 (get_linux_inferior_data): New functions.
2603 (linux_vsyscall_range): Rename to ...
2604 (linux_vsyscall_range_raw): ... this.
2605 (linux_vsyscall_range): New function; handles caching.
2606 (_initialize_linux_tdep): Register linux_inferior_data. Install
2607 inferior_exit and inferior_appeared observers.
2608
2609 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2610 Pedro Alves <palves@redhat.com>
2611
2612 PR symtab/14466
2613 * solib-svr4.c (svr4_read_so_list): Rename to ...
2614 (svr4_current_sos_1): ... this and change the function comment.
2615 (svr4_current_sos): New function.
2616
2617 2014-10-10 Pedro Alves <palves@redhat.com>
2618
2619 * arch-utils.c (default_vsyscall_range): New function.
2620 * arch-utils.h (default_vsyscall_range): New declaration.
2621 * gdbarch.sh (vsyscall_range): New hook.
2622 * gdbarch.h, gdbarch.c: Regenerate.
2623 * linux-tdep.c (linux_vsyscall_range): New function.
2624 (linux_init_abi): Install linux_vsyscall_range as
2625 vsyscall_range gdbarch hook.
2626 * memrange.c (address_in_mem_range): New function.
2627 * memrange.h (address_in_mem_range): New declaration.
2628 * symfile-mem.c (find_vdso_size): Delete function.
2629 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2630
2631 2014-10-10 Pedro Alves <palves@redhat.com>
2632
2633 * infrun.c (normal_stop): Fix typo in comment.
2634
2635 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2636
2637 PR tdep/9390
2638 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2639 typo when using logical AND to determine instruction type.
2640
2641 2014-10-09 Yao Qi <yao@codesourcery.com>
2642
2643 * infrun.c (handle_signal_stop): Remove local variable
2644 'printed'.
2645
2646 2014-10-08 Stan Shebs <stan@codesourcery.com>
2647
2648 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2649
2650 2014-10-08 Gary Benson <gbenson@redhat.com>
2651
2652 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2653
2654 2014-10-08 Gary Benson <gbenson@redhat.com>
2655
2656 * common/common-defs.h: Include common-exceptions.h.
2657 * exceptions.h: Do not include common-exceptions.h.
2658
2659 2014-10-08 Gary Benson <gbenson@redhat.com>
2660
2661 * common/common-defs.h: Include cleanups.h.
2662 * common/common-exceptions.c: Do not include cleanups.h.
2663 * utils.h: Likewise.
2664
2665 2014-10-08 Gary Benson <gbenson@redhat.com>
2666
2667 * ada-lang.c: Do not include exceptions.h.
2668 * ada-valprint.c: Likewise.
2669 * amd64-tdep.c: Likewise.
2670 * auto-load.c: Likewise.
2671 * block.c: Likewise.
2672 * break-catch-throw.c: Likewise.
2673 * breakpoint.c: Likewise.
2674 * btrace.c: Likewise.
2675 * c-lang.c: Likewise.
2676 * cli/cli-cmds.c: Likewise.
2677 * cli/cli-interp.c: Likewise.
2678 * cli/cli-script.c: Likewise.
2679 * completer.c: Likewise.
2680 * corefile.c: Likewise.
2681 * corelow.c: Likewise.
2682 * cp-abi.c: Likewise.
2683 * cp-support.c: Likewise.
2684 * cp-valprint.c: Likewise.
2685 * darwin-nat.c: Likewise.
2686 * dwarf2-frame-tailcall.c: Likewise.
2687 * dwarf2-frame.c: Likewise.
2688 * dwarf2loc.c: Likewise.
2689 * dwarf2read.c: Likewise.
2690 * eval.c: Likewise.
2691 * event-loop.c: Likewise.
2692 * event-top.c: Likewise.
2693 * f-valprint.c: Likewise.
2694 * frame-unwind.c: Likewise.
2695 * frame.c: Likewise.
2696 * gdbtypes.c: Likewise.
2697 * gnu-v2-abi.c: Likewise.
2698 * gnu-v3-abi.c: Likewise.
2699 * guile/scm-auto-load.c: Likewise.
2700 * guile/scm-breakpoint.c: Likewise.
2701 * guile/scm-cmd.c: Likewise.
2702 * guile/scm-frame.c: Likewise.
2703 * guile/scm-lazy-string.c: Likewise.
2704 * guile/scm-param.c: Likewise.
2705 * guile/scm-symbol.c: Likewise.
2706 * guile/scm-type.c: Likewise.
2707 * hppa-hpux-tdep.c: Likewise.
2708 * i386-tdep.c: Likewise.
2709 * inf-loop.c: Likewise.
2710 * infcall.c: Likewise.
2711 * infcmd.c: Likewise.
2712 * infrun.c: Likewise.
2713 * interps.c: Likewise.
2714 * interps.h: Likewise.
2715 * jit.c: Likewise.
2716 * linespec.c: Likewise.
2717 * linux-nat.c: Likewise.
2718 * linux-thread-db.c: Likewise.
2719 * m32r-rom.c: Likewise.
2720 * main.c: Likewise.
2721 * memory-map.c: Likewise.
2722 * mi/mi-cmd-break.c: Likewise.
2723 * mi/mi-cmd-stack.c: Likewise.
2724 * mi/mi-interp.c: Likewise.
2725 * mi/mi-main.c: Likewise.
2726 * monitor.c: Likewise.
2727 * nto-procfs.c: Likewise.
2728 * objc-lang.c: Likewise.
2729 * p-valprint.c: Likewise.
2730 * parse.c: Likewise.
2731 * ppc-linux-tdep.c: Likewise.
2732 * printcmd.c: Likewise.
2733 * probe.c: Likewise.
2734 * python/py-auto-load.c: Likewise.
2735 * python/py-breakpoint.c: Likewise.
2736 * python/py-cmd.c: Likewise.
2737 * python/py-finishbreakpoint.c: Likewise.
2738 * python/py-frame.c: Likewise.
2739 * python/py-framefilter.c: Likewise.
2740 * python/py-function.c: Likewise.
2741 * python/py-gdb-readline.c: Likewise.
2742 * python/py-inferior.c: Likewise.
2743 * python/py-infthread.c: Likewise.
2744 * python/py-lazy-string.c: Likewise.
2745 * python/py-linetable.c: Likewise.
2746 * python/py-param.c: Likewise.
2747 * python/py-prettyprint.c: Likewise.
2748 * python/py-symbol.c: Likewise.
2749 * python/py-type.c: Likewise.
2750 * python/py-value.c: Likewise.
2751 * python/python-internal.h: Likewise.
2752 * python/python.c: Likewise.
2753 * record-btrace.c: Likewise.
2754 * record-full.c: Likewise.
2755 * regcache.c: Likewise.
2756 * remote-fileio.c: Likewise.
2757 * remote-mips.c: Likewise.
2758 * remote.c: Likewise.
2759 * rs6000-aix-tdep.c: Likewise.
2760 * rs6000-nat.c: Likewise.
2761 * skip.c: Likewise.
2762 * solib-darwin.c: Likewise.
2763 * solib-dsbt.c: Likewise.
2764 * solib-frv.c: Likewise.
2765 * solib-ia64-hpux.c: Likewise.
2766 * solib-spu.c: Likewise.
2767 * solib-svr4.c: Likewise.
2768 * solib.c: Likewise.
2769 * spu-tdep.c: Likewise.
2770 * stack.c: Likewise.
2771 * stap-probe.c: Likewise.
2772 * symfile-mem.c: Likewise.
2773 * symmisc.c: Likewise.
2774 * target.c: Likewise.
2775 * thread.c: Likewise.
2776 * top.c: Likewise.
2777 * tracepoint.c: Likewise.
2778 * tui/tui-interp.c: Likewise.
2779 * typeprint.c: Likewise.
2780 * utils.c: Likewise.
2781 * valarith.c: Likewise.
2782 * valops.c: Likewise.
2783 * valprint.c: Likewise.
2784 * value.c: Likewise.
2785 * varobj.c: Likewise.
2786 * windows-nat.c: Likewise.
2787 * xml-support.c: Likewise.
2788
2789 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2790
2791 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2792 name implies.
2793 (extended_mips16_next_pc): Update accordingly.
2794
2795 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2796
2797 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2798 function.
2799 (micromips_instruction_is_compact_branch): Likewise.
2800 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2801 or a compact jump, reaching a jump delay slot, or seeing a
2802 second non-prologue instruction.
2803 (micromips_scan_prologue): Also terminate scanning upon seeing a
2804 compact branch or jump, or reaching a branch or jump delay slot.
2805 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2806 or jump delay slot, or seeing a second non-prologue instruction.
2807 (mips32_instruction_has_delay_slot): Retain instruction
2808 examination code only, update arguments accordingly and move
2809 instruction fetch pieces to...
2810 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2811 (micromips_instruction_has_delay_slot): Likewise and to...
2812 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2813 (mips16_instruction_has_delay_slot): Likewise and to...
2814 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2815 (mips_single_step_through_delay): Update accordingly.
2816 (mips_adjust_breakpoint_address): Likewise.
2817
2818 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2819
2820 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2821 !mustbe32 also return 1 for 32-bit instructions.
2822 (mips16_instruction_has_delay_slot): Likewise. Add an
2823 explanatory comment.
2824
2825 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2826
2827 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2828 symbols special.
2829
2830 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2831
2832 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2833 update comments.
2834 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2835 for the breakpoint's address. Don't preinitialize `placed_size'.
2836 (insert_bp_location): Set `reqstd_address' rather than
2837 `placed_address'.
2838 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2839 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2840 address.
2841 (bkpt_remove_location): Likewise.
2842 (deprecated_insert_raw_breakpoint): Likewise.
2843 (deprecated_remove_raw_breakpoint): Likewise.
2844 (find_single_step_breakpoint): Likewise.
2845 * mem-break.c (default_memory_insert_breakpoint): Use
2846 `reqstd_address' for the breakpoint's address. Don't set
2847 `placed_address' or `placed_size' if breakpoint contents couldn't
2848 have been determined.
2849 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2850 the breakpoint's address.
2851 (remote_insert_hw_breakpoint): Likewise. Don't set
2852 `placed_address' or `placed_size' if breakpoint couldn't have been
2853 set.
2854 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2855 `reqstd_address' for the breakpoint's address.
2856 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2857 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2858 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2859 * microblaze-linux-tdep.c
2860 (microblaze_linux_memory_remove_breakpoint): Likewise.
2861 * monitor.c (monitor_insert_breakpoint): Likewise.
2862 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2863 (procfs_insert_hw_breakpoint): Likewise.
2864 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2865 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2866 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2867 * remote-mips.c (mips_insert_breakpoint): Likewise.
2868 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2869
2870 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2871
2872 * valops.c (value_assign): Check for bit field assignments
2873 before calling architecture-specific register value
2874 conversion functions.
2875
2876 2014-10-03 Pierre Muller <muller@sourceware.org>
2877
2878 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2879
2880 2014-10-02 Pedro Alves <palves@redhat.com>
2881
2882 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2883 threads_are_executing.
2884 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2885 describing comment.
2886 * gdbthread.h (threads_are_executing): Declare.
2887 (handle_signal_stop) <random signals>: Don't print about the
2888 signal here if stopping.
2889 (end_stepping_range): Don't notify observers here.
2890 (normal_stop): Update the thread list. If stopped by a random
2891 signal or a stepping range ended, notify observers.
2892 * thread.c (threads_executing): New global.
2893 (init_thread_list): Clear 'threads_executing'.
2894 (set_executing): Set or clear 'threads_executing'.
2895 (threads_are_executing): New function.
2896 (update_threads_executing): New function.
2897 (update_thread_list): Use it.
2898
2899 2014-10-02 Pedro Alves <palves@redhat.com>
2900
2901 PR breakpoints/17431
2902 * breakpoint.c (update_breakpoints_after_exec): Don't create
2903 overlay, longjmp, std terminate nor exception breakpoints here.
2904
2905 2014-10-02 Pedro Alves <palves@redhat.com>
2906
2907 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2908 Adjust comments.
2909 * inferior.c (find_inferior_for_program_space): Give preference to
2910 the current inferior.
2911 * inferior.h (find_inferior_for_program_space): Update comment.
2912 * progspace.c (switch_to_program_space_and_thread): Prefer the
2913 current inferior if it's bound to the program space requested. If
2914 the inferior found doesn't have a PID yet, don't bother looking up
2915 a thread.
2916 * progspace.h (switch_to_program_space_and_thread): Adjust
2917 comment.
2918 * thread.c (any_thread_of_process, any_live_thread_of_process):
2919 Give preference to the current thread.
2920
2921 2014-10-01 Pedro Alves <palves@redhat.com>
2922
2923 * breakpoint.c (insert_bp_location): Error out if inserting a
2924 software breakpoint at a read-only address.
2925 * target.c (memory_xfer_check_region): New function, factored out
2926 from ...
2927 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2928 ULONGEST.
2929 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2930 against the memory region attributes.
2931
2932 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2933
2934 * NEWS: Announce new exit-code field in -list-thread-groups
2935 output.
2936 * inferior.c (exit_inferior_1): Don't clear exit code.
2937 (inferior_appeared): Clear exit code.
2938 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2939 code.
2940
2941 2014-10-01 Pedro Alves <palves@redhat.com>
2942
2943 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2944 GENERATED" along with emacs/vi read-only markers.
2945 * regformats/aarch64.dat: Regenerate.
2946 * regformats/arm-with-iwmmxt.dat: Regenerate.
2947 * regformats/arm-with-neon.dat: Regenerate.
2948 * regformats/arm-with-vfpv2.dat: Regenerate.
2949 * regformats/arm-with-vfpv3.dat: Regenerate.
2950 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2951 * regformats/i386/amd64-avx.dat: Regenerate.
2952 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2953 * regformats/i386/amd64-avx512.dat: Regenerate.
2954 * regformats/i386/amd64-linux.dat: Regenerate.
2955 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2956 * regformats/i386/amd64-mpx.dat: Regenerate.
2957 * regformats/i386/amd64.dat: Regenerate.
2958 * regformats/i386/i386-avx-linux.dat: Regenerate.
2959 * regformats/i386/i386-avx.dat: Regenerate.
2960 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2961 * regformats/i386/i386-avx512.dat: Regenerate.
2962 * regformats/i386/i386-linux.dat: Regenerate.
2963 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2964 * regformats/i386/i386-mmx.dat: Regenerate.
2965 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2966 * regformats/i386/i386-mpx.dat: Regenerate.
2967 * regformats/i386/i386.dat: Regenerate.
2968 * regformats/i386/x32-avx-linux.dat: Regenerate.
2969 * regformats/i386/x32-avx.dat: Regenerate.
2970 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2971 * regformats/i386/x32-avx512.dat: Regenerate.
2972 * regformats/i386/x32-linux.dat: Regenerate.
2973 * regformats/i386/x32.dat: Regenerate.
2974 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2975 * regformats/mips-dsp-linux.dat: Regenerate.
2976 * regformats/mips-linux.dat: Regenerate.
2977 * regformats/mips64-dsp-linux.dat: Regenerate.
2978 * regformats/mips64-linux.dat: Regenerate.
2979 * regformats/nios2-linux.dat: Regenerate.
2980 * regformats/rs6000/powerpc-32.dat: Regenerate.
2981 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2982 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2983 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2984 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2985 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2986 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2987 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2988 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2989 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2990 * regformats/s390-linux32.dat: Regenerate.
2991 * regformats/s390-linux32v1.dat: Regenerate.
2992 * regformats/s390-linux32v2.dat: Regenerate.
2993 * regformats/s390-linux64.dat: Regenerate.
2994 * regformats/s390-linux64v1.dat: Regenerate.
2995 * regformats/s390-linux64v2.dat: Regenerate.
2996 * regformats/s390-te-linux64.dat: Regenerate.
2997 * regformats/s390x-linux64.dat: Regenerate.
2998 * regformats/s390x-linux64v1.dat: Regenerate.
2999 * regformats/s390x-linux64v2.dat: Regenerate.
3000 * regformats/s390x-te-linux64.dat: Regenerate.
3001 * regformats/tic6x-c62x-linux.dat: Regenerate.
3002 * regformats/tic6x-c62x.dat: Regenerate.
3003 * regformats/tic6x-c64x-linux.dat: Regenerate.
3004 * regformats/tic6x-c64x.dat: Regenerate.
3005 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3006 * regformats/tic6x-c64xp.dat: Regenerate.
3007
3008 2014-10-01 Pedro Alves <palves@redhat.com>
3009
3010 * features/Makefile: Update comments.
3011 (XMLTOC): List all xml files we build C files from.
3012 (clean-cfiles): New rule.
3013
3014 2014-10-01 Pedro Alves <palves@redhat.com>
3015
3016 * features/i386/amd64-avx512-linux.c: Regenerate.
3017 * features/i386/amd64-avx512.c: Regenerate.
3018 * features/i386/x32-avx512-linux.c: Regenerate.
3019 * features/i386/x32-avx512.c: Regenerate.
3020
3021 2014-10-01 Pedro Alves <palves@redhat.com>
3022
3023 * features/Makefile (WHICH): Remove arm-with-m,
3024 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3025
3026 2014-10-01 Pedro Alves <palves@redhat.com>
3027
3028 * features/Makefile (clean): New rule.
3029
3030 2014-10-01 Pedro Alves <palves@redhat.com>
3031
3032 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3033 (zmm14h): Add missing end quotes.
3034
3035 2014-10-01 Pedro Alves <palves@redhat.com>
3036
3037 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3038 * features/aarch64.c: Regenerate.
3039
3040 2014-09-30 Don Breazeal <donb@codesourcery.com>
3041
3042 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3043 code so as to work with follow_fork_inferior.
3044 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3045 (inf_ttrace_create_inferior): Remove reference to
3046 inf_ttrace_vfork_ppid.
3047 (inf_ttrace_attach): Ditto.
3048 (inf_ttrace_detach): Ditto.
3049 (inf_ttrace_kill): Use current_inferior instead of
3050 inf_ttrace_vfork_ppid.
3051 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3052 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3053 inferior away from the parent.
3054 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3055 target_follow_fork.
3056 (follow_fork_inferior): New function.
3057 (follow_inferior_reset_breakpoints): Make function static.
3058 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3059 * linux-nat.c (linux_child_follow_fork): Move target-independent
3060 code to infrun.c:follow_fork_inferior.
3061
3062 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063
3064 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3065 * gdbarch.c: Regenerate.
3066 * gdbarch.h: Likewise.
3067 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3068 gdbarch method 'regset_from_core_section'.
3069 (get_core_register_section): Remove handling for the case that
3070 regset == NULL and regset_from_core_section is defined.
3071 (get_core_registers): Drop check for deleted method.
3072 * procfs.c (procfs_do_thread_registers): Adjust comment.
3073
3074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3075
3076 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3077 (linux_nat_make_corefile_notes): Remove.
3078 (linux_target_install_ops): Do not set target method
3079 'make_corefile_notes'.
3080 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3081 Remove field.
3082 (linux_corefile_thread_callback): Instead of args->collect, call
3083 linux_collect_thread_registers.
3084 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3085 NULL unless there is a regset iterator.
3086 (linux_make_corefile_notes_1): Remove.
3087 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3088 by linux_make_corefile_notes.
3089 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3090
3091 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092
3093 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3094 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3095 Remove.
3096 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3097
3098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3099
3100 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3101 (xtensa_iterate_over_regset_sections): New.
3102 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3103
3104 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3105
3106 * vax-tdep.c (vax_regset_from_core_section): Remove.
3107 (vax_iterate_over_regset_sections): New.
3108 (vax_gdbarch_init): Adjust gdbarch initialization.
3109
3110 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111
3112 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3113 (tilegx_regset_from_core_section): Remove.
3114 (tilegx_iterate_over_regset_sections): New.
3115 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3116
3117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3118
3119 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3120 (sparc_iterate_over_regset_sections): New.
3121 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3122 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3123 targets.
3124 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3125 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3126 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3127 target method 'make_corefile_notes'.
3128
3129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3130
3131 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3132 'sizeof_gregset' and 'sizeof_fpregset'.
3133 * sh-tdep.c (sh_regset_from_core_section): Remove.
3134 (sh_iterate_over_regset_sections): New.
3135 (sh_gdbarch_init): Adjust gdbarch initialization.
3136 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3137 sizeof_fpregset.
3138 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3139 'sizeof_gregset'.
3140
3141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3142
3143 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3144 (score7_linux_iterate_over_regset_sections): New.
3145 (score_gdbarch_init): Adjust gdbarch initialization.
3146
3147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3148
3149 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3150 FreeBSD targets.
3151 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3152 method 'make_corefile_notes'.
3153 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3154 (ppcfbsd_regset_from_core_section): Remove.
3155 (ppcfbsd_iterate_over_regset_sections): New.
3156 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3157 initialization.
3158 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3159 (ppcnbsd_iterate_over_regset_sections): New.
3160 (ppcnbsd_init_abi): Adjust.
3161 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3162 (ppcobsd_iterate_over_regset_sections): New.
3163 (ppcobsd_init_abi): Adjust.
3164 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3165 (rs6000_aix_iterate_over_regset_sections): New.
3166 (rs6000_aix_init_osabi): Adjust.
3167
3168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169
3170 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3171 (nios2_regset_from_core_section): Remove.
3172 (nios2_iterate_over_regset_sections): New.
3173 (nios2_linux_init_abi): Adjust gdbarch initialization.
3174
3175 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176
3177 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3178 (am33_iterate_over_regset_sections): New.
3179 (am33_linux_init_osabi): Adjust gdbarch initialization.
3180
3181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3182
3183 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3184 (mips_linux_iterate_over_regset_sections): New.
3185 (mips_linux_init_abi): Adjust gdbarch initialization.
3186 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3187 (mips64obsd_iterate_over_regset_sections): New.
3188 (mips64obsd_init_abi): Adjust.
3189 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3190 (mipsnbsd_iterate_over_regset_sections): New.
3191 (mipsnbsd_init_abi): Adjust.
3192
3193 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3194
3195 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3196 (m88k_iterate_over_regset_sections): New.
3197 (m88k_gdbarch_init): Adjust gdbarch initialization.
3198
3199 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200
3201 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3202 (ia64_linux_iterate_over_regset_sections): New.
3203 (ia64_linux_init_abi): Adjust gdbarch initialization.
3204
3205 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3206
3207 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3208 (m68kbsd_iterate_over_regset_sections): New.
3209 (m68kbsd_init_abi): Adjust gdbarch initialization.
3210 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3211 (m68k_linux_iterate_over_regset_sections): New.
3212 (m68k_linux_init_abi): Adjust gdbarch initialization.
3213
3214 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3215
3216 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3217 (m32r_linux_regset_from_core_section): Remove.
3218 (m32r_linux_iterate_over_regset_sections): New.
3219 (m32r_linux_init_abi): Adjust gdbarch initialization.
3220
3221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3222
3223 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3224 (amd64obsd_iterate_over_regset_sections): New.
3225 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3226 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3227 Remove.
3228 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3229 regset_from_core_section initialization.
3230 * i386-tdep.c (i386_regset_from_core_section): Remove.
3231 (i386_iterate_over_regset_sections): New.
3232 (i386_gdbarch_init): Adjust gdbarch initialization.
3233 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3234 (i386_iterate_over_regset_sections): New prototype.
3235 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3236 Remove.
3237 (i386obsd_aout_iterate_over_regset_sections): New.
3238 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3239 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3240 targets.
3241 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3242 (amd64fbsd_init_abi): Call fbsd_init_abi.
3243 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3244 (i386fbsd4_init_abi): Call fbsd_init_abi.
3245 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3246 target method 'make_corefile_notes'.
3247 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3248
3249 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3250
3251 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3252 (hppa_hpux_iterate_over_regset_sections): New.
3253 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3254 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3255 (hppa_linux_iterate_over_regset_sections): New.
3256 (hppa_linux_init_abi): Adjust.
3257 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3258 (hppanbsd_iterate_over_regset_sections): New.
3259 (hppanbsd_init_abi): Adjust.
3260 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3261 (hppaobsd_iterate_over_regset_sections): New.
3262 (hppaobsd_init_abi): Adjust.
3263
3264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3265
3266 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3267 (frv_linux_iterate_over_regset_sections): New.
3268 (frv_linux_init_abi): Adjust gdbarch initialization.
3269
3270 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3271
3272 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3273 (armbsd_iterate_over_regset_sections): New prototype.
3274 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3275 (armbsd_iterate_over_regset_sections): New.
3276 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3277 initialization.
3278
3279 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3280
3281 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3282 (alpha_linux_iterate_over_regset_sections): New.
3283 (alpha_linux_init_abi): Adjust gdbarch initialization.
3284 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3285 prototype.
3286 (alphanbsd_iterate_over_regset_sections): New prototype.
3287
3288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289
3290 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3291 Remove.
3292 (aarch64_linux_iterate_over_regset_sections): New.
3293 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3294
3295 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3296
3297 * fbsd-tdep.c: New file.
3298 * fbsd-tdep.h: New file.
3299 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3300 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3301 (ALLDEPFILES): Add fbsd-tdep.c.
3302
3303 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3304
3305 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3306 parameter.
3307 * gdbarch.h: Regenerate.
3308 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3309 iterator.
3310 (get_core_register_section): Add parameter 'regset' and use it, if
3311 set. Add parameter 'min_size' and verify the bfd section size
3312 against it.
3313 (get_core_registers_cb): Add parameter 'regset' and pass it to
3314 get_core_register section. For the "standard" register sections
3315 ".reg" and ".reg2", set an appropriate default for human_name.
3316 (get_core_registers): Don't abort when the gdbarch has an iterator
3317 but no regset_from_core_section. Add NULL/0 for parameters
3318 'regset'/'min_size' in calls to get_core_register_section.
3319 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3320 'regset' and use it instead of calling the
3321 regset_from_core_section gdbarch method.
3322 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3323 * i386-tdep.c (i386_supply_xstateregset)
3324 (i386_collect_xstateregset, i386_xstateregset): Moved to
3325 i386-linux-tdep.c.
3326 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3327 .reg-xstate.
3328 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3329 core file support only if the regset iterator hasn't been set.
3330 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3331 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3332 Moved from i386-tdep.c and renamed to *_linux*.
3333 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3334 each callback invocation. Allow any .reg-xstate size when reading
3335 from a core file.
3336 * amd64-tdep.c (amd64_supply_xstateregset)
3337 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3338 amd64-linux-tdep.c.
3339 (amd64_regset_from_core_section): Remove.
3340 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3341 install an amd64-specific regset_from_core_section gdbarch method.
3342 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3343 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3344 Moved from amd64-tdep.c and renamed to *_linux*.
3345 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3346 to each callback invocation. Allow any .reg-xstate size when
3347 reading from a core file.
3348 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3349 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3350 each callback invocation.
3351 (arm_linux_init_abi): No longer set the regset_from_core_section
3352 gdbarch method.
3353 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3354 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3355 each callback invocation.
3356 (ppc_linux_init_abi): No longer set the regset_from_core_section
3357 gdbarch method.
3358 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3359 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3360 (s390_regset_from_core_section): Remove.
3361 (s390_iterate_over_regset_sections): Add regset parameter to each
3362 callback invocation.
3363 (s390_gdbarch_init): No longer set the regset_from_core_section
3364 gdbarch method. Drop initialization of deleted tdep fields.
3365
3366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3367
3368 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3369 (amd64_linux_iterate_over_regset_sections): New.
3370 (amd64_linux_init_abi_common): Don't install the regset section
3371 list, but the new iterator in gdbarch.
3372 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3373 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3374 (arm_linux_iterate_over_regset_sections): ...here. New function.
3375 (arm_linux_init_abi): Set iterator instead of section list.
3376 * corelow.c (get_core_registers_cb): New function, logic moved
3377 from...
3378 (get_core_registers): ...loop body here. Use new iterator method
3379 instead of walking through the regset section list.
3380 * gdbarch.sh: Remove 'core_regset_sections'. New method
3381 'iterate_over_regset_sections'. New typedef
3382 'iterate_over_regset_sections_cb'.
3383 * gdbarch.c: Regenerate.
3384 * gdbarch.h: Likewise.
3385 * i386-linux-tdep.c (i386_linux_regset_sections)
3386 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3387 Remove.
3388 (i386_linux_iterate_over_regset_sections): New.
3389 (i386_linux_init_abi): Don't choose a regset section list, but
3390 install new iterator in gdbarch.
3391 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3392 (linux_collect_regset_section_cb): New function, logic moved
3393 from...
3394 (linux_collect_thread_registers): ...loop body here. Use iterator
3395 method instead of walking through list.
3396 (linux_make_corefile_notes_1): Check for presence of iterator
3397 method instead of regset section list.
3398 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3399 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3400 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3401 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3402 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3403 (ppc_linux_init_abi): Don't choose from above regset section
3404 lists, but install new iterator in gdbarch.
3405 * regset.h (struct core_regset_section): Remove.
3406 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3407 have_linux_v1, have_linux_v2, and have_tdb.
3408 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3409 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3410 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3411 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3412 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3413 (s390_iterate_over_regset_sections): ...here. New function. Use
3414 new tdep fields.
3415 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3416 regset section lists, but install new iterator.
3417
3418 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3419
3420 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3421
3422 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * progspace.c (print_program_space): Don't prune program spaces
3425 before printing them.
3426
3427 2014-09-25 Pedro Alves <palves@redhat.com>
3428
3429 * infrun.c (user_visible_resume_ptid): Don't check
3430 singlestep_breakpoints_inserted_p.
3431
3432 2014-09-25 Pedro Alves <palves@redhat.com>
3433
3434 * breakpoint.c (should_be_inserted): Add debug output.
3435
3436 2014-09-25 Pedro Alves <palves@redhat.com>
3437
3438 * infrun.c (stepping_past_instruction_at)
3439 (clear_exit_convenience_vars): Point at infrun.h instead of
3440 inferior.h.
3441 (handle_signal_stop): Fix typo.
3442
3443 2014-09-24 Yao Qi <yao@codesourcery.com>
3444
3445 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3446 bitmask.
3447
3448 2014-09-22 Gary Benson <gbenson@redhat.com>
3449
3450 * target.c (target_stop): Updated comment.
3451
3452 2014-09-22 Gary Benson <gbenson@redhat.com>
3453
3454 * target/target.h (target_stop_ptid): Renamed as...
3455 (target_stop_and_wait): New function. Updated comment.
3456 All uses updated.
3457 (target_continue_ptid): Renamed as...
3458 (target_continue_no_signal): New function. Updated comment.
3459 All uses updated.
3460
3461 2014-09-22 Pedro Alves <palves@redhat.com>
3462
3463 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3464 and "auto" merged.
3465 * breakpoint.c (enum ugll_insert_mode): New enum.
3466 (always_inserted_mode): Now a plain boolean.
3467 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3468 (breakpoints_always_inserted_mode): Delete.
3469 (breakpoints_should_be_inserted_now): New function.
3470 (insert_breakpoints): Pass UGLL_INSERT to
3471 update_global_location_list instead of calling
3472 insert_breakpoint_locations manually.
3473 (create_solib_event_breakpoint_1): New, factored out from ...
3474 (create_solib_event_breakpoint): ... this.
3475 (create_and_insert_solib_event_breakpoint): Use
3476 create_solib_event_breakpoint_1 instead of calling
3477 insert_breakpoint_locations manually.
3478 (update_global_location_list): Change parameter type from boolean
3479 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3480 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3481 (update_global_location_list_nothrow): Change parameter type from
3482 boolean to enum ugll_insert_mode.
3483 (_initialize_breakpoint): "breakpoint always-inserted" option is
3484 now a boolean command. Update help text.
3485 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3486 (breakpoints_should_be_inserted_now): New declaration.
3487 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3488 Remove breakpoints_always_inserted_mode check.
3489 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3490 * remote.c (remote_start_remote): Likewise.
3491
3492 2014-09-22 Pedro Alves <palves@redhat.com>
3493
3494 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3495 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3496 Instead, pass UGLL_INSERT to update_global_location_list.
3497 (update_global_location_list): Change parameter type from boolean
3498 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3499 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3500 (create_solib_event_breakpoint_1): New, factored out from ...
3501 (create_solib_event_breakpoint): ... this.
3502 (create_and_insert_solib_event_breakpoint): Use
3503 create_solib_event_breakpoint_1 instead of calling
3504 insert_breakpoint_locations manually.
3505 (update_global_location_list): Handle UGLL_INSERT.
3506
3507 2014-09-22 Pedro Alves <palves@redhat.com>
3508
3509 * breakpoint.c (enum ugll_insert_mode): New enum.
3510 (update_global_location_list)
3511 (update_global_location_list_nothrow): Change parameter type from
3512 boolean to enum ugll_insert_mode. All callers adjusted.
3513
3514 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3515
3516 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3517 SystemTap support in GDB.
3518
3519 2014-09-19 Don Breazeal <donb@codesourcery.com>
3520
3521 * linux-nat.c (linux_handle_extended_wait): Call
3522 linux_ptrace_get_extended_event.
3523 (wait_lwp): Call linux_is_extended_waitstatus.
3524 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3525 and linux_is_extended_waitstatus.
3526 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3527 linux_ptrace_get_extended_event.
3528 (linux_ptrace_get_extended_event): New function.
3529 (linux_is_extended_waitstatus): New function.
3530 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3531 (linux_is_extended_waitstatus): New declarations.
3532
3533 2014-09-19 Yao Qi <yao@codesourcery.com>
3534
3535 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3536 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3537 comments. Callers update.
3538 (dwarf_decode_lines): Likewise.
3539 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3540 comments. Skip the line table if 'lowpc' is greater than
3541 'address'. Don't check
3542 dwarf2_per_objfile->has_section_at_zero.
3543
3544 2014-09-18 Doug Evans <dje@google.com>
3545
3546 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3547 * python/py-symtab.c (stpy_get_producer): New function.
3548 (symtab_object_getset): Add "producer" attribute.
3549
3550 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3551
3552 PR gdb/17384
3553 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3554 (do_captured_read_memory_integer): Remove.
3555 (safe_read_memory_integer): Use target_read_memory directly instead
3556 of catching errors in do_captured_read_memory_integer.
3557
3558 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3559
3560 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3561 not gdb/doc.
3562
3563 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3564
3565 * objc-lang.c (find_implementation_from_class): Remove dead code.
3566
3567 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3568
3569 PR cli/7233
3570 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3571 "fprintf_unfiltered (gdb_stdlog...)".
3572
3573 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3574
3575 PR breakpoints/12526
3576 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3577 val_bitsize.
3578 * breakpoint.c (watch_command_1): Use these fields to retain
3579 bitfield information.
3580 (extract_bitfield_from_watchpoint_value): New function.
3581 (watchpoint_check): Use it.
3582 (update_watchpoint): Use it. Optimize the address and length of a
3583 HW watchpoint pointing to a bitfield.
3584 * value.h (unpack_value_bitfield): New prototype.
3585 * value.c (unpack_value_bitfield): Make extern.
3586
3587 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3588
3589 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3590 x86-dregs.o.
3591 * gnu-nat.c (inf_threads): New function.
3592 * gnu-nat.h (inf_threads_ftype): New typedef.
3593 (inf_threads): New declaration.
3594 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3595 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3596 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3597 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3598 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3599 (i386_gnu_dr_get_control): New functions.
3600 (reg_addr): New structure.
3601 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3602 i386 debugging register hooks.
3603 * NEWS: Mention this.
3604
3605 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3606
3607 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3608 vector data transfer instructions.
3609 (arm_record_coproc_data_proc): Updated.
3610
3611 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3612
3613 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3614 arm_record_exreg_ld_st_insn.
3615 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3616 load/store insns.
3617
3618 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3619
3620 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3621 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3622 processing instructions.
3623
3624 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3625
3626 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3627 for advance SIMD struct ld/st insn.
3628 (thumb2_record_decode_insn_handler): Replace stub handler with
3629 thumb2_record_asimd_struct_ld_st.
3630
3631 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3632
3633 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3634 for asimd, vfp and coprocessor insns.
3635 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3636 and coprocessor insns.
3637 (thumb2_record_coproc_insn): New function.
3638 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3639 handlers.
3640 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3641 opcode 110 insns.
3642
3643 2014-09-13 Doug Evans <xdje42@gmail.com>
3644
3645 * NEWS: Mention new "queue-signal" command.
3646 * infcmd.c (queue_signal_command): New function.
3647 (_initialize_infcmd): Add new queue-signal command.
3648
3649 2014-09-13 Doug Evans <xdje42@gmail.com>
3650
3651 * linux-nat.c (wait_lwp): Add debugging printf.
3652 (linux_nat_wait_1): Ditto.
3653
3654 2014-09-12 Pedro Alves <palves@redhat.com>
3655
3656 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3657 (create_and_insert_solib_event_breakpoint): New functions.
3658 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3659 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3660 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3661 (remove_dbx_link_breakpoint): Delete function.
3662 (insert_dbx_link_bpt_in_file): Use
3663 create_and_insert_solib_event_breakpoint instead of
3664 deprecated_insert_raw_breakpoint.
3665 (procfs_wait): Don't check whether we hit __dbx_link here.
3666 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3667 here.
3668 * solib-irix.c (base_breakpoint): Delete global.
3669 (disable_break): Delete function.
3670 (enable_break): Use create_solib_event_breakpoint
3671 instead of deprecated_insert_raw_breakpoint.
3672 (irix_solib_handle_event): New function.
3673 (irix_solib_create_inferior_hook): Don't run the target or disable
3674 the mapping-complete breakpoint here.
3675 (_initialize_irix_solib): Install irix_solib_handle_event as
3676 so_ops->handle_event hook.
3677
3678 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3679 Ulrich Weigand  <uweigand@de.ibm.com>
3680
3681 PR tdep/17379
3682 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3683 instead of read_memory_unsigned_integer.
3684
3685 2014-09-12 Gary Benson <gbenson@redhat.com>
3686
3687 * nat/linux-waitpid.c: Include common-defs.h.
3688 [GDBSERVER]: Add FIXME comment.
3689 [!GDBSERVER]: Don't include defs.h or signal.h.
3690 (linux_debug) [!GDBSERVER]: Remove empty block.
3691
3692 2014-09-12 Gary Benson <gbenson@redhat.com>
3693
3694 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3695 Don't include defs.h or server.h.
3696
3697 2014-09-12 Gary Benson <gbenson@redhat.com>
3698
3699 * nat/linux-btrace.c: Include common-defs.h.
3700 Don't include defs.h, server.h or gdbthread.h.
3701 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3702
3703 2014-09-12 Gary Benson <gbenson@redhat.com>
3704
3705 * common/agent.c: Include common-defs.h.
3706 Don't include defs.h or server.h.
3707 * common/buffer.c: Likewise.
3708 * common/common-debug.c: Likewise.
3709 * common/common-utils.c: Likewise.
3710 * common/errors.c: Likewise.
3711 * common/filestuff.c: Likewise.
3712 * common/format.c: Likewise.
3713 * common/gdb_vecs.c: Likewise.
3714 * common/print-utils.c: Likewise.
3715 * common/ptid.c: Likewise.
3716 * common/rsp-low.c: Likewise.
3717 * common/signals.c: Likewise.
3718 * common/vec.c: Likewise.
3719 * common/xml-utils.c: Likewise.
3720 * nat/linux-osdata.c: Likewise.
3721 * nat/linux-procfs.c: Likewise.
3722 * nat/linux-ptrace.c: Likewise.
3723 * nat/mips-linux-watch.c: Likewise.
3724 * target/waitstatus.c: Likewise.
3725
3726 2014-09-12 Tom Tromey <tromey@redhat.com>
3727 Gary Benson <gbenson@redhat.com>
3728
3729 * common/common-regcache.h: New file.
3730 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3731 * regcache.h: Include common-regcache.h.
3732 (regcache_read_pc): Don't declare.
3733 * regcache.c (get_thread_regcache_for_ptid): New function.
3734 * nat/linux-btrace.c: Don't include regcache.h.
3735 Include common-regcache.h.
3736 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3737
3738 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3739
3740 * regcache.h (struct regset): Declare.
3741
3742 2014-09-11 Pedro Alves <palves@redhat.com>
3743
3744 PR gdb/17347
3745 * main.c: Include "infrun.h".
3746 (catch_command_errors, catch_command_errors_const): Wait for the
3747 foreground command to complete.
3748 * top.c (maybe_wait_sync_command_done): New function, factored out
3749 from ...
3750 (maybe_wait_sync_command_done): ... here.
3751 * top.h (maybe_wait_sync_command_done): New declaration.
3752
3753 2014-09-11 Tom Tromey <tromey@redhat.com>
3754 Gary Benson <gbenson@redhat.com>
3755
3756 * common/symbol.h: New file.
3757 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3758 * minsyms.c (find_minimal_symbol_address): New function.
3759 * common/agent.c: Include common/symbol.h.
3760 [!GDBSERVER]: Don't include objfiles.h.
3761 (agent_look_up_symbols): Use find_minimal_symbol_address.
3762
3763 2014-09-11 Gary Benson <gbenson@redhat.com>
3764
3765 * target/target.h (target_stop_ptid, target_continue_ptid):
3766 Declare.
3767 * target.c (target_stop_ptid, target_continue_ptid): New
3768 functions.
3769 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3770 (agent_run_command): Always use target_stop_ptid and
3771 target_continue_ptid.
3772
3773 2014-09-11 Tom Tromey <tromey@redhat.com>
3774 Gary Benson <gbenson@redhat.com>
3775
3776 * target/target.h: New file.
3777 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3778 * target.h: Include target/target.h.
3779 (target_read_memory, target_write_memory): Don't declare.
3780 * target.c (target_read_uint32): New function.
3781 * common/agent.c: Include target/target.h.
3782 [!GDBSERVER]: Don't include target.h.
3783 (helper_thread_id): Type changed to uint32_t.
3784 (agent_get_helper_thread_id): Use target_read_uint32.
3785 (agent_run_command): Always use target_read_memory and
3786 target_write_memory.
3787 (agent_capability): Type changed to uint32_t.
3788 (agent_capability_check): Use target_read_uint32.
3789
3790 2014-09-11 Gary Benson <gbenson@redhat.com>
3791
3792 * common/common-debug.h (show_debug_regs): Declare.
3793 * common/common-debug.c (show_debug_regs): Define.
3794 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3795 all uses with show_debug_regs. Replace all uses that considered
3796 debug_hw_points as a multi-value integer with straight boolean
3797 uses.
3798 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3799 with show_debug_regs.
3800 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3801 all uses with show_debug_regs.
3802 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3803 uses with show_debug_regs.
3804
3805 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3806
3807 * findvar.c (address_from_register): Handle targets requiring
3808 a special conversion routine even for plain pointer types.
3809
3810 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3811
3812 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3813 (store_register): Do not call exec_one_dummy_insn.
3814
3815 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3816
3817 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3818 dereference it first. Use value_enclosing_type instead of
3819 value_type.
3820 (ada_array_length): Likewise.
3821
3822 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3823
3824 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3825 Adjust function implementation and documentation accordingly.
3826 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3827 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3828 Update call to ada_value_ptr_subscript.
3829
3830 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3831
3832 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3833 instead of VAL's type.
3834
3835 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3836
3837 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3838
3839 2014-09-09 Doug Evans <xdje42@gmail.com>
3840
3841 PR guile/17367
3842 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3843 last parameter to pkg-config, not first.
3844 * configure.ac: Pass --with-guile provided pkg-config path to
3845 GDB_GUILE_PROGRAM_NAMES.
3846 * configure: Regenerate.
3847
3848 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3849
3850 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3851 Bertazi".
3852
3853 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3854
3855 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3856 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3857 the list of sections determining GDB_OSABI_IRIX.
3858
3859 2014-09-09 James Hogan <james.hogan@imgtec.com>
3860
3861 * MAINTAINERS (Write After Approval): Add "James Hogan".
3862
3863 2014-09-09 James Hogan <james.hogan@imgtec.com>
3864
3865 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3866
3867 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3868
3869 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3870
3871 2014-09-08 Doug Evans <xdje42@gmail.com>
3872
3873 PR 17247
3874 * guile.c: #include <signal.h>.
3875 (_initialize_guile): Block SIGCHLD while initializing Guile.
3876
3877 Replaces the following, which is reverted.
3878
3879 2014-07-26 Doug Evans <xdje42@gmail.com>
3880
3881 PR 17185
3882 * configure.ac: Add check for header gc/gc.h.
3883 Add check for function setenv.
3884 * configure: Regenerate.
3885 * config.in: Regenerate.
3886 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3887
3888 2014-09-08 Doug Evans <xdje42@gmail.com>
3889
3890 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3891 with named constant. Fix style of pointer comparison.
3892 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3893
3894 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3895
3896 PR gdb/17035
3897 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3898 decide whether we display the command on "show user".
3899 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3900 printing command name.
3901 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3902 * cli/cli-decode.c (cli_user_command_p): Create helper function
3903 to verify whether cmd_list_element is a user-defined command.
3904
3905 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3906
3907 PR python/17355
3908 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3909 Fix goto out of TRY_CATCH.
3910
3911 2014-09-06 Doug Evans <xdje42@gmail.com>
3912 Tom Tromey <tromey@redhat.com>
3913
3914 PR 15276
3915 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3916 $_any_caller_matches.
3917 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3918 * python/lib/gdb/function/caller_is.py: New file.
3919
3920 2014-09-06 Doug Evans <xdje42@gmail.com>
3921
3922 * infcmd.c (program_info): Fix typo.
3923
3924 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3925
3926 PR gdb/17235
3927 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3928 'number'. New variable 'has_digit'. Rewrite code to deal with
3929 subexpressions on SDT probes.
3930
3931 2014-09-04 Pedro Alves <palves@redhat.com>
3932
3933 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3934 the input is only one character long.
3935
3936 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3937
3938 PR fortran/17237
3939 * f-valprint.c (f_val_print): Specify the correct print option to
3940 use when printing integer values.
3941
3942 2014-09-04 Gary Benson <gbenson@redhat.com>
3943
3944 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3945 Remove code to cope with LWPs wrapped as PIDs.
3946 Add assertions to ensure no wrapped LWPs are passed.
3947
3948 2014-09-04 Pedro Alves <palves@redhat.com>
3949
3950 * value.c (value_ranges_copy_adjusted): New function, factored out
3951 from ...
3952 (value_contents_copy_raw): ... here.
3953 (unpack_value_bits_as_long_1): Rename back to ...
3954 (unpack_bits_as_long): ... this. Remove 'original_value' and
3955 'result' parameters. Change return type to LONGEST.
3956 (unpack_value_bits_as_long): Delete.
3957 (unpack_value_field_as_long_1): Delete.
3958 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3959 (unpack_value_bitfield): New function.
3960 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3961 (value_fetch_lazy): Use unpack_value_bitfield.
3962 * value.h (unpack_value_bits_as_long): Delete declaration.
3963
3964 2014-09-03 Sasha Smundak <asmundak@google.com>
3965
3966 * python/py-frame.c (frapy_read_register): New function.
3967
3968 2014-09-03 James Hogan <james.hogan@imgtec.com>
3969
3970 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3971 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3972
3973 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3974
3975 PR python/16699
3976 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3977 function.
3978 (add_cmd): Set "completer_handle_brkchars" to NULL.
3979 * cli/cli-decode.h (struct cmd_list_element)
3980 <completer_handle_brkchars>: New field.
3981 * command.h (completer_ftype_void): New typedef.
3982 (set_cmd_completer_handle_brkchars): New prototype.
3983 * completer.c (set_gdb_completion_word_break_characters): New
3984 function.
3985 (complete_line_internal): Call "completer_handle_brkchars"
3986 callback from command.
3987 * completer.h: Include "command.h".
3988 (set_gdb_completion_word_break_characters): New prototype.
3989 * python/py-cmd.c (cmdpy_completer_helper): New function.
3990 (cmdpy_completer_handle_brkchars): New function.
3991 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3992 (cmdpy_init): Set completer_handle_brkchars to
3993 cmdpy_completer_handle_brkchars.
3994
3995 2014-09-03 Gary Benson <gbenson@redhat.com>
3996
3997 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3998 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3999 Loop conditions changed to equivalent form.
4000 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4001 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4002 ALL_DEBUG_ADDRESS_REGISTERS.
4003
4004 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4005
4006 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4007 description fix.
4008
4009 2014-09-02 Doug Evans <dje@google.com>
4010
4011 * typeprint.c (find_global_typedef): Fix comment.
4012
4013 2014-09-02 Gary Benson <gbenson@redhat.com>
4014
4015 * i386-nat.h: Renamed as...
4016 * x86-nat.h: New file. All type, function and variable name
4017 prefixes changed from "i386_" to "x86_". All references updated.
4018 * i386-nat.c: Renamed as...
4019 * x86-nat.c: New file. All type, function and variable name
4020 prefixes changed from "i386_" to "x86_". All references updated.
4021 * common/i386-xstate.h: Renamed as...
4022 * common/x86-xstate.h: New file. All type, function and variable
4023 name prefixes changed from "i386_" to "x86_". All references
4024 updated.
4025 * nat/i386-cpuid.h: Renamed as...
4026 * nat/x86-cpuid.h: New file. All type, function and variable name
4027 prefixes changed from "i386_" to "x86_". All references updated.
4028 * nat/i386-gcc-cpuid.h: Renamed as...
4029 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4030 name prefixes changed from "i386_" to "x86_". All references
4031 updated.
4032 * nat/i386-dregs.h: Renamed as...
4033 * nat/x86-dregs.h: New file. All type, function and variable name
4034 prefixes changed from "i386_" to "x86_". All references updated.
4035 * nat/i386-dregs.c: Renamed as...
4036 * nat/x86-dregs.c: New file. All type, function and variable name
4037 prefixes changed from "i386_" to "x86_". All references updated.
4038
4039 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4040
4041 * varobj.c (_initialize_varobj): Move to the end of file.
4042
4043 2014-08-29 Gary Benson <gbenson@redhat.com>
4044
4045 * common/common-exceptions.h: New file.
4046 * common/common-exceptions.c: Likewise.
4047 * Makefile.in (SFILES): Add common/common-exceptions.c.
4048 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4049 (COMMON_OBS): Add common-exceptions.o.
4050 (common-exceptions.o): New rule.
4051 * exceptions.h (common-exceptions.h): Include.
4052 (gdb_setjmp.h): Do not include.
4053 (return_reason): Moved to common-exceptions.h.
4054 (enum return_reason): Likewise.
4055 (RETURN_MASK): Likewise.
4056 (typedef return_mask): Likewise.
4057 (enum errors): Likewise.
4058 (struct gdb_exception): Likewise.
4059 (exceptions_state_mc_init): Likewise.
4060 (exceptions_state_mc_action_iter): Likewise.
4061 (exceptions_state_mc_action_iter_1): Likewise.
4062 (TRY_CATCH): Likewise.
4063 (throw_exception): Likewise.
4064 (throw_verror): Likewise.
4065 (throw_vquit): Likewise.
4066 (throw_error): Likewise.
4067 (throw_quit): Likewise.
4068 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4069 (enum catcher_action): Likewise.
4070 (struct catcher): Likewise.
4071 (current_catcher): Likewise.
4072 (catcher_list_size): Likewise.
4073 (exceptions_state_mc_init): Likewise.
4074 (catcher_pop): Likewise.
4075 (exceptions_state_mc): Likewise.
4076 (exceptions_state_mc_action_iter): Likewise.
4077 (exceptions_state_mc_action_iter_1): Likewise.
4078 (throw_exception): Likewise.
4079 (exception_messages): Likewise.
4080 (exception_messages_size): Likewise.
4081 (throw_it): Likewise.
4082 (throw_verror): Likewise.
4083 (throw_vquit): Likewise.
4084 (throw_error): Likewise.
4085 (throw_quit): Likewise.
4086 (prepare_to_throw_exception): New function.
4087
4088 2014-08-29 Gary Benson <gbenson@redhat.com>
4089
4090 * common/gdb_setjmp.h: New file.
4091 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4092 * configure.ac: Move sigsetjmp check...
4093 * common/common.m4: ...here.
4094 * configure: Regenerate.
4095 * cp-support.c (SIGJMP_BUF): Delete.
4096 (SIGSETJMP): Likewise.
4097 (SIGLONGJMP): Likewise.
4098 * exceptions.h (gdb_setjmp.h): Include.
4099 (setjmp.h): Do not include.
4100 (EXCEPTIONS_SIGJMP_BUF): Delete.
4101 (EXCEPTIONS_SIGSETJMP): Likewise.
4102 (EXCEPTIONS_SIGLONGJMP): Likewise.
4103 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4104 from gdb_setjmp.h.
4105 * exceptions.c: Likewise.
4106
4107 2014-08-29 Gary Benson <gbenson@redhat.com>
4108
4109 * cleanups.h: Moved to...
4110 * common/cleanups.h: New file.
4111 * cleanups.c: Moved to...
4112 * common/cleanups.c: New file. Include common-defs.h and
4113 cleanups.h. Do not include defs.h.
4114 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4115 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4116 (cleanups.o): New rule.
4117
4118 2014-08-29 Gary Benson <gbenson@redhat.com>
4119
4120 * common/errors.h (internal_warning): New declaration.
4121 (internal_vwarning): Likewise.
4122 * common/errors.c (internal_warning): New function.
4123 * utils.h (internal_warning): Don't declare.
4124 (internal_vwarning): Likewise.
4125 * utils.c (internal_warning): Removed.
4126
4127 2014-08-29 Gary Benson <gbenson@redhat.com>
4128
4129 * main.c (captured_main): Use warning during startup.
4130 Prefix startup warning messages with command name.
4131
4132 2014-08-29 Gary Benson <gbenson@redhat.com>
4133
4134 * main.c (captured_main): Handle usage errors with error.
4135
4136 2014-08-29 Gary Benson <gbenson@redhat.com>
4137
4138 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4139 exit pair with a call to error. Wrap the message with _().
4140
4141 2014-08-29 Gary Benson <gbenson@redhat.com>
4142
4143 * main.c (captured_main): Replace a fprintf/exit
4144 pair with a call to error. Wrap the message with _().
4145
4146 2014-08-29 Gary Benson <gbenson@redhat.com>
4147
4148 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4149 pairs with calls to error. Wrap the message with _().
4150
4151 2014-08-29 Gary Benson <gbenson@redhat.com>
4152
4153 * utils.c (vwarning): Protect calls to target_terminal_ours
4154 and wrap_here.
4155
4156 2014-08-29 Gary Benson <gbenson@redhat.com>
4157
4158 * exceptions.c (print_flush): Protect calls to
4159 target_terminal_ours and wrap_here.
4160
4161 2014-08-29 Gary Benson <gbenson@redhat.com>
4162
4163 * utils.h (filtered_printing_initialized): New declaration.
4164 * utils.c (abort_with_message): New function.
4165 (internal_vproblem): Use abort_with_message for first level
4166 recursive internal problems, and if gdb_stderr is not set up.
4167 Protect calls to target_terminal_ours, begin_line and query.
4168
4169 2014-08-28 Doug Evans <dje@google.com>
4170
4171 * symtab.c (in_prologue): Move definition to better spot.
4172 (skip_prologue_using_sal): Ditto.
4173
4174 2014-08-28 Doug Evans <dje@google.com>
4175
4176 * symtab.c (find_function_start_sal): Move definition to better spot.
4177
4178 2014-08-28 Yao Qi <yao@codesourcery.com>
4179
4180 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4181 found_stack_adjust in forward scan. Remove condition check
4182 on found_stack_adjust which is always true. Indent the code.
4183
4184 2014-08-28 Yao Qi <yao@codesourcery.com>
4185
4186 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4187 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4188 (dwarf_decode_lines): Remove argument
4189 want_line_info. Remove condition check on want_line_info.
4190 Callers update.
4191
4192 2014-08-27 Doug Evans <dje@google.com>
4193
4194 * dwarf2read.c (dwarf_record_line): Fix typo.
4195
4196 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4197
4198 * target.h (struct target_ops::to_terminal_save_ours): Remove
4199 declaration.
4200 (target_terminal_save_ours): Remove macro.
4201 * target-delegates.c: Regenerate.
4202 * inf-child.c (inf_child_target): Don't set the nonexistent
4203 field to_terminal_save_ours.
4204 * inferior.h (child_terminal_save_ours): Remove declaration.
4205 * terminal.h (gdb_save_tty_state): New declaration.
4206 * inflow.c (child_terminal_save_ours): Rename to ...
4207 (gdb_save_tty_state): ... this.
4208 * tui/tui.c: Include terminal.h.
4209 (tui_enable): Use gdb_save_tty_state instead of
4210 target_terminal_save_ours.
4211 (tui_disable): Likewise.
4212
4213 2014-08-25 Doug Evans <dje@google.com>
4214
4215 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4216 Pass NULL instead of 0 for context pointer.
4217
4218 2014-08-25 Yao Qi <yao@codesourcery.com>
4219
4220 * dwarf2read.c: Fix grammatical error.
4221
4222 2014-08-24 Yao Qi <yao@codesourcery.com>
4223
4224 * dwarf2read.c (scan_partial_symbols): Update comments.
4225 Rename argument 'need_pc' with 'set_addrmap'.
4226 (add_partial_namespace): Rename argument 'need_pc' with
4227 'set_addrmap'.
4228 (add_partial_module): Likewise.
4229 (add_partial_subprogram): Likewise. Update comments.
4230 (dwarf2_name): Fix typo.
4231
4232 2014-08-22 Doug Evans <dje@google.com>
4233
4234 PR 17276
4235 * dwarf2read.c (dwarf_record_line_p): New function.
4236 (dwarf_decode_lines_1): Ignore subsequent line number entries
4237 for the same line if any entry had a non-zero discriminator.
4238
4239 2014-08-22 Doug Evans <dje@google.com>
4240
4241 * buildsym.h (record_line_ftype): New typedef.
4242 (record_line): Use it.
4243 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4244 (dwarf_decode_lines_1): Call them.
4245
4246 2014-08-22 Yao Qi <yao@codesourcery.com>
4247
4248 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4249 (ctf_end): Remove code.
4250
4251 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4252
4253 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4254 (linux_make_corefile_notes): call update_thread_list, protected against
4255 exceptions.
4256
4257 2014-08-21 Pedro Alves <palves@redhat.com>
4258
4259 * infcmd.c (attach_command): Remove comment.
4260
4261 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4262
4263 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4264 unsigned LONGEST to ULONGEST.
4265
4266 2014-08-20 Pedro Alves <palves@redhat.com>
4267
4268 * Makefile.in (check-read1): New rule.
4269
4270 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4271
4272 * value.c (value_from_contents_and_address): Strip resolved_type's
4273 typedef layers before checking its TYPE_DATA_LOCATION.
4274
4275 2014-08-20 Pedro Alves <palves@redhat.com>
4276
4277 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4278
4279 2014-08-20 Yao Qi <yao@codesourcery.com>
4280
4281 * amd64-tdep.c (amd64_classify): Add a blank line after the
4282 example. Move "*/" to a new line.
4283 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4284 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4285 * dwarf2read.c (psymtab_include_file_name): Likewise.
4286
4287 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4288 Pedro Alves <palves@redhat.com>
4289
4290 PR symtab/14604
4291 PR symtab/14605
4292 * ada-lang.c (coerce_unspec_val_to_type): Use
4293 value_contents_copy_raw.
4294 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4295 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4296 * cp-valprint.c (cp_print_value_fields): Let the common printing
4297 code handle optimized out values.
4298 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4299 * d-valprint.c (dynamic_array_type): Use
4300 value_bits_any_optimized_out.
4301 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4302 check_any_valid fields.
4303 (check_pieced_value_bits): Delete and inline ...
4304 (check_pieced_synthetic_pointer): ... here.
4305 (check_pieced_value_validity): Delete.
4306 (check_pieced_value_invalid): Delete.
4307 (pieced_value_funcs): Remove check_validity and check_any_valid
4308 fields.
4309 (read_pieced_value): Use mark_value_bits_optimized_out.
4310 (write_pieced_value): Switch to use
4311 mark_value_bytes_optimized_out.
4312 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4313 of assuming the whole value is optimized out.
4314 * findvar.c (read_frame_register_value): Remove special handling
4315 of optimized out registers.
4316 (value_from_register): Use mark_value_bytes_optimized_out.
4317 * frame-unwind.c (frame_unwind_got_optimized): Use
4318 mark_value_bytes_optimized_out.
4319 * jv-valprint.c (java_value_print): Adjust.
4320 (java_print_value_fields): Let the common printing code handle
4321 optimized out values.
4322 * mips-tdep.c (mips_print_register): Remove special handling of
4323 optimized out registers.
4324 * opencl-lang.c (lval_func_check_validity): Delete.
4325 (lval_func_check_any_valid): Delete.
4326 (opencl_value_funcs): Remove check_validity and check_any_valid
4327 fields.
4328 * p-valprint.c (pascal_object_print_value_fields): Let the common
4329 printing code handle optimized out values.
4330 * stack.c (read_frame_arg): Remove special handling of optimized
4331 out values. Fetch both VAL and ENTRYVAL before comparing
4332 contents. Adjust to value_available_contents_eq rename.
4333 * valprint.c (valprint_check_validity)
4334 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4335 (val_print_array_elements): Adjust.
4336 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4337 (value_bits_any_optimized_out): New function.
4338 (value_entirely_covered_by_range_vector): New function, factored
4339 out from value_entirely_unavailable.
4340 (value_entirely_unavailable): Reimplement.
4341 (value_entirely_optimized_out): New function.
4342 (insert_into_bit_range_vector): New function, factored out from
4343 mark_value_bits_unavailable.
4344 (mark_value_bits_unavailable): Reimplement.
4345 (struct ranges_and_idx): New struct.
4346 (find_first_range_overlap_and_match): New function, factored out
4347 from value_available_contents_bits_eq.
4348 (value_available_contents_bits_eq): Rename to ...
4349 (value_contents_bits_eq): ... this. Check both unavailable
4350 contents and optimized out contents.
4351 (value_available_contents_eq): Rename to ...
4352 (value_contents_eq): ... this.
4353 (allocate_value_lazy): Remove reference to the old optimized_out
4354 boolean.
4355 (allocate_optimized_out_value): Use
4356 mark_value_bytes_optimized_out.
4357 (require_not_optimized_out): Adjust to check whether the
4358 optimized_out vec is empty.
4359 (ranges_copy_adjusted): New function, factored out from
4360 value_contents_copy_raw.
4361 (value_contents_copy_raw): Also copy the optimized out ranges.
4362 Assert the destination ranges aren't optimized out.
4363 (value_contents_copy): Update comment, remove call to
4364 require_not_optimized_out.
4365 (value_contents_equal): Adjust to check whether the optimized_out
4366 vec is empty.
4367 (set_value_optimized_out, value_optimized_out_const): Delete.
4368 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4369 New functions.
4370 (value_entirely_optimized_out, value_bits_valid): Delete.
4371 (value_copy): Take a VEC copy of the 'optimized_out' field.
4372 (value_primitive_field): Remove special handling of optimized out.
4373 (value_fetch_lazy): Assert that lazy values have no unavailable
4374 regions. Use value_bits_any_optimized_out. Remove some special
4375 handling for optimized out values.
4376 * value.h: Add intro comment about <optimized out> and
4377 <unavailable>.
4378 (struct lval_funcs): Remove check_validity and check_any_valid
4379 fields.
4380 (set_value_optimized_out, value_optimized_out_const): Remove.
4381 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4382 New declarations.
4383 (value_bits_any_optimized_out): New declaration.
4384 (value_bits_valid): Delete declaration.
4385 (value_available_contents_eq): Rename to ...
4386 (value_contents_eq): ... this, and extend comments.
4387
4388 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4389
4390 Fix -fsanitize=address on unreadable inferior strings.
4391 * valprint.c (val_print_string): Fix access before BUFFER.
4392
4393 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4394
4395 * target.c (target_struct_size): Remove.
4396 (target_struct_allocsize): Remove.
4397 (DEFAULT_ALLOCSIZE): Remove.
4398 (target_ops_p): New typedef.
4399 (DEF_VEC_P (target_ops_p)): New vector type.
4400 (target_structs): Change type to VEC (target_ops_p).
4401 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4402 (find_default_run_target): Rewrite for loop following changes to
4403 target_structs.
4404
4405 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4406
4407 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4408 Adjust code accordingly. Adjust function description comment.
4409
4410 2014-08-19 Yao Qi <yao@codesourcery.com>
4411
4412 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4413 types.
4414
4415 2014-08-19 Alan Modra <amodra@gmail.com>
4416
4417 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4418 * config.in: Regenerate.
4419 * configure: Regenerate.
4420
4421 2014-08-19 Tom Tromey <tromey@redhat.com>
4422 Gary Benson <gbenson@redhat.com>
4423
4424 * common/common-debug.h: New file.
4425 * common/common-debug.c: Likewise.
4426 * debug.c: Likewise.
4427 * Makefile.in (SFILES): Add common/common-debug.c.
4428 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4429 (COMMON_OBS): Add common-debug.o and debug.o.
4430 (common-debug.o): New rule.
4431 * common/common-defs.h: Include common-debug.h.
4432 * common/agent.c (debug_agent_printf): New function.
4433 (DEBUG_AGENT): Redefine.
4434 * nat/i386-dregs.c (debug_printf): Undefine.
4435
4436 2014-08-19 Gary Benson <gbenson@redhat.com>
4437
4438 * common/common-defs.h: Include print-utils.h.
4439 * utils.h: Do not include print-utils.h.
4440
4441 2014-08-19 Tom Tromey <tromey@redhat.com>
4442 Gary Benson <gbenson@redhat.com>
4443
4444 * common/common-types.h: New file.
4445 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4446 * common/common-defs.h: Include common-types.h.
4447 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4448 (ULONGEST): Remove.
4449
4450 2014-08-19 Tom Tromey <tromey@redhat.com>
4451 Gary Benson <gbenson@redhat.com>
4452
4453 * common/errors.h: New file.
4454 * common/errors.c: Likewise.
4455 * Makefile.in (SFILES): Add common/errors.c.
4456 (HFILES_NO_SRCDIR): Add common/errors.h.
4457 (COMMON_OBS): Add errors.o.
4458 (errors.o): New rule.
4459 * common/common-defs.h: Include errors.h.
4460 * utils.h (perror_with_name, error, verror, warning, vwarning):
4461 Don't declare.
4462 * common/common-utils.h: (malloc_failure, internal_error):
4463 Likewise.
4464
4465 2014-08-19 Gary Benson <gbenson@redhat.com>
4466
4467 * utils.c (internal_vproblem): Always print the message.
4468
4469 2014-08-18 Doug Evans <dje@google.com>
4470
4471 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4472
4473 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4474
4475 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4476 Return 0 if TYPE is dynamic.
4477 (print_range): Add handling of dynamic ranges.
4478
4479 2014-08-18 Keven Boell <keven.boell@intel.com>
4480 Joel Brobecker <brobecker@adacore.com>
4481
4482 * gdbtypes.h (struct main_type): Add field "data_location".
4483 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4484 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4485 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4486 a dynamic data location.
4487 (resolve_dynamic_type): Add DW_AT_data_location handling.
4488 (copy_recursive, copy_type): Copy the data_location information
4489 when present.
4490 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4491 * value.c (value_from_contents_and_address): Add
4492 DW_AT_data_location handling.
4493
4494 2014-08-18 Keven Boell <keven.boell@intel.com>
4495 Joel Brobecker <brobecker@adacore.com>
4496
4497 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4498 field "get_object_address".
4499 * dwarf2expr.c (execute_stack_op): Add handling for
4500 DW_OP_push_object_address.
4501 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4502 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4503 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4504 (dwarf_expr_get_obj_addr): New function.
4505 (dwarf_expr_ctx_funcs): Add get_object_address field.
4506 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4507 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4508 (dwarf2_evaluate_property): Add parameter "address". Use it.
4509 (needs_get_obj_addr): New function.
4510 (needs_frame_ctx_funcs): Add get_object_address field.
4511 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4512 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4513 (resolve_dynamic_array): Likewise.
4514
4515 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4516
4517 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4518 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4519 fixed value for records and unions for which some GNAT encodings
4520 are present.
4521
4522 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4523
4524 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4525 rewrite to avoid "else if" and "else" constructs. Should be
4526 a no-op in practice.
4527
4528 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4529
4530 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4531 of lexical block.
4532
4533 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4534
4535 PR c++/17132
4536 * eval.c: Update all calls to find_overload_match.
4537 * valarith.c: Likewise.
4538 (value_user_defined_cpp_op, value_user_defined_op): New
4539 argument NOSIDE. Update all callers.
4540 * valops.c (find_overload_match): New argument NOSIDE.
4541 * value.h (find_overload_match): Update signature.
4542
4543 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4544
4545 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4546 'items' methods instead of 'iteritems' method on dictionaries.
4547
4548 2014-08-15 Doug Evans <dje@google.com>
4549
4550 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4551 closer to use.
4552
4553 2014-08-15 Doug Evans <dje@google.com>
4554
4555 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4556
4557 2014-08-15 Doug Evans <dje@google.com>
4558
4559 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4560
4561 2014-08-15 Doug Evans <dje@google.com>
4562
4563 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4564 unused.
4565
4566 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4567
4568 * dcache.h: Include target.h, to avoid compile time warnings.
4569
4570 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4571
4572 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4573 frame_info" partial declaration.
4574 * gdbarch.h: Regenerate.
4575
4576 2014-08-15 Yao Qi <yao@codesourcery.com>
4577
4578 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4579 Add parameter 'decode_for_pst_p'. Callers update.
4580
4581 2014-08-13 Yao Qi <yao@codesourcery.com>
4582
4583 PR build/17104
4584 * configure.ac: Use local variable 'pos'.
4585 * configure: Regenerated.
4586
4587 2014-08-11 Doug Evans <dje@google.com>
4588
4589 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4590 message, it is redundant with "Reading symbols from ..." message.
4591
4592 2014-08-10 Doug Evans <xdje42@gmail.com>
4593
4594 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4595
4596 2014-08-09 Yao Qi <yao@codesourcery.com>
4597
4598 PR remote/9053
4599 * remote.c (remote_xfer_partial): Remove dead code.
4600
4601 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4602
4603 * ia64-linux-tdep.c: Include "regset.h".
4604 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4605 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4606 (ia64_linux_supply_fpregset): New function.
4607 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4608 (ia64_linux_regset_from_core_section): New function.
4609 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4610 method.
4611
4612 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4613
4614 * m68klinux-tdep.c: Include "regset.h".
4615 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4616 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4617 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4618 (m68k_linux_regset_from_core_section): New function.
4619 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4620 method.
4621
4622 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623
4624 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4625 function. Move logic to...
4626 (tilegx_linux_regmap): ... this new register map.
4627 (tilegx_linux_regset): Refer to register map, replace supply
4628 method by regcache_supply_regset, and add collect method.
4629 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4630 TILEGX_FIRST_EASY_REGNUM.
4631
4632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4633
4634 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4635 that calls regcache_supply_regset and handles the EPC register
4636 separately. Move main logic to...
4637 (score7_linux_gregmap): ... this new register map.
4638 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4639 (score7_linux_gregset): Refer to register map. Add collect method.
4640 (score7_linux_regset_from_core_section): Replace
4641 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4642 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4643 (struct regset): Delete unused forward declaraction.
4644 (struct pt_regs): Delete structure definition.
4645 (elf_gregset_t): Delete typedef.
4646
4647 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4648
4649 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4650 (nios2_core_regset): Add collect method.
4651
4652 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4653
4654 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4655 platform-independent and don't write to read-only input buffer.
4656 (m32r_linux_collect_gregset): New function.
4657 (m32r_linux_gregset): Add collect method.
4658
4659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4660
4661 * hppa-linux-tdep.c (greg_map): Rename to...
4662 (hppa_linux_gregmap): ... this. Also convert to
4663 regcache_map_entry format.
4664 (hppa_linux_supply_regset): Delete function.
4665 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4666 (hppa_linux_fpregmap): ... this new register map.
4667 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4668 register map, replace supply method by regcache_supply_regset, and
4669 add collect method regcache_collect_regset.
4670
4671 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4672
4673 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4674 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4675 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4676 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4677 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4678 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4679 (frv_linux_supply_gregset): Replace main logic by call to
4680 regcache_supply_regset, but keep clearing gr32-gr63.
4681 (frv_linux_supply_fpregset): Delete function.
4682 (frv_linux_gregset): Refer to appropriate register map and add
4683 regcache_collect_regset as the collect method.
4684 (frv_linux_fpregset): Likewise. Also exchange the supply method
4685 by regcache_supply_regset.
4686
4687 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4688
4689 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4690 by call to alpha_supply_int_regs.
4691 (alpha_linux_collect_gregset): New function.
4692 (alpha_linux_supply_fpregset): Replace logic by call to
4693 alpha_supply_fp_regs.
4694 (alpha_linux_collect_fpregset): New function.
4695 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4696
4697 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4698
4699 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4700 by call to regcache_collect_regset.
4701 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4702 instead of aarch64_linux_supply_gregset/_fpregset.
4703 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4704 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4705 header file instead.
4706 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4707 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4708 functions. Move logic to ...
4709 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4710 register maps.
4711 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4712 refer to new register maps, replace *_regset_from_core by
4713 regcache_supply_regset, and also use regcache_collect_regset.
4714 * aarch64-linux-tdep.h: Include "regset.h".
4715 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4716 Delete prototypes.
4717 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4718 macros, moved from C source file.
4719 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4720 variable declarations.
4721
4722 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4723
4724 * s390-linux-nat.c: Include "regset.h".
4725 (regmap_gregset): Delete macro.
4726 (s390_64_regmap_gregset): New register map for
4727 regcache_supply/_collect_regset.
4728 (s390_64_gregset): New regset.
4729 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4730 (regmap_fpregset): Delete macro.
4731 (s390_native_supply, s390_native_collect): Delete functions.
4732 (supply_gregset, fill_gregset): Replace s390-specific regmap
4733 handling by a call to regcache_supply/_collect_regset.
4734 (supply_fpregset, fill_fpregset): Call regcache_supply/
4735 _collect_regset instead of s390_native_supply/_collect.
4736 (fetch_regset, store_regset): Likewise. Also change the last
4737 parameter to a regset instead of a regmap.
4738 (s390_linux_fetch_inferior_registers)
4739 (390_linux_store_inferior_registers): Adjust last parameter in
4740 calls to fetch_regset and store_regset.
4741 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4742 (s390_gregmap): ... this. Also make static const and convert to
4743 regcache_map_entry format.
4744 (s390x_regmap_gregset): Delete.
4745 (s390_regmap_fpregset): Rename to...
4746 (s390_fpregmap): ... this. Make static const and convert to
4747 regcache_map_entry format.
4748 (s390_regmap_upper, s390_regmap_last_break)
4749 (s390x_regmap_last_break, s390_regmap_system_call)
4750 (s390_regmap_tdb): Likewise.
4751 (s390_supply_regset, s390_collect_regset): Remove functions.
4752 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4753 s390_supply_regset.
4754 (s390_gregset, s390_fpregset, s390_upper_regset)
4755 (s390_last_break_regset, s390x_last_break_regset)
4756 (s390_system_call_regset, s390_tdb_regset): Make global and
4757 replace s390_supply/_collect_regset by regcache_supply/
4758 _collect_regset.
4759 (s390x_gregset): Delete.
4760 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4761 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4762 (s390_regmap_fpregset, s390_regmap_last_break)
4763 (s390x_regmap_last_break, s390_regmap_system_call)
4764 (s390_regmap_tdb): Delete global variable declarations.
4765 (s390_gregset, s390_fpregset, s390_last_break_regset)
4766 (s390x_last_break_regset, s390_system_call_regset)
4767 (s390_tdb_regset): New global variable declarations.
4768
4769 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4770
4771 * regcache.c: Include "regset.h".
4772 (regcache_transfer_regset): New local function.
4773 (regcache_supply_regset, regcache_collect_regset): New functions.
4774 * regcache.h (struct regcache_map_entry): New structure.
4775 (REGCACHE_MAP_SKIP): New enum value.
4776 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4777
4778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4779
4780 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4781 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4782 (ppc_linux_collect_gregset ): Likewise.
4783 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4784 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4785 (ppc_collect_vrregset): Likewise.
4786 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4787 Likewise.
4788
4789 2014-08-07 Yao Qi <yao@codesourcery.com>
4790
4791 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4792 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4793 * remote.c (remote_read_bytes): Likewise.
4794
4795 2014-08-07 Yao Qi <yao@codesourcery.com>
4796
4797 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4798
4799 2014-08-07 Yao Qi <yao@codesourcery.com>
4800
4801 PR remote/17230
4802 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4803 TARGET_XFER_OK instead of 0.
4804
4805 2014-08-07 Gary Benson <gbenson@redhat.com>
4806
4807 * common/common-defs.h: Include errno.h.
4808 * defs.h: Do not include errno.h.
4809 * ada-typeprint.c: Likewise.
4810 * c-typeprint.c: Likewise.
4811 * core-regset.c: Likewise.
4812 * corefile.c: Likewise.
4813 * corelow.c: Likewise.
4814 * event-loop.c: Likewise.
4815 * f-typeprint.c: Likewise.
4816 * gnu-nat.c: Likewise.
4817 * go32-nat.c: Likewise.
4818 * i386gnu-nat.c: Likewise.
4819 * m2-typeprint.c: Likewise.
4820 * nat/linux-btrace.c: Likewise.
4821 * p-typeprint.c: Likewise.
4822 * procfs.c: Likewise.
4823 * remote-sim.c: Likewise.
4824 * rs6000-nat.c: Likewise.
4825 * target.c: Likewise.
4826 * typeprint.c: Likewise.
4827 * ui-file.c: Likewise.
4828 * valops.c: Likewise.
4829 * valprint.c: Likewise.
4830
4831 2014-08-07 Gary Benson <gbenson@redhat.com>
4832
4833 * common/common-defs.h: Include string.h.
4834 * aarch64-tdep.c: Do not include string.h.
4835 * ada-exp.y: Likewise.
4836 * ada-lang.c: Likewise.
4837 * ada-lex.l: Likewise.
4838 * ada-typeprint.c: Likewise.
4839 * ada-valprint.c: Likewise.
4840 * aix-thread.c: Likewise.
4841 * alpha-linux-tdep.c: Likewise.
4842 * alpha-mdebug-tdep.c: Likewise.
4843 * alpha-nat.c: Likewise.
4844 * alpha-osf1-tdep.c: Likewise.
4845 * alpha-tdep.c: Likewise.
4846 * alphanbsd-tdep.c: Likewise.
4847 * amd64-dicos-tdep.c: Likewise.
4848 * amd64-linux-tdep.c: Likewise.
4849 * amd64-nat.c: Likewise.
4850 * amd64-sol2-tdep.c: Likewise.
4851 * amd64fbsd-tdep.c: Likewise.
4852 * amd64obsd-tdep.c: Likewise.
4853 * arch-utils.c: Likewise.
4854 * arm-linux-nat.c: Likewise.
4855 * arm-linux-tdep.c: Likewise.
4856 * arm-tdep.c: Likewise.
4857 * arm-wince-tdep.c: Likewise.
4858 * armbsd-tdep.c: Likewise.
4859 * armnbsd-nat.c: Likewise.
4860 * armnbsd-tdep.c: Likewise.
4861 * armobsd-tdep.c: Likewise.
4862 * avr-tdep.c: Likewise.
4863 * ax-gdb.c: Likewise.
4864 * ax-general.c: Likewise.
4865 * bcache.c: Likewise.
4866 * bfin-tdep.c: Likewise.
4867 * breakpoint.c: Likewise.
4868 * build-id.c: Likewise.
4869 * buildsym.c: Likewise.
4870 * c-exp.y: Likewise.
4871 * c-lang.c: Likewise.
4872 * c-typeprint.c: Likewise.
4873 * c-valprint.c: Likewise.
4874 * charset.c: Likewise.
4875 * cli-out.c: Likewise.
4876 * cli/cli-cmds.c: Likewise.
4877 * cli/cli-decode.c: Likewise.
4878 * cli/cli-dump.c: Likewise.
4879 * cli/cli-interp.c: Likewise.
4880 * cli/cli-logging.c: Likewise.
4881 * cli/cli-script.c: Likewise.
4882 * cli/cli-setshow.c: Likewise.
4883 * cli/cli-utils.c: Likewise.
4884 * coffread.c: Likewise.
4885 * common/agent.c: Likewise.
4886 * common/buffer.c: Likewise.
4887 * common/buffer.h: Likewise.
4888 * common/common-utils.c: Likewise.
4889 * common/filestuff.c: Likewise.
4890 * common/filestuff.c: Likewise.
4891 * common/format.c: Likewise.
4892 * common/print-utils.c: Likewise.
4893 * common/rsp-low.c: Likewise.
4894 * common/signals.c: Likewise.
4895 * common/vec.h: Likewise.
4896 * common/xml-utils.c: Likewise.
4897 * core-regset.c: Likewise.
4898 * corefile.c: Likewise.
4899 * corelow.c: Likewise.
4900 * cp-abi.c: Likewise.
4901 * cp-name-parser.y: Likewise.
4902 * cp-support.c: Likewise.
4903 * cp-valprint.c: Likewise.
4904 * cris-tdep.c: Likewise.
4905 * d-exp.y: Likewise.
4906 * darwin-nat.c: Likewise.
4907 * dbxread.c: Likewise.
4908 * dcache.c: Likewise.
4909 * demangle.c: Likewise.
4910 * dicos-tdep.c: Likewise.
4911 * disasm.c: Likewise.
4912 * doublest.c: Likewise.
4913 * dsrec.c: Likewise.
4914 * dummy-frame.c: Likewise.
4915 * dwarf2-frame.c: Likewise.
4916 * dwarf2loc.c: Likewise.
4917 * dwarf2read.c: Likewise.
4918 * elfread.c: Likewise.
4919 * environ.c: Likewise.
4920 * eval.c: Likewise.
4921 * event-loop.c: Likewise.
4922 * exceptions.c: Likewise.
4923 * exec.c: Likewise.
4924 * expprint.c: Likewise.
4925 * f-exp.y: Likewise.
4926 * f-lang.c: Likewise.
4927 * f-typeprint.c: Likewise.
4928 * f-valprint.c: Likewise.
4929 * fbsd-nat.c: Likewise.
4930 * findcmd.c: Likewise.
4931 * findvar.c: Likewise.
4932 * fork-child.c: Likewise.
4933 * frame.c: Likewise.
4934 * frv-linux-tdep.c: Likewise.
4935 * frv-tdep.c: Likewise.
4936 * gdb.c: Likewise.
4937 * gdb_bfd.c: Likewise.
4938 * gdbarch.c: Likewise.
4939 * gdbarch.sh: Likewise.
4940 * gdbtypes.c: Likewise.
4941 * gnu-nat.c: Likewise.
4942 * gnu-v2-abi.c: Likewise.
4943 * gnu-v3-abi.c: Likewise.
4944 * go-exp.y: Likewise.
4945 * go-lang.c: Likewise.
4946 * go32-nat.c: Likewise.
4947 * guile/guile.c: Likewise.
4948 * guile/scm-auto-load.c: Likewise.
4949 * hppa-hpux-tdep.c: Likewise.
4950 * hppa-linux-nat.c: Likewise.
4951 * hppanbsd-tdep.c: Likewise.
4952 * hppaobsd-tdep.c: Likewise.
4953 * i386-cygwin-tdep.c: Likewise.
4954 * i386-dicos-tdep.c: Likewise.
4955 * i386-linux-tdep.c: Likewise.
4956 * i386-nto-tdep.c: Likewise.
4957 * i386-sol2-tdep.c: Likewise.
4958 * i386-tdep.c: Likewise.
4959 * i386bsd-tdep.c: Likewise.
4960 * i386gnu-nat.c: Likewise.
4961 * i386nbsd-tdep.c: Likewise.
4962 * i386obsd-tdep.c: Likewise.
4963 * i387-tdep.c: Likewise.
4964 * ia64-libunwind-tdep.c: Likewise.
4965 * ia64-linux-nat.c: Likewise.
4966 * inf-child.c: Likewise.
4967 * inf-ptrace.c: Likewise.
4968 * inf-ttrace.c: Likewise.
4969 * infcall.c: Likewise.
4970 * infcmd.c: Likewise.
4971 * inflow.c: Likewise.
4972 * infrun.c: Likewise.
4973 * interps.c: Likewise.
4974 * iq2000-tdep.c: Likewise.
4975 * irix5-nat.c: Likewise.
4976 * jv-exp.y: Likewise.
4977 * jv-lang.c: Likewise.
4978 * jv-typeprint.c: Likewise.
4979 * jv-valprint.c: Likewise.
4980 * language.c: Likewise.
4981 * linux-fork.c: Likewise.
4982 * linux-nat.c: Likewise.
4983 * lm32-tdep.c: Likewise.
4984 * m2-exp.y: Likewise.
4985 * m2-typeprint.c: Likewise.
4986 * m32c-tdep.c: Likewise.
4987 * m32r-linux-nat.c: Likewise.
4988 * m32r-linux-tdep.c: Likewise.
4989 * m32r-rom.c: Likewise.
4990 * m32r-tdep.c: Likewise.
4991 * m68hc11-tdep.c: Likewise.
4992 * m68k-tdep.c: Likewise.
4993 * m68kbsd-tdep.c: Likewise.
4994 * m68klinux-nat.c: Likewise.
4995 * m68klinux-tdep.c: Likewise.
4996 * m88k-tdep.c: Likewise.
4997 * machoread.c: Likewise.
4998 * macrocmd.c: Likewise.
4999 * main.c: Likewise.
5000 * mdebugread.c: Likewise.
5001 * mem-break.c: Likewise.
5002 * memattr.c: Likewise.
5003 * memory-map.c: Likewise.
5004 * mep-tdep.c: Likewise.
5005 * mi/mi-cmd-break.c: Likewise.
5006 * mi/mi-cmd-disas.c: Likewise.
5007 * mi/mi-cmd-env.c: Likewise.
5008 * mi/mi-cmd-stack.c: Likewise.
5009 * mi/mi-cmd-var.c: Likewise.
5010 * mi/mi-cmds.c: Likewise.
5011 * mi/mi-console.c: Likewise.
5012 * mi/mi-getopt.c: Likewise.
5013 * mi/mi-interp.c: Likewise.
5014 * mi/mi-main.c: Likewise.
5015 * mi/mi-parse.c: Likewise.
5016 * microblaze-rom.c: Likewise.
5017 * microblaze-tdep.c: Likewise.
5018 * mingw-hdep.c: Likewise.
5019 * minidebug.c: Likewise.
5020 * minsyms.c: Likewise.
5021 * mips-irix-tdep.c: Likewise.
5022 * mips-linux-tdep.c: Likewise.
5023 * mips-tdep.c: Likewise.
5024 * mips64obsd-tdep.c: Likewise.
5025 * mipsnbsd-tdep.c: Likewise.
5026 * mipsread.c: Likewise.
5027 * mn10300-linux-tdep.c: Likewise.
5028 * mn10300-tdep.c: Likewise.
5029 * monitor.c: Likewise.
5030 * moxie-tdep.c: Likewise.
5031 * mt-tdep.c: Likewise.
5032 * nat/linux-btrace.c: Likewise.
5033 * nat/linux-osdata.c: Likewise.
5034 * nat/linux-procfs.c: Likewise.
5035 * nat/linux-ptrace.c: Likewise.
5036 * nat/linux-waitpid.c: Likewise.
5037 * nbsd-tdep.c: Likewise.
5038 * nios2-linux-tdep.c: Likewise.
5039 * nto-procfs.c: Likewise.
5040 * nto-tdep.c: Likewise.
5041 * objc-lang.c: Likewise.
5042 * objfiles.c: Likewise.
5043 * opencl-lang.c: Likewise.
5044 * osabi.c: Likewise.
5045 * osdata.c: Likewise.
5046 * p-exp.y: Likewise.
5047 * p-lang.c: Likewise.
5048 * p-typeprint.c: Likewise.
5049 * parse.c: Likewise.
5050 * posix-hdep.c: Likewise.
5051 * ppc-linux-nat.c: Likewise.
5052 * ppc-sysv-tdep.c: Likewise.
5053 * ppcfbsd-tdep.c: Likewise.
5054 * ppcnbsd-tdep.c: Likewise.
5055 * ppcobsd-tdep.c: Likewise.
5056 * printcmd.c: Likewise.
5057 * procfs.c: Likewise.
5058 * prologue-value.c: Likewise.
5059 * python/py-auto-load.c: Likewise.
5060 * python/py-gdb-readline.c: Likewise.
5061 * ravenscar-thread.c: Likewise.
5062 * regcache.c: Likewise.
5063 * registry.c: Likewise.
5064 * remote-fileio.c: Likewise.
5065 * remote-m32r-sdi.c: Likewise.
5066 * remote-mips.c: Likewise.
5067 * remote-notif.c: Likewise.
5068 * remote-sim.c: Likewise.
5069 * remote.c: Likewise.
5070 * reverse.c: Likewise.
5071 * rs6000-aix-tdep.c: Likewise.
5072 * ser-base.c: Likewise.
5073 * ser-go32.c: Likewise.
5074 * ser-mingw.c: Likewise.
5075 * ser-pipe.c: Likewise.
5076 * ser-tcp.c: Likewise.
5077 * ser-unix.c: Likewise.
5078 * serial.c: Likewise.
5079 * sh-tdep.c: Likewise.
5080 * sh64-tdep.c: Likewise.
5081 * shnbsd-tdep.c: Likewise.
5082 * skip.c: Likewise.
5083 * sol-thread.c: Likewise.
5084 * solib-dsbt.c: Likewise.
5085 * solib-frv.c: Likewise.
5086 * solib-osf.c: Likewise.
5087 * solib-som.c: Likewise.
5088 * solib-spu.c: Likewise.
5089 * solib-target.c: Likewise.
5090 * solib.c: Likewise.
5091 * somread.c: Likewise.
5092 * source.c: Likewise.
5093 * sparc-nat.c: Likewise.
5094 * sparc-sol2-tdep.c: Likewise.
5095 * sparc-tdep.c: Likewise.
5096 * sparc64-tdep.c: Likewise.
5097 * sparc64fbsd-tdep.c: Likewise.
5098 * sparc64nbsd-tdep.c: Likewise.
5099 * sparcnbsd-tdep.c: Likewise.
5100 * spu-linux-nat.c: Likewise.
5101 * spu-multiarch.c: Likewise.
5102 * spu-tdep.c: Likewise.
5103 * stabsread.c: Likewise.
5104 * stack.c: Likewise.
5105 * std-regs.c: Likewise.
5106 * symfile.c: Likewise.
5107 * symmisc.c: Likewise.
5108 * symtab.c: Likewise.
5109 * target.c: Likewise.
5110 * thread.c: Likewise.
5111 * tilegx-linux-nat.c: Likewise.
5112 * tilegx-tdep.c: Likewise.
5113 * top.c: Likewise.
5114 * tracepoint.c: Likewise.
5115 * tui/tui-command.c: Likewise.
5116 * tui/tui-data.c: Likewise.
5117 * tui/tui-disasm.c: Likewise.
5118 * tui/tui-file.c: Likewise.
5119 * tui/tui-layout.c: Likewise.
5120 * tui/tui-out.c: Likewise.
5121 * tui/tui-regs.c: Likewise.
5122 * tui/tui-source.c: Likewise.
5123 * tui/tui-stack.c: Likewise.
5124 * tui/tui-win.c: Likewise.
5125 * tui/tui-windata.c: Likewise.
5126 * tui/tui-winsource.c: Likewise.
5127 * typeprint.c: Likewise.
5128 * ui-file.c: Likewise.
5129 * ui-out.c: Likewise.
5130 * user-regs.c: Likewise.
5131 * utils.c: Likewise.
5132 * v850-tdep.c: Likewise.
5133 * valarith.c: Likewise.
5134 * valops.c: Likewise.
5135 * valprint.c: Likewise.
5136 * value.c: Likewise.
5137 * varobj.c: Likewise.
5138 * vax-tdep.c: Likewise.
5139 * vaxnbsd-tdep.c: Likewise.
5140 * vaxobsd-tdep.c: Likewise.
5141 * windows-nat.c: Likewise.
5142 * xcoffread.c: Likewise.
5143 * xml-support.c: Likewise.
5144 * xstormy16-tdep.c: Likewise.
5145 * xtensa-linux-nat.c: Likewise.
5146
5147 2014-08-07 Gary Benson <gbenson@redhat.com>
5148
5149 * common/common-defs.h: Include gdb_assert.h.
5150 * aarch64-tdep.c: Do not include gdb_assert.h.
5151 * addrmap.c: Likewise.
5152 * aix-thread.c: Likewise.
5153 * alpha-linux-tdep.c: Likewise.
5154 * alpha-mdebug-tdep.c: Likewise.
5155 * alphanbsd-tdep.c: Likewise.
5156 * amd64-nat.c: Likewise.
5157 * amd64-tdep.c: Likewise.
5158 * amd64bsd-nat.c: Likewise.
5159 * amd64fbsd-nat.c: Likewise.
5160 * amd64fbsd-tdep.c: Likewise.
5161 * amd64nbsd-nat.c: Likewise.
5162 * amd64nbsd-tdep.c: Likewise.
5163 * amd64obsd-nat.c: Likewise.
5164 * amd64obsd-tdep.c: Likewise.
5165 * arch-utils.c: Likewise.
5166 * arm-tdep.c: Likewise.
5167 * armbsd-tdep.c: Likewise.
5168 * auxv.c: Likewise.
5169 * bcache.c: Likewise.
5170 * bfin-tdep.c: Likewise.
5171 * blockframe.c: Likewise.
5172 * breakpoint.c: Likewise.
5173 * bsd-kvm.c: Likewise.
5174 * bsd-uthread.c: Likewise.
5175 * buildsym.c: Likewise.
5176 * c-exp.y: Likewise.
5177 * c-lang.c: Likewise.
5178 * charset.c: Likewise.
5179 * cleanups.c: Likewise.
5180 * cli-out.c: Likewise.
5181 * cli/cli-decode.c: Likewise.
5182 * cli/cli-dump.c: Likewise.
5183 * cli/cli-logging.c: Likewise.
5184 * cli/cli-script.c: Likewise.
5185 * cli/cli-utils.c: Likewise.
5186 * coffread.c: Likewise.
5187 * common/common-utils.c: Likewise.
5188 * common/queue.h: Likewise.
5189 * common/signals.c: Likewise.
5190 * common/vec.h: Likewise.
5191 * complaints.c: Likewise.
5192 * completer.c: Likewise.
5193 * corelow.c: Likewise.
5194 * cp-abi.c: Likewise.
5195 * cp-name-parser.y: Likewise.
5196 * cp-namespace.c: Likewise.
5197 * cp-support.c: Likewise.
5198 * cris-tdep.c: Likewise.
5199 * dbxread.c: Likewise.
5200 * dictionary.c: Likewise.
5201 * doublest.c: Likewise.
5202 * dsrec.c: Likewise.
5203 * dummy-frame.c: Likewise.
5204 * dwarf2-frame-tailcall.c: Likewise.
5205 * dwarf2-frame.c: Likewise.
5206 * dwarf2expr.c: Likewise.
5207 * dwarf2loc.c: Likewise.
5208 * dwarf2read.c: Likewise.
5209 * eval.c: Likewise.
5210 * event-loop.c: Likewise.
5211 * exceptions.c: Likewise.
5212 * expprint.c: Likewise.
5213 * f-valprint.c: Likewise.
5214 * fbsd-nat.c: Likewise.
5215 * findvar.c: Likewise.
5216 * frame-unwind.c: Likewise.
5217 * frame.c: Likewise.
5218 * frv-tdep.c: Likewise.
5219 * gcore.c: Likewise.
5220 * gdb-dlfcn.c: Likewise.
5221 * gdb_bfd.c: Likewise.
5222 * gdbarch.c: Likewise.
5223 * gdbarch.sh: Likewise.
5224 * gdbtypes.c: Likewise.
5225 * gnu-nat.c: Likewise.
5226 * gnu-v3-abi.c: Likewise.
5227 * go-lang.c: Likewise.
5228 * guile/scm-exception.c: Likewise.
5229 * guile/scm-gsmob.c: Likewise.
5230 * guile/scm-lazy-string.c: Likewise.
5231 * guile/scm-math.c: Likewise.
5232 * guile/scm-pretty-print.c: Likewise.
5233 * guile/scm-safe-call.c: Likewise.
5234 * guile/scm-utils.c: Likewise.
5235 * guile/scm-value.c: Likewise.
5236 * h8300-tdep.c: Likewise.
5237 * hppa-hpux-nat.c: Likewise.
5238 * hppa-tdep.c: Likewise.
5239 * hppanbsd-tdep.c: Likewise.
5240 * hppaobsd-tdep.c: Likewise.
5241 * i386-darwin-nat.c: Likewise.
5242 * i386-darwin-tdep.c: Likewise.
5243 * i386-nto-tdep.c: Likewise.
5244 * i386-tdep.c: Likewise.
5245 * i386bsd-nat.c: Likewise.
5246 * i386fbsd-tdep.c: Likewise.
5247 * i386gnu-nat.c: Likewise.
5248 * i386nbsd-tdep.c: Likewise.
5249 * i386obsd-tdep.c: Likewise.
5250 * i387-tdep.c: Likewise.
5251 * ia64-libunwind-tdep.c: Likewise.
5252 * ia64-tdep.c: Likewise.
5253 * inf-ptrace.c: Likewise.
5254 * inf-ttrace.c: Likewise.
5255 * infcall.c: Likewise.
5256 * infcmd.c: Likewise.
5257 * infrun.c: Likewise.
5258 * inline-frame.c: Likewise.
5259 * interps.c: Likewise.
5260 * jv-lang.c: Likewise.
5261 * jv-typeprint.c: Likewise.
5262 * linux-fork.c: Likewise.
5263 * linux-nat.c: Likewise.
5264 * linux-thread-db.c: Likewise.
5265 * m32c-tdep.c: Likewise.
5266 * m32r-linux-nat.c: Likewise.
5267 * m32r-tdep.c: Likewise.
5268 * m68k-tdep.c: Likewise.
5269 * m68kbsd-nat.c: Likewise.
5270 * m68kbsd-tdep.c: Likewise.
5271 * m88k-tdep.c: Likewise.
5272 * machoread.c: Likewise.
5273 * macroexp.c: Likewise.
5274 * macrotab.c: Likewise.
5275 * maint.c: Likewise.
5276 * mdebugread.c: Likewise.
5277 * memory-map.c: Likewise.
5278 * mep-tdep.c: Likewise.
5279 * mi/mi-common.c: Likewise.
5280 * microblaze-tdep.c: Likewise.
5281 * mingw-hdep.c: Likewise.
5282 * mips-linux-nat.c: Likewise.
5283 * mips-linux-tdep.c: Likewise.
5284 * mips-tdep.c: Likewise.
5285 * mips64obsd-tdep.c: Likewise.
5286 * mipsnbsd-tdep.c: Likewise.
5287 * mn10300-linux-tdep.c: Likewise.
5288 * mn10300-tdep.c: Likewise.
5289 * moxie-tdep.c: Likewise.
5290 * mt-tdep.c: Likewise.
5291 * nat/linux-btrace.c: Likewise.
5292 * nat/linux-osdata.c: Likewise.
5293 * nat/linux-ptrace.c: Likewise.
5294 * nat/mips-linux-watch.c: Likewise.
5295 * nios2-linux-tdep.c: Likewise.
5296 * nios2-tdep.c: Likewise.
5297 * objc-lang.c: Likewise.
5298 * objfiles.c: Likewise.
5299 * obsd-nat.c: Likewise.
5300 * opencl-lang.c: Likewise.
5301 * osabi.c: Likewise.
5302 * parse.c: Likewise.
5303 * ppc-linux-nat.c: Likewise.
5304 * ppc-sysv-tdep.c: Likewise.
5305 * ppcfbsd-nat.c: Likewise.
5306 * ppcfbsd-tdep.c: Likewise.
5307 * ppcnbsd-nat.c: Likewise.
5308 * ppcnbsd-tdep.c: Likewise.
5309 * ppcobsd-nat.c: Likewise.
5310 * ppcobsd-tdep.c: Likewise.
5311 * printcmd.c: Likewise.
5312 * procfs.c: Likewise.
5313 * prologue-value.c: Likewise.
5314 * psymtab.c: Likewise.
5315 * python/py-lazy-string.c: Likewise.
5316 * python/py-value.c: Likewise.
5317 * regcache.c: Likewise.
5318 * reggroups.c: Likewise.
5319 * registry.c: Likewise.
5320 * remote-sim.c: Likewise.
5321 * remote.c: Likewise.
5322 * rs6000-aix-tdep.c: Likewise.
5323 * rs6000-tdep.c: Likewise.
5324 * s390-linux-tdep.c: Likewise.
5325 * score-tdep.c: Likewise.
5326 * ser-base.c: Likewise.
5327 * ser-mingw.c: Likewise.
5328 * sh-tdep.c: Likewise.
5329 * sh64-tdep.c: Likewise.
5330 * solib-darwin.c: Likewise.
5331 * solib-spu.c: Likewise.
5332 * solib-svr4.c: Likewise.
5333 * source.c: Likewise.
5334 * sparc-nat.c: Likewise.
5335 * sparc-sol2-tdep.c: Likewise.
5336 * sparc-tdep.c: Likewise.
5337 * sparc64-sol2-tdep.c: Likewise.
5338 * sparc64-tdep.c: Likewise.
5339 * sparc64fbsd-tdep.c: Likewise.
5340 * sparc64nbsd-tdep.c: Likewise.
5341 * sparc64obsd-tdep.c: Likewise.
5342 * sparcnbsd-tdep.c: Likewise.
5343 * sparcobsd-tdep.c: Likewise.
5344 * spu-multiarch.c: Likewise.
5345 * spu-tdep.c: Likewise.
5346 * stabsread.c: Likewise.
5347 * stack.c: Likewise.
5348 * symfile.c: Likewise.
5349 * symtab.c: Likewise.
5350 * target-descriptions.c: Likewise.
5351 * target-memory.c: Likewise.
5352 * target.c: Likewise.
5353 * tic6x-linux-tdep.c: Likewise.
5354 * tic6x-tdep.c: Likewise.
5355 * tilegx-linux-nat.c: Likewise.
5356 * tilegx-tdep.c: Likewise.
5357 * top.c: Likewise.
5358 * tramp-frame.c: Likewise.
5359 * tui/tui-out.c: Likewise.
5360 * tui/tui-winsource.c: Likewise.
5361 * ui-out.c: Likewise.
5362 * user-regs.c: Likewise.
5363 * utils.c: Likewise.
5364 * v850-tdep.c: Likewise.
5365 * valops.c: Likewise.
5366 * value.c: Likewise.
5367 * varobj.c: Likewise.
5368 * vax-nat.c: Likewise.
5369 * xml-syscall.c: Likewise.
5370 * xml-tdesc.c: Likewise.
5371 * xstormy16-tdep.c: Likewise.
5372 * xtensa-linux-nat.c: Likewise.
5373 * xtensa-tdep.c: Likewise.
5374
5375 2014-08-07 Gary Benson <gbenson@redhat.com>
5376
5377 * common/common-defs.h: Include common-utils.h.
5378 * defs.h: Do not include common-utils.h.
5379 * common/gdb_assert.h: Likewise.
5380 * darwin-nat.h: Likewise.
5381 * nat/linux-btrace.c: Likewise.
5382 * target/waitstatus.h: Likewise.
5383
5384 2014-08-07 Gary Benson <gbenson@redhat.com>
5385
5386 * common/common-defs.h: Include ptid.h.
5387 * defs.h: Do not include ptid.h.
5388 * inferior.h: Likewise.
5389 * infrun.h: Likewise.
5390 * nat/linux-btrace.h: Likewise.
5391 * nat/linux-osdata.h: Likewise.
5392 * target/waitstatus.h: Likewise.
5393
5394 2014-08-07 Gary Benson <gbenson@redhat.com>
5395
5396 * common/common-defs.h: Include gdb_locale.h.
5397 * defs.h: Do not include gdb_locale.h.
5398
5399 2014-08-07 Gary Benson <gbenson@redhat.com>
5400
5401 * common/common-defs.h: Include gdb/signals.h.
5402 * defs.h: Do not include gdb/signals.h.
5403
5404 2014-08-07 Gary Benson <gbenson@redhat.com>
5405
5406 * common/common-defs.h: Include pathmax.h.
5407 * defs.h: Do not include pathmax.h.
5408
5409 2014-08-07 Gary Benson <gbenson@redhat.com>
5410
5411 * common/common-defs.h: Include libiberty.h.
5412 * defs.h: Do not include libiberty.h.
5413 * common/queue.h: Likewise.
5414 * cp-name-parser.y: Likewise.
5415 * mi/mi-cmd-catch.c: Likewise.
5416 * python/python.c: Likewise.
5417
5418 2014-08-07 Gary Benson <gbenson@redhat.com>
5419
5420 * common/common-defs.h: Include ansidecl.h.
5421 * defs.h: Do not include ansidecl.h.
5422 * common/buffer.h: Likewise.
5423 * common/common-utils.h: Likewise.
5424
5425 2014-08-07 Gary Benson <gbenson@redhat.com>
5426
5427 * common/common-defs.h: Include stddef.h.
5428 * defs.h: Do not include stddef.h.
5429 * common/common-utils.h: Likewise.
5430 * amd64fbsd-nat.c: Likewise.
5431 * bcache.c: Likewise.
5432 * charset.c: Likewise.
5433 * common/buffer.h: Likewise.
5434 * common/vec.h: Likewise.
5435 * i386bsd-nat.c: Likewise.
5436 * nat/linux-btrace.h: Likewise.
5437 * ppcfbsd-nat.c: Likewise.
5438 * ppcnbsd-tdep.h: Likewise.
5439 * ppcobsd-nat.c: Likewise.
5440 * ppcobsd-tdep.h: Likewise.
5441 * python/py-gdb-readline.c: Likewise.
5442
5443 2014-08-07 Gary Benson <gbenson@redhat.com>
5444
5445 * common/common-defs.h: Include stdarg.h.
5446 * defs.h: Do not include stdarg.h.
5447 * ada-lang.c: Likewise.
5448 * common/common-utils.h: Likewise.
5449 * guile/scm-string.c: Likewise.
5450 * guile/scm-utils.c: Likewise.
5451 * m32c-tdep.c: Likewise.
5452
5453 2014-08-07 Gary Benson <gbenson@redhat.com>
5454
5455 * common/common-defs.h: Include stdlib.h.
5456 * defs.h: Do not include stdlib.h.
5457 * addrmap.c: Likewise.
5458 * bcache.c: Likewise.
5459 * common/buffer.c: Likewise.
5460 * common/common-utils.c: Likewise.
5461 * cp-name-parser.y: Likewise.
5462 * go32-nat.c: Likewise.
5463 * mn10300-linux-tdep.c: Likewise.
5464 * nat/linux-osdata.c: Likewise.
5465 * tui/tui.c: Likewise.
5466 * windows-nat.c: Likewise.
5467
5468 2014-08-07 Gary Benson <gbenson@redhat.com>
5469
5470 * common/common-defs.h: Include stdio.h.
5471 * defs.h: Do not include stdio.h.
5472 * ada-lang.c: Likewise.
5473 * common/buffer.c: Likewise.
5474 * common/common-utils.c: Likewise.
5475 * cp-name-parser.y: Likewise.
5476 * gnu-nat.c: Likewise.
5477 * go32-nat.c: Likewise.
5478 * i386gnu-nat.c: Likewise.
5479 * proc-api.c: Likewise.
5480 * proc-events.c: Likewise.
5481 * proc-flags.c: Likewise.
5482 * proc-why.c: Likewise.
5483 * python/python-internal.h: Likewise.
5484 * target-memory.c: Likewise.
5485 * tui/tui-io.c: Likewise.
5486 * tui/tui.c: Likewise.
5487
5488 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5491 (scan_dyntag_auxv): Same.
5492
5493 2014-08-06 Yao Qi <yao@codesourcery.com>
5494
5495 * amd64-linux-nat.c: Remove duplicated include
5496 "x86-linux-nat.h".
5497 * i386-linux-nat.c: Likewise.
5498
5499 2014-08-06 Yao Qi <yao@codesourcery.com>
5500
5501 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5502 operand" with "Special opcode" in comments.
5503
5504 2014-08-05 Gary Benson <gbenson@redhat.com>
5505
5506 * interps.c (initialize_interps): Remove prototype.
5507 (interpreter_initialized): Remove static global.
5508 (interp_add): Do not call initialize_interps.
5509 (initialize_interps): Remove function.
5510
5511 2014-08-05 Gary Benson <gbenson@redhat.com>
5512
5513 * utils.c (vwarning): Remove spurious va_end.
5514
5515 2014-08-05 Alan Modra <amodra@gmail.com>
5516
5517 * charset.c (convert_between_encodings): Cast result of obstack_base.
5518 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5519 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5520 (read_unwind_info): Use size_t for some locals.
5521 * jit.c (finalize_symtab): Likewise.
5522 * utils.c (hashtab_obstack_allocate): Likewise.
5523 * symmisc.c (print_objfile_statistics): Update format strings.
5524
5525 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5528 (Changes in GDB 7.8): ... here.
5529
5530 2014-08-04 Tom Tromey <tromey@redhat.com>
5531
5532 * target.c (set_targetdebug): New function.
5533 (initialize_targets): Pass set_targetdebug when creating "set
5534 debug target".
5535
5536 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5537
5538 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5539 if detecting a variable-sized field that is not the last field.
5540 Fix struct type length computation.
5541
5542 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5543
5544 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5545 Add debug trace.
5546
5547 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5548
5549 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5550 Remove "+ 8" offset in computation of CHAIN_VMA.
5551
5552 2014-07-31 Doug Evans <dje@google.com>
5553
5554 * inflow.c (child_terminal_inferior): Add comment.
5555 (child_terminal_ours_for_output): Add comment.
5556 (child_terminal_ours): Add comment.
5557 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5558 (linux_nat_terminal_ours): Add comment.
5559
5560 2014-07-31 Gary Benson <gbenson@redhat.com>
5561
5562 * common/btrace-common.h: Do not include defs.h or server.h.
5563 * nat/mips-linux-watch.h: Likewise.
5564 * gdb-dlfcn.h: Do not include defs.h.
5565 * tracefile.h: Likewise.
5566
5567 2014-07-30 Roland McGrath <mcgrathr@google.com>
5568
5569 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5570
5571 2014-07-30 Tom Tromey <tromey@redhat.com>
5572
5573 * bsd-kvm.c (bsd_kvm_open): Constify.
5574 * corelow.c (core_open): Constify.
5575 * ctf.c (ctf_open): Constify.
5576 * dbug-rom.c (dbug_open): Constify.
5577 * exec.c (exec_open): Constify.
5578 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5579 * microblaze-rom.c (picobug_open): Constify.
5580 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5581 Constify.
5582 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5583 * record-btrace.c (record_btrace_open): Constify.
5584 * record-full.c (record_full_core_open_1, record_full_open_1)
5585 (record_full_open): Constify.
5586 * remote-m32r-sdi.c (m32r_open): Constify.
5587 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5588 (rockhopper_open, lsi_open): Constify.
5589 * remote-sim.c (gdbsim_open): Constify.
5590 * remote.c (remote_open, extended_remote_open, remote_open_1):
5591 Constify.
5592 * target.h (struct target_ops) <to_open>: Make "arg" const.
5593 * tracefile-tfile.c (tfile_open): Constify.
5594
5595 2014-07-30 Tom Tromey <tromey@redhat.com>
5596
5597 * breakpoint.c (map_breakpoint_numbers): Update.
5598 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5599 (get_number_const): New function.
5600 (get_number): Rewrite using get_number_const.
5601 (init_number_or_range): Make "string" const.
5602 (number_is_in_list): Make "list" const.
5603 * cli/cli-utils.h (get_number_const): Declare.
5604 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5605 (init_number_or_range, number_is_in_list): Update.
5606 * printcmd.c (map_display_numbers): Update.
5607 * value.c (value_from_history_ref): Constify.
5608 * value.h (value_from_history_ref): Update.
5609
5610 2014-07-30 Tom Tromey <tromey@redhat.com>
5611
5612 * corefile.c (hook_type, call_extra_exec_file_hooks)
5613 (specify_exec_file_hook): Constify.
5614 * exec.c (exec_file_attach): Make "filename" const.
5615 * gdbcore.h (deprecated_exec_file_display_hook)
5616 (specify_exec_file_hook, exec_file_attach): Constify.
5617 * main.c (captured_main): Use catch_command_errors_const.
5618
5619 2014-07-30 Tom Tromey <tromey@redhat.com>
5620
5621 * target.c (open_target): New function.
5622 (add_target_with_completer, add_deprecated_target_alias): Use
5623 set_cmd_sfunc, set_cmd_context.
5624 (debug_to_open): Remove.
5625 (setup_target_debug): Update.
5626
5627 2014-07-30 Yao Qi <yao@codesourcery.com>
5628
5629 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5630 comments.
5631 * parse.c (exp_iterate): Update comments.
5632
5633 2014-07-30 Gary Benson <gbenson@redhat.com>
5634
5635 * common/common-defs.h: New file.
5636 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5637 * defs.h: Include common-defs.h.
5638 Do not include config.h or build-gnulib/config.h.
5639
5640 2014-07-30 Gary Benson <gbenson@redhat.com>
5641
5642 * common/common-utils.h: Do not include config.h.
5643 * nat/linux-btrace.h: Likewise.
5644
5645 2014-07-30 Gary Benson <gbenson@redhat.com>
5646
5647 * btrace.c: Include defs.h.
5648 * common/ptid.c: Include defs.h or server.h as appropriate.
5649 * nat/mips-linux-watch.c: Likewise.
5650
5651 2014-07-29 Tom Tromey <tromey@redhat.com>
5652
5653 * target.c (target_is_pushed): Simplify.
5654
5655 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5656
5657 GDB 7.8 released.
5658
5659 2014-07-29 Yao Qi <yao@codesourcery.com>
5660
5661 PR gdb/17206
5662 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5663
5664 2014-07-28 Doug Evans <xdje42@gmail.com>
5665
5666 PR guile/17203
5667 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5668 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5669 parameters.
5670
5671 2014-07-28 Will Newton <will.newton@linaro.org>
5672
5673 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5674 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5675 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5676 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5677 (THUMB2_EABI_SYSCALL): Likewise.
5678 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5679 struct tramp_frame.
5680 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5681 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5682
5683 2014-07-27 Doug Evans <xdje42@gmail.com>
5684
5685 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5686
5687 2014-07-27 Doug Evans <xdje42@gmail.com>
5688
5689 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5690
5691 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5692 Doug Evans <xdje42@gmail.com>
5693
5694 PR guile/17146
5695 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5696 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5697 * configure.ac: Try to use guild to compile an scm file, if it fails
5698 then disable guile support.
5699 * configure: Regenerate.
5700 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5701 GUILE_FILE_LIST.
5702 (GUILE_COMPILED_FILES): New variable.
5703 (GUILE_FILES) Update.
5704 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5705 (stamp-guile): Compile scm files.
5706 * guile/guile.c (boot_guile_support): New function.
5707 (standard_throw_args_p): New function.
5708 (print_standard_throw_error, print_throw_error): New functions.
5709 (handle_boot_error): New function.
5710 (initialize_scheme_side): Rewrite to call boot_guile_support.
5711 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5712 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5713
5714 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5715 Doug Evans <xdje42@gmail.com>
5716
5717 PR guile/17146
5718 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5719 * guile/lib/gdb/support.scm: New file.
5720 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5721 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5722 All uses updated.
5723 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5724 All uses updated.
5725 (%assert-type): Ditto, and renamed to assert-type.
5726 (%exception-print-style): Delete.
5727
5728 2014-07-26 Doug Evans <xdje42@gmail.com>
5729
5730 PR build/17105
5731 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5732 * configure: Regenerate.
5733 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5734 PYTHON_FILES.
5735 (PYTHON_FILES): New variable.
5736 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5737 (GUILE_FILES): New variable.
5738 (stamp-python, install-python, uninstall-python): Handle empty
5739 file list.
5740 (stamp-guile, install-guile, uninstall-guile): Ditto.
5741
5742 2014-07-26 Doug Evans <xdje42@gmail.com>
5743
5744 PR guile/17177
5745 * guile/lib/gdb.scm (pretty-printers): Export.
5746 (set-pretty-printers!): Export.
5747 * guile/lib/gdb/printing.scm (gdb module): Update.
5748 (prepend-pretty-printer!, append-pretty-printer!): Update.
5749 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5750 (pretty_printer_list_var): Delete.
5751 (pretty_printer_list): New static global.
5752 (gdbscm_pretty_printers): New function.
5753 (gdbscm_set_pretty_printers_x): New function.
5754 (ppscm_find_pretty_printer_from_gdb): Update.
5755 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5756 (gdbscm_initialize_pretty_printers): Update.
5757
5758 2014-07-26 Doug Evans <xdje42@gmail.com>
5759
5760 PR 17185
5761 * configure.ac: Add check for header gc/gc.h.
5762 Add check for function setenv.
5763 * configure: Regenerate.
5764 * config.in: Regenerate.
5765 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5766
5767 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5768
5769 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5770 variation in gdbarch matching.
5771
5772 2014-07-25 Tom Tromey <tromey@redhat.com>
5773
5774 * exec.c (using_exec_ops): Remove.
5775 (exec_close_1): Update. Remove extraneous block, reindent.
5776 (add_target_sections): Use target_is_pushed.
5777
5778 2014-07-25 Pedro Alves <palves@redhat.com>
5779
5780 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5781 * monitor.c (monitor_create_inferior): Likewise.
5782 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5783 * remote-sim.c (gdbsim_create_inferior): Likewise.
5784 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5785 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5786 * windows-nat.c (do_initial_windows_stuff): Likewise.
5787
5788 2014-07-25 Pedro Alves <palves@redhat.com>
5789
5790 * NEWS: Mention signal passing and "signal" command changes.
5791 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5792 comment.
5793 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5794 call.
5795 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5796 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5797 (jump_command): Adjust clear_proceed_status call.
5798 (signal_command): Warn if other thread that are resumed have
5799 signals that will be delivered. Adjust clear_proceed_status call.
5800 (until_next_command, finish_command)
5801 (proceed_after_attach_callback, attach_command_post_wait)
5802 (attach_command): Adjust clear_proceed_status call.
5803 * infrun.c (proceed_after_vfork_done): Likewise.
5804 (proceed_after_attach_callback): Adjust comment.
5805 (clear_proceed_status_thread): Clear stop_signal if not in pass
5806 state.
5807 (clear_proceed_status_callback): Delete.
5808 (clear_proceed_status): New 'step' parameter. Only clear the
5809 proceed status of threads the command being prepared is about to
5810 resume.
5811 (proceed): If passed in an explicit signal, override stop_signal
5812 with it. Don't pass the last stop signal to the thread we're
5813 resuming.
5814 (init_wait_for_inferior): Adjust clear_proceed_status call.
5815 (switch_back_to_stepped_thread): Clear the signal if it should not
5816 be passed.
5817 * infrun.h (clear_proceed_status): New 'step' parameter.
5818 (user_visible_resume_ptid): Add comment.
5819 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5820 signal is in pass state.
5821 * remote.c (append_pending_thread_resumptions): Likewise.
5822 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5823
5824 2014-07-25 Tom Tromey <tromey@redhat.com>
5825
5826 * target.h (target_stopped_data_address)
5827 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5828 parentheses.
5829
5830 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5831
5832 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5833 comments.
5834 (avr_pointer_to_address): Likewise.
5835
5836 2014-07-24 Tom Tromey <tromey@redhat.com>
5837
5838 * monitor.c (compile_pattern): Update.
5839 * target.h (struct target_ops) <to_shortname, to_longname,
5840 to_doc>: Now const.
5841
5842 2014-07-24 Tom Tromey <tromey@redhat.com>
5843
5844 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5845 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5846 (add_info_alias, add_com): Make "doc" const.
5847 (print_doc_line): Make "str" const.
5848 (delete_cmd): Update.
5849 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5850 (print_doc_line): Update.
5851 * cli/cli-script.c (document_command): Update.
5852 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5853 (add_com, add_info, add_info_alias): Update.
5854 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5855 * python/py-cmd.c (cmdpy_destroyer): Update.
5856
5857 2014-07-24 Tom Tromey <tromey@redhat.com>
5858
5859 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5860 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5861 (help_cmd_list): Constify.
5862 (lookup_cmd): Update.
5863 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5864 const.
5865 (help_cmd_list, apropos_cmd): Update.
5866 * cli/cli-script.c (show_user): Update.
5867 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5868 * cli/cli-setshow.h (cmd_show_list): Update.
5869 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5870 (cmd_show_list): Update.
5871 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5872 * python/py-cmd.c (cmdpy_destroyer): Update.
5873
5874 2014-07-24 Tom Tromey <tromey@redhat.com>
5875
5876 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5877 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5878 const.
5879 * command.h (deprecate_cmd): Update.
5880 * maint.c (maintenance_do_deprecate): Add casts.
5881
5882 2014-07-24 Tom Tromey <tromey@redhat.com>
5883
5884 * cli/cli-decode.c (help_cmd): Make parameter "const".
5885 * cli/cli-decode.h (help_cmd): Update.
5886
5887 2014-07-24 Tom Tromey <tromey@redhat.com>
5888
5889 * stack.c (up_silently_base, down_silently_base): Make argument
5890 const.
5891
5892 2014-07-24 Tom Tromey <tromey@redhat.com>
5893
5894 * solib.c (solib_add): Make "pattern" const.
5895 * solib.h (solib_add): Update.
5896
5897 2014-07-24 Tom Tromey <tromey@redhat.com>
5898
5899 * remote.c (remote_serial_open, print_packet, putpkt)
5900 (putpkt_binary): Constify.
5901 * remote.h (putpkt): Update.
5902
5903 2014-07-24 Tom Tromey <tromey@redhat.com>
5904
5905 * monitor.c (monitor_open): Make "args" const.
5906 * monitor.h (monitor_open): Update.
5907
5908 2014-07-24 Tom Tromey <tromey@redhat.com>
5909
5910 * maint.c (match_bfd_flags): Make "string" const.
5911 (print_bfd_section_info): Remove casts.
5912 (print_objfile_section_info): Make "string" const.
5913
5914 2014-07-24 Tom Tromey <tromey@redhat.com>
5915
5916 * inf-child.c (inf_child_open_target): Make "arg" const.
5917 * inf-child.h (inf_child_open_target): Update.
5918
5919 2014-07-24 Tom Tromey <tromey@redhat.com>
5920
5921 * environ.c (unset_in_environ): Make "var" const.
5922 * environ.h (unset_in_environ): Update.
5923
5924 2014-07-24 Tom Tromey <tromey@redhat.com>
5925
5926 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5927 Make "cmd" const.
5928 (scan_filename_with_cleanup): Likewise.
5929 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5930 Make arguments const.
5931 (restore_command): Update.
5932
5933 2014-07-24 Pedro Alves <palves@redhat.com>
5934
5935 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5936
5937 2014-07-24 Tom Tromey <tromey@redhat.com>
5938 Gary Benson <gbenson@redhat.com>
5939
5940 * nat/linux-ptrace.c (additional_flags): New global.
5941 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5942 additional_flags; don't check GDBSERVER.
5943 (linux_ptrace_set_additional_flags): New function.
5944 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5945 Declare.
5946 * linux-nat.c (_initialize_linux_nat): Call
5947 linux_ptrace_set_additional_flags.
5948
5949 2014-07-24 Tom Tromey <tromey@redhat.com>
5950
5951 * make-target-delegates (munge_type, write_debugmethod): New
5952 functions.
5953 (debug_names): New global.
5954 ($TARGET_DEBUG_PRINTER): New global.
5955 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5956 name.
5957 Write debug methods. Generate init_debug_target.
5958 * target-debug.h: New file.
5959 * target-delegates.c: Rebuild.
5960 * target.c: Include target-debug.h.
5961 (debug_target): Hoist definition.
5962 (target_kill, target_get_section_table, target_memory_map)
5963 (target_flash_erase, target_flash_done, target_detach)
5964 (target_disconnect, target_wait, target_resume)
5965 (target_pass_signals, target_program_signals, target_follow_fork)
5966 (target_mourn_inferior, target_search_memory)
5967 (target_thread_address_space, target_close)
5968 (target_find_new_threads, target_core_of_thread)
5969 (target_verify_memory, target_insert_mask_watchpoint)
5970 (target_remove_mask_watchpoint): Remove targetdebug code.
5971 (debug_to_post_attach, debug_to_prepare_to_store)
5972 (debug_to_files_info, debug_to_insert_breakpoint)
5973 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5974 (debug_to_region_ok_for_hw_watchpoint)
5975 (debug_to_can_accel_watchpoint_condition)
5976 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5977 (debug_to_watchpoint_addr_within_range)
5978 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5979 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5980 (debug_to_terminal_init, debug_to_terminal_inferior)
5981 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5982 (debug_to_terminal_save_ours, debug_to_terminal_info)
5983 (debug_to_load, debug_to_post_startup_inferior)
5984 (debug_to_insert_fork_catchpoint)
5985 (debug_to_remove_fork_catchpoint)
5986 (debug_to_insert_vfork_catchpoint)
5987 (debug_to_remove_vfork_catchpoint)
5988 (debug_to_insert_exec_catchpoint)
5989 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5990 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5991 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5992 (setup_target_debug): Call init_debug_target.
5993 * target.h (TARGET_DEBUG_PRINTER): New macro.
5994 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5995 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5996
5997 2014-07-24 Gary Benson <gbenson@redhat.com>
5998
5999 * exceptions.h (throw_vfatal): Renamed to...
6000 (throw_vquit): New declaration.
6001 (throw_quit): Likewise.
6002 * exceptions.c (throw_vfatal): Renamed to...
6003 (throw_vquit): New function.
6004 (throw_quit): Likewise.
6005 (throw_error): Call throw_verror rather than throw_it.
6006 * utils.h (vfatal): Removed.
6007 (fatal): Likewise.
6008 * utils.c (vfatal): Removed.
6009 (fatal): Likewise.
6010 (internal_verror): Replaced call to fatal with call to throw_quit.
6011 (quit): Replaced calls to fatal with calls to throw_quit.
6012
6013 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6014
6015 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6016 target_read_code.
6017
6018 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6019
6020 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6021 less than zero in conditional expression.
6022
6023 2014-07-23 Tom Tromey <tromey@redhat.com>
6024
6025 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6026 ($INTRO_PART): Don't match whitespace.
6027 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6028 argument matching.
6029 ($METHOD): Add $METHOD_TRAILER.
6030 (trim): Rewrite.
6031 (scan_target_h): New sub.
6032 Change main loop not to collect state.
6033 * target-delegates.c: Rebuild.
6034
6035 2014-07-23 Gary Benson <gbenson@redhat.com>
6036
6037 * cp-support.c (gdb_demangle): Fix build on systems without
6038 sigaltstack.
6039
6040 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6043 for reference entry value target data value.
6044
6045 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6046
6047 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6048 value_available_contents_eq.
6049
6050 2014-07-22 Pedro Alves <palves@redhat.com>
6051
6052 * value.c (allocate_optimized_out_value): Don't mark value as
6053 non-lazy.
6054
6055 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6056
6057 * MAINTAINERS (Write After Approval): Update my email address.
6058
6059 2014-07-20 Doug Evans <dje@google.com>
6060
6061 PR server/17147
6062 * remote.c (putpkt_binary): Add text to error message.
6063
6064 2014-07-20 Yao Qi <yao@codesourcery.com>
6065
6066 * eval.c: Remove "Chill" from comments.
6067 * gdbtypes.h: Likewise.
6068 * symtab.h: Likewise.
6069
6070 2014-07-20 Yao Qi <yao@codesourcery.com>
6071
6072 * std-operator.def: Update comments to TERNOP_SLICE.
6073
6074 2014-07-20 Yao Qi <yao@codesourcery.com>
6075
6076 * std-operator.def: Remove BINOP_RANGE.
6077 * breakpoint.c (watchpoint_exp_is_const): Update.
6078 * expprint.c (dump_subexp_body_standard): Likewise.
6079 * eval.c (init_array_element): Remove dead code.
6080 (evaluate_subexp_standard): Likewise.
6081
6082 2014-07-20 Yao Qi <yao@codesourcery.com>
6083
6084 * std-operator.def: Remove BINOP_IN.
6085 * breakpoint.c (watchpoint_exp_is_const): Update.
6086 * eval.c (evaluate_subexp_standard): Likewise.
6087 * expprint.c (dump_subexp_body_standard): Likewise.
6088
6089 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6090
6091 * microblaze-tdep.c (microblaze_register_names): Add
6092 the rshr and rslr register names.
6093 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6094 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6095 Use of tdesc_numbered_register. Use of
6096 microblaze_register_g_packet_guesses. Use of
6097 tdesc_use_registers. Use of set_gdbarch_register_type.
6098 (microblaze_register_g_packet_guesses): New.
6099 * microblaze-tdep.h (microblaze_reg_num): Add
6100 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6101 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6102 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6103 * features/microblaze-core.xml: New file.
6104 * features/microblaze-stack-protect.xml: New file.
6105 * features/microblaze-with-stack-protect.c: New file.
6106 * features/microblaze-with-stack-protect.xml: New file.
6107 * features/microblaze.xml: New file.
6108 * features/microblaze.c: New file.
6109 * features/Makefile (microblaze-with-stack-protect): Add
6110 microblaze-with-stack-protect microblaze and microblaze-expedite.
6111 * regformats/microblaze-with-stack-protect.dat: New file.
6112 * regformats/microblaze.dat: New file.
6113 * doc/gdb.texinfo (MicroBlaze Features): Added.
6114
6115 2014-07-18 Tom Tromey <tromey@redhat.com>
6116
6117 * exec.c (exec_ops): Now static.
6118 * exec.h (exec_ops): Don't declare.
6119
6120 2014-07-18 Tom Tromey <tromey@redhat.com>
6121
6122 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6123 to find_target_beneath.
6124 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6125 find_target_beneath.
6126 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6127
6128 2014-07-18 Tom Tromey <tromey@redhat.com>
6129
6130 PR gdb/17130:
6131 * utils.c (quit): Use target_supports_terminal_ours.
6132 * target.h (target_supports_terminal_ours): Declare.
6133 * target.c (target_supports_delete_record): Don't check
6134 to_delete_record against NULL.
6135 (target_supports_terminal_ours): New function.
6136
6137 2014-07-18 Tom Tromey <tromey@redhat.com>
6138
6139 PR gdb/17130:
6140 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6141 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6142 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6143 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6144 * windows-nat.c (windows_xfer_partial): Always delegate.
6145 * record-btrace.c (record_btrace_xfer_partial): Simplify
6146 delegation.
6147 (record_btrace_fetch_registers, record_btrace_store_registers)
6148 (record_btrace_prepare_to_store, record_btrace_resume)
6149 (record_btrace_wait, record_btrace_find_new_threads)
6150 (record_btrace_thread_alive): Likewise.
6151 * procfs.c (procfs_xfer_partial): Always delegate.
6152 * corelow.c (core_xfer_partial): Always delegate.
6153 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6154
6155 2014-07-18 Tom Tromey <tromey@redhat.com>
6156
6157 * exec.c (exec_make_note_section): Move earlier.
6158
6159 2014-07-17 Doug Evans <dje@google.com>
6160
6161 PR gdb/17170
6162 * maint.c (count_symtabs_and_blocks): Handle NULL
6163 current_program_space.
6164 (report_command_stats): Check global enabled flag in addition to
6165 recorded enabled flag.
6166 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6167
6168 2014-07-16 Pedro Alves <palves@redhat.com>
6169
6170 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6171
6172 2014-07-16 Tom Tromey <tromey@redhat.com>
6173
6174 * target.h (struct target_ops) <to_delete_record>: Reformat
6175 comment.
6176
6177 2014-07-16 Tom Tromey <tromey@redhat.com>
6178
6179 * target-delegates.c: Rebuild.
6180
6181 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6182
6183 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6184 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6185 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6186 (avr_pointer_to_address): Likewise.
6187 (avr_address_class_type_flags): New function.
6188 (avr_address_class_type_flags_to_name): Likewise.
6189 (avr_address_class_name_to_type_flags): Likewise.
6190 (avr_gdbarch_init): Set address_class_type_flags,
6191 address_class_type_flags_to_name and
6192 address_class_name_to_type_flags.
6193
6194 2014-07-15 Pedro Alves <palves@redhat.com>
6195
6196 * linux-nat.c (kill_callback): Save errno and work with saved
6197 copy.
6198
6199 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6200
6201 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6202
6203 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6204
6205 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6206 breakpoint support correctly.
6207
6208 2014-07-14 Pedro Alves <palves@redhat.com>
6209
6210 * utils.c (prompt_for_continue): Call target_terminal_ours.
6211
6212 2014-07-14 Pedro Alves <palves@redhat.com>
6213
6214 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6215 catch_errors. Don't re-enable stdin or notify observers where,
6216 and rethrow error.
6217 (fetch_inferior_event_wrapper): Delete.
6218
6219 2014-07-14 Pedro Alves <palves@redhat.com>
6220
6221 PR gdb/17072
6222 * top.c: Include "inf-loop.h".
6223 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6224 field.
6225 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6226 was async before.
6227 (gdb_readline_wrapper): Store whether the target is async, and
6228 make it sync.
6229
6230 2014-07-14 Pedro Alves <palves@redhat.com>
6231
6232 PR gdb/17072
6233 * top.c (gdb_readline_wrapper_line): Tweak comment.
6234 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6235 the input handler callback.
6236
6237 2014-07-14 Pedro Alves <palves@redhat.com>
6238
6239 PR gdb/17072
6240 * main.c: Include event-top.h.
6241 (handle_command_errors): New function.
6242 (catch_command_errors, catch_command_errors_const): Use it.
6243
6244 2014-07-14 Pedro Alves <palves@redhat.com>
6245
6246 * exceptions.c (catch_command_errors, catch_command_errors_const):
6247 Moved to main.c.
6248 * exceptions.h (catch_command_errors_ftype)
6249 (catch_command_errors_const_ftype): Moved to main.c.
6250 (catch_command_errors, catch_command_errors_const): Delete
6251 declarations.
6252 * main.c (catch_command_errors_ftype)
6253 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6254 (catch_command_errors, catch_command_errors_const)): Moved here
6255 from exceptions.c and make static.
6256
6257 2014-07-14 Pedro Alves <palves@redhat.com>
6258
6259 * exceptions.c (print_any_exception): Delete.
6260 (catch_exceptions_with_msg): Use exception_print instead of
6261 print_any_exception.
6262 (catch_errors): Use exception_fprintf instead of
6263 print_any_exception.
6264 (catch_command_errors, catch_command_errors_const): Use
6265 exception_print instead of print_any_exception.
6266
6267 2014-07-14 Pedro Alves <palves@redhat.com>
6268
6269 * infcall.c (run_inferior_call): Set 'sync_execution' while
6270 running the inferior call.
6271
6272 2014-07-14 Pedro Alves <palves@redhat.com>
6273
6274 * value.c (value_contents_equal): Delete function.
6275 * value.h (value_contents_equal): Delete declaration.
6276
6277 2014-07-14 Tom Tromey <tromey@redhat.com>
6278
6279 PR exp/17106:
6280 * gdbtypes.c (is_dynamic_type_internal): New function, from
6281 is_dynamic_type.
6282 (is_dynamic_type): Rewrite.
6283 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6284 (resolve_dynamic_struct): Likewise.
6285 (resolve_dynamic_type_internal): New function, from
6286 resolve_dynamic_type.
6287 (resolve_dynamic_type): Rewrite.
6288
6289 2014-07-14 Tom Tromey <tromey@redhat.com>
6290
6291 * target.c (target_require_runnable): Also check record_stratum.
6292 Update comment.
6293
6294 2014-07-11 Yao Qi <yao@codesourcery.com>
6295
6296 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6297 thumb_instruction_restores_sp return true.
6298
6299 2014-07-11 Yao Qi <yao@codesourcery.com>
6300
6301 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6302 (thumb_in_function_epilogue_p): Call
6303 thumb_instruction_restores_sp.
6304
6305 2014-07-11 Yao Qi <yao@codesourcery.com>
6306
6307 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6308 'add sp, #imm'.
6309 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6310
6311 2014-07-11 Gary Benson <gbenson@redhat.com>
6312
6313 * amd64-linux-nat.c (gdbcore.h): Remove include.
6314 (regset.h): Likewise.
6315 (nat/linux-btrace.h): Likewise.
6316 (btrace.h): Likewise.
6317 (gdb_assert.h): Likewise.
6318 (string.h): Likewise.
6319 (sys/uio.h): Likewise.
6320 (sys/debugreg.h): Likewise.
6321 (sys/syscall.h): Likewise.
6322 (sys/procfs.h): Likewise.
6323 (sys/user.h): Likewise.
6324 (asm/ptrace.h): Likewise.
6325 (i386-nat.h): Likewise.
6326 * i386-linux-nat.c (i386-nat.h): Likewise.
6327 (regset.h): Likewise.
6328 (target.h): Likewise.
6329 (linux-nat.h): Likewise.
6330 (nat/linux-btrace.h): Likewise.
6331 (btrace.h): Likewise.
6332 (gdb_assert.h): Likewise.
6333 (string.h): Likewise.
6334 (sys/uio.h): Likewise.
6335 (sys/user.h): Likewise.
6336 (sys/procfs.h): Likewise.
6337 (sys/reg.h): Likewise.
6338 (sys/debugreg.h): Likewise.
6339 (ORIG_EAX): Remove definition.
6340
6341 2014-07-11 Gary Benson <gbenson@redhat.com>
6342
6343 * i386-linux-nat.h: New file.
6344 * x86-linux-nat.h: Likewise.
6345 * x86-linux-nat.c: Likewise.
6346 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6347 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6348 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6349 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6350 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6351 (PTRACE_SETREGSET): Likewise.
6352 (arch_lwp_info): Now in x86-linux-nat.c.
6353 (have_ptrace_getregset): Now in x86-linux-nat.h.
6354 (x86_linux_dr_get): Now in x86-linux-nat.c.
6355 (x86_linux_dr_set): Likewise.
6356 (x86_linux_dr_get_addr): Likewise.
6357 (x86_linux_dr_get_control): Likewise.
6358 (x86_linux_dr_get_status): Likewise.
6359 (update_debug_registers_callback): Likewise.
6360 (x86_linux_dr_set_control): Likewise.
6361 (x86_linux_dr_set_addr): Likewise.
6362 (x86_linux_prepare_to_resume): Likewise.
6363 (x86_linux_new_thread): Likewise.
6364 (x86_linux_new_fork): Likewise.
6365 (x86_linux_get_thread_area): Likewise.
6366 (super_post_startup_inferior): Likewise.
6367 (x86_linux_child_post_startup_inferior): Likewise.
6368 (AMD64_LINUX_USER64_CS): Likewise.
6369 (AMD64_LINUX_X32_DS): Likewise.
6370 (x86_linux_read_description): Likewise.
6371 (x86_linux_enable_btrace): Likewise.
6372 (x86_linux_disable_btrace): Likewise.
6373 (x86_linux_teardown_btrace): Likewise.
6374 (x86_linux_read_btrace): Likewise.
6375 (x86_linux_create_target): Likewise.
6376 (x86_linux_add_target): Likewise.
6377 * i386-linux-nat.c (x86-linux-nat.h): New include.
6378 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6379 (PTRACE_SETREGSET): Likewise.
6380 (arch_lwp_info): Now in x86-linux-nat.c.
6381 (have_ptrace_getregset): Now in x86-linux-nat.h.
6382 (x86_linux_dr_get): Now in x86-linux-nat.c.
6383 (x86_linux_dr_set): Likewise.
6384 (x86_linux_dr_get_addr): Likewise.
6385 (x86_linux_dr_get_control): Likewise.
6386 (x86_linux_dr_get_status): Likewise.
6387 (update_debug_registers_callback): Likewise.
6388 (x86_linux_dr_set_control): Likewise.
6389 (x86_linux_dr_set_addr): Likewise.
6390 (x86_linux_prepare_to_resume): Likewise.
6391 (x86_linux_new_thread): Likewise.
6392 (x86_linux_new_fork): Likewise.
6393 (x86_linux_get_thread_area): Likewise.
6394 (super_post_startup_inferior): Likewise.
6395 (x86_linux_child_post_startup_inferior): Likewise.
6396 (AMD64_LINUX_USER64_CS): Likewise.
6397 (AMD64_LINUX_X32_DS): Likewise.
6398 (x86_linux_read_description): Likewise.
6399 (x86_linux_enable_btrace): Likewise.
6400 (x86_linux_disable_btrace): Likewise.
6401 (x86_linux_teardown_btrace): Likewise.
6402 (x86_linux_read_btrace): Likewise.
6403 (x86_linux_create_target): Likewise.
6404 (x86_linux_add_target): Likewise.
6405
6406 2014-07-11 Gary Benson <gbenson@redhat.com>
6407
6408 * amd64-linux-nat.c: Comment and whitespace changes.
6409 * i386-linux-nat.c: Comment and whitespace changes.
6410
6411 2014-07-11 Gary Benson <gbenson@redhat.com>
6412
6413 * amd64-linux-nat.c (x86_linux_create_target): New function.
6414 (x86_linux_add_target): Likewise.
6415 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6416 * i386-linux-nat.c (x86_linux_create_target): New function.
6417 (x86_linux_add_target): Likewise.
6418 (_initialize_i386_linux_nat): Delegate to the above new functions.
6419
6420 2014-07-11 Gary Benson <gbenson@redhat.com>
6421
6422 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6423 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6424 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6425 (ps_get_thread_area): Delegate to the above.
6426
6427 2014-07-11 Gary Benson <gbenson@redhat.com>
6428
6429 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6430 x86_linux_read_description. All uses updated. amd64-specific
6431 code conditionalized. Conditionalized i386-specific code added.
6432 Redundant cast removed.
6433 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6434 x86_linux_read_description. All uses updated. i386-specific
6435 code conditionalized. Conditionalized amd64-specific code added.
6436 One sizeof replaced with the actual type it is describing.
6437
6438 2014-07-11 Gary Benson <gbenson@redhat.com>
6439
6440 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6441 x86_linux_dr_get. All uses updated.
6442 (amd64_linux_dr_set): Renamed to
6443 x86_linux_dr_set. All uses updated.
6444 (amd64_linux_dr_get_addr): Renamed to
6445 x86_linux_dr_get_addr. All uses updated.
6446 (amd64_linux_dr_get_control): Renamed to
6447 x86_linux_dr_get_control. All uses updated.
6448 (amd64_linux_dr_get_status): Renamed to
6449 x86_linux_dr_get_status. All uses updated.
6450 (amd64_linux_dr_set_control): Renamed to
6451 x86_linux_dr_set_control. All uses updated.
6452 (amd64_linux_dr_set_addr): Renamed to
6453 x86_linux_dr_set_addr. All uses updated.
6454 (amd64_linux_prepare_to_resume): Renamed to
6455 x86_linux_prepare_to_resume. All uses updated.
6456 (amd64_linux_new_thread): Renamed to
6457 x86_linux_new_thread. All uses updated.
6458 (amd64_linux_new_fork): Renamed to
6459 x86_linux_new_fork. All uses updated.
6460 (amd64_linux_child_post_startup_inferior): Renamed to
6461 x86_linux_child_post_startup_inferior. All uses updated.
6462 (amd64_linux_enable_btrace): Renamed to
6463 x86_linux_enable_btrace. All uses updated.
6464 (amd64_linux_disable_btrace): Renamed to
6465 x86_linux_disable_btrace. All uses updated.
6466 (amd64_linux_teardown_btrace): Renamed to
6467 x86_linux_teardown_btrace. All uses updated.
6468 (amd64_linux_read_btrace): Renamed to
6469 x86_linux_read_btrace. All uses updated.
6470 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6471 x86_linux_dr_get. All uses updated.
6472 (i386_linux_dr_set): Renamed to
6473 x86_linux_dr_set. All uses updated.
6474 (i386_linux_dr_get_addr): Renamed to
6475 x86_linux_dr_get_addr. All uses updated.
6476 (i386_linux_dr_get_control): Renamed to
6477 x86_linux_dr_get_control. All uses updated.
6478 (i386_linux_dr_get_status): Renamed to
6479 x86_linux_dr_get_status. All uses updated.
6480 (i386_linux_dr_set_control): Renamed to
6481 x86_linux_dr_set_control. All uses updated.
6482 (i386_linux_dr_set_addr): Renamed to
6483 x86_linux_dr_set_addr. All uses updated.
6484 (i386_linux_prepare_to_resume): Renamed to
6485 x86_linux_prepare_to_resume. All uses updated.
6486 (i386_linux_new_thread): Renamed to
6487 x86_linux_new_thread. All uses updated.
6488 (i386_linux_new_fork): Renamed to
6489 x86_linux_new_fork. All uses updated.
6490 (i386_linux_child_post_startup_inferior): Renamed to
6491 x86_linux_child_post_startup_inferior. All uses updated.
6492 (i386_linux_enable_btrace): Renamed to
6493 x86_linux_enable_btrace. All uses updated.
6494 (i386_linux_disable_btrace): Renamed to
6495 x86_linux_disable_btrace. All uses updated.
6496 (i386_linux_teardown_btrace): Renamed to
6497 x86_linux_teardown_btrace. All uses updated.
6498 (i386_linux_read_btrace): Renamed to
6499 x86_linux_read_btrace. All uses updated.
6500
6501 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6502
6503 * remote.c (extended_remote_post_attach): New function.
6504 (init_extended_remote_ops): Install it as to_post_attach method.
6505
6506 2014-07-09 Pedro Alves <palves@redhat.com>
6507
6508 * infcmd.c (attach_command_post_wait): Don't call
6509 target_terminal_inferior here.
6510 (attach_command): Call it here instead.
6511
6512 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6515 field.
6516 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6517 from varobj.c, with additional checks.
6518 (c_varobj_ops): Fill in is_path_expr_parent field.
6519 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6520 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6521 field.
6522 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6523 ops method.
6524 (varobj_default_is_path_expr_parent): New function.
6525 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6526 (varobj_default_is_path_expr_parent): Declare new function.
6527
6528 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6529
6530 * infcmd.c (finish_backward): Turn internal error into normal error.
6531
6532 2014-07-07 Pedro Alves <palves@redhat.com>
6533
6534 PR gdb/17096
6535 * remote.c (async_handle_remote_sigint)
6536 (async_handle_remote_sigint_twice): Call
6537 gdb_call_async_signal_handler instead of
6538 mark_async_signal_handler.
6539
6540 2014-07-07 Tom Tromey <tromey@redhat.com>
6541
6542 * target-delegates.c: Rebuild.
6543 * target.c (target_info_record): Remove.
6544 * record.c (info_record_command): Unconditionally call
6545 to_info_record.
6546 * target.h (struct target_ops) <to_info_record>: Use
6547 TARGET_DEFAULT_IGNORE.
6548 (target_info_record): Remove.
6549
6550 2014-07-07 Tom Tromey <tromey@redhat.com>
6551
6552 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6553 TARGET_DEFAULT_NORETURN.
6554 * target.c (generic_tls_error): New function.
6555 (target_translate_tls_address): Don't search target stack.
6556 * target-delegates.c: Rebuild.
6557 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6558 stack.
6559 * linux-thread-db.c (thread_db_get_thread_local_address):
6560 Unconditionally call beneath target.
6561
6562 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6563
6564 * cli/cli-logging.c (pop_output_files): Assign targerr to
6565 gdb_stdtargerr.
6566
6567 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * MAINTAINERS (Write After Approval): Update my email address.
6570
6571 2014-07-02 Gary Benson <gbenson@redhat.com>
6572
6573 * proc-service.c (ps_xfer_memory): Update comment.
6574 (ps_pstop): Remove unused function.
6575 (ps_pcontinue): Likewise.
6576 (ps_lstop): Likewise.
6577 (ps_lcontinue): Likewise.
6578 (ps_lgetxregsize): Likewise.
6579 (ps_lgetxregs): Likewise.
6580 (ps_lsetxregs): Likewise.
6581 (ps_plog): Likewise.
6582 (ps_ptread): Likewise.
6583 (ps_ptwrite): Likewise.
6584
6585 2014-07-01 Mark Wielaard <mjw@redhat.com>
6586
6587 * dwarf2read.c (add_array_cv_type): New function.
6588 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6589 (read_tag_volatile_type): Likewise.
6590
6591 2014-07-01 Tom Tromey <tromey@redhat.com>
6592
6593 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6594 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6595 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6596 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6597 * command.h (cmd_cfunc_ftype): Move earlier.
6598 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6599 (add_com, add_info): Use cmd_cfunc_ftype.
6600
6601 2014-06-30 Tom Tromey <tromey@redhat.com>
6602
6603 * symtab.c (operator_chars): Make parameters and return type
6604 const.
6605 (file_matches): Make "files" const.
6606 (struct search_symbols_data) <files>: Now const.
6607 (search_symbols): Make "regexp" and "files" parameters const.
6608 Update.
6609 (symtab_symbol_info): Remove cast.
6610 (rbreak_command): Update.
6611 * symtab.h (search_symbols): Update.
6612
6613 2014-06-27 Yao Qi <yao@codesourcery.com>
6614
6615 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6616 Change parameter type to 'struct thread_info *'. Caller
6617 updated.
6618 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6619 Update declaration.
6620 * dummy-frame.c (struct dummy_frame_id): New.
6621 (dummy_frame_id_eq): New function.
6622 (struct dummy_frame) <id>: Change its type to 'struct
6623 dummy_frame_id'.
6624 (dummy_frame_push): Add parameter ptid and save it in
6625 dummy_frame_id.
6626 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6627 inferior_ptid.
6628 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6629 to inferior_ptid.
6630 (lookup_dummy_frame): Change parameter type to 'struct
6631 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6632 instead of frame_id_eq.
6633 (dummy_frame_pop): Add parameter ptid. Callers updated.
6634 Update comments. Compose dummy_frame_id and pass it to
6635 lookup_dummy_frame.
6636 (dummy_frame_discard): Add parameter ptid.
6637 (dummy_frame_sniffer): Compose dummy_frame_id and call
6638 dummy_frame_id_eq instead of frame_id_eq.
6639 (fprint_dummy_frames): Print ptid.
6640 * dummy-frame.h: Remove comments.
6641 (dummy_frame_push): Add ptid in declaration.
6642 (dummy_frame_pop, dummy_frame_discard): Likewise.
6643
6644 2014-06-26 Tom Tromey <tromey@redhat.com>
6645
6646 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6647 * command.h (error_no_arg): Update.
6648
6649 2014-06-26 Tom Tromey <tromey@redhat.com>
6650
6651 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6652 (do_show_command): Make "arg" const.
6653 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6654
6655 2014-06-26 Tom Tromey <tromey@redhat.com>
6656
6657 * record-full.c (record_full_get_bookmark): Make "args" const.
6658 (record_full_goto_bookmark): Make "raw_bookmark" const.
6659 * record.c (record_goto): New function.
6660 (cmd_record_goto): Use it. Now static.
6661 * record.h (record_goto): Declare.
6662 (cmd_record_goto): Remove declaration.
6663 * target-delegates.c: Rebuild.
6664 * target.h (struct target_ops) <to_get_bookmark,
6665 to_goto_bookmark>: Make parameter const.
6666
6667 2014-06-26 Tom Tromey <tromey@redhat.com>
6668
6669 * defs.h (generic_load): Update.
6670 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6671 * monitor.c (monitor_load): Make "args" const.
6672 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6673 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6674 const.
6675 (mips_load): Make "file" const.
6676 * remote-sim.c (gdbsim_load): Make "args" const.
6677 * remote.c (remote_load): Make "name" const.
6678 * symfile.c (generic_load): Make "args" const.
6679 * target-delegates.c: Rebuild.
6680 * target.c (target_load): Make "arg" const.
6681 (debug_to_load): Make "args" const.
6682 * target.h (struct target_ops) <to_load>: Make parameter const.
6683 (target_load): Update.
6684
6685 2014-06-26 Tom Tromey <tromey@redhat.com>
6686
6687 PR symtab/16902:
6688 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6689 (dwarf2_physname, read_partial_die)
6690 (guess_partial_die_structure_name, fixup_partial_die)
6691 (guess_full_die_structure_name, anonymous_struct_prefix)
6692 (dwarf2_name): Use per-BFD obstack.
6693
6694 2014-06-26 Yao Qi <yao@codesourcery.com>
6695
6696 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6697 dummyframe and this_id into inner block below.
6698
6699 2014-06-26 Yao Qi <yao@codesourcery.com>
6700
6701 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6702 with "signal_pass[0]" in the initialization of signal_pass.
6703
6704 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6705
6706 * record-btrace.c (record_btrace_generating_corefile)
6707 (record_btrace_prepare_to_generate_core)
6708 (record_btrace_done_generating_core): New.
6709 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6710 (record_btrace_store_registers, record_btrace_prepare_to_store):
6711 Forward request when generating a core file.
6712 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6713 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6714 to_done_generating_core.
6715
6716 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6717
6718 * target.h (target_ops) <to_prepare_to_generate_core>
6719 <to_done_generating_core>: New.
6720 (target_prepare_to_generate_core, target_done_generating_core): New.
6721 * target.c (target_prepare_to_generate_core)
6722 (target_done_generating_core): New.
6723 * target-delegates.c: Regenerate.
6724 * gcore.c: (write_gcore_file): Rename to ...
6725 (write_gcore_file_1): ...this.
6726 (write_gcore_file): Call target_prepare_to_generate_core
6727 and target_done_generating_core.
6728
6729 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6730
6731 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6732 * gcore.c (write_gcore_file): Free memory returned from
6733 make_corefile_notes.
6734 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6735 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6736
6737 2014-06-24 Yao Qi <yao@codesourcery.com>
6738
6739 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6740 (arm_linux_init_abi): Set skip_trampoline_code with
6741 gdbarch_skip_trampoline_code instead of
6742 find_solib_trampoline_target.
6743
6744 2014-06-24 Yao Qi <yao@codesourcery.com>
6745
6746 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6747 arm_skip_bx_reg returns non-zero.
6748
6749 2014-06-24 Yao Qi <yao@codesourcery.com>
6750
6751 * arm-tdep.c (arm_skip_bx_reg): New function.
6752 (arm_skip_stub): Call arm_skip_bx_reg.
6753
6754 2014-06-23 Don Breazeal <donb@codesourcery.com>
6755
6756 * MAINTAINERS: Add myself as write-after-approval maintainer.
6757
6758 2014-06-23 Pedro Alves <palves@redhat.com>
6759
6760 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6761 DR_CONTROL before setting DR0..DR3.
6762 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6763 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6764 bits of DR_CONTROL related to the debug register slot being
6765 disabled. If all slots are vacant, clear local slowdown as well,
6766 and assert DR_CONTROL is 0.
6767
6768 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6769
6770 * python/lib/gdb/command/xmethods.py
6771 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6772 current progspace only if the string "progspace" matches LOCUS_RE.
6773
6774 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6775
6776 Fix --with-system-readline with readline-6.3 patch 5.
6777 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6778 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6779 types.
6780
6781 2014-06-20 Tom Tromey <tromey@redhat.com>
6782
6783 * dwarf2read.c (dw2_get_real_path): Use correct type in
6784 OBSTACK_CALLOC.
6785 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6786
6787 2014-06-20 Gary Benson <gbenson@redhat.com>
6788
6789 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6790 * common/glibc_thread_db.h: Likewise.
6791 * common/i386-cpuid.h: Likewise.
6792 * common/i386-gcc-cpuid.h: Likewise.
6793 * common/linux-btrace.h: Likewise.
6794 * common/linux-osdata.h: Likewise.
6795 * common/linux-procfs.h: Likewise.
6796 * common/linux-ptrace.h: Likewise.
6797 * common/mips-linux-watch.h: Likewise.
6798 * common/linux-btrace.c: Moved to nat.
6799 * common/linux-osdata.c: Likewise.
6800 * common/linux-procfs.c: Likewise.
6801 * common/linux-ptrace.c: Likewise.
6802 * common/mips-linux-watch.c: Likewise.
6803 * nat/gdb_thread_db.h: Moved from common.
6804 * nat/glibc_thread_db.h: Likewise.
6805 * nat/i386-cpuid.h: Likewise.
6806 * nat/i386-gcc-cpuid.h: Likewise.
6807 * nat/linux-btrace.c: Likewise.
6808 * nat/linux-btrace.h: Likewise.
6809 * nat/linux-osdata.c: Likewise.
6810 * nat/linux-osdata.h: Likewise.
6811 * nat/linux-procfs.c: Likewise.
6812 * nat/linux-procfs.h: Likewise.
6813 * nat/linux-ptrace.c: Likewise.
6814 * nat/linux-ptrace.h: Likewise.
6815 * nat/mips-linux-watch.c: Likewise.
6816 * nat/mips-linux-watch.h: Likewise.
6817 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6818 (object file files): Reordered.
6819 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6820 of glibc_thread_db.h.
6821
6822 2014-06-20 Gary Benson <gbenson@redhat.com>
6823
6824 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6825 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6826 (i386_dr_low): Likewise.
6827 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6828 (i386_dr_low_set_addr): Likewise.
6829 (i386_dr_low_get_addr): Likewise.
6830 (i386_dr_low_can_set_control): Likewise.
6831 (i386_dr_low_set_control): Likewise.
6832 (i386_dr_low_get_control): Likewise.
6833 (i386_dr_low_get_status): Likewise.
6834 (i386_get_debug_register_length): Likewise.
6835 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6836 (i386_dr_low): Likewise.
6837 * nat/i386-dregs.c (i386-low.h): Remove include.
6838 (i386-nat.h): Likewise.
6839 (nat/i386-dregs.h): New include.
6840 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6841 (i386_dr_low_set_addr): Likewise.
6842 (i386_dr_low_get_addr): Likewise.
6843 (i386_dr_low_can_set_control): Likewise.
6844 (i386_dr_low_set_control): Likewise.
6845 (i386_dr_low_get_control): Likewise.
6846 (i386_dr_low_get_status): Likewise.
6847 (i386_get_debug_register_length): Likewise.
6848 (debug_hw_points): Likewise.
6849
6850 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6851
6852 * Makefile.in (SFILES): Add d-exp.y.
6853 (YYFILES): Add d-exp.c.
6854 (YYOBJ): Add d-exp.o.
6855 (local-maintainer-clean): Delete d-exp.c.
6856 * d-exp.y: New file.
6857 * d-lang.h (d_parse): New declaration.
6858 (d_error): New declaration.
6859 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6860 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6861 PREC_ORDER operators.
6862 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6863
6864 2014-06-19 Yao Qi <yao@codesourcery.com>
6865
6866 * gdbthread.h (any_running): Remove the declaration.
6867 * thread.c (any_running): Remove.
6868
6869 2014-06-19 Yao Qi <yao@codesourcery.com>
6870
6871 * gdbthread.h (struct thread_info) <state>: Change its type to
6872 'enum thread_state'. Update comments.
6873
6874 2014-06-19 Pedro Alves <palves@redhat.com>
6875
6876 * gdbthread.h (ALL_THREADS): Delete.
6877 (ALL_NON_EXITED_THREADS): New macro.
6878 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6879 instead of ALL_THREADS.
6880 * infrun.c (find_thread_needs_step_over)
6881 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6882 instead of ALL_THREADS.
6883 * record-btrace.c (record_btrace_open)
6884 (record_btrace_stop_recording, record_btrace_close)
6885 (record_btrace_is_replaying, record_btrace_resume)
6886 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6887 * remote.c (append_pending_thread_resumptions): Likewise.
6888 * thread.c (thread_apply_all_command): Likewise.
6889
6890 2014-06-19 Gary Benson <gbenson@redhat.com>
6891
6892 * i386-nat.c (i386_stopped_by_watchpoint):
6893 Use i386_dr_stopped_by_watchpoint.
6894 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6895 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6896
6897 2014-06-19 Gary Benson <gbenson@redhat.com>
6898
6899 * nat/i386-dregs.c: New file.
6900 * Makefile.in (i386-dregs.o): New rule.
6901 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6902 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6903 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6904 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6905 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6906 * config/i386/go32.mh (NATDEPFILES): Likewise.
6907 * config/i386/linux.mh (NATDEPFILES): Likewise.
6908 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6909 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6910 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6911 * i386-nat.h (debug_hw_points): New declaration.
6912 * i386-nat.c (breakpoint.h): Remove include.
6913 (command.h): Likewise.
6914 (target.h): Likewise.
6915 (gdb_assert.h): Likewise.
6916 (debug_hw_points): Made nonstatic.
6917 (debug_printf): Now in i386-dregs.c.
6918 (TARGET_HAS_DR_LEN_8): Likewise.
6919 (DR_CONTROL_SHIFT): Likewise.
6920 (DR_CONTROL_SIZE): Likewise.
6921 (DR_RW_EXECUTE): Likewise.
6922 (DR_RW_WRITE): Likewise.
6923 (DR_RW_READ): Likewise.
6924 (DR_RW_IORW): Likewise.
6925 (DR_LEN_1): Likewise.
6926 (DR_LEN_2): Likewise.
6927 (DR_LEN_4): Likewise.
6928 (DR_LEN_8): Likewise.
6929 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6930 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6931 (DR_ENABLE_SIZE): Likewise.
6932 (DR_LOCAL_SLOWDOWN): Likewise.
6933 (DR_GLOBAL_SLOWDOWN): Likewise.
6934 (DR_CONTROL_RESERVED): Likewise.
6935 (I386_DR_CONTROL_MASK): Likewise.
6936 (I386_DR_VACANT): Likewise.
6937 (I386_DR_LOCAL_ENABLE): Likewise.
6938 (I386_DR_GLOBAL_ENABLE): Likewise.
6939 (I386_DR_DISABLE): Likewise.
6940 (I386_DR_SET_RW_LEN): Likewise.
6941 (I386_DR_GET_RW_LEN): Likewise.
6942 (I386_DR_WATCH_HIT): Likewise.
6943 (i386_wp_op_t): Likewise.
6944 (i386_show_dr): Likewise.
6945 (i386_length_and_rw_bits): Likewise.
6946 (i386_insert_aligned_watchpoint): Likewise.
6947 (i386_remove_aligned_watchpoint): Likewise.
6948 (i386_handle_nonaligned_watchpoint): Likewise.
6949 (i386_update_inferior_debug_regs): Likewise.
6950 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6951 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6952 (i386_region_ok_for_watchpoint):
6953 Use i386_dr_region_ok_for_watchpoint.
6954 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6955
6956 2014-06-19 Gary Benson <gbenson@redhat.com>
6957
6958 * i386-nat.c (i386_insert_hw_breakpoint): Use
6959 i386_insert_watchpoint.
6960 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6961
6962 2014-06-19 Gary Benson <gbenson@redhat.com>
6963
6964 * i386-nat.c (i386_dr_show): Renamed to
6965 i386_show_dr and made static. All uses updated.
6966 (i386_dr_length_and_rw_bits): Renamed to
6967 i386_length_and_rw_bits and made static.
6968 All uses updated.
6969 (i386_dr_insert_aligned_watchpoint): Renamed to
6970 i386_insert_aligned_watchpoint and made static.
6971 All uses updated.
6972 (i386_dr_remove_aligned_watchpoint): Renamed to
6973 i386_remove_aligned_watchpoint and made static.
6974 All uses updated.
6975 (i386_dr_update_inferior_debug_regs): Renamed to
6976 i386_update_inferior_debug_regs and made static.
6977 All uses updated.
6978 * nat/i386-dregs.h (i386_dr_show): Removed.
6979 (i386_dr_length_and_rw_bits): Likewise.
6980 (i386_dr_insert_aligned_watchpoint): Likewise.
6981 (i386_dr_remove_aligned_watchpoint): Likewise.
6982 (i386_dr_update_inferior_debug_regs): Likewise.
6983
6984 2014-06-19 Gary Benson <gbenson@redhat.com>
6985
6986 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6987 * configure: Regenerate.
6988 * config.in: Likewise.
6989 * main.c (signal.h): New include.
6990 (setup_alternate_signal_stack): New function.
6991 (captured_main): Call the above.
6992 * cp-support.c (signal.h): New include.
6993 (catch_demangler_crashes): New flag.
6994 (SIGJMP_BUF): New define.
6995 (SIGSETJMP): Likewise.
6996 (SIGLONGJMP): Likewise.
6997 (gdb_demangle_jmp_buf): New static global.
6998 (gdb_demangle_attempt_core_dump): Likewise.
6999 (gdb_demangle_signal_handler): New function.
7000 (gdb_demangle): If catch_demangler_crashes is set, install the
7001 above signal handler before calling bfd_demangle, and restore
7002 the original signal handler afterwards. Display the offending
7003 symbol and call demangler_warning the first time a segmentation
7004 fault is caught.
7005 (_initialize_cp_support): New maint set/show command.
7006
7007 2014-06-19 Gary Benson <gbenson@redhat.com>
7008
7009 * utils.h (resource_limit_kind): New enum.
7010 (can_dump_core): New declaration.
7011 (warn_cant_dump_core): Likewise.
7012 (dump_core): Likewise.
7013 * utils.c (dump_core): Made nonstatic. Added new
7014 parameter "limit_kind".
7015 (can_dump_core): Made nonstatic. Moved printing code to...
7016 (warn_cant_dump_core): New function.
7017 (can_dump_core_warn): Likewise.
7018 (internal_vproblem): Replace calls to can_dump_core with
7019 calls to can_dump_core_warn. Supply new argument to each.
7020
7021 2014-06-19 Gary Benson <gbenson@redhat.com>
7022
7023 * utils.h (demangler_vwarning): New declaration.
7024 (demangler_warning): Likewise.
7025 * utils.c (struct internal_problem)
7026 <user_settable_should_quit>: New field.
7027 <user_settable_should_dump_core>: Likewise
7028 (internal_error_problem): Add values for above new fields.
7029 (internal_warning_problem): Likewise.
7030 (demangler_warning_problem): New static global.
7031 (demangler_vwarning): New function.
7032 (demangler_warning): Likewise.
7033 (add_internal_problem_command): Selectively add commands.
7034 (_initialize_utils): New internal problem command.
7035 * maint.c (maintenance_demangler_warning): New function.
7036 (_initialize_maint_cmds): New command.
7037
7038 2014-06-18 Tom Tromey <tromey@redhat.com>
7039
7040 * f-valprint.c (info_common_command_for_block): Update.
7041 * symtab.h (struct general_symbol_info) <common_block>: Now
7042 const.
7043
7044 2014-06-18 Tom Tromey <tromey@redhat.com>
7045
7046 * symtab.h (struct symtab) <blockvector>: Now const.
7047 * ada-lang.c (ada_add_global_exceptions): Update.
7048 * buildsym.c (augment_type_symtab): Update.
7049 * dwarf2read.c (dw2_lookup_symbol): Update.
7050 * jit.c (finalize_symtab): Update.
7051 * jv-lang.c (add_class_symtab_symbol): Update.
7052 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7053 Update.
7054 * objfiles.c (objfile_relocate1): Update.
7055 * psymtab.c (lookup_symbol_aux_psymtabs)
7056 (maintenance_check_psymtabs): Update.
7057 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7058 Update.
7059 * spu-tdep.c (spu_catch_start): Update.
7060 * symmisc.c (dump_symtab_1): Update.
7061 * symtab.c (lookup_global_symbol_from_objfile)
7062 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7063 (basic_lookup_transparent_type_quick)
7064 (basic_lookup_transparent_type, find_pc_sect_symtab)
7065 (find_pc_sect_line, search_symbols): Update.
7066 * block.c (find_block_in_blockvector): Make "bl" const.
7067 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7068 const.
7069 (blockvector_contains_pc): Make "bv" const.
7070 (block_for_pc_sect): Update.
7071 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7072 (blockvector_contains_pc): Update.
7073 * breakpoint.c (resolve_sal_pc): Update.
7074 * inline-frame.c (block_starting_point_at): Update.
7075
7076 2014-06-18 Tom Tromey <tromey@redhat.com>
7077
7078 * completer.c (complete_line): Make "line_buffer" const.
7079 * completer.h (complete_line): Update.
7080
7081 2014-06-18 Tom Tromey <tromey@redhat.com>
7082
7083 * symtab.c (add_macro_name): Remove unneeded cast.
7084
7085 2014-06-18 Tom Tromey <tromey@redhat.com>
7086
7087 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7088 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7089
7090 2014-06-18 Tom Tromey <tromey@redhat.com>
7091
7092 * probe.c (info_probes_for_ops): Make "arg" const.
7093 * probe.h (info_probes_for_ops): Update.
7094
7095 2014-06-18 Tom Tromey <tromey@redhat.com>
7096
7097 * varobj.c (varobj_create): Update.
7098 * valops.c (value_of_this): Update.
7099 * tracepoint.c (add_local_symbols, scope_info): Update.
7100 * symtab.h (struct general_symbol_info) <block>: Now const.
7101 * symtab.c (skip_prologue_sal)
7102 (default_make_symbol_completion_list_break_on)
7103 (skip_prologue_using_sal): Update.
7104 * stack.h (iterate_over_block_locals)
7105 (iterate_over_block_local_vars): Update.
7106 * stack.c (print_frame_args): Update.
7107 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7108 parameter const.
7109 (get_selected_block): Make return type const.
7110 * python/py-frame.c (frapy_block): Update.
7111 * python/py-block.c (gdbpy_block_for_pc): Update.
7112 * p-exp.y (%union) <bval>: Now const.
7113 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7114 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7115 * m2-exp.y (%union) <bval>: Now const.
7116 * linespec.c (get_current_search_block): Make return type const.
7117 (create_sals_line_offset, find_label_symbols): Update.
7118 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7119 Update.
7120 (block_starting_point_at): Make "block" const.
7121 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7122 (check_exception_resume): Update.
7123 * guile/scm-frame.c (gdbscm_frame_block): Update.
7124 * guile/scm-block.c (gdbscm_lookup_block): Update.
7125 * frame.h (get_frame_block): Update.
7126 (get_selected_block): Make return type const.
7127 * frame.c (frame_id_inner): Update.
7128 * f-valprint.c (info_common_command_for_block)
7129 (info_common_command): Update.
7130 * dwarf2loc.c (dwarf2_find_location_expression)
7131 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7132 (locexpr_describe_location_piece): Update.
7133 * c-exp.y (%union) <bval>: Now const.
7134 * breakpoint.c (resolve_sal_pc): Update.
7135 * blockframe.c (get_frame_block):Make return type const.
7136 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7137 (block_innermost_frame): Update.
7138 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7139 (block_for_pc, block_for_pc_sect): Update.
7140 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7141 'pblock' const.
7142 (block_for_pc_sect, block_for_pc): Make return type const.
7143 * ax-gdb.c (gen_expr): Update.
7144 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7145 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7146 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7147 (ada_read_var_value): Update.
7148 * ada-exp.y (struct name_info) <block>: Now const.
7149 (%union): Likewise.
7150 (block_lookup): Constify.
7151
7152 2014-06-18 Gary Benson <gbenson@redhat.com>
7153
7154 * nat/i386-dregs.h: New file.
7155 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7156 * i386-nat.h (i386-dregs.h): New include.
7157 (DR_FIRSTADDR): Now in i386-dregs.h.
7158 (DR_LASTADDR): Likewise.
7159 (DR_NADDR): Likewise.
7160 (DR_STATUS): Likewise.
7161 (DR_CONTROL): Likewise.
7162 (i386_debug_reg_state): Likewise.
7163 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7164
7165 2014-06-18 Don Breazeal <donb@codesourcery.com>
7166
7167 * breakpoint.c (set_longjmp_breakpoint): Call
7168 momentary_breakpoint_from_master with additional argument.
7169 (set_longjmp_breakpoint_for_call_dummy): Call
7170 momentary_breakpoint_from_master with additional argument.
7171 (set_std_terminate_breakpoint): Call
7172 momentary_breakpoint_from_master with additional argument.
7173 (momentary_breakpoint_from_master): Add argument to function
7174 definition and use it to initialize structure member flag.
7175 (clone_momentary_breakpoint): Call
7176 momentary_breakpoint_from_master with additional argument.
7177 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7178 member flags set in momentary_breakpoint_from_master.
7179
7180 2014-06-18 Gary Benson <gbenson@redhat.com>
7181
7182 * i386-nat.c (i386_show_dr): Renamed to
7183 i386_dr_show and made nonstatic. All uses updated.
7184 (i386_length_and_rw_bits): Renamed to
7185 i386_dr_length_and_rw_bits and made nonstatic.
7186 All uses updated.
7187 (i386_insert_aligned_watchpoint): Renamed to
7188 i386_dr_insert_aligned_watchpoint and made nonstatic.
7189 All uses updated.
7190 (i386_remove_aligned_watchpoint): Renamed to
7191 i386_dr_remove_aligned_watchpoint and made nonstatic.
7192 All uses updated.
7193 (i386_update_inferior_debug_regs): Renamed to
7194 i386_dr_update_inferior_debug_regs and made nonstatic.
7195 All uses updated.
7196
7197 2014-06-18 Gary Benson <gbenson@redhat.com>
7198
7199 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7200 (i386_dr_low_can_set_control): Likewise.
7201 (i386_dr_low_set_addr): Likewise.
7202 (i386_dr_low_set_control): Likewise.
7203 (i386_dr_low_get_addr): Likewise.
7204 (i386_dr_low_get_status): Likewise.
7205 (i386_dr_low_get_control): Likewise.
7206 (i386_insert_aligned_watchpoint): Use new macros.
7207 (i386_update_inferior_debug_regs): Likewise.
7208 (i386_stopped_data_address): Likewise.
7209
7210 2014-06-18 Gary Benson <gbenson@redhat.com>
7211
7212 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7213 New parameter. All uses updated.
7214
7215 2014-06-18 Gary Benson <gbenson@redhat.com>
7216
7217 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7218 All uses updated.
7219
7220 2014-06-18 Gary Benson <gbenson@redhat.com>
7221
7222 * i386-nat.c (debug_printf): New macro.
7223 (i386_get_debug_register_length): Likewise.
7224 (TARGET_HAS_DR_LEN_8): Use above macro.
7225 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7226 and printf_unfiltered. Use phex to format values.
7227
7228 2014-06-18 Gary Benson <gbenson@redhat.com>
7229
7230 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7231 Make const.
7232
7233 2014-06-18 Gary Benson <gbenson@redhat.com>
7234
7235 * i386-nat.c: Comment changes.
7236
7237 2014-06-18 Gary Benson <gbenson@redhat.com>
7238
7239 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7240
7241 2014-06-18 Gary Benson <gbenson@redhat.com>
7242
7243 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7244 (i386_insert_aligned_watchpoint): Likewise.
7245 (i386_remove_aligned_watchpoint): Likewise.
7246 (i386_handle_nonaligned_watchpoint): Likewise.
7247
7248 2014-06-18 Gary Benson <gbenson@redhat.com>
7249
7250 * i386-nat.c: Whitespace changes.
7251
7252 2014-06-17 Samuel Bronson <naesten@gmail.com>
7253
7254 * MAINTAINERS: Update Roland McGrath's email address.
7255 Thanks to Sergio Durigan Junior for pointing out that he left
7256 Red Hat a while ago, and giving me a current address.
7257
7258 2014-06-17 Tom Tromey <tromey@redhat.com>
7259
7260 * utils.h (savestring): Remove declaration.
7261
7262 2014-06-17 Tom Tromey <tromey@redhat.com>
7263
7264 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7265
7266 2014-06-16 Keith Seitz <keiths@redhat.com>
7267
7268 PR mi/15863
7269 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7270 to update the varobj if inferior_ptid is null_ptid.
7271
7272 2014-06-16 Tom Tromey <tromey@redhat.com>
7273
7274 * target.h (struct target_ops) <to_info_proc>: Make parameter
7275 const.
7276 (target_info_proc): Update.
7277 * target.c (target_info_proc): Make "args" const.
7278 * procfs.c (procfs_info_proc): Update.
7279 * linux-tdep.c (linux_info_proc): Update.
7280 (linux_core_info_proc_mappings): Make "args" const.
7281 (linux_core_info_proc): Update.
7282 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7283 * gdbarch.c: Rebuild.
7284 * gdbarch.h: Rebuild.
7285 * corelow.c (core_info_proc): Update.
7286
7287 2014-06-16 Tom Tromey <tromey@redhat.com>
7288
7289 * target.h (struct target_ops) <to_disconnect>: Make parameter
7290 const.
7291 (target_disconnect): Update.
7292 * target.c (target_disconnect): Make "args" const.
7293 * target-delegates.c: Rebuild.
7294 * remote.c (remote_disconnect): Update.
7295 * record.h (record_disconnect): Update.
7296 * record.c (record_disconnect): Update.
7297 * inf-child.c (inf_child_disconnect): Update.
7298
7299 2014-06-16 Tom Tromey <tromey@redhat.com>
7300
7301 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7302 * target.c (debug_to_rcmd, default_rcmd): Update.
7303 * target-delegates.c: Rebuild.
7304 * remote.c (remote_rcmd): Update.
7305 * monitor.c (monitor_rcmd): Update.
7306
7307 2014-06-16 Pedro Alves <palves@redhat.com>
7308
7309 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7310 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7311 have OBJF_SHARED set.
7312 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7313 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7314 instead of OBJF_USERLOADED.
7315 * objfiles.h (OBJF_SHARED): Update comment.
7316 (userloaded_objfile_contains_address_p): Rename to ...
7317 (shared_objfile_contains_address_p): ... this, and update
7318 comments.
7319 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7320 new objfile.
7321 (remove_symbol_file_command): Skip objfiles that don't have
7322 OBJF_SHARED set.
7323
7324 2014-06-16 Tom Tromey <tromey@redhat.com>
7325
7326 * minsyms.h (prim_record_minimal_symbol)
7327 (prim_record_minimal_symbol_and_info): Update comments.
7328
7329 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7330
7331 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7332 or --without-guile, according to how GDB was built.
7333
7334 2014-06-13 Tom Tromey <tromey@redhat.com>
7335
7336 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7337 to help_list.
7338 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7339 to help_list.
7340 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7341 help_list.
7342 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7343 help_list.Pass all_commands, not -1, to help_list.
7344 * cli/cli-dump.c (dump_command, append_command)
7345 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7346 (binary_dump_command, binary_append_command): Pass all_commands,
7347 not -1, to help_list.
7348 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7349 -1, to help_list.
7350 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7351 -1, to help_list.
7352 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7353 help_list.
7354 * top.c (set_history): Pass all_commands, not -1, to help_list.
7355 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7356 all_commands, not -1, to help_list.
7357 * symfile.c (overlay_command): Pass all_commands, not -1, to
7358 help_list.
7359 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7360 help_list.
7361 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7362 help_list.
7363 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7364 -1, to help_list.
7365 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7366 not -1, to help_list.
7367 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7368 not -1, to help_list.
7369 * maint.c (maintenance_command, maintenance_info_command)
7370 (maintenance_print_command, maintenance_set_cmd): Pass
7371 all_commands, not -1, to help_list.
7372 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7373 help_list.
7374 * language.c (set_check): Pass all_commands, not -1, to help_list.
7375 * infcmd.c (unset_command): Pass all_commands, not -1, to
7376 help_list.
7377 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7378 help_list.
7379 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7380 help_list.
7381 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7382 help_list.
7383 * breakpoint.c (save_command): Pass all_commands, not -1, to
7384 help_list.
7385 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7386 all_commands, not -1, to help_list.
7387
7388 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7389
7390 * regcache.c (struct register_to_invalidate): New structure.
7391 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7392 functions.
7393 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7394
7395 2014-06-12 Yao Qi <yao@codesourcery.com>
7396
7397 * varobj.c (varobj_get_num_children): Call
7398 varobj_is_dynamic_p.
7399 (varobj_list_children): Likewise.
7400 (varobj_update): Likewise. Update comments.
7401
7402 2014-06-12 Yao Qi <yao@codesourcery.com>
7403
7404 * varobj.c (varobj_pretty_printed_p): Rename to ...
7405 (varobj_is_dynamic_p): ... this. New function.
7406 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7407 (varobj_is_dynamic_p): Declare.
7408 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7409 (mi_print_value_p, varobj_update_one): Likewise.
7410
7411 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7412 Yao Qi <yao@codesourcery.com>
7413
7414 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7415 (varobj_get_iterator): Wrap up code for pretty-printer by
7416 "#if HAVE_PYTHON" and "#endif".
7417 (update_dynamic_varobj_children): Likewise.
7418
7419 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7420 Yao Qi <yao@codesourcery.com>
7421
7422 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7423 gdb_python_initialized is false. Move some code from varobj.c.
7424 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7425 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7426 (struct varobj_item): Moved to varobj-iter.h".
7427 (varobj_clear_saved_item): New function.
7428 (update_dynamic_varobj_children): Move python-related code to
7429 py-varobj.c.
7430 (free_variable): Call varobj_clear_saved_item and
7431 varobj_iter_delete.
7432
7433 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7434 Yao Qi <yao@codesourcery.com>
7435
7436 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7437 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7438 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7439 (py-varobj.o): New rule.
7440 * python/py-varobj.c: New file.
7441 * python/python-internal.h (py_varobj_get_iterator): Declare.
7442 * varobj-iter.h: New file.
7443 * varobj.c: Include "varobj-iter.h"
7444 (struct varobj) <child_iter>: Change its type from "PyObject *"
7445 to "struct varobj_iter *".
7446 <saved_item>: Likewise.
7447 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7448 [HAVE_PYTHON] (varobj_get_iterator): New function.
7449 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7450 python-specific code to python/py-varobj.c.
7451 (install_visualizer): Call varobj_iter_delete instead of
7452 Py_XDECREF.
7453 * varobj.h (varobj_ensure_python_env): Declare.
7454
7455 2014-06-12 Yao Qi <yao@codesourcery.com>
7456
7457 * varobj.c (struct varobj_item): New structure.
7458 (create_child_with_value): Update declaration.
7459 (varobj_add_child): Replace arguments 'name' and 'value' with
7460 'item'. All callers updated.
7461 (install_dynamic_child): Likewise.
7462 (update_dynamic_varobj_children): Likewise.
7463 (varobj_add_child): Likewise.
7464 (create_child_with_value): Likewise.
7465
7466 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7467
7468 * NEWS: Create a new section for the next release branch.
7469 Rename the section of the current branch, now that it has
7470 been cut.
7471
7472 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7473
7474 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7475 * version.in: Bump version to 7.8.50.DATE-cvs.
7476
7477 2014-06-11 Pedro Alves <palves@redhat.com>
7478
7479 PR remote/17028
7480 * ser-mingw.c (net_windows_socket_check_pending): New function.
7481 (net_windows_select_thread): Ignore spurious wakeups. Use
7482 net_windows_socket_check_pending.
7483 (net_windows_wait_handle): Check for pending events with
7484 ioctlsocket, through net_windows_socket_check_pending, instead of
7485 checking the socket's event.
7486
7487 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7488
7489 * python/python-internal.h (gdb_PyObject_GetAttrString)
7490 (gdb_PyObject_HasAttrString): New inline function definitions.
7491 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7492 char * of the second argument to PyObject_GetAttrString.
7493
7494 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7495
7496 * serial.c (serial_write): Fix index of character to be printed
7497 in call to serial_logchar when serial debug traces are enabled.
7498
7499 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7500
7501 * gdbtypes (resolve_dynamic_range): Add function description.
7502
7503 2014-06-09 Pedro Alves <palves@redhat.com>
7504
7505 * linux-nat.c (linux_child_follow_fork): Initialize status with
7506 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7507 inner block. Only pass the signal to PTRACE_DETACH if in pass
7508 state.
7509
7510 2014-06-09 Gary Benson <gbenson@redhat.com>
7511
7512 * common/signals.c (gdb_signal_from_host): Reorder to separate
7513 the always-available ANSI-standard signals from the signals that
7514 require checking.
7515 (do_gdb_signal_to_host): Likewise.
7516 * proc-events.c (signal_table): Likewise.
7517
7518 2014-06-08 Hui Zhu <hui@codesourcery.com>
7519
7520 * common/linux-ptrace.c (linux_disable_event_reporting): New
7521 function.
7522 * common/linux-ptrace.h (linux_disable_event_reporting): New
7523 declaration.
7524 * linux-nat.c (linux_child_follow_fork): Do a single step before
7525 detach.
7526
7527 2014-06-07 Keith Seitz <keiths@redhat.com>
7528
7529 Revert:
7530 PR c++/16253
7531 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7532 from symbol_matches_domain in symtab.c. All local callers
7533 of symbol_matches_domain updated.
7534 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7535 search STRUCT_DOMAIN.
7536 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7537 independently. standard_lookup will do that automatically.
7538 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7539 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7540 (cp_lookup_symbol_in_namespace): Likewise.
7541 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7542 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7543 may return a STRUCT_DOMAIN match.
7544 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7545 * cp-support.c: Include language.h.
7546 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7547 VAR_DOMAIN.
7548 * psymtab.c (match_partial_symbol): Compare the requested
7549 domain with the symbol's domain directly.
7550 (lookup_partial_symbol): Likewise.
7551 * symtab.c (lookup_symbol_in_language): Explain when/why
7552 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7553 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7554 appropriate languages.
7555 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7556 and moved to ada-lang.c
7557 (lookup_block_symbol): Explain that this function only returns
7558 symbol matching the requested DOMAIN.
7559 Compare the requested domain with the symbol's domain directly.
7560 (iterate_over_symbols): Compare the requested domain with the
7561 symbol's domain directly.
7562 * symtab.h (symbol_matches_domain): Remove.
7563
7564 2014-06-06 Doug Evans <xdje42@gmail.com>
7565
7566 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7567 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7568 (gdbscm_guile_version_is_at_least): Declare.
7569 (gdbscm_scm_string_to_int): Declare.
7570 * guile/guile.c (gdbscm_guile_major_version): New global.
7571 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7572 (guile_datadir): New static global.
7573 (gdbscm_guile_data_directory): New function.
7574 (initialize_scheme_side): Update.
7575 (misc_guile_functions): Add guile-data-directory.
7576 (initialize_gdb_module): Fetch guile version number.
7577 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7578 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7579 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7580 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7581 comments.
7582 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7583 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7584 * guile/scm-value.c (gdbscm_value_to_string): Only call
7585 scm_port_conversion_strategy if Guile version >= 2.0.6.
7586
7587 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7588
7589 * main.c (print_gdb_help): Add -q and --silent.
7590
7591 2014-06-06 Gary Benson <gbenson@redhat.com>
7592
7593 * common/signals.c: Remove preprocessor conditionals for
7594 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7595 SIGSEGV and SIGTERM.
7596 * proc-events.c: Likewise.
7597
7598 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7599
7600 * symfile.c (symfile_free_objfile): Remove restriction to
7601 OBJF_USERLOADED.
7602 * symfile-mem.c (symbol_file_add_from_memory): Call
7603 add_target_sections_of_objfile.
7604
7605 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7606
7607 * guile/scm-value.c (gdbscm_history_append_x): Use
7608 'vlscm_get_value_smob_arg_unsafe' instead of
7609 'vlscm_scm_to_value'.
7610
7611 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7612
7613 PR mi/15806
7614 * utils.c (printchar): Don't escape at all if quoter is NUL.
7615 Update function documentation to clarify effect of parameter
7616 QUOTER.
7617 * remote.c (escape_buffer): Pass '\\' as the quoter to
7618 fputstrn_unfiltered.
7619 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7620 generate the output.
7621 (mi_solib_unloaded): Same.
7622
7623 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7624
7625 * development.sh: Delete.
7626 * Makefile.in (config.status): Adjust dependency on development.sh.
7627 * configure.ac: Adjust development.sh source call.
7628 * configure: Regenerate.
7629
7630 2014-06-04 Doug Evans <xdje42@gmail.com>
7631
7632 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7633 is_scheme_bkpt, spec.
7634 (bpscm_make_breakpoint_smob): Initialize new members.
7635 (gdbscm_create_breakpoint_x): Split into two ...
7636 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7637 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7638 (scheme_function breakpoint_functions): Update.
7639 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7640 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7641 register-breakpoint!.
7642
7643 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7644
7645 PR server/17023
7646 * mem-break.c (z_type_supported): Return zero if
7647 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7648
7649 2014-06-04 Tom Tromey <tromey@redhat.com>
7650
7651 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7652 value_from_contents_and_address_unresolved.
7653 (ada_template_to_fixed_record_type_1): Likewise.
7654 (ada_which_variant_applies): Likewise.
7655 * value.h (value_from_contents_and_address_unresolved): Declare.
7656 * value.c (value_from_contents_and_address_unresolved): New
7657 function.
7658 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7659 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7660 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7661
7662 2014-06-04 Tom Tromey <tromey@redhat.com>
7663
7664 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7665
7666 2014-06-04 Tom Tromey <tromey@redhat.com>
7667
7668 * procfs.c (procfs_attach): Make "args" const.
7669 * windows-nat.c (windows_attach): Make "args" const.
7670 * nto-procfs.c (procfs_attach): Make "args" const.
7671 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7672 * go32-nat.c (go32_attach): Make "args" const.
7673 * gnu-nat.c (gnu_attach): Make "args" const.
7674 * darwin-nat.c (darwin_attach): Make "args" const.
7675 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7676 * linux-nat.c (linux_nat_attach): Make "args" const.
7677 * remote.c (extended_remote_attach_1, extended_remote_attach):
7678 Make "args" const.
7679 * target.h (struct target_ops) <to_attach>: Make "args" const.
7680 (find_default_attach): Likewise.
7681 * utils.c (parse_pid_to_attach): Make "args" const.
7682 * utils.h (parse_pid_to_attach): Update.
7683
7684 2014-06-04 Tom Tromey <tromey@redhat.com>
7685
7686 * target-delegates.c: Rebuild.
7687 * target.c (default_thread_address_space): New function.
7688 (target_thread_address_space): Simplify.
7689 * target.h (struct target_ops) <to_thread_address_space>: Add
7690 TARGET_DEFAULT_FUNC.
7691
7692 2014-06-04 Doug Evans <xdje42@gmail.com>
7693
7694 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7695
7696 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7697
7698 * record-btrace.c: Include event-loop.h and inf-loop.h.
7699 (record_btrace_resume_exec_dir)
7700 (record_btrace_async_inferior_event_handler)
7701 (record_btrace_handle_async_inferior_event): New.
7702 (record_btrace_open): Create async event handler.
7703 (record_btrace_close): Delete async event handler.
7704 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7705 Mark async event handler.
7706 (record_btrace_execution_direction): New.
7707 (init_record_btrace_ops): Initialize to_execution_direction.
7708
7709 2014-06-03 Doug Evans <xdje42@gmail.com>
7710
7711 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7712 (gdbscm_make_parameter): Ditto.
7713
7714 2014-06-03 Doug Evans <dje@google.com>
7715
7716 * exec.c (exec_close_1): Call clear_section_table instead of
7717 resize_section_table.
7718 (clear_section_table): New function.
7719 (resize_section_table): Make static. Rename arg num_added to
7720 adjustment.
7721 * exec.h (clear_section_table): Declare.
7722 (resize_section_table): Delete.
7723 * progspace.c (release_program_space): Call clear_section_table
7724 instead of resize_section_table.
7725
7726 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7727
7728 * NEWS (Python Scripting): Add entry about the new xmethods
7729 feature.
7730
7731 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7732
7733 * python/py-xmethods.c: New file.
7734 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7735 (objfpy_dealloc): XDECREF on the new xmethods field.
7736 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7737 field.
7738 (objfpy_get_xmethods): New function.
7739 (objfile_getset): New entry 'xmethods'.
7740 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7741 (pspy_dealloc): XDECREF on the new xmethods field.
7742 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7743 field.
7744 (pspy_get_xmethods): New function.
7745 (pspace_getset): New entry 'xmethods'.
7746 * python/python-internal.h: Add declarations for new functions.
7747 * python/python.c (_initialize_python): Invoke
7748 gdbpy_initialize_xmethods.
7749 * python/lib/gdb/__init__.py (xmethods): New
7750 attribute.
7751 * python/lib/gdb/xmethod.py: New file.
7752 * python/lib/gdb/command/xmethods.py: New file.
7753
7754 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7755
7756 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7757 best match method returned by find_overload_match is an xmethod.
7758 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7759 the best matching operator returned by find_overload_match is an
7760 xmethod.
7761 * valops.c: #include "extension.h".
7762 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7763 Return void. The list of matching source methods is returned in
7764 "fn_list" and a vector of matching debug method workers is
7765 returned in "xm_worker_vec". Update all callers.
7766 (value_find_oload_method_list): Likewise.
7767 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7768 non-NULL, then the index of the best matching method in this
7769 vector is returned. Update all callers.
7770 (find_overload_match): Include xmethods while performing overload
7771 resolution.
7772
7773 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7774
7775 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7776 * extension-priv.h (struct extension_language_ops): Add the
7777 xmethod interface.
7778 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7779 get_matching_xmethod_workers, get_xmethod_argtypes,
7780 invoke_xmethod, free_xmethod_worker,
7781 free_xmethod_worker_vec): New functions.
7782 * extension.h: #include "common/vec.h".
7783 New function declarations.
7784 (struct xmethod_worker): New struct.
7785 (VEC (xmethod_worker_ptr)): New vector type.
7786 (xmethod_worker_ptr): New typedef.
7787 (xmethod_worker_vec): Likewise.
7788 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7789 builtin_type.
7790 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7791 (struct builtin_type): New field "xmethod".
7792 * valarith.c (value_ptradd): Assert that the value argument is not
7793 lval_xcallable.
7794 * valops.c (value_must_coerce_to_target): Return 0 for
7795 lval_xcallable values.
7796 * value.c (struct value): New field XM_WORKER in the field
7797 LOCATION.
7798 (value_address, value_raw_address): Return 0 for lval_xcallable
7799 values.
7800 (set_value_address): Assert that the value is not an
7801 lval_xcallable.
7802 (value_free): Free the associated xmethod worker when freeing
7803 lval_xcallable values.
7804 (set_value_component_location): Assert that the WHOLE value is not
7805 lval_xcallable.
7806 (value_of_xmethod, call_xmethod): New functions.
7807 * value.h: Declare "struct xmethod_worker".
7808 Declare new functions value_of_xmethod, call_xmethod.
7809
7810 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7811 Pedro Alves <palves@redhat.com>
7812
7813 PR breakpoints/17000
7814 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7815 New function, extracted from software_breakpoint_inserted_here_p.
7816 (software_breakpoint_inserted_here_p): Replace factored out code
7817 by call to find_non_raw_software_breakpoint_inserted_here.
7818 (bp_target_info_copy_insertion_state): New function.
7819 (bkpt_insert_location): Handle the case of a single-step
7820 breakpoint already inserted at the same address.
7821 (bkpt_remove_location): Handle the case of a single-step
7822 breakpoint still inserted at the same address.
7823 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7824 breakpoint already inserted at the same address.
7825 (deprecated_remove_raw_breakpoint): Handle the case of a
7826 non-raw breakpoint still inserted at the same address.
7827 (find_single_step_breakpoint): New function, extracted from
7828 single_step_breakpoint_inserted_here_p.
7829 (find_single_step_breakpoint): New function,
7830 factored out from single_step_breakpoint_inserted_here_p.
7831 (single_step_breakpoint_inserted_here_p): Reimplement.
7832
7833 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7834
7835 Pushed by Joel Brobecker <brobecker@adacore.com>
7836 * source.c (show_substitute_path_command): Fix display of matching
7837 substitution rules.
7838
7839 2014-06-03 Gary Benson <gbenson@redhat.com>
7840
7841 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7842
7843 2014-06-02 Doug Evans <xdje42@gmail.com>
7844
7845 Add parameter support for Guile.
7846 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7847 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7848 (scm-param.o): New rule.
7849 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7850 (gdbscm_misc_error): Declare.
7851 (gdbscm_canonicalize_command_name): Declare.
7852 (gdbscm_scm_to_host_string): Declare.
7853 (gdbscm_scm_from_host_string): Declare.
7854 (gdbscm_initialize_parameters): Declare.
7855 * guile/guile.c (initialize_gdb_module): Call
7856 gdbscm_initialize_parameters.
7857 * guile/lib/gdb.scm: Export parameter symbols.
7858 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7859 cmdscm_canonicalize_name and made public. All callers updated.
7860 * guile/scm-exception.c (gdbscm_misc_error): New function.
7861 * guile/scm-param.c: New file.
7862 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7863 (gdbscm_scm_to_host_string): New function.
7864 (gdbscm_scm_from_host_string): New function.
7865 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7866
7867 2014-06-02 Doug Evans <xdje42@gmail.com>
7868
7869 Add command support for Guile.
7870 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7871 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7872 (scm-cmd.o): New rule.
7873 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7874 (gdbscm_user_error_p): Declare.
7875 (gdbscm_parse_command_name): Declare.
7876 (gdbscm_valid_command_class_p): Declare.
7877 (gdbscm_initialize_commands): Declare.
7878 * guile/guile.c (initialize_gdb_module): Call
7879 gdbscm_initialize_commands.
7880 * guile/lib/gdb.scm: Export command symbols.
7881 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7882 (throw-user-error): New function.
7883 * guile/scm-cmd.c: New file.
7884 * guile/scm-exception.c (user_error_symbol): New static global.
7885 (gdbscm_user_error_p): New function.
7886 (gdbscm_initialize_exceptions): Set user_error_symbol.
7887 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7888
7889 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7890
7891 * top.c (command_loop): Handle comments here...
7892 (command_line_input): ... not here.
7893
7894 2014-06-02 Doug Evans <xdje42@gmail.com>
7895
7896 Add progspace support for Guile.
7897 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7898 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7899 (scm-progspace.o): New rule.
7900 * guile/guile-internal.h (pspace_smob): New typedef.
7901 (psscm_pspace_smob_pretty_printers): Declare.
7902 (psscm_pspace_smob_from_pspace): Declare.
7903 (psscm_scm_from_pspace): Declare.
7904 * guile/guile.c (initialize_gdb_module): Call
7905 gdbscm_initialize_pspaces.
7906 * guile/lib/gdb.scm: Export progspace symbols.
7907 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7908 support.
7909 (append-pretty-printer!): Ditto.
7910 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7911 Implement.
7912 * guile/scm-progspace.c: New file.
7913
7914 2014-06-03 Alan Modra <amodra@gmail.com>
7915
7916 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7917 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7918
7919 2014-06-02 Doug Evans <dje@google.com>
7920
7921 Add support for skeletonless type units.
7922 * dwarf2read.c (struct dwarf2_per_objfile): New member
7923 n_allocated_type_units.
7924 (struct dwarf2_per_objfile) <tu_stats>: New member
7925 nr_all_type_units_reallocs.
7926 (create_signatured_type_table_from_index): Initialize
7927 n_allocated_type_units
7928 (create_all_type_units): Ditto.
7929 (add_type_unit): Move up in file. New arg slot.
7930 All callers updated. Increase space for all_type_units more
7931 efficiently.
7932 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7933 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7934 (lookup_dwp_signatured_type): Ditto.
7935 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7936 All callers updated.
7937 (build_type_psymtabs_1): Leave type_unit_groups as
7938 NULL if no TUs present.
7939 (print_tu_stats): New function.
7940 (process_skeletonless_type_unit): New function.
7941 (process_dwo_file_for_skeletonless_type_units): New
7942 function.
7943 (process_skeletonless_type_units): New function.
7944 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7945 Call print tu_stats if debugging enabled.
7946
7947 2014-06-02 Pedro Alves <palves@redhat.com>
7948
7949 * breakpoint.c (build_target_command_list): Don't build a command
7950 list if we have any duplicate location that isn't a dprintf.
7951
7952 2014-06-02 Pedro Alves <palves@redhat.com>
7953
7954 * breakpoint.c (dprintf_breakpoint_hit): New function.
7955 (initialize_breakpoint_ops): Install it as dprintf's
7956 breakpoint_hit method.
7957
7958 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7959
7960 * source.c (substitute_path_rule_matches): Simplify using
7961 filename_ncmp instead of FILENAME_CMP.
7962
7963 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7964
7965 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7966
7967 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7968
7969 * configure.ac: When Guile is available, check for the
7970 availability of 'scm_new_smob'.
7971 * configure, config.h.in: Regenerate.
7972 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7973 function.
7974
7975 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7976
7977 * frame.c (struct frame_info): Add stop_string field.
7978 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7979 (get_prev_frame_always): Old content moved into
7980 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7981 TRY_CATCH, handle MEMORY_ERROR exceptions.
7982 (frame_stop_reason_string): New function definition.
7983 * frame.h (unwind_stop_reason_to_string): Extend comment to
7984 mention frame_stop_reason_string.
7985 (frame_stop_reason_string): New function declaration.
7986 * stack.c (frame_info): Switch to frame_stop_reason_string.
7987 (backtrace_command_1): Switch to frame_stop_reason_string.
7988 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7989 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7990 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7991
7992 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7993
7994 * frame.c (frame_stop_reason_string): Rename to ...
7995 (unwind_stop_reason_to_string): this.
7996 * frame.h (frame_stop_reason_string): Rename to ...
7997 (unwind_stop_reason_to_string): this.
7998 * stack.c (frame_info): Update call to frame_stop_reason_string.
7999 (backtrace_command_1): Likewise.
8000 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8001 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8002
8003 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8004
8005 * frame.c (remove_prev_frame): New function.
8006 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8007 remove_prev_frame.
8008
8009 2014-05-29 Pedro Alves <palves@redhat.com>
8010
8011 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8012 and make it const. When a single-step decays to a continue,
8013 clear 'step', not 'hw_step'. Pass whether the caller wanted
8014 to step to user_visible_resume_ptid, not what we ask the
8015 target to do.
8016
8017 2014-05-29 Pedro Alves <palves@redhat.com>
8018
8019 * infrun.c (process_event_stop_test, handle_step_into_function)
8020 (handle_step_into_function_backward): Adjust.
8021 Don't set the even thread's stop_step and call stop_waiting before
8022 calling end_stepping_range. Instead do that ...
8023 (end_stepping_range): ... here. Take an ecs pointer parameter.
8024
8025 2014-05-29 Pedro Alves <palves@redhat.com>
8026
8027 * infrun.c (stop_stepping): Rename to ...
8028 (stop_waiting): ... this.
8029 (proceed): Update comment.
8030 (process_event_stop_test, handle_inferior_event)
8031 (handle_signal_stop, handle_step_into_function)
8032 (handle_step_into_function_backward): Update.
8033
8034 2014-05-29 Pedro Alves <palves@redhat.com>
8035
8036 * infcall.c (run_inferior_call): Don't check whether the current
8037 thread is running after the proceed call.
8038
8039 2014-05-29 Pedro Alves <palves@redhat.com>
8040 Tom Tromey <tromey@redhat.com>
8041
8042 * NEWS: Mention "maint set target-async", "set mi-async", and that
8043 background execution commands are now always available.
8044 * target.h (target_async_permitted): Update comment.
8045 * target.c (target_async_permitted, target_async_permitted_1):
8046 Default to 1.
8047 (set_target_async_command): Rename to ...
8048 (maint_set_target_async_command): ... this.
8049 (show_target_async_command): Rename to ...
8050 (maint_show_target_async_command): ... this.
8051 (_initialize_target): Adjust.
8052 * infcmd.c (prepare_execution_command): Make extern.
8053 * inferior.h (prepare_execution_command): Declare.
8054 * infrun.c (set_observer_mode): Leave target async alone.
8055 * mi/mi-interp.c (mi_interpreter_init): Install
8056 mi_on_sync_execution_done as sync_execution_done observer.
8057 (mi_on_sync_execution_done): New function.
8058 (mi_execute_command_input_handler): Don't print the prompt if we
8059 just started a synchronous command with an async target.
8060 (mi_on_resume): Check sync_execution before printing prompt.
8061 * mi/mi-main.h (mi_async_p): Declare.
8062 * mi/mi-main.c: Include gdbcmd.h.
8063 (mi_async_p): New function.
8064 (mi_async, mi_async_1): New globals.
8065 (set_mi_async_command, show_mi_async_command, mi_async): New
8066 functions.
8067 (exec_continue): Call prepare_execution_command.
8068 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8069 (mi_execute_async_cli_command): Use mi_async_p.
8070 (_initialize_mi_main): Install "set mi-async". Make
8071 "target-async" a deprecated alias.
8072
8073 2014-05-29 Pedro Alves <palves@redhat.com>
8074
8075 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8076 (_initialize_cli_interp): Adjust.
8077 * event-loop.c: Include "observer.h".
8078 (start_event_loop): Notify 'command_error' observers instead of
8079 calling display_gdb_prompt. Remove FIXME comment.
8080 * event-top.c (display_gdb_prompt): Remove call into the
8081 interpreters.
8082 * inf-loop.c: Include "observer.h".
8083 (inferior_event_handler): Notify 'command_error' observers instead
8084 of calling display_gdb_prompt.
8085 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8086 observers instead of calling display_gdb_prompt.
8087 * interps.c (interp_set): Don't call display_gdb_prompt.
8088 (current_interp_display_prompt_p): Delete.
8089 * interps.h (interp_prompt_p): Delete declaration.
8090 (interp_prompt_p_ftype): Delete.
8091 (struct interp_procs) <prompt_proc_p>: Delete field.
8092 (current_interp_display_prompt_p): Delete declaration.
8093 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8094 (_initialize_mi_interp): Adjust.
8095 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8096 'command_error' observers.
8097 (tui_on_sync_execution_done, tui_on_command_error): New
8098 functions.
8099 (tui_display_prompt_p): Delete.
8100 (_initialize_tui_interp): Adjust.
8101
8102 2014-05-29 Pedro Alves <palves@redhat.com>
8103
8104 PR gdb/13860
8105 * cli/cli-interp.c: Include infrun.h and observer.h.
8106 (cli_uiout, cli_interp): New globals.
8107 (cli_on_signal_received, cli_on_end_stepping_range)
8108 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8109 functions.
8110 (cli_interpreter_init): Install them as 'end_stepping_range',
8111 'signal_received' 'signal_exited', 'exited' and 'no_history'
8112 observers.
8113 (_initialize_cli_interp): Remove cli_interp local.
8114 * infrun.c (handle_inferior_event): Call the several stop reason
8115 observers instead of printing the stop reason directly.
8116 (end_stepping_range): New function.
8117 (print_end_stepping_range_reason, print_signal_exited_reason)
8118 (print_exited_reason, print_signal_received_reason)
8119 (print_no_history_reason): Make static, and add an uiout
8120 parameter. Print to that instead of to CURRENT_UIOUT.
8121 * infrun.h (print_end_stepping_range_reason)
8122 (print_signal_exited_reason, print_exited_reason)
8123 (print_signal_received_reason print_no_history_reason): New
8124 declarations.
8125 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8126 'mi_uiout'.
8127 <cli_uiout>: New field.
8128 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8129 uiout for CLI output. Install 'signal_received',
8130 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8131 observers.
8132 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8133 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8134 (mi_on_no_history): New functions.
8135 (ui_out_free_cleanup): Delete function.
8136 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8137 instead use the one already stored in the MI interpreter data.
8138 (mi_ui_out): Adjust.
8139 * tui/tui-interp.c: Include infrun.h and observer.h.
8140 (tui_interp): New global.
8141 (tui_on_signal_received, tui_on_end_stepping_range)
8142 (tui_on_signal_exited, tui_on_exited)
8143 (tui_on_no_history): New functions.
8144 (tui_init): Install them as 'end_stepping_range',
8145 'signal_received' 'signal_exited', 'exited' and 'no_history'
8146 observers.
8147 (_initialize_tui_interp): Delete tui_interp local.
8148
8149 2014-05-29 Pedro Alves <palves@redhat.com>
8150
8151 PR gdb/15713
8152 * linux-nat.c (linux_nat_resume_callback): Rename the second
8153 parameter to 'except'. Skip LP if it points to EXCEPT.
8154 (linux_nat_resume): Don't mark the event lwp as not stopped
8155 before resuming sibling lwps. Instead ask
8156 linux_nat_resume_callback to skip the event lwp. Mark it as not
8157 stopped after actually resuming it.
8158 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8159 resuming it.
8160 (wait_lwp): Mark the lwp as stopped here.
8161 (stop_wait_callback): Mark the lwp as not stopped right after
8162 resuming it. Don't mark lwps as stopped here.
8163 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8164 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8165
8166 2014-05-29 Pedro Alves <palves@redhat.com>
8167
8168 PR PR15693
8169 * infrun.c (resume): Determine how much to resume depending on
8170 whether the caller wanted a step, not whether we can hardware step
8171 the target. Mark all threads that we intend to run as running,
8172 unless we're calling an inferior function.
8173 (normal_stop): If the thread is running an infcall, don't finish
8174 thread state.
8175 * target.c (target_resume): Don't mark threads as running here.
8176
8177 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8178
8179 * serial.c (_initialize_serial): Remove support for
8180 the "set remotebaud" and "show remotebaud" commands.
8181 * NEWS: Add entry documenting the removal of that command.
8182
8183 2014-05-28 Yao Qi <yao@codesourcery.com>
8184
8185 * charset.c: Fix typo in comments.
8186
8187 2014-05-27 Gary Benson <gbenson@redhat.com>
8188
8189 * utils.c (internal_vproblem): Prompt for a bug report.
8190
8191 2014-05-26 Andy Wingo <wingo@igalia.com>
8192
8193 * guile/scm-arch.c (arscm_mark_arch_smob):
8194 * guile/scm-block.c (bkscm_mark_block_smob)
8195 (bkscm_mark_block_syms_progress_smob):
8196 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8197 * guile/scm-exception.c (exscm_mark_exception_smob):
8198 * guile/scm-frame.c (frscm_mark_frame_smob):
8199 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8200 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8201 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8202 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8203 (ppscm_mark_pretty_printer_worker_smob):
8204 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8205 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8206 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8207 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8208 mark functions.
8209 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8210 function.
8211
8212 2014-05-26 Andy Wingo <wingo@igalia.com>
8213 Doug Evans <xdje42@gmail.com>
8214
8215 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8216 empty_base_class. All uses updated.
8217 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8218 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8219 Adapt all callers.
8220 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8221 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8222 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8223 (gdbscm_gsmob_has_property_p, add_property_name)
8224 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8225 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8226 (gdb-object-has-property?, gdb-object-properties): Remove.
8227 (gdb-object-kind): Renamed from gsmob-kind.
8228
8229 2014-05-26 Andy Wingo <wingo@igalia.com>
8230
8231 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8232 * configure: Regenerate.
8233
8234 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8235
8236 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8237
8238 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8239
8240 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8241 (replay_memory_access_read_only, replay_memory_access_read_write)
8242 (replay_memory_access_types, replay_memory_access)
8243 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8244 (cmd_set_record_btrace, cmd_show_record_btrace)
8245 (cmd_show_replay_memory_access): New.
8246 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8247 (record_btrace_remove_breakpoint): Replace
8248 record_btrace_allow_memory_access with replay_memory_access.
8249 (_initialize_record_btrace): Add commands.
8250 * NEWS: Announce it.
8251
8252 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8253
8254 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8255
8256 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8257
8258 * MAINTAINERS (Write After Approval): Move self back from
8259 paper trail.
8260
8261 2014-05-22 Pedro Alves <palves@redhat.com>
8262
8263 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8264 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8265 (disable_randomization, enum exec_direction_kind)
8266 (execution_direction, stop_registers, start_remote)
8267 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8268 (wait_for_inferior, normal_stop, get_last_target_status)
8269 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8270 (insert_step_resume_breakpoint_at_sal)
8271 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8272 (set_step_info, print_stop_event, signal_stop_state)
8273 (signal_print_state, signal_pass_state, signal_stop_update)
8274 (signal_print_update, signal_pass_update)
8275 (update_signals_program_target, clear_exit_convenience_vars)
8276 (displaced_step_dump_bytes, update_observer_mode)
8277 (signal_catch_update, gdb_signal_from_command): Move
8278 declarations ...
8279 * infrun.h: ... to this new file.
8280 * amd64-tdep.c: Include infrun.h.
8281 * annotate.c: Include infrun.h.
8282 * arch-utils.c: Include infrun.h.
8283 * arm-linux-tdep.c: Include infrun.h.
8284 * arm-tdep.c: Include infrun.h.
8285 * break-catch-sig.c: Include infrun.h.
8286 * breakpoint.c: Include infrun.h.
8287 * common/agent.c: Include infrun.h instead of inferior.h.
8288 * corelow.c: Include infrun.h.
8289 * event-top.c: Include infrun.h.
8290 * go32-nat.c: Include infrun.h.
8291 * i386-tdep.c: Include infrun.h.
8292 * inf-loop.c: Include infrun.h.
8293 * infcall.c: Include infrun.h.
8294 * infcmd.c: Include infrun.h.
8295 * infrun.c: Include infrun.h.
8296 * linux-fork.c: Include infrun.h.
8297 * linux-nat.c: Include infrun.h.
8298 * linux-thread-db.c: Include infrun.h.
8299 * monitor.c: Include infrun.h.
8300 * nto-tdep.c: Include infrun.h.
8301 * procfs.c: Include infrun.h.
8302 * record-btrace.c: Include infrun.h.
8303 * record-full.c: Include infrun.h.
8304 * remote-m32r-sdi.c: Include infrun.h.
8305 * remote-mips.c: Include infrun.h.
8306 * remote-notif.c: Include infrun.h.
8307 * remote-sim.c: Include infrun.h.
8308 * remote.c: Include infrun.h.
8309 * reverse.c: Include infrun.h.
8310 * rs6000-tdep.c: Include infrun.h.
8311 * s390-linux-tdep.c: Include infrun.h.
8312 * solib-irix.c: Include infrun.h.
8313 * solib-osf.c: Include infrun.h.
8314 * solib-svr4.c: Include infrun.h.
8315 * target.c: Include infrun.h.
8316 * top.c: Include infrun.h.
8317 * windows-nat.c: Include infrun.h.
8318 * mi/mi-interp.c: Include infrun.h.
8319 * mi/mi-main.c: Include infrun.h.
8320 * python/py-threadevent.c: Include infrun.h.
8321
8322 2014-05-22 Pedro Alves <palves@redhat.com>
8323
8324 * infrun.c (handle_inferior_event): Store the exit code for
8325 --return-child-result here, instead of ...
8326 (print_exited_reason): ... here.
8327
8328 2014-05-21 Pedro Alves <palves@redhat.com>
8329
8330 PR gdb/13860
8331 * gdbthread.h (struct thread_control_state): New field
8332 `command_interp'.
8333 * infrun.c (follow_fork): Copy the new thread control field to the
8334 child fork thread.
8335 (clear_proceed_status_thread): Clear the new thread control field.
8336 (proceed): Set the new thread control field.
8337 * interps.h (command_interp): Declare.
8338 * interps.c (command_interpreter): New global.
8339 (command_interp): New function.
8340 (interp_exec): Set `command_interpreter' while here.
8341 * cli-out.c (cli_uiout_dtor): New function.
8342 (cli_ui_out_impl): Install it.
8343 * mi/mi-interp.c: Include cli-out.h.
8344 (mi_cmd_interpreter_exec): Add comment.
8345 (restore_current_uiout_cleanup): New function.
8346 (ui_out_free_cleanup): New function.
8347 (mi_on_normal_stop): If finishing an execution command started by
8348 a CLI command, or any kind of breakpoint-like event triggered,
8349 print the stop event to the output (CLI) stream.
8350 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8351
8352 2014-05-21 Pedro Alves <palves@redhat.com>
8353
8354 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8355 current source line having changed.
8356 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8357 * infrun.c (normal_stop): Adjust call to
8358 set_current_sal_from_frame.
8359 * source.c (clear_lines_listed_range): New function.
8360 (set_current_source_symtab_and_line, identify_source_line): Clear
8361 the lines listed range.
8362 (line_info): Handle the first "info line" after the current source
8363 line having changed.
8364 * stack.c (print_stack_frame): Remove center handling.
8365 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8366 center sal.line.
8367
8368 2014-05-21 Pedro Alves <palves@redhat.com>
8369
8370 * inf-child.c (inf_child_mourn_inferior): New function.
8371 * inf-child.h (inf_child_mourn_inferior): New declaration.
8372 * darwin-nat.c (darwin_mourn_inferior): Use
8373 inf_child_mourn_inferior.
8374 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8375 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8376 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8377 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8378 * windows-nat.c (windows_mourn_inferior): Likewise.
8379
8380 2014-05-21 Doug Evans <xdje42@gmail.com>
8381
8382 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8383
8384 2014-05-21 Doug Evans <xdje42@gmail.com>
8385
8386 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8387 (gdbscm_out_of_range_error): Ditto.
8388 (gdbscm_memory_error): Ditto.
8389 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8390 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8391 (gdbscm_out_of_range_error): Update.
8392 (gdbscm_memory_error): Update.
8393 (gdbscm_scm_to_target_string_unsafe): Delete.
8394
8395 2014-05-21 Pedro Alves <palves@redhat.com>
8396
8397 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8398 globals.
8399 (inf_child_open_target): New function.
8400 (inf_child_open): Use inf_child_open_target to push the target
8401 instead of erroring out.
8402 (inf_child_disconnect, inf_child_close)
8403 (inf_child_maybe_unpush_target): New functions.
8404 (inf_child_target): Install inf_child_disconnect and
8405 inf_child_close. Store a pointer to the returned object.
8406 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8407 declarations.
8408 * target.c (auto_connect_native_target): New global.
8409 (show_default_run_target): New function.
8410 (find_default_run_target): Return NULL if automatically connecting
8411 to the native target is disabled.
8412 (_initialize_target): Install set/show auto-connect-native-target.
8413 * NEWS: Mention "set auto-connect-native-target", and "target
8414 native".
8415 * linux-nat.c (super_close): New global.
8416 (linux_nat_close): Call super_close.
8417 (linux_nat_add_target): Store a pointer to the base class's
8418 to_close method.
8419 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8420 inf_child_maybe_unpush.
8421 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8422 already pushed.
8423 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8424 the inferior. Use inf_child_maybe_unpush_target.
8425 (inf_ttrace_attach): Don't push the target if it is already
8426 pushed.
8427 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8428 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8429 after mourning the inferior. Use inf_child_maybe_unpush_target.
8430 (darwin_attach_pid): Don't push the target if it is already
8431 pushed.
8432 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8433 mourning the inferior. Use inf_child_maybe_unpush_target.
8434 (gnu_detach): Use inf_child_maybe_unpush_target.
8435 * go32-nat.c (go32_create_inferior): Don't push the target if it
8436 is already pushed.
8437 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8438 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8439 (procfs_open): Rename to ...
8440 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8441 comments. Can target_preopen before changing node. Call
8442 inf_child_open_target to push the target explicitly.
8443 (procfs_attach): Don't push the target if it is already pushed.
8444 (procfs_detach): Use inf_child_maybe_unpush_target.
8445 (procfs_create_inferior): Don't push the target if it is already
8446 pushed.
8447 (nto_native_ops): New global.
8448 (procfs_open): Reimplement.
8449 (procfs_native_open): New function.
8450 (init_procfs_targets): Install procfs_native_open as to_open of
8451 "target native". Store a pointer to the "native" target in
8452 nto_native_ops.
8453 * procfs.c (procfs_attach): Don't push the target if it is already
8454 pushed.
8455 (procfs_detach): Use inf_child_maybe_unpush_target.
8456 (procfs_mourn_inferior): Only unpush the target after mourning the
8457 inferior. Use inf_child_maybe_unpush_target.
8458 (procfs_init_inferior): Don't push the target if it is already
8459 pushed.
8460 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8461 if it is already pushed.
8462
8463 2014-05-21 Pedro Alves <palves@redhat.com>
8464
8465 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8466 and "procfs" targets are now called "native" instead.
8467
8468 2014-05-21 Pedro Alves <palves@redhat.com>
8469
8470 * go32-nat.c (go32_open): Delete.
8471 (go32_target): Don't override the to_open method.
8472
8473 2014-05-21 Pedro Alves <palves@redhat.com>
8474
8475 * nto-procfs.c (procfs_can_run): New function.
8476 (nto_procfs_ops): New global.
8477 (init_procfs_targets): New, based on procfs_target. Install
8478 "target native" in addition to "target procfs".
8479 (_initialize_procfs): Call init_procfs_targets instead of adding
8480 the target here.
8481
8482 2014-05-21 Pedro Alves <palves@redhat.com>
8483
8484 * windows-nat.c (windows_target): Don't override to_shortname,
8485 to_longname or to_doc.
8486
8487 2014-05-21 Pedro Alves <palves@redhat.com>
8488
8489 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8490 to_doc.
8491
8492 2014-05-21 Pedro Alves <palves@redhat.com>
8493
8494 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8495 to_shortname, to_longname or to_doc.
8496
8497 2014-05-21 Pedro Alves <palves@redhat.com>
8498
8499 * go32-nat.c (go32_target): Don't override to_shortname,
8500 to_longname or to_doc.
8501
8502 2014-05-21 Pedro Alves <palves@redhat.com>
8503
8504 * inf-child.c (inf_child_open): Remove mention of "child".
8505 (inf_child_target): Rename target to "native" instead of "child".
8506
8507 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8508
8509 * Makefile.in (SFILES): Delete "regset.c".
8510 (COMMON_OBS): Delete "regset.o".
8511 * regset.c: Remove.
8512 * regset.h (regset_alloc): Delete prototype.
8513
8514 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8515
8516 * sparc-linux-tdep.c (sparc32_linux_gregset)
8517 (sparc32_linux_fpregset): New static regset structures.
8518 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8519 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8520 'fpregset' fields.
8521 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8522 (sparc64_linux_fpregset): New static regset structures.
8523 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8524 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8525 New static regset structures.
8526 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8527 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8528 New static regset structures.
8529 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8530 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8531 New static regset structures.
8532 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8533 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8534 New static regset structures.
8535 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8536
8537 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8538
8539 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8540 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8541 register maps ("regmaps") from "*regset" to "*regmap". Do this
8542 for all regmap types and variables.
8543 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8544 (sparc32_linux_supply_core_gregset)
8545 (sparc32_linux_collect_core_gregset)
8546 (sparc32_linux_supply_core_fpregset)
8547 (sparc32_linux_collect_core_fpregset): Likewise.
8548 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8549 (sparc_gregmap, sparc_fpregmap): ... these.
8550 (sparc_supply_gregset, sparc_collect_gregset)
8551 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8552 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8553 (_initialize_sparc_nat): Rename regmaps.
8554 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8555 (sparc_gregmap, sparc_fpregmap): ... these.
8556 (sparc_supply_gregset, sparc_collect_gregset)
8557 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8558 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8559 Rename macros to...
8560 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8561 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8562 Likewise.
8563 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8564 Rename to...
8565 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8566 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8567 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8568 regmaps.
8569 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8570 (sparc32_bsd_fpregset): Rename to...
8571 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8572 (sparc32_bsd_fpregmap): ... these.
8573 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8574 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8575 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8576 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8577 (struct sparc_gregmap, struct sparc_fpregmap)
8578 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8579 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8580 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8581 (sparc32_supply_regset, sparc32_collect_gregset)
8582 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8583 prototypes.
8584 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8585 (sparc64_linux_ptrace_gregmap): ... this.
8586 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8587 (_initialize_sparc64_linux_nat): Rename regmaps.
8588 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8589 (sparc64_linux_core_gregmap): ... this.
8590 (sparc64_linux_supply_core_gregset)
8591 (sparc64_linux_collect_core_gregset)
8592 (sparc64_linux_supply_core_fpregset)
8593 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8594 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8595 (sparc64_sol2_fpregset): Rename to...
8596 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8597 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8598 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8599 regmaps.
8600 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8601 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8602 (sparc64_bsd_fpregset): Rename to...
8603 (struct sparc_gregmap, sparc64_sol2_gregmap)
8604 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8605 (sparc64_bsd_fpregmap): ... these.
8606 (sparc64_supply_gregset, sparc64_collect_gregset)
8607 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8608 prototypes.
8609 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8610 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8611 (sparc64fbsd_gregmap): ... this.
8612 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8613 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8614 Rename regmaps.
8615 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8616 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8617 (sparc64nbsd_collect_fpregset): Likewise.
8618 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8619 (sparc64nbsd_gregmap): ... this.
8620 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8621 regmaps.
8622 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8623 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8624 (sparc64obsd_gregmap): ... this.
8625 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8626 regmaps.
8627 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8628 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8629 (sparc32nbsd_gregmap): ... this.
8630 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8631 regmaps.
8632
8633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8634
8635 * score-tdep.c (score7_linux_gregset): New static regset
8636 structure.
8637 (score7_linux_regset_from_core_section): Remove dynamic regset
8638 allocation.
8639 (score_gdbarch_init): Drop allocation of tdep structure.
8640 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8641
8642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8643
8644 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8645 regset structures.
8646 (am33_regset_from_core_section): Remove dynamic regset
8647 allocations.
8648
8649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8650
8651 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8652 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8653 structures.
8654 (mips_linux_regset_from_core_section): Remove dynamic regset
8655 allocations.
8656 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8657 'gregset64', 'fpregset', and 'fpregset64'.
8658 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8659 deleted tdep fields.
8660
8661 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8662
8663 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8664 regset structures.
8665 (amd64_regset_from_core_section): Remove dynamic regset
8666 allocations.
8667 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8668 structure.
8669 (amd64obsd_regset_from_core_section): Remove dynamic regset
8670 allocation.
8671 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8672 Likewise.
8673 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8674 x86-common regset supply function.
8675 * i386-tdep.c (i386_collect_gregset): Make static.
8676 (i386_gregset): New global regset structure.
8677 (i386_fpregset, i386_xstateregset): New static regset structures.
8678 (i386_regset_from_core_section): Remove dynamic regset
8679 allocations.
8680 (i386_gdbarch_init): Remove initialization of tdep fields
8681 'gregset', 'fpregset', and 'xstateregset'.
8682 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8683 'fpregset', and 'xstateregset'.
8684 (i386_collect_gregset): Remove prototype.
8685 (i386_gregset): New declaration.
8686 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8687 structure.
8688 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8689 allocation.
8690
8691 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8692
8693 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8694 (arm_linux_vfpregset): New static regset structures.
8695 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8696 regset structures.
8697 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8698 and 'vfpregset' fields.
8699
8700 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8701
8702 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8703 (aarch64_linux_fpregset): New static regset structures.
8704 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8705 of regset structures.
8706 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8707 'fpregset' fields.
8708
8709 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8710
8711 * regset.h (struct regset): Remove gdbarch field.
8712 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8713 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8714 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8715 Likewise.
8716 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8717 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8718 (ppc32_linux_vsxregset): Likewise.
8719 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8720 via the regcache instead of the regset.
8721 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8722 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8723 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8724 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8725 Likewise.
8726
8727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8728
8729 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8730 Constify structures.
8731 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8732 (alphanbsd_aout_gregset): Likewise.
8733 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8734 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8735 Likewise.
8736 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8737 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8738 Likewise.
8739 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8740 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8741 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8742 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8743 * m88k-tdep.c (m88k_gregset): Likewise.
8744 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8745 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8746 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8747 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8748 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8749 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8750 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8751 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8752 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8753 Likewise.
8754 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8755 * sh-tdep.h (sh_corefile_gregset): Likewise.
8756 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8757 * vax-tdep.c (vax_gregset): Likewise.
8758
8759 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 Fix TLS access for -static -pthread.
8762 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8763 (try_thread_db_load_1): Initialize it.
8764 (thread_db_get_thread_local_address): Call it if LM is zero.
8765 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8766 * target.h (struct target_ops) (to_get_thread_local_address): Add
8767 load_module_addr comment.
8768
8769 2014-05-21 Pedro Alves <palves@redhat.com>
8770
8771 * dcache.c (dcache_read_memory_partial): If reading the cache line
8772 fails, fallback to reading just the memory the caller wanted.
8773
8774 2014-05-20 Doug Evans <dje@google.com>
8775
8776 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8777 instead of get_current_arch.
8778
8779 2014-05-20 Pedro Alves <palves@redhat.com>
8780
8781 * NEWS: Mention that compare-sections now works with all targets.
8782
8783 * remote.c (PACKET_qCRC): New enum value.
8784 (remote_verify_memory): Don't send qCRC if the target has no
8785 execution. Use packet_support/packet_ok. If the target doesn't
8786 support the qCRC packet, fallback to a deep memory copy.
8787 (compare_sections_command): Say "target image" instead of "remote
8788 executable".
8789 (_initialize_remote): Add PACKET_qCRC to the list of config
8790 packets that have no associated command. Extend comment.
8791 * target.c (simple_verify_memory, default_verify_memory): New
8792 function.
8793 * target.h (struct target_ops) <to_verify_memory>: Default to
8794 default_verify_memory.
8795 (simple_verify_memory): New declaration.
8796 * target-delegates.c: Regenerate.
8797
8798 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8799
8800 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8801
8802 2014-05-20 Hui Zhu <hui@codesourcery.com>
8803 Yao Qi <yao@codesourcery.com>
8804
8805 PR backtrace/16558
8806 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8807 and change address of sp and pc.
8808
8809 2014-05-19 Tom Tromey <tromey@redhat.com>
8810
8811 * gdbtypes.c (rank_function): Use XNEWVEC.
8812 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8813
8814 2014-05-19 Doug Evans <dje@google.com>
8815
8816 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8817 build_type_unit_groups and moved closer to only caller. Remove
8818 arguments. All references updated. Remove outdated .gdb_index
8819 comment.
8820 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8821 build_type_psymtabs_1.
8822
8823 2014-05-19 Doug Evans <dje@google.com>
8824
8825 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8826 n_type_unit_groups, all_type_unit_groups. All uses removed.
8827 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8828 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8829 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8830 (add_type_unit_group_to_table): Delete.
8831
8832 2014-05-19 Doug Evans <dje@google.com>
8833
8834 * eval.c (evaluate_subexp_standard): Add some comments.
8835
8836 2014-05-17 Doug Evans <xdje42@gmail.com>
8837
8838 * progspace.c (remove_program_space): Delete, unused.
8839 * progspace.h (remove_program_space): Ditto.
8840
8841 2014-05-17 Doug Evans <xdje42@gmail.com>
8842
8843 * inferior.c (prune_inferiors): Fix comment.
8844 (remove_inferior_command): Call prune_program_spaces.
8845
8846 2014-05-16 Doug Evans <dje@google.com>
8847
8848 New command line option -D.
8849 * NEWS: Mention it.
8850 * main.c (set_gdb_data_directory): New function.
8851 (captured_main): Recognize -D. Flag error for --data-directory "".
8852 Call set_gdb_data_directory.
8853 (print_gdb_help): Print --data-directory, -D.
8854 * main.h (set_gdb_data_directory): Declare.
8855 * top.c (staged_gdb_datadir): New static global.
8856 (set_gdb_datadir): Call set_gdb_data_directory
8857 (show_gdb_datadir): New function.
8858 (init_main): Update init of data-directory parameter.
8859
8860 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8861
8862 Import the "dirfd" gnulib module.
8863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8864 * gnulib/aclocal.m4: Update.
8865 * gnulib/config.in: Update.
8866 * gnulib/configure: Update.
8867 * gnulib/import/Makefile.am: Update.
8868 * gnulib/import/Makefile.in: Update.
8869 * gnulib/import/dirfd.c: New.
8870 * gnulib/import/m4/dirfd.m4: New.
8871 * gnulib/import/m4/gnulib-cache.m4: Update.
8872 * gnulib/import/m4/gnulib-comp.m4: Update.
8873
8874 2014-05-16 Pierre Muller <muller@sourceware.org>
8875 Yao Qi <yao@codesourcery.com>
8876
8877 * valprint.c (print_wchar): Move the code on checking whether
8878 W is a printable wide char to the default branch of switch
8879 statement below. Call wchar_printable instead of gdb_iswprint.
8880
8881 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8882
8883 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8884 ldr.w and ldrd instructions.
8885
8886 2014-05-15 Doug Evans <dje@google.com>
8887
8888 * dwarf2read.c (read_structure_type): Delete outdated comments.
8889
8890 2014-05-14 Tom Tromey <tromey@redhat.com>
8891
8892 * macrocmd.c (print_macro_definition): Reindent.
8893
8894 2014-05-13 Doug Evans <xdje42@gmail.com>
8895
8896 * python/py-cmd.c (cmdpy_completer): Add comment.
8897 (completers): Make const.
8898
8899 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8900
8901 * infrun.c (resume): Remove should_resume (unused). Move up
8902 declaration of resume_ptid.
8903
8904 2014-05-13 Tom Tromey <tromey@redhat.com>
8905
8906 * language.h (unop_type_check): Remove.
8907 (binop_type_check): Don't declare.
8908
8909 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8910
8911 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8912 call to regcache_raw_collect.
8913
8914 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8915
8916 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8917 mi_console->quote as the quoting character.
8918
8919 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8920
8921 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8922
8923 2014-04-29 Tom Tromey <tromey@redhat.com>
8924
8925 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8926 "show debug varobj".
8927
8928 2014-05-07 Kyle McMartin <kyle@redhat.com>
8929
8930 Pushed by Joel Brobecker <brobecker@adacore.com>.
8931 * aarch64-tdep.c (aarch64_software_single_step): New function.
8932 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8933 with aarch64_software_single_step.
8934
8935 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8936
8937 GDB 7.7.1 released.
8938
8939 2014-05-05 Keith Seitz <keiths@redhat.com>
8940
8941 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8942 variable or history value is successfully parsed.
8943
8944 2014-05-05 Yao Qi <yao@codesourcery.com>
8945 Pedro Alves <palves@redhat.com>
8946
8947 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8948 address of blocks that intersects the requested range. Trim
8949 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8950 sections.
8951 * ctf.c (ctf_xfer_partial): Likewise.
8952
8953 2014-05-05 Yao Qi <yao@codesourcery.com>
8954
8955 * printcmd.c (display_command): Remove the check to
8956 target_has_execution.
8957
8958 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8959
8960 * ppcobsd-nat.c: Include "obsd-nat.h".
8961 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8962 add_target.
8963 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8964
8965 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8966
8967 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8968 and 16-bit signed and unsigned arguments. Update comment.
8969 (stap_parse_probe_arguments): Extend code to handle such
8970 arguments. Use warning instead of complaint to notify about
8971 unrecognized bitness.
8972
8973 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8974
8975 PR breakpoints/16889
8976 * stap-probe.c (stap_parse_probe_arguments): Simplify
8977 check for non-prefixed probes (i.e., probes whose
8978 arguments do not start with "N@"). Always set the
8979 argument type to a sane value.
8980
8981 2014-05-01 David Taylor <dtaylor@emc.com>
8982
8983 * remote.c (compare_sections_command): Add -r option to compare
8984 all loadable read-only sections.
8985
8986 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8987
8988 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8989 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8990 Update all callers.
8991 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8992 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8993 Remove unused CORE_ADDR argument. Update all callers.
8994
8995 2014-04-29 Pedro Alves <palves@redhat.com>
8996
8997 * remote.c (struct packet_config) <detect>: Extend comment.
8998 (add_packet_config_cmd): Don't set the config's detect or support
8999 fields here.
9000 (init_all_packet_configs): Also initialize the config's 'detect'
9001 field.
9002 (reset_all_packet_configs_support): New function.
9003 (remote_open_1): Call reset_all_packet_configs_support instead of
9004 init_all_packet_configs.
9005 (_initialize_remote): Initialize all packet configs. Assert that
9006 all packets have an associated command, except a few known
9007 outliers.
9008
9009 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9010
9011 * dwarf2read.c (read_subrange_type): Handle dynamic
9012 DW_AT_lower_bound attributes.
9013
9014 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9015
9016 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9017 dynamic bounds before computing its upper bound.
9018 (ada_discrete_type_low_bound): Same as above with the lower bound.
9019
9020 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9021
9022 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9023 range types. Adjust the array handling implementation to
9024 take advantage of this change.
9025 (resolve_dynamic_range): New function, mostly extracted from
9026 resolve_dynamic_bounds.
9027 (resolve_dynamic_array): New function, mostly extracted from
9028 resolve_dynamic_bounds.
9029 (resolve_dynamic_bounds): Delete.
9030 (resolve_dynamic_type): Reimplement. Add handling of
9031 TYPE_CODE_RANGE types.
9032
9033 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9034
9035 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9036 handling of parallel ___XA types.
9037
9038 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9039
9040 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9041 unnecessary second call to static_unwrap_type.
9042
9043 2014-04-27 Hui Zhu <hui@codesourcery.com>
9044
9045 * stack.c (print_frame_info): Call do_gdb_disassembly with
9046 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9047
9048 2014-04-26 Doug Evans <xdje42@gmail.com>
9049
9050 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9051
9052 2014-04-25 Pedro Alves <palves@redhat.com>
9053
9054 PR server/16255
9055 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9056 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9057 and newline from built string.
9058 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9059 (linux_ptrace_attach_fail_reason): ... this.
9060 * linux-nat.c (linux_nat_attach): Adjust to use
9061 linux_ptrace_attach_fail_reason.
9062
9063 2014-04-25 Pedro Alves <palves@redhat.com>
9064
9065 * remote.c (struct remote_state): Remove multi_process_aware,
9066 non_stop_aware, cond_tracepoints, cond_breakpoints,
9067 breakpoint_commands, fast_tracepoints, static_tracepoints,
9068 install_in_trace, disconnected_tracing,
9069 enable_disable_tracepoints, string_tracing, and
9070 augmented_libraries_svr4_read fields.
9071 (remote_multi_process_p): Move further below in the file.
9072 (struct packet_config): Add comments.
9073 (update_packet_config): Delete function.
9074 (show_packet_config_cmd): Use packet_config_support.
9075 (add_packet_config_cmd): Use NULL as set callback.
9076 (packet_ok): "set remote foo-packet"-style commands no longer
9077 change config->supported -- adjust.
9078 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9079 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9080 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9081 (PACKET_QNonStop, PACKET_multiprocess_feature)
9082 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9083 (PACKET_DisconnectedTracing_feature)
9084 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9085 (set_remote_protocol_packet_cmd): Delete function.
9086 (packet_config_support, packet_support): New functions.
9087 (set_remote_protocol_Z_packet_cmd): Don't call
9088 update_packet_config.
9089 (remote_query_attached, remote_pass_signals)
9090 (remote_program_signals, remote_threads_info)
9091 (remote_threads_extra_info, remote_start_remote): Use
9092 packet_support.
9093 (remote_start_remote): Use packet_config_support and
9094 packet_support.
9095 (init_all_packet_configs): Set all packets to unknown support,
9096 instead of calling update_packet_config.
9097 (remote_check_symbols): Use packet_support.
9098 (remote_supported_packet): Unconditionally set the packet config's
9099 support status.
9100 (remote_multi_process_feature, remote_non_stop_feature)
9101 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9102 (remote_breakpoint_commands_feature)
9103 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9104 (remote_install_in_trace_feature)
9105 (remote_disconnected_tracing_feature)
9106 (remote_enable_disable_tracepoint_feature)
9107 (remote_string_tracing_feature)
9108 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9109 (remote_protocol_features): Adjust to use remote_supported_packet
9110 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9111 "ConditionalTracepoints", "ConditionalBreakpoints",
9112 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9113 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9114 "EnableDisableTracepoints", and "tracenz".
9115 (remote_query_supported): Use packet_support.
9116 (remote_open_1): Adjust.
9117 (extended_remote_attach_1): Use packet_support. Switch on the
9118 result of packet_ok instead of checking whether the packet ended
9119 up disabled.
9120 (remote_vcont_resume): Use packet_support.
9121 (remote_resume, remote_stop_ns, fetch_register_using_p)
9122 (remote_prepare_to_store, store_register_using_P)
9123 (check_binary_download, remote_write_bytes): Use packet_support.
9124 (remote_vkill): Use packet_support. Switch on the result of
9125 packet_ok instead of checking whether the packet ended up
9126 disabled.
9127 (extended_remote_supports_disable_randomization): Use
9128 packet_support.
9129 (extended_remote_run): Switch on the result of packet_ok instead
9130 of checking whether the packet ended up disabled.
9131 (remote_insert_breakpoint, remote_remove_breakpoint)
9132 (remote_insert_watchpoint, remote_remove_watchpoint)
9133 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9134 packet_support.
9135 (remote_search_memory): Use packet_config_support.
9136 (remote_get_thread_local_address, remote_get_tib_address)
9137 (remote_hostio_send_command, remote_can_execute_reverse): Use
9138 packet_support.
9139 (remote_supports_cond_tracepoints)
9140 (remote_supports_cond_breakpoints)
9141 (remote_supports_fast_tracepoints)
9142 (remote_supports_static_tracepoints)
9143 (remote_supports_install_in_trace)
9144 (remote_supports_enable_disable_tracepoint)
9145 (remote_supports_string_tracing)
9146 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9147 the packet config says the feature is enabled or disabled.
9148 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9149 (remote_get_trace_status): Use packet_support.
9150 (remote_set_disconnected_tracing): Adjust to check whether the
9151 feature is enabled with packet_support.
9152 (remote_set_trace_buffer_size, remote_use_agent)
9153 (remote_can_use_agent, remote_supports_btrace): Use
9154 packet_support.
9155 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9156 Use packet_config_support.
9157 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9158 the packet config says the feature is enabled or disabled.
9159 (set_range_stepping): Use packet_support.
9160
9161 2014-04-25 Tom Tromey <tromey@redhat.com>
9162
9163 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9164 argument.
9165
9166 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9167
9168 * NEWS: Mention support for C99 variable length arrays.
9169
9170 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9171
9172 * ada-lang.c (standard_exc): Expand introductory comment.
9173
9174 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9175 Walfred Tedeschi <walfred.tedeschi@intel.com>
9176
9177 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9178 AVX512 registers.
9179 (amd64_linux_read_description): Add code to handle AVX512 xstate
9180 mask and return respective tdesc.
9181 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9182 and features/i386/x32-avx512-linux.c.
9183 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9184 (amd64_linux_core_read_description): Add code to handle AVX512
9185 xstate mask and return respective tdesc.
9186 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9187 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9188 calculation.
9189 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9190 (tdesc_amd64_avx512_linux): New prototype.
9191 (tdesc_x32_avx512_linux): Likewise.
9192 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9193 features/i386/x32-avx512.c.
9194 (amd64_ymm_avx512_names): New register names for pseudo
9195 registers YMM16-31.
9196 (amd64_ymmh_avx512_names): New register names for raw registers
9197 YMMH16-31.
9198 (amd64_k_names): New register names for K registers.
9199 (amd64_zmmh_names): New register names for ZMM raw registers.
9200 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9201 (amd64_xmm_avx512_names): New register names for XMM16-31
9202 registers.
9203 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9204 registers.
9205 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9206 if feature is present.
9207 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9208 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9209 (AMD64_NUM_REGS): Adjust to new number of registers.
9210 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9211 registers supplied via XSTATE by AVX512 registers.
9212 (i386_linux_read_description): Add case for AVX512.
9213 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9214 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9215 (i386_linux_core_read_description): Add case for AVX512.
9216 (i386_linux_init_abi): Install supported register note section
9217 for AVX512.
9218 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9219 AVX512.
9220 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9221 registers to be number of zmm7h + 1.
9222 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9223 * i386-tdep.c: Include features/i386/i386-avx512.c.
9224 (i386_zmm_names): Add ZMM pseudo register names array.
9225 (i386_zmmh_names): Add ZMM raw register names array.
9226 (i386_k_names): Add K raw register names array.
9227 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9228 registers. AVX512 has 16 more ZMM registers than there are YMM
9229 registers.
9230 (i386_zmmh_regnum_p): Add function to look up register number of
9231 ZMM raw registers.
9232 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9233 (i386_k_regnum_p): Likewise for K raw registers.
9234 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9235 registers added by AVX512.
9236 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9237 registers added by AVX512.
9238 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9239 added by AVX512.
9240 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9241 (i386_pseudo_register_name): Add ZMM pseudo registers.
9242 (i386_zmm_type): Construct and return vector registers type for ZMM
9243 registers.
9244 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9245 ZMM0-31 pseudo registers and K registers.
9246 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9247 and YMM16-31 registers from register cache.
9248 (i386_pseudo_register_write): Add code to write K, ZMM and
9249 YMM16-31 registers.
9250 (i386_register_reggroup_p): Add code to include/exclude AVX512
9251 registers in/from respective register groups.
9252 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9253 registers if feature is present in xcr0.
9254 (i386_gdbarch_init): Add code to initialize AVX512 feature
9255 variables in tdep structure, wire in pseudo registers and call
9256 initialize_tdesc_i386_avx512.
9257 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9258 variables.
9259 (i386_regnum): Add AVX512 registers.
9260 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9261 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9262 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9263 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9264 512 bits wide.
9265 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9266 (i386_ymm_avx512_regnum_p): Likewise.
9267 (i386_k_regnum_p): Likewise.
9268 (i386_zmm_regnum_p): Likewise.
9269 (i386_zmmh_regnum_p): Likewise.
9270 * i387-tdep.c : Update year in copyright notice.
9271 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9272 XSAVE buffer.
9273 (XSAVE_YMM_AVX512_ADDR): New macro.
9274 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9275 XSAVE buffer.
9276 (XSAVE_XMM_AVX512_ADDR): New macro.
9277 (xsave_avx512_k_offset): New table for K register offsets in
9278 XSAVE buffer.
9279 (XSAVE_AVX512_K_ADDR): New macro.
9280 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9281 in XSAVE buffer.
9282 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9283 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9284 buffer.
9285 (i387_collect_xsave): Add code to collect AVX512 registers from
9286 XSAVE buffer.
9287 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9288 of XMM16-31 registers.
9289 (I387_NUM_K_REGS): New define for number of K registers.
9290 (I387_K0_REGNUM): New define for K0 register number.
9291 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9292 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9293 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9294 registers.
9295 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9296 (I387_XMM16_REGNUM): New define for XMM16 register number.
9297 (I387_YMM0_REGNUM): New define for YMM0 register number.
9298 (I387_KEND_REGNUM): New define for last K register number.
9299 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9300 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9301 number.
9302 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9303 number.
9304 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9305 size.
9306 * features/Makefile: Add AVX512 related files.
9307 * features/i386/32bit-avx512.xml: New file.
9308 * features/i386/64bit-avx512.xml: Likewise.
9309 * features/i386/amd64-avx512-linux.c: Likewise.
9310 * features/i386/amd64-avx512-linux.xml: Likewise.
9311 * features/i386/amd64-avx512.c: Likewise.
9312 * features/i386/amd64-avx512.xml: Likewise.
9313 * features/i386/i386-avx512-linux.c: Likewise.
9314 * features/i386/i386-avx512-linux.xml: Likewise.
9315 * features/i386/i386-avx512.c: Likewise.
9316 * features/i386/i386-avx512.xml: Likewise.
9317 * features/i386/x32-avx512-linux.c: Likewise.
9318 * features/i386/x32-avx512-linux.xml: Likewise.
9319 * features/i386/x32-avx512.c: Likewise.
9320 * features/i386/x32-avx512.xml: Likewise.
9321 * regformats/i386/amd64-avx512-linux.dat: New file.
9322 * regformats/i386/amd64-avx512.dat: Likewise.
9323 * regformats/i386/i386-avx512-linux.dat: Likewise.
9324 * regformats/i386/i386-avx512.dat: Likewise.
9325 * regformats/i386/x32-avx512-linux.dat: Likewise.
9326 * regformats/i386/x32-avx512.dat: Likewise.
9327 * NEWS: Add note about new support for AVX512.
9328
9329
9330 2014-04-23 Pedro Alves <palves@redhat.com>
9331
9332 * breakpoint.c (insert_bp_location): Tolerate errors if the
9333 breakpoint is set in a user-loaded objfile.
9334 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9335 location is marked shlib_disabled. If the breakpoint is set in a
9336 user-loaded objfile is a GDB-side memory breakpoint, validate it
9337 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9338 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9339 flag.
9340 * mem-break.c (memory_validate_breakpoint): New function.
9341 * objfiles.c (userloaded_objfile_contains_address_p): New
9342 function.
9343 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9344 * target.h (memory_validate_breakpoint): New declaration.
9345
9346 2014-04-23 Pedro Alves <palves@redhat.com>
9347
9348 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9349 the breakpoint is set in a shared library, only suppress
9350 errors for software breakpoints, not hardware breakpoints.
9351
9352 2014-04-22 Pedro Alves <palves@redhat.com>
9353
9354 * infrun.c (schedlock_applies): New function, factored out from
9355 find_thread_needs_step_over.
9356 (find_thread_needs_step_over): Use it.
9357 (switch_back_to_stepped_thread): Always clear trap_expected if the
9358 step over is finished. Return early if scheduler locking applies.
9359 Look for the stepping thread and a potential step-over thread with
9360 a single loop.
9361 (currently_stepping_or_nexting_callback): Delete.
9362
9363 2014-04-22 Nick Clifton <nickc@redhat.com>
9364
9365 * NEWS: Mention that ARM sim now supports tracing.
9366
9367 2014-04-22 Yao Qi <yao@codesourcery.com>
9368
9369 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9370 to ...
9371 * tracefile.c (tracefile_fetch_registers): ... it. New
9372 function.
9373 * tracefile.h (tracefile_fetch_registers): Declare.
9374 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9375 tracefile_fetch_registers.
9376
9377 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9378
9379 PR gdb/14018
9380 * windows-nat.c (thread_rec): Don't display a warning when
9381 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9382 fails for any reason, set th->suspended to -1, so that we don't
9383 try to resume such a thread. Also, don't return NULL in these
9384 cases, to avoid completely ruin the session due to "PC register is
9385 not available" error.
9386 (do_windows_fetch_inferior_registers): Check errors in
9387 GetThreadContext call.
9388 (windows_continue): Accept an additional argument KILLED; if not
9389 zero, ignore errors in the SetThreadContext call, since the
9390 inferior was killed and is shutting down.
9391 (windows_resume, get_windows_debug_event)
9392 (windows_create_inferior, windows_mourn_inferior)
9393 (windows_kill_inferior): All callers of windows_continue changed
9394 to adjust to its new calling sequence.
9395
9396 2014-04-19 Yao Qi <yao@codesourcery.com>
9397
9398 * ctf.c (ctf_open): Call post_create_inferior.
9399
9400 2014-04-19 Yao Qi <yao@codesourcery.com>
9401
9402 * ctf.c (handle_id): New static variable.
9403 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9404 value. Get the declaration of event "register" and get length
9405 of field "contents".
9406
9407 2014-04-19 Yao Qi <yao@codesourcery.com>
9408
9409 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9410
9411 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9412
9413 * valops.c (oload_method_static): Remove unnecessary argument
9414 METHOD. Update all callers.
9415
9416 2014-04-18 Pedro alves <palves@redhat.com>
9417 Tom Tromey <tromey@redhat.com>
9418
9419 PR backtrace/15558
9420 * frame.c (get_prev_frame_1): Rename to ...
9421 (get_prev_frame_always): ... this, and make extern. Adjust.
9422 (skip_artificial_frames): Use get_prev_frame_always.
9423 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9424 (get_frame_unwind_stop_reason): Adjust to rename.
9425 * frame.h (get_prev_frame_always): Declare.
9426 * inline-frame.c: Include frame.h.
9427 (inline_frame_this_id): Use get_prev_frame_always.
9428
9429 2014-04-18 Tristan Gingold <gingold@adacore.com>
9430
9431 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9432 code by using bfd_mach_o_get_base_address.
9433
9434 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9435
9436 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9437 (spu_ax_pseudo_register_collect): New function.
9438 (spu_ax_pseudo_register_push_stack): Likewise.
9439 (spu_dwarf_reg_to_regnum): Likewise.
9440 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9441
9442 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9443
9444 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9445 Replace FRAME argument with FRAME_ID.
9446 * gdbarch.c, gdbarch.h: Regenerate.
9447 * findvar.c (default_value_from_register): Add GDBARCH argument;
9448 replace FRAME by FRAME_ID. No longer call get_frame_id.
9449 (value_from_register): Update call to gdbarch_value_from_register.
9450 * value.h (default_value_from_register): Update prototype.
9451 * s390-linux-tdep.c (s390_value_from_register): Update interface
9452 and call to default_value_from_register.
9453 * spu-tdep.c (spu_value_from_register): Likewise.
9454
9455 * findvar.c (address_from_register): Remove TYPE argument.
9456 Do not call value_from_register; use gdbarch_value_from_register
9457 with null_frame_id instead.
9458 * value.h (address_from_register): Update prototype.
9459 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9460 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9461 address_from_register interface change.
9462
9463 2014-04-17 Yao Qi <yao@codesourcery.com>
9464
9465 * gdbtypes.h: Update comments to link to types and macros'
9466 definitions.
9467
9468 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9469
9470 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9471
9472 2014-04-16 Keith Seitz <keiths@redhat.com>
9473
9474 PR gdb/15827
9475 * dwarf2read.c (skip_one_die): Check that all relative-offset
9476 sibling DIEs fall within range of the current reader's buffer.
9477 (read_partial_die): Likewise.
9478
9479 2014-04-16 Keith Seitz <keiths@redhat.com>
9480
9481 PR c++/16597
9482 * cp-namespace.c (lookup_symbol_file): If the type name of
9483 `this' is NULL, return immediately.
9484
9485 2014-04-14 Keith Seitz <keiths@redhat.com>
9486
9487 PR c++/16253
9488 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9489 from symbol_matches_domain in symtab.c. All local callers
9490 of symbol_matches_domain updated.
9491 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9492 search STRUCT_DOMAIN.
9493 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9494 independently. standard_lookup will do that automatically.
9495 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9496 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9497 (cp_lookup_symbol_in_namespace): Likewise.
9498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9499 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9500 may return a STRUCT_DOMAIN match.
9501 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9502 * cp-support.c: Include language.h.
9503 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9504 VAR_DOMAIN.
9505 * psymtab.c (match_partial_symbol): Compare the requested
9506 domain with the symbol's domain directly.
9507 (lookup_partial_symbol): Likewise.
9508 * symtab.c (lookup_symbol_in_language): Explain when/why
9509 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9510 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9511 appropriate languages.
9512 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9513 and moved to ada-lang.c
9514 (lookup_block_symbol): Explain that this function only returns
9515 symbol matching the requested DOMAIN.
9516 Compare the requested domain with the symbol's domain directly.
9517 (iterate_over_symbols): Compare the requested domain with the
9518 symbol's domain directly.
9519 * symtab.h (symbol_matches_domain): Remove.
9520
9521 2014-04-14 Tom Tromey <tromey@redhat.com>
9522
9523 PR c++/15246:
9524 * c-exp.y (type_aggregate_p): New function.
9525 (qualified_name, classify_inner_name): Use it.
9526 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9527 and TYPE_TARGET_TYPE of an enum type.
9528 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9529 an enum type.
9530 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9531 handle TYPE_DECLARED_CLASS.
9532 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9533 types.
9534 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9535 * valops.c (enum_constant_from_type): New function.
9536 (value_aggregate_elt): Use it.
9537 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9538 TYPE_CODE_ENUM.
9539
9540 2014-04-14 Tom Tromey <tromey@redhat.com>
9541
9542 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9543 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9544 const.
9545 * value.h (value_aggregate_elt): Update.
9546
9547 2014-04-14 Tom Tromey <tromey@redhat.com>
9548
9549 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9550
9551 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9552
9553 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9554 (evaluate_subexp_standard): Pass noside argument.
9555 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9556 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9557 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9558 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9559 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9560
9561 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9562
9563 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9564 points to a constant blob.
9565
9566 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9567
9568 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9569 property and store it as the high bound and flag the range accordingly.
9570 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9571 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9572 * gdbtypes.h (enum range_flags): New enum.
9573 (struct range_bounds): Add flags member.
9574
9575 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9576
9577 * c-typeprint.c (c_type_print_varspec_suffix): Added
9578 check for not yet resolved high bound. If unresolved, print
9579 "variable length" string to the console instead of random
9580 length.
9581
9582 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9583
9584 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9585 value.
9586 (ada_template_to_fixed_record_type_1): Likewise.
9587 (ada_to_fixed_type_1): Likewise.
9588 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9589 (cp_print_value): Likewise.
9590 * d-valprint.c (dynamic_array_type): Likewise.
9591 * findvar.c (address_of_variable): Likewise.
9592 * jv-valprint.c (java_value_print): Likewise.
9593 * valops.c (value_ind): Likewise.
9594 * value.c (coerce_ref): Likewise.
9595
9596 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9597
9598 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9599 value and retrieve the dynamic type size.
9600
9601 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9602
9603 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9604 passed to sizeof is dynamic evaluate the argument to compute the length.
9605
9606 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9607 Joel Brobecker <brobecker@adacore.com>
9608
9609 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9610 (dwarf2_evaluate_property): New function.
9611 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9612 * dwarf2read.c (attr_to_dynamic_prop): New function.
9613 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9614 attribute.
9615 * gdbtypes.c: Include dwarf2loc.h.
9616 (is_dynamic_type): New function.
9617 (resolve_dynamic_type): New function.
9618 (resolve_dynamic_bounds): New function.
9619 (get_type_length): New function.
9620 (check_typedef): Use get_type_length to compute type length.
9621 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9622 (TYPE_LOW_BOUND_KIND): New macro.
9623 (is_dynamic_type): New function prototype.
9624 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9625 to resolve dynamic properties of the type. Update comment.
9626 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9627
9628 2014-04-14 Richard Henderson <rth@redhat.com>
9629
9630 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9631
9632 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9633 Doug Evans <xdje42@gmail.com>
9634
9635 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9636 dereference TYPE_CODE_REF values.
9637
9638 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9639
9640 Revert the following changes due to regressions:
9641
9642 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9643 (dwarf2_evaluate_property): New function.
9644 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9645 * dwarf2read.c (attr_to_dynamic_prop): New function.
9646 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9647 attribute.
9648 * gdbtypes.c: Include dwarf2loc.h.
9649 (is_dynamic_type): New function.
9650 (resolve_dynamic_type): New function.
9651 (resolve_dynamic_bounds): New function.
9652 (get_type_length): New function.
9653 (check_typedef): Use get_type_length to compute type length.
9654 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9655 (TYPE_LOW_BOUND_KIND): New macro.
9656 (is_dynamic_type): New function prototype.
9657 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9658 to resolve dynamic properties of the type. Update comment.
9659 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9660
9661 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9662 passed to sizeof is dynamic evaluate the argument to compute the length.
9663
9664 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9665 value and retrieve the dynamic type size.
9666
9667 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9668 (ada_template_to_fixed_record_type_1): Likewise.
9669 (ada_to_fixed_type_1): Likewise.
9670 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9671 (cp_print_value): Likewise.
9672 * d-valprint.c (dynamic_array_type): Likewise.
9673 * eval.c (evaluate_subexp_with_coercion): Likewise.
9674 * findvar.c (address_of_variable): Likewise.
9675 * jv-valprint.c (java_value_print): Likewise.
9676 * valops.c (value_ind): Likewise.
9677 * value.c (coerce_ref): Likewise.
9678
9679 * c-typeprint.c (c_type_print_varspec_suffix): Added
9680 check for not yet resolved high bound. If unresolved, print
9681 "variable length" string to the console instead of random
9682 length.
9683
9684 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9685 property and store it as the high bound and flag the range accordingly.
9686 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9687 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9688 * gdbtypes.h (enum range_flags): New enum.
9689 (struct range_bounds): Add flags member.
9690
9691 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9692 points to a constant blob.
9693
9694 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9695 (evaluate_subexp_standard): Pass noside argument.
9696 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9697 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9698 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9699 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9700 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9701
9702 2014-04-11 Keith Seitz <keiths@redhat.com>
9703
9704 PR c++/16675
9705 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9706 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9707 reference types.
9708
9709 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9710
9711 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9712 (evaluate_subexp_standard): Pass noside argument.
9713 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9714 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9715 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9716 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9717 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9718
9719 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9720
9721 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9722 points to a constant blob.
9723
9724 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9725
9726 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9727 property and store it as the high bound and flag the range accordingly.
9728 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9729 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9730 * gdbtypes.h (enum range_flags): New enum.
9731 (struct range_bounds): Add flags member.
9732
9733 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9734
9735 * c-typeprint.c (c_type_print_varspec_suffix): Added
9736 check for not yet resolved high bound. If unresolved, print
9737 "variable length" string to the console instead of random
9738 length.
9739
9740 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9741
9742 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9743 (ada_template_to_fixed_record_type_1): Likewise.
9744 (ada_to_fixed_type_1): Likewise.
9745 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9746 (cp_print_value): Likewise.
9747 * d-valprint.c (dynamic_array_type): Likewise.
9748 * eval.c (evaluate_subexp_with_coercion): Likewise.
9749 * findvar.c (address_of_variable): Likewise.
9750 * jv-valprint.c (java_value_print): Likewise.
9751 * valops.c (value_ind): Likewise.
9752 * value.c (coerce_ref): Likewise.
9753
9754 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9755
9756 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9757 value and retrieve the dynamic type size.
9758
9759 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9760
9761 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9762 passed to sizeof is dynamic evaluate the argument to compute the length.
9763
9764 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9765
9766 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9767 (dwarf2_evaluate_property): New function.
9768 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9769 * dwarf2read.c (attr_to_dynamic_prop): New function.
9770 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9771 attribute.
9772 * gdbtypes.c: Include dwarf2loc.h.
9773 (is_dynamic_type): New function.
9774 (resolve_dynamic_type): New function.
9775 (resolve_dynamic_bounds): New function.
9776 (get_type_length): New function.
9777 (check_typedef): Use get_type_length to compute type length.
9778 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9779 (TYPE_LOW_BOUND_KIND): New macro.
9780 (is_dynamic_type): New function prototype.
9781 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9782 to resolve dynamic properties of the type. Update comment.
9783 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9784
9785 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9786
9787 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9788 declaring high/low bounds and change uses accordingly. Call
9789 create_range_type instead of create_static_range_type.
9790 * gdbtypes.c (create_range_type): New function.
9791 (create_range_type): Convert bounds into struct bound_prop and pass
9792 them to create_range_type.
9793 * gdbtypes.h (struct bound_prop): New struct.
9794 (create_range_type): New function prototype.
9795 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9796 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9797 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9798 part of the bound.
9799 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9800
9801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9802
9803 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9804 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9805 * ada-lang.c: All uses of create_range_type updated.
9806 * coffread.c: All uses of create_range_type updated.
9807 * dwarf2read.c: All uses of create_range_type updated.
9808 * f-exp.y: All uses of create_range_type updated.
9809 * m2-valprint.c: All uses of create_range_type updated.
9810 * mdebugread.c: All uses of create_range_type updated.
9811 * stabsread.c: All uses of create_range_type updated.
9812 * valops.c: All uses of create_range_type updated.
9813 * valprint.c: All uses of create_range_type updated.
9814
9815 2014-04-10 Pedro Alves <palves@redhat.com>
9816
9817 * breakpoint.c (single_step_breakpoints)
9818 (single_step_gdbarch): Move up in the file.
9819 (one_breakpoint_xfer_memory): New function, factored out from ...
9820 (breakpoint_xfer_memory): ... here. Also process single-step
9821 breakpoints.
9822
9823 2014-04-09 Tristan Gingold <gingold@adacore.com>
9824
9825 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9826 comments.
9827 (darwin_decode_exception_message): Free port only after use.
9828
9829 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9830
9831 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9832 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9833 when setting the size of call_length.
9834
9835 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9836
9837 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9838 dereference TYPE_CODE_REF values.
9839
9840 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9841
9842 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9843 end of warning message.
9844
9845 2014-04-03 Doug Evans <dje@google.com>
9846
9847 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9848 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9849
9850 2014-04-02 Alan Modra <amodra@gmail.com>
9851
9852 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9853 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9854 (struct symbol_file_add_from_memory_args): Add size field.
9855 (find_vdso_size): New function.
9856 (add_vsyscall_page): Attempt to find vdso size.
9857
9858 2014-04-01 Doug Evans <dje@google.com>
9859
9860 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9861
9862 2014-04-01 Tristan Gingold <gingold@adacore.com>
9863
9864 * darwin-nat.c (darwin_encode_reply): Add prototype.
9865 (darwin_decode_exception_message): Reply to unknown inferiors.
9866 (darwin_decode_message): Handle message by id. Ignore message
9867 to unknown inferior.
9868 (darwin_wait): Discard unknown messages, add debug trace.
9869
9870 2014-03-31 Doug Evans <dje@google.com>
9871
9872 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9873 comp_dir_string.
9874
9875 2014-03-31 Doug Evans <dje@google.com>
9876
9877 New option "set print symbol-loading".
9878 * NEWS: Mention it.
9879 * solib.c (solib_read_symbols): Only print symbol loading messages
9880 if requested.
9881 (solib_add): If symbol loading is in "brief" mode, notify user
9882 symbols are being loaded.
9883 (reload_shared_libraries_1): Ditto.
9884 * symfile.c (print_symbol_loading_off): New static global.
9885 (print_symbol_loading_brief): New static global.
9886 (print_symbol_loading_full): New static global.
9887 (print_symbol_loading_enums): New static global.
9888 (print_symbol_loading): New static global.
9889 (print_symbol_loading_p): New function.
9890 (symbol_file_add_with_addrs): Only print symbol loading messages
9891 if requested.
9892 (_initialize_symfile): Register "print symbol-loading" set/show
9893 command.
9894 * symfile.h (print_symbol_loading_p): Declare.
9895
9896 2014-03-30 Doug Evans <xdje42@gmail.com>
9897
9898 * infrun.c (set_last_target_status): New function.
9899 (handle_inferior_event): Call it.
9900
9901 2014-03-30 Doug Evans <xdje42@gmail.com>
9902
9903 * inferior.h (enum stop_kind): Improve comment.
9904
9905 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9906
9907 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9908 a reference, strip the reference layer before calling
9909 the lang_ops value_has_mutated callback.
9910
9911 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9912
9913 Remove some globals from our parser.
9914 * language.c (unk_lang_parser): Add "struct parser_state"
9915 argument.
9916 * language.h (struct language_defn) <la_parser>: Likewise.
9917 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9918 (initialize_expout): Add "struct parser_state" argument.
9919 Rewrite function to use the parser state.
9920 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9921 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9922 write_exp_elt_longcst, write_exp_elt_dblcst,
9923 write_exp_elt_decfloatcst, write_exp_elt_type,
9924 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9925 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9926 write_dollar_variable): Likewise.
9927 (parse_exp_in_context_1): Use parser state.
9928 (insert_type_address_space): Add "struct parser_state" argument.
9929 Use parser state.
9930 (increase_expout_size): New function.
9931 * parser-defs.h: Forward declare "struct language_defn" and
9932 "struct parser_state".
9933 (expout, expout_size, expout_ptr): Remove extern declarations.
9934 (parse_gdbarch, parse_language): Rewrite macro declarations to
9935 accept the parser state.
9936 (struct parser_state): New struct.
9937 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9938 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9939 write_exp_elt_decfloatcst, write_exp_elt_type,
9940 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9941 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9942 write_exp_msymbol, write_dollar_variable,
9943 mark_struct_expression, insert_type_address_space): Add "struct
9944 parser_state" argument.
9945 (increase_expout_size): New function.
9946 * utils.c (do_clear_parser_state): New function.
9947 (make_cleanup_clear_parser_state): Likewise.
9948 * utils.h (make_cleanup_clear_parser_state): New function
9949 prototype.
9950 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9951 Update calls to write_exp* in order to pass the parser state.
9952 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9953 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9954 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9955 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9956 * stap-probe.c (stap_parse_register_operand): Likewise.
9957 (stap_parse_single_operand): Likewise.
9958 (stap_parse_argument_1): Likewise.
9959 (stap_parse_argument): Use parser state.
9960 * stap-probe.h: Include "parser-defs.h".
9961 (struct stap_parse_info) <pstate>: New field.
9962 * c-exp.y (parse_type): Rewrite to use parser state.
9963 (yyparse): Redefine to c_parse_internal.
9964 (pstate): New global variable.
9965 (parse_number): Add "struct parser_state" argument.
9966 (write_destructor_name): Likewise.
9967 (type_exp): Update calls to write_exp* and similars in order to
9968 use parser state.
9969 (exp1, exp, variable, qualified_name, space_identifier,
9970 typename, typebase): Likewise.
9971 (write_destructor_name, parse_number, lex_one_token,
9972 classify_name, classify_inner_name, c_parse): Add "struct
9973 parser_state" argument. Update function to use parser state.
9974 * c-lang.h: Forward declare "struct parser_state".
9975 (c_parse): Add "struct parser_state" argument.
9976 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9977 (yyparse): Redefine macro to ada_parse_internal.
9978 (pstate): New variable.
9979 (write_int, write_object_renaming, write_var_or_type,
9980 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9981 type_int, type_long, type_long_long, type_float, type_double,
9982 type_long_double, type_char, type_boolean, type_system_address):
9983 Add "struct parser_state" argument.
9984 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9985 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9986 var_or_type, aggregate, aggregate_component_list,
9987 positional_list, others, component_group,
9988 component_associations): Update calls to write_exp* and similar
9989 functions in order to use parser state.
9990 (ada_parse, write_var_from_sym, write_int,
9991 write_exp_op_with_string, write_object_renaming,
9992 find_primitive_type, write_selectors, write_ambiguous_var,
9993 write_var_or_type, write_name_assoc, type_int, type_long,
9994 type_long_long, type_float, type_double, type_long_double,
9995 type_char, type_boolean, type_system_address): Add "struct
9996 parser_state" argument. Adjust function to use parser state.
9997 * ada-lang.c (parse): Likewise.
9998 * ada-lang.h: Forward declare "struct parser_state".
9999 (ada_parse): Add "struct parser_state" argument.
10000 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10001 calls to both functions.
10002 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10003 parser state.
10004 (yyparse): Redefine macro to f_parse_internal.
10005 (pstate): New variable.
10006 (parse_number): Add "struct parser_state" argument.
10007 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10008 and similars in order to use parser state.
10009 (parse_number): Adjust code to use parser state.
10010 (yylex): Likewise.
10011 (f_parse): New function.
10012 * f-lang.h: Forward declare "struct parser_state".
10013 (f_parse): Add "struct parser_state" argument.
10014 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10015 parser state.
10016 (yyparse): Redefine macro for java_parse_internal.
10017 (pstate): New variable.
10018 (push_expression_name, push_expression_name, insert_exp): Add
10019 "struct parser_state" argument.
10020 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10021 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10022 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10023 PostIncrementExpression, PostDecrementExpression,
10024 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10025 UnaryExpressionNotPlusMinus, CastExpression,
10026 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10027 RelationalExpression, EqualityExpression, AndExpression,
10028 ExclusiveOrExpression, InclusiveOrExpression,
10029 ConditionalAndExpression, ConditionalOrExpression,
10030 ConditionalExpression, Assignment, LeftHandSide): Update
10031 calls to write_exp* and similars in order to use parser state.
10032 (parse_number): Ajust code to use parser state.
10033 (yylex): Likewise.
10034 (java_parse): New function.
10035 (push_variable): Add "struct parser_state" argument. Adjust
10036 code to user parser state.
10037 (push_fieldnames, push_qualified_expression_name,
10038 push_expression_name, insert_exp): Likewise.
10039 * jv-lang.h: Forward declare "struct parser_state".
10040 (java_parse): Add "struct parser_state" argument.
10041 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10042 parser state.
10043 (yyparse): Redefine macro to m2_parse_internal.
10044 (pstate): New variable.
10045 (type_exp, exp, fblock, variable, type): Update calls to
10046 write_exp* and similars to use parser state.
10047 (yylex): Likewise.
10048 (m2_parse): New function.
10049 * m2-lang.h: Forward declare "struct parser_state".
10050 (m2_parse): Add "struct parser_state" argument.
10051 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10052 * objc-lang.h: Forward declare "struct parser_state".
10053 (end_msglist): Add "struct parser_state" argument.
10054 * p-exp.y (parse_type): Rewrite macro to use parser state.
10055 (yyparse): Redefine macro to pascal_parse_internal.
10056 (pstate): New variable.
10057 (parse_number): Add "struct parser_state" argument.
10058 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10059 write_exp* and similars in order to use parser state.
10060 (parse_number, yylex): Adjust code to use parser state.
10061 (pascal_parse): New function.
10062 * p-lang.h: Forward declare "struct parser_state".
10063 (pascal_parse): Add "struct parser_state" argument.
10064 * go-exp.y (parse_type): Rewrite macro to use parser state.
10065 (yyparse): Redefine macro to go_parse_internal.
10066 (pstate): New variable.
10067 (parse_number): Add "struct parser_state" argument.
10068 (type_exp, exp1, exp, variable, type): Update calls to
10069 write_exp* and similars in order to use parser state.
10070 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10071 to use parser state.
10072 (go_parse): Likewise.
10073 * go-lang.h: Forward declare "struct parser_state".
10074 (go_parse): Add "struct parser_state" argument.
10075
10076 2014-03-27 Doug Evans <dje@google.com>
10077
10078 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10079
10080 2014-03-27 Doug Evans <dje@google.com>
10081
10082 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10083 Remove argument abbrev_section. All callers updated.
10084
10085 2014-03-27 Doug Evans <dje@google.com>
10086
10087 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10088 addr_base, ranges_base.
10089
10090 2014-03-26 Keith Seitz <keiths@redhat.com>
10091
10092 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10093 types, not VAR_DOMAIN.
10094
10095 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10096
10097 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10098 "ra" registers.
10099 * features/nios2-linux.c: Regenerated.
10100 * features/nios2.c: Regenerated.
10101
10102 2014-03-25 Pedro Alves <palves@redhat.com>
10103
10104 * cli/cli-script.c (script_from_file): Force the interpreter to
10105 sync mode.
10106
10107 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10108
10109 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10110 small stack allocation.
10111
10112 2014-03-24 Tristan Gingold <gingold@adacore.com>
10113
10114 * darwin-nat.c (exc_server): Remove unused prototype.
10115 (darwin_dump_message): Correctly display data on x86_64.
10116 (darwin_encode_reply): Fix style.
10117 Add comments and fix indentation.
10118
10119 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10120
10121 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10122
10123 2014-03-22 Doug Evans <xdje42@gmail.com>
10124
10125 * infcmd.c: Whitespace fixes.
10126 (interrupt_command): Merge two function comments into one.
10127
10128 2014-03-22 Doug Evans <xdje42@gmail.com>
10129
10130 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10131 All uses updated.
10132
10133 2014-03-22 Yao Qi <yao@codesourcery.com>
10134
10135 * remote.c (target_read_live_memory): Remove.
10136 (memory_xfer_live_readonly_partial): Rename it to
10137 remote_xfer_live_readonly_partial. Remove argument 'object'.
10138 All callers updated. Call remote_read_bytes_1
10139 instead of target_read_live_memory.
10140 * tracepoint.c (set_traceframe_number): Remove.
10141 (make_cleanup_restore_traceframe_number): Likewise .
10142 * tracepoint.h (set_traceframe_number): Remove declaration.
10143 (make_cleanup_restore_traceframe_number): Likewise.
10144
10145 2014-03-22 Yao Qi <yao@codesourcery.com>
10146
10147 * remote.c (remote_read_bytes): Move code on reading from the
10148 remote stub to ...
10149 (remote_read_bytes_1): ... here. New function.
10150
10151 2014-03-22 Yao Qi <yao@codesourcery.com>
10152
10153 * ctf.c (ctf_xfer_partial): Check the return value of
10154 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10155 return TARGET_XFER_UNAVAILABLE.
10156 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10157 * target.c (target_read_live_memory): Move it to remote.c.
10158 (memory_xfer_live_readonly_partial): Likewise.
10159 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10160 * remote.c (target_read_live_memory): Moved from target.c.
10161 (memory_xfer_live_readonly_partial): Likewise.
10162 (remote_read_bytes): Factored out from
10163 memory_xfer_partial_1.
10164
10165 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10166
10167 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10168 NULL pointer.
10169
10170 2014-03-21 Pedro Alves <palves@redhat.com>
10171
10172 * infrun.c (normal_stop): Extend comment.
10173
10174 2014-03-21 Hui Zhu <hui@codesourcery.com>
10175 Pedro Alves <palves@redhat.com>
10176
10177 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10178 static buffer.
10179 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10180 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10181 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10182
10183 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10184
10185 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10186 `z' formatted output modifier.
10187
10188 2014-03-20 Tom Tromey <tromey@redhat.com>
10189 Sergio Durigan Junior <sergiodj@redhat.com>
10190
10191 * probe.c (parse_probes): Turn assert into an ordinary error.
10192 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10193 exceptions when parsing probes. Rearrange the code for clarity.
10194
10195 2014-03-20 Tom Tromey <tromey@redhat.com>
10196
10197 PR gdb/14135
10198 * top.c (execute_command): Only dispatch events if the command
10199 started the target.
10200
10201 2014-03-20 Tom Tromey <tromey@redhat.com>
10202
10203 PR cli/15718
10204 * infcall.c: Include event-top.h.
10205 (run_inferior_call): Call async_disable_stdin if needed.
10206
10207 2014-03-20 Pedro Alves <palves@redhat.com>
10208
10209 * infrun.c (prepare_to_proceed): Delete.
10210 (thread_still_needs_step_over): New function.
10211 (find_thread_needs_step_over): New function.
10212 (proceed): If the current thread needs a step-over, set its
10213 steping_over_breakpoint flag. Adjust to use
10214 find_thread_needs_step_over instead of prepare_to_proceed.
10215 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10216 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10217 breakpoint.
10218 (switch_back_to_stepped_thread): Step over breakpoints of all
10219 threads not the stepping thread, before switching back to the
10220 stepping thread.
10221
10222 2014-03-20 Pedro Alves <palves@redhat.com>
10223
10224 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10225 extern.
10226 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10227 * infrun.c (saved_singlestep_ptid)
10228 (stepping_past_singlestep_breakpoint): Delete.
10229 (resume): Remove stepping_past_singlestep_breakpoint handling.
10230 (proceed): Store the prev_pc of the stepping thread too.
10231 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10232 singlestep_pc.
10233 (enum infwait_states): Delete infwait_thread_hop_state.
10234 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10235 field.
10236 (handle_inferior_event): Adjust.
10237 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10238 handling and the thread-hop code. Before removing single-step
10239 breakpoints, check whether the thread hit a single-step breakpoint
10240 of another thread. If it did, the trap is not a random signal.
10241 (switch_back_to_stepped_thread): If the event thread hit a
10242 single-step breakpoint, unblock it before switching to the
10243 stepping thread. Handle the case of the stepped thread having
10244 advanced already.
10245 (keep_going): Handle the case of the current thread moving past a
10246 single-step breakpoint.
10247
10248 2014-03-20 Pedro Alves <palves@redhat.com>
10249
10250 PR breakpoints/7143
10251 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10252 are being stepped over.
10253 (breakpoint_address_match): Make extern.
10254 * breakpoint.h (breakpoint_address_match): New declaration.
10255 * inferior.h (stepping_past_instruction_at): New declaration.
10256 * infrun.c (struct step_over_info): New type.
10257 (step_over_info): New global.
10258 (set_step_over_info, clear_step_over_info)
10259 (stepping_past_instruction_at): New functions.
10260 (handle_inferior_event): Clear the step-over info when
10261 trap_expected is cleared.
10262 (resume): Remove now stale comment.
10263 (clear_proceed_status): Clear step-over info.
10264 (proceed): Adjust step-over handling to set or clear the step-over
10265 info instead of removing all breakpoints.
10266 (handle_signal_stop): When setting up a thread-hop, don't remove
10267 breakpoints here.
10268 (stop_stepping): Clear step-over info.
10269 (keep_going): Adjust step-over handling to set or clear step-over
10270 info and then always inserting breakpoints, instead of removing
10271 all breakpoints when stepping over one.
10272
10273 2014-03-20 Pedro Alves <palves@redhat.com>
10274
10275 * infrun.c (previous_inferior_ptid): Adjust comment.
10276 (deferred_step_ptid): Delete.
10277 (infrun_thread_ptid_changed, prepare_to_proceed)
10278 (init_wait_for_inferior): Adjust.
10279 (handle_signal_stop): Delete deferred_step_ptid handling.
10280
10281 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10282
10283 PR gdb/15358
10284 * defs.h (sync_quit_force_run): New declaration.
10285 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10286 * event-top.c (async_sigterm_handler): New declaration.
10287 (async_sigterm_token): New variable.
10288 (async_init_signals): Create also async_sigterm_token.
10289 (async_sigterm_handler): New function.
10290 (sync_quit_force_run): New variable.
10291 (handle_sigterm): Replace quit_force call by other calls.
10292 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10293
10294 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10295
10296 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10297 offset into SPE pseudo registers.
10298
10299 2014-03-18 Pedro Alves <palves@redhat.com>
10300
10301 PR gdb/13860
10302 * inferior.h (print_stop_event): Declare.
10303 * infrun.c (print_stop_event): New, factored out from ...
10304 (normal_stop): ... this.
10305 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10306 of bpstat_print/print_stack_frame.
10307
10308 2014-03-17 Tom Tromey <tromey@redhat.com>
10309
10310 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10311
10312 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10313
10314 * ada-lang.c (decode_constrained_packed_array): Perform a
10315 minimal coercion for reference with coerce_ref instead of
10316 ada_coerce_ref.
10317
10318 2014-03-17 Tristan Gingold <gingold@adacore.com>
10319
10320 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10321 (darwin_solib_create_inferior_hook): Emit a warning if version
10322 is unhandled.
10323
10324 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10325
10326 * python/py-value.c (get_field_flag): Cast flag_name argument to
10327 PyObject_GetAttrString to support Python 2.4.
10328
10329 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10330
10331 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10332 (Global Maintainers): Remove Jan Kratochvil.
10333
10334 2014-03-14 Pedro Alves <palves@redhat.com>
10335
10336 * inferior.h (terminal_ours_for_output): Rename to ...
10337 (child_terminal_ours_for_output): ... this.
10338 (terminal_save_ours): Rename to ...
10339 (child_terminal_save_ours): ... this.
10340 (terminal_ours): Rename to ...
10341 (child_terminal_ours): ... this.
10342 (terminal_inferior): Rename to ...
10343 (child_terminal_inferior): ... this.
10344 (terminal_init_inferior): Rename to ...
10345 (child_terminal_init_inferior): ... this.
10346 (terminal_init_inferior_with_pgrp): Rename to ...
10347 (child_terminal_init_inferior_with_pgrp): ... this.
10348 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10349 (child_terminal_init_with_pgrp): ... this.
10350 (terminal_save_ours): Rename to ...
10351 (child_terminal_save_ours): ... this.
10352 (terminal_init_inferior): Rename to ...
10353 (child_terminal_init): ... this. Adjust.
10354 (terminal_inferior): Rename to ...
10355 (child_terminal_inferior): ... this.
10356 (terminal_ours_for_output): Rename to ...
10357 (child_terminal_ours_for_output): ... this. Adjust.
10358 (terminal_ours): Rename to ...
10359 (child_terminal_ours): ... this.
10360 (terminal_ours_1): Rename to ...
10361 (child_terminal_ours_1): ... this. Adjust.
10362 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10363 * windows-nat.c (do_initial_windows_stuff): Adjust.
10364 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10365 (gnu_terminal_init): ... this. Adjust.
10366 (gnu_target): Adjust.
10367 * inf-child.c (inf_child_target): Adjust.
10368
10369 2014-03-13 Doug Evans <xdje42@gmail.com>
10370
10371 PR guile/16612
10372 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10373 new eq?-hashtab.
10374
10375 2014-03-13 Doug Evans <xdje42@gmail.com>
10376
10377 * value.c (record_latest_value): Call release_value_or_incref
10378 instead of release_value.
10379
10380 2014-03-13 Pedro Alves <palves@redhat.com>
10381
10382 * procfs.c (procfs_target): Don't override to_shortname,
10383 to_longname or to_doc.
10384
10385 2014-03-13 Pedro Alves <palves@redhat.com>
10386
10387 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10388 Unix in user visible strings.
10389
10390 2014-03-12 Stan Shebs <stan@codesourcery.com>
10391
10392 * gdbtypes.h: Annotate comments for Doxygen, add a page
10393 block comment with some general info.
10394
10395 2014-03-12 Pedro Alves <palves@redhat.com>
10396
10397 * infcmd.c (prepare_execution_command): New function, factored out
10398 from several execution commands.
10399 (run_command_1, continue_command, step_1, jump_command)
10400 (signal_command, until_command, advance_command, finish_command)
10401 (attach_command): Use prepare_execution_command.
10402
10403 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10404
10405 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10406 (MAX_BPTS): Define.
10407 (MAX_WPTS): Define.
10408 (struct arm_linux_thread_points): Removed.
10409 (struct arm_linux_process_info): New.
10410 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10411 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10412 (arm_linux_find_breakpoints_by_tid): Removed.
10413 (struct arch_lwp_info): New.
10414 (arm_linux_find_process_pid): New functions.
10415 (arm_linux_add_process): New functions.
10416 (arm_linux_process_info_get): New functions.
10417 (arm_linux_forget_process): New function.
10418 (arm_linux_get_debug_reg_state): New function.
10419 (struct update_registers_data): New.
10420 (update_registers_callback): New function.
10421 (arm_linux_insert_hw_breakpoint1): Updated.
10422 (arm_linux_remove_hw_breakpoint1): Updated.
10423 (arm_linux_insert_hw_breakpoint): Updated.
10424 (arm_linux_remove_hw_breakpoint): Updated.
10425 (arm_linux_insert_watchpoint): Updated.
10426 (arm_linux_remove_watchpoint): Updated.
10427 (arm_linux_new_thread): Updated.
10428 (arm_linux_prepare_to_resume): New function.
10429 (arm_linux_new_fork): New function.
10430 (_initialize_arm_linux_nat): Updated.
10431
10432 2014-03-12 Pedro Alves <palves@redhat.com>
10433
10434 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10435
10436 2014-03-12 Tom Tromey <tromey@redhat.com>
10437
10438 * inf-child.c (return_zero): New function.
10439 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10440 * aix-thread.c (aix_thread_inferior_created): New function.
10441 (aix_thread_attach): Remove.
10442 (init_aix_thread_ops): Don't set to_attach.
10443 (_initialize_aix_thread): Register inferior_created observer.
10444 * corelow.c (init_core_ops): Don't set to_attach or
10445 to_create_inferior.
10446 * exec.c (init_exec_ops): Don't set to_attach or
10447 to_create_inferior.
10448 * infcmd.c (run_command_1): Use find_run_target. Make direct
10449 target calls.
10450 (attach_command): Use find_attach_target. Make direct target
10451 calls.
10452 * record-btrace.c (init_record_btrace_ops): Don't set
10453 to_create_inferior.
10454 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10455 Remove.
10456 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10457 set to_create_inferior.
10458 * target.c (complete_target_initialization): Add assertion.
10459 (target_create_inferior): Remove.
10460 (find_default_attach, find_default_create_inferior): Remove.
10461 (find_attach_target, find_run_target): New functions.
10462 (find_default_is_async_p, find_default_can_async_p)
10463 (target_supports_non_stop, target_attach): Remove.
10464 (init_dummy_target): Don't set to_create_inferior or
10465 to_supports_non_stop.
10466 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10467 TARGET_DEFAULT_FUNC.
10468 <to_create_inferior>: Add comment.
10469 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10470 TARGET_DEFAULT_RETURN.
10471 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10472 (find_attach_target, find_run_target): Declare.
10473 (target_create_inferior): Remove.
10474 (target_has_execution_1): Update comment.
10475 (target_supports_non_stop): Remove.
10476 * target-delegates.c: Rebuild.
10477
10478 2014-03-12 Pedro Alves <palves@redhat.com>
10479
10480 * inf-child.h: Update comment to not mention Unix.
10481
10482 2014-03-12 Pedro Alves <palves@redhat.com>
10483
10484 * inf-child.c: Update top comment to not mention Unix. Add
10485 generic comment describing how this target is meant to be used.
10486 (inf_child_post_attach, inf_child_post_startup_inferior)
10487 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10488 Unix in comment.
10489
10490 2014-03-12 Pedro Alves <palves@redhat.com>
10491
10492 * nto-procfs.c: Include inf-child.h.
10493 (procfs_ops): Delete global.
10494 (procfs_can_run): Delete method.
10495 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10496 target pointer instead of referencing procfs_ops.
10497 (procfs_prepare_to_store): Delete.
10498 (init_procfs_ops): Delete function.
10499 (procfs_target): New function, based on init_procfs_ops, but
10500 inherit inf_child_target.
10501 (_initialize_procfs): Use procfs_target.
10502
10503 2014-03-12 Pedro Alves <palves@redhat.com>
10504
10505 * windows-nat.c: Include inf-child.h.
10506 (windows_ops): Delete global.
10507 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10508 methods.
10509 (init_windows_ops): Delete function.
10510 (windows_target): New function, based on init_windows_ops, but
10511 inherit inf_child_target.
10512 (_initialize_windows_nat): Use windows_target. Install x86
10513 specific target methods here.
10514
10515 2014-03-10 Doug Evans <xdje42@gmail.com>
10516
10517 * guile/guile.c (call_initialize_gdb_module): New function.
10518 (initialize_guile): Replace call to scm_init_guile with call to
10519 scm_with_guile.
10520
10521 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10522
10523 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10524 in call to TYPE_CODE macro.
10525
10526 2014-03-10 Jerome Guitton <guitton@adacore.com>
10527
10528 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10529 Resolve tagged types to full view.
10530
10531 2014-03-10 Hui Zhu <hui@codesourcery.com>
10532
10533 * target.h (target_insert_breakpoint): Remove "hardware" from its
10534 comments.
10535
10536 2014-03-07 Doug Evans <dje@google.com>
10537
10538 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10539
10540 2014-03-07 Doug Evans <dje@google.com>
10541
10542 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10543 Remove unused local comp_dir_attr. Assert exactly one of
10544 stub_comp_unit_die, stub_comp_dir is non-NULL.
10545
10546 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10547
10548 * target.h (complete_target_initialization, add_target):
10549 Add comment.
10550
10551 2014-03-07 Pedro Alves <palves@redhat.com>
10552
10553 * go32-nat.c: Include inf-child.h.
10554 (go32_ops): Delete global.
10555 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10556 Delete methods.
10557 (go32_create_inferior): Push the passed in target pointer instead
10558 of referencing go32_ops.
10559 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10560 (go32_target): New function, based on init_go32_ops, but inherit
10561 inf_child_target.
10562 (_initialize_go32_nat): Use go32_target. Move parts of
10563 init_go32_ops here.
10564
10565 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10566
10567 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10568 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10569 SYMBOL_VALUE_ADDRESS.
10570 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10571
10572 2014-03-06 Yao Qi <yao@codesourcery.com>
10573
10574 * breakpoint.c (get_tracepoint_by_number): Remove argument
10575 optional_p. All callers updated. Adjust comments. Update
10576 output message.
10577 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10578
10579 2014-03-06 Yao Qi <yao@codesourcery.com>
10580
10581 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10582 early if get_number returns zero. Use 'p' instead of 'args'.
10583
10584 2014-03-06 Yao Qi <yao@codesourcery.com>
10585
10586 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10587 message.
10588
10589 2014-03-06 Yao Qi <yao@codesourcery.com>
10590
10591 PR breakpoints/16508
10592 * tracepoint.c (check_trace_running): New function.
10593 (trace_find_command): Move code to check_trace_running and
10594 call check_trace_running.
10595 (trace_find_pc_command): Likewise.
10596 (trace_find_tracepoint_command): Likewise.
10597 (trace_find_line_command): Likewise.
10598 (trace_find_range_command): Likewise.
10599 * tracepoint.h (check_trace_running): Likewise.
10600 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10601
10602 2014-03-06 Yao Qi <yao@codesourcery.com>
10603
10604 * target.h (struct target_ops) <to_traceframe_info>: Use
10605 TARGET_DEFAULT_NORETURN (tcomplain ()).
10606 * target-delegates.c: Regenerated.
10607
10608 2014-03-05 Pedro Alves <palves@redhat.com>
10609
10610 PR gdb/16575
10611 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10612 void. Update comment.
10613 (dcache_xfer_memory): Delete.
10614 (dcache_read_memory_partial): New, based on the read bits of
10615 dcache_xfer_memory.
10616 (dcache_update): Add status parameter. Use ULONGEST for len, and
10617 adjust. Discard cache lines if the reason for the update was
10618 error.
10619 * dcache.h (dcache_xfer_memory): Delete declaration.
10620 (dcache_read_memory_partial): New declaration.
10621 (dcache_update): Update prototype.
10622 * target.c (raw_memory_xfer_partial): Update the dcache here.
10623 (memory_xfer_partial_1): Don't handle dcache writes here.
10624
10625 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10626
10627 * remote-sim.c (gdbsim_load): Add const to prog.
10628
10629 2014-03-03 Tom Tromey <tromey@redhat.com>
10630
10631 * elfread.c (probe_key): Change to bfd_data.
10632 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10633 now per-BFD, not per-objfile.
10634 * stap-probe.c (stap_probe_destroy): Update comment.
10635 (handle_stap_probe): Allocate on the per-BFD obstack.
10636
10637 2014-03-03 Tom Tromey <tromey@redhat.com>
10638
10639 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10640 * breakpoint.c (create_longjmp_master_breakpoint): Use
10641 get_probe_address.
10642 (add_location_to_breakpoint, bkpt_probe_insert_location)
10643 (bkpt_probe_remove_location): Update.
10644 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10645 * elfread.c (elf_symfile_relocate_probe): Remove.
10646 (elf_probe_fns): Update.
10647 (insert_exception_resume_breakpoint): Change type of "probe"
10648 parameter to bound_probe.
10649 (check_exception_resume): Update.
10650 * objfiles.c (objfile_relocate1): Don't relocate probes.
10651 * probe.c (bound_probe_s): New typedef.
10652 (parse_probes): Use get_probe_address. Set sal's objfile.
10653 (find_probe_by_pc): Return a bound_probe.
10654 (collect_probes): Return a VEC(bound_probe_s).
10655 (compare_probes): Update.
10656 (gen_ui_out_table_header_info): Change type of "probes"
10657 parameter. Update.
10658 (info_probes_for_ops): Update.
10659 (get_probe_address): New function.
10660 (probe_safe_evaluate_at_pc): Update.
10661 * probe.h (struct probe_ops) <get_probe_address>: New field.
10662 <set_semaphore, clear_semaphore>: Add objfile parameter.
10663 (struct probe) <objfile>: Remove field.
10664 <arch>: New field.
10665 <address>: Update comment.
10666 (struct bound_probe): New.
10667 (find_probe_by_pc): Return a bound_probe.
10668 (get_probe_address): Declare.
10669 * solib-svr4.c (struct probe_and_action) <address>: New field.
10670 (hash_probe_and_action, equal_probe_and_action): Update.
10671 (register_solib_event_probe): Add address parameter.
10672 (solib_event_probe_at): Update.
10673 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10674 get_probe_address.
10675 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10676 (stap_get_probe_address): New function.
10677 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10678 (compile_probe_arg): Update.
10679 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10680 address.
10681 (handle_stap_probe): Don't relocate the probe.
10682 (stap_relocate): Remove.
10683 (stap_gen_info_probes_table_values): Update.
10684 (stap_probe_ops): Remove stap_relocate.
10685 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10686 (debug_sym_probe_fns): Update.
10687 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10688 * symtab.c (init_sal): Use memset.
10689 * symtab.h (struct symtab_and_line) <objfile>: New field.
10690 * tracepoint.c (start_tracing, stop_tracing): Update.
10691
10692 2014-03-03 Tom Tromey <tromey@redhat.com>
10693
10694 * probe.h (parse_probes, find_probe_by_pc)
10695 (find_probes_in_objfile): Fix comments.
10696
10697 2014-03-02 Doug Evans <xdje42@gmail.com>
10698
10699 * infrun.c (handle_signal_stop): Replace test for
10700 TARGET_WAITKIND_STOPPED with an assert.
10701
10702 2014-03-02 Doug Evans <xdje42@gmail.com>
10703
10704 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10705
10706 2014-03-02 Doug Evans <xdje42@gmail.com>
10707
10708 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10709
10710 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10711
10712 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10713
10714 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10715
10716 * i386obsd-nat.c: Include "obsd-nat.h".
10717 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10718 add_target.
10719 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10720
10721 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10722
10723 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10724
10725 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10726
10727 * mips64obsd-nat.c: Include "obsd-nath".
10728 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10729 add_target
10730 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10731
10732 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10733
10734 * amd64obsd-nat.c: Include "obsd-nat,h.
10735 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10736 add_target.
10737 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10738
10739 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10740
10741 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10742 (find_overload_match): Update call to find_oload_champ.
10743 (find_oload_champ_namespace_loop): Likewise
10744
10745 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10746
10747 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10748
10749 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10750 * config/sparc/obsd64.mh: New file.
10751 * sparc64obsd-nat.c: New file.
10752
10753 * obsd-nat.h: New file.
10754 * obsd-nat.c: New file.
10755 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10756 (ALLDEPFILES): Add obsd-nat.c.
10757
10758 2014-02-28 Tom Tromey <tromey@redhat.com>
10759
10760 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10761 * cli-out.h (cli_ui_out_impl): Now const.
10762 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10763 * ui-out.c (struct ui_out) <impl>: Now const.
10764 (default_ui_out_impl): Now const.
10765 (ui_out_new): Make 'impl' parameter const.
10766 * ui-out.h (ui_out_new): Update.
10767
10768 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10769
10770 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10771
10772 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10773
10774 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10775
10776 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10777
10778 Additional PR 8882 fix.
10779 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10780
10781 2014-02-27 Pedro Alves <palves@redhat.com>
10782
10783 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10784 isn't set.
10785
10786 2014-02-27 Pedro Alves <palves@redhat.com>
10787
10788 PR 12702
10789 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10790 * nat/linux-waitpid.c: Include string.h.
10791 (status_to_str): Moved here and made extern.
10792 * nat/linux-waitpid.h (status_to_str): New declaration.
10793
10794 2014-02-27 Hui Zhu <hui@codesourcery.com>
10795
10796 PR 12702
10797 * infrun.c (ptid_match): Move ...
10798 * common/ptid.c (ptid_match): ... here.
10799 * inferior.h (ptid_match): Move ...
10800 * common/ptid.h (ptid_match): ... here.
10801
10802 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10803
10804 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10805 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10806 gdb_target_obs.
10807
10808 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10809
10810 * obsd-tdep.c (obsd_auxv_parse): New function.
10811 (obsd_init_abi): Set auxv_parse.
10812
10813 * gdbarch.sh (auxv_parse): New.
10814 * gdbarch.h: Regenerated.
10815 * gdbarch.c: Regenerated.
10816 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10817
10818 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10819
10820 * guile/scm-value.c (gdbscm_history_append_x): New function.
10821 (value_functions): Add it.
10822
10823 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10824
10825 * dwarf2read.c (attr_value_as_address): New function.
10826 (dwarf2_find_base_address, read_call_site_scope): Use
10827 attr_value_as_address in place of DW_ADDR.
10828 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10829 the low and high addresses. Slight rework of the handling
10830 of the high pc being a constant form, and limit it to
10831 DWARF verson 4 or higher.
10832 (dwarf2_record_block_ranges): Likewise.
10833 (read_partial_die): Likewise.
10834 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10835
10836 2014-02-26 Tom Tromey <tromey@redhat.com>
10837
10838 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10839
10840 2014-02-26 Tom Tromey <tromey@redhat.com>
10841
10842 * elfread.c (elf_read_minimal_symbols): Return early if
10843 minimal symbols have already been read. Add "ei" parameter.
10844 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10845 * minsyms.c (prim_record_minimal_symbol_full): Update.
10846 * objfiles.h (struct objstats) <n_minsyms>: Move...
10847 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10848 * symmisc.c (print_objfile_statistics): Update.
10849
10850 2014-02-26 Tom Tromey <tromey@redhat.com>
10851
10852 * elfread.c (elf_read_minimal_symbols): New function, from
10853 elf_symfile_read.
10854 (elf_symfile_read): Call it.
10855
10856 2014-02-26 Tom Tromey <tromey@redhat.com>
10857
10858 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10859 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10860 (lookup_minimal_symbol_solib_trampoline)
10861 (lookup_minimal_symbol_by_pc_section_1)
10862 (lookup_minimal_symbol_and_objfile): Update.
10863 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10864 Don't allocate a minimal symbol if minsyms have already been read.
10865 (build_minimal_symbol_hash_tables): Update.
10866 (install_minimal_symbols): Do nothing if minsyms already read.
10867 Use the per-BFD obstack.
10868 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10869 * objfiles.c (allocate_objfile): Call
10870 terminate_minimal_symbol_table later.
10871 (have_minimal_symbols): Update.
10872 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10873 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10874 Move from struct objfile.
10875 <minsyms_read>: New field.
10876 (struct objfile) <msymbols, minimal_symbol_count,
10877 msymbol_hash, msymbol_demangled_hash>: Move.
10878 (ALL_OBJFILE_MSYMBOLS): Update.
10879 * symfile.c (read_symbols): Set minsyms_read.
10880 (reread_symbols): Update.
10881 * symmisc.c (dump_objfile, dump_msymbols): Update.
10882
10883 2014-02-26 Tom Tromey <tromey@redhat.com>
10884
10885 * minsyms.c (msymbols_sort): Remove.
10886 * minsyms.h (msymbols_sort): Remove.
10887 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10888 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10889 * elfread.c (elf_symtab_read): Don't add section offsets.
10890 * xcoffread.c (record_minimal_symbol): Don't add section offset
10891 to minimal symbol address.
10892 * somread.c (text_offset, data_offset): Remove.
10893 (som_symtab_read): Don't add section offsets to minimal symbol
10894 addresses.
10895 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10896 Don't add section offsets to minimal symbols.
10897 * coffread.c (coff_symtab_read): Don't add section offsets
10898 to minimal symbol addresses.
10899 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10900 to minimal symbol addresses.
10901 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10902 section offset to minimal symbol addresses.
10903 * mdebugread.c (parse_partial_symbols): Don't add section
10904 offset to minimal symbol addresses.
10905 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10906 offset to minimal symbol addresses.
10907
10908 2014-02-26 Tom Tromey <tromey@redhat.com>
10909
10910 * ada-lang.c (ada_main_name): Update.
10911 (ada_add_standard_exceptions): Update.
10912 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10913 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10914 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10915 * auxv.c (ld_so_xfer_auxv): Update.
10916 * avr-tdep.c (avr_scan_prologue): Update.
10917 * ax-gdb.c (gen_var_ref): Update.
10918 * blockframe.c (get_pc_function_start)
10919 (find_pc_partial_function_gnu_ifunc): Update.
10920 * breakpoint.c (create_overlay_event_breakpoint)
10921 (create_longjmp_master_breakpoint)
10922 (create_std_terminate_master_breakpoint)
10923 (create_exception_master_breakpoint): Update.
10924 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10925 * c-valprint.c (c_val_print): Update.
10926 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10927 * common/agent.c (agent_look_up_symbols): Update.
10928 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10929 * dwarf2loc.c (call_site_to_target_addr): Update.
10930 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10931 * elfread.c (elf_gnu_ifunc_record_cache)
10932 (elf_gnu_ifunc_resolve_by_got): Update.
10933 * findvar.c (default_read_var_value): Update.
10934 * frame.c (inside_main_func): Update.
10935 * frv-tdep.c (frv_frame_this_id): Update.
10936 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10937 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10938 Update.
10939 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10940 (hppa_hpux_find_dummy_bpaddr): Update.
10941 * hppa-tdep.c (hppa_symbol_address): Update.
10942 * infcmd.c (until_next_command): Update.
10943 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10944 Update.
10945 * linespec.c (minsym_found, add_minsym): Update.
10946 * linux-nat.c (get_signo): Update.
10947 * linux-thread-db.c (inferior_has_bug): Update.
10948 * m32c-tdep.c (m32c_return_value)
10949 (m32c_m16c_address_to_pointer): Update.
10950 * m32r-tdep.c (m32r_frame_this_id): Update.
10951 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10952 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10953 * maint.c (maintenance_translate_address): Update.
10954 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10955 (frob_address): New function.
10956 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10957 frob_address. Rename parameter to "pc_in".
10958 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10959 addresses.
10960 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10961 Update.
10962 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10963 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10964 * objc-lang.c (find_objc_msgsend): Update.
10965 * objfiles.c (objfile_relocate1): Update.
10966 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10967 * p-valprint.c (pascal_val_print): Update.
10968 * parse.c (write_exp_msymbol): Update.
10969 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10970 (ppc_elfv2_skip_entrypoint): Update.
10971 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10972 * printcmd.c (build_address_symbolic, msym_info)
10973 (address_info): Update.
10974 * proc-service.c (ps_pglobal_lookup): Update.
10975 * psymtab.c (find_pc_sect_psymtab_closer)
10976 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10977 Change msymbol parameter to bound_minimal_symbol.
10978 * ravenscar-thread.c (get_running_thread_id): Update.
10979 * remote.c (remote_check_symbols): Update.
10980 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10981 address.
10982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10983 * solib-dsbt.c (lm_base): Update.
10984 * solib-frv.c (lm_base, main_got): Update.
10985 * solib-irix.c (locate_base): Update.
10986 * solib-som.c (som_solib_create_inferior_hook)
10987 (link_map_start): Update.
10988 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10989 * solib-svr4.c (elf_locate_base, enable_break): Update.
10990 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10991 (flush_ea_cache): Update.
10992 * stabsread.c (define_symbol, scan_file_globals): Update.
10993 * stack.c (find_frame_funname): Update.
10994 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10995 (debug_qf_find_pc_sect_symtab): Update.
10996 * symfile.c (simple_read_overlay_table)
10997 (simple_overlay_update): Update.
10998 * symfile.h (struct quick_symbol_functions)
10999 <find_pc_sect_symtab>: Change type of msymbol to
11000 bound_minimal_symbol.
11001 * symmisc.c (dump_msymbols): Update.
11002 * symtab.c (find_pc_sect_symtab_via_partial)
11003 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11004 (search_symbols, print_msymbol_info): Update.
11005 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11006 (MSYMBOL_VALUE_ADDRESS): Redefine.
11007 (BMSYMBOL_VALUE_ADDRESS): New macro.
11008 * tracepoint.c (scope_info): Update.
11009 * tui/tui-disasm.c (tui_find_disassembly_address)
11010 (tui_get_begin_asm_address): Update.
11011 * valops.c (find_function_in_inferior): Update.
11012 * value.c (value_static_field, value_fn_field): Update.
11013
11014 2014-02-26 Tom Tromey <tromey@redhat.com>
11015
11016 * ada-lang.c (ada_update_initial_language): Update.
11017 (ada_main_name, ada_has_this_exception_support): Update.
11018 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11019 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11020 * arm-tdep.c (arm_skip_stub): Update.
11021 * auxv.c (ld_so_xfer_auxv): Update.
11022 * avr-tdep.c (avr_scan_prologue): Update.
11023 * ax-gdb.c (gen_var_ref): Update.
11024 * breakpoint.c (struct breakpoint_objfile_data)
11025 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11026 type to bound_minimal_symbol.
11027 (create_overlay_event_breakpoint)
11028 (create_longjmp_master_breakpoint)
11029 (create_std_terminate_master_breakpoint)
11030 (create_exception_master_breakpoint): Update.
11031 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11032 * c-exp.y (classify_name): Update.
11033 * coffread.c (coff_symfile_read): Update.
11034 * common/agent.c (agent_look_up_symbols): Update.
11035 * d-lang.c (d_main_name): Update.
11036 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11037 * dec-thread.c (enable_dec_thread): Update.
11038 * dwarf2loc.c (call_site_to_target_addr): Update.
11039 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11040 * eval.c (evaluate_subexp_standard): Update.
11041 * findvar.c (struct minsym_lookup_data) <result>: Change type
11042 to bound_minimal_symbol.
11043 <objfile>: Remove.
11044 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11045 * frame.c (inside_main_func): Update.
11046 * frv-tdep.c (frv_frame_this_id): Update.
11047 * gcore.c (call_target_sbrk): Update.
11048 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11049 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11050 Update.
11051 * go-lang.c (go_main_name): Update.
11052 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11053 (hppa_hpux_find_import_stub_for_addr): Update.
11054 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11055 Update. Change return type.
11056 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11057 type.
11058 * jit.c (jit_breakpoint_re_set_internal): Update.
11059 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11060 Update.
11061 * linux-nat.c (get_signo): Update.
11062 * linux-thread-db.c (inferior_has_bug): Update
11063 * m32c-tdep.c (m32c_return_value)
11064 (m32c_m16c_address_to_pointer): Update.
11065 * m32r-tdep.c (m32r_frame_this_id): Update.
11066 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11067 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11068 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11069 lookup_minimal_symbol. Change return type.
11070 (lookup_minimal_symbol): Remove.
11071 (lookup_bound_minimal_symbol): Update.
11072 (lookup_minimal_symbol_text): Change return type.
11073 (lookup_minimal_symbol_solib_trampoline): Change return type.
11074 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11075 (lookup_minimal_symbol_solib_trampoline): Change return type.
11076 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11077 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11078 (value_nsstring, find_imps): Update.
11079 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11080 * p-lang.c (pascal_main_name): Update.
11081 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11082 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11083 * proc-service.c (ps_pglobal_lookup): Update.
11084 * ravenscar-thread.c (get_running_thread_msymbol): Change
11085 return type.
11086 (has_ravenscar_runtime, get_running_thread_id): Update.
11087 * remote.c (remote_check_symbols): Update.
11088 * sol-thread.c (ps_pglobal_lookup): Update.
11089 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11090 * solib-dsbt.c (lm_base): Update.
11091 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11092 Update.
11093 * solib-irix.c (locate_base): Update.
11094 * solib-som.c (som_solib_create_inferior_hook)
11095 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11096 Update.
11097 * solib-spu.c (spu_enable_break): Update.
11098 * solib-svr4.c (elf_locate_base, enable_break): Update.
11099 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11100 (flush_ea_cache): Update.
11101 * stabsread.c (define_symbol): Update.
11102 * symfile.c (simple_read_overlay_table): Update.
11103 * symtab.c (find_pc_sect_line): Update.
11104 * tracepoint.c (scope_info): Update.
11105 * tui-disasm.c (tui_get_begin_asm_address): Update.
11106 * value.c (value_static_field): Update.
11107
11108 2014-02-26 Tom Tromey <tromey@redhat.com>
11109
11110 * minsyms.c (prim_record_minimal_symbol_full): Use
11111 SET_MSYMBOL_VALUE_ADDRESS.
11112 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11113 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11114 SET_MSYMBOL_VALUE_ADDRESS.
11115 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11116 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11117
11118 2014-02-26 Tom Tromey <tromey@redhat.com>
11119
11120 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11121 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11122 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11123 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11124 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11125 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11126 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11127 * ada-lang.c (ada_main_name): Update.
11128 (ada_lookup_simple_minsym): Update.
11129 (ada_make_symbol_completion_list): Update.
11130 (ada_add_standard_exceptions): Update.
11131 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11132 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11133 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11134 * arm-tdep.c (skip_prologue_function): Update.
11135 (arm_skip_stack_protector, arm_skip_stub): Update.
11136 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11137 (arm_wince_skip_main_prologue): Update.
11138 * auxv.c (ld_so_xfer_auxv): Update.
11139 * avr-tdep.c (avr_scan_prologue): Update.
11140 * ax-gdb.c (gen_var_ref): Update.
11141 * block.c (call_site_for_pc): Update.
11142 * blockframe.c (get_pc_function_start): Update.
11143 (find_pc_partial_function_gnu_ifunc): Update.
11144 * breakpoint.c (create_overlay_event_breakpoint): Update.
11145 (create_longjmp_master_breakpoint): Update.
11146 (create_std_terminate_master_breakpoint): Update.
11147 (create_exception_master_breakpoint): Update.
11148 (resolve_sal_pc): Update.
11149 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11150 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11151 Update.
11152 * c-valprint.c (c_val_print): Update.
11153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11154 * coffread.c (coff_symfile_read): Update.
11155 * common/agent.c (agent_look_up_symbols): Update.
11156 * dbxread.c (find_stab_function_addr): Update.
11157 (end_psymtab): Update.
11158 * dwarf2loc.c (call_site_to_target_addr): Update.
11159 (func_verify_no_selftailcall): Update.
11160 (tailcall_dump): Update.
11161 (call_site_find_chain_1): Update.
11162 (dwarf_expr_reg_to_entry_parameter): Update.
11163 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11164 (elf_gnu_ifunc_resolve_by_got): Update.
11165 * f-valprint.c (info_common_command): Update.
11166 * findvar.c (read_var_value): Update.
11167 * frame.c (get_prev_frame_1): Update.
11168 (inside_main_func): Update.
11169 * frv-tdep.c (frv_skip_main_prologue): Update.
11170 (frv_frame_this_id): Update.
11171 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11172 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11173 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11174 (gnuv3_skip_trampoline): Update.
11175 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11176 (hppa64_hpux_in_solib_call_trampoline): Update.
11177 (hppa_hpux_skip_trampoline_code): Update.
11178 (hppa64_hpux_search_dummy_call_sequence): Update.
11179 (hppa_hpux_find_import_stub_for_addr): Update.
11180 (hppa_hpux_find_dummy_bpaddr): Update.
11181 * hppa-tdep.c (hppa_symbol_address)
11182 (hppa_lookup_stub_minimal_symbol): Update.
11183 * i386-tdep.c (i386_skip_main_prologue): Update.
11184 (i386_pe_skip_trampoline_code): Update.
11185 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11186 * infcall.c (get_function_name): Update.
11187 * infcmd.c (until_next_command): Update.
11188 * jit.c (jit_breakpoint_re_set_internal): Update.
11189 (jit_inferior_init): Update.
11190 * linespec.c (minsym_found): Update.
11191 (add_minsym): Update.
11192 * linux-fork.c (info_checkpoints_command): Update.
11193 * linux-nat.c (get_signo): Update.
11194 * linux-thread-db.c (inferior_has_bug): Update.
11195 * m32c-tdep.c (m32c_return_value): Update.
11196 (m32c_m16c_address_to_pointer): Update.
11197 (m32c_m16c_pointer_to_address): Update.
11198 * m32r-tdep.c (m32r_frame_this_id): Update.
11199 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11200 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11201 * maint.c (maintenance_translate_address): Update.
11202 * minsyms.c (add_minsym_to_hash_table): Update.
11203 (add_minsym_to_demangled_hash_table): Update.
11204 (msymbol_objfile): Update.
11205 (lookup_minimal_symbol): Update.
11206 (iterate_over_minimal_symbols): Update.
11207 (lookup_minimal_symbol_text): Update.
11208 (lookup_minimal_symbol_by_pc_name): Update.
11209 (lookup_minimal_symbol_solib_trampoline): Update.
11210 (lookup_minimal_symbol_by_pc_section_1): Update.
11211 (lookup_minimal_symbol_and_objfile): Update.
11212 (prim_record_minimal_symbol_full): Update.
11213 (compare_minimal_symbols): Update.
11214 (compact_minimal_symbols): Update.
11215 (build_minimal_symbol_hash_tables): Update.
11216 (install_minimal_symbols): Update.
11217 (terminate_minimal_symbol_table): Update.
11218 (find_solib_trampoline_target): Update.
11219 (minimal_symbol_upper_bound): Update.
11220 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11221 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11222 (mips_skip_pic_trampoline_code): Update.
11223 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11224 * objc-lang.c (selectors_info): Update.
11225 (classes_info): Update.
11226 (find_methods): Update.
11227 (find_imps): Update.
11228 (find_objc_msgsend): Update.
11229 * objfiles.c (objfile_relocate1): Update.
11230 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11231 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11232 * p-valprint.c (pascal_val_print): Update.
11233 * parse.c (write_exp_msymbol): Update.
11234 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11235 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11236 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11237 * printcmd.c (build_address_symbolic): Update.
11238 (sym_info): Update.
11239 (address_info): Update.
11240 * proc-service.c (ps_pglobal_lookup): Update.
11241 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11242 (find_pc_sect_psymtab): Update.
11243 * python/py-framefilter.c (py_print_frame): Update.
11244 * ravenscar-thread.c (get_running_thread_id): Update.
11245 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11246 Update.
11247 * remote.c (remote_check_symbols): Update.
11248 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11249 (rs6000_skip_trampoline_code): Update.
11250 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11251 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11252 * solib-dsbt.c (lm_base): Update.
11253 * solib-frv.c (lm_base): Update.
11254 (main_got): Update.
11255 * solib-irix.c (locate_base): Update.
11256 * solib-som.c (som_solib_create_inferior_hook): Update.
11257 (som_solib_desire_dynamic_linker_symbols): Update.
11258 (link_map_start): Update.
11259 * solib-spu.c (spu_enable_break): Update.
11260 (ocl_enable_break): Update.
11261 * solib-svr4.c (elf_locate_base): Update.
11262 (enable_break): Update.
11263 * spu-tdep.c (spu_get_overlay_table): Update.
11264 (spu_catch_start): Update.
11265 (flush_ea_cache): Update.
11266 * stabsread.c (define_symbol): Update.
11267 (scan_file_globals): Update.
11268 * stack.c (find_frame_funname): Update.
11269 (frame_info): Update.
11270 * symfile.c (simple_read_overlay_table): Update.
11271 (simple_overlay_update): Update.
11272 * symmisc.c (dump_msymbols): Update.
11273 * symtab.c (fixup_section): Update.
11274 (find_pc_sect_line): Update.
11275 (skip_prologue_sal): Update.
11276 (search_symbols): Update.
11277 (print_msymbol_info): Update.
11278 (rbreak_command): Update.
11279 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11280 (completion_list_objc_symbol): Update.
11281 (default_make_symbol_completion_list_break_on): Update.
11282 * tracepoint.c (scope_info): Update.
11283 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11284 (tui_get_begin_asm_address): Update.
11285 * valops.c (find_function_in_inferior): Update.
11286 * value.c (value_static_field): Update.
11287 (value_fn_field): Update.
11288
11289 2014-02-26 Tom Tromey <tromey@redhat.com>
11290
11291 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11292 bound minimal symbols. Move code that knows about minsym
11293 table layout...
11294 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11295 function.
11296 * minsyms.h (minimal_symbol_upper_bound): Declare.
11297 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11298 minimal_symbol_upper_bound.
11299
11300 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11301
11302 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11303 Use the type's name if its basic type does not have a tag.
11304
11305 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11306
11307 * dwarf2read.c (read_subrange_type): Add comment.
11308
11309 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11310
11311 * dwarf2read.c (update_enumeration_type_from_children): New
11312 function, mostly extracted from process_structure_scope.
11313 (read_enumeration_type): Call update_enumeration_type_from_children.
11314 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11315 and flag_flag_enum fields.
11316
11317 2014-02-26 Pedro Alves <palves@redhat.com>
11318
11319 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11320 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11321 to_xfer_partial method.
11322
11323 2014-02-26 Pedro Alves <palves@redhat.com>
11324
11325 * target.c (complete_target_initialization): Don't install
11326 default_xfer_partial as to_xfer_partial hook.
11327 (nomemory): Delete.
11328 (update_current_target): Don't INHERIT nor de_fault
11329 deprecated_xfer_memory. Delete de_fault macro.
11330 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11331 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11332 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11333 field.
11334
11335 2014-02-26 Pedro Alves <palves@redhat.com>
11336
11337 * go32-nat.c (my_write_child): New function.
11338 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11339 (go32_xfer_partial): New function.
11340 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11341 Instead install a to_xfer_partial hook.
11342
11343 2014-02-26 Pedro Alves <palves@redhat.com>
11344
11345 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11346 to_xfer_partial helper. Rewrite.
11347 (procfs_xfer_partial): New function.
11348 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11349 Install a to_xfer_partial hook.
11350
11351 2014-02-26 Pedro Alves <palves@redhat.com>
11352
11353 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11354 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11355 (m32r_xfer_partial): New function.
11356 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11357 Install a to_xfer_partial hook.
11358
11359 2014-02-26 Pedro Alves <palves@redhat.com>
11360
11361 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11362 helper.
11363 (mips_xfer_partial): New function.
11364 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11365 hook. Install a to_xfer_partial hook.
11366
11367 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11368
11369 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11370 * gdbtypes.c (create_array_type_with_stride): New function,
11371 renaming create_array_type, but with an added parameter
11372 called "bit_stride".
11373 (create_array_type): Re-implement using
11374 create_array_type_with_stride.
11375 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11376 and DW_AT_bit_stride attributes.
11377
11378 2014-02-26 Pedro Alves <palves@redhat.com>
11379
11380 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11381 task-specific breakpoints.
11382
11383 2014-02-25 Pedro Alves <palves@redhat.com>
11384
11385 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11386 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11387
11388 2014-02-25 Stan Shebs <stan@codesourcery.com>
11389
11390 * defs.h: Annotate comments for Doxygen.
11391
11392 2014-02-25 Tom Tromey <tromey@redhat.com>
11393
11394 * target.h (target_ignore): Don't declare.
11395 * target.c (target_ignore): Remove.
11396
11397 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11398
11399 PR gdb/16626
11400 * auto-load.c (auto_load_objfile_script_1): Change filename to
11401 debugfile.
11402
11403 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11404
11405 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11406 documentation. Adjust prototype to match the target_ops
11407 to_xfer_partial method. Adjust implementation accordingly.
11408
11409 2014-02-25 Hui Zhu <hui@codesourcery.com>
11410
11411 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11412 to_traceframe_info.
11413
11414 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11415
11416 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11417 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11418 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11419 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11420 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11421 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11422 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11423 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11424 New constants.
11425 (rl78_register_type): Use a data pointer type for SP and
11426 new pseudo registers mentioned above. Use a 16 bit integer
11427 type for all other register pairs.
11428 (rl78_register_name, rl78_g10_register_name): Update for
11429 new pseudo registers.
11430 (rl78_pseudo_register_read): Likewise.
11431 (rl78_pseudo_register_write): Likewise.
11432 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11433 to the newly added pseudo registers.
11434
11435 2014-02-24 Doug Evans <dje@google.com>
11436
11437 * value.c (record_latest_value): Fix comment.
11438 * printcmd.c (print_command_1): Remove code to handle -1 return from
11439 record_latest_value.
11440
11441 2014-02-24 Pedro Alves <palves@redhat.com>
11442
11443 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11444 deprecated_xfer_memory hook.
11445 (procfs_xfer_partial): Call procfs_xfer_memory instead
11446 of the deprecated_xfer_memory target hook.
11447 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11448 helper.
11449
11450 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11451
11452 * windows-nat.c (windows_xfer_shared_libraries): Return
11453 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11454 requested object is TARGET_OBJECT_LIBRARIES.
11455
11456 2014-02-24 Yao Qi <yao@codesourcery.com>
11457
11458 * target.h (enum target_xfer_status)
11459 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11460 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11461 explicitly. New.
11462 * corefile.c (memory_error_message): User updated.
11463 * exec.c (section_table_read_available_memory): Likewise.
11464 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11465 * target.c (target_xfer_status_to_string): Likewise.
11466 (raw_memory_xfer_partial): Likewise.
11467 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11468 * valops.c (read_value_memory): Likewise.
11469 * exec.h: Update comments.
11470
11471 2014-02-24 Yao Qi <yao@codesourcery.com>
11472
11473 * target.c (target_xfer_status_to_string): Rename argument err
11474 to status.
11475 * target.h (target_xfer_status_to_string): Update declaration.
11476 Replace target_xfer_error_to_string with
11477 target_xfer_status_to_string in comment.
11478
11479 2014-02-24 Yao Qi <yao@codesourcery.com>
11480
11481 * mips-linux-nat.c (super_close): Update its type.
11482 (mips_linux_close): Pass 'self' to super_close.
11483
11484 2014-02-24 Yao Qi <yao@codesourcery.com>
11485
11486 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11487 * corefile.c (read_memory): Adjusted.
11488 * target.c (target_write_with_progress): Adjusted.
11489
11490 2014-02-23 Yao Qi <yao@codesourcery.com>
11491
11492 Revert two patches:
11493
11494 2013-10-25 Yao Qi <yao@codesourcery.com>
11495
11496 * remote.c (remote_traceframe_info): Return early if
11497 traceframe is not selected.
11498
11499 2013-07-19 Yao Qi <yao@codesourcery.com>
11500
11501 * target.c (update_current_target): Change the default action
11502 of 'to_traceframe_info' from tcomplain to return_zero.
11503 * target.h (struct target_ops) <to_traceframe_info>: Add more
11504 comments.
11505
11506 2014-02-23 Yao Qi <yao@codesourcery.com>
11507
11508 * valops.c (read_value_memory): Rewrite it. Call
11509 target_xfer_partial in a loop.
11510 * exec.h (section_table_available_memory): Remove declaration.
11511 Move comments to ...
11512 * exec.c (section_table_available_memory): ... here. Make it
11513 static.
11514
11515 2014-02-23 Yao Qi <yao@codesourcery.com>
11516
11517 * exec.c (section_table_read_available_memory): New function.
11518 * exec.h (section_table_read_available_memory): Declare.
11519 * ctf.c (ctf_xfer_partial): Call
11520 section_table_read_available_memory.
11521 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11522
11523 2014-02-23 Yao Qi <yao@codesourcery.com>
11524
11525 * ctf.c (ctf_xfer_partial): Move code to ...
11526 * exec.c (exec_read_partial_read_only): ... it. New function.
11527 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11528 * tracefile.c: Include "exec.h".
11529 * exec.h (exec_read_partial_read_only): Declare.
11530
11531 2014-02-23 Yao Qi <yao@codesourcery.com>
11532
11533 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11534 (tfile_has_memory): Remove.
11535 (init_tfile_ops): Don't set fields to_has_all_memory and
11536 to_has_memory of tfile_ops.
11537 * tracefile.c (tracefile_has_all_memory): New function.
11538 (tracefile_has_memory): New function.
11539 (init_tracefile_ops): Initialize fields to_has_all_memory and
11540 to_has_memory of 'ops'.
11541
11542 2014-02-23 Yao Qi <yao@codesourcery.com>
11543
11544 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11545 (ctf_thread_alive, ctf_get_trace_status): Remove.
11546 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11547 init_tracefile_ops.
11548 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11549 (tfile_has_stack, tfile_has_registers): Remove.
11550 (tfile_thread_alive): Remove.
11551 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11552 init_tracefile_ops.
11553 * tracefile.c (tracefile_has_stack): New function.
11554 (tracefile_has_registers): New function.
11555 (tracefile_thread_alive): New function.
11556 (tracefile_get_trace_status): New function.
11557 (init_tracefile_ops): New function.
11558 * tracefile.h (init_tracefile_ops): Declare.
11559
11560 2014-02-23 Yao Qi <yao@codesourcery.com>
11561
11562 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11563 (O_LARGEFILE): Likewise.
11564 (tfile_ops): Likewise.
11565 (TRACE_HEADER_SIZE): Likewise.
11566 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11567 (cur_data_size): Likewise.
11568 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11569 (tfile_close, tfile_files_info): Likewise.
11570 (tfile_get_trace_status): Likewise.
11571 (tfile_get_tracepoint_status): Likewise.
11572 (tfile_get_traceframe_address): Likewise.
11573 (tfile_trace_find, match_blocktype): Likewise.
11574 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11575 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11576 (tfile_get_trace_state_variable_value): Likewise.
11577 (tfile_has_all_memory, tfile_has_memory): Likewise.
11578 (tfile_has_stack, tfile_has_registers): Likewise.
11579 (tfile_thread_alive, build_traceframe_info): Likewise.
11580 (tfile_traceframe_info, init_tfile_ops): Likewise.
11581 (_initialize_tracepoint): Don't call init_tfile_ops
11582 and add_target_with_completer.
11583 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11584 exec.h, completer.h and filenames.h.
11585 (_initialize_tracefile_tfile): New function.
11586
11587 2014-02-23 Yao Qi <yao@codesourcery.com>
11588
11589 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11590 tracefile-tfile.o.
11591 (HFILES_NO_SRCDIR): Add tracefile.h.
11592 * ctf.c: Include "tracefile.h".
11593 * tracefile.h: New file.
11594 * tracefile.c: New file
11595 * tracefile-tfile.c: New file.
11596 * tracepoint.c: Include "tracefile.h".
11597 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11598 (stop_reason_names): Add const.
11599 (trace_file_writer_xfree): Move it to tracefile.c.
11600 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11601 (trace_save_ctf): Likewise.
11602 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11603 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11604 (tfile_write_header, tfile_write_regblock_type): Likewise.
11605 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11606 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11607 (tfile_write_raw_data, tfile_end): Likewise.
11608 (tfile_trace_file_writer_new): Likewise.
11609 (free_uploaded_tp): Make it extern.
11610 (free_uploaded_tsv): Make it extern.
11611 (_initialize_tracepoint): Move code to register command 'tsave'
11612 to tracefile.c.
11613 * tracepoint.h (stop_reason_names): Declare.
11614 (struct trace_frame_write_ops): Move it to tracefile.h.
11615 (struct trace_file_write_ops): Likewise.
11616 (struct trace_file_writer): Likewise.
11617 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11618
11619 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11620
11621 PR gdb/16594
11622 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11623 process name.
11624 (get_cores_used_by_process): New parameter num_cores, use it.
11625 (linux_xfer_osdata_processes): Pass num_cores to it.
11626 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11627 process name.
11628
11629 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11630
11631 * target.c (memory_xfer_partial): Fix length arg in call to
11632 breakpoint_xfer_memory.
11633
11634 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11635
11636 PR tdep/16397
11637 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11638 number comes after the + or - signs. Adjust length of register
11639 name to be extracted.
11640
11641 2014-02-20 Tom Tromey <tromey@redhat.com>
11642
11643 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11644 (ada_varobj_ops): Mark "extern".
11645
11646 2014-02-20 Tom Tromey <tromey@redhat.com>
11647
11648 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11649
11650 2014-02-20 Doug Evans <xdje42@gmail.com>
11651
11652 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11653 All callers updated.
11654 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11655 All callers updated.
11656 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11657 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11658
11659 2014-02-20 lin zuojian <manjian2006@gmail.com>
11660 Joel Brobecker <brobecker@adacore.com>
11661 Doug Evans <xdje42@gmail.com>
11662
11663 PR symtab/16581
11664 * dwarf2read.c (struct die_info): New member in_process.
11665 (reset_die_in_process): New function.
11666 (process_die): Set it at the start, reset when returning.
11667 (inherit_abstract_dies): Only call process_die if origin_child_die
11668 not already being processed.
11669
11670 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11671
11672 * windows-nat.c (handle_unload_dll): Add function documentation.
11673 (do_initial_windows_stuff): Add comment explaining why we wait
11674 until after inferior initialization has finished before
11675 processing all DLLs.
11676
11677 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11678
11679 * windows-nat.c (get_module_name): Delete.
11680 (windows_get_exec_module_filename): New function, mostly
11681 inspired from get_module_name.
11682 (windows_pid_to_exec_file): Replace call to get_module_name
11683 by call to windows_get_exec_module_filename.
11684
11685 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11686
11687 * windows-nat.c (handle_load_dll): Rewrite this function's
11688 introductory comment. Remove code using get_module_name
11689 to get the DLL's name.
11690
11691 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11692
11693 * windows-nat.c (get_windows_debug_event): Ignore
11694 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11695 if windows_initialization_done == 0.
11696 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11697 Adjust implementation to always load all DLLs.
11698 (do_initial_windows_stuff): Replace call to
11699 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11700
11701 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11702
11703 * windows-nat.c (_initialize_windows_nat): Deprecate the
11704 "dll-symbols" command. Turn the "add-shared-symbol-files"
11705 and "assf" aliases into commands, and deprecate them as well.
11706 * NEWS: Add entry explaining that "dll-symbols" and its two
11707 aliases are now deprecated.
11708
11709 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11710
11711 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11712 new-line in debug string. Remove trailing spaces.
11713
11714 2014-02-19 Stan Shebs <stan@codesourcery.com>
11715
11716 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11717
11718 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11719
11720 * NEWS: Add entry for the new feature
11721 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11722 and class values.
11723
11724 2014-02-19 Stan Shebs <stan@codesourcery.com>
11725
11726 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11727
11728 2014-02-19 Pedro Alves <palves@redhat.com>
11729
11730 * common/ptid.h (struct ptid): Mention that process_stratum
11731 targets should prefer ptid.lwp.
11732
11733 2014-02-19 Pedro Alves <palves@redhat.com>
11734
11735 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11736 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11737 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11738 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11739 store remote thread ids rather than ptid.tid.
11740 (_initialize_remote): Adjust.
11741
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target.c (target_get_unwinder): Rewrite.
11745 (target_get_tailcall_unwinder): Rewrite.
11746 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11747 (record_btrace_to_get_tailcall_unwinder): New function.
11748 (init_record_btrace_ops): Update.
11749 * target.h (struct target_ops) <to_get_unwinder,
11750 to_get_tailcall_unwinder>: Now function pointers. Use
11751 TARGET_DEFAULT_RETURN.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11756 argument.
11757 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11758
11759 2014-02-19 Tom Tromey <tromey@redhat.com>
11760
11761 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11762 directly.
11763 * target-delegates.c: Rebuild.
11764 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11765 TARGET_DEFAULT_FUNC.
11766 * target.c (default_target_decr_pc_after_break): Rename from
11767 forward_target_decr_pc_after_break. Simplify.
11768 (target_decr_pc_after_break): Rely on delegation.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target.c (update_current_target): Do not INHERIT to_doc or
11773 to_magic. Do not de_fault to_open or to_close.
11774
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * gcore.h (objfile_find_memory_regions): Declare.
11778 * gcore.c (objfile_find_memory_regions): No longer static. Add
11779 "self" argument.
11780 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11781 * exec.c: Include gcore.h.
11782 (exec_set_find_memory_regions): Remove.
11783 (exec_find_memory_regions): Remove.
11784 (exec_do_find_memory_regions): Remove.
11785 (init_exec_ops): Update.
11786 * defs.h (exec_set_find_memory_regions): Remove.
11787
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target-delegates.c: Rebuild.
11791 * target.h (struct target_ops) <to_extra_thread_info,
11792 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11793 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11794 not 0, in TARGET_DEFAULT_RETURN.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.c (complete_target_initialization): Remove casts. Use
11799 return_zero_has_execution.
11800 (return_zero): Add "ignore" argument.
11801 (return_zero_has_execution): New function.
11802 (init_dummy_target): Remove casts. Use
11803 return_zero_has_execution.
11804
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.c (update_current_target): Update comments. Do not
11808 INHERIT to_stratum.
11809
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11813 needed.
11814 * corelow.c (core_read_description): Delegate when needed.
11815 * remote.c (remote_read_description): Delegate when needed.
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_read_description): Rewrite.
11818 * target.h (struct target_ops) <to_read_description>: Update
11819 comment. Use TARGET_DEFAULT_RETURN.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_can_run.
11826 (find_default_run_target): Check against delegate_can_run.
11827 * target.h (struct target_ops) <to_can_run>: Use
11828 TARGET_DEFAULT_RETURN.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (target_disconnect): Unconditionally delegate.
11834 * target.h (struct target_ops) <to_disconnect>: Use
11835 TARGET_DEFAULT_NORETURN.
11836
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * record.c (record_stop): Unconditionally delegate.
11840 * target-delegates.c: Rebuild.
11841 * target.c (target_stop_recording): Unconditionally delegate.
11842 * target.h (struct target_ops) <to_stop_recording>: Use
11843 TARGET_DEFAULT_IGNORE.
11844
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target-delegates.c: Rebuild.
11848 * target.c (target_enable_btrace): Unconditionally delegate.
11849 * target.h (struct target_ops) <to_enable_btrace>: Use
11850 TARGET_DEFAULT_NORETURN.
11851
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target-delegates.c: Rebuild.
11855 * target.c (target_read_btrace): Unconditionally delegate.
11856 * target.h (struct target_ops) <to_read_btrace>: Use
11857 TARGET_DEFAULT_NORETURN.
11858
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (target_teardown_btrace): Unconditionally delegate.
11863 * target.h (struct target_ops) <to_teardown_btrace>: Use
11864 TARGET_DEFAULT_NORETURN.
11865
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (target_disable_btrace): Unconditionally delegate.
11870 * target.h (struct target_ops) <to_disable_btrace>: Use
11871 TARGET_DEFAULT_NORETURN.
11872
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target-delegates.c: Rebuild.
11876 * target.c (default_search_memory): New function.
11877 (simple_search_memory): Update comment.
11878 (target_search_memory): Unconditionally delegate.
11879 * target.h (struct target_ops) <to_search_memory>: Use
11880 TARGET_DEFAULT_FUNC.
11881
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * auxv.c (default_auxv_parse): No longer static.
11885 (target_auxv_parse): Unconditionally delegate.
11886 * auxv.h (default_auxv_parse): Declare.
11887 * target-delegates.c: Rebuild.
11888 * target.c: Include auxv.h.
11889 * target.h (struct target_ops) <to_auxv_parse>: Use
11890 TARGET_DEFAULT_FUNC.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target-delegates.c: Rebuild.
11895 * target.c (target_memory_map): Unconditionally delegate.
11896 * target.h (struct target_ops) <to_memory_map>: Use
11897 TARGET_DEFAULT_RETURN.
11898
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target-delegates.c: Rebuild.
11902 * target.c (target_thread_alive): Unconditionally delegate.
11903 * target.h (struct target_ops) <to_thread_alive>: Use
11904 TARGET_DEFAULT_RETURN.
11905
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target-delegates.c: Rebuild.
11909 * target.c (target_save_record): Unconditionally delegate.
11910 * target.h (struct target_ops) <to_save_record>: Use
11911 TARGET_DEFAULT_NORETURN.
11912
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target-delegates.c: Rebuild.
11916 * target.c (target_delete_record): Unconditionally delegate.
11917 * target.h (struct target_ops) <to_delete_record>: Use
11918 TARGET_DEFAULT_NORETURN.
11919
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (target_record_is_replaying): Unconditionally
11924 delegate.
11925 * target.h (struct target_ops) <to_record_is_replaying>: Use
11926 TARGET_DEFAULT_RETURN.
11927
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (target_goto_record_begin): Unconditionally delegate.
11932 * target.h (struct target_ops) <to_goto_record_begin>: Use
11933 TARGET_DEFAULT_NORETURN.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (target_goto_record_end): Unconditionally delegate.
11939 * target.h (struct target_ops) <to_goto_record_end>: Use
11940 TARGET_DEFAULT_NORETURN.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target-delegates.c: Rebuild.
11945 * target.c (target_goto_record): Unconditionally delegate.
11946 * target.h (struct target_ops) <to_goto_record>: Use
11947 TARGET_DEFAULT_NORETURN.
11948
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target-delegates.c: Rebuild.
11952 * target.c (target_insn_history): Unconditionally delegate.
11953 * target.h (struct target_ops) <to_insn_history>: Use
11954 TARGET_DEFAULT_NORETURN.
11955
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (target_insn_history_from): Unconditionally delegate.
11960 * target.h (struct target_ops) <to_insn_history_from>: Use
11961 TARGET_DEFAULT_NORETURN.
11962
11963 2014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * target-delegates.c: Rebuild.
11966 * target.c (target_insn_history_range): Unconditionally delegate.
11967 * target.h (struct target_ops) <to_insn_history_range>: Use
11968 TARGET_DEFAULT_NORETURN.
11969
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (target_call_history): Unconditionally delegate.
11974 * target.h (struct target_ops) <to_call_history>: Use
11975 TARGET_DEFAULT_NORETURN.
11976
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target-delegates.c: Rebuild.
11980 * target.c (target_call_history_from): Unconditionally delegate.
11981 * target.h (struct target_ops) <to_call_history_from>: Use
11982 TARGET_DEFAULT_NORETURN.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (target_call_history_range): Unconditionally delegate.
11988 * target.h (struct target_ops) <to_call_history_range>: Use
11989 TARGET_DEFAULT_NORETURN.
11990
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target-delegates.c: Rebuild.
11994 * target.c (target_verify_memory): Unconditionally delegate.
11995 * target.h (struct target_ops) <to_verify_memory>: Use
11996 TARGET_DEFAULT_NORETURN.
11997
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target-delegates.c: Rebuild.
12001 * target.c (target_core_of_thread): Unconditionally delegate.
12002 * target.h (struct target_ops) <to_core_of_thread>: Use
12003 TARGET_DEFAULT_RETURN.
12004
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target-delegates.c: Rebuild.
12008 * target.c (target_flash_done): Unconditionally delegate.
12009 * target.h (struct target_ops) <to_flash_done>: Use
12010 TARGET_DEFAULT_NORETURN.
12011
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (target_flash_erase): Unconditionally delegate.
12016 * target.h (struct target_ops) <to_flash_erase>: Use
12017 TARGET_DEFAULT_NORETURN.
12018
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target-delegates.c: Rebuild.
12022 * target.c (target_get_section_table): Unconditionally delegate.
12023 * target.h (struct target_ops) <to_get_section_table>: Use
12024 TARGET_DEFAULT_RETURN.
12025
12026 2014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target-delegates.c: Rebuild.
12029 * target.c (target_pid_to_str): Unconditionally delegate.
12030 (init_dummy_target): Don't initialize to_pid_to_str.
12031 (default_pid_to_str): Rename from dummy_pid_to_str.
12032 * target.h (struct target_ops) <to_pid_to_str>: Use
12033 TARGET_DEFAULT_FUNC.
12034
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (target_find_new_threads): Unconditionally delegate.
12039 * target.h (struct target_ops) <to_find_new_threads>: Use
12040 TARGET_DEFAULT_RETURN.
12041
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (target_program_signals): Unconditionally delegate.
12046 * target.h (struct target_ops) <to_program_signals>: Use
12047 TARGET_DEFAULT_IGNORE.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (target_pass_signals): Unconditionally delegate.
12053 * target.h (struct target_ops) <to_pass_signals>: Use
12054 TARGET_DEFAULT_IGNORE.
12055
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (default_mourn_inferior): New function.
12060 (target_mourn_inferior): Unconditionally delegate.
12061 * target.h (struct target_ops) <to_mourn_inferior>: Use
12062 TARGET_DEFAULT_FUNC.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (default_follow_fork): New function.
12068 (target_follow_fork): Unconditionally delegate.
12069 * target.h (struct target_ops) <to_follow_fork>: Use
12070 TARGET_DEFAULT_FUNC.
12071
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target-delegates.c: Rebuild.
12075 * target.c (target_kill): Unconditionally delegate.
12076 * target.h (struct target_ops) <to_kill>: Use
12077 TARGET_DEFAULT_NORETURN.
12078
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12080
12081 * target-delegates.c: Rebuild.
12082 * target.c (target_masked_watch_num_registers): Unconditionally
12083 delegate.
12084 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12085 Use TARGET_DEFAULT_RETURN.
12086
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target-delegates.c: Rebuild.
12090 * target.c (target_remove_mask_watchpoint): Unconditionally
12091 delegate.
12092 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12093 TARGET_DEFAULT_RETURN.
12094
12095 2014-02-19 Tom Tromey <tromey@redhat.com>
12096
12097 * target-delegates.c: Rebuild.
12098 * target.c (target_insert_mask_watchpoint): Unconditionally
12099 delegate.
12100 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12101 TARGET_DEFAULT_RETURN.
12102
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * target-delegates.c: Rebuild.
12106 * target.c (target_ranged_break_num_registers): Unconditionally
12107 delegate.
12108 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12109 Use TARGET_DEFAULT_RETURN.
12110
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target-delegates.c: Rebuild.
12114 * target.c (target_fetch_registers): Unconditionally delegate.
12115 * target.h (struct target_ops) <to_fetch_registers>: Use
12116 TARGET_DEFAULT_NORETURN.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target-delegates.c: Rebuild.
12121 * target.c (update_current_target): Don't inherit or default
12122 to_stop.
12123 * target.h (struct target_ops) <to_stop>: Use
12124 TARGET_DEFAULT_IGNORE.
12125
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target-delegates.c: Rebuild.
12129 * target.c (update_current_target): Don't inherit or default
12130 to_can_run_breakpoint_commands.
12131 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12132 Use TARGET_DEFAULT_RETURN.
12133
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target-delegates.c: Rebuild.
12137 * target.c (update_current_target): Don't inherit or default
12138 to_supports_evaluation_of_breakpoint_conditions.
12139 * target.h (struct target_ops)
12140 <to_supports_evaluation_of_breakpoint_conditions>: Use
12141 TARGET_DEFAULT_RETURN.
12142
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target-delegates.c: Rebuild.
12146 * target.c (update_current_target): Don't inherit or default
12147 to_augmented_libraries_svr4_read.
12148 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12149 Use TARGET_DEFAULT_RETURN.
12150
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * target-delegates.c: Rebuild.
12154 * target.c (update_current_target): Don't inherit or default
12155 to_can_use_agent.
12156 * target.h (struct target_ops) <to_can_use_agent>: Use
12157 TARGET_DEFAULT_RETURN.
12158
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target-delegates.c: Rebuild.
12162 * target.c (update_current_target): Don't inherit or default
12163 to_use_agent.
12164 * target.h (struct target_ops) <to_use_agent>: Use
12165 TARGET_DEFAULT_NORETURN.
12166
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12168
12169 * target-delegates.c: Rebuild.
12170 * target.c (update_current_target): Don't inherit or default
12171 to_traceframe_info.
12172 (return_null): Remove.
12173 * target.h (struct target_ops) <to_traceframe_info>: Use
12174 TARGET_DEFAULT_RETURN.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target-delegates.c: Rebuild.
12179 * target.c (update_current_target): Don't inherit or default
12180 to_static_tracepoint_markers_by_strid.
12181 * target.h (struct target_ops)
12182 <to_static_tracepoint_markers_by_strid>: Use
12183 TARGET_DEFAULT_NORETURN.
12184
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_static_tracepoint_marker_at.
12190 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12191 Use TARGET_DEFAULT_RETURN.
12192
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't inherit or default
12197 to_set_permissions.
12198 * target.h (struct target_ops) <to_set_permissions>: Use
12199 TARGET_DEFAULT_IGNORE.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_get_tib_address.
12206 * target.h (struct target_ops) <to_get_tib_address>: Use
12207 TARGET_DEFAULT_NORETURN.
12208
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_set_trace_notes.
12214 * target.h (struct target_ops) <to_set_trace_notes>: Use
12215 TARGET_DEFAULT_RETURN.
12216
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't initialize
12221 to_set_trace_buffer_size.
12222 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12223 TARGET_DEFAULT_IGNORE.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_set_circular_trace_buffer.
12230 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12231 TARGET_DEFAULT_IGNORE.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12237 to_set_disconnected_tracing.
12238 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12239 TARGET_DEFAULT_IGNORE.
12240
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target-delegates.c: Rebuild.
12244 * target.c (update_current_target): Don't inherit or default
12245 to_get_min_fast_tracepoint_insn_len.
12246 (return_minus_one): Remove.
12247 * target.h (struct target_ops)
12248 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12249
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_get_raw_trace_data.
12255 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12256 TARGET_DEFAULT_NORETURN.
12257
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_upload_trace_state_variables.
12263 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12264 Use TARGET_DEFAULT_RETURN.
12265
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12270 to_upload_tracepoints.
12271 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12272 TARGET_DEFAULT_RETURN.
12273
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target-delegates.c: Rebuild.
12277 * target.c (update_current_target): Don't inherit or default
12278 to_save_trace_data.
12279 * target.h (struct target_ops) <to_save_trace_data>: Use
12280 TARGET_DEFAULT_NORETURN.
12281
12282 2014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * target-delegates.c: Rebuild.
12285 * target.c (update_current_target): Don't inherit or default
12286 to_get_trace_state_variable_value.
12287 * target.h (struct target_ops)
12288 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target-delegates.c: Rebuild.
12293 * target.c (update_current_target): Don't inherit or default
12294 to_trace_find.
12295 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12296
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target-delegates.c: Rebuild.
12300 * target.c (update_current_target): Don't inherit or default
12301 to_trace_stop.
12302 * target.h (struct target_ops) <to_trace_stop>: Use
12303 TARGET_DEFAULT_NORETURN.
12304
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target-delegates.c: Rebuild.
12308 * target.c (update_current_target): Don't inherit or default
12309 to_get_tracepoint_status.
12310 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12311 TARGET_DEFAULT_NORETURN.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target-delegates.c: Rebuild.
12316 * target.c (update_current_target): Don't inherit or default
12317 to_get_trace_status.
12318 * target.h (struct target_ops) <to_get_trace_status>: Use
12319 TARGET_DEFAULT_RETURN.
12320
12321 2014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * target-delegates.c: Rebuild.
12324 * target.c (update_current_target): Don't inherit or default
12325 to_trace_start.
12326 * target.h (struct target_ops) <to_trace_start>: Use
12327 TARGET_DEFAULT_NORETURN.
12328
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12330
12331 * target-delegates.c: Rebuild.
12332 * target.c (update_current_target): Don't inherit or default
12333 to_trace_set_readonly_regions.
12334 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12335 Use TARGET_DEFAULT_NORETURN.
12336
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target-delegates.c: Rebuild.
12340 * target.c (update_current_target): Don't inherit or default
12341 to_disable_tracepoint.
12342 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12343 TARGET_DEFAULT_NORETURN.
12344
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target-delegates.c: Rebuild.
12348 * target.c (update_current_target): Don't inherit or default
12349 to_enable_tracepoint.
12350 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12351 TARGET_DEFAULT_NORETURN.
12352
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target-delegates.c: Rebuild.
12356 * target.c (update_current_target): Don't inherit or default
12357 to_download_trace_state_variable.
12358 * target.h (struct target_ops) <to_download_trace_state_variable>:
12359 Use TARGET_DEFAULT_NORETURN.
12360
12361 2014-02-19 Tom Tromey <tromey@redhat.com>
12362
12363 * target-delegates.c: Rebuild.
12364 * target.c (update_current_target): Don't inherit or default
12365 to_can_download_tracepoint.
12366 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12367 TARGET_DEFAULT_RETURN.
12368
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target-delegates.c: Rebuild.
12372 * target.c (update_current_target): Don't inherit or default
12373 to_download_tracepoint.
12374 * target.h (struct target_ops) <to_download_tracepoint>: Use
12375 TARGET_DEFAULT_NORETURN.
12376
12377 2014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target-delegates.c: Rebuild.
12380 * target.c (update_current_target): Don't inherit or default
12381 to_trace_init.
12382 * target.h (struct target_ops) <to_trace_init>: Use
12383 TARGET_DEFAULT_RETURN.
12384
12385 2014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target-delegates.c: Rebuild.
12388 * target.c (update_current_target): Don't inherit or default
12389 to_supports_string_tracing.
12390 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12391 TARGET_DEFAULT_RETURN.
12392
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12394
12395 * target-delegates.c: Rebuild.
12396 * target.c (update_current_target): Don't inherit or default
12397 to_supports_enable_disable_tracepoint.
12398 * target.h (struct target_ops)
12399 <to_supports_enable_disable_tracepoint>: Use
12400 TARGET_DEFAULT_RETURN.
12401
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12403
12404 * target-delegates.c: Rebuild.
12405 * target.c (update_current_target): Don't inherit or default
12406 to_supports_multi_process.
12407 * target.h (struct target_ops) <to_supports_multi_process>: Use
12408 TARGET_DEFAULT_RETURN.
12409
12410 2014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target-delegates.c: Rebuild.
12413 * target.c (update_current_target): Don't inherit or default
12414 to_get_ada_task_ptid.
12415 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12416 TARGET_DEFAULT_FUNC.
12417
12418 2014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * target-delegates.c: Rebuild.
12421 * target.c (update_current_target): Don't inherit or default
12422 to_thread_architecture.
12423 * target.h (struct target_ops) <to_thread_architecture>: Use
12424 TARGET_DEFAULT_FUNC.
12425
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12427
12428 * target-delegates.c: Rebuild.
12429 * target.c (update_current_target): Don't inherit or default
12430 to_execution_direction.
12431 * target.h (struct target_ops) <to_execution_direction>: Use
12432 TARGET_DEFAULT_FUNC.
12433
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target-delegates.c: Rebuild.
12437 * target.c (update_current_target): Don't inherit or default
12438 to_can_execute_reverse.
12439 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12440 TARGET_DEFAULT_RETURN.
12441 (target_can_execute_reverse): Unconditionally delegate.
12442
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12444
12445 * target-delegates.c: Rebuild.
12446 * target.c (update_current_target): Don't inherit or default
12447 to_goto_bookmark.
12448 (dummy_goto_bookmark): Remove.
12449 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12450 * target.h (struct target_ops) <to_goto_bookmark>: Use
12451 TARGET_DEFAULT_NORETURN.
12452
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_get_bookmark.
12458 (dummy_get_bookmark): Remove.
12459 (init_dummy_target): Don't inherit or default to_get_bookmark.
12460 * target.h (struct target_ops) <to_get_bookmark>: Use
12461 TARGET_DEFAULT_NORETURN
12462
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12464
12465 * target-delegates.c: Rebuild.
12466 * target.c (update_current_target): Don't inherit or default
12467 to_make_corefile_notes.
12468 (init_dummy_target): Don't initialize to_make_corefile_notes.
12469 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12470 TARGET_DEFAULT_FUNC.
12471
12472 2014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target-delegates.c: Rebuild.
12475 * target.c (update_current_target): Don't inherit or default
12476 to_find_memory_regions.
12477 (init_dummy_target): Don't initialize to_find_memory_regions.
12478 * target.h (struct target_ops) <to_find_memory_regions>: Use
12479 TARGET_DEFAULT_FUNC.
12480
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target-delegates.c: Rebuild.
12484 * target.c (update_current_target): Don't inherit or default
12485 to_log_command.
12486 * target.h (struct target_ops) <to_log_command>: Use
12487 TARGET_DEFAULT_IGNORE.
12488 (target_log_command): Unconditionally delegate.
12489
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target-delegates.c: Rebuild.
12493 * target.c (update_current_target): Don't inherit or default
12494 to_pid_to_exec_file.
12495 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12496 TARGET_DEFAULT_RETURN.
12497
12498 2014-02-19 Tom Tromey <tromey@redhat.com>
12499
12500 * target-delegates.c: Rebuild.
12501 * target.c (update_current_target): Don't inherit or default
12502 to_thread_name.
12503 (target_thread_name): Unconditionally delegate.
12504 * target.h (struct target_ops) <to_thread_name>: Use
12505 TARGET_DEFAULT_RETURN.
12506
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target-delegates.c: Rebuild.
12510 * target.c (update_current_target): Don't inherit or default
12511 to_extra_thread_info.
12512 * target.h (struct target_ops) <to_extra_thread_info>: Use
12513 TARGET_DEFAULT_RETURN.
12514
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target-delegates.c: Rebuild.
12518 * target.c (update_current_target): Don't inherit or default
12519 to_has_exited.
12520 * target.h (struct target_ops) <to_has_exited>: Use
12521 TARGET_DEFAULT_RETURN..
12522
12523 2014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target-delegates.c: Rebuild.
12526 * target.c (update_current_target): Don't inherit or default
12527 to_set_syscall_catchpoint.
12528 (return_one): Remove.
12529 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12530 TARGET_DEFAULT_RETURN.
12531
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target-delegates.c: Rebuild.
12535 * target.c (update_current_target): Don't inherit or default
12536 to_insert_exec_catchpoint.
12537 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12538 TARGET_DEFAULT_RETURN.
12539
12540 2014-01-08 Tom Tromey <tromey@redhat.com>
12541
12542 * target-delegates.c: Rebuild.
12543 * target.c (update_current_target): Don't inherit or default
12544 to_insert_exec_catchpoint.
12545 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12546 TARGET_DEFAULT_RETURN.
12547
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target-delegates.c: Rebuild.
12551 * target.c (update_current_target): Don't inherit or default
12552 to_remove_vfork_catchpoint.
12553 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12554 TARGET_DEFAULT_RETURN.
12555
12556 2014-02-19 Tom Tromey <tromey@redhat.com>
12557
12558 * target-delegates.c: Rebuild.
12559 * target.c (update_current_target): Don't inherit or default
12560 to_insert_vfork_catchpoint.
12561 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12562 TARGET_DEFAULT_RETURN.
12563
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target-delegates.c: Rebuild.
12567 * target.c (update_current_target): Don't inherit or default
12568 to_remove_fork_catchpoint.
12569 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12570 TARGET_DEFAULT_RETURN.
12571
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target-delegates.c: Rebuild.
12575 * target.c (update_current_target): Don't inherit or default
12576 to_insert_fork_catchpoint.
12577 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12578 TARGET_DEFAULT_RETURN.
12579
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_post_startup_inferior.
12585 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12586 TARGET_DEFAULT_IGNORE.
12587
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target-delegates.c: Rebuild.
12591 * target.c (update_current_target): Don't inherit or default
12592 to_load.
12593 * target.h (struct target_ops) <to_load>: Use
12594 TARGET_DEFAULT_NORETURN.
12595
12596 2014-02-19 Tom Tromey <tromey@redhat.com>
12597
12598 * target-delegates.c: Rebuild.
12599 * target.c (update_current_target): Don't inherit or default
12600 to_terminal_info.
12601 * target.h (struct target_ops) <to_terminal_info>: Use
12602 TARGET_DEFAULT_FUNC.
12603
12604 2014-02-19 Tom Tromey <tromey@redhat.com>
12605
12606 * target-delegates.c: Rebuild.
12607 * target.c (update_current_target): Don't inherit or default
12608 to_terminal_save_ours.
12609 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12610 TARGET_DEFAULT_IGNORE.
12611
12612 2014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target-delegates.c: Rebuild.
12615 * target.c (update_current_target): Don't inherit or default
12616 to_terminal_ours.
12617 * target.h (struct target_ops) <to_terminal_ours>: Use
12618 TARGET_DEFAULT_IGNORE.
12619
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * target-delegates.c: Rebuild.
12623 * target.c (update_current_target): Don't inherit or default
12624 to_terminal_ours_for_output.
12625 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12626 TARGET_DEFAULT_IGNORE.
12627
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * target-delegates.c: Rebuild.
12631 * target.c (update_current_target): Don't inherit or default
12632 to_terminal_inferior.
12633 * target.h (struct target_ops) <to_terminal_inferior>: Use
12634 TARGET_DEFAULT_IGNORE.
12635
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target-delegates.c: Rebuild.
12639 * target.c (update_current_target): Don't inherit or default
12640 to_terminal_init.
12641 * target.h (struct target_ops) <to_terminal_init>: Use
12642 TARGET_DEFAULT_IGNORE.
12643
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target-delegates.c: Rebuild.
12647 * target.c (update_current_target): Don't inherit or default
12648 to_can_accel_watchpoint_condition.
12649 * target.h (struct target_ops)
12650 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12651
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12653
12654 * target-delegates.c: Rebuild.
12655 * target.c (update_current_target): Don't inherit or default
12656 to_region_ok_for_hw_watchpoint.
12657 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12658 Use TARGET_DEFAULT_FUNC.
12659
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target-delegates.c: Rebuild.
12663 * target.c (update_current_target): Don't inherit or default
12664 to_watchpoint_addr_within_range.
12665 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12666 Use TARGET_DEFAULT_FUNC.
12667
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target-delegates.c: Rebuild.
12671 * target.c (update_current_target): Don't inherit or default
12672 to_remove_watchpoint.
12673 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12674 TARGET_DEFAULT_NORETURN.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target-delegates.c: Rebuild.
12679 * target.c (update_current_target): Don't inherit or default
12680 to_insert_watchpoint.
12681 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12682 TARGET_DEFAULT_RETURN.
12683
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target-delegates.c: Rebuild.
12687 * target.c (update_current_target): Don't inherit or default
12688 to_remove_hw_breakpoint.
12689 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12690 TARGET_DEFAULT_RETURN.
12691
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target-delegates.c: Rebuild.
12695 * target.c (update_current_target): Don't inherit or default
12696 to_insert_hw_breakpoint.
12697 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12698 TARGET_DEFAULT_RETURN.
12699
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target-delegates.c: Rebuild.
12703 * target.c (update_current_target): Don't inherit or default
12704 to_can_use_hw_breakpoint.
12705 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12706 TARGET_DEFAULT_RETURN.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target-delegates.c: Rebuild.
12711 * target.c (update_current_target): Don't inherit or default
12712 to_files_info.
12713 * target.h (struct target_ops) <to_files_info>: Use
12714 TARGET_DEFAULT_IGNORE.
12715
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12717
12718 * target-delegates.c: Rebuild.
12719 * target.c (update_current_target): Don't inherit or default
12720 to_store.
12721 * target.h (struct target_ops) <to_store>: Use
12722 TARGET_DEFAULT_NORETURN.
12723
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target-delegates.c: Rebuild.
12727 * target.c (update_current_target): Don't inherit or default
12728 to_post_attach.
12729 * target.h (struct target_ops) <to_post_attach>: Use
12730 TARGET_DEFAULT_IGNORE.
12731
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12733
12734 * target-delegates.c: Rebuild.
12735 * target.c (update_current_target): Don't inherit or default
12736 to_rcmd.
12737 (default_rcmd): New function.
12738 (do_monitor_command): Unconditionally delegate.
12739 * target.h (struct target_ops) <to_rmcd>: Use
12740 TARGET_DEFAULT_FUNC.
12741
12742 2014-02-19 Tom Tromey <tromey@redhat.com>
12743
12744 * target-delegates.c: Rebuild.
12745 * target.c (init_dummy_target): Don't initialize to_attach.
12746 (target_attach): Unconditionally delegate.
12747 * target.h (struct target_ops) <to_attach>: Use
12748 TARGET_DEFAULT_FUNC.
12749
12750 2014-02-19 Tom Tromey <tromey@redhat.com>
12751
12752 * target-delegates.c: Rebuild.
12753 * target.c (target_detach): Unconditionally delegate.
12754 (init_dummy_target): Don't initialize to_detach.
12755 * target.h (struct target_ops) <to_detach>: Use
12756 TARGET_DEFAULT_IGNORE.
12757
12758 2014-02-19 Tom Tromey <tromey@redhat.com>
12759
12760 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12761 Add argument.
12762 (target_augmented_libraries_svr4_read): Add argument.
12763 * target.c (update_current_target): Update.
12764 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12765 argument.
12766
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops) <to_call_history_range>: Add
12770 argument.
12771 * target.c (target_call_history_range): Add argument.
12772 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12773 argument.
12774 (record_btrace_call_history_from): Update.
12775
12776 2014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * target.h (struct target_ops) <to_call_history_from>: Add
12779 argument.
12780 * target.c (target_call_history_from): Add argument.
12781 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12782 argument.
12783
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target.h (struct target_ops) <to_call_history>: Add argument.
12787 * target.c (target_call_history): Add argument.
12788 * record-btrace.c (record_btrace_call_history): Add 'self'
12789 argument.
12790
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * target.h (struct target_ops) <to_insn_history_range>: Add
12794 argument.
12795 * target.c (target_insn_history_range): Add argument.
12796 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12797 argument.
12798 (record_btrace_insn_history_from): Update.
12799
12800 2014-02-19 Tom Tromey <tromey@redhat.com>
12801
12802 * target.h (struct target_ops) <to_insn_history_from>: Add
12803 argument.
12804 * target.c (target_insn_history_from): Add argument.
12805 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12806 argument.
12807
12808 2014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * target.h (struct target_ops) <to_insn_history>: Add argument.
12811 * target.c (target_insn_history): Add argument.
12812 * record-btrace.c (record_btrace_insn_history): Add 'self'
12813 argument.
12814
12815 2014-02-19 Tom Tromey <tromey@redhat.com>
12816
12817 * target.h (struct target_ops) <to_goto_record>: Add argument.
12818 * target.c (target_goto_record): Add argument.
12819 * record-full.c (record_full_goto): Add 'self' argument.
12820 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12821
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12825 * target.c (target_goto_record_end): Add argument.
12826 * record-full.c (record_full_goto_end): Add 'self' argument.
12827 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12828
12829 2014-02-19 Tom Tromey <tromey@redhat.com>
12830
12831 * target.h (struct target_ops) <to_goto_record_begin>: Add
12832 argument.
12833 * target.c (target_goto_record_begin): Add argument.
12834 * record-full.c (record_full_goto_begin): Add 'self' argument.
12835 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12836 argument.
12837
12838 2014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_record_is_replaying>: Add
12841 argument.
12842 * target.c (target_record_is_replaying): Add argument.
12843 * record-full.c (record_full_is_replaying): Add 'self' argument.
12844 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12845 argument.
12846 (record_btrace_xfer_partial, record_btrace_store_registers)
12847 (record_btrace_prepare_to_store, record_btrace_resume)
12848 (record_btrace_wait, record_btrace_decr_pc_after_break)
12849 (record_btrace_find_new_threads, record_btrace_thread_alive):
12850 Update.
12851
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12853
12854 * target.h (struct target_ops) <to_delete_record>: Add argument.
12855 * target.c (target_delete_record): Add argument.
12856 * record-full.c (record_full_delete): Add 'self' argument.
12857
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target.h (struct target_ops) <to_save_record>: Add argument.
12861 * target.c (target_save_record): Add argument.
12862 * record-full.c (record_full_save): Add 'self' argument.
12863 (record_full_save): Add 'self' argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_info_record>: Add argument.
12868 * target.c (target_info_record): Add argument.
12869 * record.c (info_record_command): Add argument.
12870 * record-full.c (record_full_info): Add 'self' argument.
12871 * record-btrace.c (record_btrace_info): Add 'self' argument.
12872
12873 2014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12876 * target.c (target_stop_recording): Add argument.
12877 * record.c (record_stop): Add argument.
12878 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12879 argument.
12880
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12884 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12885 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12886 argument.
12887 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12888 (_initialize_amd64_linux_nat): Use it.
12889 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12890 (_initialize_i386_linux_nat): Use it.
12891
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12895 * target.c (target_teardown_btrace): Add argument.
12896 * remote.c (remote_teardown_btrace): Add 'self' argument.
12897 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12898 argument.
12899 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12900 argument.
12901
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12905 * target.c (target_disable_btrace): Add argument.
12906 * remote.c (remote_disable_btrace): Add 'self' argument.
12907 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12908 argument.
12909 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12910 argument.
12911
12912 2014-02-19 Tom Tromey <tromey@redhat.com>
12913
12914 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12915 * target.c (target_enable_btrace): Add argument.
12916 * remote.c (remote_enable_btrace): Add 'self' argument.
12917 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12918 argument.
12919 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12920 argument.
12921
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12925 (target_can_use_agent): Add argument.
12926 * target.c (update_current_target): Update.
12927 * remote.c (remote_can_use_agent): Add 'self' argument.
12928 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12929
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_use_agent>: Add argument.
12933 (target_use_agent): Add argument.
12934 * target.c (update_current_target): Update.
12935 * remote.c (remote_use_agent): Add 'self' argument.
12936 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12937
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12941 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12942 (target_traceframe_info): Add argument.
12943 * target.c (update_current_target): Update.
12944 * remote.c (remote_traceframe_info): Add 'self' argument.
12945 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12946
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12948
12949 * target.h (target_static_tracepoint_markers_by_strid): Add
12950 argument.
12951 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12952 'self' argument.
12953 * target.c (update_current_target): Update.
12954 * remote.c (struct target_ops)
12955 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12956 * linux-nat.c (struct target_ops)
12957 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12958
12959 2014-02-19 Tom Tromey <tromey@redhat.com>
12960
12961 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12962 Add argument.
12963 (target_static_tracepoint_marker_at): Add argument.
12964 * target.c (update_current_target): Update.
12965 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12966 argument.
12967
12968 2014-02-19 Tom Tromey <tromey@redhat.com>
12969
12970 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12971 (target_set_permissions): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_set_permissions): Add 'self' argument.
12974 (remote_start_remote): Update.
12975
12976 2014-02-19 Tom Tromey <tromey@redhat.com>
12977
12978 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12979 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12980 (target_get_tib_address): Add argument.
12981 * target.c (update_current_target): Update.
12982 * remote.c (remote_get_tib_address): Add 'self' argument.
12983
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12987 (target_set_trace_notes): Add argument.
12988 * target.c (update_current_target): Update.
12989 * remote.c (remote_set_trace_notes): Add 'self' argument.
12990
12991 2014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12994 argument.
12995 (target_set_trace_buffer_size): Add argument.
12996 * target.c (update_current_target): Update.
12997 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12998
12999 2014-02-19 Tom Tromey <tromey@redhat.com>
13000
13001 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13002 argument.
13003 (target_set_circular_trace_buffer): Add argument.
13004 * target.c (update_current_target): Update.
13005 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13006 argument.
13007
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13009
13010 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13011 argument.
13012 (target_set_disconnected_tracing): Add argument.
13013 * target.c (update_current_target): Update.
13014 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13015
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops)
13019 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13020 (target_get_min_fast_tracepoint_insn_len): Add argument.
13021 * target.c (update_current_target): Update.
13022 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13023 argument.
13024
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13028 argument.
13029 (target_get_raw_trace_data): Add argument.
13030 * target.c (update_current_target): Update.
13031 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13032
13033 2014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13036 Add argument.
13037 (target_upload_trace_state_variables): Add argument.
13038 * target.c (update_current_target): Update.
13039 * remote.c (remote_upload_trace_state_variables): Add 'self'
13040 argument.
13041 (remote_start_remote): Update.
13042
13043 2014-02-19 Tom Tromey <tromey@redhat.com>
13044
13045 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13046 argument.
13047 (target_upload_tracepoints): Add argument.
13048 * target.c (update_current_target): Update.
13049 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13050 (remote_start_remote): Update.
13051
13052 2014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13055 (target_save_trace_data): Add argument.
13056 * target.c (update_current_target): Update.
13057 * remote.c (remote_save_trace_data): Add 'self' argument.
13058
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13062 argument.
13063 * target.h (struct target_ops)
13064 <to_get_trace_state_variable_value>: Add argument.
13065 (target_get_trace_state_variable_value): Add argument.
13066 * target.c (update_current_target): Update.
13067 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13068 argument.
13069 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13070
13071 2014-02-19 Tom Tromey <tromey@redhat.com>
13072
13073 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13074 * target.h (struct target_ops) <to_trace_find>: Add argument.
13075 (target_trace_find): Add argument.
13076 * target.c (update_current_target): Update.
13077 * remote.c (remote_trace_find): Add 'self' argument.
13078 * ctf.c (ctf_trace_find): Add 'self' argument.
13079
13080 2014-02-19 Tom Tromey <tromey@redhat.com>
13081
13082 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13083 (target_trace_stop): Add argument.
13084 * target.c (update_current_target): Update.
13085 * remote.c (remote_trace_stop): Add 'self' argument.
13086
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13090 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13091 argument.
13092 (target_get_tracepoint_status): Add argument.
13093 * target.c (update_current_target): Update.
13094 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13095
13096 2014-02-19 Tom Tromey <tromey@redhat.com>
13097
13098 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13099 * target.h (struct target_ops) <to_get_trace_status>: Add
13100 argument.
13101 (target_get_trace_status): Add argument.
13102 * target.c (update_current_target): Update.
13103 * remote.c (remote_get_trace_status): Add 'self' argument.
13104 (remote_start_remote, remote_can_download_tracepoint): Update.
13105 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13106
13107 2014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_trace_start>: Add argument.
13110 (target_trace_start): Add argument.
13111 * target.c (update_current_target): Update.
13112 * remote.c (remote_trace_start): Add 'self' argument.
13113
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13115
13116 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13117 Add argument.
13118 (target_trace_set_readonly_regions): Add argument.
13119 * target.c (update_current_target): Update.
13120 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13121 argument.
13122
13123 2014-02-19 Tom Tromey <tromey@redhat.com>
13124
13125 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13126 argument.
13127 (target_disable_tracepoint): Add argument.
13128 * target.c (update_current_target): Update.
13129 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13130
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13132
13133 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13134 argument.
13135 (target_enable_tracepoint): Add argument.
13136 * target.c (update_current_target): Update.
13137 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13138
13139 2014-02-19 Tom Tromey <tromey@redhat.com>
13140
13141 * target.h (struct target_ops) <to_download_trace_state_variable>:
13142 Add argument.
13143 (target_download_trace_state_variable): Add argument.
13144 * target.c (update_current_target): Update.
13145 * remote.c (remote_download_trace_state_variable): Add 'self'
13146 argument.
13147
13148 2014-02-19 Tom Tromey <tromey@redhat.com>
13149
13150 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13151 argument.
13152 (target_can_download_tracepoint): Add argument.
13153 * target.c (update_current_target): Update.
13154 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13155
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13157
13158 * target.h (struct target_ops) <to_download_tracepoint>: Add
13159 argument.
13160 (target_download_tracepoint): Add argument.
13161 * target.c (update_current_target): Update.
13162 * remote.c (remote_download_tracepoint): Add 'self' argument.
13163
13164 2014-02-19 Tom Tromey <tromey@redhat.com>
13165
13166 * target.h (struct target_ops) <to_trace_init>: Add argument.
13167 (target_trace_init): Add argument.
13168 * target.c (update_current_target): Update.
13169 * remote.c (remote_trace_init): Add 'self' argument.
13170
13171 2014-02-19 Tom Tromey <tromey@redhat.com>
13172
13173 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13174 * target.c (target_fileio_readlink): Add argument.
13175 * remote.c (remote_hostio_readlink): Add 'self' argument.
13176 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13177
13178 2014-02-19 Tom Tromey <tromey@redhat.com>
13179
13180 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13181 * target.c (target_fileio_unlink): Add argument.
13182 * remote.c (remote_hostio_unlink): Add 'self' argument.
13183 (remote_file_delete): Update.
13184 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13185
13186 2014-02-19 Tom Tromey <tromey@redhat.com>
13187
13188 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13189 * target.c (target_fileio_close): Add argument.
13190 * remote.c (remote_hostio_close): Add 'self' argument.
13191 (remote_hostio_close_cleanup): Update.
13192 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13193 Update.
13194 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13195
13196 2014-02-19 Tom Tromey <tromey@redhat.com>
13197
13198 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13199 * target.c (target_fileio_pread): Add argument.
13200 * remote.c (remote_hostio_pread): Add 'self' argument.
13201 (remote_bfd_iovec_pread, remote_file_get): Update.
13202 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13203
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13205
13206 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13207 * target.c (target_fileio_pwrite): Add argument.
13208 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13209 (remote_file_put): Update.
13210 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13211
13212 2014-02-19 Tom Tromey <tromey@redhat.com>
13213
13214 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13215 * target.c (target_fileio_open): Add argument.
13216 * remote.c (remote_hostio_open): Add 'self' argument.
13217 (remote_bfd_iovec_open): Add 'self' argument.
13218 (remote_file_put): Add 'self' argument.
13219 (remote_file_get): Add 'self' argument.
13220 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13221
13222 2014-02-19 Tom Tromey <tromey@redhat.com>
13223
13224 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13225 Add argument.
13226 (target_can_run_breakpoint_commands): Add argument.
13227 * target.c (update_current_target): Update.
13228 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13229 argument.
13230 (remote_insert_breakpoint): Add 'self' argument.
13231 (remote_insert_hw_breakpoint): Add 'self' argument.
13232 (remote_can_run_breakpoint_commands): Add 'self' argument.
13233
13234 2014-02-19 Tom Tromey <tromey@redhat.com>
13235
13236 * target.h (struct target_ops)
13237 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13238 (target_supports_evaluation_of_breakpoint_conditions): Add
13239 argument.
13240 * target.c (update_current_target): Update.
13241 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13242 argument.
13243 (remote_insert_breakpoint): Add 'self' argument.
13244 (remote_insert_hw_breakpoint): Add 'self' argument.
13245 (remote_supports_cond_breakpoints): Add 'self' argument.
13246
13247 2014-02-19 Tom Tromey <tromey@redhat.com>
13248
13249 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13250 argument.
13251 (target_supports_string_tracing): Add argument.
13252 * target.c (update_current_target): Update.
13253 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13254
13255 2014-02-19 Tom Tromey <tromey@redhat.com>
13256
13257 * target.h (struct target_ops)
13258 <to_supports_disable_randomization>: Add argument.
13259 * target.c (find_default_supports_disable_randomization): Add
13260 argument.
13261 (target_supports_disable_randomization): Add argument.
13262 (find_default_supports_disable_randomization): Add 'self'
13263 argument.
13264 * remote.c (extended_remote_supports_disable_randomization): Add
13265 'self' argument.
13266 (remote_supports_disable_randomization): Add 'self' argument.
13267 (extended_remote_create_inferior): Update.
13268 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13269 'self' argument.
13270
13271 2014-02-19 Tom Tromey <tromey@redhat.com>
13272
13273 * target.h (struct target_ops)
13274 <to_supports_enable_disable_tracepoint>: Add argument.
13275 (target_supports_enable_disable_tracepoint): Add argument.
13276 * target.c (update_current_target): Update.
13277 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13278 argument.
13279
13280 2014-02-19 Tom Tromey <tromey@redhat.com>
13281
13282 * target.h (struct target_ops) <to_supports_multi_process>: Add
13283 argument.
13284 (target_supports_multi_process): Add argument.
13285 * target.c (update_current_target): Update.
13286 * remote.c (remote_supports_multi_process): Add 'self' argument.
13287 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13288 argument.
13289 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13290 argument.
13291
13292 2014-02-19 Tom Tromey <tromey@redhat.com>
13293
13294 * target.h (struct target_ops) <to_execution_direction>: Add
13295 argument.
13296 (target_execution_direction): Add argument.
13297 * target.c (default_execution_direction): Add 'self' argument.
13298 * record-full.c (record_full_execution_direction): Add 'self'
13299 argument.
13300
13301 2014-02-19 Tom Tromey <tromey@redhat.com>
13302
13303 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13304 argument.
13305 (target_can_execute_reverse): Add argument.
13306 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13307 * record-full.c (record_full_can_execute_reverse): Add 'self'
13308 argument.
13309 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13310 argument.
13311
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13313
13314 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13315 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13316 argument.
13317 (target_get_ada_task_ptid): Add argument.
13318 * target.c (update_current_target): Update.
13319 (default_get_ada_task_ptid): Add 'self' argument.
13320 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13321 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13322 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13323 argument.
13324 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13325 argument.
13326 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13327 argument.
13328 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13329 argument.
13330 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13331 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13332 argument.
13333
13334 2014-02-19 Tom Tromey <tromey@redhat.com>
13335
13336 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13337 (target_goto_bookmark): Add argument.
13338 * target.c (dummy_goto_bookmark): Add 'self' argument.
13339 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13340
13341 2014-02-19 Tom Tromey <tromey@redhat.com>
13342
13343 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13344 (target_get_bookmark): Add argument.
13345 * target.c (dummy_get_bookmark): Add 'self' argument.
13346 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13347
13348 2014-02-19 Tom Tromey <tromey@redhat.com>
13349
13350 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13351 argument.
13352 (target_make_corefile_notes): Add argument.
13353 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13354 * procfs.c (procfs_make_note_section): Add 'self' argument.
13355 (procfs_make_note_section): Add 'self' argument.
13356 (procfs_make_note_section): Add 'self' argument.
13357 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13358 argument.
13359 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13360 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13361 * exec.c (exec_make_note_section): Add 'self' argument.
13362 (exec_make_note_section): Add 'self' argument.
13363
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13365
13366 * target.h (struct target_ops) <to_find_memory_regions>: Add
13367 argument.
13368 (target_find_memory_regions): Add argument.
13369 * target.c (dummy_find_memory_regions): Add 'self' argument.
13370 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13371 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13372 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13373 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13374 * exec. (exec_do_find_memory_regions): New global.
13375 (exec_set_find_memory_regions): Rewrite.
13376 (exec_find_memory_regions): New function.
13377 (init_exec_ops): Use exec_find_memory_regions.
13378
13379 2014-02-19 Tom Tromey <tromey@redhat.com>
13380
13381 * target.h (struct target_ops) <to_supports_non_stop>: Add
13382 argument.
13383 * target.c (find_default_supports_non_stop): Add argument.
13384 (target_supports_non_stop): Add argument.
13385 (find_default_supports_non_stop): Add 'self' argument.
13386 * remote.c (remote_supports_non_stop): Add 'self' argument.
13387 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13388
13389 2014-02-19 Tom Tromey <tromey@redhat.com>
13390
13391 * target.h (struct target_ops) <to_log_command>: Add argument.
13392 (target_log_command): Add argument.
13393 * serial.h (serial_log_command): Add 'self' argument.
13394 * serial.c (serial_log_command): Add 'self' argument.
13395
13396 2014-02-19 Tom Tromey <tromey@redhat.com>
13397
13398 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13399 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13400 argument.
13401 (target_pid_to_exec_file): Add argument.
13402 * target.c (debug_to_pid_to_exec_file): Add argument.
13403 (update_current_target): Update.
13404 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13405 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13406 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13407 (linux_handle_extended_wait): Update.
13408 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13409 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13410 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13411 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13412
13413 2014-02-19 Tom Tromey <tromey@redhat.com>
13414
13415 * target.h (struct target_ops) <to_rcmd>: Add argument.
13416 (target_rcmd): Add argument.
13417 * target.c (debug_to_rcmd): Add argument.
13418 (update_current_target, do_monitor_command): Update.
13419 * remote.c (remote_rcmd): Add 'self' argument.
13420 * monitor.c (monitor_rcmd): Add 'self' argument.
13421
13422 2014-02-19 Tom Tromey <tromey@redhat.com>
13423
13424 * windows-nat.c (windows_stop): Add 'self' argument.
13425 * target.h (struct target_ops) <to_stop>: Add argument.
13426 * target.c (target_stop): Add argument.
13427 (debug_to_stop): Add argument.
13428 (update_current_target): Update.
13429 * remote.c (remote_stop): Add 'self' argument.
13430 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13431 (gdbsim_cntrl_c): Update.
13432 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13433 * procfs.c (procfs_stop): Add 'self' argument.
13434 * nto-procfs.c (procfs_stop): Add 'self' argument.
13435 * monitor.c (monitor_stop): Add 'self' argument.
13436 (monitor_open): Update.
13437 * linux-nat.c (linux_nat_stop): Add argument.
13438 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13439 * gnu-nat.c (gnu_stop): Add 'self' argument.
13440 * darwin-nat.c (darwin_stop): Add 'self' argument.
13441
13442 2014-02-19 Tom Tromey <tromey@redhat.com>
13443
13444 * target.h (struct target_ops) <to_thread_name>: Add argument.
13445 * target.c (target_thread_name): Add argument.
13446 (update_current_target): Update.
13447 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13448
13449 2014-02-19 Tom Tromey <tromey@redhat.com>
13450
13451 * target.h (struct target_ops) <to_extra_thread_info>: Add
13452 argument.
13453 (target_extra_thread_info): Add argument.
13454 * target.c (update_current_target): Update.
13455 * remote.c (remote_threads_extra_info): Add 'self' argument.
13456 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13457 argument.
13458 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13459 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13460 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13461 argument.
13462 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13463 argument.
13464 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13465 argument.
13466 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13467 argument.
13468
13469 2014-02-19 Tom Tromey <tromey@redhat.com>
13470
13471 * target.h (struct target_ops) <to_program_signals>: Add argument.
13472 * target.c (target_program_signals): Add argument.
13473 * remote.c (remote_program_signals): Add 'self' argument.
13474
13475 2014-02-19 Tom Tromey <tromey@redhat.com>
13476
13477 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13478 * target.c (target_pass_signals): Add argument.
13479 * remote.c (remote_pass_signals): Add 'self' argument.
13480 (remote_start_remote): Update.
13481 * procfs.c (procfs_pass_signals): Add 'self' argument.
13482 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13483 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13484 (linux_nat_create_inferior, linux_nat_attach): Update.
13485
13486 2014-02-19 Tom Tromey <tromey@redhat.com>
13487
13488 * windows-nat.c (windows_can_run): Add 'self' argument.
13489 * target.h (struct target_ops) <to_can_run>: Add argument.
13490 (target_can_run): Add argument.
13491 * target.c (debug_to_can_run): Add argument.
13492 (update_current_target): Update.
13493 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13494 * inf-child.c (inf_child_can_run): Add 'self' argument.
13495 * go32-nat.c (go32_can_run): Add 'self' argument.
13496
13497 2014-02-19 Tom Tromey <tromey@redhat.com>
13498
13499 * target.h (struct target_ops) <to_has_exited>: Add argument.
13500 (target_has_exited): Add argument.
13501 * target.c (debug_to_has_exited): Add argument.
13502 (update_current_target): Update.
13503
13504 2014-02-19 Tom Tromey <tromey@redhat.com>
13505
13506 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13507 argument.
13508 (target_set_syscall_catchpoint): Add argument.
13509 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13510 argument.
13511 * target.c (update_current_target): Update.
13512
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13516 argument.
13517 (target_remove_exec_catchpoint): Add argument.
13518 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13519 (update_current_target): Update.
13520 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13521 argument.
13522
13523 2014-02-19 Tom Tromey <tromey@redhat.com>
13524
13525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13526 argument.
13527 (target_insert_exec_catchpoint): Add argument.
13528 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13529 (update_current_target): Update.
13530 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13531 argument.
13532
13533 2014-02-19 Tom Tromey <tromey@redhat.com>
13534
13535 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13536 argument.
13537 (target_remove_vfork_catchpoint): Add argument.
13538 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13539 (update_current_target): Update.
13540 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13541 argument.
13542
13543 2014-02-19 Tom Tromey <tromey@redhat.com>
13544
13545 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13546 argument.
13547 (target_insert_vfork_catchpoint): Add argument.
13548 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13549 (update_current_target): Update.
13550 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13551 argument.
13552
13553 2014-02-19 Tom Tromey <tromey@redhat.com>
13554
13555 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13556 argument.
13557 (target_remove_fork_catchpoint): Add argument.
13558 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13559 (update_current_target): Update.
13560 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13561 argument.
13562
13563 2014-02-19 Tom Tromey <tromey@redhat.com>
13564
13565 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13566 argument.
13567 (target_insert_fork_catchpoint): Add argument.
13568 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13569 (update_current_target): Update.
13570 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13571 argument.
13572
13573 2014-02-19 Tom Tromey <tromey@redhat.com>
13574
13575 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13576 argument.
13577 (target_post_startup_inferior): Add argument.
13578 * target.c (debug_to_post_startup_inferior): Add argument.
13579 (update_current_target): Update.
13580 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13581 argument.
13582 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13583 argument.
13584 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13585 argument.
13586 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13587 argument.
13588 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13589 'self' argument.
13590 (super_post_startup_inferior): Likewise.
13591 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13592 'self' argument.
13593 (super_post_startup_inferior): Likewise.
13594 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13595 Add 'self' argument.
13596 (super_post_startup_inferior): Likewise.
13597
13598 2014-02-19 Tom Tromey <tromey@redhat.com>
13599
13600 * target.h (struct target_ops) <to_load>: Add argument.
13601 * target.c (target_load): Add argument.
13602 (debug_to_load): Add argument.
13603 (update_current_target): Update.
13604 * remote.c (remote_load): Add 'self' argument.
13605 * remote-sim.c (gdbsim_load): Add 'self' argument.
13606 * remote-mips.c (mips_load): Add 'self' argument.
13607 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13608 * monitor.c (monitor_load): Add 'self' argument.
13609 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13610
13611 2014-02-19 Tom Tromey <tromey@redhat.com>
13612
13613 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13614 (target_terminal_info): Add argument.
13615 * target.c (debug_to_terminal_info): Add argument.
13616 (default_terminal_info): Likewise.
13617 * inflow.c (child_terminal_info): Add 'self' argument.
13618 * inferior.h (child_terminal_info): Add 'self' argument.
13619 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13620
13621 2014-02-19 Tom Tromey <tromey@redhat.com>
13622
13623 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13624 argument.
13625 (target_terminal_save_ours): Add argument.
13626 * target.c (debug_to_terminal_save_ours): Add argument.
13627 (update_current_target): Update.
13628 * inflow.c (terminal_save_ours): Add 'self' argument.
13629 * inferior.h (terminal_save_ours): Add 'self' argument.
13630
13631 2014-02-19 Tom Tromey <tromey@redhat.com>
13632
13633 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13634 (target_terminal_ours): Add argument.
13635 * target.c (debug_to_terminal_ours): Add argument.
13636 (update_current_target): Update.
13637 * remote.c (remote_terminal_ours): Add 'self' argument.
13638 (remote_close): Update.
13639 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13640 * inflow.c (terminal_ours): Add 'self' argument.
13641 * inferior.h (terminal_ours): Add 'self' argument.
13642 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13643
13644 2014-02-19 Pedro Alves <palves@redhat.com>
13645 Tom Tromey <tromey@redhat.com>
13646
13647 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13648 argument.
13649 (target_terminal_ours_for_output): Add argument.
13650 * target.c (debug_to_terminal_ours_for_output): Add argument.
13651 (update_current_target): Update.
13652 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13653 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13654 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13655
13656 2014-02-19 Tom Tromey <tromey@redhat.com>
13657
13658 * target.h (struct target_ops) <to_terminal_inferior>: Add
13659 argument.
13660 * target.c (target_terminal_inferior): Add argument.
13661 (update_current_target): Update.
13662 * remote.c (remote_terminal_inferior): Add 'self' argument.
13663 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13664 * inflow.c (terminal_inferior): Add 'self' argument.
13665 * inferior.h (terminal_inferior): Add 'self' argument.
13666 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13667 (go32_terminal_inferior): Add 'self' argument.
13668
13669 2014-02-19 Tom Tromey <tromey@redhat.com>
13670
13671 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13672 (target_terminal_init): Add argument.
13673 * target.c (debug_to_terminal_init): Add argument.
13674 (update_current_target): Update.
13675 * inflow.c (terminal_init_inferior): Add 'self' argument.
13676 * inferior.h (terminal_init_inferior): Add 'self' argument.
13677 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13678 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13679
13680 2014-02-19 Tom Tromey <tromey@redhat.com>
13681
13682 * target.h (struct target_ops)
13683 <to_can_accel_watchpoint_condition>: Add argument.
13684 (target_can_accel_watchpoint_condition): Add argument.
13685 * target.c (debug_to_can_accel_watchpoint_condition): Add
13686 argument.
13687 (update_current_target): Update.
13688 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13689 'self' argument.
13690
13691 2014-02-19 Tom Tromey <tromey@redhat.com>
13692
13693 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13694 Add argument.
13695 (target_region_ok_for_hw_watchpoint): Add argument.
13696 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13697 (default_region_ok_for_hw_watchpoint): Add argument.
13698 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13699 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13700 argument.
13701 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13702 argument.
13703 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13704 argument.
13705 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13706 'self' argument.
13707 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13708 'self' argument.
13709 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13710 'self' argument.
13711 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13712 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13713 'self' argument.
13714 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13715 Add 'self' argument.
13716
13717 2014-02-19 Tom Tromey <tromey@redhat.com>
13718
13719 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13720 argument.
13721 (target_insert_watchpoint): Add argument.
13722 * target.c (debug_to_insert_watchpoint): Add argument.
13723 (update_current_target): Update.
13724 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13725 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13726 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13727 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13728 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13729 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13730 argument.
13731 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13732 (procfs_insert_hw_watchpoint): Add 'self' argument.
13733 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13734 argument.
13735 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13736 argument.
13737 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13738 argument.
13739 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13740 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13741 argument.
13742 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13743 'self' argument.
13744
13745 2014-02-19 Tom Tromey <tromey@redhat.com>
13746
13747 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13748 argument.
13749 (target_remove_watchpoint): Add argument.
13750 * target.c (debug_to_remove_watchpoint): Add argument.
13751 (update_current_target): Update.
13752 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13753 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13754 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13755 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13756 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13757 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13758 argument.
13759 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13760 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13761 argument.
13762 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13763 argument.
13764 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13765 argument.
13766 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13767 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13768 argument.
13769 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13770 'self' argument.
13771
13772 2014-02-19 Tom Tromey <tromey@redhat.com>
13773
13774 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13775 argument.
13776 (target_remove_hw_breakpoint): Add argument.
13777 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13778 (update_current_target): Update.
13779 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13780 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13781 argument.
13782 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13783 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13784 argument.
13785 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13786 'self' argument.
13787
13788 2014-02-19 Tom Tromey <tromey@redhat.com>
13789
13790 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13791 argument.
13792 (target_insert_hw_breakpoint): Add argument.
13793 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13794 (update_current_target): Update.
13795 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13796 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13797 argument.
13798 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13799 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13800 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13801 argument.
13802 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13803 'self' argument.
13804
13805 2014-02-19 Tom Tromey <tromey@redhat.com>
13806
13807 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13808 argument.
13809 (target_can_use_hardware_watchpoint): Add argument.
13810 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13811 (update_current_target): Update.
13812 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13813 argument.
13814 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13815 argument.
13816 * remote.c (remote_check_watch_resources): Add 'self' argument.
13817 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13818 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13819 argument.
13820 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13821 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13822 argument.
13823 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13824 argument.
13825 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13826 argument.
13827 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13828 argument.
13829 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13830 argument.
13831 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13832 argument.
13833 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13834 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13835 argument.
13836 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13837 'self' argument.
13838
13839 2014-02-19 Tom Tromey <tromey@redhat.com>
13840
13841 * target.h (struct target_ops) <to_post_attach>: Add argument.
13842 (target_post_attach): Add argument.
13843 * target.c (debug_to_post_attach): Add argument.
13844 (update_current_target): Update.
13845 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13846 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13847 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13848 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13849 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13850
13851 2014-02-19 Tom Tromey <tromey@redhat.com>
13852
13853 * windows-nat.c (windows_close): Add 'self' argument.
13854 * tracepoint.c (tfile_close): Add 'self' argument.
13855 * target.h (struct target_ops) <to_close>: Add argument.
13856 * target.c (target_close): Add argument.
13857 (update_current_target): Update.
13858 * remote.c (remote_close): Add 'self' argument.
13859 * remote-sim.c (gdbsim_close): Add 'self' argument.
13860 * remote-mips.c (mips_close): Add 'self' argument.
13861 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13862 * record-full.c (record_full_close): Add 'self' argument.
13863 * record-btrace.c (record_btrace_close): Add 'self' argument.
13864 * monitor.h (monitor_close): Add 'self' argument.
13865 * monitor.c (monitor_close): Add 'self' argument.
13866 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13867 * linux-nat.c (linux_nat_close): Add argument.
13868 * go32-nat.c (go32_close): Add 'self' argument.
13869 * exec.c (exec_close_1): Add 'self' argument.
13870 * ctf.c (ctf_close): Add 'self' argument.
13871 * corelow.c (core_close): Add 'self' argument.
13872 (core_close_cleanup): Update.
13873 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13874 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13875
13876 2014-02-19 Tom Tromey <tromey@redhat.com>
13877
13878 * remote.c (remote_load): New function.
13879 (init_remote_ops): Use it.
13880
13881 2014-02-19 Tom Tromey <tromey@redhat.com>
13882
13883 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13884 argument.
13885 * common/linux-btrace.h (linux_supports_btrace): Update.
13886 * remote.c (remote_supports_btrace): Add "self" argument.
13887 * target-delegates.c: Rebuild.
13888 * target.c (target_supports_btrace): Remove.
13889 * target.h (struct target_ops) <to_supports_btrace>: Add
13890 target_ops argument.
13891 (target_supports_btrace): New define.
13892
13893 2014-02-19 Tom Tromey <tromey@redhat.com>
13894
13895 * record-full.c (record_full_beneath_to_resume_ops)
13896 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13897 (record_full_beneath_to_wait)
13898 (record_full_beneath_to_store_registers_ops)
13899 (record_full_beneath_to_store_registers)
13900 (record_full_beneath_to_xfer_partial_ops)
13901 (record_full_beneath_to_xfer_partial)
13902 (record_full_beneath_to_insert_breakpoint_ops)
13903 (record_full_beneath_to_insert_breakpoint)
13904 (record_full_beneath_to_remove_breakpoint_ops)
13905 (record_full_beneath_to_remove_breakpoint)
13906 (record_full_beneath_to_stopped_by_watchpoint)
13907 (record_full_beneath_to_stopped_data_address)
13908 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13909 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13910 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13911 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13912 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13913 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13914 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13915 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13916 (record_full_resume, record_full_wait_1)
13917 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13918 (record_full_store_registers, record_full_xfer_partial)
13919 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13920 (record_full_async, record_full_core_xfer_partial): Use target
13921 delegation.
13922 * target-delegates.c: Rebuild.
13923 * target.c (current_xfer_partial): Remove.
13924 (update_current_target): Do not INHERIT or de_fault
13925 to_insert_breakpoint, to_remove_breakpoint,
13926 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13927 to_is_async_p, to_async. Do not set to_xfer_partial field.
13928 (default_xfer_partial): Simplify.
13929 (current_xfer_partial): Remove.
13930 (target_wait, target_resume): Simplify.
13931 (find_default_can_async_p, find_default_is_async_p): Update.
13932 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13933 to_xfer_partial, to_stopped_by_watchpoint,
13934 to_stopped_data_address.
13935 (target_store_registers): Simplify.
13936 (forward_target_remove_breakpoint)
13937 (forward_target_insert_breakpoint): Remove.
13938 (target_remove_breakpoint, target_insert_breakpoint)
13939 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13940 * target.h (struct target_ops) <to_resume, to_wait,
13941 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13942 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13943 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13944 markup.
13945 (forward_target_remove_breakpoint)
13946 (forward_target_insert_breakpoint): Remove.
13947 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13948 directly.
13949 (record_btrace_insert_breakpoint): Delegate directly.
13950
13951 2014-02-19 Tom Tromey <tromey@redhat.com>
13952
13953 PR build/7701:
13954 * target-delegates.c: New file.
13955 * target.c: Include target-delegates.c.
13956 (init_dummy_target): Call install_dummy_methods.
13957 (complete_target_initialization): Call install_delegators.
13958 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13959 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13960 * make-target-delegates: New file.
13961
13962 2014-02-19 Tom Tromey <tromey@redhat.com>
13963
13964 * record.c (find_record_target): Use find_target_at.
13965 * target.c (find_target_at): New function.
13966 * target.h (find_target_at): Declare.
13967
13968 2014-02-19 Tom Tromey <tromey@redhat.com>
13969
13970 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13971 Add 'ops' argument.
13972 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13973 'ops' argument.
13974 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13975 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13976 'ops' argument.
13977 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13978 argument.
13979 * linux-nat.c (save_sigtrap): Update.
13980 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13981 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13982 (linux_nat_close): Update.
13983 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13984 argument.
13985 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13986 argument.
13987 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13988 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13989 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13990 (tmp_to_async): Add 'ops' argument.
13991 (record_full_stopped_by_watchpoint, record_full_async)
13992 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13993 argument.
13994 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13995 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13996 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13997 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13998 (remote_is_async_p, remote_async): Add 'ops' argument.
13999 (remote_stopped_data_address): Update.
14000 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14001 * target.c (update_current_target)
14002 (find_default_can_async_p, find_default_is_async_p): Update.
14003 (init_dummy_target): Update.
14004 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14005 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14006 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14007 (target_can_async_p, target_is_async_p, target_async)
14008 (target_stopped_by_watchpoint): Update.
14009
14010 2014-02-19 Yao Qi <yao@codesourcery.com>
14011
14012 PR gdb/16220
14013 * gdbarch.sh: Remove startup_gdbarch.
14014 * gdbarch.c: Regenerated.
14015 * gdbarch.h: Likewise.
14016
14017 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14018
14019 * rl78-tdep.c (rl78_g10_register_name): New function.
14020 (rl78_return_value): Add g10 support.
14021 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14022 g10.
14023
14024 2014-02-17 Doug Evans <xdje42@gmail.com>
14025
14026 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14027 (SUBDIR_GUILE_SRCS): Ditto.
14028 (scm-gsmob.o): Ditto.
14029
14030 2014-02-17 Yao Qi <yao@codesourcery.com>
14031
14032 * gnu-nat.c (ILL_RPC): Declare defined function.
14033
14034 2014-02-17 Yao Qi <yao@codesourcery.com>
14035
14036 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14037 mach_msg_type_number_t.
14038 (gnu_write_inferior): Likewise.
14039
14040 2014-02-17 Yao Qi <yao@codesourcery.com>
14041
14042 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14043 in format string.
14044 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14045 (inf_validate_procs, inf_signal): Likewise.
14046 (S_exception_raise_request): Likewise.
14047 (do_mach_notify_dead_name): Likewise.
14048 (steal_exc_port): Likewise.
14049 (gnu_read_inferior): Change 'copy_count''s type to
14050 mach_msg_type_number_t.
14051 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14052 format string.
14053
14054 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14055
14056 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14057 flag. Adjust all users; in particular...
14058 (gnu_wait): ..., don't decrement its value in here...
14059 (gnu_create_inferior): ..., and instead set the flag in here,
14060 around the startup_inferior call, and call that one with
14061 START_INFERIOR_TRAPS_EXPECTED.
14062
14063 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14064 (ILL_RPC): ... new macro.
14065 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14066 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14067 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14068 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14069 functions with ILL_RPC macro.
14070 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14071 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14072 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14073 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14074 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14075 (S_proc_getlogin_reply, S_proc_getsid_reply)
14076 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14077 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14078 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14079 (S_proc_getnports_reply, S_proc_is_important_reply)
14080 (S_proc_get_code_reply): New stub functions, generated with
14081 ILL_RPC macro.
14082
14083 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14084 collected the type check structures.
14085
14086 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14087
14088 2014-02-14 Doug Evans <dje@google.com>
14089
14090 * target.c (target_write_partial): Fix result type.
14091
14092 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14093
14094 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14095 the proper offsets to access fpregset_t.
14096
14097 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14098
14099 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14100 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14101 * h8300-tdep.c (setmachinelist): Remove global.
14102 * hppa-tdep.c (hppa_sigtramp): Remove global.
14103 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14104 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14105 * ravenscar-thread.c (update_target_observer): Remove global.
14106 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14107
14108 2014-02-12 Tom Tromey <tromey@redhat.com>
14109
14110 * common/rsp-low.c: Update comments.
14111 * common/rsp-low.h: Update comments.
14112
14113 2014-02-12 Tom Tromey <tromey@redhat.com>
14114
14115 * common/rsp-low.c (convert_ascii_to_int): Remove.
14116 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14117
14118 2014-02-12 Tom Tromey <tromey@redhat.com>
14119
14120 * common/rsp-low.h (unhexify): Don't declare.
14121 * common/rsp-low.c (unhexify): Remove.
14122
14123 2014-02-12 Tom Tromey <tromey@redhat.com>
14124
14125 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14126 * common/rsp-low.c (convert_int_to_ascii): Remove.
14127
14128 2014-02-12 Tom Tromey <tromey@redhat.com>
14129
14130 * common/rsp-low.h (hexify): Don't declare.
14131 * common/rsp-low.c (hexify): Remove.
14132
14133 2014-02-12 Tom Tromey <tromey@redhat.com>
14134
14135 * common/rsp-low.c (hexify): Never take strlen of argument.
14136
14137 2014-02-12 Tom Tromey <tromey@redhat.com>
14138
14139 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14140 * remote.c (extended_remote_run, remote_rcmd)
14141 (remote_download_trace_state_variable, remote_save_trace_data)
14142 (remote_set_trace_notes): Update.
14143 * tracepoint.c (encode_source_string, tfile_write_status)
14144 (tfile_write_uploaded_tsv): Update.
14145
14146 2014-02-12 Tom Tromey <tromey@redhat.com>
14147
14148 * tracepoint.c: Include rsp-low.h.
14149 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14150 * remote.c: Include rsp-low.h.
14151 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14152 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14153 (remote_unescape_input): Move to common/rsp-low.c.
14154 * common/rsp-low.h: New file.
14155 * common/rsp-low.c: New file.
14156 * Makefile.in (SFILES): Add common/rsp-low.c.
14157 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14158 (COMMON_OBS): Add rsp-low.o.
14159 (rsp-low.o): New target.
14160
14161 2014-02-12 Tom Tromey <tromey@redhat.com>
14162
14163 * utils.h: Include print-utils.h.
14164 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14165 (int_string, core_addr_to_string, core_addr_to_string_nz)
14166 (hex_string, hex_string_custom): Don't declare.
14167 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14168 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14169 (hex_string_custom, int_string, core_addr_to_string)
14170 (core_addr_to_string_nz, host_address_to_string): Move to
14171 common/print-utils.c.
14172 * common/print-utils.h: New file.
14173 * common/print-utils.c: New file
14174 * Makefile.in (SFILES): Add common/print-utils.c.
14175 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14176 (COMMON_OBS): Add print-utils.o.
14177 (print-utils.o): New target.
14178
14179 2014-02-12 Tom Tromey <tromey@redhat.com>
14180
14181 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14182
14183 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14184
14185 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14186
14187 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14188
14189 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14190 if a PT_IO ptrace request returns sucessfully but indicates that 0
14191 bytes were transferred.
14192
14193 2014-02-12 Pedro Alves <palves@redhat.com>
14194 Kevin Buettner <kevinb@redhat.com>
14195
14196 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14197 TYPE_INSTANCE_FLAG_CODE_SPACE.
14198
14199 2014-02-12 Pedro Alves <palves@redhat.com>
14200
14201 * h8300-tdep.c (pseudo_from_raw_register)
14202 (raw_from_pseudo_register): New functions.
14203 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14204 them.
14205
14206 2014-02-12 Pedro Alves <palves@redhat.com>
14207
14208 * h8300-tdep.c (h8300_register_sim_regno): New function.
14209 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14210 gdbarch_register_sim_regno hook.
14211
14212 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14213
14214 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14215
14216 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14217
14218 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14219
14220 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14221
14222 * obsd-tdep.h (obsd_init_abi): New prototype.
14223 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14224 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14225 (obsd_init_abi): New functions.
14226 * i386obsd-tdep.c: Include "obsd-tdep.h".
14227 (i386obsd_init_abi): Call obsd_init_abi.
14228 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14229 (amd64obsd_init_abi): Call obsd_init_abi.
14230 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14231 obsd-tdep.c to gdb_target_obs.
14232
14233 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14234
14235 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14236 double float arguments to 16-byte in the argument slots.
14237
14238 2014-02-11 Doug Evans <xdje42@gmail.com>
14239
14240 * configure.ac: Don't crash if pkg-config is not found and guile
14241 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14242 in guile checks.
14243 * configure: Regenerate.
14244
14245 2014-02-11 Yao Qi <yao@codesourcery.com>
14246
14247 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14248 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14249 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14250 * gnu-nat.c (gnu_xfer_memory): Likewise.
14251 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14252 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14253 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14254 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14255
14256 2014-02-11 Yao Qi <yao@codesourcery.com>
14257
14258 * target.h (enum target_xfer_error): Rename to ...
14259 (enum target_xfer_status): ... it. New. All users updated.
14260 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14261 New.
14262 (TARGET_XFER_STATUS_ERROR_P): New macro.
14263 (target_xfer_error_to_string): Remove declaration.
14264 (target_xfer_status_to_string): Declare.
14265 (target_xfer_partial_ftype): Adjust it.
14266 (struct target_ops) <to_xfer_partial>: Return
14267 target_xfer_status. Add argument xfered_len. Update
14268 comments.
14269 * target.c (target_xfer_error_to_string): Rename to ...
14270 (target_xfer_status_to_string): ... it. New. All callers
14271 updated.
14272 (target_read_live_memory): Likewise. Call target_xfer_partial
14273 instead of target_read.
14274 (memory_xfer_live_readonly_partial): Return
14275 target_xfer_status. Add argument xfered_len.
14276 (raw_memory_xfer_partial): Likewise.
14277 (memory_xfer_partial_1): Likewise.
14278 (memory_xfer_partial): Likewise.
14279 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14280 properly. Update debug message.
14281 (default_xfer_partial, current_xfer_partial): Likewise.
14282 (target_write_partial): Likewise.
14283 (target_read_partial): Likewise. All callers updated.
14284 (read_whatever_is_readable): Likewise.
14285 (target_write_with_progress): Likewise.
14286 (target_read_alloc_1): Likewise.
14287
14288 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14289 * auxv.c (procfs_xfer_auxv): Likewise.
14290 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14291 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14292 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14293 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14294 * corefile.c (read_memory): Adjust.
14295 * corelow.c (core_xfer_partial): Likewise.
14296 * ctf.c (ctf_xfer_partial): Likewise.
14297 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14298 updated.
14299 (darwin_xfer_partial): Likewise.
14300 * exec.c (section_table_xfer_memory_partial): Likewise. All
14301 callers updated.
14302 (exec_xfer_partial): Likewise.
14303 * exec.h (section_table_xfer_memory_partial): Update
14304 declaration.
14305 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14306 negative.
14307 (gnu_xfer_partial): Likewise.
14308 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14309 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14310 (ia64_hpux_xfer_solib_got): Likewise.
14311 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14312 type of 'partial_len' to ULONGEST.
14313 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14314 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14315 (linux_nat_xfer_partial): Likewise.
14316 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14317 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14318 * monitor.c (monitor_xfer_memory): Likewise.
14319 (monitor_xfer_partial): Likewise.
14320 * procfs.c (procfs_xfer_partial): Likewise.
14321 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14322 * record-full.c (record_full_xfer_partial): Likewise.
14323 (record_full_core_xfer_partial): Likewise.
14324 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14325 (gdbsim_xfer_partial): Likewise.
14326 * remote.c (remote_write_bytes_aux): Likewise. All callers
14327 updated.
14328 (remote_write_bytes, remote_read_bytes): Likewise. All
14329 callers updated.
14330 (remote_flash_erase): Likewise. All callers updated.
14331 (remote_write_qxfer): Likewise. All callers updated.
14332 (remote_read_qxfer): Likewise. All callers updated.
14333 (remote_xfer_partial): Likewise.
14334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14335 (rs6000_xfer_shared_libraries): Likewise.
14336 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14337 (sol_thread_xfer_partial): Likewise.
14338 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14339 (sparc_xfer_partial): Likewise.
14340 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14341 updated.
14342 (spu_xfer_partial): Likewise.
14343 * spu-multiarch.c (spu_xfer_partial): Likewise.
14344 * tracepoint.c (tfile_xfer_partial): Likewise.
14345 * windows-nat.c (windows_xfer_memory): Likewise.
14346 (windows_xfer_shared_libraries): Likewise.
14347 (windows_xfer_partial): Likewise.
14348 * valprint.c: Replace 'target_xfer_error' with
14349 'target_xfer_status' in comments.
14350
14351 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14352
14353 Checked in by Joel Brobecker <brobecker@adacore.com>.
14354 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14355
14356 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14357
14358 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14359 function parameters.
14360
14361 2014-02-10 Will Newton <will.newton@linaro.org>
14362
14363 * elfread.c (elf_rel_plt_read): Look for a .got section if
14364 looking up .got.plt fails.
14365 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14366 on address passed to elf_gnu_ifunc_record_cache.
14367 (elf_gnu_ifunc_resolve_addr): Likewise.
14368 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14369
14370 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14371
14372 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14373 (X_RETTURN): New macro.
14374 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14375
14376 * sparc64-tdep.c (sparc64_init_abi): Hook
14377 sparc_in_function_epilogue_p.
14378
14379 2014-02-10 Gary Benson <gbenson@redhat.com>
14380
14381 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14382 Rename name_matcher to symbol_matcher.
14383
14384 2014-02-10 Gary Benson <gbenson@redhat.com>
14385
14386 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14387 Use expand_symtabs_file_matcher_ftype and
14388 expand_symtabs_symbol_matcher_ftype.
14389
14390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14391
14392 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14393 (struct ada_symbol_cache): New.
14394 (ada_free_symbol_cache): Forward declare.
14395 (struct ada_pspace_data): New.
14396 (ada_pspace_data_handle): New static global.
14397 (get_ada_pspace_data, ada_pspace_data_cleanup)
14398 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14399 (cache_space, cache): Delete, now folded inside struct
14400 ada_pspace_data.
14401 (ada_get_symbol_cache): New function.
14402 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14403 implementation.
14404 (_initialize_ada_language): Remove initialization of cache_space.
14405 Move call to observer_attach_inferior_exit up, grouping it
14406 with the other observer registrations inside this function.
14407 Rename command to be more general. Add call to
14408 register_program_space_data_with_cleanup.
14409
14410 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14411
14412 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14413 ada_new_objfile_observer.
14414 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14415 (_initialize_tasks): Update uses of ada_new_objfile_observer
14416 and ada_tasks_normal_stop_observer.
14417
14418 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14419
14420 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14421 returned by the 'Length attribute to integer.
14422
14423 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14424
14425 * ada-lang.c (_initialize_ada_language): Initialize
14426 cache_space obstack.
14427
14428 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14429
14430 * ada-lang.c (HASH_SIZE): New macro.
14431 (struct cache_entry): New type.
14432 (cache_space, cache): New static globals.
14433 (ada_clear_symbol_cache, find_entry): New functions.
14434 (lookup_cached_symbol, cache_symbol): Implement.
14435 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14436 (_initialize_ada_language): Attach ada_new_objfile_observer
14437 and ada_free_objfile_observer.
14438
14439 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14440
14441 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14442 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14443 struct block * parameter.
14444 (ada_lookup_symbol_list_worker): Constify local variable "block".
14445 Remove cast which is no longer necessary.
14446
14447 2014-02-10 Doug Evans <xdje42@gmail.com>
14448
14449 Add Guile as an extension language.
14450 * NEWS: Mention Guile scripting.
14451 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14452 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14453 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14454 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14455 (CLIBS): Add GUILE_LIBS.
14456 (install-guile): New rule.
14457 (guile.o): New rule.
14458 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14459 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14460 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14461 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14462 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14463 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14464 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14465 * configure.ac: New option --with-guile.
14466 * configure: Regenerate.
14467 * config.in: Regenerate.
14468 * auto-load.c: Remove #include "python/python.h". Add #include
14469 "gdb/section-scripts.h".
14470 (source_section_scripts): Handle Guile scripts.
14471 (_initialize_auto_load): Add name of Guile objfile script to
14472 scripts-directory help text.
14473 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14474 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14475 (struct breakpoint): New member scm_bp_object.
14476 * defs.h (enum command_control_type): New value guile_control.
14477 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14478 "extension.h".
14479 (show_user): Update comment.
14480 (_initialize_cli_cmds): Update help text for "show user". Update help
14481 text for max-user-call-depth.
14482 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14483 "extension.h".
14484 (multi_line_command_p): Add guile_control.
14485 (print_command_lines): Handle guile_control.
14486 (execute_control_command, recurse_read_control_structure): Ditto.
14487 (process_next_line): Recognize "guile" commands.
14488 * disasm.c (gdb_disassemble_info): Make non-static.
14489 * disasm.h: #include "dis-asm.h".
14490 (struct gdbarch): Add forward decl.
14491 (gdb_disassemble_info): Declare.
14492 * extension.c: #include "guile/guile.h".
14493 (extension_languages): Add guile.
14494 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14495 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14496 * gdbtypes.c (get_unsigned_type_max): New function.
14497 (get_signed_type_minmax): New function.
14498 * gdbtypes.h (get_unsigned_type_max): Declare.
14499 (get_signed_type_minmax): Declare.
14500 * guile/README: New file.
14501 * guile/guile-internal.h: New file.
14502 * guile/guile.c: New file.
14503 * guile/guile.h: New file.
14504 * guile/scm-arch.c: New file.
14505 * guile/scm-auto-load.c: New file.
14506 * guile/scm-block.c: New file.
14507 * guile/scm-breakpoint.c: New file.
14508 * guile/scm-disasm.c: New file.
14509 * guile/scm-exception.c: New file.
14510 * guile/scm-frame.c: New file.
14511 * guile/scm-gsmob.c: New file.
14512 * guile/scm-iterator.c: New file.
14513 * guile/scm-lazy-string.c: New file.
14514 * guile/scm-math.c: New file.
14515 * guile/scm-objfile.c: New file.
14516 * guile/scm-ports.c: New file.
14517 * guile/scm-pretty-print.c: New file.
14518 * guile/scm-safe-call.c: New file.
14519 * guile/scm-string.c: New file.
14520 * guile/scm-symbol.c: New file.
14521 * guile/scm-symtab.c: New file.
14522 * guile/scm-type.c: New file.
14523 * guile/scm-utils.c: New file.
14524 * guile/scm-value.c: New file.
14525 * guile/lib/gdb.scm: New file.
14526 * guile/lib/gdb/boot.scm: New file.
14527 * guile/lib/gdb/experimental.scm: New file.
14528 * guile/lib/gdb/init.scm: New file.
14529 * guile/lib/gdb/iterator.scm: New file.
14530 * guile/lib/gdb/printing.scm: New file.
14531 * guile/lib/gdb/types.scm: New file.
14532 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14533 (VPATH): Add $(GUILE_SRCDIR).
14534 (GUILE_DIR): New variable.
14535 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14536 (all): Add stamp-guile dependency.
14537 (stamp-guile): New rule.
14538 (clean-guile, install-guile, uninstall-guile): New rules.
14539 (install-only): Add install-guile dependency.
14540 (uninstall): Add uninstall-guile dependency.
14541 (clean): Add clean-guile dependency.
14542
14543 2014-02-09 Doug Evans <xdje42@gmail.com>
14544
14545 Revert this patch (which I approved, mea culpa).
14546
14547 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14548
14549 * Makefile.in (all-lib): Remove.
14550 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14551
14552 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14553
14554 Fix Python stack corruption.
14555 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14556 gdb_py_longest.
14557
14558 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14559
14560 * Makefile.in (all-lib): Remove.
14561 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14562
14563 2014-02-07 Doug Evans <dje@google.com>
14564
14565 * extension-priv.h (extension_language_script_ops): Add comment.
14566 (extension_language_ops): Add comment.
14567 (active_ext_lang_state): Fix typo in comment.
14568
14569 2014-02-07 Pedro Alves <palves@redhat.com>
14570
14571 PR breakpoints/16292
14572 * infrun.c (handle_signal_stop) <signal arrives while stepping
14573 over a breakpoint>: Switch back to the stepping thread.
14574
14575 2014-02-07 Yao Qi <yao@codesourcery.com>
14576
14577 * target.c (target_xfer_partial): Return zero if LEN is zero.
14578
14579 2014-02-07 Yao Qi <yao@codesourcery.com>
14580
14581 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14582 (ld_so_xfer_auxv): Likewise.
14583 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14584 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14585 * corelow.c (core_xfer_partial): Likewise.
14586 * ctf.c (ctf_xfer_partial): Likewise.
14587 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14588 (darwin_xfer_partial): Likewise.
14589 * exec.c (exec_xfer_partial): Likewise.
14590 * gnu-nat.c (gnu_xfer_partial): Likewise.
14591 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14592 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14593 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14594 * linux-nat.c (linux_xfer_siginfo): Likewise.
14595 (linux_proc_xfer_spu): Likewise.
14596 * procfs.c (procfs_xfer_partial): Likewise.
14597 * record-full.c (record_full_xfer_partial): Likewise.
14598 (record_full_core_xfer_partial): Likewise.
14599 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14600 * remote.c (remote_write_qxfer): Likewise.
14601 (remote_write_qxfer, remote_read_qxfer): Likewise.
14602 (remote_xfer_partial): Likewise.
14603 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14604 (rs6000_xfer_shared_libraries): Likewise.
14605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14607 (spu_xfer_partial): Likewise.
14608 * target.c (memory_xfer_partial_1): Likewise.
14609 * tracepoint.c (tfile_xfer_partial): Likewise.
14610 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14611 (windows_xfer_partial): Likewise.
14612
14613 2014-02-07 Yao Qi <yao@codesourcery.com>
14614
14615 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14616 comments.
14617 (core_xfer_shared_libraries_aix): Likewise.
14618 * gdbarch.c, gdbarch.h: Regenerated.
14619 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14620 ULONGEST. Change 'len_avail' type to ULONGEST.
14621 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14622 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14623 declaration.
14624 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14625
14626 2014-02-07 Yao Qi <yao@codesourcery.com>
14627
14628 * corefile.c (memory_error): Get 'exception' from ERR and pass
14629 'exception' to throw_error.
14630
14631 2014-02-06 Doug Evans <xdje42@gmail.com>
14632
14633 * configure.ac (libpython checking): Remove all but python.o from
14634 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14635 * configure: Regenerate.
14636
14637 * Makefile.in (SFILES): Add extension.c.
14638 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14639 (COMMON_OBS): Add extension.o.
14640 * extension.h: New file.
14641 * extension-priv.h: New file.
14642 * extension.c: New file.
14643
14644 * python/python-internal.h: #include "extension.h".
14645 (gdbpy_auto_load_enabled): Declare.
14646 (gdbpy_apply_val_pretty_printer): Declare.
14647 (gdbpy_apply_frame_filter): Declare.
14648 (gdbpy_preserve_values): Declare.
14649 (gdbpy_breakpoint_cond_says_stop): Declare.
14650 (gdbpy_breakpoint_has_cond): Declare.
14651 (void source_python_script_for_objfile): Delete.
14652 * python/python.c: #include "extension-priv.h".
14653 Delete inclusion of "observer.h".
14654 (extension_language_python): Moved here and renamed from
14655 script_language_python in py-auto-load.c.
14656 Redefined to be of type extension_language_defn.
14657 (python_extension_script_ops): New global.
14658 (python_extension_ops): New global.
14659 (struct python_env): New member previous_active.
14660 (restore_python_env): Call restore_active_ext_lang.
14661 (ensure_python_env): Call set_active_ext_lang.
14662 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14663 New arg extlang.
14664 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14665 New arg extlang.
14666 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14667 New arg extlang.
14668 (gdbpy_eval_from_control_command): Renamed from
14669 eval_python_from_control_command, made static. New arg extlang.
14670 (gdbpy_source_script) Renamed from source_python_script, made static.
14671 New arg extlang.
14672 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14673 result to int. New arg extlang.
14674 (gdbpy_source_objfile_script): Renamed from
14675 source_python_script_for_objfile, made static. New arg extlang.
14676 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14677 static. New args extlang, extlang_printers. Change result type to
14678 "void".
14679 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14680 static. New arg extlang. Rename arg printers to extlang_printers
14681 and change type to ext_lang_type_printers *.
14682 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14683 static. Replace argument arg with extlang, extlang_printers.
14684 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14685 (!HAVE_PYTHON, source_python_script): Delete.
14686 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14687 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14688 (!HAVE_PYTHON, start_type_printers): Delete.
14689 (!HAVE_PYTHON, apply_type_printers): Delete.
14690 (!HAVE_PYTHON, free_type_printers): Delete.
14691 (_initialize_python): Delete call to observer_attach_before_prompt.
14692 (finalize_python): Set/restore active extension language.
14693 (gdbpy_finish_initialization) Renamed from
14694 finish_python_initialization, made static. New arg extlang.
14695 (gdbpy_initialized): New function.
14696 * python/python.h: #include "extension.h". Delete #include
14697 "value.h", "mi/mi-cmds.h".
14698 (extension_language_python): Declare.
14699 (GDBPY_AUTO_FILE_NAME): Delete.
14700 (enum py_bt_status): Moved to extension.h and renamed to
14701 ext_lang_bt_status.
14702 (enum frame_filter_flags): Moved to extension.h.
14703 (enum py_frame_args): Moved to extension.h and renamed to
14704 ext_lang_frame_args.
14705 (finish_python_initialization): Delete.
14706 (eval_python_from_control_command): Delete.
14707 (source_python_script): Delete.
14708 (apply_val_pretty_printer): Delete.
14709 (apply_frame_filter): Delete.
14710 (preserve_python_values): Delete.
14711 (gdbpy_script_language_defn): Delete.
14712 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14713 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14714
14715 * auto-load.c: #include "extension.h".
14716 (GDB_AUTO_FILE_NAME): Delete.
14717 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14718 (script_language_gdb): Delete, moved to extension.c and renamed to
14719 extension_language_gdb.
14720 (source_gdb_script_for_objfile): Delete.
14721 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14722 (loaded_script): Change type of language member to
14723 struct extension_language_defn *.
14724 (init_loaded_scripts_info): Initialize
14725 unsupported_script_warning_printed.
14726 (maybe_add_script): Make static. Change type of language arg to
14727 struct extension_language_defn *.
14728 (clear_section_scripts): Reset unsupported_script_warning_printed.
14729 (auto_load_objfile_script_1): Rewrite to use extension language API.
14730 (auto_load_objfile_script): Make public. Remove support-compiled-in
14731 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14732 (source_section_scripts): Rewrite to use extension language API.
14733 (load_auto_scripts_for_objfile): Rewrite to use
14734 auto_load_scripts_for_objfile.
14735 (collect_matching_scripts_data): Change type of language member to
14736 struct extension_language_defn *.
14737 (auto_load_info_scripts): Change type of language arg to
14738 struct extension_language_defn *.
14739 (unsupported_script_warning_print): New function.
14740 (script_not_found_warning_print): Make static.
14741 (_initialize_auto_load): Rewrite construction of scripts-directory
14742 help.
14743 * auto-load.h (struct objfile): Add forward decl.
14744 (struct script_language): Delete.
14745 (struct auto_load_pspace_info): Add forward decl.
14746 (struct extension_language_defn): Add forward decl.
14747 (maybe_add_script): Delete.
14748 (auto_load_objfile_script): Declare.
14749 (script_not_found_warning_print): Delete.
14750 (auto_load_info_scripts): Update prototype.
14751 (auto_load_gdb_scripts_enabled): Declare.
14752 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14753 auto_load_python_scripts_enabled and made public.
14754 (script_language_python): Delete, moved to python.c.
14755 (gdbpy_script_language_defn): Delete.
14756 (info_auto_load_python_scripts): Update to use
14757 extension_language_python.
14758
14759 * breakpoint.c (condition_command): Replace call to
14760 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14761 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14762 with call to breakpoint_ext_lang_cond_says_stop.
14763 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14764 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14765 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14766 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14767 New arg slang.
14768 (local_setattro): Print name of extension language with existing
14769 stop condition.
14770
14771 * valprint.c (val_print, value_print): Update to call
14772 apply_ext_lang_val_pretty_printer.
14773 * cp-valprint.c (cp_print_value): Update call to
14774 apply_ext_lang_val_pretty_printer.
14775 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14776 (gdbpy_apply_val_pretty_printer): Renamed from
14777 apply_val_pretty_printer. New arg extlang.
14778 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14779
14780 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14781 extension language API.
14782 * cli/cli-script.c (execute_control_command): Update to call
14783 eval_ext_lang_from_control_command.
14784
14785 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14786 enum ext_lang_bt_status values. Update call to
14787 apply_ext_lang_frame_filter.
14788 (mi_cmd_stack_list_locals): Ditto.
14789 (mi_cmd_stack_list_args): Ditto.
14790 (mi_cmd_stack_list_variables): Ditto.
14791 * mi/mi-main.c: Delete #include "python/python-internal.h".
14792 Add #include "extension.h".
14793 (mi_cmd_list_features): Replace reference to python internal variable
14794 gdb_python_initialized with call to ext_lang_initialized_p.
14795
14796 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14797 Update to use enum ext_lang_frame_args. Update to call
14798 apply_ext_lang_frame_filter.
14799 * python/py-framefilter.c (extract_sym): Update to use enum
14800 ext_lang_bt_status.
14801 (extract_value, py_print_type, py_print_value): Ditto.
14802 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14803 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14804 (py_print_frame): Ditto.
14805 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14806 New arg extlang. Update to use enum ext_lang_bt_status.
14807
14808 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14809 finish_python_initialization. Replace with call to
14810 finish_ext_lang_initialization.
14811
14812 * typeprint.c (do_free_global_table): Update to call
14813 free_ext_lang_type_printers.
14814 (create_global_typedef_table): Update to call
14815 start_ext_lang_type_printers.
14816 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14817 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14818 (type_print_options): Change type of global_printers from "void *"
14819 to "struct ext_lang_type_printers *".
14820
14821 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14822 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14823 (gdbpy_preserve_values): Renamed from preserve_python_values.
14824 New arg extlang.
14825 (!HAVE_PYTHON, preserve_python_values): Delete.
14826
14827 * utils.c (quit_flag): Delete, moved to extension.c.
14828 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14829 extension.c.
14830
14831 * eval.c: Delete #include "python/python.h".
14832 * main.c: Delete #include "python/python.h".
14833
14834 * defs.h: Update comment.
14835
14836 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14837
14838 GDB 7.7 released.
14839
14840 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14841
14842 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14843 defined.
14844
14845 2014-02-05 Yao Qi <yao@codesourcery.com>
14846
14847 * remote.c (remote_pass_signals): Remove local 'buf' and use
14848 rs->buf.
14849 (remote_program_signals): Likewise.
14850
14851 2014-02-05 Yao Qi <yao@codesourcery.com>
14852
14853 * ctf.c: Include "inferior.h" and "gdbthread.h".
14854 (CTF_PID): A new macro.
14855 (ctf_open): Call inferior_appeared and add_thread_silent.
14856 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14857 (ctf_thread_alive): New function.
14858 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14859
14860 2014-02-05 Yao Qi <yao@codesourcery.com>
14861
14862 Revert this patch:
14863
14864 2013-05-24 Yao Qi <yao@codesourcery.com>
14865
14866 * tracepoint.c (TFILE_PID): Remove.
14867 (tfile_open): Don't add thread and inferior.
14868 (tfile_close): Don't set 'inferior_ptid'. Don't call
14869 exit_inferior_silent.
14870 (tfile_thread_alive): Remove.
14871 (init_tfile_ops): Don't set field 'to_thread_alive' of
14872 tfile_ops.
14873
14874 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14875
14876 * remote.c (remote_start_remote): Call remote_check_symbols even
14877 if only symbol-file (not file) has been given.
14878
14879 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14880
14881 * gdbarch.sh (skip_entrypoint): New callback.
14882 * gdbarch.c, gdbarch.h: Regenerate.
14883 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14884 * infrun.c (fill_in_stop_func): Likewise.
14885 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14886 (ppc_elfv2_elf_make_msymbol_special): New function.
14887 (ppc_elfv2_skip_entrypoint): Likewise.
14888 (ppc_linux_init_abi): Install them for ELFv2.
14889
14890 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14891
14892 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14893 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14894 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14895 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14896 structures returned in GPRs.
14897
14898 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14899
14900 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14901 offset to the stack parameter list for the ELFv2 ABI.
14902
14903 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14904
14905 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14906 set_gdbarch_convert_from_func_ptr_addr and
14907 set_gdbarch_elf_make_msymbol_special for ELFv1.
14908 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14909 function descriptors on ELFv1.
14910 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14911 set up r12 at function entry.
14912
14913 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14914
14915 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14916 (struct gdbarch_tdep): New member elf_abi.
14917
14918 * rs6000-tdep.c: Include "elf/ppc64.h".
14919 (rs6000_gdbarch_init): Detect ELF ABI version.
14920
14921 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14922
14923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14924 within a register pair holding a DFP 128-bit value on little-endian.
14925 (ppc64_sysv_abi_return_value_base): Likewise.
14926 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14927 (dfp_pseudo_register_write): Likewise.
14928
14929 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14930
14931 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14932 offset on little-endian when passing _Decimal32.
14933 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14934
14935 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14936
14937 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14938 of the overlapped FP register within the VSX register on little-
14939 endian platforms.
14940 (efpr_pseudo_register_write): Likewise.
14941
14942 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14943
14944 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14945 offset on little-endian when passing small structures.
14946
14947 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14948
14949 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14950 (struct ppc64_sysv_argpos): New data structure.
14951 (ppc64_sysv_abi_push_float): Remove.
14952 (ppc64_sysv_abi_push_val): New function.
14953 (ppc64_sysv_abi_push_integer): Likewise.
14954 (ppc64_sysv_abi_push_freg): Likewise.
14955 (ppc64_sysv_abi_push_vreg): Likewise.
14956 (ppc64_sysv_abi_push_param): Likewise.
14957 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14958 (ppc64_sysv_abi_return_value_base): New function.
14959 (ppc64_sysv_abi_return_value): Refactor to use it.
14960
14961 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14962
14963 * NEWS: Document new target powerpc64le-*-linux*.
14964
14965 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14966
14967 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14968 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14969 core dumps.
14970 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14971 register set used in ELF core dumps. Add floating-point register set.
14972
14973 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14974
14975 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14976 dwarf2_to_gdb[] table using symbolic constants. Adjust
14977 penultimate entry from number representing the PC register
14978 to symbolic constant representing the MDR register. Add
14979 constant for the PC register to the end of the table.
14980
14981 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14982
14983 * bsd-kvm.c: Include <sys/param.h>
14984
14985 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14986
14987 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14988
14989 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14990
14991 * ada-lang.h (clear_ada_sym_cache): Delete.
14992
14993 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14994
14995 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14996
14997 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14998
14999 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15000 the sigreturn register save area only if the syscall is
15001 sigreturn.
15002
15003 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15004
15005 * valops.c (value_slice): Minor reformatting.
15006
15007 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15008
15009 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15010
15011 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15012
15013 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15014 New static globals.
15015 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15016 (ada_ignore_descriptive_types_p): New static global.
15017 (find_parallel_type_by_descriptive_type): Return immediately
15018 if ada_ignore_descriptive_types_p is set.
15019 (_initialize_ada_language): Register new commands "maintenance
15020 set ada", "maintenance show ada", "maintenance set ada
15021 ignore-descriptive-types" and "maintenance show ada
15022 ignore-descriptive-types".
15023 * NEWS: Add entry for new "maint ada set/show
15024 ignore-descriptive-types" commands.
15025
15026 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15027
15028 * record-btrace.c (record_btrace_close): Call btrace_teardown
15029 for all threads.
15030
15031 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15032
15033 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15034 "ui-out.h".
15035
15036 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15037
15038 * ada-typeprint (type_is_full_subrange_of_target_type):
15039 New function.
15040 (print_range): Add parameter bounds_prefered_p. If not set,
15041 try printing range types using the name of their base type.
15042 (print_range_type): Add parameter bounds_prefered_p.
15043 Use it in call to print_range.
15044 (print_array_type, ada_print_type): Update calls to print_range
15045 and print_range_type.
15046
15047 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15048
15049 * ada-typeprint.c (print_array_type, print_choices, print_range)
15050 (print_range_bound, print_dynamic_range_bound, print_range_type):
15051 Remove declaration.
15052
15053 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15054
15055 * ada-typeprint.c (print_range): Add missing empty line
15056 after local declaration.
15057
15058 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15059
15060 * ada-valprint.c (print_optional_low_bound): Get index_type's
15061 target type for as long as it is a TYPE_CODE_RANGE.
15062
15063 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15064
15065 * procfs.c (procfs_make_note_section): Remove assertion and
15066 associated comment.
15067
15068 2014-01-24 Yao Qi <yao@codesourcery.com>
15069
15070 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15071 * corelow.c (get_core_siginfo): Likewise.
15072
15073 2014-01-24 Yao Qi <yao@codesourcery.com>
15074
15075 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15076 ULONGEST. Don't check 'len' is negative.
15077 (remote_write_bytes): Change type of 'len' to ULONGEST.
15078
15079 2014-01-23 Tom Tromey <tromey@redhat.com>
15080
15081 PR python/16485:
15082 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15083 Handle exception from frame.block.
15084 (FrameVars.fetch_frame_locals): Likewise.
15085
15086 2014-01-23 Tom Tromey <tromey@redhat.com>
15087
15088 PR python/16487:
15089 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15090 on a NULL pointer. Move "goto error" to correct place.
15091
15092 2014-01-23 Tom Tromey <tromey@redhat.com>
15093
15094 PR python/16491:
15095 * python/py-framefilter.c (apply_frame_filter): Call
15096 ensure_python_env after computing gdbarch.
15097
15098 2014-01-23 Yao Qi <yao@codesourcery.com>
15099
15100 * target.c (raw_memory_xfer_partial): Change argument type
15101 from void * to gdb_byte *.
15102 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15103
15104 2014-01-22 Doug Evans <dje@google.com>
15105
15106 New gdbserver option --debug-format=timestamp.
15107 * NEWS: Mention it.
15108
15109 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15110
15111 * syscalls/s390x-linux.xml: New file.
15112 * syscalls/s390-linux.xml: New file.
15113 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15114 (XML_SYSCALL_FILENAME_S390X): Likewise.
15115 (op_svc): New enum value for SVC opcode.
15116 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15117 (s390_linux_get_syscall_number): New function.
15118 (s390_gdbarch_init): Register '*get_syscall_number' and the
15119 syscall xml file name.
15120 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15121 "s390-linux.xml" and "s390x-linux.xml".
15122 * NEWS: Announce new feature.
15123
15124 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15125
15126 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15127
15128 2014-01-22 Pedro Alves <palves@redhat.com>
15129
15130 * xtensa-config.c: Include defs.h.
15131
15132 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15133
15134 * common/common-utils.h: Add "ARI:" comment beside __func__
15135 reference.
15136
15137 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15138
15139 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15140 documentation a bit.
15141
15142 2014-01-21 Roland McGrath <mcgrathr@google.com>
15143
15144 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15145 * configure: Regenerate.
15146 * aclocal.m4: Regenerate.
15147 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15148 New substituted variables.
15149 (install-strip): New target.
15150 (INSTALL_SCRIPT): New substituted variable.
15151 (FLAGS_TO_PASS): Add it.
15152 (install-only): Use $(INSTALL_SCRIPT) rather than
15153 $(INSTALL_PROGRAM) for gcore.
15154
15155 2014-01-20 Tom Tromey <tromey@redhat.com>
15156
15157 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15158 together.
15159
15160 2014-01-20 Tom Tromey <tromey@redhat.com>
15161
15162 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15163 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15164 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15165 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15166 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15167 (struct cmd_list_element) <flags>: Remove.
15168 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15169 doc_allocated>: New fields.
15170 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15171 bitfields.
15172 * maint.c (maintenance_do_deprecate): Update.
15173 * top.c (execute_command): Update.
15174
15175 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15176
15177 * xtensa-linux-nat.c: Include asm/ptrace.h.
15178
15179 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15180
15181 * Makefile.in (SFILES): Add d-support.c.
15182 (COMMON_OBS): Add d-support.o.
15183 * d-lang.h (d_parse_symbol): Add comment, now defined in
15184 d-support.c.
15185 * d-lang.c (parse_call_convention)
15186 (parse_attributes, parse_function_types)
15187 (parse_function_args, parse_type, parse_identifier)
15188 (call_convention_p, d_parse_symbol): Move functions to ...
15189 * d-support.c: ... New file.
15190
15191 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15192
15193 * d-lang.h (d_parse_symbol): Add declaration.
15194 * d-lang.c (extract_identifiers)
15195 (extract_type_info): Remove functions.
15196 (parse_call_convention, parse_attributes)
15197 (parse_function_types, parse_function_args)
15198 (parse_type, parse_identifier, call_convention_p)
15199 (d_parse_symbol): New functions.
15200 (d_demangle): Use d_parse_symbol to demangle D symbols.
15201
15202 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15203
15204 * d-lang.h (struct builtin_d_type): New data type.
15205 (builtin_d_type): Add declaration.
15206 * d-lang.c (d_language_arch_info, build_d_types)
15207 (builtin_d_type): New functions.
15208 (enum d_primitive_types): New data type.
15209 (d_language_defn): Change c_language_arch_info to
15210 d_language_arch_info.
15211 (d_type_data): New static variable.
15212 (_initialize_d_language): Initialize d_type_data.
15213
15214 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15215
15216 * d-lang.h (d_main_name): Add declaration.
15217 * d-lang.c (d_main_name): New function.
15218 * symtab.c (find_main_name): Add call to d_main_name.
15219
15220 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15221
15222 * d-lang.c (d_language_defn): Change macro_expansion_c to
15223 macro_expansion_no.
15224
15225 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15226
15227 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15228
15229 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15230
15231 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15232 gdb_exception" declaration.
15233 * remote.c (getpkt_or_notif_sane): Likewise.
15234
15235 2014-01-17 Doug Evans <dje@google.com>
15236
15237 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15238 function, contents of dirnames_to_char_ptr_vec_append moved here.
15239 (delim_string_to_char_ptr_vec): New function.
15240 (dirnames_to_char_ptr_vec_append): Rewrite.
15241 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15242
15243 2014-01-17 Doug Evans <dje@google.com>
15244
15245 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15246 and moved here ...
15247 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15248 #include "common-utils.h".
15249 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15250 * common/vec.h (VEC_ASSERT_PASS): Update.
15251 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15252 (MACH_CHECK_ERROR): Update.
15253
15254 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15255
15256 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15257 comments.
15258 * gdbarch.h: Regenerate.
15259
15260 2014-01-16 Tom Tromey <tromey@redhat.com>
15261
15262 * value.c (struct value) <regnum>: Move earlier.
15263
15264 2014-01-16 Tom Tromey <tromey@redhat.com>
15265
15266 * remote.c (extended_remote_create_inferior): Rename from
15267 extended_remote_create_inferior_1. Add "ops" argument. Remove
15268 old implementation.
15269
15270 2014-01-16 Pedro Alves <palves@redhat.com>
15271
15272 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15273 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15274 the backchain.
15275
15276 2014-01-16 Doug Evans <dje@google.com>
15277
15278 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15279
15280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15281
15282 * btrace.h (btrace_thread_flag): New.
15283 (struct btrace_thread_info) <flags>: New.
15284 * record-btrace.c (record_btrace_resume_thread)
15285 (record_btrace_find_thread_to_move, btrace_step_no_history)
15286 (btrace_step_stopped, record_btrace_start_replaying)
15287 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15288 (record_btrace_find_resume_thread): New.
15289 (record_btrace_resume, record_btrace_wait): Extend.
15290 (record_btrace_can_execute_reverse): New.
15291 (record_btrace_open): Fail in non-stop mode.
15292 (record_btrace_set_replay): Split into this, ...
15293 (record_btrace_stop_replaying): ... this, ...
15294 (record_btrace_clear_histories): ... and this.
15295 (init_record_btrace_ops): Init to_can_execute_reverse.
15296 * NEWS: Announce it.
15297
15298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15299
15300 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15301 (forward_target_decr_pc_after_break)
15302 (target_decr_pc_after_break): New.
15303 * target.c (forward_target_decr_pc_after_break)
15304 (target_decr_pc_after_break): New.
15305 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15306 instead of gdbarch_decr_pc_after_break.
15307 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15308 instead of gdbarch_decr_pc_after_break.
15309 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15310 instead of gdbarch_decr_pc_after_break.
15311 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15312 instead of gdbarch_decr_pc_after_break.
15313 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15314 instead of gdbarch_decr_pc_after_break.
15315 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15316 instead of gdbarch_decr_pc_after_break.
15317
15318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15319
15320 * btrace.c: Include regcache.h.
15321 (btrace_add_pc): New.
15322 (btrace_enable): Call btrace_add_pc.
15323 (btrace_is_empty): New.
15324 * btrace.h (btrace_is_empty): New.
15325 * record-btrace.c (require_btrace, record_btrace_info): Call
15326 btrace_is_empty.
15327
15328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15329
15330 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15331 Support delta reads.
15332 (linux_disable_btrace): Change return type.
15333 * common/linux-btrace.h (linux_read_btrace): Change parameters
15334 and return type to allow error reporting. Update users.
15335 (linux_disable_btrace): Change return type. Update users.
15336 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15337 New.
15338 (btrace_error): New.
15339 (btrace_block) <begin>: Comment on BEGIN == 0.
15340 * btrace.c (btrace_compute_ftrace): Start from the end of
15341 the current trace.
15342 (btrace_stitch_trace, btrace_clear_history): New.
15343 (btrace_fetch): Read delta trace, return if replaying.
15344 (btrace_clear): Move clear history code to btrace_clear_history.
15345 (parse_xml_btrace): Throw an error if parsing failed.
15346 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15347 and return type to allow error reporting.
15348 (target_read_btrace): Change parameters and return type to allow
15349 error reporting.
15350 * target.c (target_read_btrace): Update.
15351 * remote.c (remote_read_btrace): Support delta reads. Pass
15352 errors on.
15353 * NEWS: Announce it.
15354
15355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15356
15357 * record.h (record_btrace_frame_unwind)
15358 (record_btrace_tailcall_frame_unwind): New declarations.
15359 * dwarf2-frame: Include record.h
15360 (dwarf2_frame_cfa): Throw an error for btrace frames.
15361 * record-btrace.c: Include hashtab.h.
15362 (btrace_get_bfun_name): New.
15363 (btrace_call_history): Call btrace_get_bfun_name.
15364 (struct btrace_frame_cache): New.
15365 (bfcache): New.
15366 (bfcache_hash, bfcache_eq, bfcache_new): New.
15367 (btrace_get_frame_function): New.
15368 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15369 (record_btrace_frame_this_id): Compute own id.
15370 (record_btrace_frame_prev_register): Provide PC, throw_error
15371 for all other registers.
15372 (record_btrace_frame_sniffer): Detect btrace frames.
15373 (record_btrace_tailcall_frame_sniffer): New.
15374 (record_btrace_frame_dealloc_cache): New.
15375 (record_btrace_frame_unwind): Add new functions.
15376 (record_btrace_tailcall_frame_unwind): New.
15377 (_initialize_record_btrace): Allocate cache.
15378 * btrace.c (btrace_clear): Call reinit_frame_cache.
15379 * NEWS: Announce it.
15380
15381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15382
15383 * record-btrace.c (record_btrace_set_replay)
15384 (record_btrace_goto_begin, record_btrace_goto_end)
15385 (record_btrace_goto): New.
15386 (init_record_btrace_ops): Initialize them.
15387 * NEWS: Announce it.
15388
15389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15390
15391 * record-btrace.c (record_btrace_find_new_threads)
15392 (record_btrace_thread_alive): New.
15393 (init_record_btrace_ops): Initialize to_find_new_threads and
15394 to_thread_alive.
15395
15396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15397
15398 * record-btrace.c (record_btrace_resume): New.
15399 (record_btrace_wait): New.
15400 (init_record_btrace_ops): Initialize to_wait and to_resume.
15401
15402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15403
15404 * record-btrace.c (record_btrace_xfer_partial)
15405 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15406 (record_btrace_allow_memory_access): New.
15407 (init_record_btrace_ops): Initialize new methods.
15408 * target.c (raw_memory_xfer_partial): Bail out if target reports
15409 that this memory is not available.
15410
15411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15412
15413 * target.h (target_ops) <to_insert_breakpoint>
15414 <to_remove_breakpoint>: Add target_ops parameter.
15415 (forward_target_insert_breakpoint): New.
15416 (forward_target_remove_breakpoint): New.
15417 (memory_remove_breakpoint, memory_insert_breakpoint):
15418 Add target_ops parameter.
15419 * target.c (target_insert_breakpoint): Split into this and ...
15420 (forward_target_insert_breakpoint): ... this.
15421 (target_remove_breakpoint): Split into this and ...
15422 (forward_target_remove_breakpoint): ... this.
15423 (debug_to_insert_breakpoint): Add target_ops parameter.
15424 Call forward_target_insert_breakpoint.
15425 (debug_to_remove_breakpoint): Add target_ops parameter.
15426 Call forward_target_remove_breakpoint.
15427 (update_current_target): Do not inherit or default to_insert_breakpoint
15428 and to_remove_breakpoint.
15429 * corelow.c (ignore): Add target_ops parameter.
15430 * exec.c (ignore): Add target_ops parameter.
15431 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15432 Add target_ops parameter.
15433 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15434 Add target_ops parameter.
15435 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15436 Add target_ops parameter.
15437 * record-full.c (record_full_beneath_to_insert_breakpoint)
15438 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15439 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15440 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15441 (record_full_core_remove_breakpoint): Add target_ops parameter.
15442 Update users.
15443 (record_full_beneath_to_insert_breakpoint_ops)
15444 (record_full_beneath_to_remove_breakpoint_ops)
15445 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15446 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15447 tmp_to_remove_breakpoint_ops,
15448 record_full_beneath_to_insert_breakpoint_ops, and
15449 record_full_beneath_to_remove_breakpoint_ops.
15450 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15451 (m32r_remove_breakpoint): Add target_ops parameter.
15452 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15453 Add target_ops parameter.
15454 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15455 Add target_ops parameter.
15456
15457 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15458 Markus Metzger <markus.t.metzger@intel.com>
15459
15460 * record-btrace.c: Include frame-unwind.h.
15461 (record_btrace_frame_unwind_stop_reason)
15462 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15463 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15464 New.
15465 (init_record_btrace_ops): Install it.
15466
15467 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15468
15469 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15470 get_prev_frame_1.
15471
15472 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15473
15474 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15475 earlier.
15476
15477 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15478
15479 * frame-unwind.c: Include target.h.
15480 (frame_unwind_try_unwinder): New function with code from ...
15481 (frame_unwind_find_by_frame): ... here. New variable
15482 unwinder_from_target, call also target_get_unwinder)
15483 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15484 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15485 * target.h (struct target_ops): New fields to_get_unwinder and
15486 to_get_tailcall_unwinder.
15487 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15488
15489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15490
15491 * record-btrace.c (record_btrace_fetch_registers)
15492 (record_btrace_store_registers)
15493 (record_btrace_to_prepare_to_store): New.
15494 (init_record_btrace_ops): Add the above.
15495
15496 2014-01-16 Tom Tromey <tromey@redhat.com>
15497
15498 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15499 * target.h (struct target_ops) <to_prepare_to_store>: Add
15500 argument.
15501 (target_prepare_to_store): Add argument.
15502 * target.c (debug_to_prepare_to_store): Add argument.
15503 (update_current_target): Update.
15504 * remote.c (remote_prepare_to_store): Add 'self' argument.
15505 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15506 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15507 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15508 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15509 argument.
15510 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15511 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15512 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15513 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15514 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15515
15516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15517
15518 * btrace.h (replay) <replay>: New.
15519 (btrace_is_replaying): New.
15520 * btrace.c (btrace_clear): Free replay iterator.
15521 (btrace_is_replaying): New.
15522 * record-btrace.c (record_btrace_is_replaying): New.
15523 (record_btrace_info): Print insn number if replaying.
15524 (record_btrace_insn_history): Start at replay position.
15525 (record_btrace_call_history): Start at replay position.
15526 (init_record_btrace_ops): Init to_record_is_replaying.
15527
15528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15529
15530 * record-btrace.c (record_btrace_insn_history_range): Include
15531 end.
15532 (record_btrace_insn_history_from): Adjust range.
15533 (record_btrace_call_history_range): Include
15534 end.
15535 (record_btrace_call_history_from): Adjust range.
15536 * NEWS: Announce changes.
15537
15538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15539
15540 * record.h (enum record_print_flag)
15541 <record_print_indent_calls>: New.
15542 * record.c (get_call_history_modifiers): Recognize /c modifier.
15543 (_initialize_record): Document /c modifier.
15544 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15545 Reorder fields. Optionally indent the function name. Update
15546 all users.
15547 * NEWS: Announce changes.
15548
15549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15550
15551 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15552
15553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15554
15555 * btrace.c (ftrace_new_function): Start counting at one.
15556 * record-btrace.c (record_btrace_info): Adjust number of calls
15557 and insns.
15558 * NEWS: Announce it.
15559
15560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15561
15562 * record-btrace.c (btrace_call_history_insn_range): Print
15563 insn range as [begin, end].
15564
15565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15566
15567 * btrace.h (struct btrace_func_link): New.
15568 (enum btrace_function_flag): New.
15569 (struct btrace_inst): Rename to ...
15570 (struct btrace_insn): ...this. Update all users.
15571 (struct btrace_func) <ibegin, iend>: Remove.
15572 (struct btrace_func_link): New.
15573 (struct btrace_func): Rename to ...
15574 (struct btrace_function): ...this. Update all users.
15575 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15576 (number, level, flags>: New.
15577 (struct btrace_insn_iterator): Rename to ...
15578 (struct btrace_insn_history): ...this.
15579 Update all users.
15580 (struct btrace_insn_iterator, btrace_call_iterator): New.
15581 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15582 (struct btrace_target_info) <begin, end, level>
15583 <insn_history, call_history>: New.
15584 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15585 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15586 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15587 (btrace_call_number, btrace_call_begin, btrace_call_end)
15588 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15589 (btrace_find_function_by_number, btrace_set_insn_history)
15590 (btrace_set_call_history): New.
15591 * btrace.c (btrace_init_insn_iterator)
15592 (btrace_init_func_iterator, compute_itrace): Remove.
15593 (ftrace_print_function_name, ftrace_print_filename)
15594 (ftrace_skip_file): Change
15595 parameter to const.
15596 (ftrace_init_func): Remove.
15597 (ftrace_debug): Use new btrace_function fields.
15598 (ftrace_function_switched): Also consider gaining and
15599 losing symbol information).
15600 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15601 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15602 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15603 New.
15604 (ftrace_new_function): Move. Remove debug print.
15605 (ftrace_update_lines, ftrace_update_insns): New.
15606 (ftrace_update_function): Check for call, ret, and jump.
15607 (compute_ftrace): Renamed to ...
15608 (btrace_compute_ftrace): ...this. Rewritten to compute call
15609 stack.
15610 (btrace_fetch, btrace_clear): Updated.
15611 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15612 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15613 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15614 (btrace_call_number, btrace_call_begin, btrace_call_end)
15615 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15616 (btrace_find_function_by_number, btrace_set_insn_history)
15617 (btrace_set_call_history): New.
15618 * record-btrace.c (require_btrace): Use new btrace thread
15619 info fields.
15620 (record_btrace_info, btrace_insn_history)
15621 (record_btrace_insn_history, record_btrace_insn_history_range):
15622 Use new btrace thread info fields and new iterator.
15623 (btrace_func_history_src_line): Rename to ...
15624 (btrace_call_history_src_line): ...this. Use new btrace
15625 thread info fields.
15626 (btrace_func_history): Rename to ...
15627 (btrace_call_history): ...this. Use new btrace thread info
15628 fields and new iterator.
15629 (record_btrace_call_history, record_btrace_call_history_range):
15630 Use new btrace thread info fields and new iterator.
15631
15632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15633
15634 * frame.h (frame_id_build_unavailable_stack_special): New.
15635 * frame.c (frame_id_build_unavailable_stack_special): New.
15636
15637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15638
15639 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15640 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15641 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15642 to gdbarch.
15643 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15644 (i386_insn_is_jump, i386_jmp_p): New.
15645 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15646 insn_is_jump to gdbarch.
15647 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15648 * gdbarch.h: Regenerated.
15649 * gdbarch.c: Regenerated.
15650 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15651 (default_insn_is_jump): New.
15652 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15653 (default_insn_is_jump): New.
15654
15655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15656
15657 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15658 Change to ...
15659 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15660 (btrace_read_type) <btrace_read_new>: Change to ...
15661 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15662
15663 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15664
15665 * common/linux-btrace.c (linux_read_btrace): Free trace from
15666 previous iteration.
15667
15668 2014-01-15 Doug Evans <dje@google.com>
15669
15670 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15671 uint32_t.
15672
15673 2014-01-15 Tom Tromey <tromey@redhat.com>
15674
15675 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15676 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15677 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15678 (set_objfile_main_name): New function.
15679 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15680 language_of_main>: New fields.
15681 (set_objfile_main_name): Declare.
15682 * symtab.c (find_main_name): Loop over objfiles to find the main
15683 name and language.
15684 (set_main_name): Now static.
15685 (get_main_info): Add comment.
15686 * symtab.h (set_main_name): Don't declare.
15687
15688 2014-01-15 Tom Tromey <tromey@redhat.com>
15689
15690 * symtab.c (main_progspace_key): New global.
15691 (struct main_info): New.
15692 (name_of_main, language_of_main): Remove.
15693 (get_main_info, main_info_cleanup): New function.
15694 (set_main_name, main_name, main_language): Use get_main_info.
15695 (_initialize_symtab): Initialize main_progspace_key.
15696
15697 2014-01-15 Tom Tromey <tromey@redhat.com>
15698
15699 * dbxread.c (process_one_symbol): Update.
15700 * dwarf2read.c (read_partial_die): Update.
15701 * symfile.c (set_initial_language): Call main_language.
15702 * symtab.c (language_of_main): Now static.
15703 (set_main_name): Add 'lang' parameter.
15704 (find_main_name): Update.
15705 (main_language): New function.
15706 (symtab_observer_executable_changed): Update.
15707 * symtab.h (set_main_name): Update.
15708 (language_of_main): Remove.
15709 (main_language): Declare.
15710
15711 2014-01-15 Tom Tromey <tromey@redhat.com>
15712
15713 * symfile.c (init_entry_point_info): Use new "initialized" field.
15714 Update.
15715 * objfiles.h (struct entry_point) <initialized>: New field.
15716 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15717 (struct objfile) <ei>: ...here. Remove.
15718 * objfiles.c (entry_point_address_query): Update.
15719
15720 2014-01-15 Tom Tromey <tromey@redhat.com>
15721
15722 * objfiles.c (entry_point_address_query): Relocate entry point
15723 address.
15724 (objfile_relocate1): Do not relocate entry point address.
15725 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15726 <the_bfd_section_index>: New field.
15727 * symfile.c (init_entry_point_info): Find the entry point's
15728 section.
15729
15730 2014-01-15 Tom Tromey <tromey@redhat.com>
15731
15732 * solib-frv.c (enable_break): Use entry_point_address_query.
15733
15734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15735
15736 * NEWS: Add note on improved process record-replay on
15737 arm*-linux* targets.
15738
15739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15740
15741 * arm-tdep.c (enum arm_record_result): New enum.
15742 (arm_record_unsupported_insn): New function.
15743 (arm_record_coproc_data_proc): Removed.
15744 (thumb2_record_ld_st_multiple): New function.
15745 (thumb2_record_ld_st_dual_ex_tbb): New function.
15746 (thumb2_record_data_proc_sreg_mimm): New function.
15747 (thumb2_record_ps_dest_generic): New function.
15748 (thumb2_record_branch_misc_cntrl): New function.
15749 (thumb2_record_str_single_data): New function.
15750 (thumb2_record_ld_mem_hints): New function.
15751 (thumb2_record_ld_word): New function.
15752 (thumb2_record_lmul_lmla_div): New function.
15753 (thumb2_record_decode_insn_handler): New function.
15754 (decode_insn): Add thumb32 instruction handlers.
15755
15756 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15757
15758 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15759 (struct arm_linux_record_tdep): Declare.
15760 (arm_canonicalize_syscall): New function.
15761 (arm_all_but_pc_registers_record): New function.
15762 (arm_linux_syscall_record): New function.
15763 (arm_linux_init_abi): Add syscall recording constructs.
15764 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15765 decoding. (arm_record_coproc_data_proc): Update arm syscall
15766 decoding.
15767 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15768 <arm_syscall_record>: New field.
15769 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15770 gdb_target_obs.
15771
15772 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15773
15774 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15775 register for push instruction recording.
15776
15777 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15778
15779 * arm-tdep.c (thumb_record_misc): Update to correct logical
15780 error while recording ldm, ldmia and pop instructions.
15781
15782 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15783
15784 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15785
15786 2014-01-15 Pedro Alves <palves@redhat.com>
15787
15788 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15789 (go32_resume, go32_fetch_registers, store_register)
15790 (go32_store_registers, go32_prepare_to_store)
15791 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15792 (go32_create_inferior, go32_can_run, go32_terminal_init)
15793 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15794 declarations.
15795
15796 2014-01-15 Tom Tromey <tromey@redhat.com>
15797
15798 * target.h (async_callback_ftype): New typedef.
15799 (struct target_ops) <to_async>: Use it.
15800
15801 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15802
15803 * python/py-value.c (get_field_type): Remove unnecessary curly
15804 braces for single-statement if block.
15805
15806 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15807
15808 * python/py-type.c (convert_field): Add missing empty line
15809 after declarations.
15810
15811 2014-01-14 Doug Evans <dje@google.com>
15812
15813 * symfile.h (expand_symtabs_matching): Renamed from
15814 expand_partial_symbol_names. Update prototype.
15815 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15816 * symfile.c (expand_symtabs_matching): Renamed from
15817 expand_partial_symbol_names. New args file_matcher, kind.
15818 Rename arg fun to symbol_matcher.
15819 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15820 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15821 ada_expand_partial_symbol_name.
15822 (ada_make_symbol_completion_list): Update to call
15823 expand_symtabs_matching.
15824 (ada_add_global_exceptions): Call expand_symtabs_matching.
15825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15826 call map_symbol_filenames.
15827 * symtab.c (sources_info): Update to call map_symbol_filenames.
15828 (search_symbols): Call expand_symtabs_matching.
15829 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15830 (default_make_symbol_completion_list_break_on): Update to call
15831 expand_symtabs_matching.
15832 (make_source_files_completion_list): Update to call
15833 map_symbol_filenames.
15834
15835 2014-01-14 Doug Evans <dje@google.com>
15836
15837 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15838 (expand_symtabs_symbol_matcher_ftype): New typedef.
15839 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15840 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15841 * symfile.c (expand_partial_symbol_names): Update to use
15842 expand_symtabs_symbol_matcher_ftype.
15843 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15844 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15845 Arg name_matcher renamed to symbol_matcher.
15846 * psymtab.c (recursively_search_psymtabs): Update to use
15847 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15848 sym_matcher.
15849 (expand_symtabs_matching_via_partial): Update to use
15850 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15851 Arg name_matcher renamed to symbol_matcher.
15852
15853 2014-01-14 Doug Evans <dje@google.com>
15854
15855 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15856 (map_partial_symbol_filenames): Ditto.
15857 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15858 (map_partial_symbol_filenames): Ditto.
15859 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15860 (map_partial_symbol_filenames): Ditto.
15861 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15862 (map_partial_symbol_filenames): Ditto.
15863 * symtab.c: Delete #include "psymtab.h".
15864
15865 2014-01-14 Pedro Alves <palves@redhat.com>
15866 Tom Tromey <tromey@redhat.com>
15867
15868 * infrun.c (use_displaced_stepping): Use find_record_target
15869 instead of RECORD_IS_USED.
15870 (adjust_pc_after_break): Use record_full_is_used instead of
15871 RECORD_IS_USED.
15872 * record-btrace.c (record_btrace_open): Call record_preopen
15873 instead of checking RECORD_IS_USED.
15874 * record-full.c (record_full_shortname)
15875 (record_full_core_shortname): New globals.
15876 (record_full_is_used): New function.
15877 (find_full_open): Call record_preopen instead of checking
15878 RECORD_IS_USED.
15879 (init_record_full_ops): Set the target's shortname to
15880 record_full_shortname.
15881 (init_record_full_core_ops): Set the target's shortname to
15882 record_full_core_shortname.
15883 * record-full.h (record_full_is_used): Declare.
15884 * record.c (find_record_target): Make extern.
15885 (record_preopen): New function.
15886 * record.h (RECORD_IS_USED): Delete macro.
15887 (find_record_target, record_preopen): Declare functions.
15888
15889 2014-01-14 Yao Qi <yao@codesourcery.com>
15890
15891 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15892 'len''s type to ULONGEST.
15893 (core_xfer_shared_libraries_aix): Likewise.
15894 * gdbarch.c, gdbarch.h: Regenerated.
15895 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15896 Change type of 'len' to ULONGEST.
15897 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15898 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15899
15900 2014-01-14 Yao Qi <yao@codesourcery.com>
15901
15902 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15903 type of 'len' to ULONGEST.
15904 (linux_xfer_osdata_processgroups): Likewise.
15905 (linux_xfer_osdata_threads): Likewise.
15906 (linux_xfer_osdata_fds): Likewise.
15907 (linux_xfer_osdata_isockets): Likewise.
15908 (linux_xfer_osdata_shm): Likewise.
15909 (linux_xfer_osdata_sem): Likewise.
15910 (linux_xfer_osdata_msg): Likewise.
15911 (linux_common_xfer_osdata): Likewise.
15912 (struct osdata_type) <getter>: Likewise.
15913 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15914 the declaration.
15915
15916 2014-01-14 Yao Qi <yao@codesourcery.com>
15917
15918 * target.h (target_xfer_partial_ftype): Update.
15919 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15920 ULONGEST.
15921 * aix-thread.c (aix_thread_xfer_partial): Change type of
15922 argument 'len' to ULONGEST.
15923 * auxv.c (procfs_xfer_auxv): Likewise.
15924 (ld_so_xfer_auxv): Likewise.
15925 (memory_xfer_auxv): Likewise.
15926 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15927 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15928 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15929 * corelow.c (core_xfer_partial): Likewise.
15930 * ctf.c (ctf_xfer_partial): Likewise.
15931 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15932 '%u'.
15933 (darwin_read_dyld_info): Likewise.
15934 (darwin_xfer_partial): Likewise.
15935 * exec.c (section_table_xfer_memory_partial): Likewise.
15936 (exec_xfer_partial): Likewise.
15937 * exec.h (section_table_xfer_memory_partial): Update
15938 declaration.
15939 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15940 instead of plongest.
15941 (gnu_xfer_partial): Likewise.
15942 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15943 (ia64_hpux_xfer_solib_got): Likewise.
15944 (ia64_hpux_xfer_partial): Likewise.
15945 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15946 * inf-ptrace.c (inf_ptrace_xfer_partial):
15947 * inf-ttrace.c (inf_ttrace_xfer_partial):
15948 * linux-nat.c (linux_xfer_siginfo): Likewise.
15949 (linux_nat_xfer_partial): Likewise.
15950 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15951 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15952 * monitor.c (monitor_xfer_memory): Likewise.
15953 (monitor_xfer_partial): Likewise.
15954 * procfs.c (procfs_xfer_partial): Likewise.
15955 * record-full.c (record_full_xfer_partial): Likewise.
15956 (record_full_core_xfer_partial): Likewise.
15957 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15958 instead of plongest.
15959 (gdbsim_xfer_partial): Likewise.
15960 * remote.c (remote_xfer_partial): Likewise.
15961 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15962 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15963 declaration.
15964 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15965 (rs6000_xfer_shared_libraries): Likewise.
15966 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15967 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15968 (sparc_xfer_partial): Likewise.
15969 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15970 (spu_xfer_partial): Likewise.
15971 * spu-multiarch.c (spu_xfer_partial): Likewise.
15972 * target.c (target_read_live_memory): Likewise.
15973 (memory_xfer_live_readonly_partial): Likewise.
15974 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15975 (target_xfer_partial, default_xfer_partial): Likewise.
15976 (current_xfer_partial): Likewise.
15977 * tracepoint.c (tfile_xfer_partial): Likewise.
15978 * windows-nat.c (windows_xfer_memory): Likewise. Call
15979 pulongest instead of plongest.
15980 (windows_xfer_partial): Likewise.
15981 (windows_xfer_shared_libraries): Likewise.
15982
15983 2014-01-14 Yao Qi <yao@codesourcery.com>
15984
15985 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15986 target_xfer_partial_ftype.
15987
15988 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15989
15990 PR python/15464
15991 PR python/16113
15992 * valops.c (value_struct_elt_bitpos): New function
15993 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15994 object to 'None' if the field name is an empty string ("").
15995 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15996 attribute to look for a field when 'name' is 'None'.
15997 (get_field_type): New function
15998
15999 2014-01-13 Doug Evans <dje@google.com>
16000
16001 PR symtab/16426
16002 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16003 (try_open_dwop_file): Ditto.
16004 * gdb_bfd.c: #include "vec.h".
16005 (bfdp): New typedef.
16006 (struct gdb_bfd_data): New member included_bfds.
16007 (gdb_bfd_unref): Unref all included bfds.
16008 (gdb_bfd_record_inclusion): New function.
16009 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16010
16011 2014-01-13 Tom Tromey <tromey@redhat.com>
16012
16013 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16014
16015 2014-01-13 Tom Tromey <tromey@redhat.com>
16016
16017 * defs.h (use_windows): Remove.
16018 * gdb.c (main): Update.
16019 * main.c (captured_main, gdb_main): Update.
16020 * main.h (struct captured_main_args) <use_windows>: Remove.
16021 * top.c (use_windows): Remove.
16022
16023 2014-01-13 Tom Tromey <tromey@redhat.com>
16024
16025 * defs.h (deprecated_flush_hook): Remove.
16026
16027 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16028
16029 PR threads/16216
16030 * linux-thread-db.c (try_thread_db_load): Add parameter
16031 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16032 (try_thread_db_load_from_pdir_1): Move it there from here.
16033 (try_thread_db_load_from_sdir): Update caller.
16034 (try_thread_db_load_from_dir): Move it there from here.
16035
16036 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16037
16038 * regformats/regdat.sh: Always rewrite the register file.
16039
16040 2014-01-13 Pedro Alves <palves@redhat.com>
16041
16042 * Makefile.in (CHECK_HEADERS): New variable.
16043 (check-headers:): New rule.
16044
16045 2014-01-13 Tom Tromey <tromey@redhat.com>
16046
16047 * cli/cli-setshow.c (do_set_command): Update.
16048 * defs.h (deprecated_set_hook): Remove.
16049 * top.c (deprecated_set_hook): Remove.
16050
16051 2014-01-13 Pedro Alves <palves@redhat.com>
16052
16053 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16054 the tracepoint if the PC is a pseudo-register.
16055
16056 2014-01-13 Tom Tromey <tromey@redhat.com>
16057
16058 * defs.h (XCALLOC): Remove.
16059 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16060 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16061 * dwarf2loc.c (allocate_piece_closure): Likewise.
16062 * elfread.c (elf_symfile_segments): Likewise.
16063 (elf_symfile_segments): Likewise.
16064 * gdbtypes.c (copy_type_recursive): Likewise.
16065 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16066 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16067 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16068 XCALLOC.
16069 * mt-tdep.c (mt_gdbarch_init): Likewise.
16070 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16071 XCALLOC.
16072 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16073 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16074 * registry.c (registry_alloc_data): Likewise.
16075 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16076 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16077 * serial.c (serial_fdopen_ops): Likewise.
16078 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16079 XCALLOC.
16080 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16081 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16082 not XCALLOC.
16083
16084 2014-01-13 Tom Tromey <tromey@redhat.com>
16085
16086 * defs.h (XMALLOC): Remove.
16087 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16088 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16089 * cli-out.c (struct ui_out *): Likewise.
16090 * cli/cli-dump.c (add_dump_command): Likewise.
16091 (add_dump_command): Likewise.
16092 * complaints.c (get_complaints): Likewise.
16093 (find_complaint): Likewise.
16094 * dwarf2-frame.c (execute_cfa_program): Likewise.
16095 * dwarf2read.c (abbrev_table_read_table): Likewise.
16096 * gdbarch.sh: Likewise.
16097 * gdbarch.c: Rebuild.
16098 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16099 * interps.c (interp_new): Likewise.
16100 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16101 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16102 * mi/mi-console.c (mi_console_file_new): Likewise.
16103 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16104 * mi/mi-out.c (mi_out_new): Likewise.
16105 * mi/mi-parse.c (mi_parse): Likewise.
16106 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16107 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16108 * observer.c (xalloc_observer_list_node): Likewise.
16109 * regcache.c (regcache_xmalloc_1): Likewise.
16110 * reggroups.c (reggroup_new): Likewise.
16111 (_initialize_reggroup): Likewise.
16112 * registry.c (register_data_with_cleanup): Likewise.
16113 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16114 * ser-base.c (serial_ttystate): Likewise.
16115 * ser-mingw.c (make_pipe_state): Likewise.
16116 * ser-pipe.c (pipe_open): Likewise.
16117 * serial.c (serial_open): Likewise.
16118 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16119 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16120 (tui_alloc_win_info): Likewise.
16121 (tui_add_content_elements): Likewise.
16122 * tui/tui-file.c (tui_file_new): Likewise.
16123 * tui/tui-out.c (tui_out_new): Likewise.
16124 * ui-file.c (mem_file_new): Likewise.
16125 * ui-out.c (push_level): Likewise.
16126 (make_cleanup_ui_out_end): Likewise.
16127 (append_header_to_list): Likewise.
16128 (ui_out_new): Likewise.
16129 * user-regs.c (user_reg_add_builtin): Likewise.
16130
16131 2014-01-13 Tom Tromey <tromey@redhat.com>
16132
16133 * defs.h (XZALLOC): Remove.
16134 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16135 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16136 (get_ada_tasks_inferior_data): Likewise.
16137 * auto-load.c (get_auto_load_pspace_data): Likewise.
16138 * auxv.c (get_auxv_inferior_data): Likewise.
16139 * bfd-target.c (target_bfd_reopen): Likewise.
16140 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16141 (deprecated_insert_raw_breakpoint): Likewise.
16142 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16143 * corelow.c (core_open): Likewise.
16144 * darwin-nat.c (darwin_check_new_threads): Likewise.
16145 (darwin_attach_pid): Likewise.
16146 * dummy-frame.c (dummy_frame_push): Likewise.
16147 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16148 * dwarf2loc.c (allocate_piece_closure): Likewise.
16149 * elfread.c (elf_symfile_segments): Likewise.
16150 * eval.c (ptrmath_type_p): Likewise.
16151 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16152 * gdbtypes.c (alloc_type_arch): Likewise.
16153 (alloc_type_instance): Likewise.
16154 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16155 * inf-child.c (inf_child_can_use_agent): Likewise.
16156 * inflow.c (get_inflow_inferior_data): Likewise.
16157 * infrun.c (save_infcall_suspend_state): Likewise.
16158 * jit.c (jit_reader_load): Likewise.
16159 (get_jit_objfile_data): Likewise.
16160 (get_jit_program_space_data): Likewise.
16161 (jit_object_open_impl): Likewise.
16162 (jit_symtab_open_impl): Likewise.
16163 (jit_block_open_impl): Likewise.
16164 (jit_frame_sniffer): Likewise.
16165 * linux-fork.c (add_fork): Likewise.
16166 * maint.c (make_command_stats_cleanup): Likewise.
16167 * objfiles.c (get_objfile_pspace_data): Likewise.
16168 * opencl-lang.c (struct lval_closure): Likewise.
16169 * osdata.c (osdata_start_osdata): Likewise.
16170 * progspace.c (new_address_space): Likewise.
16171 (add_program_space): Likewise.
16172 * remote-sim.c (get_sim_inferior_data): Likewise.
16173 * sh-tdep.c (sh_gdbarch_init): Likewise.
16174 * skip.c (Ignore): Likewise.
16175 (skip_delete_command): Likewise.
16176 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16177 (library_list_start_library): Likewise.
16178 (solib_aix_current_sos): Likewise.
16179 * solib-darwin.c (get_darwin_info): Likewise.
16180 (darwin_current_sos): Likewise.
16181 * solib-dsbt.c (get_dsbt_info): Likewise.
16182 * solib-ia64-hpux.c (new_so_list): Likewise.
16183 (ia64_hpux_get_solib_linkage_addr): Likewise.
16184 * solib-spu.c (append_ocl_sos): Likewise.
16185 (spu_current_sos): Likewise.
16186 * solib-svr4.c (get_svr4_info): Likewise.
16187 (svr4_keep_data_in_core): Likewise.
16188 (library_list_start_library): Likewise.
16189 (svr4_default_sos): Likewise.
16190 (svr4_read_so_list): Likewise.
16191 * solib-target.c (library_list_start_library): Likewise.
16192 (solib_target_current_sos): Likewise.
16193 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16194 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16195 * symfile.c (default_symfile_segments): Likewise.
16196 * target-descriptions.c (tdesc_data_init): Likewise.
16197 (tdesc_create_reg): Likewise.
16198 (struct tdesc_type *): Likewise.
16199 (tdesc_create_vector): Likewise.
16200 (tdesc_set_struct_size): Likewise.
16201 (struct tdesc_type *): Likewise.
16202 (tdesc_free_feature): Likewise.
16203 (tdesc_create_feature): Likewise.
16204 * windows-nat.c (windows_add_thread): Likewise.
16205 (windows_make_so): Likewise.
16206 * xml-support.c (gdb_xml_body_text): Likewise.
16207 (gdb_xml_create_parser_and_cleanup): Likewise.
16208 (xml_process_xincludes): Likewise.
16209 * xml-syscall.c (allocate_syscalls_info): Likewise.
16210 (syscall_create_syscall_desc): Likewise.
16211
16212 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16213
16214 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16215 function, with code from i386_stap_parse_special_token.
16216 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16217 (i386_stap_parse_special_token): Move code to the two functions
16218 above; simplify it.
16219
16220 2014-01-09 Pedro Alves <palves@redhat.com>
16221 Hui Zhu <hui@codesourcery.com>
16222
16223 PR gdb/16101
16224 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16225 bp_err_string. Don't mark the location shlib_disabled if the
16226 error thrown wasn't a generic or memory error. Catch errors
16227 thrown while inserting breakpoints in overlayed code. Output
16228 error message of software breakpoints.
16229 * remote.c (remote_insert_breakpoint): If this breakpoint has
16230 target-side commands but this stub doesn't support Z0 packets,
16231 throw NOT_SUPPORTED_ERROR error.
16232 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16233 * target.h (target_insert_breakpoint): Extend comment.
16234 (target_insert_hw_breakpoint): Add comment.
16235
16236 2014-01-08 Pedro Alves <palves@redhat.com>
16237
16238 * remote.c (remote_add_thread): Add threads silently if starting
16239 up.
16240 (remote_notice_new_inferior): If in all-stop, and starting up,
16241 don't call notice_new_inferior.
16242 (get_current_thread): New function, factored out from ...
16243 (add_current_inferior_and_thread): ... this. Adjust.
16244 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16245 found any thread, then select the remote's current thread as GDB's
16246 current thread too.
16247
16248 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16249
16250 * NEWS: Create a new section for the next release branch.
16251 Rename the section of the current branch, now that it has
16252 been cut.
16253
16254 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16255
16256 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16257 * version.in: Bump version to 7.7.50.DATE-cvs.
16258
16259 2014-01-08 Yao Qi <yao@codesourcery.com>
16260
16261 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16262 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16263 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16264
16265 2014-01-08 Yao Qi <yao@codesourcery.com>
16266
16267 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16268 return value of bfd_get_filename to symbol_file_add_from_bfd.
16269
16270 2014-01-08 Pierre Muller <muller@sourceware.org>
16271
16272 Fix PR16201.
16273 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16274 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16275 to prim_record_mininal_symbol_and_info.
16276 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16277 in call to prim_record_minimal_symbol_and_info.
16278 (read_pe_exported_syms): Set index field of section_data.
16279
16280 2014-01-07 Andrew Pinski <apinski@cavium.com>
16281
16282 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16283 * features/aarch64.c: Regenerate.
16284
16285 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16286
16287 * target.c (return_null): Define.
16288 (update_current_target): Use it instead of return_zero for
16289 functions that return a pointer.
16290
16291 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16292
16293 * source.c (add_path): Fix check for duplicated paths in the previously
16294 included paths.
16295
16296 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16297
16298 * ada-lang.c: Remove duplicated include statements.
16299 * alphabsd-nat.c: Ditto.
16300 * amd64-darwin-tdep.c: Ditto.
16301 * amd64fbsd-nat.c: Ditto.
16302 * auto-load.c: Ditto.
16303 * ax-gdb.c: Ditto.
16304 * breakpoint.c: Ditto.
16305 * dbxread.c: Ditto.
16306 * fork-child.c: Ditto.
16307 * gdb_usleep.c: Ditto.
16308 * i386-darwin-tdep.c: Ditto.
16309 * i386fbsd-nat.c: Ditto.
16310 * infcmd.c: Ditto.
16311 * inferior.c: Ditto.
16312 * jv-lang.c: Ditto.
16313 * linux-nat.c: Ditto.
16314 * linux-tdep.c: Ditto.
16315 * m68kbsd-nat.c: Ditto.
16316 * m68klinux-nat.c: Ditto.
16317 * microblaze-tdep.c: Ditto.
16318 * mips-linux-tdep.c: Ditto.
16319 * mn10300-tdep.c: Ditto.
16320 * nto-tdep.c: Ditto.
16321 * opencl-lang.c: Ditto.
16322 * osdata.c: Ditto.
16323 * printcmd.c: Ditto.
16324 * regcache.c: Ditto.
16325 * remote-m32r-sdi.c: Ditto.
16326 * remote.c: Ditto.
16327 * symfile.c: Ditto.
16328 * symtab.c: Ditto.
16329 * tilegx-linux-nat.c: Ditto.
16330 * tilegx-tdep.c: Ditto.
16331 * tracepoint.c: Ditto.
16332 * valops.c: Ditto.
16333 * vaxbsd-nat.c: Ditto.
16334 * windows-nat.c: Ditto.
16335 * xtensa-tdep.c: Ditto.
16336
16337 2014-01-07 Yao Qi <yao@codesourcery.com>
16338
16339 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16340
16341 2014-01-07 Yao Qi <yao@codesourcery.com>
16342 Joel Brobecker <brobecker@adacore.com>
16343
16344 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16345 (pdc_write_regs): Likewise.
16346 (fetch_regs_kernel_thread): Likewise.
16347 (store_regs_kernel_thread): Likewise.
16348
16349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16350
16351 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16352 tagged type objects to their actual type.
16353
16354 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16355
16356 * ada-valprint.c (print_field_values): Add "language" parameter.
16357 Update calls to print_field_values and print_variant_part.
16358 Pass new parameter "language" in call to val_print instead
16359 of "current_language". Replace call to ada_val_print by call
16360 to val_print.
16361 (print_variant_part): Add "language" parameter.
16362 (ada_val_print_struct_union): Update call to print_field_values.
16363
16364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16365
16366 * ada-valprint.c (ui_memcpy): Delete.
16367 (ada_print_floating): Update documentation. Add empty line
16368 between between function documentation and implementation.
16369 Delete variable "buffer". Use ui_file_xstrdup in place of
16370 ui_file_put. Minor adjustments following this change.
16371
16372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16373
16374 * ada-valprint.c (ada_val_print_string): New function,
16375 extracted from ada_val_print_array.
16376 (ada_val_print_array): Replace extracted code by call
16377 to ada_val_print_string followed by a return. Move
16378 "else" branch to the function's top block.
16379
16380 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16381
16382 * ada-valprint.c (ada_val_print_array): Move implementation
16383 down. Rename parameter "offset" and "val" into "offset_aligned"
16384 and "original_value" respectively. Add parameter "offset".
16385
16386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16387
16388 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16389 re-organizing the code. Change the "???" message printed
16390 when target type is a TYPE_CODE_UNDEF into
16391 "<ref to undefined type>".
16392
16393 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16394
16395 * ada-valprint.c (print_record): Delete, implementation inlined...
16396 (ada_val_print_struct_union): ... here. Remove call to
16397 ada_check_typedef in inlined implementation.
16398
16399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16400
16401 * ada-valprint.c (ada_val_print_gnat_array): New function,
16402 extracted from ada_val_print_1;
16403 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16404 (ada_val_print_flt, ada_val_print_struct_union)
16405 (ada_val_print_ref): Likewise.
16406 (ada_val_print_1): Delete variables i and elttype.
16407 Replace extracted-out code by call to corresponding
16408 new functions.
16409
16410 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16411
16412 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16413
16414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16415
16416 * ada-valprint.c (ada_val_print_1): Replace calls to
16417 ada_val_print_1 by calls to val_print.
16418
16419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16420
16421 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16422 Update calls to self accordingly. Replace calls to c_val_print
16423 by calls to val_print.
16424
16425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16426
16427 * ada-valprint.c (print_record): Delete declaration.
16428 (adjust_type_signedness, ada_val_print_1): Likewise.
16429 (ada_val_print): Move function implementation down.
16430 (print_variant_part, print_field_values, print_record):
16431 Move function implementation up.
16432
16433 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16434
16435 * python/py-type.c (typy_get_name): New function.
16436 (type_object_getset): Add entry for attribute "name".
16437 * NEWS: Add entry mentioning this new attribute.
16438
16439 2014-01-07 Yao Qi <yao@codesourcery.com>
16440
16441 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16442 statement.
16443
16444 2014-01-07 Yao Qi <yao@codesourcery.com>
16445
16446 * gnu-nat.c (info_port_rights): Add qualifier const to
16447 argument args.
16448
16449 2014-01-07 Yao Qi <yao@codesourcery.com>
16450
16451 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16452
16453 2014-01-07 Yao Qi <yao@codesourcery.com>
16454
16455 * gnu-nat.c (make_inf) Update declaration.
16456 (make_inf): Make it static.
16457 (inf_set_traced): Likewise.
16458 (inf_port_to_thread, inf_task_died_status): Likewise.
16459
16460 2014-01-07 Yao Qi <yao@codesourcery.com>
16461
16462 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16463
16464 2014-01-07 Yao Qi <yao@codesourcery.com>
16465
16466 * gnu-nat.c (_initialize_gnu_nat): Declare.
16467
16468 2014-01-07 Yao Qi <yao@codesourcery.com>
16469
16470 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16471 'enum bfd_endian'.
16472 (struct gdbarch_info) <byte_order>: Change type to
16473 'enum bfd_endian'.
16474 <byte_order_for_code>: Likewise.
16475 * gdbarch.c, gdbarch.h: Regenerated.
16476
16477 2014-01-06 Sasha Smundak <asmundak@google.com>
16478
16479 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16480
16481 2014-01-06 Tom Tromey <tromey@redhat.com>
16482
16483 * doublest.c (convert_doublest_to_floatformat): Use const, not
16484 CONST.
16485 * somread.c (som_symtab_read): Likewise.
16486
16487 2014-01-07 Hui Zhu <hui@codesourcery.com>
16488
16489 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16490 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16491 (gdb_bfd_fopen): Ditto.
16492 (gdb_bfd_openr): Ditto.
16493 (gdb_bfd_openw): Ditto.
16494 (gdb_bfd_openr_iovec): Ditto.
16495 (gdb_bfd_fdopenr): Ditto.
16496 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16497 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16498 with xstrdup.
16499 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16500 with xstrdup.
16501 * symfile-mem.c (symbol_file_add_from_memory): Removed
16502 gdb_bfd_stash_filename.
16503
16504 2014-01-03 Doug Evans <dje@google.com>
16505
16506 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16507 output.
16508
16509 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16510
16511 Update year range in copyright notice of all files.
16512
16513 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16514
16515 * top.c (print_gdb_version): Set copyright year to 2014.
16516
16517 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16518
16519 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16520
16521 For older changes see ChangeLog-2013.
16522 \f
16523 Local Variables:
16524 mode: change-log
16525 left-margin: 8
16526 fill-column: 74
16527 version-control: never
16528 coding: utf-8
16529 End:
This page took 0.405971 seconds and 4 git commands to generate.