Fix file name in earlier entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1bc1068a
JK
12014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Fix MinGW compilation.
4 * compile/compile.c (get_compile_file_tempdir): Call error if
5 !HAVE_MKDTEMP.
6 * config.in: Regenerate.
7 * configure: Regenerate.
8 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
9
5e3c72e6
DE
102014-12-17 Doug Evans <xdje42@gmail.com>
11
12 * valops.c (value_maybe_namespace_elt): Remove redundant call to
13 lookup_static_symbol.
14
cc485e62
DE
152014-12-17 Doug Evans <xdje42@gmail.com>
16
17 New parameter "debug symbol-lookup".
18 * NEWS: Mention it.
19 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
20 output.
21 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
22 (cp_lookup_nested_symbol): Ditto.
23 * language.c (language_lookup_primitive_type_by_name): Add debug
24 output.
25 * minsyms.c (lookup_minimal_symbol): Add debug output.
26 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
27 * symfile-debug.c (debug_objfile_name): ... from here. All callers
28 updated.
29 * objfiles.h (objfile_debug_name): Declare.
30 * symtab.h (symbol_lookup_debug): Declare.
31 * symtab.c (symbol_lookup_debug): New global.
32 (lookup_language_this): Add debug output.
33 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
34 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
35 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
36 (_initialize_symtab): Add new parameter "debug symbol-lookup".
37
0ab9ce85
DE
382014-12-16 Doug Evans <xdje42@gmail.com>
39
40 * buildsym.c: Add comments describing how the buildsym machinery
41 is used by the various file formats.
42 (really_free_pendings): Enhance function comment.
43 See pending_macros to NULL. Simplify resetting pending_addrmap.
44 Call free_buildsym_compunit.
45 (free_buildsym_compunit): Set current_subfile to NULL.
46 (prepare_for_building): New function.
47 (start_symtab): Call it. Remove call to set_last_source_file.
48 (restart_symtab): New arg "cust". All callers updated.
49 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
50 (reset_symtab_globals): Enhance function comment.
51 Set local_symbols, file_symbols, global_symbols to NULL.
52 Set pending_macros to NULL. Simplify resetting pending_addrmap.
53 Call free_buildysym_compunit.
54 (end_symtab_without_blockvector): Delete. All callers updated.
55 (end_symtab_with_blockvector): Remove redundant call to
56 free_buildsym_compunit.
57 (augment_type_symtab): Remove arg "cust". All callers updated.
58 (buildsym_init): Remove resetting of free_pendings, file_symbols,
59 global_symbols, pending_blocks, pending_macros. Instead make
60 handling consistent with pending_addrmap: Assert value was reset
61 at end of previous symtab building. Initialize context_stack here.
62
55accf4a
DE
632014-12-16 Doug Evans <xdje42@gmail.com>
64
65 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
66 cp_lookup_symbol_imports. All callers updated.
67
a07e3e18
DE
682014-12-16 Doug Evans <xdje42@gmail.com>
69
70 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
71 find_type_baseclass_by_name. All callers updated.
72
d01060f0
DE
732014-12-16 Doug Evans <xdje42@gmail.com>
74
75 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
76 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
77 (print_symbol_info): Delete arg symtab. All callers updated.
78 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
79
25dda427
AA
802014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
81
82 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
83 "Name" columns. Assure that the output is always indented.
84
beed38b8
JB
852014-12-16 Joel Brobecker <brobecker@adacore.com>
86
87 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
88 already defined.
89 (linux_enable_event_reporting): Add parameter "attached".
90 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
91 declaration. New function.
92 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
93 (linux_enable_event_reporting): Add new parameter "attached".
94 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
95 nonzero.
96 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
97 Use it. Update function description.
98 (linux_child_post_attach, linux_child_post_startup_inferior):
99 Update call to linux_enable_event_reporting.
100
8fda9068
YQ
1012014-12-16 Yao Qi <yao@codesourcery.com>
102
103 * NEWS: Move some entries to "Changes since GDB 7.8" section.
104
2a546367
YQ
1052014-12-16 Yao Qi <yao@codesourcery.com>
106
107 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
108 ARG_LAST.
109
c9657e70
SM
1102014-12-15 Simon Marchi <simon.marchi@ericsson.com>
111
112 * inferior.c (find_inferior_ptid): New function.
113 * inferior.h (find_inferior_ptid): New declaration.
114 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
115 * corelow.c (core_pid_to_str): Same.
116 * darwin-nat.c (darwin_resume): Same.
117 * infrun.c (fetch_inferior_event): Same.
118 (get_inferior_stop_soon): Same.
119 (handle_inferior_event): Same.
120 (handle_signal_stop): Same.
121 * linux-nat.c (resume_lwp): Same.
122 (stop_wait_callback): Same.
123 * mi/mi-interp.c (mi_new_thread): Same.
124 (mi_thread_exit): Same.
125 * proc-service.c (ps_pglobal_lookup): Same.
126 * record-btrace.c (record_btrace_step_thread): Same.
127 * remote-sim.c (gdbsim_close_inferior): Same.
128 (gdbsim_resume): Same.
129 (gdbsim_stop): Same.
130 * sol2-tdep.c (sol2_core_pid_to_str): Same.
131 * target.c (memory_xfer_partial_1): Same.
132 (default_thread_address_space): Same.
133 * thread.c (thread_change_ptid): Same.
134 (switch_to_thread): Same.
135 (do_restore_current_thread_cleanup): Same.
136
38bcc89d
SM
1372014-12-15 Simon Marchi <simon.marchi@ericsson.com>
138
139 * defs.h (gdb_readline): Constify argument.
140 (gdb_readline_wrapper): Same.
141 (command_line_input): Same.
142 (deprecated_readline_hook): Same.
143 * top.c (deprecated_readline_hook): Same.
144 (gdb_readline): Same.
145 (gdb_readline_wrapper): Same.
146 (command_line_input): Constify argument. Pass prompt_arg to called
147 functions instead of local_prompt, overwriting prompt_arg if necessary.
148 * event-top.h (display_gdb_prompt): Constify argument.
149 * event-top.c (display_gdb_prompt): Same.
150 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
151 if building with Python 3.4 and up.
152
89ed8ea1
SM
1532014-12-15 Simon Marchi <simon.marchi@ericsson.com>
154
155 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
156 os.getcwdu().
157
aacd3e8c
CU
1582014-12-15 Catalin Udma <catalin.udma@freescale.com>
159
160 PR gdb/15684
161 * memattr.c (mem_info_command): Remove "unsigned long" casts.
162
dc4d6886
DE
1632014-12-13 Doug Evans <xdje42@gmail.com>
164
165 * utils.c (make_hex_string): Fix off-by-one error.
166
c1b5a1a6
JB
1672014-12-13 Joel Brobecker <brobecker@adacore.com>
168
169 * ada-lang.h (ada_ensure_varsize_limit): Declare.
170 * ada-lang.c (check_size): Remove advance declaration.
171 (ada_ensure_varsize_limit): Renames check_size.
172 Replace calls to check_size by calls to ada_ensure_varsize_limit
173 throughout.
174 * ada-valprint.c (ada_val_print_ref): Add call to
175 ada_ensure_varsize_limit. Add comment explaining why.
176
3c46a02f
JB
1772014-12-13 Joel Brobecker <brobecker@adacore.com>
178
179 * utils.c (make_hex_string): Replace use of sprintf by use of
180 xsnprintf.
181
8e8347b8
JB
1822014-12-13 Joel Brobecker <brobecker@adacore.com>
183
184 * compile/compile-object-load.c (link_callbacks_multiple_definition)
185 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
186 newline at end of warning message.
187
f93b65a0
JB
1882014-12-13 Joel Brobecker <brobecker@adacore.com>
189
190 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
191 new "EXTRA-ARGS" parameter.
192 * configure.ac: If large-file support is disabled in GDB,
193 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
194 * configure: Regenerate.
195
5537b577
JK
1962014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 PR symtab/17642
199 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
200 TYPE if not TYPE_CODE_TYPEDEF.
201
e0782980
JB
2022014-12-13 Joel Brobecker <brobecker@adacore.com>
203
204 PR backtrace/16215:
205 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
206 the frame unwinder must either be the dwarf2_frame_unwind
207 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
208 stack_addr is valid before calling get_frame_base. Throw
209 an error if not valid.
210
ae6a105d
DE
2112014-12-12 Doug Evans <xdje42@gmail.com>
212
213 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
214 result != NULL.
215
59da4d04
DE
2162014-12-12 Doug Evans <xdje42@gmail.com>
217
218 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
219 All callers updated. Rename arg "namespace" to "symbol_name".
220
83827540
DE
2212014-12-12 Doug Evans <xdje42@gmail.com>
222
223 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
224 partial_map_symtabs_matching_filename. All uses updated.
225 (psym_find_pc_sect_compunit_symtab): Renamed from
226 find_pc_sect_compunit_symtab_from_partial. All uses updated.
227 Add function comment.
228 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
229 All uses updated. Add function comment.
230 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
231 Add function comment.
232 (psym_find_last_source_symtab): Renamed from
233 find_last_source_symtab_from_partial. All uses updated.
234 Add function comment.
235 (psym_forget_cached_source_info): Renamed from
236 forget_cached_source_info_partial. All uses updated.
237 Add function comment.
238 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
239 All uses updated. Add function comment.
240 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
241 updated. Add function comment.
242 (psym_expand_symtabs_for_function): Renamed from
243 read_symtabs_for_function. All uses updated. Update function comment.
244 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
245 All uses updated. Add function comment.
246 (psym_expand_symtabs_with_fullname): Renamed from
247 read_psymtabs_with_fullname. All uses updated. Add function comment.
248 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
249 All uses updated. Add function comment.
250 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
251 All uses updated.
252 (psym_expand_symtabs_matching): Renamed from
253 expand_symtabs_matching_via_partial. All uses updated.
254 Add function comment.
255 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
256 Add function comment.
257
bb2ec1b3
TT
2582014-12-12 Phil Muldoon <pmuldoon@redhat.com>
259 Jan Kratochvil <jan.kratochvil@redhat.com>
260 Tom Tromey <tromey@redhat.com>
261
262 * NEWS: Update.
263 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
264 field.
265 * p-lang.c (pascal_language_defn): Update.
266 * opencl-lang.c (opencl_language_defn): Update.
267 * objc-lang.c (objc_language_defn): Update.
268 * m2-lang.c (m2_language_defn): Update.
269 * language.h (struct language_defn) <la_get_compile_instance,
270 la_compute_program>: New fields.
271 * language.c (unknown_language_defn, auto_language_defn)
272 (local_language_defn): Update.
273 * jv-lang.c (java_language_defn): Update.
274 * go-lang.c (go_language_defn): Update.
275 * f-lang.c (f_language_defn): Update.
276 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
277 * dwarf2loc.c (dwarf2_compile_property_to_c)
278 (locexpr_generate_c_location, loclist_generate_c_location): New
279 functions.
280 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
281 * defs.h (enum compile_i_scope_types): New.
282 (enum command_control_type) <compile_control>: New constant.
283 (struct command_line) <control_u>: New field.
284 * d-lang.c (d_language_defn): Update.
285 * compile/compile.c: New file.
286 * compile/compile-c-support.c: New file.
287 * compile/compile-c-symbols.c: New file.
288 * compile/compile-c-types.c: New file.
289 * compile/compile.h: New file.
290 * compile/compile-internal.h: New file.
291 * compile/compile-loc2c.c: New file.
292 * compile/compile-object-load.c: New file.
293 * compile/compile-object-load.h: New file.
294 * compile/compile-object-run.c: New file.
295 * compile/compile-object-run.h: New file.
296 * cli/cli-script.c (multi_line_command_p, print_command_lines)
297 (execute_control_command, process_next_line)
298 (recurse_read_control_structure): Handle compile_control.
299 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
300 * c-lang.c (c_language_defn, cplus_language_defn)
301 (asm_language_defn, minimal_language_defn): Update.
302 * ada-lang.c (ada_language_defn): Update.
303 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
304 New variables.
305 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
306 (HFILES_NO_SRCDIR): Add compile.h.
307 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
308 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
309 (compile.o, compile-c-types.o, compile-c-symbols.o)
310 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
311 (compile-c-support.o): New targets.
312
a2658feb
JK
3132014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
314
315 * s390-linux-tdep.c (s390_gcc_target_options): New function.
316 (s390_gdbarch_init): Add it to gdbarch.
317
3bc3cebe
JK
3182014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
319
320 * linux-tdep.c: Include objfiles.h and infcall.h.
321 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
322 function.
323 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
324
d064d1be
JK
3252014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
326
327 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
328 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
329 translate_register. Now public.
330 (dwarf2_compile_expr_to_ax): Update.
331
af945b75
TT
3322014-12-12 Tom Tromey <tromey@redhat.com>
333 Jan Kratochvil <jan.kratochvil@redhat.com>
334
335 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
336 (dwarf_expr_frame_base): Update caller.
337 (dwarf_expr_frame_base_1): Rename to ...
338 (func_get_frame_base_dwarf_block): ... this and make it public.
339 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
340 callers.
341 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
342
a8fd5589
TT
3432014-12-12 Tom Tromey <tromey@redhat.com>
344
345 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
346 Update.
347 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
348 dwarf2_compile_cfa_to_ax.
349 (dwarf2_compile_cfa_to_ax): Remove.
350 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
351 (dwarf2_compile_cfa_to_ax): Remove.
352
ed12ef62
JK
3532014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * infcall.h (call_function_by_hand_dummy): Declare.
356 * infcall.c (call_function_by_hand): Use
357 call_function_by_hand_dummy.
358 (call_function_by_hand_dummy): Rename from call_function_by_hand.
359 Add arguments. Register a destructor.
360
ac04f72b
TT
3612014-12-12 Tom Tromey <tromey@redhat.com>
362 Jan Kratochvil <jan.kratochvil@redhat.com>
363
364 * osabi.h (osabi_triplet_regexp): Declare.
365 * osabi.c (struct osabi_names): New.
366 (gdb_osabi_names): Change type to struct osabi_names. Update
367 values.
368 (gdbarch_osabi_name): Update.
369 (osabi_triplet_regexp): New function.
370 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
371 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
372 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
373 set_gdbarch_gnu_triplet_regexp.
374 * gdbarch.sh (gnu_triplet_regexp): New method.
375 * gdbarch.c, gdbarch.h: Rebuild.
376 * arch-utils.h (default_gnu_triplet_regexp): Declare.
377 * arch-utils.c (default_gnu_triplet_regexp): New function.
378
f208eee0
JK
3792014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 * arch-utils.c (default_infcall_mmap)
382 (default_gcc_target_options): New functions.
383 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
384 (GDB_MMAP_PROT_EXEC): Define.
385 (default_infcall_mmap, default_gcc_target_options): Declare.
386 * gdbarch.h: Rebuild.
387 * gdbarch.c: Rebuild.
388 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
389
233a8fb3
JK
3902014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
393 fields.
394 (pop_dummy_frame): Call the destructor if it exists.
395 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
396 functions.
397 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
398 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
399
f1660027
TT
4002014-12-12 Tom Tromey <tromey@redhat.com>
401
402 * gdbtypes.h (make_unqualified_type): Declare.
403 * gdbtypes.c (make_unqualified_type): New function.
404
de571fc5
TT
4052014-12-12 Tom Tromey <tromey@redhat.com>
406
407 * ui-file.h (ui_file_write_for_put): Declare.
408 * ui-file.c (ui_file_write_for_put): New function.
409 * mi/mi-out.c (do_write): Remove.
410 (mi_out_put): Use ui_file_write_for_put.
411
6dddd6a5
DE
4122014-12-12 Doug Evans <dje@google.com>
413
414 * NEWS: Mention gdb.lookup_objfile.
415 * python/python.c (GdbMethods): Add lookup_objfile.
416 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
417 * python/py-objfile.c: #include "symtab.h".
418 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
419 (objfpy_lookup_objfile_by_name): New function.
420 (objfpy_lookup_objfile_by_build_id): New function.
421 (gdbpy_lookup_objfile): New function.
422
f161c171
MR
4232014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
424
425 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
426 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
427 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
428 macros.
429 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
430 Likewise.
431
71c24708
AA
4322014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
433
434 * completer.c: Include "target.h", "reggroups.h", and
435 "user-regs.h".
436 (reg_or_group_completer): New.
437 * completer.h (reg_or_group_completer): Declare.
438 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
439 the "info registers" and "info all-registers" commands and the
440 dbx-mode "lr" command.
441
f5b95c01
AA
4422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
443
444 * user-regs.c: Include "arch-utils.h", "command.h", and
445 "cli/cli-cmds.h".
446 (maintenance_print_user_registers): New.
447 (_initialize_user_regs): Register new "maint print user-registers"
448 subcommand.
449 * NEWS: Mention new GDB command "maint print user-registers".
450
3e29f34a
MR
4512014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
452 Maciej W. Rozycki <macro@mips.com>
453 Pedro Alves <pedro@codesourcery.com>
454
455 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
456 remove `predefault' and `invalid_p' initializers.
457 (make_symbol_special): New architecture method.
458 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
459 (objfile, symbol): New declarations.
460 * arch-utils.h (default_elf_make_msymbol_special): Remove
461 prototype.
462 (default_make_symbol_special): New prototype.
463 (default_adjust_dwarf2_addr): Likewise.
464 (default_adjust_dwarf2_line): Likewise.
465 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
466 * arch-utils.c (default_elf_make_msymbol_special): Remove
467 function.
468 (default_make_symbol_special): New function.
469 (default_adjust_dwarf2_addr): Likewise.
470 (default_adjust_dwarf2_line): Likewise.
471 * dwarf2-frame.c (decode_frame_entry_1): Call
472 `gdbarch_adjust_dwarf2_addr'.
473 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
474 * dwarf2read.c (create_addrmap_from_index): Likewise.
475 (process_psymtab_comp_unit_reader): Likewise.
476 (add_partial_symbol): Likewise.
477 (add_partial_subprogram): Likewise.
478 (process_full_comp_unit): Likewise.
479 (read_file_scope): Likewise.
480 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
481 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
482 (read_call_site_scope): Likewise.
483 (dwarf2_ranges_read): Likewise.
484 (dwarf2_record_block_ranges): Likewise.
485 (read_attribute_value): Likewise.
486 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
487 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
488 * elfread.c (elf_symtab_read): Don't call
489 `gdbarch_elf_make_msymbol_special' if unset.
490 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
491 the ISA bit from the PC.
492 * mips-tdep.c (mips_unmake_compact_addr): New function.
493 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
494 address appropriately.
495 (mips_make_symbol_special): New function.
496 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
497 (mips_pc_is_mips16): Likewise.
498 (mips_pc_is_micromips): Likewise.
499 (mips_pc_isa): Likewise.
500 (mips_adjust_dwarf2_addr): New function.
501 (mips_adjust_dwarf2_line): Likewise.
502 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
503 (mips_addr_bits_remove): Likewise.
504 (mips_skip_trampoline_code): Likewise.
505 (mips_write_pc): Don't set the ISA bit.
506 (mips_eabi_push_dummy_call): Likewise.
507 (mips_o64_push_dummy_call): Likewise.
508 (mips_gdbarch_init): Install `mips_make_symbol_special',
509 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
510 handlers.
511 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
512 target-specific symbol address adjustments.
513 * gdbarch.h: Regenerate.
514 * gdbarch.c: Regenerate.
515
21daaaaf
YQ
5162014-12-12 Yao Qi <yao@codesourcery.com>
517
518 PR tdep/14261
519 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
520 'skip_pc'. Remove code skipping prologue instructions, use
521 arm_analyze_prologue instead.
522 (arm_analyze_prologue): Stop the scanning for unrecognized
523 instruction when skipping prologue.
524
f303bc3e
YQ
5252014-12-12 Yao Qi <yao@codesourcery.com>
526
527 * arm-tdep.c (arm_instruction_restores_sp): New function.
528 (arm_analyze_prologue): Call arm_instruction_restores_sp.
529 (arm_in_function_epilogue_p): Move code to
530 arm_instruction_restores_sp.
531
05a6c3c8
DE
5322014-12-11 Doug Evans <xdje42@gmail.com>
533
534 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
535
fe2a438d
DE
5362014-12-11 Doug Evans <xdje42@gmail.com>
537
538 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
539 (symbol *lookup_symbol_via_quick_fns): Ditto.
540 (lookup_symbol_in_objfile): Add forward decl.
541 (lookup_global_symbol_from_objfile): Simplify, call
542 lookup_symbol_in_objfile.
543
540feddf
DE
5442014-12-11 Doug Evans <xdje42@gmail.com>
545
546 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
547
fc126975
SM
5482014-12-10 Simon Marchi <simon.marchi@ericsson.com>
549
550 PR breakpoints/17012
551 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
552 it is marked as persistent.
553
56286edf
DE
5542014-12-10 Doug Evans <xdje42@gmail.com>
555
556 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
557 closer to its subroutines.
558
34ef8452
DE
5592014-12-10 Doug Evans <xdje42@gmail.com>
560
561 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
562
9a80057a
DE
5632014-12-10 Doug Evans <xdje42@gmail.com>
564
565 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 566 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 567
1abf3a14
SM
5682014-12-10 Simon Marchi <simon.marchi@ericsson.com>
569
570 PR gdb/17627
571 * target.c (cleanup_restore_target_terminal): New function.
572 (make_cleanup_restore_target_terminal): New function.
573 * target.h (make_cleanup_restore_target_terminal): New declaration.
574 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
575
d4d1e336
DE
5762014-12-08 Doug Evans <dje@google.com>
577
578 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
579
a0be3e44
DE
5802014-12-08 Doug Evans <dje@google.com>
581
582 * NEWS: Mention gdb.Objfile.owner.
583 * python/py-objfile.c (objfpy_get_owner): New function.
584 (objfile_getset): Add "owner".
585
6c1c7be3
JK
5862014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
589 (lookup_global_symbol_from_objfile): Call it.
590
efad9b6a
JK
5912014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
592
593 Remove const from struct objfile *.
594 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
595 symtab.c, symtab.h: In these files.
596
069bb7ec
AF
5972014-12-05 Andreas From <andreas.from@ericsson.com>
598
599 * MAINTAINERS (Write After Approval): Add "Andreas From"
600
642a8d80
DE
6012014-12-05 Doug Evans <xdje42@gmail.com>
602
603 Revert:
604 PR symtab/17602
605 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
606
86e4ed39
DE
6072014-12-04 Doug Evans <dje@google.com>
608
609 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
610 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
611 (objfile_getset): Add "add_separate_debug_file".
612
7c50a931
DE
6132014-12-04 Doug Evans <dje@google.com>
614
615 * NEWS: Mention gdb.Objfile.build_id.
616 * build-id.c (build_id_bfd_get): Make non-static.
617 * build-id.h (build_id_bfd_get): Add declaration.
618 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
619 (OBJFPY_REQUIRE_VALID): New macro.
620 (objfpy_get_build_id): New function.
621 (objfile_getset): Add "build_id".
622 * utils.c (make_hex_string): New function.
623 * utils.h (make_hex_string): Add declaration.
624
ba715d7f
JK
6252014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
626
627 * block.c (block_lookup_symbol_primary): New function.
628 * block.h (block_lookup_symbol_primary): New declaration.
629 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
630 Call block_lookup_symbol_primary.
631
858339f2
MR
6322014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
633
634 * tramp-frame.h (tramp_frame): Add `validate' member.
635 * tramp-frame.c (tramp_frame_start): Validate trampoline before
636 scanning.
637 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
638 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
639 (mips_linux_o32_sigframe): Initialize `validate' member.
640 (mips_linux_o32_rt_sigframe): Likewise.
641 (mips_linux_n32_rt_sigframe): Likewise.
642 (mips_linux_n64_rt_sigframe): Likewise.
643 (micromips_linux_o32_sigframe): New variable.
644 (micromips_linux_o32_rt_sigframe): Likewise.
645 (micromips_linux_n32_rt_sigframe): Likewise.
646 (micromips_linux_n64_rt_sigframe): Likewise.
647 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
648 (mips_linux_n32n64_sigframe_init): Likewise.
649 (mips_linux_sigframe_validate): New function.
650 (micromips_linux_sigframe_validate): Likewise.
651 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
652
ff1eb2b5
UW
6532014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
654
655 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
656 * sparc-sol2-tdep.c: Include "regset.h".
657 (sparc32_sol2_supply_core_gregset): New function.
658 (sparc32_sol2_collect_core_gregset): Likewise.
659 (sparc32_sol2_supply_core_fpregset): Likewise.
660 (sparc32_sol2_collect_core_fpregset): Likewise.
661 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
662 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
663 tdep->fpregset/sizeof_fpregset.
664 * sparc64-sol2-tdep.c: Include "regset.h".
665 (sparc64_sol2_supply_core_gregset): New function.
666 (sparc64_sol2_collect_core_gregset): Likewise.
667 (sparc64_sol2_supply_core_fpregset): Likewise.
668 (sparc64_sol2_collect_core_fpregset): Likewise.
669 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
670 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
671 tdep->fpregset/sizeof_fpregset.
672
75783939
SM
6732014-12-03 Simon Marchi <simon.marchi@ericsson.com>
674
675 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
676 type.
677
7c5fdd25
DE
6782014-12-02 Doug Evans <dje@google.com>
679
680 * symtab.c (symbol_init_cplus_specific): Delete.
681 (symbol_set_demangled_name): Remove special c++ support.
682 (symbol_get_demangled_name, symbol_set_language): Ditto.
683 * symtab.h (struct cplus_specific): Delete.
684 (struct general_symbol_info) <language_specific>: Remove
685 cplus_specific.
686
29f0c3b7
DE
6872014-12-02 Doug Evans <dje@google.com>
688
689 PR symtab/17602
690 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
691
72998fb3
DE
6922014-12-02 Doug Evans <dje@google.com>
693
694 PR symtab/17591
695 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
696 to strip parameters.
697
422b9917
DE
6982014-12-02 Doug Evans <dje@google.com>
699
700 * dwarf2read.c (peek_die_abbrev): Improve error message text.
701
47c6ee49
DE
7022014-12-02 Doug Evans <dje@google.com>
703
704 * valops.c (do_search_struct_field): Remove remnant of Chill support.
705 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
706
5da3ffc9
SM
7072014-12-02 Simon Marchi <simon.marchi@ericsson.com>
708
709 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
710
162078c8
NB
7112014-12-02 Nick Bull <nicholaspbull@gmail.com>
712
713 * NEWS: Mention new Python events.
714 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
715 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
716 (py-infevents.o): New rule.
717 * doc/observer.texi (inferior_call_pre, inferior_call_post)
718 (memory_changed, register_changed): New observers.
719 * infcall.c (call_function_by_hand): Notify observer before and
720 after inferior call.
721 * python/py-event.h (inferior_call_kind): New enum.
722 (emit_inferior_call_event): New prototype.
723 (emit_register_changed_event): New prototype.
724 (emit_memory_changed_event): New prototype.
725 * python/py-events.h (events_object): New registries
726 inferior_call, memory_changed and register_changed.
727 * python/py-evts.c (gdbpy_initialize_py_events): Add the
728 inferior_call, memory_changed and register_changed registries.
729 * python/py-infevents.c: New.
730 * python/py-inferior.c (python_on_inferior_call_pre)
731 (python_on_inferior_call_post, python_on_register_change)
732 (python_on_memory_change): New functions.
733 (gdbpy_initialize_inferior): Attach python handler to new
734 observers.
735 * python/py-infthread.c(gdbpy_create_ptid_object): New.
736 (thpy_get_ptid) Use gdbpy_create_ptid_object.
737 * python/python-internal.h:
738 (gdbpy_create_ptid_object)
739 (gdbpy_initialize_inferior_call_pre_event)
740 (gdbpy_initialize_inferior_call_post_event)
741 (gdbpy_initialize_register_changed_event)
742 (gdbpy_initialize_memory_changed_event): New prototypes.
743 * python/python.c (_initialize_python): Initialize new events.
744 * valops.c (value_assign): Notify register_changed observer.
745
007baf27
DE
7462014-12-02 Doug Evans <dje@google.com>
747
748 * python/py-infthread.c: Whitespace fixes.
749
d5552aab
AA
7502014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
751
752 * features/Makefile (s390-te-linux64-expedite): Replace
753 non-existant r14 and r15 by r14l and r15l, respectively.
754 * regformats/s390-te-linux64.dat: Regenerate.
755
30b5e341
SM
7562014-12-01 Simon Marchi <simon.marchi@ericsson.com>
757
758 * objfiles.c (allocate_objfile): Remove duplicate comment.
759
ac3d87c0
UW
7602014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
761
762 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
763 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
764 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
765 (supply_gregset, supply_fpregset): Remove.
766 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
767 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
768 and sizeof_gregset.
769
f10c5b19
JK
7702014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
771
772 Add add-auto-load-scripts-directory.
773 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
774 * auto-load.c (add_auto_load_dir): New function.
775 (_initialize_auto_load): Install it.
776
f0d4ba1f
MG
7772014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
778
779 Pushed by Joel Brobecker <brobecker@adacore.com>.
780 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
781
18ac6ffc
SC
7822014-11-29 Siva Chandra Reddy <sivachandra@google.com>
783
784 * eval.c (evaluate_subexp): Check that the thread stack temporaries
785 are not already enabled before enabling them.
786
4072f920
YQ
7872014-11-29 Yao Qi <yao@codesourcery.com>
788
789 * arm-tdep.c (arm_analyze_prologue): Move local variables
790 'framereg' and 'framesize' to inner block. Move code to
791 inner block too.
792
6c659fc2
SC
7932014-11-28 Siva Chandra Reddy <sivachandra@google.com>
794
795 * eval.c: Include gdbthread.h.
796 (evaluate_subexp): Enable thread stack temporaries before
797 evaluating a complete expression and clean them up after the
798 evaluation is complete.
799 * gdbthread.h: Include common/vec.h.
800 (value_ptr): New typedef.
801 (VEC (value_ptr)): New vector type.
802 (value_vec): New typedef.
803 (struct thread_info): Add new fields stack_temporaries_enabled
804 and stack_temporaries.
805 (enable_thread_stack_temporaries)
806 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
807 (get_last_thread_stack_temporary)
808 (value_in_thread_stack_temporaries): Declare.
809 * gdbtypes.c (class_or_union_p): New function.
810 * gdbtypes.h (class_or_union_p): Declare.
811 * infcall.c (call_function_by_hand): Store return values of class
812 type as temporaries on stack.
813 * thread.c (enable_thread_stack_temporaries): New function.
814 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
815 (get_last_thread_stack_temporary): Likewise.
816 (value_in_thread_stack_temporaries): Likewise.
817 * value.c (value_force_lval): New function.
818 * value.h (value_force_lval): Declare.
819
f7ca3fcf
PM
8202014-11-28 Pierre Muller <muller@sourceware.org>
821
822 Pushed by Joel Brobecker <brobecker@adacore.com>.
823 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
824 registers.
825
b2859a9a
UW
8262014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
827
828 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
829 * config/sparc/linux.mh (NATDEPFILES): Likewise.
830 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
831 * m68klinux-nat.c (fetch_core_registers): Remove.
832 (linux_elf_core_fns): Remove.
833 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
834
0fa9473f
JB
8352014-11-28 Joel Brobecker <brobecker@adacore.com>
836
837 * utils.c (gdb_realpath): Rework comment about handling on
838 Windows.
839
6a29c58e
YQ
8402014-11-28 Yao Qi <yao@codesourcery.com>
841
842 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
843 rename.
844 * gnulib/aclocal.m4: Re-generated.
845 * gnulib/config.in: Re-generated.
846 * gnulib/configure: Re-generated.
847 * gnulib/import/Makefile.am: Re-generated.
848 * gnulib/import/Makefile.in: Re-generated.
849 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
850 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
851 * import/basename-lgpl.c: New file.
852 * import/dirname-lgpl.c: New file.
853 * import/dirname.h: New file.
854 * import/m4/dirname.m4: New file.
855 * import/m4/malloc.m4: New file.
856 * import/m4/rename.m4: New file.
857 * import/m4/rmdir.m4: New file.
858 * import/m4/stdio_h.m4: New file.
859 * import/malloc.c: New file.
860 * import/rename.c: New file.
861 * import/rmdir.c: New file.
862 * import/same-inode.h: New file.
863 * import/stdio.c: New file.
864 * import/stdio.in.h: New file.
865 * import/stripslash.c: New file.
866
abbffc89
YQ
8672014-11-28 Yao Qi <yao@codesourcery.com>
868
869 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
870 and realpath.
871 * config.in: Re-generated.
872 * configure: Re-generated.
873 * utils.c (gdb_realpath): Remove code calling realpath,
874 canonicalize_file_name and pathconf.
875 [!_WIN32]: Call canonicalize_file_name.
876
98399780
YQ
8772014-11-28 Yao Qi <yao@codesourcery.com>
878
879 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
880 canonicalize-lgpl.
881 * aclocal.m4: Re-generated.
882 * config.in: Re-generated.
883 * configure: Re-generated.
884 * import/Makefile.am: Re-generated.
885 * import/Makefile.in: Re-generated.
886 * import/m4/gnulib-cache.m4: Re-generated.
887 * import/m4/gnulib-comp.m4: Re-generated.
888 * import/canonicalize-lgpl.c: New file.
889 * import/extra/snippet/_Noreturn.h: New file.
890 * import/m4/canonicalize.m4: New file.
891 * import/m4/double-slash-root.m4: New file.
892 * import/m4/eealloc.m4: New file.
893 * import/m4/malloca.m4: New file.
894 * import/m4/nocrash.m4: New file.
895 * import/m4/stdlib_h.m4: New file.
896 * import/malloca.c: New file.
897 * import/malloca.h: New file.
898 * import/malloca.valgrind: New file.
899
3332aaf2
YQ
9002014-11-28 Yao Qi <yao@codesourcery.com>
901
902 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
903 * config.in, configure: Regenerate.
904 * symfile.c (find_separate_debug_file_by_debuglink): Remove
905 code checking HAVE_LSTAT is defined.
906
f45c62c4
YQ
9072014-11-28 Yao Qi <yao@codesourcery.com>
908
909 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
910 lstat.
911 * gnulib/aclocal.m4: Re-generated.
912 * gnulib/config.in: Re-generated.
913 * gnulib/configure: Re-generated.
914 * gnulib/import/Makefile.am: Re-generated.
915 * gnulib/import/Makefile.in: Re-generated.
916 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
917 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
918 * gnulib/import/lstat.c: New file.
919 * gnulib/import/m4/lstat.m4: New file.
920
bdca27a2
YQ
9212014-11-28 Yao Qi <yao@codesourcery.com>
922
923 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
924 * config.in, configure: Re-generate.
925 * inf-child.c (inf_child_fileio_readlink): Don't check
926 HAVE_READLINK is defined.
927
2196f55f
YQ
9282014-11-28 Yao Qi <yao@codesourcery.com>
929
930 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
931 * gnulib/aclocal.m4: Re-generated.
932 * gnulib/config.in: Likewise.
933 * gnulib/configure: Likewise.
934 * gnulib/import/Makefile.am: Likewise.
935 * gnulib/import/Makefile.in: Likewise.
936 * gnulib/import/m4/gnulib-cache.m4: Likewise.
937 * gnulib/import/m4/gnulib-comp.m4: Likewise.
938 * gnulib/import/dosname.h: New file
939 * gnulib/import/m4/largefile.m4: New file.
940 * gnulib/import/m4/readlink.m4: New file.
941 * gnulib/import/m4/stat.m4: New file.
942 * gnulib/import/readlink.c: New file.
943 * gnulib/import/stat.c: New file.
944
7014e923 9452014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
946
947 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
948 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
949
aa489395
SL
9502014-11-25 Sandra Loosemore <sandra@codesourcery.com>
951
952 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
953 that there can be only one stack adjustment in the prologue
954 with tests to detect specific disallowed stack adjustments.
955
7f1659b5
SL
9562014-11-25 Sandra Loosemore <sandra@codesourcery.com>
957
958 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
959 adjustments.
960
d53c26c7
SL
9612014-11-25 Sandra Loosemore <sandra@codesourcery.com>
962
963 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
964 the instruction as well as reading it from memory.
965 (nios2_match_add): New.
966 (nios2_match_sub): New.
967 (nios2_match_addi): New.
968 (nios2_match_orhi): New.
969 (nios2_match_stw): New.
970 (nios2_match_ldw): New.
971 (nios2_match_rdctl): New.
972 (enum branch_condition): New.
973 (nios2_match_branch): New.
974 (nios2_match_jmpi): New.
975 (nios2_match_calli): New.
976 (nios2_match_jmpr): New.
977 (nios2_match_callr): New.
978 (nios2_match_break): New.
979 (nios2_match_trap): New.
980 (nios2_in_epilogue_p): Rewrite to use new functions.
981 (nios2_analyze_prologue): Likewise.
982 (nios2_skip_prologue): Delete unused local limit_pc.
983 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
984 (nios2_get_next_pc): Rewrite to use new functions.
985
cac9b138
JK
9862014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
987
988 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
989
a441dfbc
ST
9902014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
991
992 Pushed by Joel Brobecker <brobecker@adacore.com>
993 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
994 elements pi_len by the size of the elements before calling
995 vm_deallocate.
996 (inf_validate_task_sc): Likewise, and properly deallocate the
997 noise array.
998
4c9e8482
DE
9992014-11-23 Doug Evans <xdje42@gmail.com>
1000
1001 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1002 number and name if present. All callers updated.
1003 (dump_fn_fieldlists): Fix indentation of args.
1004
15ee0bbd
PP
10052014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1006
1007 * MAINTAINERS (Write After Approval): Add myself.
1008
e8af5d7a
JB
10092014-11-23 Joel Brobecker <brobecker@adacore.com>
1010
1011 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1012 to a bp_call_dummy breakpoint type.
1013
a344fc09
PP
10142014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1015
1016 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1017 registering the signal handler.
1018
d64e57fa
PP
10192014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1020
1021 * event-top.h (call_stdin_event_handler_again_p): Declare.
1022 * event-top.c (call_stdin_event_handler_again_p): Define.
1023 (stdin_event_handler): Use it.
1024 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1025 handler again if there is pending input following a
1026 start sequence.
1027
6f9d33d8
PP
10282014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1029
1030 Pushed by Joel Brobecker <brobecker@adacore.com>
1031 * linux-fork.c (checkpoint_command): Print index of new
1032 checkpoint in response message.
1033
88db67ef
YQ
10342014-11-23 Yao Qi <yao@codesourcery.com>
1035
1036 * valprint.c (read_string): Move local variables 'found_nul',
1037 'chunksize' and 'limit' to inner scope. Update comments.
1038
01465b56
DE
10392014-11-22 Doug Evans <xdje42@gmail.com>
1040
1041 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1042 function comment.
1043 (search_symbols): Fix comments and whitespace.
1044
07a1c2c3
DE
10452014-11-22 Doug Evans <xdje42@gmail.com>
1046
1047 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1048
b2a919a8
DE
10492014-11-21 Doug Evans <dje@google.com>
1050
1051 * psymtab.c (psymtab_search_name): Fix whitespace.
1052
278289d5
YQ
10532014-11-21 Yao Qi <yao@codesourcery.com>
1054
1055 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1056 errno.
1057 * gnulib/import/Makefile.am: Re-generated.
1058 * gnulib/import/Makefile.in: Likewise.
1059 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1060
e01e2baa
YQ
10612014-11-21 Yao Qi <yao@codesourcery.com>
1062
1063 * gdb_wchar.h: Include wchar.h and wctype.h.
1064 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1065 include wchar.h and wctype.h.
1066 Don't check HAVE_WCHAR_H.
1067
f0c00af8
YQ
10682014-11-21 Yao Qi <yao@codesourcery.com>
1069
1070 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1071 and wctype-h.
1072 * gnulib/import/Makefile.am: Re-generated.
1073 * gnulib/import/Makefile.in: Likewise.
1074 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1075
0cae13bb
YQ
10762014-11-21 Yao Qi <yao@codesourcery.com>
1077
1078 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1079 memchr.
1080 * gnulib/import/Makefile.am: Re-generated.
1081 * gnulib/import/Makefile.in: Likewise.
1082 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1083
9c232dda
YQ
10842014-11-21 Yao Qi <yao@codesourcery.com>
1085
1086 * common/common-defs.h: Include alloca.h
1087 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1088 * configure: Re-generated.
1089 * defs.h: Remove code handling alloca.
1090 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1091 or not.
1092
00d7f58f
YQ
10932014-11-21 Yao Qi <yao@codesourcery.com>
1094
1095 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1096 alloca.
1097 * gnulib/import/Makefile.am: Re-generated.
1098 * gnulib/import/Makefile.in: Likewise..
1099 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1100
6068ad5d
YQ
11012014-11-21 Yao Qi <yao@codesourcery.com>
1102
1103 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1104 alphabetical order.
1105
45e44d27
JB
11062014-11-21 Joel Brobecker <brobecker@adacore.com>
1107
1108 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1109 flag_unsigned if HIGH_BOUND is constant and negative.
1110
7e7cbeb3
SDJ
11112014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1112
1113 PR breakpoints/10737
1114 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1115 modifier from "struct gdbarch" when compiling without Expat (XML)
1116 support.
1117 (get_syscall_by_number): Likewise.
1118 (get_syscall_by_name): Likewise.
1119 (get_syscall_names): Likewise.
1120
458c8db8
SDJ
11212014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1122
1123 PR breakpoints/10737
1124 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1125 set_xml_syscall_file_name to provide gdbarch.
1126 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1127 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1128 * breakpoint.c (print_it_catch_syscall): Adjust call to
1129 get_syscall_by_number to provide gdbarch.
1130 (print_one_catch_syscall): Likewise.
1131 (print_mention_catch_syscall): Likewise.
1132 (print_recreate_catch_syscall): Likewise.
1133 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1134 and get_syscall_by_name to provide gdbarch.
1135 (catch_syscall_completer): Adjust call to get_syscall_names to
1136 provide gdbarch.
1137 * gdbarch.c: Regenerate.
1138 * gdbarch.h: Likewise.
1139 * gdbarch.sh: Forward declare "struct syscalls_info".
1140 (xml_syscall_file): New variable.
1141 (syscalls_info): Likewise.
1142 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1143 set_xml_syscall_file_name to provide gdbarch.
1144 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1145 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1146 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1147 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1148 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1149 * xml-syscall.c: Include gdbarch.h.
1150 (set_xml_syscall_file_name): Accept gdbarch parameter.
1151 (get_syscall_by_number): Likewise.
1152 (get_syscall_by_name): Likewise.
1153 (get_syscall_names): Likewise.
1154 (my_gdb_datadir): Delete global variable.
1155 (struct syscalls_info) <my_gdb_datadir>: New variable.
1156 (struct syscalls_info) <sysinfo>: Rename variable to
1157 "syscalls_info".
1158 (sysinfo): Delete global variable.
1159 (have_initialized_sysinfo): Likewise.
1160 (xml_syscall_file): Likewise.
1161 (sysinfo_free_syscalls_desc): Rename to...
1162 (syscalls_info_free_syscalls_desc): ... this.
1163 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1164 code to the new layout of "struct syscalls_info".
1165 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1166 "syscalls_info".
1167 (syscall_create_syscall_desc): Likewise.
1168 (syscall_start_syscall): Likewise.
1169 (syscall_parse_xml): Likewise.
1170 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1171 (init_sysinfo): Rename to...
1172 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1173 Adjust function to deal with gdbarch.
1174 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1175 gdbarch as a parameter. Adjust code.
1176 (xml_get_syscall_name): Likewise.
1177 (xml_list_of_syscalls): Likewise.
1178 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1179 (get_syscall_by_number): Likewise.
1180 (get_syscall_by_name): Likewise.
1181 (get_syscall_names): Likewise.
1182 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1183 (get_syscall_by_number): Likewise.
1184 (get_syscall_by_name): Likewise.
1185 (get_syscall_names): Likewise.
1186
43f3e411
DE
11872014-11-20 Doug Evans <xdje42@gmail.com>
1188
1189 Split struct symtab into two: struct symtab and compunit_symtab.
1190 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1191 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1192 to "struct compunit_symtab *". All callers updated.
1193 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1194 "struct symtab *" argument to "struct compunit_symtab *".
1195 All callers updated.
1196 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1197 result to "struct compunit_symtab *". All callers updated.
1198 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1199 Change result to "struct compunit_symtab *". All callers updated.
1200 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1201 hange type to "struct compunit_symtab *". All uses updated.
1202 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1203 Change type to "struct compunit_symtab *". All uses updated.
1204 * buildsym.c (struct buildsym_compunit): New struct.
1205 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1206 (buildsym_compunit): New static global.
1207 (finish_block_internal): Update to fetch objfile from
1208 buildsym_compunit.
1209 (make_blockvector): Delete objfile argument.
1210 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1211 debugformat, producer.
1212 (start_buildsym_compunit): New function.
1213 (free_buildsym_compunit): Renamed from free_subfiles_list.
1214 All callers updated.
1215 (patch_subfile_names): Rewrite to use buildsym_compunit.
1216 (get_compunit_symtab): New function.
1217 (get_macro_table): Delete argument comp_dir. All callers updated.
1218 (start_symtab): Change result to "struct compunit_symtab *".
1219 All callers updated. Create the subfile of the main source file.
1220 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1221 (reset_symtab_globals): Update.
1222 (end_symtab_get_static_block): Update to use buildsym_compunit.
1223 (end_symtab_without_blockvector): Rewrite.
1224 (end_symtab_with_blockvector): Change result to
1225 "struct compunit_symtab *". All callers updated.
1226 Update to use buildsym_compunit. Don't set symtab->dirname,
1227 instead set it in the compunit.
1228 Explicitly make sure main symtab is first in its list.
1229 Set debugformat, producer, blockvector, block_line_section, and
1230 macrotable in the compunit.
1231 (end_symtab_from_static_block): Change result to
1232 "struct compunit_symtab *". All callers updated.
1233 (end_symtab, end_expandable_symtab): Ditto.
1234 (set_missing_symtab): Change symtab argument to
1235 "struct compunit_symtab *". All callers updated.
1236 (augment_type_symtab): Ditto.
1237 (record_debugformat): Update to use buildsym_compunit.
1238 (record_producer): Update to use buildsym_compunit.
1239 * buildsym.h (struct subfile) <dirname>: Delete.
1240 <producer, debugformat>: Delete.
1241 <buildsym_compunit>: New member.
1242 (get_compunit_symtab): Declare.
1243 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1244 from primary_symtab. Change type to "struct compunit_symtab *".
1245 All uses updated.
1246 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1247 All callers updated.
1248 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1249 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1250 symtab. Change type to "struct compunit_symtab *". All uses updated.
1251 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1252 All callers updated.
1253 (dw2_find_last_source_symtab): Ditto.
1254 (dw2_lookup_symbol): Ditto.
1255 (recursively_find_pc_sect_compunit_symtab): Renamed from
1256 recursively_find_pc_sect_symtab. Change result to
1257 "struct compunit_symtab *". All callers updated.
1258 (dw2_find_pc_sect_compunit_symtab): Renamed from
1259 dw2_find_pc_sect_symtab. Change result to
1260 "struct compunit_symtab *". All callers updated.
1261 (get_compunit_symtab): Renamed from get_symtab. Change result to
1262 "struct compunit_symtab *". All callers updated.
1263 (recursively_compute_inclusions): Change type of immediate_parent
1264 argument to "struct compunit_symtab *". All callers updated.
1265 (compute_compunit_symtab_includes): Renamed from
1266 compute_symtab_includes. All callers updated. Rewrite to compute
1267 includes of compunit_symtabs and not symtabs.
1268 (process_full_comp_unit): Update to work with struct compunit_symtab.
1269 (process_full_type_unit): Ditto.
1270 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1271 (dwarf_decode_lines): Remove special case handling of main subfile.
1272 (macro_start_file): Delete argument comp_dir. All callers updated.
1273 (dwarf_decode_macro_bytes): Ditto.
1274 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1275 use struct compunit_symtab.
1276 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1277 * jit.c (finalize_symtab): Build compunit_symtab.
1278 * jv-lang.c (get_java_class_symtab): Change result to
1279 "struct compunit_symtab *". All callers updated.
1280 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1281 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1282 comp_dir. Change type to "struct compunit_symtab *".
1283 All uses updated.
1284 (new_macro_table): Change comp_dir argument to cust,
1285 "struct compunit_symtab *". All callers updated.
1286 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1287 nr_primary_symtabs. All uses updated.
1288 (count_symtabs_and_blocks): Update to handle compunits.
1289 (report_command_stats): Update output, "primary symtabs" renamed to
1290 "compunits".
1291 * mdebugread.c (new_symtab): Change result to
1292 "struct compunit_symtab *". All callers updated.
1293 (parse_procedure): Change type of search_symtab argument to
1294 "struct compunit_symtab *". All callers updated.
1295 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1296 separate loop.
1297 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1298 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1299 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1300 All uses updated.
1301 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1302 All uses updated.
1303 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1304 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1305 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1306 symtab. Change type to "struct compunit_symtab *". All uses updated.
1307 * psymtab.c (psymtab_to_symtab): Change result type to
1308 "struct compunit_symtab *". All callers updated.
1309 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1310 find_pc_sect_symtab_from_partial. Change result type to
1311 "struct compunit_symtab *". All callers updated.
1312 (lookup_symbol_aux_psymtabs): Change result type to
1313 "struct compunit_symtab *". All callers updated.
1314 (find_last_source_symtab_from_partial): Ditto.
1315 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1316 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1317 and macro_table from compunit.
1318 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1319 type to "struct compunit_symtab *". All callers updated.
1320 (debug_qf_lookup_symbol): Ditto.
1321 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1322 debug_qf_find_pc_sect_symtab, change result type to
1323 "struct compunit_symtab *". All callers updated.
1324 * symfile.c (allocate_symtab): Delete objfile argument.
1325 New argument cust.
1326 (allocate_compunit_symtab): New function.
1327 (add_compunit_symtab_to_objfile): New function.
1328 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1329 Change result type to "struct compunit_symtab *". All uses updated.
1330 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1331 Change result type to "struct compunit_symtab *". All uses updated.
1332 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1333 separate loop.
1334 (dump_symtab_1): Update test for primary source symtab.
1335 (maintenance_info_symtabs): Update to handle compunit symtabs.
1336 (maintenance_check_symtabs): Ditto.
1337 * symtab.c (set_primary_symtab): Delete.
1338 (compunit_primary_filetab): New function.
1339 (compunit_language): New function.
1340 (iterate_over_some_symtabs): Change type of arguments "first",
1341 "after_last" to "struct compunit_symtab *". All callers updated.
1342 Update to loop over symtabs in each compunit.
1343 (error_in_psymtab_expansion): Rename symtab argument to cust,
1344 and change type to "struct compunit_symtab *". All callers updated.
1345 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1346 Change result type to "struct compunit_symtab *". All callers updated.
1347 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1348 Change result type to "struct compunit_symtab *". All callers updated.
1349 (find_pc_sect_line): Only loop over symtabs within selected compunit
1350 instead of all symtabs in the objfile.
1351 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1352 <compunit_symtab> New member.
1353 <block_line_section>: Moved to compunit_symtab.
1354 <locations_valid>: Ditto.
1355 <epilogue_unwind_valid>: Ditto.
1356 <macro_table>: Ditto.
1357 <dirname>: Ditto.
1358 <debugformat>: Ditto.
1359 <producer>: Ditto.
1360 <objfile>: Ditto.
1361 <call_site_htab>: Ditto.
1362 <includes>: Ditto.
1363 <user>: Ditto.
1364 <primary>: Delete
1365 (SYMTAB_COMPUNIT): New macro.
1366 (SYMTAB_BLOCKVECTOR): Update definition.
1367 (SYMTAB_OBJFILE): Update definition.
1368 (SYMTAB_DIRNAME): Update definition.
1369 (struct compunit_symtab): New type. Common members among all source
1370 symtabs within a compilation unit moved here. All uses updated.
1371 (COMPUNIT_OBJFILE): New macro.
1372 (COMPUNIT_FILETABS): New macro.
1373 (COMPUNIT_DEBUGFORMAT): New macro.
1374 (COMPUNIT_PRODUCER): New macro.
1375 (COMPUNIT_DIRNAME): New macro.
1376 (COMPUNIT_BLOCKVECTOR): New macro.
1377 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1378 (COMPUNIT_LOCATIONS_VALID): New macro.
1379 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1380 (COMPUNIT_CALL_SITE_HTAB): New macro.
1381 (COMPUNIT_MACRO_TABLE): New macro.
1382 (ALL_COMPUNIT_FILETABS): New macro.
1383 (compunit_symtab_ptr): New typedef.
1384 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1385
005e2509
JB
13862014-11-20 Joel Brobecker <brobecker@adacore.com>
1387
1388 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1389 if the TYPE_CODE of range_type's base type does not match
1390 the TYPE_CODE of encoding_type's base type.
1391
2b0f535a
JB
13922014-11-19 Joel Brobecker <brobecker@adacore.com>
1393
1394 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1395 it starts with '<'.
1396
8908fca5
JB
13972014-11-19 Joel Brobecker <brobecker@adacore.com>
1398
1399 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1400 (ada_is_redundant_index_type_desc): New function.
1401 (to_fixed_array_type): Ignore parallel XA type if redundant.
1402
4a46959e
JB
14032014-11-19 Joel Brobecker <brobecker@adacore.com>
1404
1405 * ada-lang.c (constrained_packed_array_type): Set the length
1406 of the return array as if both bounds where zero if that
1407 returned array's index type is dynamic.
1408
2acf986b
YQ
14092014-11-19 Yao Qi <yao@codesourcery.com>
1410
1411 * config/i386/go32.mh (CC): Remove.
1412
439247b6
DE
14132014-11-18 Doug Evans <xdje42@gmail.com>
1414
1415 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1416 updated.
1417
4d663531
DE
14182014-11-18 Doug Evans <xdje42@gmail.com>
1419
1420 * buildsym.c (buildsym_objfile): New static global.
1421 (buildsym_comp_dir): New static global.
1422 (finish_block_internal): Delete arg objfile. All callers updated.
1423 (finish_block): Delete arg objfile. All callers updated.
1424 (start_subfile): Delete arg dirname. All callers updated.
1425 (patch_subfile_names): Update buildsym_comp_dir.
1426 (get_macro_table): Delete arg objfile. All callers updated.
1427 (start_symtab): New arg objfile. All callers updated.
1428 Rename arg dirname to comp_dir.
1429 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1430 (end_symtab_get_static_block): Delete arg objfile. All callers
1431 updated.
1432 (end_symtab_without_blockvector): Ditto.
1433 (end_symtab_with_blockvector): Ditto.
1434 (end_symtab_from_static_block): Ditto.
1435 (end_symtab): Ditto.
1436 (end_expandable_symtab): Ditto.
1437 (augment_type_symtab): Ditto.
1438 * coffread.c (coff_start_symtab): New arg objfile. All callers
1439 updated.
1440
8435453b
DE
14412014-11-18 Doug Evans <xdje42@gmail.com>
1442
1443 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1444 updated.
1445
ee6f8984
DE
14462014-11-18 Doug Evans <xdje42@gmail.com>
1447
1448 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1449 symtab.dirname updated to use it.
1450
eb822aa6
DE
14512014-11-18 Doug Evans <xdje42@gmail.com>
1452
1453 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1454 symtab.objfile updated to use it.
1455
98387a29
DE
14562014-11-18 Doug Evans <xdje42@gmail.com>
1457
1458 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1459
aff08958
DE
14602014-11-18 Doug Evans <xdje42@gmail.com>
1461
1462 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1463 SYMBOL_OBJFILE.
1464 * findvar.c (default_read_var_value): Ditto.
1465 * jv-lang.c (add_class_symtab_symbol): Ditto.
1466 * parse.c (operator_check_standard): Ditto.
1467 * printcmd.c (address_info): Ditto.
1468 * symtab.c (fixup_symbol_section): Ditto.
1469 (skip_prologue_sal): Ditto.
1470 * tracepoint.c (scope_info): Ditto.
1471 * valops.c (find_function_in_inferior): Ditto.
1472 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1473 * python/py-symbol.c (set_symbol): Ditto.
1474
7bab9b58
DE
14752014-11-18 Doug Evans <xdje42@gmail.com>
1476
1477 * buildsym.c (main_subfile): New static global.
1478 (free_subfiles_list): New function.
1479 (start_symtab): Set main_subfile.
1480 (restart_symtab): Replace init of subfiles, current_subfile with
1481 call to free_subfiles_list.
1482 (watch_main_source_file_lossage): Use main_subfile.
1483 (reset_symtab_globals): Replace init of current_subfile with call
1484 to free_subfiles_list.
1485 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1486 functions, split out from ...
1487 (end_symtab_from_static_block): ... here. Rewrite to call them.
1488
f194fefb
DE
14892014-11-18 Doug Evans <xdje42@gmail.com>
1490
1491 The result of symtab expansion is always a primary symtab.
1492 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1493 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1494 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1495 (psymtab_to_symtab): Add comment and assert.
1496 (map_matching_symbols_psymtab): Remove unnecessary test for
1497 non-primary symtab.
1498
34248c3a
DE
14992014-11-15 Doug Evans <xdje42@gmail.com>
1500
1501 PR symtab/17559
1502 * symtab.c (find_pc_line_symtab): New function.
1503 * symtab.h (find_pc_line_symtab): Declare.
1504 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1505 find_pc_symtab.
1506 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1507 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1508 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1509 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1510 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1511 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1512
2097ae25
DE
15132014-11-15 Doug Evans <xdje42@gmail.com>
1514
1515 * symtab.c (expand_symtab_containing_pc): Renamed from
1516 find_pc_sect_symtab_via_partial. All callers updated.
1517
1ada499f
YQ
15182014-11-15 Yao Qi <yao@codesourcery.com>
1519
1520 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1521
355e2102
JB
15222014-11-14 Joel Brobecker <brobecker@adacore.com>
1523
1524 * common/common-defs.h: Move <stdarg.h> #include ahead of
1525 <stdio.h> #include.
1526
83030110
PA
15272014-11-14 Pedro Alves <palves@redhat.com>
1528
1529 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1530 [!PHONY_ICONV] (gdb_iconv): New function.
1531 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1532
a8719064
DE
15332014-11-13 Doug Evans <dje@google.com>
1534
1535 PR symtab/17591
1536 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1537 "(anonymous namespace)".
1538
60f7655a
DE
15392014-11-13 Doug Evans <dje@google.com>
1540
1541 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1542 infinite loop.
1543
5784b3ca
JK
15442014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 * NEWS (maint set target-async): Fix typo.
1547
6218dc4b
PA
15482014-11-12 Pedro Alves <palves@redhat.com>
1549
1550 * infrun.c (enum infwait_states, infwait_state): Delete.
1551
af48d08f
PA
15522014-11-12 Pedro Alves <palves@redhat.com>
1553
1554 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1555 Rewrite stepping over a permanent breakpoint.
1556 (thread_still_needs_step_over, proceed): Don't set
1557 stepping_over_breakpoint for permanent breakpoints.
1558 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1559 single-step breakpoints out of the target on hardware step
1560 targets.
1561 (process_event_stop_test): If stepping a permanent breakpoint
1562 doesn't hit the step-resume breakpoint, delete the step-resume
1563 breakpoint.
1564 (switch_back_to_stepped_thread): Also check if the stepped thread
1565 has advanced already on hardware step targets.
1566 (currently_stepping): Return true if the thread stepped a
1567 breakpoint.
1568
1a853c52
PA
15692014-11-12 Pedro Alves <palves@redhat.com>
1570
1571 Mark locations as permanent, not the whole breakpoint.
1572 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1573 (mark_breakpoints_out): Don't mark permanent breakpoints as
1574 uninserted.
1575 (breakpoint_init_inferior): Use mark_breakpoints_out.
1576 (breakpoint_here_p): Adjust.
1577 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1578 of permanent breakpoints.
1579 (make_breakpoint_permanent): Mark each location as permanent,
1580 instead of marking the breakpoint.
1581 (add_location_to_breakpoint): If the location is permanent, mark
1582 it as such, and as inserted.
1583 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1584 (bp_location_compare, update_global_location_list): Adjust.
1585 (update_breakpoint_locations): Don't make the breakpoint permanent
1586 here.
1587 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1588 breakpoints.
1589 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1590 (struct bp_location) <permanent>: New field.
1591 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1592 reference to bp_permanent.
1593
ae9bb220
PA
15942014-11-12 Pedro Alves <palves@redhat.com>
1595
1596 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1597 * arch-utils.h (default_skip_permanent_breakpoint): New
1598 declaration.
1599 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1600 Install default_skip_permanent_breakpoint as default method.
1601 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1602 (i386_gdbarch_init): Don't install it.
1603 * infrun.c (resume): Assume there's always a
1604 gdbarch_skip_permanent_breakpoint implementation.
1605 * gdbarch.h, gdbarch.c: Regenerate.
1606
015de688
DC
16072014-11-11 Daniel Colascione <dancol@dancol.org>
1608
1609 Warn about cross-PID-namespace debugging.
1610 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1611 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1612 * linux-thread-db.c (check_pid_namespace_match): New function.
1613 (thread_db_inferior_created): Call it.
1614
26a84859
DE
16152014-11-10 Doug Evans <xdje42@gmail.com>
1616
1617 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1618 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1619
712a2e6d
DE
16202014-11-10 Doug Evans <xdje42@gmail.com>
1621
1622 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1623
af3768e9
DE
16242014-11-10 Doug Evans <xdje42@gmail.com>
1625
1626 PR symtab/17564
1627 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1628 (lookup_static_symbol): Move definition to new location and rewrite.
1629 (lookup_symbol_in_objfile): New function.
1630 (lookup_symbol_global_iterator_cb): Call it.
1631
b1f28d99
UW
16322014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1633
1634 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1635
b7a084be
PA
16362014-11-07 Pedro Alves <palves@redhat.com>
1637
1638 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1639 check if we did a "nexti" inside a prologue.
1640 * symtab.c (in_prologue): Delete function.
1641 * symtab.h (in_prologue): Delete declaration.
1642
67be31e5
DE
16432014-11-06 Doug Evans <xdje42@gmail.com>
1644
1645 * symtab.h (lookup_global_symbol): Improve function comment.
1646
08724ab7
DE
16472014-11-06 Doug Evans <xdje42@gmail.com>
1648
1649 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1650 All callers updated.
1651 * symtab.h (lookup_global_symbol): Update decl.
1652 (lookup_static_symbol): Move decl to better location.
1653
d9060ba6
DE
16542014-11-06 Doug Evans <xdje42@gmail.com>
1655
1656 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1657
74016e12
DE
16582014-11-06 Doug Evans <xdje42@gmail.com>
1659
1660 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1661 All callers updated.
1662 (lookup_symbol_in_all_objfiles): Renamed from
1663 lookup_symbol_aux_symtabs. All callers updated.
1664 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1665 All callers updated.
1666 (lookup_symbol_in_objfile_symtabs): Renamed from
1667 lookup_symbol_aux_objfile. All callers updated.
1668
d1a2d36d
DE
16692014-11-06 Doug Evans <xdje42@gmail.com>
1670
1671 * symtab.c (lookup_symbol_in_block): Renamed from
1672 lookup_symbol_aux_block. All callers updated.
1673
24d864bb
DE
16742014-11-06 Doug Evans <xdje42@gmail.com>
1675
1676 * symtab.c (lookup_static_symbol): Renamed from
1677 lookup_static_symbol_aux. All callers updated.
1678 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1679 All callers updated.
1680
358d6ab3
DE
16812014-11-06 Doug Evans <xdje42@gmail.com>
1682
1683 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1684 * block.c (block_lookup_symbol): Use it.
1685 * cp-support.c (make_symbol_overload_list_block): Use it.
1686 * symtab.c (iterate_over_symbols): Use it.
1687
16b2eaa1
DE
16882014-11-06 Doug Evans <xdje42@gmail.com>
1689
1690 * symtab.c (lookup_block_symbol): Moved to ...
1691 * block.c (block_lookup_symbol): ... here and renamed.
1692 All callers updated.
1693 * block.h (block_lookup_symbol): Declare.
1694 * symtab.h (lookup_block_symbol): Delete.
1695
2dd2cd1c
DE
16962014-11-06 Doug Evans <xdje42@gmail.com>
1697
1698 * ada-lang.c (ada_make_symbol_completion_list): Use
1699 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1700 * symtab.c (lookup_objfile_from_block): Ditto.
1701
d4c58915
DE
17022014-11-06 Doug Evans <xdje42@gmail.com>
1703
1704 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1705 TYPE_CODE_STRUCT.
1706
9c1877ea
DE
17072014-11-06 Doug Evans <xdje42@gmail.com>
1708
1709 * objfiles.c (get_objfile_arch): Constify.
1710 * objfiles.h (get_objfile_arch): Update prototype.
1711 * solib.c (solib_global_lookup): Fetch arch from objfile,
1712 not target_gdbarch.
1713
426a4079
SL
17142014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1715
1716 * nios2-tdep.c (wild_insn): Delete.
1717 (profiler_insn, irqentry_insn): Delete.
1718 (nios2_match_sequence): Delete.
1719 (nios2_analyze_prologue): Update comments. Remove matching
1720 of obsolete profiler_insn and irqentry_insn sequences.
1721
ee11262d
AM
17222014-11-05 Alan Modra <amodra@gmail.com>
1723
1724 * charset.c (convert_between_encodings): Shrink obstack using
1725 obstack_blank_fast.
1726 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1727 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1728 to char* before doing pointer arithmetic.
ee11262d 1729
c87e6d00
SM
17302014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1731
1732 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1733
441ef17f
PA
17342014-11-04 Pedro Alves <palves@redhat.com>
1735
1736 * breakpoint.c (breakpoint_thread_match): Delete function.
1737 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1738
e0f52461
SC
17392014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1740
1741 PR c++/17494
1742 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1743 the method args also under EVAL_SKIP when evaluating method
1744 calls under EVAL_SKIP.
1745
a0b4d890
YQ
17462014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1747
1748 * dwarf2loc.c (read_pieced_value): Do big endian
1749 processing only if gdb_regnum is not -1.
1750 (write_pieced_value): Ditto.
1751
17522014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1753
1754 * arm-linux-tdep.c (arm_linux_init_abi): Use
1755 info.byte_order_for_code to choose endianity of breakpoint
1756 instructions snippets.
1757
17582014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1759
1760 * arm-tdep.c (extract_arm_insn): Use
1761 gdbarch_byte_order_for_code to read arm instruction.
1762
e82149ff
DE
17632014-11-02 Doug Evans <xdje42@gmail.com>
1764
1765 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1766
d7ee84f1
DE
17672014-11-02 Doug Evans <xdje42@gmail.com>
1768
1769 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1770 main_subfile before returning.
1771
4f072d17
DE
17722014-10-31 Doug Evans <xdje42@gmail.com>
1773
1774 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1775 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1776
8301c89e
DE
17772014-10-31 Doug Evans <xdje42@gmail.com>
1778
1779 * valops.c (value_cast_pointers): Fix whitespace.
1780 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1781 Ditto.
1782
02be9a71
DE
17832014-10-30 Doug Evans <dje@google.com>
1784
1785 * NEWS: Mention ability add attributes to gdb.Objfile and
1786 gdb.Progspace objects.
1787 * python/py-objfile.c (objfile_object): New member dict.
1788 (objfpy_dealloc): Py_XDECREF dict.
1789 (objfpy_initialize): Initialize dict.
1790 (objfile_getset): Add __dict__.
1791 (objfile_object_type): Set tp_dictoffset member.
1792 * python/py-progspace.c (progspace_object): New member dict.
1793 (pspy_dealloc): Py_XDECREF dict.
1794 (pspy_initialize): Initialize dict.
1795 (pspace_getset): Add __dict__.
1796 (pspace_object_type): Set tp_dictoffset member.
1797
6427bef6
YQ
17982014-10-30 Yao Qi <yao@codesourcery.com>
1799
1800 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1801 replace '\\' with '\\\\'.
1802
f60325be
JB
18032014-10-29 Joel Brobecker <brobecker@adacore.com>
1804
1805 GDB 7.8.1 released.
1806
ab917dfb
PA
18072014-10-29 Pedro Alves <palves@redhat.com>
1808
1809 PR gdb/17408
1810 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1811 instead of assuming a thread with a stepping range is always
1812 stepping.
1813
d3d4baed
PA
18142014-10-29 Pedro Alves <palves@redhat.com>
1815
1816 PR python/17372
1817 * event-top.c (change_line_handler): Call
1818 gdb_rl_callback_handler_remove instead of
1819 rl_callback_handler_remove.
1820 (callback_handler_installed): New global.
1821 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1822 (gdb_rl_callback_handler_reinstall): New functions.
1823 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1824 gdb_rl_callback_handler_install instead of
1825 rl_callback_handler_remove and rl_callback_handler_install.
1826 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1827 instead of rl_callback_handler_remove.
1828 * event-top.h (gdb_rl_callback_handler_remove)
1829 (gdb_rl_callback_handler_install)
1830 (gdb_rl_callback_handler_reinstall): New declarations.
1831 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1832 cleanup function.
1833 (fetch_inferior_event): Install it.
1834 * top.c (gdb_readline_wrapper_line) Call
1835 gdb_rl_callback_handler_remove instead of
1836 rl_callback_handler_remove.
1837 (gdb_readline_wrapper_cleanup): Don't call
1838 rl_callback_handler_install.
1839
6e5d7f39
PA
18402014-10-29 Pedro Alves <palves@redhat.com>
1841
1842 * event-top.c (command_line_handler): Clear the first byte of
1843 linebuffer, when it is first allocated.
1844
551cb6a5
PA
18452014-10-29 Pedro Alves <palves@redhat.com>
1846
1847 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1848 TRY_CATCH.
1849
1e1e619b
PA
18502014-10-29 Pedro Alves <palves@redhat.com>
1851
1852 PR tui/16138
1853 PR tui/17519
1854 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1855 (tui_allowed_p): Delete function.
1856 * tui/tui.c: Include "interps.h".
1857 (tui_enable): Don't use tui_allowed_p. Error out here with
1858 detailed error messages if the TUI is the top level interpreter,
1859 or if output is not a terminal. Use newterm instead of initscr,
1860 and error out if initializing the terminal fails. Also error out if
1861 the terminal doesn't support cursor addressing.
1862 * tui/tui.h (tui_allowed_p): Delete declaration.
1863
6041179a
JB
18642014-10-29 Joel Brobecker <brobecker@adacore.com>
1865
1866 * arm-tdep.c (arm_skip_stack_protector): Return early if
1867 address loaded by first "ldr" instruction does not have
1868 a corresponding minimal symbol. Update comment.
1869
6ae274b7
YQ
18702014-10-29 Yao Qi <yao@codesourcery.com>
1871
1872 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1873 loaded address correctly of ldr instruction.
1874
7f5ef605
PA
18752014-10-28 Pedro Alves <palves@redhat.com>
1876
1877 PR gdb/12623
1878 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1879 field.
1880 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1881 thread's stepped_breakpoint field. Skip if reverse debugging.
1882 Add comment.
1883 (init_thread_stepping_state, handle_signal_stop): Clear the
1884 thread's stepped_breakpoint field.
1885
7d1a114c
PA
18862014-10-27 Pedro Alves <palves@redhat.com>
1887
1888 * remote.c (remote_thread_alive): New, factored out from ...
1889 (remote_thread_alive): ... this.
1890 (remote_update_thread_list): Bail out before deleting threads if
1891 the target returned an empty list, and, the current thread has a
1892 magic/fake ptid.
1893
e5f8a7cc
PA
18942014-10-27 Pedro Alves <palves@redhat.com>
1895
1896 * infrun.c (handle_signal_stop): Also skip handlers when a random
1897 signal arrives while handling a "stepi" or a "nexti". Set the
1898 thread's 'step_after_step_resume_breakpoint' flag.
1899
71e396f9
LM
19002014-10-27 Luis Machado <lgustavo@codesourcery.com>
1901
1902 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1903 (arm_record_ld_st_imm_offset): Reimplement to cover all
1904 load/store cases for ARM opcode 010.
1905 (arm_record_ld_st_multiple): Reimplement to cover all
1906 load/store cases for ARM opcode 100.
1907
3aee438b
DE
19082014-10-26 Doug Evans <xdje42@gmail.com>
1909
1910 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1911
f88cb4b6
DE
19122014-10-26 Doug Evans <xdje42@gmail.com>
1913
1914 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1915 parameter "kind" to "block_index".
1916 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1917 "block_index".
1918 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1919
a023a30f
DE
19202014-10-26 Doug Evans <xdje42@gmail.com>
1921
1922 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1923
4c35218e
DE
19242014-10-26 Doug Evans <xdje42@gmail.com>
1925
1926 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1927 obstack_alloc.
1928
f08e8df3
DE
19292014-10-26 Doug Evans <xdje42@gmail.com>
1930
1931 * parser-defs.h (block_found): Move decl from here ...
1932 * symtab.h (block_found): ... to here.
1933
cf901d3b
DE
19342014-10-26 Doug Evans <xdje42@gmail.com>
1935
1936 * symtab.h (struct field_of_this_result): Fix typo in comment.
1937 (lookup_symbol_in_language): Move function comment here.
1938 (lookup_symbol): Improve function comment.
1939 (basic_lookup_symbol_nonlocal): Ditto.
1940 (lookup_symbol_static, lookup_symbol_global): Ditto.
1941 (lookup_symbol_aux_block): Ditto.
1942 (lookup_language_this): Add function comment.
1943 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1944 function comment.
1945 (lookup_block_symbol): Improve function comment.
1946 (lookup_struct): Fix capitalization in function comment.
1947 (lookup_transparent_type): Add function comment.
1948 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1949 Improve function comment.
1950 (lookup_objfile_from_block): Add function comment.
1951 * symtab.c (lookup_symbol_in_language): Update function comment.
1952 (lookup_symbol, lookup_language_this): Ditto.
1953 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1954 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1955 (basic_lookup_symbol_nonlocal): Ditto.
1956 (lookup_symbol_static, lookup_symbol_global): Ditto.
1957 (lookup_transparent_type, lookup_block_symbol): Ditto.
1958
ff6c39cf
DE
19592014-10-25 Doug Evans <xdje42@gmail.com>
1960
1961 * symtab.c (types_info): Delete forward decl.
1962 (functions_info, variables_info, sources_info): Ditto.
1963 (_initialize_symtab): Rewrite forward decl to use
1964 initialize_file_ftype.
1965
ec201f0c
DE
19662014-10-25 Doug Evans <xdje42@gmail.com>
1967
1968 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1969
ca040673
DE
19702014-10-25 Doug Evans <xdje42@gmail.com>
1971
1972 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1973 of local var child_die.
1974
6f259a23
DB
19752014-10-24 Don Breazeal <donb@codesourcery.com>
1976
1977 * infrun.c (follow_fork_inferior): Update fork message printing
1978 to use target_terminal_ours_for_output instead of
1979 target_terminal_ours, to use _() for all format strings, to print
1980 "vfork" instead of "fork" for vforks, and to add a detach message.
1981 (handle_vfork_child_exec_or_exit): Update message printing to use
1982 target_terminal_ours_for_output instead of target_terminal_ours, to
1983 use _() for all format strings, and to fix some formatting.
1984
09dd9a69
PA
19852014-10-24 Pedro Alves <palves@redhat.com>
1986
1987 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1988 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1989 * config/vax/vax.mh: Delete.
1990 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1991 obsolete configurations section.
1992 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1993 * vax-nat.c: Delete file.
1994
5ab806de
PA
19952014-10-24 Pedro Alves <palves@redhat.com>
1996
1997 * NEWS (Removed targets): Add OS/arch column.
1998
3433cfa5
SC
19992014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2000
2001 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2002 on the arg type of a constructor only if it is of reference type.
2003
96ba4233
SL
20042014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2005
2006 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2007 accessors and constants from nios2 opcodes update.
2008 (nios2_get_next_pc): Likewise.
2009
28153fd3
DE
20102014-10-19 Doug Evans <xdje42@gmail.com>
2011
2012 * gdbthread.h (set_running): Fix comment.
2013 (set_executing, finish_thread_state): Fix comment.
2014
fc9b8e47
DE
20152014-10-18 Doug Evans <xdje42@gmail.com>
2016
2017 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2018
4ffbba72
DE
20192014-10-17 Doug Evans <dje@google.com>
2020
2021 * NEWS: Mention new event gdb.clear_objfiles.
2022 * python/py-event.h (emit_clear_objfiles_event): Clear
2023 * python/py-events.h (events_object): New member clear_objfiles.
2024 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2025 event.
2026 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2027 emit clear_objfiles event.
2028 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2029 function.
2030 (emit_clear_objfiles_event): New function.
2031 (clear_objfiles): New event.
2032 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2033 Declare.
2034 * python/python.c (_initialize_python): Call
2035 gdbpy_initialize_clear_objfiles_event.
2036
d096d8c1
DE
20372014-10-17 Doug Evans <dje@google.com>
2038
2039 * NEWS: Mention new gdb.Objfile.progspace attribute.
2040 * python/py-objfile.c (objfpy_get_progspace): New function.
2041 (objfile_getset): New entry for "progspace".
2042
6c4486e6
PA
20432014-10-17 Pedro Alves <palves@redhat.com>
2044
2045 PR gdb/17471
2046 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2047 returns a copy of the input.
2048 (run_command_1, continue_command, step_1, jump_command)
2049 (signal_command, until_command, advance_command, finish_command)
2050 (attach_command): Adjust and install a cleanup to free the
2051 stripped args.
2052
0ff33695
PA
20532014-10-17 Pedro Alves <palves@redhat.com>
2054
2055 PR gdb/17300
2056 * infcmd.c (continue_1): If continuing all threads in the
2057 foreground, make sure the inferior's terminal settings are put in
2058 effect.
2059
6fdebc3d
PA
20602014-10-17 Pedro Alves <palves@redhat.com>
2061
2062 PR gdb/17472
2063 * annotate.c (annotate_breakpoints_invalid): Use
2064 target_terminal_our_for_output instead of target_terminal_ours.
2065 Give back the terminal to the target.
2066 (annotate_frames_invalid): Likewise.
2067
5842f62a
PA
20682014-10-17 Pedro Alves <palves@redhat.com>
2069
2070 * target.c (enum terminal_state): New enum.
2071 (terminal_state): New global.
2072 (target_terminal_init): New function.
2073 (target_terminal_inferior): Skip if inferior already owns the
2074 terminal.
2075 (target_terminal_ours, target_terminal_ours_for_output): New
2076 functions.
2077 * target.h (target_terminal_init): Convert to function prototype.
2078 (target_terminal_ours_for_output): Convert to function prototype
2079 and tweak comment.
2080 (target_terminal_ours): Convert to function prototype and tweak
2081 comment.
2082 * windows-nat.c (do_initial_windows_stuff): Call
2083 target_terminal_init instead of child_terminal_init_with_pgrp.
2084
32a8097b
PA
20852014-10-17 Pedro Alves <palves@redhat.com>
2086
2087 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2088 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2089 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2090 solib-osf.c.
2091 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2092 * ada-lang.h [__alpha__ && __osf__]
2093 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2094 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2095 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2096 GDB_OSABI_OSF1.
2097 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2098 files.
2099 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2100 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2101 * configure: Regenerate.
2102 * configure.ac: Remove references to osf.
2103 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2104 section. Remove all other references to osf.
2105 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2106 Remove all other references to osf.
2107 * dec-thread.c: Delete file.
2108 * defs.h (GDB_OSABI_OSF1): Delete.
2109 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2110 defined.
2111 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2112 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2113 Delete code.
2114 (unconditionally_kill_inferior)
2115 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2116 * solib-osf.c: Delete file.
2117
80134cf5
PA
21182014-10-17 Pedro Alves <palves@redhat.com>
2119
2120 * remote.c (clear_threads_listing_context): Move higher up, out of
2121 the HAVE_LIBEXPAT guard.
2122
89c7137f
TG
21232014-10-16 Tristan Gingold <gingold@adacore.com>
2124
2125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2126 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2127 on amd64.
2128
44ee4a52
PA
21292014-10-15 Pedro Alves <palves@redhat.com>
2130
2131 * dec-thread.c (dec_thread_count_gdb_threads)
2132 (dec_thread_add_gdb_thread): Delete.
2133 (dec_thread_update_thread_list): Delete.
2134 (dec_thread_find_new_threads): Rename to ...
2135 (dec_thread_update_thread_list): ... this. Delete GDB-size
2136 threads that are no longer found in dec_thread_list.
2137 (resync_thread_list): Delete.
2138 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2139 resync_thread_list.
2140
ab970af1
PA
21412014-10-15 Pedro Alves <palves@redhat.com>
2142
2143 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2144 * remote.c (remote_update_thread_list): Skip calling prune_threads
2145 if any thread listing method is supported, and instead walk over
2146 the set of remote threads listed, deleting those that are not
2147 found in GDB's thread list.
2148
e8032dde
PA
21492014-10-15 Pedro Alves <palves@redhat.com>
2150
2151 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2152 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2153 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2154 (bsd_uthread_target): Adjust.
2155 * corelow.c (core_open): Adjust.
2156 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2157 (dec_thread_update_thread_list): New function.
2158 (init_dec_thread_ops): Adjust.
2159 * gdbthread.h (prune_threads): New declaration.
2160 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2161 (thread_db_update_thread_list): ... this. Call prune_threads.
2162 (init_thread_db_ops): Adjust.
2163 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2164 (procfs_update_thread_list): ... this. Call prune_threads.
2165 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2166 Adjust.
2167 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2168 (obsd_update_thread_list): ... this. Call prune_threads.
2169 (obsd_add_target): Adjust.
2170 * procfs.c (procfs_target): Adjust.
2171 (procfs_notice_thread): Update comment.
2172 (procfs_find_new_threads): Rename to ...
2173 (procfs_update_thread_list): ... this. Call prune_threads.
2174 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2175 comment.
2176 (ravenscar_wait): Adjust.
2177 (ravenscar_find_new_threads): Rename to ...
2178 (ravenscar_update_thread_list): ... this. Call prune_threads.
2179 (init_ravenscar_thread_ops): Adjust.
2180 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2181 (record_btrace_update_thread_list): ... this. Adjust comment.
2182 (init_record_btrace_ops): Adjust.
2183 * remote.c (remote_threads_info): Rename to ...
2184 (remote_update_thread_list): ... this. Call prune_threads.
2185 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2186 Adjust.
2187 * sol-thread.c (check_for_thread_db): Adjust.
2188 (sol_find_new_threads_callback): Rename to ...
2189 (sol_update_thread_list_callback): ... this.
2190 (sol_find_new_threads): Rename to ...
2191 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2192 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2193 * target-delegates.c: Regenerate.
2194 * target.c (target_find_new_threads): Rename to ...
2195 (target_update_thread_list): ... this.
2196 * target.h (struct target_ops): Rename to_find_new_threads field
2197 to to_update_thread_list.
2198 (target_find_new_threads): Rename to ...
2199 (target_update_thread_list): ... this.
2200 * thread.c (prune_threads): Make extern.
2201 (update_thread_list): Adjust.
2202
6dc54d91
PA
22032014-10-15 Pedro Alves <palves@redhat.com>
2204
2205 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2206 Add describing comment. Return -1 if the qL packet is not
2207 supported.
2208 (struct thread_item, thread_item_t): Move higher up in
2209 the file. Add comments.
2210 (struct threads_parsing_context): Move higher up in
2211 the file, add comments, and remote to ...
2212 (struct threads_listing_context): ... this.
2213 (remote_newthread_step): Don't add the thread to GDB's thread
2214 database here. Instead push it to the thread_listing_context
2215 list.
2216 (remote_find_new_threads): Rename to ...
2217 (remote_get_threads_with_ql): ... this. Add target_ops and
2218 targets_listing_context parameters. Pass down context.
2219 (start_thread): Adjust.
2220 (clear_threads_parsing_context): Rename to ...
2221 (clear_threads_listing_context): ... this.
2222 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2223 remote_threads_info.
2224 (remote_get_threads_with_qthreadinfo): Ditto.
2225 (remote_threads_info): Reimplement.
2226
36728e82
PA
22272014-10-15 Pedro Alves <palves@redhat.com>
2228
2229 * infrun.c (resume): Don't force displaced-stepping for all
2230 single-steps on software single-stepping archs.
2231
34b7e8a6
PA
22322014-10-15 Pedro Alves <palves@redhat.com>
2233
2234 * breakpoint.c (single_step_breakpoints): Delete global.
2235 (insert_single_step_breakpoint): Adjust to store the breakpoint
2236 pointer in the current thread.
2237 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2238 (cancel_single_step_breakpoints): Delete functions.
2239 (breakpoint_has_location_inserted_here): Make extern.
2240 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2241 breakpoint list.
2242 * breakpoint.h (breakpoint_has_location_inserted_here): New
2243 declaration.
2244 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2245 (cancel_single_step_breakpoints): Remove declarations.
2246 * gdbthread.h (struct thread_control_state)
2247 <single_step_breakpoints>: New field.
2248 (delete_single_step_breakpoints)
2249 (thread_has_single_step_breakpoints_set)
2250 (thread_has_single_step_breakpoint_here): New declarations.
2251 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2252 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2253 (singlestep_pc): Delete globals.
2254 (infrun_thread_ptid_changed): Remove references to removed
2255 globals.
2256 (resume_cleanups): Delete the current thread's single-step
2257 breakpoints.
2258 (maybe_software_singlestep): Remove references to removed globals.
2259 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2260 delete_single_step_breakpoints.
2261 (init_wait_for_inferior): Remove references to removed globals.
2262 (delete_thread_infrun_breakpoints): Delete the thread's
2263 single-step breakpoints too.
2264 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2265 single-step breakpoints here.
2266 (delete_stopped_threads_single_step_breakpoints): New function.
2267 (adjust_pc_after_break): Adjust to use
2268 thread_has_single_step_breakpoints_set.
2269 (handle_inferior_event): Remove references to removed globals.
2270 Use delete_stopped_threads_single_step_breakpoints.
2271 (handle_signal_stop): Adjust to per-thread single-step
2272 breakpoints. Swap test order to do cheaper tests first.
2273 (switch_back_to_stepped_thread): Extend debug output. Remove
2274 references to removed globals.
2275 * record-full.c (record_full_wait_1): Adjust to per-thread
2276 single-step breakpoints.
2277 * thread.c (delete_single_step_breakpoints)
2278 (thread_has_single_step_breakpoints_set)
2279 (thread_has_single_step_breakpoint_here): New functions.
2280 (clear_thread_inferior_resources): Also delete the thread's
2281 single-step breakpoints.
2282
5b834a0a
PA
22832014-10-15 Pedro Alves <palves@redhat.com>
2284
2285 * thread.c (delete_thread_breakpoint): New function.
2286 (delete_step_resume_breakpoint)
2287 (delete_exception_resume_breakpoint): Use it.
2288 (delete_at_next_stop): New function.
2289 (clear_thread_inferior_resources): Use delete_at_next_stop.
2290
a1fd2fa5
PA
22912014-10-15 Pedro Alves <palves@redhat.com>
2292
2293 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2294 (breakpoint_inserted_here_p): ... here. Remove special case for
2295 software single-step breakpoints.
2296 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2297 (software_breakpoint_inserted_here_p): ... here. Remove special
2298 case for software single-step breakpoints.
2299 (bp_target_info_copy_insertion_state)
2300 (deprecated_insert_raw_breakpoint)
2301 (deprecated_remove_raw_breakpoint): Delete functions.
2302 * breakpoint.h (deprecated_insert_raw_breakpoint)
2303 (deprecated_remove_raw_breakpoint): Remove declarations.
2304
7c16b83e
PA
23052014-10-15 Pedro Alves <palves@redhat.com>
2306
2307 PR breakpoints/9649
2308 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2309 Delete array globals.
2310 (single_step_breakpoints): New global.
2311 (breakpoint_xfer_memory): Remove special handling for single-step
2312 breakpoints.
2313 (update_breakpoints_after_exec): Delete bp_single_step
2314 breakpoints.
2315 (detach_breakpoints): Remove special handling for single-step
2316 breakpoints.
2317 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2318 (bpstat_stop_status): Add comment.
2319 (bpstat_what, bptype_string, print_one_breakpoint_location)
2320 (adjust_breakpoint_address, init_bp_location): Handle
2321 bp_single_step.
2322 (new_single_step_breakpoint): New function.
2323 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2324 handling for single-step breakpoints.
2325 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2326 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2327 Rewrite.
2328 (detach_single_step_breakpoints, find_single_step_breakpoint):
2329 Delete functions.
2330 (breakpoint_has_location_inserted_here): New function.
2331 (single_step_breakpoint_inserted_here_p): Rewrite.
2332 * breakpoint.h: Remove FIXME.
2333 (enum bptype) <bp_single_step>: New enum value.
2334 (insert_single_step_breakpoint): Update comment.
2335 * infrun.c (resume_cleanups)
2336 (delete_step_thread_step_resume_breakpoint): Remove single-step
2337 breakpoints.
2338 (fetch_inferior_event): Install a cleanup that removes infrun
2339 breakpoints.
2340 (switch_back_to_stepped_thread) <expect thread advanced also>:
2341 Clear step-over info.
2342
0cbcdb96
PA
23432014-10-15 Pedro Alves <palves@redhat.com>
2344
2345 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2346 (delete_thread_infrun_breakpoints): New function, with parts
2347 salvaged from delete_step_resume_breakpoint_callback.
2348 (delete_step_thread_step_resume_breakpoint): Delete.
2349 (for_each_just_stopped_thread_callback_func): New typedef.
2350 (for_each_just_stopped_thread): New function.
2351 (delete_just_stopped_threads_infrun_breakpoints): New function.
2352 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2353 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2354 ... this. Adjust.
2355 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2356
963f9c80
PA
23572014-10-15 Pedro Alves <palves@redhat.com>
2358
2359 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2360 trying to step past a non-steppable watchpoint.
2361 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2362 field.
2363 * infrun.c (struct step_over_info): Add new field
2364 'nonsteppable_watchpoint_p' and adjust comments.
2365 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2366 Adjust.
2367 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2368 (stepping_past_nonsteppable_watchpoint): New function.
2369 (step_over_info_valid_p): Also return true if stepping past a
2370 nonsteppable watchpoint.
2371 (proceed): Adjust call to set_step_over_info. Remove reference to
2372 init_infwait_state.
2373 (init_wait_for_inferior): Remove reference to init_infwait_state.
2374 (waiton_ptid): Delete global.
2375 (struct execution_control_state)
2376 <stepped_after_stopped_by_watchpoint>: Delete field.
2377 (wait_for_inferior, fetch_inferior_event): Always pass
2378 minus_one_ptid to target_wait.
2379 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2380 field.
2381 (init_infwait_state): Delete function.
2382 (handle_inferior_event): Remove infwait_state handling.
2383 (handle_signal_stop) <watchpoints handling>: Adjust after
2384 stepped_after_stopped_by_watchpoint removal. Don't remove
2385 breakpoints here nor set infwait_state. Set the thread's
2386 stepping_over_watchpoint flag, and call keep_going instead.
2387 (keep_going): Handle stepping_over_watchpoint. Adjust
2388 set_step_over_info calls.
2389 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2390 function.
2391
6cc83d2a
PA
23922014-10-15 Pedro Alves <palves@redhat.com>
2393
2394 * infrun.c (step_over_info_valid_p): New function.
2395 (resume): Use step_over_info_valid_p instead of checking the
2396 threads's trap_expected flag.
2397
6979730b
DE
23982014-10-15 Doug Evans <dje@google.com>
2399 Walfred Tedeschi <walfred.tedeschi@intel.com>
2400
2401 PR python/17364
2402 * python/lib/gdb/__init__.py (packages): Add "printer".
2403 * python/lib/gdb/command/bound_registers.py: Moved to ...
2404 * python/lib/gdb/printer/bound_registers.py: ... here.
2405 Add printer to global set of builtin printers. Rename printer from
2406 "bound" to "mpx_bound128".
2407 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2408 registered as global "builtin" printer.
2409 (add_builtin_pretty_printer): New function.
2410 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2411 gdb/printer/__init__.py.
2412
35a49624
IB
24132014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2414
2415 * Makefile.in (SFILES): Remove d-support.c.
2416 (COMMON_OBS): Remove d-support.o.
2417 * d-lang.h (d_parse_symbol): Remove declaration.
2418 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2419 * d-support.c: Remove file.
2420
8fa0c4f8
AA
24212014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2422
2423 * gdb/infrun.c (process_event_stop_test): Apply
2424 gdbarch_addr_bits_remove to longjmp resume address.
2425
3666da81
PA
24262014-10-15 Pedro Alves <palves@redhat.com>
2427
2428 * regformats/microblaze.dat: Delete file.
2429
449aa9df
AKA
24302014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2431
2432 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2433 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2434
ebb8ece2
SC
24352014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2436
2437 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2438 as non-trivial.
2439
82c48ac7
SC
24402014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2441
2442 PR c++/13403
2443 PR c++/15154
2444 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2445 with qualified args.
2446
c40cc657
JB
24472014-10-14 Joel Brobecker <brobecker@adacore.com>
2448
2449 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2450 of the case where the second operand is a pointer.
2451 <BINOP_SUB>: Likewise.
2452
0ea5cda8
SDJ
24532014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2454
2455 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2456 only if it is not NULL.
2457 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2458 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2459 (struct probe_ops) <clear_semaphore>: Likewise.
2460 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2461 not NULL.
2462 (stop_tracing): Likewise, for clear_semaphore.
2463
f7088df3
SDJ
24642014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2465
2466 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2467 using language_c, instead of current_language.
2468
4e1bbde0
DE
24692014-10-13 Doug Evans <dje@google.com>
2470
6ff5a0f6 2471 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2472 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2473 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2474 (pspy_new, pspace_to_pspace_object): Call it.
2475
c780cc2f
JK
24762014-10-13 Miroslav Franc <mfranc@redhat.com>
2477 Jan Kratochvil <jan.kratochvil@redhat.com>
2478
2479 Fix "save breakpoints" for "catch" command.
2480 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2481 newline.
2482
99894e11
JK
24832014-10-12 Miroslav Franc <mfranc@redhat.com>
2484
2485 Fix "save breakpoints" for "disable $bpnum" command.
2486 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2487
3831839c
PA
24882014-10-10 Pedro Alves <palves@redhat.com>
2489
2490 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2491 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2492 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2493 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2494 and been removed.
2495 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2496 * configure.ac: Remove references to IRIX.
2497 * configure.host: Add *-*-irix* to the obsolete hosts section.
2498 Remove all other references to irix.
2499 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2500 Delete files.
2501
cc3afae2
AKA
25022014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2503
2504 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2505 isn't valid, release the tdesc arch data and return NULL.
2506
cdfa0b0a
PA
25072014-10-10 Pedro Alves <palves@redhat.com>
2508
2509 * linux-tdep.c: Include observer.h.
2510 (linux_inferior_data): New global.
2511 (struct linux_info): New structure.
2512 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2513 (get_linux_inferior_data): New functions.
2514 (linux_vsyscall_range): Rename to ...
2515 (linux_vsyscall_range_raw): ... this.
2516 (linux_vsyscall_range): New function; handles caching.
2517 (_initialize_linux_tdep): Register linux_inferior_data. Install
2518 inferior_exit and inferior_appeared observers.
2519
8b9a549d
PA
25202014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2521 Pedro Alves <palves@redhat.com>
2522
2523 PR symtab/14466
2524 * solib-svr4.c (svr4_read_so_list): Rename to ...
2525 (svr4_current_sos_1): ... this and change the function comment.
2526 (svr4_current_sos): New function.
2527
3437254d
PA
25282014-10-10 Pedro Alves <palves@redhat.com>
2529
2530 * arch-utils.c (default_vsyscall_range): New function.
2531 * arch-utils.h (default_vsyscall_range): New declaration.
2532 * gdbarch.sh (vsyscall_range): New hook.
2533 * gdbarch.h, gdbarch.c: Regenerate.
2534 * linux-tdep.c (linux_vsyscall_range): New function.
2535 (linux_init_abi): Install linux_vsyscall_range as
2536 vsyscall_range gdbarch hook.
2537 * memrange.c (address_in_mem_range): New function.
2538 * memrange.h (address_in_mem_range): New declaration.
2539 * symfile-mem.c (find_vdso_size): Delete function.
2540 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2541
31cc0b80
PA
25422014-10-10 Pedro Alves <palves@redhat.com>
2543
2544 * infrun.c (normal_stop): Fix typo in comment.
2545
3e3286a2
SDJ
25462014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2547
2548 PR tdep/9390
2549 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2550 typo when using logical AND to determine instruction type.
2551
fcbdedf8
YQ
25522014-10-09 Yao Qi <yao@codesourcery.com>
2553
2554 * infrun.c (handle_signal_stop): Remove local variable
2555 'printed'.
2556
db984616
SS
25572014-10-08 Stan Shebs <stan@codesourcery.com>
2558
2559 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2560
3ba37e6c
GB
25612014-10-08 Gary Benson <gbenson@redhat.com>
2562
2563 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2564
a442d071
GB
25652014-10-08 Gary Benson <gbenson@redhat.com>
2566
2567 * common/common-defs.h: Include common-exceptions.h.
2568 * exceptions.h: Do not include common-exceptions.h.
2569
6f1947e8
GB
25702014-10-08 Gary Benson <gbenson@redhat.com>
2571
2572 * common/common-defs.h: Include cleanups.h.
2573 * common/common-exceptions.c: Do not include cleanups.h.
2574 * utils.h: Likewise.
2575
c765fdb9
GB
25762014-10-08 Gary Benson <gbenson@redhat.com>
2577
2578 * ada-lang.c: Do not include exceptions.h.
2579 * ada-valprint.c: Likewise.
2580 * amd64-tdep.c: Likewise.
2581 * auto-load.c: Likewise.
2582 * block.c: Likewise.
2583 * break-catch-throw.c: Likewise.
2584 * breakpoint.c: Likewise.
2585 * btrace.c: Likewise.
2586 * c-lang.c: Likewise.
2587 * cli/cli-cmds.c: Likewise.
2588 * cli/cli-interp.c: Likewise.
2589 * cli/cli-script.c: Likewise.
2590 * completer.c: Likewise.
2591 * corefile.c: Likewise.
2592 * corelow.c: Likewise.
2593 * cp-abi.c: Likewise.
2594 * cp-support.c: Likewise.
2595 * cp-valprint.c: Likewise.
2596 * darwin-nat.c: Likewise.
2597 * dwarf2-frame-tailcall.c: Likewise.
2598 * dwarf2-frame.c: Likewise.
2599 * dwarf2loc.c: Likewise.
2600 * dwarf2read.c: Likewise.
2601 * eval.c: Likewise.
2602 * event-loop.c: Likewise.
2603 * event-top.c: Likewise.
2604 * f-valprint.c: Likewise.
2605 * frame-unwind.c: Likewise.
2606 * frame.c: Likewise.
2607 * gdbtypes.c: Likewise.
2608 * gnu-v2-abi.c: Likewise.
2609 * gnu-v3-abi.c: Likewise.
2610 * guile/scm-auto-load.c: Likewise.
2611 * guile/scm-breakpoint.c: Likewise.
2612 * guile/scm-cmd.c: Likewise.
2613 * guile/scm-frame.c: Likewise.
2614 * guile/scm-lazy-string.c: Likewise.
2615 * guile/scm-param.c: Likewise.
2616 * guile/scm-symbol.c: Likewise.
2617 * guile/scm-type.c: Likewise.
2618 * hppa-hpux-tdep.c: Likewise.
2619 * i386-tdep.c: Likewise.
2620 * inf-loop.c: Likewise.
2621 * infcall.c: Likewise.
2622 * infcmd.c: Likewise.
2623 * infrun.c: Likewise.
2624 * interps.c: Likewise.
2625 * interps.h: Likewise.
2626 * jit.c: Likewise.
2627 * linespec.c: Likewise.
2628 * linux-nat.c: Likewise.
2629 * linux-thread-db.c: Likewise.
2630 * m32r-rom.c: Likewise.
2631 * main.c: Likewise.
2632 * memory-map.c: Likewise.
2633 * mi/mi-cmd-break.c: Likewise.
2634 * mi/mi-cmd-stack.c: Likewise.
2635 * mi/mi-interp.c: Likewise.
2636 * mi/mi-main.c: Likewise.
2637 * monitor.c: Likewise.
2638 * nto-procfs.c: Likewise.
2639 * objc-lang.c: Likewise.
2640 * p-valprint.c: Likewise.
2641 * parse.c: Likewise.
2642 * ppc-linux-tdep.c: Likewise.
2643 * printcmd.c: Likewise.
2644 * probe.c: Likewise.
2645 * python/py-auto-load.c: Likewise.
2646 * python/py-breakpoint.c: Likewise.
2647 * python/py-cmd.c: Likewise.
2648 * python/py-finishbreakpoint.c: Likewise.
2649 * python/py-frame.c: Likewise.
2650 * python/py-framefilter.c: Likewise.
2651 * python/py-function.c: Likewise.
2652 * python/py-gdb-readline.c: Likewise.
2653 * python/py-inferior.c: Likewise.
2654 * python/py-infthread.c: Likewise.
2655 * python/py-lazy-string.c: Likewise.
2656 * python/py-linetable.c: Likewise.
2657 * python/py-param.c: Likewise.
2658 * python/py-prettyprint.c: Likewise.
2659 * python/py-symbol.c: Likewise.
2660 * python/py-type.c: Likewise.
2661 * python/py-value.c: Likewise.
2662 * python/python-internal.h: Likewise.
2663 * python/python.c: Likewise.
2664 * record-btrace.c: Likewise.
2665 * record-full.c: Likewise.
2666 * regcache.c: Likewise.
2667 * remote-fileio.c: Likewise.
2668 * remote-mips.c: Likewise.
2669 * remote.c: Likewise.
2670 * rs6000-aix-tdep.c: Likewise.
2671 * rs6000-nat.c: Likewise.
2672 * skip.c: Likewise.
2673 * solib-darwin.c: Likewise.
2674 * solib-dsbt.c: Likewise.
2675 * solib-frv.c: Likewise.
2676 * solib-ia64-hpux.c: Likewise.
2677 * solib-spu.c: Likewise.
2678 * solib-svr4.c: Likewise.
2679 * solib.c: Likewise.
2680 * spu-tdep.c: Likewise.
2681 * stack.c: Likewise.
2682 * stap-probe.c: Likewise.
2683 * symfile-mem.c: Likewise.
2684 * symmisc.c: Likewise.
2685 * target.c: Likewise.
2686 * thread.c: Likewise.
2687 * top.c: Likewise.
2688 * tracepoint.c: Likewise.
2689 * tui/tui-interp.c: Likewise.
2690 * typeprint.c: Likewise.
2691 * utils.c: Likewise.
2692 * valarith.c: Likewise.
2693 * valops.c: Likewise.
2694 * valprint.c: Likewise.
2695 * value.c: Likewise.
2696 * varobj.c: Likewise.
2697 * windows-nat.c: Likewise.
2698 * xml-support.c: Likewise.
2699
484933d1
MR
27002014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2701
2702 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2703 name implies.
2704 (extended_mips16_next_pc): Update accordingly.
2705
ab50adb6
MR
27062014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2707
2708 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2709 function.
2710 (micromips_instruction_is_compact_branch): Likewise.
2711 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2712 or a compact jump, reaching a jump delay slot, or seeing a
2713 second non-prologue instruction.
2714 (micromips_scan_prologue): Also terminate scanning upon seeing a
2715 compact branch or jump, or reaching a branch or jump delay slot.
2716 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2717 or jump delay slot, or seeing a second non-prologue instruction.
2718 (mips32_instruction_has_delay_slot): Retain instruction
2719 examination code only, update arguments accordingly and move
2720 instruction fetch pieces to...
2721 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2722 (micromips_instruction_has_delay_slot): Likewise and to...
2723 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2724 (mips16_instruction_has_delay_slot): Likewise and to...
2725 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2726 (mips_single_step_through_delay): Update accordingly.
2727 (mips_adjust_breakpoint_address): Likewise.
2728
ae790652
MR
27292014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2730
2731 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2732 !mustbe32 also return 1 for 32-bit instructions.
2733 (mips16_instruction_has_delay_slot): Likewise. Add an
2734 explanatory comment.
2735
9b807e7b
MR
27362014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2737
2738 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2739 symbols special.
2740
0d5ed153
MR
27412014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2742
2743 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2744 update comments.
2745 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2746 for the breakpoint's address. Don't preinitialize `placed_size'.
2747 (insert_bp_location): Set `reqstd_address' rather than
2748 `placed_address'.
2749 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2750 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2751 address.
2752 (bkpt_remove_location): Likewise.
2753 (deprecated_insert_raw_breakpoint): Likewise.
2754 (deprecated_remove_raw_breakpoint): Likewise.
2755 (find_single_step_breakpoint): Likewise.
2756 * mem-break.c (default_memory_insert_breakpoint): Use
2757 `reqstd_address' for the breakpoint's address. Don't set
2758 `placed_address' or `placed_size' if breakpoint contents couldn't
2759 have been determined.
2760 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2761 the breakpoint's address.
2762 (remote_insert_hw_breakpoint): Likewise. Don't set
2763 `placed_address' or `placed_size' if breakpoint couldn't have been
2764 set.
2765 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2766 `reqstd_address' for the breakpoint's address.
2767 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2768 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2769 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2770 * microblaze-linux-tdep.c
2771 (microblaze_linux_memory_remove_breakpoint): Likewise.
2772 * monitor.c (monitor_insert_breakpoint): Likewise.
2773 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2774 (procfs_insert_hw_breakpoint): Likewise.
2775 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2776 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2777 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2778 * remote-mips.c (mips_insert_breakpoint): Likewise.
2779 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2780
3e871532
LM
27812014-10-03 Luis Machado <lgustavo@codesourcery.com>
2782
2783 * valops.c (value_assign): Check for bit field assignments
2784 before calling architecture-specific register value
2785 conversion functions.
2786
ec48dc8b
PM
27872014-10-03 Pierre Muller <muller@sourceware.org>
2788
2789 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2790
b57bacec
PA
27912014-10-02 Pedro Alves <palves@redhat.com>
2792
2793 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2794 threads_are_executing.
2795 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2796 describing comment.
2797 * gdbthread.h (threads_are_executing): Declare.
2798 (handle_signal_stop) <random signals>: Don't print about the
2799 signal here if stopping.
2800 (end_stepping_range): Don't notify observers here.
2801 (normal_stop): Update the thread list. If stopped by a random
2802 signal or a stepping range ended, notify observers.
2803 * thread.c (threads_executing): New global.
2804 (init_thread_list): Clear 'threads_executing'.
2805 (set_executing): Set or clear 'threads_executing'.
2806 (threads_are_executing): New function.
2807 (update_threads_executing): New function.
2808 (update_thread_list): Use it.
2809
13fd3ff3
PA
28102014-10-02 Pedro Alves <palves@redhat.com>
2811
2812 PR breakpoints/17431
2813 * breakpoint.c (update_breakpoints_after_exec): Don't create
2814 overlay, longjmp, std terminate nor exception breakpoints here.
2815
32990ada
PA
28162014-10-02 Pedro Alves <palves@redhat.com>
2817
2818 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2819 Adjust comments.
2820 * inferior.c (find_inferior_for_program_space): Give preference to
2821 the current inferior.
2822 * inferior.h (find_inferior_for_program_space): Update comment.
2823 * progspace.c (switch_to_program_space_and_thread): Prefer the
2824 current inferior if it's bound to the program space requested. If
2825 the inferior found doesn't have a PID yet, don't bother looking up
2826 a thread.
2827 * progspace.h (switch_to_program_space_and_thread): Adjust
2828 comment.
2829 * thread.c (any_thread_of_process, any_live_thread_of_process):
2830 Give preference to the current thread.
2831
0fec99e8
PA
28322014-10-01 Pedro Alves <palves@redhat.com>
2833
2834 * breakpoint.c (insert_bp_location): Error out if inserting a
2835 software breakpoint at a read-only address.
2836 * target.c (memory_xfer_check_region): New function, factored out
2837 from ...
2838 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2839 ULONGEST.
2840 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2841 against the memory region attributes.
2842
2ddf4301
SM
28432014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2844
2845 * NEWS: Announce new exit-code field in -list-thread-groups
2846 output.
2847 * inferior.c (exit_inferior_1): Don't clear exit code.
2848 (inferior_appeared): Clear exit code.
2849 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2850 code.
2851
5fdeec1d
PA
28522014-10-01 Pedro Alves <palves@redhat.com>
2853
2854 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2855 GENERATED" along with emacs/vi read-only markers.
2856 * regformats/aarch64.dat: Regenerate.
2857 * regformats/arm-with-iwmmxt.dat: Regenerate.
2858 * regformats/arm-with-neon.dat: Regenerate.
2859 * regformats/arm-with-vfpv2.dat: Regenerate.
2860 * regformats/arm-with-vfpv3.dat: Regenerate.
2861 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2862 * regformats/i386/amd64-avx.dat: Regenerate.
2863 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2864 * regformats/i386/amd64-avx512.dat: Regenerate.
2865 * regformats/i386/amd64-linux.dat: Regenerate.
2866 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2867 * regformats/i386/amd64-mpx.dat: Regenerate.
2868 * regformats/i386/amd64.dat: Regenerate.
2869 * regformats/i386/i386-avx-linux.dat: Regenerate.
2870 * regformats/i386/i386-avx.dat: Regenerate.
2871 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2872 * regformats/i386/i386-avx512.dat: Regenerate.
2873 * regformats/i386/i386-linux.dat: Regenerate.
2874 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2875 * regformats/i386/i386-mmx.dat: Regenerate.
2876 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2877 * regformats/i386/i386-mpx.dat: Regenerate.
2878 * regformats/i386/i386.dat: Regenerate.
2879 * regformats/i386/x32-avx-linux.dat: Regenerate.
2880 * regformats/i386/x32-avx.dat: Regenerate.
2881 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2882 * regformats/i386/x32-avx512.dat: Regenerate.
2883 * regformats/i386/x32-linux.dat: Regenerate.
2884 * regformats/i386/x32.dat: Regenerate.
2885 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2886 * regformats/mips-dsp-linux.dat: Regenerate.
2887 * regformats/mips-linux.dat: Regenerate.
2888 * regformats/mips64-dsp-linux.dat: Regenerate.
2889 * regformats/mips64-linux.dat: Regenerate.
2890 * regformats/nios2-linux.dat: Regenerate.
2891 * regformats/rs6000/powerpc-32.dat: Regenerate.
2892 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2893 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2894 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2895 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2896 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2897 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2898 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2899 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2900 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2901 * regformats/s390-linux32.dat: Regenerate.
2902 * regformats/s390-linux32v1.dat: Regenerate.
2903 * regformats/s390-linux32v2.dat: Regenerate.
2904 * regformats/s390-linux64.dat: Regenerate.
2905 * regformats/s390-linux64v1.dat: Regenerate.
2906 * regformats/s390-linux64v2.dat: Regenerate.
2907 * regformats/s390-te-linux64.dat: Regenerate.
2908 * regformats/s390x-linux64.dat: Regenerate.
2909 * regformats/s390x-linux64v1.dat: Regenerate.
2910 * regformats/s390x-linux64v2.dat: Regenerate.
2911 * regformats/s390x-te-linux64.dat: Regenerate.
2912 * regformats/tic6x-c62x-linux.dat: Regenerate.
2913 * regformats/tic6x-c62x.dat: Regenerate.
2914 * regformats/tic6x-c64x-linux.dat: Regenerate.
2915 * regformats/tic6x-c64x.dat: Regenerate.
2916 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2917 * regformats/tic6x-c64xp.dat: Regenerate.
2918
db74e4ba
PA
29192014-10-01 Pedro Alves <palves@redhat.com>
2920
2921 * features/Makefile: Update comments.
2922 (XMLTOC): List all xml files we build C files from.
2923 (clean-cfiles): New rule.
2924
d63f2f84
PA
29252014-10-01 Pedro Alves <palves@redhat.com>
2926
2927 * features/i386/amd64-avx512-linux.c: Regenerate.
2928 * features/i386/amd64-avx512.c: Regenerate.
2929 * features/i386/x32-avx512-linux.c: Regenerate.
2930 * features/i386/x32-avx512.c: Regenerate.
2931
20ad026d
PA
29322014-10-01 Pedro Alves <palves@redhat.com>
2933
2934 * features/Makefile (WHICH): Remove arm-with-m,
2935 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2936
acc9fe45
PA
29372014-10-01 Pedro Alves <palves@redhat.com>
2938
2939 * features/Makefile (clean): New rule.
2940
e001e535
PA
29412014-10-01 Pedro Alves <palves@redhat.com>
2942
2943 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2944 (zmm14h): Add missing end quotes.
2945
bdc14417
PA
29462014-10-01 Pedro Alves <palves@redhat.com>
2947
2948 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2949 * features/aarch64.c: Regenerate.
2950
d83ad864
DB
29512014-09-30 Don Breazeal <donb@codesourcery.com>
2952
2953 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2954 code so as to work with follow_fork_inferior.
2955 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2956 (inf_ttrace_create_inferior): Remove reference to
2957 inf_ttrace_vfork_ppid.
2958 (inf_ttrace_attach): Ditto.
2959 (inf_ttrace_detach): Ditto.
2960 (inf_ttrace_kill): Use current_inferior instead of
2961 inf_ttrace_vfork_ppid.
2962 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2963 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2964 inferior away from the parent.
2965 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2966 target_follow_fork.
2967 (follow_fork_inferior): New function.
2968 (follow_inferior_reset_breakpoints): Make function static.
2969 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2970 * linux-nat.c (linux_child_follow_fork): Move target-independent
2971 code to infrun.c:follow_fork_inferior.
2972
29082443
AA
29732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2974
2975 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2976 * gdbarch.c: Regenerate.
2977 * gdbarch.h: Likewise.
2978 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2979 gdbarch method 'regset_from_core_section'.
2980 (get_core_register_section): Remove handling for the case that
2981 regset == NULL and regset_from_core_section is defined.
2982 (get_core_registers): Drop check for deleted method.
2983 * procfs.c (procfs_do_thread_registers): Adjust comment.
2984
f968fe80
AA
29852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986
2987 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2988 (linux_nat_make_corefile_notes): Remove.
2989 (linux_target_install_ops): Do not set target method
2990 'make_corefile_notes'.
2991 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2992 Remove field.
2993 (linux_corefile_thread_callback): Instead of args->collect, call
2994 linux_collect_thread_registers.
2995 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2996 NULL unless there is a regset iterator.
2997 (linux_make_corefile_notes_1): Remove.
2998 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2999 by linux_make_corefile_notes.
3000 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3001
174ad59a
AA
30022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3003
3004 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3005 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3006 Remove.
3007 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3008
97094034
AA
30092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3010
3011 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3012 (xtensa_iterate_over_regset_sections): New.
3013 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3014
f73d3ce7
AA
30152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016
3017 * vax-tdep.c (vax_regset_from_core_section): Remove.
3018 (vax_iterate_over_regset_sections): New.
3019 (vax_gdbarch_init): Adjust gdbarch initialization.
3020
cb24567a
AA
30212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3022
3023 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3024 (tilegx_regset_from_core_section): Remove.
3025 (tilegx_iterate_over_regset_sections): New.
3026 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3027
e5139de8
AA
30282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3029
3030 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3031 (sparc_iterate_over_regset_sections): New.
3032 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3033 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3034 targets.
3035 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3036 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3037 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3038 target method 'make_corefile_notes'.
3039
c6d41a6f
AA
30402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3041
3042 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3043 'sizeof_gregset' and 'sizeof_fpregset'.
3044 * sh-tdep.c (sh_regset_from_core_section): Remove.
3045 (sh_iterate_over_regset_sections): New.
3046 (sh_gdbarch_init): Adjust gdbarch initialization.
3047 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3048 sizeof_fpregset.
3049 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3050 'sizeof_gregset'.
3051
9845a0b5
AA
30522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3053
3054 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3055 (score7_linux_iterate_over_regset_sections): New.
3056 (score_gdbarch_init): Adjust gdbarch initialization.
3057
23ea9aeb
AA
30582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3059
3060 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3061 FreeBSD targets.
3062 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3063 method 'make_corefile_notes'.
3064 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3065 (ppcfbsd_regset_from_core_section): Remove.
3066 (ppcfbsd_iterate_over_regset_sections): New.
3067 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3068 initialization.
3069 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3070 (ppcnbsd_iterate_over_regset_sections): New.
3071 (ppcnbsd_init_abi): Adjust.
3072 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3073 (ppcobsd_iterate_over_regset_sections): New.
3074 (ppcobsd_init_abi): Adjust.
3075 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3076 (rs6000_aix_iterate_over_regset_sections): New.
3077 (rs6000_aix_init_osabi): Adjust.
3078
c5b8d704
AA
30792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3080
3081 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3082 (nios2_regset_from_core_section): Remove.
3083 (nios2_iterate_over_regset_sections): New.
3084 (nios2_linux_init_abi): Adjust gdbarch initialization.
3085
3636e608
AA
30862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3087
3088 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3089 (am33_iterate_over_regset_sections): New.
3090 (am33_linux_init_osabi): Adjust gdbarch initialization.
3091
d4036235
AA
30922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3093
3094 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3095 (mips_linux_iterate_over_regset_sections): New.
3096 (mips_linux_init_abi): Adjust gdbarch initialization.
3097 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3098 (mips64obsd_iterate_over_regset_sections): New.
3099 (mips64obsd_init_abi): Adjust.
3100 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3101 (mipsnbsd_iterate_over_regset_sections): New.
3102 (mipsnbsd_init_abi): Adjust.
3103
b61ddd6e
AA
31042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3105
3106 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3107 (m88k_iterate_over_regset_sections): New.
3108 (m88k_gdbarch_init): Adjust gdbarch initialization.
3109
55a2906a
AA
31102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111
3112 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3113 (ia64_linux_iterate_over_regset_sections): New.
3114 (ia64_linux_init_abi): Adjust gdbarch initialization.
3115
022c98ab
AA
31162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3119 (m68kbsd_iterate_over_regset_sections): New.
3120 (m68kbsd_init_abi): Adjust gdbarch initialization.
3121 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3122 (m68k_linux_iterate_over_regset_sections): New.
3123 (m68k_linux_init_abi): Adjust gdbarch initialization.
3124
5fac247f
AA
31252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3126
3127 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3128 (m32r_linux_regset_from_core_section): Remove.
3129 (m32r_linux_iterate_over_regset_sections): New.
3130 (m32r_linux_init_abi): Adjust gdbarch initialization.
3131
490496c3
AA
31322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3133
3134 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3135 (amd64obsd_iterate_over_regset_sections): New.
3136 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3137 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3138 Remove.
3139 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3140 regset_from_core_section initialization.
3141 * i386-tdep.c (i386_regset_from_core_section): Remove.
3142 (i386_iterate_over_regset_sections): New.
3143 (i386_gdbarch_init): Adjust gdbarch initialization.
3144 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3145 (i386_iterate_over_regset_sections): New prototype.
3146 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3147 Remove.
3148 (i386obsd_aout_iterate_over_regset_sections): New.
3149 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3150 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3151 targets.
3152 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3153 (amd64fbsd_init_abi): Call fbsd_init_abi.
3154 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3155 (i386fbsd4_init_abi): Call fbsd_init_abi.
3156 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3157 target method 'make_corefile_notes'.
3158 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3159
50c5eb53
AA
31602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3161
3162 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3163 (hppa_hpux_iterate_over_regset_sections): New.
3164 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3165 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3166 (hppa_linux_iterate_over_regset_sections): New.
3167 (hppa_linux_init_abi): Adjust.
3168 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3169 (hppanbsd_iterate_over_regset_sections): New.
3170 (hppanbsd_init_abi): Adjust.
3171 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3172 (hppaobsd_iterate_over_regset_sections): New.
3173 (hppaobsd_init_abi): Adjust.
3174
66afae4f
AA
31752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176
3177 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3178 (frv_linux_iterate_over_regset_sections): New.
3179 (frv_linux_init_abi): Adjust gdbarch initialization.
3180
ed09174e
AA
31812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3182
3183 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3184 (armbsd_iterate_over_regset_sections): New prototype.
3185 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3186 (armbsd_iterate_over_regset_sections): New.
3187 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3188 initialization.
3189
dff2166e
AA
31902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3191
3192 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3193 (alpha_linux_iterate_over_regset_sections): New.
3194 (alpha_linux_init_abi): Adjust gdbarch initialization.
3195 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3196 prototype.
3197 (alphanbsd_iterate_over_regset_sections): New prototype.
3198
4108500a
AA
31992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200
3201 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3202 Remove.
3203 (aarch64_linux_iterate_over_regset_sections): New.
3204 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3205
a904c024
AA
32062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3207
3208 * fbsd-tdep.c: New file.
3209 * fbsd-tdep.h: New file.
3210 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3211 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3212 (ALLDEPFILES): Add fbsd-tdep.c.
3213
8f0435f7
AA
32142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3215
3216 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3217 parameter.
3218 * gdbarch.h: Regenerate.
3219 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3220 iterator.
3221 (get_core_register_section): Add parameter 'regset' and use it, if
3222 set. Add parameter 'min_size' and verify the bfd section size
3223 against it.
3224 (get_core_registers_cb): Add parameter 'regset' and pass it to
3225 get_core_register section. For the "standard" register sections
3226 ".reg" and ".reg2", set an appropriate default for human_name.
3227 (get_core_registers): Don't abort when the gdbarch has an iterator
3228 but no regset_from_core_section. Add NULL/0 for parameters
3229 'regset'/'min_size' in calls to get_core_register_section.
3230 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3231 'regset' and use it instead of calling the
3232 regset_from_core_section gdbarch method.
3233 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3234 * i386-tdep.c (i386_supply_xstateregset)
3235 (i386_collect_xstateregset, i386_xstateregset): Moved to
3236 i386-linux-tdep.c.
3237 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3238 .reg-xstate.
3239 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3240 core file support only if the regset iterator hasn't been set.
3241 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3242 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3243 Moved from i386-tdep.c and renamed to *_linux*.
3244 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3245 each callback invocation. Allow any .reg-xstate size when reading
3246 from a core file.
3247 * amd64-tdep.c (amd64_supply_xstateregset)
3248 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3249 amd64-linux-tdep.c.
3250 (amd64_regset_from_core_section): Remove.
3251 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3252 install an amd64-specific regset_from_core_section gdbarch method.
3253 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3254 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3255 Moved from amd64-tdep.c and renamed to *_linux*.
3256 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3257 to each callback invocation. Allow any .reg-xstate size when
3258 reading from a core file.
3259 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3260 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3261 each callback invocation.
3262 (arm_linux_init_abi): No longer set the regset_from_core_section
3263 gdbarch method.
3264 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3265 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3266 each callback invocation.
3267 (ppc_linux_init_abi): No longer set the regset_from_core_section
3268 gdbarch method.
3269 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3270 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3271 (s390_regset_from_core_section): Remove.
3272 (s390_iterate_over_regset_sections): Add regset parameter to each
3273 callback invocation.
3274 (s390_gdbarch_init): No longer set the regset_from_core_section
3275 gdbarch method. Drop initialization of deleted tdep fields.
3276
5aa82d05
AA
32772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3278
3279 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3280 (amd64_linux_iterate_over_regset_sections): New.
3281 (amd64_linux_init_abi_common): Don't install the regset section
3282 list, but the new iterator in gdbarch.
3283 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3284 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3285 (arm_linux_iterate_over_regset_sections): ...here. New function.
3286 (arm_linux_init_abi): Set iterator instead of section list.
3287 * corelow.c (get_core_registers_cb): New function, logic moved
3288 from...
3289 (get_core_registers): ...loop body here. Use new iterator method
3290 instead of walking through the regset section list.
3291 * gdbarch.sh: Remove 'core_regset_sections'. New method
3292 'iterate_over_regset_sections'. New typedef
3293 'iterate_over_regset_sections_cb'.
3294 * gdbarch.c: Regenerate.
3295 * gdbarch.h: Likewise.
3296 * i386-linux-tdep.c (i386_linux_regset_sections)
3297 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3298 Remove.
3299 (i386_linux_iterate_over_regset_sections): New.
3300 (i386_linux_init_abi): Don't choose a regset section list, but
3301 install new iterator in gdbarch.
3302 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3303 (linux_collect_regset_section_cb): New function, logic moved
3304 from...
3305 (linux_collect_thread_registers): ...loop body here. Use iterator
3306 method instead of walking through list.
3307 (linux_make_corefile_notes_1): Check for presence of iterator
3308 method instead of regset section list.
3309 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3310 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3311 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3312 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3313 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3314 (ppc_linux_init_abi): Don't choose from above regset section
3315 lists, but install new iterator in gdbarch.
3316 * regset.h (struct core_regset_section): Remove.
3317 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3318 have_linux_v1, have_linux_v2, and have_tdb.
3319 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3320 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3321 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3322 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3323 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3324 (s390_iterate_over_regset_sections): ...here. New function. Use
3325 new tdep fields.
3326 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3327 regset section lists, but install new iterator.
3328
2eca4a8d
JK
33292014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3332
a73c2b56
SM
33332014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3334
3335 * progspace.c (print_program_space): Don't prune program spaces
3336 before printing them.
3337
03d46957
PA
33382014-09-25 Pedro Alves <palves@redhat.com>
3339
3340 * infrun.c (user_visible_resume_ptid): Don't check
3341 singlestep_breakpoints_inserted_p.
3342
e558d7c1
PA
33432014-09-25 Pedro Alves <palves@redhat.com>
3344
3345 * breakpoint.c (should_be_inserted): Add debug output.
3346
7f89fd65
PA
33472014-09-25 Pedro Alves <palves@redhat.com>
3348
3349 * infrun.c (stepping_past_instruction_at)
3350 (clear_exit_convenience_vars): Point at infrun.h instead of
3351 inferior.h.
3352 (handle_signal_stop): Fix typo.
3353
b7576e5c
YQ
33542014-09-24 Yao Qi <yao@codesourcery.com>
3355
3356 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3357 bitmask.
3358
9a6cf368
GB
33592014-09-22 Gary Benson <gbenson@redhat.com>
3360
3361 * target.c (target_stop): Updated comment.
3362
03f4463b
GB
33632014-09-22 Gary Benson <gbenson@redhat.com>
3364
3365 * target/target.h (target_stop_ptid): Renamed as...
3366 (target_stop_and_wait): New function. Updated comment.
3367 All uses updated.
3368 (target_continue_ptid): Renamed as...
3369 (target_continue_no_signal): New function. Updated comment.
3370 All uses updated.
3371
a25a5a45
PA
33722014-09-22 Pedro Alves <palves@redhat.com>
3373
3374 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3375 and "auto" merged.
3376 * breakpoint.c (enum ugll_insert_mode): New enum.
3377 (always_inserted_mode): Now a plain boolean.
3378 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3379 (breakpoints_always_inserted_mode): Delete.
3380 (breakpoints_should_be_inserted_now): New function.
3381 (insert_breakpoints): Pass UGLL_INSERT to
3382 update_global_location_list instead of calling
3383 insert_breakpoint_locations manually.
3384 (create_solib_event_breakpoint_1): New, factored out from ...
3385 (create_solib_event_breakpoint): ... this.
3386 (create_and_insert_solib_event_breakpoint): Use
3387 create_solib_event_breakpoint_1 instead of calling
3388 insert_breakpoint_locations manually.
3389 (update_global_location_list): Change parameter type from boolean
3390 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3391 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3392 (update_global_location_list_nothrow): Change parameter type from
3393 boolean to enum ugll_insert_mode.
3394 (_initialize_breakpoint): "breakpoint always-inserted" option is
3395 now a boolean command. Update help text.
3396 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3397 (breakpoints_should_be_inserted_now): New declaration.
3398 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3399 Remove breakpoints_always_inserted_mode check.
3400 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3401 * remote.c (remote_start_remote): Likewise.
3402
04086b45
PA
34032014-09-22 Pedro Alves <palves@redhat.com>
3404
3405 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3406 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3407 Instead, pass UGLL_INSERT to update_global_location_list.
3408 (update_global_location_list): Change parameter type from boolean
3409 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3410 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3411 (create_solib_event_breakpoint_1): New, factored out from ...
3412 (create_solib_event_breakpoint): ... this.
3413 (create_and_insert_solib_event_breakpoint): Use
3414 create_solib_event_breakpoint_1 instead of calling
3415 insert_breakpoint_locations manually.
3416 (update_global_location_list): Handle UGLL_INSERT.
3417
44702360
PA
34182014-09-22 Pedro Alves <palves@redhat.com>
3419
3420 * breakpoint.c (enum ugll_insert_mode): New enum.
3421 (update_global_location_list)
3422 (update_global_location_list_nothrow): Change parameter type from
3423 boolean to enum ugll_insert_mode. All callers adjusted.
3424
93c6145a
JB
34252014-09-19 Joel Brobecker <brobecker@adacore.com>
3426
3427 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3428 SystemTap support in GDB.
3429
89a5711c
DB
34302014-09-19 Don Breazeal <donb@codesourcery.com>
3431
3432 * linux-nat.c (linux_handle_extended_wait): Call
3433 linux_ptrace_get_extended_event.
3434 (wait_lwp): Call linux_is_extended_waitstatus.
3435 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3436 and linux_is_extended_waitstatus.
3437 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3438 linux_ptrace_get_extended_event.
3439 (linux_ptrace_get_extended_event): New function.
3440 (linux_is_extended_waitstatus): New function.
3441 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3442 (linux_is_extended_waitstatus): New declarations.
3443
c3b7b696
YQ
34442014-09-19 Yao Qi <yao@codesourcery.com>
3445
3446 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3447 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3448 comments. Callers update.
3449 (dwarf_decode_lines): Likewise.
3450 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3451 comments. Skip the line table if 'lowpc' is greater than
3452 'address'. Don't check
3453 dwarf2_per_objfile->has_section_at_zero.
3454
2b4fd423
DE
34552014-09-18 Doug Evans <dje@google.com>
3456
3457 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3458 * python/py-symtab.c (stpy_get_producer): New function.
3459 (symtab_object_getset): Add "producer" attribute.
3460
5e43d467
UW
34612014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3462
3463 PR gdb/17384
3464 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3465 (do_captured_read_memory_integer): Remove.
3466 (safe_read_memory_integer): Use target_read_memory directly instead
3467 of catching errors in do_captured_read_memory_integer.
3468
04e79979
MR
34692014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3470
3471 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3472 not gdb/doc.
3473
76aeec5b
SDJ
34742014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3475
3476 * objc-lang.c (find_implementation_from_class): Remove dead code.
3477
2f693f9d
SDJ
34782014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3479
3480 PR cli/7233
3481 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3482 "fprintf_unfiltered (gdb_stdlog...)".
3483
bb9d5f81
PP
34842014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3485
3486 PR breakpoints/12526
3487 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3488 val_bitsize.
3489 * breakpoint.c (watch_command_1): Use these fields to retain
3490 bitfield information.
3491 (extract_bitfield_from_watchpoint_value): New function.
3492 (watchpoint_check): Use it.
3493 (update_watchpoint): Use it. Optimize the address and length of a
3494 HW watchpoint pointing to a bitfield.
3495 * value.h (unpack_value_bitfield): New prototype.
3496 * value.c (unpack_value_bitfield): Make extern.
3497
05db5edd
ST
34982014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3499
3500 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3501 x86-dregs.o.
3502 * gnu-nat.c (inf_threads): New function.
3503 * gnu-nat.h (inf_threads_ftype): New typedef.
3504 (inf_threads): New declaration.
3505 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3506 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3507 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3508 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3509 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3510 (i386_gnu_dr_get_control): New functions.
3511 (reg_addr): New structure.
3512 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3513 i386 debugging register hooks.
3514 * NEWS: Mention this.
3515
5a578da5
OJ
35162014-08-13 Omair Javaid <omair.javaid@linaro.org>
3517
3518 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3519 vector data transfer instructions.
3520 (arm_record_coproc_data_proc): Updated.
3521
f20f80dd
OJ
35222014-08-13 Omair Javaid <omair.javaid@linaro.org>
3523
3524 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3525 arm_record_exreg_ld_st_insn.
3526 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3527 load/store insns.
3528
851f26ae
OJ
35292014-08-13 Omair Javaid <omair.javaid@linaro.org>
3530
3531 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3532 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3533 processing instructions.
3534
1e1b6563
OJ
35352014-08-13 Omair Javaid <omair.javaid@linaro.org>
3536
3537 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3538 for advance SIMD struct ld/st insn.
3539 (thumb2_record_decode_insn_handler): Replace stub handler with
3540 thumb2_record_asimd_struct_ld_st.
3541
60cc5e93
OJ
35422014-08-13 Omair Javaid <omair.javaid@linaro.org>
3543
3544 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3545 for asimd, vfp and coprocessor insns.
3546 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3547 and coprocessor insns.
3548 (thumb2_record_coproc_insn): New function.
3549 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3550 handlers.
3551 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3552 opcode 110 insns.
3553
81219e53
DE
35542014-09-13 Doug Evans <xdje42@gmail.com>
3555
3556 * NEWS: Mention new "queue-signal" command.
3557 * infcmd.c (queue_signal_command): New function.
3558 (_initialize_infcmd): Add new queue-signal command.
3559
d36bf488
DE
35602014-09-13 Doug Evans <xdje42@gmail.com>
3561
3562 * linux-nat.c (wait_lwp): Add debugging printf.
3563 (linux_nat_wait_1): Ditto.
3564
f37f681c
PA
35652014-09-12 Pedro Alves <palves@redhat.com>
3566
3567 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3568 (create_and_insert_solib_event_breakpoint): New functions.
3569 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3570 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3571 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3572 (remove_dbx_link_breakpoint): Delete function.
3573 (insert_dbx_link_bpt_in_file): Use
3574 create_and_insert_solib_event_breakpoint instead of
3575 deprecated_insert_raw_breakpoint.
3576 (procfs_wait): Don't check whether we hit __dbx_link here.
3577 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3578 here.
3579 * solib-irix.c (base_breakpoint): Delete global.
3580 (disable_break): Delete function.
3581 (enable_break): Use create_solib_event_breakpoint
3582 instead of deprecated_insert_raw_breakpoint.
3583 (irix_solib_handle_event): New function.
3584 (irix_solib_create_inferior_hook): Don't run the target or disable
3585 the mapping-complete breakpoint here.
3586 (_initialize_irix_solib): Install irix_solib_handle_event as
3587 so_ops->handle_event hook.
3588
9d9bf2df
EBM
35892014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3590 Ulrich Weigand  <uweigand@de.ibm.com>
3591
3592 PR tdep/17379
3593 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3594 instead of read_memory_unsigned_integer.
3595
b006a80e
GB
35962014-09-12 Gary Benson <gbenson@redhat.com>
3597
3598 * nat/linux-waitpid.c: Include common-defs.h.
3599 [GDBSERVER]: Add FIXME comment.
3600 [!GDBSERVER]: Don't include defs.h or signal.h.
3601 (linux_debug) [!GDBSERVER]: Remove empty block.
3602
296b1496
GB
36032014-09-12 Gary Benson <gbenson@redhat.com>
3604
3605 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3606 Don't include defs.h or server.h.
3607
53f81362
GB
36082014-09-12 Gary Benson <gbenson@redhat.com>
3609
3610 * nat/linux-btrace.c: Include common-defs.h.
3611 Don't include defs.h, server.h or gdbthread.h.
3612 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3613
727605ca
GB
36142014-09-12 Gary Benson <gbenson@redhat.com>
3615
3616 * common/agent.c: Include common-defs.h.
3617 Don't include defs.h or server.h.
3618 * common/buffer.c: Likewise.
3619 * common/common-debug.c: Likewise.
3620 * common/common-utils.c: Likewise.
3621 * common/errors.c: Likewise.
3622 * common/filestuff.c: Likewise.
3623 * common/format.c: Likewise.
3624 * common/gdb_vecs.c: Likewise.
3625 * common/print-utils.c: Likewise.
3626 * common/ptid.c: Likewise.
3627 * common/rsp-low.c: Likewise.
3628 * common/signals.c: Likewise.
3629 * common/vec.c: Likewise.
3630 * common/xml-utils.c: Likewise.
3631 * nat/linux-osdata.c: Likewise.
3632 * nat/linux-procfs.c: Likewise.
3633 * nat/linux-ptrace.c: Likewise.
3634 * nat/mips-linux-watch.c: Likewise.
3635 * target/waitstatus.c: Likewise.
3636
361c8ade
GB
36372014-09-12 Tom Tromey <tromey@redhat.com>
3638 Gary Benson <gbenson@redhat.com>
3639
3640 * common/common-regcache.h: New file.
3641 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3642 * regcache.h: Include common-regcache.h.
3643 (regcache_read_pc): Don't declare.
3644 * regcache.c (get_thread_regcache_for_ptid): New function.
3645 * nat/linux-btrace.c: Don't include regcache.h.
3646 Include common-regcache.h.
3647 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3648
a01cbb49
TS
36492014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3650
3651 * regcache.h (struct regset): Declare.
3652
98880d46
PA
36532014-09-11 Pedro Alves <palves@redhat.com>
3654
3655 PR gdb/17347
3656 * main.c: Include "infrun.h".
3657 (catch_command_errors, catch_command_errors_const): Wait for the
3658 foreground command to complete.
3659 * top.c (maybe_wait_sync_command_done): New function, factored out
3660 from ...
3661 (maybe_wait_sync_command_done): ... here.
3662 * top.h (maybe_wait_sync_command_done): New declaration.
3663
bd9269f7
GB
36642014-09-11 Tom Tromey <tromey@redhat.com>
3665 Gary Benson <gbenson@redhat.com>
3666
3667 * common/symbol.h: New file.
3668 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3669 * minsyms.c (find_minimal_symbol_address): New function.
3670 * common/agent.c: Include common/symbol.h.
3671 [!GDBSERVER]: Don't include objfiles.h.
3672 (agent_look_up_symbols): Use find_minimal_symbol_address.
3673
f8c1d06b
GB
36742014-09-11 Gary Benson <gbenson@redhat.com>
3675
3676 * target/target.h (target_stop_ptid, target_continue_ptid):
3677 Declare.
3678 * target.c (target_stop_ptid, target_continue_ptid): New
3679 functions.
3680 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3681 (agent_run_command): Always use target_stop_ptid and
3682 target_continue_ptid.
3683
721ec300
GB
36842014-09-11 Tom Tromey <tromey@redhat.com>
3685 Gary Benson <gbenson@redhat.com>
3686
3687 * target/target.h: New file.
3688 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3689 * target.h: Include target/target.h.
3690 (target_read_memory, target_write_memory): Don't declare.
3691 * target.c (target_read_uint32): New function.
3692 * common/agent.c: Include target/target.h.
3693 [!GDBSERVER]: Don't include target.h.
3694 (helper_thread_id): Type changed to uint32_t.
3695 (agent_get_helper_thread_id): Use target_read_uint32.
3696 (agent_run_command): Always use target_read_memory and
3697 target_write_memory.
3698 (agent_capability): Type changed to uint32_t.
3699 (agent_capability_check): Use target_read_uint32.
3700
c5e92cca
GB
37012014-09-11 Gary Benson <gbenson@redhat.com>
3702
3703 * common/common-debug.h (show_debug_regs): Declare.
3704 * common/common-debug.c (show_debug_regs): Define.
3705 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3706 all uses with show_debug_regs. Replace all uses that considered
3707 debug_hw_points as a multi-value integer with straight boolean
3708 uses.
3709 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3710 with show_debug_regs.
3711 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3712 all uses with show_debug_regs.
3713 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3714 uses with show_debug_regs.
3715
eeef931a
UW
37162014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3717
3718 * findvar.c (address_from_register): Handle targets requiring
3719 a special conversion routine even for plain pointer types.
3720
8efa9855
UW
37212014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3722
3723 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3724 (store_register): Do not call exec_one_dummy_insn.
3725
eb479039
JB
37262014-09-10 Joel Brobecker <brobecker@adacore.com>
3727
3728 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3729 dereference it first. Use value_enclosing_type instead of
3730 value_type.
3731 (ada_array_length): Likewise.
3732
deede10c
JB
37332014-09-10 Joel Brobecker <brobecker@adacore.com>
3734
3735 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3736 Adjust function implementation and documentation accordingly.
3737 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3738 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3739 Update call to ada_value_ptr_subscript.
3740
7828a5f5
JB
37412014-09-10 Joel Brobecker <brobecker@adacore.com>
3742
3743 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3744 instead of VAL's type.
3745
35782f14
JB
37462014-09-10 Joel Brobecker <brobecker@adacore.com>
3747
3748 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3749
d342a0da
DE
37502014-09-09 Doug Evans <xdje42@gmail.com>
3751
3752 PR guile/17367
3753 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3754 last parameter to pkg-config, not first.
3755 * configure.ac: Pass --with-guile provided pkg-config path to
3756 GDB_GUILE_PROGRAM_NAMES.
3757 * configure: Regenerate.
3758
b4a3d263
GKB
37592014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3760
3761 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3762 Bertazi".
3763
6e466374
MR
37642014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3765
3766 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3767 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3768 the list of sections determining GDB_OSABI_IRIX.
3769
a1ada89a
JH
37702014-09-09 James Hogan <james.hogan@imgtec.com>
3771
3772 * MAINTAINERS (Write After Approval): Add "James Hogan".
3773
86db008d
JH
37742014-09-09 James Hogan <james.hogan@imgtec.com>
3775
3776 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3777
72fde3df
JB
37782014-09-09 Joel Brobecker <brobecker@adacore.com>
3779
3780 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3781
92d8d229
DE
37822014-09-08 Doug Evans <xdje42@gmail.com>
3783
3784 PR 17247
3785 * guile.c: #include <signal.h>.
3786 (_initialize_guile): Block SIGCHLD while initializing Guile.
3787
3788 Replaces the following, which is reverted.
3789
3790 2014-07-26 Doug Evans <xdje42@gmail.com>
3791
3792 PR 17185
3793 * configure.ac: Add check for header gc/gc.h.
3794 Add check for function setenv.
3795 * configure: Regenerate.
3796 * config.in: Regenerate.
3797 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3798
d81412aa
DE
37992014-09-08 Doug Evans <xdje42@gmail.com>
3800
3801 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3802 with named constant. Fix style of pointer comparison.
3803 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3804
a9f116cb
GKB
38052014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3806
3807 PR gdb/17035
3808 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3809 decide whether we display the command on "show user".
3810 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3811 printing command name.
3812 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3813 * cli/cli-decode.c (cli_user_command_p): Create helper function
3814 to verify whether cmd_list_element is a user-defined command.
3815
c75bd3a2
JK
38162014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3817
3818 PR python/17355
3819 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3820 Fix goto out of TRY_CATCH.
3821
faa42425 38222014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3823 Tom Tromey <tromey@redhat.com>
faa42425
DE
3824
3825 PR 15276
3826 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3827 $_any_caller_matches.
3828 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3829 * python/lib/gdb/function/caller_is.py: New file.
3830
0d41ba00
DE
38312014-09-06 Doug Evans <xdje42@gmail.com>
3832
3833 * infcmd.c (program_info): Fix typo.
3834
474ca4f6
SDJ
38352014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3836
3837 PR gdb/17235
3838 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3839 'number'. New variable 'has_digit'. Rewrite code to deal with
3840 subexpressions on SDT probes.
3841
ebf13736
PA
38422014-09-04 Pedro Alves <palves@redhat.com>
3843
3844 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3845 the input is only one character long.
3846
eb0b0463
SDJ
38472014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3848
3849 PR fortran/17237
3850 * f-valprint.c (f_val_print): Specify the correct print option to
3851 use when printing integer values.
3852
5ee44bfa
GB
38532014-09-04 Gary Benson <gbenson@redhat.com>
3854
3855 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3856 Remove code to cope with LWPs wrapped as PIDs.
3857 Add assertions to ensure no wrapped LWPs are passed.
3858
4875ffdb
PA
38592014-09-04 Pedro Alves <palves@redhat.com>
3860
3861 * value.c (value_ranges_copy_adjusted): New function, factored out
3862 from ...
3863 (value_contents_copy_raw): ... here.
3864 (unpack_value_bits_as_long_1): Rename back to ...
3865 (unpack_bits_as_long): ... this. Remove 'original_value' and
3866 'result' parameters. Change return type to LONGEST.
3867 (unpack_value_bits_as_long): Delete.
3868 (unpack_value_field_as_long_1): Delete.
3869 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3870 (unpack_value_bitfield): New function.
3871 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3872 (value_fetch_lazy): Use unpack_value_bitfield.
3873 * value.h (unpack_value_bits_as_long): Delete declaration.
3874
5f3b99cf
SS
38752014-09-03 Sasha Smundak <asmundak@google.com>
3876
3877 * python/py-frame.c (frapy_read_register): New function.
3878
ac740bc7
JH
38792014-09-03 James Hogan <james.hogan@imgtec.com>
3880
3881 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3882 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3883
7d793aa9
SDJ
38842014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3885
3886 PR python/16699
3887 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3888 function.
3889 (add_cmd): Set "completer_handle_brkchars" to NULL.
3890 * cli/cli-decode.h (struct cmd_list_element)
3891 <completer_handle_brkchars>: New field.
3892 * command.h (completer_ftype_void): New typedef.
3893 (set_cmd_completer_handle_brkchars): New prototype.
3894 * completer.c (set_gdb_completion_word_break_characters): New
3895 function.
3896 (complete_line_internal): Call "completer_handle_brkchars"
3897 callback from command.
3898 * completer.h: Include "command.h".
3899 (set_gdb_completion_word_break_characters): New prototype.
3900 * python/py-cmd.c (cmdpy_completer_helper): New function.
3901 (cmdpy_completer_handle_brkchars): New function.
3902 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3903 (cmdpy_init): Set completer_handle_brkchars to
3904 cmdpy_completer_handle_brkchars.
3905
97ea6506
GB
39062014-09-03 Gary Benson <gbenson@redhat.com>
3907
3908 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3909 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3910 Loop conditions changed to equivalent form.
3911 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3912 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3913 ALL_DEBUG_ADDRESS_REGISTERS.
3914
d1437815
JB
39152014-09-03 Joel Brobecker <brobecker@adacore.com>
3916
3917 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3918 description fix.
3919
9b94fcf1
DE
39202014-09-02 Doug Evans <dje@google.com>
3921
3922 * typeprint.c (find_global_typedef): Fix comment.
3923
df7e5265
GB
39242014-09-02 Gary Benson <gbenson@redhat.com>
3925
3926 * i386-nat.h: Renamed as...
3927 * x86-nat.h: New file. All type, function and variable name
3928 prefixes changed from "i386_" to "x86_". All references updated.
3929 * i386-nat.c: Renamed as...
3930 * x86-nat.c: New file. All type, function and variable name
3931 prefixes changed from "i386_" to "x86_". All references updated.
3932 * common/i386-xstate.h: Renamed as...
3933 * common/x86-xstate.h: New file. All type, function and variable
3934 name prefixes changed from "i386_" to "x86_". All references
3935 updated.
3936 * nat/i386-cpuid.h: Renamed as...
3937 * nat/x86-cpuid.h: New file. All type, function and variable name
3938 prefixes changed from "i386_" to "x86_". All references updated.
3939 * nat/i386-gcc-cpuid.h: Renamed as...
3940 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3941 name prefixes changed from "i386_" to "x86_". All references
3942 updated.
3943 * nat/i386-dregs.h: Renamed as...
3944 * nat/x86-dregs.h: New file. All type, function and variable name
3945 prefixes changed from "i386_" to "x86_". All references updated.
3946 * nat/i386-dregs.c: Renamed as...
3947 * nat/x86-dregs.c: New file. All type, function and variable name
3948 prefixes changed from "i386_" to "x86_". All references updated.
3949
1c3569d4
MR
39502014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3951
3952 * varobj.c (_initialize_varobj): Move to the end of file.
3953
ff55e1b5
GB
39542014-08-29 Gary Benson <gbenson@redhat.com>
3955
3956 * common/common-exceptions.h: New file.
3957 * common/common-exceptions.c: Likewise.
3958 * Makefile.in (SFILES): Add common/common-exceptions.c.
3959 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3960 (COMMON_OBS): Add common-exceptions.o.
3961 (common-exceptions.o): New rule.
3962 * exceptions.h (common-exceptions.h): Include.
3963 (gdb_setjmp.h): Do not include.
3964 (return_reason): Moved to common-exceptions.h.
3965 (enum return_reason): Likewise.
3966 (RETURN_MASK): Likewise.
3967 (typedef return_mask): Likewise.
3968 (enum errors): Likewise.
3969 (struct gdb_exception): Likewise.
3970 (exceptions_state_mc_init): Likewise.
3971 (exceptions_state_mc_action_iter): Likewise.
3972 (exceptions_state_mc_action_iter_1): Likewise.
3973 (TRY_CATCH): Likewise.
3974 (throw_exception): Likewise.
3975 (throw_verror): Likewise.
3976 (throw_vquit): Likewise.
3977 (throw_error): Likewise.
3978 (throw_quit): Likewise.
3979 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3980 (enum catcher_action): Likewise.
3981 (struct catcher): Likewise.
3982 (current_catcher): Likewise.
3983 (catcher_list_size): Likewise.
3984 (exceptions_state_mc_init): Likewise.
3985 (catcher_pop): Likewise.
3986 (exceptions_state_mc): Likewise.
3987 (exceptions_state_mc_action_iter): Likewise.
3988 (exceptions_state_mc_action_iter_1): Likewise.
3989 (throw_exception): Likewise.
3990 (exception_messages): Likewise.
3991 (exception_messages_size): Likewise.
3992 (throw_it): Likewise.
3993 (throw_verror): Likewise.
3994 (throw_vquit): Likewise.
3995 (throw_error): Likewise.
3996 (throw_quit): Likewise.
3997 (prepare_to_throw_exception): New function.
3998
e9bcb658
GB
39992014-08-29 Gary Benson <gbenson@redhat.com>
4000
4001 * common/gdb_setjmp.h: New file.
4002 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4003 * configure.ac: Move sigsetjmp check...
4004 * common/common.m4: ...here.
4005 * configure: Regenerate.
4006 * cp-support.c (SIGJMP_BUF): Delete.
4007 (SIGSETJMP): Likewise.
4008 (SIGLONGJMP): Likewise.
4009 * exceptions.h (gdb_setjmp.h): Include.
4010 (setjmp.h): Do not include.
4011 (EXCEPTIONS_SIGJMP_BUF): Delete.
4012 (EXCEPTIONS_SIGSETJMP): Likewise.
4013 (EXCEPTIONS_SIGLONGJMP): Likewise.
4014 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4015 from gdb_setjmp.h.
4016 * exceptions.c: Likewise.
4017
e3180625
GB
40182014-08-29 Gary Benson <gbenson@redhat.com>
4019
4020 * cleanups.h: Moved to...
4021 * common/cleanups.h: New file.
4022 * cleanups.c: Moved to...
4023 * common/cleanups.c: New file. Include common-defs.h and
4024 cleanups.h. Do not include defs.h.
4025 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4026 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4027 (cleanups.o): New rule.
4028
e3d6ba5d
GB
40292014-08-29 Gary Benson <gbenson@redhat.com>
4030
4031 * common/errors.h (internal_warning): New declaration.
4032 (internal_vwarning): Likewise.
4033 * common/errors.c (internal_warning): New function.
4034 * utils.h (internal_warning): Don't declare.
4035 (internal_vwarning): Likewise.
4036 * utils.c (internal_warning): Removed.
4037
075c7033
GB
40382014-08-29 Gary Benson <gbenson@redhat.com>
4039
4040 * main.c (captured_main): Use warning during startup.
4041 Prefix startup warning messages with command name.
4042
91b35fd0
GB
40432014-08-29 Gary Benson <gbenson@redhat.com>
4044
4045 * main.c (captured_main): Handle usage errors with error.
4046
b1ec390e
GB
40472014-08-29 Gary Benson <gbenson@redhat.com>
4048
4049 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4050 exit pair with a call to error. Wrap the message with _().
4051
fd0ef3dd
GB
40522014-08-29 Gary Benson <gbenson@redhat.com>
4053
4054 * main.c (captured_main): Replace a fprintf/exit
4055 pair with a call to error. Wrap the message with _().
4056
e0e6bcab
GB
40572014-08-29 Gary Benson <gbenson@redhat.com>
4058
4059 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4060 pairs with calls to error. Wrap the message with _().
4061
0d2f5c07
GB
40622014-08-29 Gary Benson <gbenson@redhat.com>
4063
4064 * utils.c (vwarning): Protect calls to target_terminal_ours
4065 and wrap_here.
4066
5df43998
GB
40672014-08-29 Gary Benson <gbenson@redhat.com>
4068
4069 * exceptions.c (print_flush): Protect calls to
4070 target_terminal_ours and wrap_here.
4071
2437fd32
GB
40722014-08-29 Gary Benson <gbenson@redhat.com>
4073
4074 * utils.h (filtered_printing_initialized): New declaration.
4075 * utils.c (abort_with_message): New function.
4076 (internal_vproblem): Use abort_with_message for first level
4077 recursive internal problems, and if gdb_stderr is not set up.
4078 Protect calls to target_terminal_ours, begin_line and query.
4079
f1f58506
DE
40802014-08-28 Doug Evans <dje@google.com>
4081
4082 * symtab.c (in_prologue): Move definition to better spot.
4083 (skip_prologue_using_sal): Ditto.
4084
aab2f208
DE
40852014-08-28 Doug Evans <dje@google.com>
4086
4087 * symtab.c (find_function_start_sal): Move definition to better spot.
4088
6b65d1b6
YQ
40892014-08-28 Yao Qi <yao@codesourcery.com>
4090
4091 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4092 found_stack_adjust in forward scan. Remove condition check
4093 on found_stack_adjust which is always true. Indent the code.
4094
a1b34d15
YQ
40952014-08-28 Yao Qi <yao@codesourcery.com>
4096
4097 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4098 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4099 (dwarf_decode_lines): Remove argument
4100 want_line_info. Remove condition check on want_line_info.
4101 Callers update.
4102
d5962de5
DE
41032014-08-27 Doug Evans <dje@google.com>
4104
4105 * dwarf2read.c (dwarf_record_line): Fix typo.
4106
9b139002
SDJ
41072014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4108
4109 * target.h (struct target_ops::to_terminal_save_ours): Remove
4110 declaration.
4111 (target_terminal_save_ours): Remove macro.
4112 * target-delegates.c: Regenerate.
4113 * inf-child.c (inf_child_target): Don't set the nonexistent
4114 field to_terminal_save_ours.
4115 * inferior.h (child_terminal_save_ours): Remove declaration.
4116 * terminal.h (gdb_save_tty_state): New declaration.
4117 * inflow.c (child_terminal_save_ours): Rename to ...
4118 (gdb_save_tty_state): ... this.
4119 * tui/tui.c: Include terminal.h.
4120 (tui_enable): Use gdb_save_tty_state instead of
4121 target_terminal_save_ours.
4122 (tui_disable): Likewise.
4123
9debeba0
DE
41242014-08-25 Doug Evans <dje@google.com>
4125
4126 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4127 Pass NULL instead of 0 for context pointer.
4128
428fc5fc
YQ
41292014-08-25 Yao Qi <yao@codesourcery.com>
4130
4131 * dwarf2read.c: Fix grammatical error.
4132
cdc07690
YQ
41332014-08-24 Yao Qi <yao@codesourcery.com>
4134
4135 * dwarf2read.c (scan_partial_symbols): Update comments.
4136 Rename argument 'need_pc' with 'set_addrmap'.
4137 (add_partial_namespace): Rename argument 'need_pc' with
4138 'set_addrmap'.
4139 (add_partial_module): Likewise.
4140 (add_partial_subprogram): Likewise. Update comments.
4141 (dwarf2_name): Fix typo.
4142
a05a36a5
DE
41432014-08-22 Doug Evans <dje@google.com>
4144
4145 PR 17276
4146 * dwarf2read.c (dwarf_record_line_p): New function.
4147 (dwarf_decode_lines_1): Ignore subsequent line number entries
4148 for the same line if any entry had a non-zero discriminator.
4149
252a6764
DE
41502014-08-22 Doug Evans <dje@google.com>
4151
4152 * buildsym.h (record_line_ftype): New typedef.
4153 (record_line): Use it.
4154 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4155 (dwarf_decode_lines_1): Call them.
4156
510db052
YQ
41572014-08-22 Yao Qi <yao@codesourcery.com>
4158
4159 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4160 (ctf_end): Remove code.
4161
22fd09ae
JK
41622014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4163
4164 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4165 (linux_make_corefile_notes): call update_thread_list, protected against
4166 exceptions.
4167
656e8868
PA
41682014-08-21 Pedro Alves <palves@redhat.com>
4169
4170 * infcmd.c (attach_command): Remove comment.
4171
de589d04
WN
41722014-08-21 Bin Cheng <bin.cheng@arm.com>
4173
4174 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4175 unsigned LONGEST to ULONGEST.
4176
2a31c623
PA
41772014-08-20 Pedro Alves <palves@redhat.com>
4178
4179 * Makefile.in (check-read1): New rule.
4180
d36430db
JB
41812014-08-20 Joel Brobecker <brobecker@adacore.com>
4182
4183 * value.c (value_from_contents_and_address): Strip resolved_type's
4184 typedef layers before checking its TYPE_DATA_LOCATION.
4185
000339af
PA
41862014-08-20 Pedro Alves <palves@redhat.com>
4187
4188 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4189
5f52445b
YQ
41902014-08-20 Yao Qi <yao@codesourcery.com>
4191
4192 * amd64-tdep.c (amd64_classify): Add a blank line after the
4193 example. Move "*/" to a new line.
4194 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4195 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4196 * dwarf2read.c (psymtab_include_file_name): Likewise.
4197
9a0dc9e3
PA
41982014-08-19 Andrew Burgess <aburgess@broadcom.com>
4199 Pedro Alves <palves@redhat.com>
4200
4201 PR symtab/14604
4202 PR symtab/14605
4203 * ada-lang.c (coerce_unspec_val_to_type): Use
4204 value_contents_copy_raw.
4205 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4206 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4207 * cp-valprint.c (cp_print_value_fields): Let the common printing
4208 code handle optimized out values.
4209 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4210 * d-valprint.c (dynamic_array_type): Use
4211 value_bits_any_optimized_out.
4212 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4213 check_any_valid fields.
4214 (check_pieced_value_bits): Delete and inline ...
4215 (check_pieced_synthetic_pointer): ... here.
4216 (check_pieced_value_validity): Delete.
4217 (check_pieced_value_invalid): Delete.
4218 (pieced_value_funcs): Remove check_validity and check_any_valid
4219 fields.
4220 (read_pieced_value): Use mark_value_bits_optimized_out.
4221 (write_pieced_value): Switch to use
4222 mark_value_bytes_optimized_out.
4223 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4224 of assuming the whole value is optimized out.
4225 * findvar.c (read_frame_register_value): Remove special handling
4226 of optimized out registers.
4227 (value_from_register): Use mark_value_bytes_optimized_out.
4228 * frame-unwind.c (frame_unwind_got_optimized): Use
4229 mark_value_bytes_optimized_out.
4230 * jv-valprint.c (java_value_print): Adjust.
4231 (java_print_value_fields): Let the common printing code handle
4232 optimized out values.
4233 * mips-tdep.c (mips_print_register): Remove special handling of
4234 optimized out registers.
4235 * opencl-lang.c (lval_func_check_validity): Delete.
4236 (lval_func_check_any_valid): Delete.
4237 (opencl_value_funcs): Remove check_validity and check_any_valid
4238 fields.
4239 * p-valprint.c (pascal_object_print_value_fields): Let the common
4240 printing code handle optimized out values.
4241 * stack.c (read_frame_arg): Remove special handling of optimized
4242 out values. Fetch both VAL and ENTRYVAL before comparing
4243 contents. Adjust to value_available_contents_eq rename.
4244 * valprint.c (valprint_check_validity)
4245 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4246 (val_print_array_elements): Adjust.
4247 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4248 (value_bits_any_optimized_out): New function.
4249 (value_entirely_covered_by_range_vector): New function, factored
4250 out from value_entirely_unavailable.
4251 (value_entirely_unavailable): Reimplement.
4252 (value_entirely_optimized_out): New function.
4253 (insert_into_bit_range_vector): New function, factored out from
4254 mark_value_bits_unavailable.
4255 (mark_value_bits_unavailable): Reimplement.
4256 (struct ranges_and_idx): New struct.
4257 (find_first_range_overlap_and_match): New function, factored out
4258 from value_available_contents_bits_eq.
4259 (value_available_contents_bits_eq): Rename to ...
4260 (value_contents_bits_eq): ... this. Check both unavailable
4261 contents and optimized out contents.
4262 (value_available_contents_eq): Rename to ...
4263 (value_contents_eq): ... this.
4264 (allocate_value_lazy): Remove reference to the old optimized_out
4265 boolean.
4266 (allocate_optimized_out_value): Use
4267 mark_value_bytes_optimized_out.
4268 (require_not_optimized_out): Adjust to check whether the
4269 optimized_out vec is empty.
4270 (ranges_copy_adjusted): New function, factored out from
4271 value_contents_copy_raw.
4272 (value_contents_copy_raw): Also copy the optimized out ranges.
4273 Assert the destination ranges aren't optimized out.
4274 (value_contents_copy): Update comment, remove call to
4275 require_not_optimized_out.
4276 (value_contents_equal): Adjust to check whether the optimized_out
4277 vec is empty.
4278 (set_value_optimized_out, value_optimized_out_const): Delete.
4279 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4280 New functions.
4281 (value_entirely_optimized_out, value_bits_valid): Delete.
4282 (value_copy): Take a VEC copy of the 'optimized_out' field.
4283 (value_primitive_field): Remove special handling of optimized out.
4284 (value_fetch_lazy): Assert that lazy values have no unavailable
4285 regions. Use value_bits_any_optimized_out. Remove some special
4286 handling for optimized out values.
4287 * value.h: Add intro comment about <optimized out> and
4288 <unavailable>.
4289 (struct lval_funcs): Remove check_validity and check_any_valid
4290 fields.
4291 (set_value_optimized_out, value_optimized_out_const): Remove.
4292 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4293 New declarations.
4294 (value_bits_any_optimized_out): New declaration.
4295 (value_bits_valid): Delete declaration.
4296 (value_available_contents_eq): Rename to ...
4297 (value_contents_eq): ... this, and extend comments.
4298
6694c411
JK
42992014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 Fix -fsanitize=address on unreadable inferior strings.
4302 * valprint.c (val_print_string): Fix access before BUFFER.
4303
89a1c21a
SM
43042014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4305
4306 * target.c (target_struct_size): Remove.
4307 (target_struct_allocsize): Remove.
4308 (DEFAULT_ALLOCSIZE): Remove.
4309 (target_ops_p): New typedef.
4310 (DEF_VEC_P (target_ops_p)): New vector type.
4311 (target_structs): Change type to VEC (target_ops_p).
4312 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4313 (find_default_run_target): Rewrite for loop following changes to
4314 target_structs.
4315
cb417230
JB
43162014-08-19 Joel Brobecker <brobecker@adacore.com>
4317
4318 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4319 Adjust code accordingly. Adjust function description comment.
4320
817e0957
YQ
43212014-08-19 Yao Qi <yao@codesourcery.com>
4322
4323 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4324 types.
4325
2974be62
AM
43262014-08-19 Alan Modra <amodra@gmail.com>
4327
4328 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4329 * config.in: Regenerate.
4330 * configure: Regenerate.
4331
34abf635
GB
43322014-08-19 Tom Tromey <tromey@redhat.com>
4333 Gary Benson <gbenson@redhat.com>
4334
4335 * common/common-debug.h: New file.
4336 * common/common-debug.c: Likewise.
4337 * debug.c: Likewise.
4338 * Makefile.in (SFILES): Add common/common-debug.c.
4339 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4340 (COMMON_OBS): Add common-debug.o and debug.o.
4341 (common-debug.o): New rule.
4342 * common/common-defs.h: Include common-debug.h.
4343 * common/agent.c (debug_agent_printf): New function.
4344 (DEBUG_AGENT): Redefine.
4345 * nat/i386-dregs.c (debug_printf): Undefine.
4346
f6e94d78
GB
43472014-08-19 Gary Benson <gbenson@redhat.com>
4348
4349 * common/common-defs.h: Include print-utils.h.
4350 * utils.h: Do not include print-utils.h.
4351
9239eeab
GB
43522014-08-19 Tom Tromey <tromey@redhat.com>
4353 Gary Benson <gbenson@redhat.com>
4354
4355 * common/common-types.h: New file.
4356 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4357 * common/common-defs.h: Include common-types.h.
4358 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4359 (ULONGEST): Remove.
4360
ef87c8bb
GB
43612014-08-19 Tom Tromey <tromey@redhat.com>
4362 Gary Benson <gbenson@redhat.com>
4363
4364 * common/errors.h: New file.
4365 * common/errors.c: Likewise.
4366 * Makefile.in (SFILES): Add common/errors.c.
4367 (HFILES_NO_SRCDIR): Add common/errors.h.
4368 (COMMON_OBS): Add errors.o.
4369 (errors.o): New rule.
4370 * common/common-defs.h: Include errors.h.
4371 * utils.h (perror_with_name, error, verror, warning, vwarning):
4372 Don't declare.
4373 * common/common-utils.h: (malloc_failure, internal_error):
4374 Likewise.
4375
196a707b
GB
43762014-08-19 Gary Benson <gbenson@redhat.com>
4377
4378 * utils.c (internal_vproblem): Always print the message.
4379
ded4fc8f
DE
43802014-08-18 Doug Evans <dje@google.com>
4381
4382 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4383
950c97d8
JB
43842014-08-18 Joel Brobecker <brobecker@adacore.com>
4385
4386 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4387 Return 0 if TYPE is dynamic.
4388 (print_range): Add handling of dynamic ranges.
4389
3cdcd0ce
JB
43902014-08-18 Keven Boell <keven.boell@intel.com>
4391 Joel Brobecker <brobecker@adacore.com>
4392
4393 * gdbtypes.h (struct main_type): Add field "data_location".
4394 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4395 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4396 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4397 a dynamic data location.
4398 (resolve_dynamic_type): Add DW_AT_data_location handling.
4399 (copy_recursive, copy_type): Copy the data_location information
4400 when present.
4401 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4402 * value.c (value_from_contents_and_address): Add
4403 DW_AT_data_location handling.
4404
08412b07
JB
44052014-08-18 Keven Boell <keven.boell@intel.com>
4406 Joel Brobecker <brobecker@adacore.com>
4407
4408 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4409 field "get_object_address".
4410 * dwarf2expr.c (execute_stack_op): Add handling for
4411 DW_OP_push_object_address.
4412 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4413 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4414 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4415 (dwarf_expr_get_obj_addr): New function.
4416 (dwarf_expr_ctx_funcs): Add get_object_address field.
4417 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4418 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4419 (dwarf2_evaluate_property): Add parameter "address". Use it.
4420 (needs_get_obj_addr): New function.
4421 (needs_frame_ctx_funcs): Add get_object_address field.
4422 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4423 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4424 (resolve_dynamic_array): Likewise.
4425
84754697
JB
44262014-08-18 Joel Brobecker <brobecker@adacore.com>
4427
4428 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4429 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4430 fixed value for records and unions for which some GNAT encodings
4431 are present.
4432
da5c522f
JB
44332014-08-18 Joel Brobecker <brobecker@adacore.com>
4434
4435 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4436 rewrite to avoid "else if" and "else" constructs. Should be
4437 a no-op in practice.
4438
0d72a7c3
JB
44392014-08-18 Joel Brobecker <brobecker@adacore.com>
4440
4441 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4442 of lexical block.
4443
e66d4446
SC
44442014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4445
4446 PR c++/17132
4447 * eval.c: Update all calls to find_overload_match.
4448 * valarith.c: Likewise.
4449 (value_user_defined_cpp_op, value_user_defined_op): New
4450 argument NOSIDE. Update all callers.
4451 * valops.c (find_overload_match): New argument NOSIDE.
4452 * value.h (find_overload_match): Update signature.
4453
940df408
SC
44542014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4455
4456 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4457 'items' methods instead of 'iteritems' method on dictionaries.
4458
699ca60a
DE
44592014-08-15 Doug Evans <dje@google.com>
4460
4461 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4462 closer to use.
4463
37780ee5
DE
44642014-08-15 Doug Evans <dje@google.com>
4465
4466 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4467
0ad93d4f
DE
44682014-08-15 Doug Evans <dje@google.com>
4469
4470 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4471
20d8c372
DE
44722014-08-15 Doug Evans <dje@google.com>
4473
4474 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4475 unused.
4476
cb039ba4
EZ
44772014-08-15 Eli Zaretskii <eliz@gnu.org>
4478
4479 * dcache.h: Include target.h, to avoid compile time warnings.
4480
eb7a547a
JB
44812014-08-15 Joel Brobecker <brobecker@adacore.com>
4482
4483 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4484 frame_info" partial declaration.
4485 * gdbarch.h: Regenerate.
4486
783cecc8
YQ
44872014-08-15 Yao Qi <yao@codesourcery.com>
4488
4489 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4490 Add parameter 'decode_for_pst_p'. Callers update.
4491
65c749e7
YQ
44922014-08-13 Yao Qi <yao@codesourcery.com>
4493
4494 PR build/17104
4495 * configure.ac: Use local variable 'pos'.
4496 * configure: Regenerated.
4497
d769e349
DE
44982014-08-11 Doug Evans <dje@google.com>
4499
4500 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4501 message, it is redundant with "Reading symbols from ..." message.
4502
24f1235e
DE
45032014-08-10 Doug Evans <xdje42@gmail.com>
4504
4505 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4506
dcd2e6ef
YQ
45072014-08-09 Yao Qi <yao@codesourcery.com>
4508
4509 PR remote/9053
4510 * remote.c (remote_xfer_partial): Remove dead code.
4511
070bdf0b
AA
45122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4513
4514 * ia64-linux-tdep.c: Include "regset.h".
4515 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4516 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4517 (ia64_linux_supply_fpregset): New function.
4518 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4519 (ia64_linux_regset_from_core_section): New function.
4520 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4521 method.
4522
08f9f542
AA
45232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4524
4525 * m68klinux-tdep.c: Include "regset.h".
4526 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4527 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4528 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4529 (m68k_linux_regset_from_core_section): New function.
4530 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4531 method.
4532
8f1cee41
AA
45332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4534
4535 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4536 function. Move logic to...
4537 (tilegx_linux_regmap): ... this new register map.
4538 (tilegx_linux_regset): Refer to register map, replace supply
4539 method by regcache_supply_regset, and add collect method.
4540 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4541 TILEGX_FIRST_EASY_REGNUM.
4542
c5741217
AA
45432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4544
4545 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4546 that calls regcache_supply_regset and handles the EPC register
4547 separately. Move main logic to...
4548 (score7_linux_gregmap): ... this new register map.
4549 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4550 (score7_linux_gregset): Refer to register map. Add collect method.
4551 (score7_linux_regset_from_core_section): Replace
4552 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4553 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4554 (struct regset): Delete unused forward declaraction.
4555 (struct pt_regs): Delete structure definition.
4556 (elf_gregset_t): Delete typedef.
4557
81580573
AA
45582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4559
4560 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4561 (nios2_core_regset): Add collect method.
4562
ba199d7d
AA
45632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4564
4565 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4566 platform-independent and don't write to read-only input buffer.
4567 (m32r_linux_collect_gregset): New function.
4568 (m32r_linux_gregset): Add collect method.
4569
0006a9da
AA
45702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4571
4572 * hppa-linux-tdep.c (greg_map): Rename to...
4573 (hppa_linux_gregmap): ... this. Also convert to
4574 regcache_map_entry format.
4575 (hppa_linux_supply_regset): Delete function.
4576 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4577 (hppa_linux_fpregmap): ... this new register map.
4578 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4579 register map, replace supply method by regcache_supply_regset, and
4580 add collect method regcache_collect_regset.
4581
901e1b23
AA
45822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4583
4584 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4585 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4586 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4587 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4588 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4589 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4590 (frv_linux_supply_gregset): Replace main logic by call to
4591 regcache_supply_regset, but keep clearing gr32-gr63.
4592 (frv_linux_supply_fpregset): Delete function.
4593 (frv_linux_gregset): Refer to appropriate register map and add
4594 regcache_collect_regset as the collect method.
4595 (frv_linux_fpregset): Likewise. Also exchange the supply method
4596 by regcache_supply_regset.
4597
1d6e7555
AA
45982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4599
4600 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4601 by call to alpha_supply_int_regs.
4602 (alpha_linux_collect_gregset): New function.
4603 (alpha_linux_supply_fpregset): Replace logic by call to
4604 alpha_supply_fp_regs.
4605 (alpha_linux_collect_fpregset): New function.
4606 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4607
d4d793bf
AA
46082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4609
4610 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4611 by call to regcache_collect_regset.
4612 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4613 instead of aarch64_linux_supply_gregset/_fpregset.
4614 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4615 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4616 header file instead.
4617 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4618 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4619 functions. Move logic to ...
4620 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4621 register maps.
4622 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4623 refer to new register maps, replace *_regset_from_core by
4624 regcache_supply_regset, and also use regcache_collect_regset.
4625 * aarch64-linux-tdep.h: Include "regset.h".
4626 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4627 Delete prototypes.
4628 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4629 macros, moved from C source file.
4630 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4631 variable declarations.
4632
99b7da5d
AA
46332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4634
4635 * s390-linux-nat.c: Include "regset.h".
4636 (regmap_gregset): Delete macro.
4637 (s390_64_regmap_gregset): New register map for
4638 regcache_supply/_collect_regset.
4639 (s390_64_gregset): New regset.
4640 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4641 (regmap_fpregset): Delete macro.
4642 (s390_native_supply, s390_native_collect): Delete functions.
4643 (supply_gregset, fill_gregset): Replace s390-specific regmap
4644 handling by a call to regcache_supply/_collect_regset.
4645 (supply_fpregset, fill_fpregset): Call regcache_supply/
4646 _collect_regset instead of s390_native_supply/_collect.
4647 (fetch_regset, store_regset): Likewise. Also change the last
4648 parameter to a regset instead of a regmap.
4649 (s390_linux_fetch_inferior_registers)
4650 (390_linux_store_inferior_registers): Adjust last parameter in
4651 calls to fetch_regset and store_regset.
4652 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4653 (s390_gregmap): ... this. Also make static const and convert to
4654 regcache_map_entry format.
4655 (s390x_regmap_gregset): Delete.
4656 (s390_regmap_fpregset): Rename to...
4657 (s390_fpregmap): ... this. Make static const and convert to
4658 regcache_map_entry format.
4659 (s390_regmap_upper, s390_regmap_last_break)
4660 (s390x_regmap_last_break, s390_regmap_system_call)
4661 (s390_regmap_tdb): Likewise.
4662 (s390_supply_regset, s390_collect_regset): Remove functions.
4663 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4664 s390_supply_regset.
4665 (s390_gregset, s390_fpregset, s390_upper_regset)
4666 (s390_last_break_regset, s390x_last_break_regset)
4667 (s390_system_call_regset, s390_tdb_regset): Make global and
4668 replace s390_supply/_collect_regset by regcache_supply/
4669 _collect_regset.
4670 (s390x_gregset): Delete.
4671 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4672 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4673 (s390_regmap_fpregset, s390_regmap_last_break)
4674 (s390x_regmap_last_break, s390_regmap_system_call)
4675 (s390_regmap_tdb): Delete global variable declarations.
4676 (s390_gregset, s390_fpregset, s390_last_break_regset)
4677 (s390x_last_break_regset, s390_system_call_regset)
4678 (s390_tdb_regset): New global variable declarations.
4679
0b309272
AA
46802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4681
4682 * regcache.c: Include "regset.h".
4683 (regcache_transfer_regset): New local function.
4684 (regcache_supply_regset, regcache_collect_regset): New functions.
4685 * regcache.h (struct regcache_map_entry): New structure.
4686 (REGCACHE_MAP_SKIP): New enum value.
4687 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4688
7fefa8d7
AA
46892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4690
4691 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4692 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4693 (ppc_linux_collect_gregset ): Likewise.
4694 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4695 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4696 (ppc_collect_vrregset): Likewise.
4697 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4698 Likewise.
4699
96c4f946
YQ
47002014-08-07 Yao Qi <yao@codesourcery.com>
4701
4702 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4703 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4704 * remote.c (remote_read_bytes): Likewise.
4705
fffbe6a8
YQ
47062014-08-07 Yao Qi <yao@codesourcery.com>
4707
4708 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4709
5ee8a82c
YQ
47102014-08-07 Yao Qi <yao@codesourcery.com>
4711
4712 PR remote/17230
4713 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4714 TARGET_XFER_OK instead of 0.
4715
bb974a24
GB
47162014-08-07 Gary Benson <gbenson@redhat.com>
4717
4718 * common/common-defs.h: Include errno.h.
4719 * defs.h: Do not include errno.h.
4720 * ada-typeprint.c: Likewise.
4721 * c-typeprint.c: Likewise.
4722 * core-regset.c: Likewise.
4723 * corefile.c: Likewise.
4724 * corelow.c: Likewise.
4725 * event-loop.c: Likewise.
4726 * f-typeprint.c: Likewise.
4727 * gnu-nat.c: Likewise.
4728 * go32-nat.c: Likewise.
4729 * i386gnu-nat.c: Likewise.
4730 * m2-typeprint.c: Likewise.
4731 * nat/linux-btrace.c: Likewise.
4732 * p-typeprint.c: Likewise.
4733 * procfs.c: Likewise.
4734 * remote-sim.c: Likewise.
4735 * rs6000-nat.c: Likewise.
4736 * target.c: Likewise.
4737 * typeprint.c: Likewise.
4738 * ui-file.c: Likewise.
4739 * valops.c: Likewise.
4740 * valprint.c: Likewise.
4741
6d3d12eb
GB
47422014-08-07 Gary Benson <gbenson@redhat.com>
4743
4744 * common/common-defs.h: Include string.h.
4745 * aarch64-tdep.c: Do not include string.h.
4746 * ada-exp.y: Likewise.
4747 * ada-lang.c: Likewise.
4748 * ada-lex.l: Likewise.
4749 * ada-typeprint.c: Likewise.
4750 * ada-valprint.c: Likewise.
4751 * aix-thread.c: Likewise.
4752 * alpha-linux-tdep.c: Likewise.
4753 * alpha-mdebug-tdep.c: Likewise.
4754 * alpha-nat.c: Likewise.
4755 * alpha-osf1-tdep.c: Likewise.
4756 * alpha-tdep.c: Likewise.
4757 * alphanbsd-tdep.c: Likewise.
4758 * amd64-dicos-tdep.c: Likewise.
4759 * amd64-linux-tdep.c: Likewise.
4760 * amd64-nat.c: Likewise.
4761 * amd64-sol2-tdep.c: Likewise.
4762 * amd64fbsd-tdep.c: Likewise.
4763 * amd64obsd-tdep.c: Likewise.
4764 * arch-utils.c: Likewise.
4765 * arm-linux-nat.c: Likewise.
4766 * arm-linux-tdep.c: Likewise.
4767 * arm-tdep.c: Likewise.
4768 * arm-wince-tdep.c: Likewise.
4769 * armbsd-tdep.c: Likewise.
4770 * armnbsd-nat.c: Likewise.
4771 * armnbsd-tdep.c: Likewise.
4772 * armobsd-tdep.c: Likewise.
4773 * avr-tdep.c: Likewise.
4774 * ax-gdb.c: Likewise.
4775 * ax-general.c: Likewise.
4776 * bcache.c: Likewise.
4777 * bfin-tdep.c: Likewise.
4778 * breakpoint.c: Likewise.
4779 * build-id.c: Likewise.
4780 * buildsym.c: Likewise.
4781 * c-exp.y: Likewise.
4782 * c-lang.c: Likewise.
4783 * c-typeprint.c: Likewise.
4784 * c-valprint.c: Likewise.
4785 * charset.c: Likewise.
4786 * cli-out.c: Likewise.
4787 * cli/cli-cmds.c: Likewise.
4788 * cli/cli-decode.c: Likewise.
4789 * cli/cli-dump.c: Likewise.
4790 * cli/cli-interp.c: Likewise.
4791 * cli/cli-logging.c: Likewise.
4792 * cli/cli-script.c: Likewise.
4793 * cli/cli-setshow.c: Likewise.
4794 * cli/cli-utils.c: Likewise.
4795 * coffread.c: Likewise.
4796 * common/agent.c: Likewise.
4797 * common/buffer.c: Likewise.
4798 * common/buffer.h: Likewise.
4799 * common/common-utils.c: Likewise.
4800 * common/filestuff.c: Likewise.
4801 * common/filestuff.c: Likewise.
4802 * common/format.c: Likewise.
4803 * common/print-utils.c: Likewise.
4804 * common/rsp-low.c: Likewise.
4805 * common/signals.c: Likewise.
4806 * common/vec.h: Likewise.
4807 * common/xml-utils.c: Likewise.
4808 * core-regset.c: Likewise.
4809 * corefile.c: Likewise.
4810 * corelow.c: Likewise.
4811 * cp-abi.c: Likewise.
4812 * cp-name-parser.y: Likewise.
4813 * cp-support.c: Likewise.
4814 * cp-valprint.c: Likewise.
4815 * cris-tdep.c: Likewise.
4816 * d-exp.y: Likewise.
4817 * darwin-nat.c: Likewise.
4818 * dbxread.c: Likewise.
4819 * dcache.c: Likewise.
4820 * demangle.c: Likewise.
4821 * dicos-tdep.c: Likewise.
4822 * disasm.c: Likewise.
4823 * doublest.c: Likewise.
4824 * dsrec.c: Likewise.
4825 * dummy-frame.c: Likewise.
4826 * dwarf2-frame.c: Likewise.
4827 * dwarf2loc.c: Likewise.
4828 * dwarf2read.c: Likewise.
4829 * elfread.c: Likewise.
4830 * environ.c: Likewise.
4831 * eval.c: Likewise.
4832 * event-loop.c: Likewise.
4833 * exceptions.c: Likewise.
4834 * exec.c: Likewise.
4835 * expprint.c: Likewise.
4836 * f-exp.y: Likewise.
4837 * f-lang.c: Likewise.
4838 * f-typeprint.c: Likewise.
4839 * f-valprint.c: Likewise.
4840 * fbsd-nat.c: Likewise.
4841 * findcmd.c: Likewise.
4842 * findvar.c: Likewise.
4843 * fork-child.c: Likewise.
4844 * frame.c: Likewise.
4845 * frv-linux-tdep.c: Likewise.
4846 * frv-tdep.c: Likewise.
4847 * gdb.c: Likewise.
4848 * gdb_bfd.c: Likewise.
4849 * gdbarch.c: Likewise.
4850 * gdbarch.sh: Likewise.
4851 * gdbtypes.c: Likewise.
4852 * gnu-nat.c: Likewise.
4853 * gnu-v2-abi.c: Likewise.
4854 * gnu-v3-abi.c: Likewise.
4855 * go-exp.y: Likewise.
4856 * go-lang.c: Likewise.
4857 * go32-nat.c: Likewise.
4858 * guile/guile.c: Likewise.
4859 * guile/scm-auto-load.c: Likewise.
4860 * hppa-hpux-tdep.c: Likewise.
4861 * hppa-linux-nat.c: Likewise.
4862 * hppanbsd-tdep.c: Likewise.
4863 * hppaobsd-tdep.c: Likewise.
4864 * i386-cygwin-tdep.c: Likewise.
4865 * i386-dicos-tdep.c: Likewise.
4866 * i386-linux-tdep.c: Likewise.
4867 * i386-nto-tdep.c: Likewise.
4868 * i386-sol2-tdep.c: Likewise.
4869 * i386-tdep.c: Likewise.
4870 * i386bsd-tdep.c: Likewise.
4871 * i386gnu-nat.c: Likewise.
4872 * i386nbsd-tdep.c: Likewise.
4873 * i386obsd-tdep.c: Likewise.
4874 * i387-tdep.c: Likewise.
4875 * ia64-libunwind-tdep.c: Likewise.
4876 * ia64-linux-nat.c: Likewise.
4877 * inf-child.c: Likewise.
4878 * inf-ptrace.c: Likewise.
4879 * inf-ttrace.c: Likewise.
4880 * infcall.c: Likewise.
4881 * infcmd.c: Likewise.
4882 * inflow.c: Likewise.
4883 * infrun.c: Likewise.
4884 * interps.c: Likewise.
4885 * iq2000-tdep.c: Likewise.
4886 * irix5-nat.c: Likewise.
4887 * jv-exp.y: Likewise.
4888 * jv-lang.c: Likewise.
4889 * jv-typeprint.c: Likewise.
4890 * jv-valprint.c: Likewise.
4891 * language.c: Likewise.
4892 * linux-fork.c: Likewise.
4893 * linux-nat.c: Likewise.
4894 * lm32-tdep.c: Likewise.
4895 * m2-exp.y: Likewise.
4896 * m2-typeprint.c: Likewise.
4897 * m32c-tdep.c: Likewise.
4898 * m32r-linux-nat.c: Likewise.
4899 * m32r-linux-tdep.c: Likewise.
4900 * m32r-rom.c: Likewise.
4901 * m32r-tdep.c: Likewise.
4902 * m68hc11-tdep.c: Likewise.
4903 * m68k-tdep.c: Likewise.
4904 * m68kbsd-tdep.c: Likewise.
4905 * m68klinux-nat.c: Likewise.
4906 * m68klinux-tdep.c: Likewise.
4907 * m88k-tdep.c: Likewise.
4908 * machoread.c: Likewise.
4909 * macrocmd.c: Likewise.
4910 * main.c: Likewise.
4911 * mdebugread.c: Likewise.
4912 * mem-break.c: Likewise.
4913 * memattr.c: Likewise.
4914 * memory-map.c: Likewise.
4915 * mep-tdep.c: Likewise.
4916 * mi/mi-cmd-break.c: Likewise.
4917 * mi/mi-cmd-disas.c: Likewise.
4918 * mi/mi-cmd-env.c: Likewise.
4919 * mi/mi-cmd-stack.c: Likewise.
4920 * mi/mi-cmd-var.c: Likewise.
4921 * mi/mi-cmds.c: Likewise.
4922 * mi/mi-console.c: Likewise.
4923 * mi/mi-getopt.c: Likewise.
4924 * mi/mi-interp.c: Likewise.
4925 * mi/mi-main.c: Likewise.
4926 * mi/mi-parse.c: Likewise.
4927 * microblaze-rom.c: Likewise.
4928 * microblaze-tdep.c: Likewise.
4929 * mingw-hdep.c: Likewise.
4930 * minidebug.c: Likewise.
4931 * minsyms.c: Likewise.
4932 * mips-irix-tdep.c: Likewise.
4933 * mips-linux-tdep.c: Likewise.
4934 * mips-tdep.c: Likewise.
4935 * mips64obsd-tdep.c: Likewise.
4936 * mipsnbsd-tdep.c: Likewise.
4937 * mipsread.c: Likewise.
4938 * mn10300-linux-tdep.c: Likewise.
4939 * mn10300-tdep.c: Likewise.
4940 * monitor.c: Likewise.
4941 * moxie-tdep.c: Likewise.
4942 * mt-tdep.c: Likewise.
4943 * nat/linux-btrace.c: Likewise.
4944 * nat/linux-osdata.c: Likewise.
4945 * nat/linux-procfs.c: Likewise.
4946 * nat/linux-ptrace.c: Likewise.
4947 * nat/linux-waitpid.c: Likewise.
4948 * nbsd-tdep.c: Likewise.
4949 * nios2-linux-tdep.c: Likewise.
4950 * nto-procfs.c: Likewise.
4951 * nto-tdep.c: Likewise.
4952 * objc-lang.c: Likewise.
4953 * objfiles.c: Likewise.
4954 * opencl-lang.c: Likewise.
4955 * osabi.c: Likewise.
4956 * osdata.c: Likewise.
4957 * p-exp.y: Likewise.
4958 * p-lang.c: Likewise.
4959 * p-typeprint.c: Likewise.
4960 * parse.c: Likewise.
4961 * posix-hdep.c: Likewise.
4962 * ppc-linux-nat.c: Likewise.
4963 * ppc-sysv-tdep.c: Likewise.
4964 * ppcfbsd-tdep.c: Likewise.
4965 * ppcnbsd-tdep.c: Likewise.
4966 * ppcobsd-tdep.c: Likewise.
4967 * printcmd.c: Likewise.
4968 * procfs.c: Likewise.
4969 * prologue-value.c: Likewise.
4970 * python/py-auto-load.c: Likewise.
4971 * python/py-gdb-readline.c: Likewise.
4972 * ravenscar-thread.c: Likewise.
4973 * regcache.c: Likewise.
4974 * registry.c: Likewise.
4975 * remote-fileio.c: Likewise.
4976 * remote-m32r-sdi.c: Likewise.
4977 * remote-mips.c: Likewise.
4978 * remote-notif.c: Likewise.
4979 * remote-sim.c: Likewise.
4980 * remote.c: Likewise.
4981 * reverse.c: Likewise.
4982 * rs6000-aix-tdep.c: Likewise.
4983 * ser-base.c: Likewise.
4984 * ser-go32.c: Likewise.
4985 * ser-mingw.c: Likewise.
4986 * ser-pipe.c: Likewise.
4987 * ser-tcp.c: Likewise.
4988 * ser-unix.c: Likewise.
4989 * serial.c: Likewise.
4990 * sh-tdep.c: Likewise.
4991 * sh64-tdep.c: Likewise.
4992 * shnbsd-tdep.c: Likewise.
4993 * skip.c: Likewise.
4994 * sol-thread.c: Likewise.
4995 * solib-dsbt.c: Likewise.
4996 * solib-frv.c: Likewise.
4997 * solib-osf.c: Likewise.
4998 * solib-som.c: Likewise.
4999 * solib-spu.c: Likewise.
5000 * solib-target.c: Likewise.
5001 * solib.c: Likewise.
5002 * somread.c: Likewise.
5003 * source.c: Likewise.
5004 * sparc-nat.c: Likewise.
5005 * sparc-sol2-tdep.c: Likewise.
5006 * sparc-tdep.c: Likewise.
5007 * sparc64-tdep.c: Likewise.
5008 * sparc64fbsd-tdep.c: Likewise.
5009 * sparc64nbsd-tdep.c: Likewise.
5010 * sparcnbsd-tdep.c: Likewise.
5011 * spu-linux-nat.c: Likewise.
5012 * spu-multiarch.c: Likewise.
5013 * spu-tdep.c: Likewise.
5014 * stabsread.c: Likewise.
5015 * stack.c: Likewise.
5016 * std-regs.c: Likewise.
5017 * symfile.c: Likewise.
5018 * symmisc.c: Likewise.
5019 * symtab.c: Likewise.
5020 * target.c: Likewise.
5021 * thread.c: Likewise.
5022 * tilegx-linux-nat.c: Likewise.
5023 * tilegx-tdep.c: Likewise.
5024 * top.c: Likewise.
5025 * tracepoint.c: Likewise.
5026 * tui/tui-command.c: Likewise.
5027 * tui/tui-data.c: Likewise.
5028 * tui/tui-disasm.c: Likewise.
5029 * tui/tui-file.c: Likewise.
5030 * tui/tui-layout.c: Likewise.
5031 * tui/tui-out.c: Likewise.
5032 * tui/tui-regs.c: Likewise.
5033 * tui/tui-source.c: Likewise.
5034 * tui/tui-stack.c: Likewise.
5035 * tui/tui-win.c: Likewise.
5036 * tui/tui-windata.c: Likewise.
5037 * tui/tui-winsource.c: Likewise.
5038 * typeprint.c: Likewise.
5039 * ui-file.c: Likewise.
5040 * ui-out.c: Likewise.
5041 * user-regs.c: Likewise.
5042 * utils.c: Likewise.
5043 * v850-tdep.c: Likewise.
5044 * valarith.c: Likewise.
5045 * valops.c: Likewise.
5046 * valprint.c: Likewise.
5047 * value.c: Likewise.
5048 * varobj.c: Likewise.
5049 * vax-tdep.c: Likewise.
5050 * vaxnbsd-tdep.c: Likewise.
5051 * vaxobsd-tdep.c: Likewise.
5052 * windows-nat.c: Likewise.
5053 * xcoffread.c: Likewise.
5054 * xml-support.c: Likewise.
5055 * xstormy16-tdep.c: Likewise.
5056 * xtensa-linux-nat.c: Likewise.
5057
dccbb609
GB
50582014-08-07 Gary Benson <gbenson@redhat.com>
5059
5060 * common/common-defs.h: Include gdb_assert.h.
5061 * aarch64-tdep.c: Do not include gdb_assert.h.
5062 * addrmap.c: Likewise.
5063 * aix-thread.c: Likewise.
5064 * alpha-linux-tdep.c: Likewise.
5065 * alpha-mdebug-tdep.c: Likewise.
5066 * alphanbsd-tdep.c: Likewise.
5067 * amd64-nat.c: Likewise.
5068 * amd64-tdep.c: Likewise.
5069 * amd64bsd-nat.c: Likewise.
5070 * amd64fbsd-nat.c: Likewise.
5071 * amd64fbsd-tdep.c: Likewise.
5072 * amd64nbsd-nat.c: Likewise.
5073 * amd64nbsd-tdep.c: Likewise.
5074 * amd64obsd-nat.c: Likewise.
5075 * amd64obsd-tdep.c: Likewise.
5076 * arch-utils.c: Likewise.
5077 * arm-tdep.c: Likewise.
5078 * armbsd-tdep.c: Likewise.
5079 * auxv.c: Likewise.
5080 * bcache.c: Likewise.
5081 * bfin-tdep.c: Likewise.
5082 * blockframe.c: Likewise.
5083 * breakpoint.c: Likewise.
5084 * bsd-kvm.c: Likewise.
5085 * bsd-uthread.c: Likewise.
5086 * buildsym.c: Likewise.
5087 * c-exp.y: Likewise.
5088 * c-lang.c: Likewise.
5089 * charset.c: Likewise.
5090 * cleanups.c: Likewise.
5091 * cli-out.c: Likewise.
5092 * cli/cli-decode.c: Likewise.
5093 * cli/cli-dump.c: Likewise.
5094 * cli/cli-logging.c: Likewise.
5095 * cli/cli-script.c: Likewise.
5096 * cli/cli-utils.c: Likewise.
5097 * coffread.c: Likewise.
5098 * common/common-utils.c: Likewise.
5099 * common/queue.h: Likewise.
5100 * common/signals.c: Likewise.
5101 * common/vec.h: Likewise.
5102 * complaints.c: Likewise.
5103 * completer.c: Likewise.
5104 * corelow.c: Likewise.
5105 * cp-abi.c: Likewise.
5106 * cp-name-parser.y: Likewise.
5107 * cp-namespace.c: Likewise.
5108 * cp-support.c: Likewise.
5109 * cris-tdep.c: Likewise.
5110 * dbxread.c: Likewise.
5111 * dictionary.c: Likewise.
5112 * doublest.c: Likewise.
5113 * dsrec.c: Likewise.
5114 * dummy-frame.c: Likewise.
5115 * dwarf2-frame-tailcall.c: Likewise.
5116 * dwarf2-frame.c: Likewise.
5117 * dwarf2expr.c: Likewise.
5118 * dwarf2loc.c: Likewise.
5119 * dwarf2read.c: Likewise.
5120 * eval.c: Likewise.
5121 * event-loop.c: Likewise.
5122 * exceptions.c: Likewise.
5123 * expprint.c: Likewise.
5124 * f-valprint.c: Likewise.
5125 * fbsd-nat.c: Likewise.
5126 * findvar.c: Likewise.
5127 * frame-unwind.c: Likewise.
5128 * frame.c: Likewise.
5129 * frv-tdep.c: Likewise.
5130 * gcore.c: Likewise.
5131 * gdb-dlfcn.c: Likewise.
5132 * gdb_bfd.c: Likewise.
5133 * gdbarch.c: Likewise.
5134 * gdbarch.sh: Likewise.
5135 * gdbtypes.c: Likewise.
5136 * gnu-nat.c: Likewise.
5137 * gnu-v3-abi.c: Likewise.
5138 * go-lang.c: Likewise.
5139 * guile/scm-exception.c: Likewise.
5140 * guile/scm-gsmob.c: Likewise.
5141 * guile/scm-lazy-string.c: Likewise.
5142 * guile/scm-math.c: Likewise.
5143 * guile/scm-pretty-print.c: Likewise.
5144 * guile/scm-safe-call.c: Likewise.
5145 * guile/scm-utils.c: Likewise.
5146 * guile/scm-value.c: Likewise.
5147 * h8300-tdep.c: Likewise.
5148 * hppa-hpux-nat.c: Likewise.
5149 * hppa-tdep.c: Likewise.
5150 * hppanbsd-tdep.c: Likewise.
5151 * hppaobsd-tdep.c: Likewise.
5152 * i386-darwin-nat.c: Likewise.
5153 * i386-darwin-tdep.c: Likewise.
5154 * i386-nto-tdep.c: Likewise.
5155 * i386-tdep.c: Likewise.
5156 * i386bsd-nat.c: Likewise.
5157 * i386fbsd-tdep.c: Likewise.
5158 * i386gnu-nat.c: Likewise.
5159 * i386nbsd-tdep.c: Likewise.
5160 * i386obsd-tdep.c: Likewise.
5161 * i387-tdep.c: Likewise.
5162 * ia64-libunwind-tdep.c: Likewise.
5163 * ia64-tdep.c: Likewise.
5164 * inf-ptrace.c: Likewise.
5165 * inf-ttrace.c: Likewise.
5166 * infcall.c: Likewise.
5167 * infcmd.c: Likewise.
5168 * infrun.c: Likewise.
5169 * inline-frame.c: Likewise.
5170 * interps.c: Likewise.
5171 * jv-lang.c: Likewise.
5172 * jv-typeprint.c: Likewise.
5173 * linux-fork.c: Likewise.
5174 * linux-nat.c: Likewise.
5175 * linux-thread-db.c: Likewise.
5176 * m32c-tdep.c: Likewise.
5177 * m32r-linux-nat.c: Likewise.
5178 * m32r-tdep.c: Likewise.
5179 * m68k-tdep.c: Likewise.
5180 * m68kbsd-nat.c: Likewise.
5181 * m68kbsd-tdep.c: Likewise.
5182 * m88k-tdep.c: Likewise.
5183 * machoread.c: Likewise.
5184 * macroexp.c: Likewise.
5185 * macrotab.c: Likewise.
5186 * maint.c: Likewise.
5187 * mdebugread.c: Likewise.
5188 * memory-map.c: Likewise.
5189 * mep-tdep.c: Likewise.
5190 * mi/mi-common.c: Likewise.
5191 * microblaze-tdep.c: Likewise.
5192 * mingw-hdep.c: Likewise.
5193 * mips-linux-nat.c: Likewise.
5194 * mips-linux-tdep.c: Likewise.
5195 * mips-tdep.c: Likewise.
5196 * mips64obsd-tdep.c: Likewise.
5197 * mipsnbsd-tdep.c: Likewise.
5198 * mn10300-linux-tdep.c: Likewise.
5199 * mn10300-tdep.c: Likewise.
5200 * moxie-tdep.c: Likewise.
5201 * mt-tdep.c: Likewise.
5202 * nat/linux-btrace.c: Likewise.
5203 * nat/linux-osdata.c: Likewise.
5204 * nat/linux-ptrace.c: Likewise.
5205 * nat/mips-linux-watch.c: Likewise.
5206 * nios2-linux-tdep.c: Likewise.
5207 * nios2-tdep.c: Likewise.
5208 * objc-lang.c: Likewise.
5209 * objfiles.c: Likewise.
5210 * obsd-nat.c: Likewise.
5211 * opencl-lang.c: Likewise.
5212 * osabi.c: Likewise.
5213 * parse.c: Likewise.
5214 * ppc-linux-nat.c: Likewise.
5215 * ppc-sysv-tdep.c: Likewise.
5216 * ppcfbsd-nat.c: Likewise.
5217 * ppcfbsd-tdep.c: Likewise.
5218 * ppcnbsd-nat.c: Likewise.
5219 * ppcnbsd-tdep.c: Likewise.
5220 * ppcobsd-nat.c: Likewise.
5221 * ppcobsd-tdep.c: Likewise.
5222 * printcmd.c: Likewise.
5223 * procfs.c: Likewise.
5224 * prologue-value.c: Likewise.
5225 * psymtab.c: Likewise.
5226 * python/py-lazy-string.c: Likewise.
5227 * python/py-value.c: Likewise.
5228 * regcache.c: Likewise.
5229 * reggroups.c: Likewise.
5230 * registry.c: Likewise.
5231 * remote-sim.c: Likewise.
5232 * remote.c: Likewise.
5233 * rs6000-aix-tdep.c: Likewise.
5234 * rs6000-tdep.c: Likewise.
5235 * s390-linux-tdep.c: Likewise.
5236 * score-tdep.c: Likewise.
5237 * ser-base.c: Likewise.
5238 * ser-mingw.c: Likewise.
5239 * sh-tdep.c: Likewise.
5240 * sh64-tdep.c: Likewise.
5241 * solib-darwin.c: Likewise.
5242 * solib-spu.c: Likewise.
5243 * solib-svr4.c: Likewise.
5244 * source.c: Likewise.
5245 * sparc-nat.c: Likewise.
5246 * sparc-sol2-tdep.c: Likewise.
5247 * sparc-tdep.c: Likewise.
5248 * sparc64-sol2-tdep.c: Likewise.
5249 * sparc64-tdep.c: Likewise.
5250 * sparc64fbsd-tdep.c: Likewise.
5251 * sparc64nbsd-tdep.c: Likewise.
5252 * sparc64obsd-tdep.c: Likewise.
5253 * sparcnbsd-tdep.c: Likewise.
5254 * sparcobsd-tdep.c: Likewise.
5255 * spu-multiarch.c: Likewise.
5256 * spu-tdep.c: Likewise.
5257 * stabsread.c: Likewise.
5258 * stack.c: Likewise.
5259 * symfile.c: Likewise.
5260 * symtab.c: Likewise.
5261 * target-descriptions.c: Likewise.
5262 * target-memory.c: Likewise.
5263 * target.c: Likewise.
5264 * tic6x-linux-tdep.c: Likewise.
5265 * tic6x-tdep.c: Likewise.
5266 * tilegx-linux-nat.c: Likewise.
5267 * tilegx-tdep.c: Likewise.
5268 * top.c: Likewise.
5269 * tramp-frame.c: Likewise.
5270 * tui/tui-out.c: Likewise.
5271 * tui/tui-winsource.c: Likewise.
5272 * ui-out.c: Likewise.
5273 * user-regs.c: Likewise.
5274 * utils.c: Likewise.
5275 * v850-tdep.c: Likewise.
5276 * valops.c: Likewise.
5277 * value.c: Likewise.
5278 * varobj.c: Likewise.
5279 * vax-nat.c: Likewise.
5280 * xml-syscall.c: Likewise.
5281 * xml-tdesc.c: Likewise.
5282 * xstormy16-tdep.c: Likewise.
5283 * xtensa-linux-nat.c: Likewise.
5284 * xtensa-tdep.c: Likewise.
5285
e76df0d0
GB
52862014-08-07 Gary Benson <gbenson@redhat.com>
5287
5288 * common/common-defs.h: Include common-utils.h.
5289 * defs.h: Do not include common-utils.h.
5290 * common/gdb_assert.h: Likewise.
5291 * darwin-nat.h: Likewise.
5292 * nat/linux-btrace.c: Likewise.
5293 * target/waitstatus.h: Likewise.
5294
4cb9c816
GB
52952014-08-07 Gary Benson <gbenson@redhat.com>
5296
5297 * common/common-defs.h: Include ptid.h.
5298 * defs.h: Do not include ptid.h.
5299 * inferior.h: Likewise.
5300 * infrun.h: Likewise.
5301 * nat/linux-btrace.h: Likewise.
5302 * nat/linux-osdata.h: Likewise.
5303 * target/waitstatus.h: Likewise.
5304
3995eeee
GB
53052014-08-07 Gary Benson <gbenson@redhat.com>
5306
5307 * common/common-defs.h: Include gdb_locale.h.
5308 * defs.h: Do not include gdb_locale.h.
5309
cb9f1a9b
GB
53102014-08-07 Gary Benson <gbenson@redhat.com>
5311
5312 * common/common-defs.h: Include gdb/signals.h.
5313 * defs.h: Do not include gdb/signals.h.
5314
a5fceff8
GB
53152014-08-07 Gary Benson <gbenson@redhat.com>
5316
5317 * common/common-defs.h: Include pathmax.h.
5318 * defs.h: Do not include pathmax.h.
5319
b9391142
GB
53202014-08-07 Gary Benson <gbenson@redhat.com>
5321
5322 * common/common-defs.h: Include libiberty.h.
5323 * defs.h: Do not include libiberty.h.
5324 * common/queue.h: Likewise.
5325 * cp-name-parser.y: Likewise.
5326 * mi/mi-cmd-catch.c: Likewise.
5327 * python/python.c: Likewise.
5328
0e443c87
GB
53292014-08-07 Gary Benson <gbenson@redhat.com>
5330
5331 * common/common-defs.h: Include ansidecl.h.
5332 * defs.h: Do not include ansidecl.h.
5333 * common/buffer.h: Likewise.
5334 * common/common-utils.h: Likewise.
5335
8ebb3f56
GB
53362014-08-07 Gary Benson <gbenson@redhat.com>
5337
5338 * common/common-defs.h: Include stddef.h.
5339 * defs.h: Do not include stddef.h.
5340 * common/common-utils.h: Likewise.
5341 * amd64fbsd-nat.c: Likewise.
5342 * bcache.c: Likewise.
5343 * charset.c: Likewise.
5344 * common/buffer.h: Likewise.
5345 * common/vec.h: Likewise.
5346 * i386bsd-nat.c: Likewise.
5347 * nat/linux-btrace.h: Likewise.
5348 * ppcfbsd-nat.c: Likewise.
5349 * ppcnbsd-tdep.h: Likewise.
5350 * ppcobsd-nat.c: Likewise.
5351 * ppcobsd-tdep.h: Likewise.
5352 * python/py-gdb-readline.c: Likewise.
5353
8980bdf6
GB
53542014-08-07 Gary Benson <gbenson@redhat.com>
5355
5356 * common/common-defs.h: Include stdarg.h.
5357 * defs.h: Do not include stdarg.h.
5358 * ada-lang.c: Likewise.
5359 * common/common-utils.h: Likewise.
5360 * guile/scm-string.c: Likewise.
5361 * guile/scm-utils.c: Likewise.
5362 * m32c-tdep.c: Likewise.
5363
d7096f71
GB
53642014-08-07 Gary Benson <gbenson@redhat.com>
5365
5366 * common/common-defs.h: Include stdlib.h.
5367 * defs.h: Do not include stdlib.h.
5368 * addrmap.c: Likewise.
5369 * bcache.c: Likewise.
5370 * common/buffer.c: Likewise.
5371 * common/common-utils.c: Likewise.
5372 * cp-name-parser.y: Likewise.
5373 * go32-nat.c: Likewise.
5374 * mn10300-linux-tdep.c: Likewise.
5375 * nat/linux-osdata.c: Likewise.
5376 * tui/tui.c: Likewise.
5377 * windows-nat.c: Likewise.
5378
d02f550d
GB
53792014-08-07 Gary Benson <gbenson@redhat.com>
5380
5381 * common/common-defs.h: Include stdio.h.
5382 * defs.h: Do not include stdio.h.
5383 * ada-lang.c: Likewise.
5384 * common/buffer.c: Likewise.
5385 * common/common-utils.c: Likewise.
5386 * cp-name-parser.y: Likewise.
5387 * gnu-nat.c: Likewise.
5388 * go32-nat.c: Likewise.
5389 * i386gnu-nat.c: Likewise.
5390 * proc-api.c: Likewise.
5391 * proc-events.c: Likewise.
5392 * proc-flags.c: Likewise.
5393 * proc-why.c: Likewise.
5394 * python/python-internal.h: Likewise.
5395 * target-memory.c: Likewise.
5396 * tui/tui-io.c: Likewise.
5397 * tui/tui.c: Likewise.
5398
b6d7a4bf
SM
53992014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5400
5401 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5402 (scan_dyntag_auxv): Same.
5403
af19829b
YQ
54042014-08-06 Yao Qi <yao@codesourcery.com>
5405
5406 * amd64-linux-nat.c: Remove duplicated include
5407 "x86-linux-nat.h".
5408 * i386-linux-nat.c: Likewise.
5409
8e07a239
YQ
54102014-08-06 Yao Qi <yao@codesourcery.com>
5411
5412 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5413 operand" with "Special opcode" in comments.
5414
7bfe8241
GB
54152014-08-05 Gary Benson <gbenson@redhat.com>
5416
5417 * interps.c (initialize_interps): Remove prototype.
5418 (interpreter_initialized): Remove static global.
5419 (interp_add): Do not call initialize_interps.
5420 (initialize_interps): Remove function.
5421
d6c95504
GB
54222014-08-05 Gary Benson <gbenson@redhat.com>
5423
5424 * utils.c (vwarning): Remove spurious va_end.
5425
241fd515
AM
54262014-08-05 Alan Modra <amodra@gmail.com>
5427
5428 * charset.c (convert_between_encodings): Cast result of obstack_base.
5429 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5430 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5431 (read_unwind_info): Use size_t for some locals.
5432 * jit.c (finalize_symtab): Likewise.
5433 * utils.c (hashtab_obstack_allocate): Likewise.
5434 * symmisc.c (print_objfile_statistics): Update format strings.
5435
dc304a94
JK
54362014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5439 (Changes in GDB 7.8): ... here.
5440
3cecbbbe
TT
54412014-08-04 Tom Tromey <tromey@redhat.com>
5442
5443 * target.c (set_targetdebug): New function.
5444 (initialize_targets): Pass set_targetdebug when creating "set
5445 debug target".
5446
6908c509
JB
54472014-08-01 Joel Brobecker <brobecker@adacore.com>
5448
5449 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5450 if detecting a variable-sized field that is not the last field.
5451 Fix struct type length computation.
5452
53e8f97d
JB
54532014-08-01 Joel Brobecker <brobecker@adacore.com>
5454
5455 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5456 Add debug trace.
5457
e068c55d
JB
54582014-08-01 Joel Brobecker <brobecker@adacore.com>
5459
5460 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5461 Remove "+ 8" offset in computation of CHAIN_VMA.
5462
4d4ca2a1
DE
54632014-07-31 Doug Evans <dje@google.com>
5464
5465 * inflow.c (child_terminal_inferior): Add comment.
5466 (child_terminal_ours_for_output): Add comment.
5467 (child_terminal_ours): Add comment.
5468 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5469 (linux_nat_terminal_ours): Add comment.
5470
462f517e
GB
54712014-07-31 Gary Benson <gbenson@redhat.com>
5472
5473 * common/btrace-common.h: Do not include defs.h or server.h.
5474 * nat/mips-linux-watch.h: Likewise.
5475 * gdb-dlfcn.h: Do not include defs.h.
5476 * tracefile.h: Likewise.
5477
74228e77
RM
54782014-07-30 Roland McGrath <mcgrathr@google.com>
5479
5480 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5481
014f9477
TT
54822014-07-30 Tom Tromey <tromey@redhat.com>
5483
5484 * bsd-kvm.c (bsd_kvm_open): Constify.
5485 * corelow.c (core_open): Constify.
5486 * ctf.c (ctf_open): Constify.
5487 * dbug-rom.c (dbug_open): Constify.
5488 * exec.c (exec_open): Constify.
5489 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5490 * microblaze-rom.c (picobug_open): Constify.
5491 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5492 Constify.
5493 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5494 * record-btrace.c (record_btrace_open): Constify.
5495 * record-full.c (record_full_core_open_1, record_full_open_1)
5496 (record_full_open): Constify.
5497 * remote-m32r-sdi.c (m32r_open): Constify.
5498 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5499 (rockhopper_open, lsi_open): Constify.
5500 * remote-sim.c (gdbsim_open): Constify.
5501 * remote.c (remote_open, extended_remote_open, remote_open_1):
5502 Constify.
5503 * target.h (struct target_ops) <to_open>: Make "arg" const.
5504 * tracefile-tfile.c (tfile_open): Constify.
5505
e799154c
TT
55062014-07-30 Tom Tromey <tromey@redhat.com>
5507
5508 * breakpoint.c (map_breakpoint_numbers): Update.
5509 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5510 (get_number_const): New function.
5511 (get_number): Rewrite using get_number_const.
5512 (init_number_or_range): Make "string" const.
5513 (number_is_in_list): Make "list" const.
5514 * cli/cli-utils.h (get_number_const): Declare.
5515 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5516 (init_number_or_range, number_is_in_list): Update.
5517 * printcmd.c (map_display_numbers): Update.
5518 * value.c (value_from_history_ref): Constify.
5519 * value.h (value_from_history_ref): Update.
5520
5f08566b
TT
55212014-07-30 Tom Tromey <tromey@redhat.com>
5522
5523 * corefile.c (hook_type, call_extra_exec_file_hooks)
5524 (specify_exec_file_hook): Constify.
5525 * exec.c (exec_file_attach): Make "filename" const.
5526 * gdbcore.h (deprecated_exec_file_display_hook)
5527 (specify_exec_file_hook, exec_file_attach): Constify.
5528 * main.c (captured_main): Use catch_command_errors_const.
5529
8981c758
TT
55302014-07-30 Tom Tromey <tromey@redhat.com>
5531
5532 * target.c (open_target): New function.
5533 (add_target_with_completer, add_deprecated_target_alias): Use
5534 set_cmd_sfunc, set_cmd_context.
5535 (debug_to_open): Remove.
5536 (setup_target_debug): Update.
5537
a1c7835a
YQ
55382014-07-30 Yao Qi <yao@codesourcery.com>
5539
5540 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5541 comments.
5542 * parse.c (exp_iterate): Update comments.
5543
976411d6
GB
55442014-07-30 Gary Benson <gbenson@redhat.com>
5545
5546 * common/common-defs.h: New file.
5547 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5548 * defs.h: Include common-defs.h.
5549 Do not include config.h or build-gnulib/config.h.
5550
5d4848a4
GB
55512014-07-30 Gary Benson <gbenson@redhat.com>
5552
5553 * common/common-utils.h: Do not include config.h.
5554 * nat/linux-btrace.h: Likewise.
5555
d41f6d8e
GB
55562014-07-30 Gary Benson <gbenson@redhat.com>
5557
5558 * btrace.c: Include defs.h.
5559 * common/ptid.c: Include defs.h or server.h as appropriate.
5560 * nat/mips-linux-watch.c: Likewise.
5561
84202f9c
TT
55622014-07-29 Tom Tromey <tromey@redhat.com>
5563
5564 * target.c (target_is_pushed): Simplify.
5565
2530441c
JB
55662014-07-29 Joel Brobecker <brobecker@adacore.com>
5567
5568 GDB 7.8 released.
5569
7e09a223
YQ
55702014-07-29 Yao Qi <yao@codesourcery.com>
5571
5572 PR gdb/17206
5573 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5574
7ebdbe92
DE
55752014-07-28 Doug Evans <xdje42@gmail.com>
5576
5577 PR guile/17203
5578 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5579 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5580 parameters.
5581
f347ffc9
WN
55822014-07-28 Will Newton <will.newton@linaro.org>
5583
5584 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5585 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5586 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5587 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5588 (THUMB2_EABI_SYSCALL): Likewise.
5589 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5590 struct tramp_frame.
5591 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5592 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5593
37c5f1f7
DE
55942014-07-27 Doug Evans <xdje42@gmail.com>
5595
5596 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5597
0c3abbc7
DE
55982014-07-27 Doug Evans <xdje42@gmail.com>
5599
5600 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5601
e76c5d17
DE
56022014-07-26 Ludovic Courtès <ludo@gnu.org>
5603 Doug Evans <xdje42@gmail.com>
5604
5605 PR guile/17146
5606 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5607 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5608 * configure.ac: Try to use guild to compile an scm file, if it fails
5609 then disable guile support.
5610 * configure: Regenerate.
5611 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5612 GUILE_FILE_LIST.
5613 (GUILE_COMPILED_FILES): New variable.
5614 (GUILE_FILES) Update.
5615 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5616 (stamp-guile): Compile scm files.
5617 * guile/guile.c (boot_guile_support): New function.
5618 (standard_throw_args_p): New function.
5619 (print_standard_throw_error, print_throw_error): New functions.
5620 (handle_boot_error): New function.
5621 (initialize_scheme_side): Rewrite to call boot_guile_support.
5622 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5623 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5624
186fcde0
DE
56252014-07-26 Ludovic Courtès <ludo@gnu.org>
5626 Doug Evans <xdje42@gmail.com>
5627
5628 PR guile/17146
5629 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5630 * guile/lib/gdb/support.scm: New file.
5631 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5632 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5633 All uses updated.
5634 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5635 All uses updated.
5636 (%assert-type): Ditto, and renamed to assert-type.
5637 (%exception-print-style): Delete.
5638
4df42755
DE
56392014-07-26 Doug Evans <xdje42@gmail.com>
5640
5641 PR build/17105
5642 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5643 * configure: Regenerate.
5644 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5645 PYTHON_FILES.
5646 (PYTHON_FILES): New variable.
5647 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5648 (GUILE_FILES): New variable.
5649 (stamp-python, install-python, uninstall-python): Handle empty
5650 file list.
5651 (stamp-guile, install-guile, uninstall-guile): Ditto.
5652
ee7333ae
DE
56532014-07-26 Doug Evans <xdje42@gmail.com>
5654
5655 PR guile/17177
5656 * guile/lib/gdb.scm (pretty-printers): Export.
5657 (set-pretty-printers!): Export.
5658 * guile/lib/gdb/printing.scm (gdb module): Update.
5659 (prepend-pretty-printer!, append-pretty-printer!): Update.
5660 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5661 (pretty_printer_list_var): Delete.
5662 (pretty_printer_list): New static global.
5663 (gdbscm_pretty_printers): New function.
5664 (gdbscm_set_pretty_printers_x): New function.
5665 (ppscm_find_pretty_printer_from_gdb): Update.
5666 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5667 (gdbscm_initialize_pretty_printers): Update.
5668
74edf516
DE
56692014-07-26 Doug Evans <xdje42@gmail.com>
5670
5671 PR 17185
5672 * configure.ac: Add check for header gc/gc.h.
5673 Add check for function setenv.
5674 * configure: Regenerate.
5675 * config.in: Regenerate.
5676 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5677
d54398a7
MR
56782014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5679
5680 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5681 variation in gdbarch matching.
5682
ab16fce8
TT
56832014-07-25 Tom Tromey <tromey@redhat.com>
5684
5685 * exec.c (using_exec_ops): Remove.
5686 (exec_close_1): Update. Remove extraneous block, reindent.
5687 (add_target_sections): Use target_is_pushed.
5688
88056fbb
PA
56892014-07-25 Pedro Alves <palves@redhat.com>
5690
5691 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5692 * monitor.c (monitor_create_inferior): Likewise.
5693 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5694 * remote-sim.c (gdbsim_create_inferior): Likewise.
5695 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5696 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5697 * windows-nat.c (do_initial_windows_stuff): Likewise.
5698
70509625
PA
56992014-07-25 Pedro Alves <palves@redhat.com>
5700
5701 * NEWS: Mention signal passing and "signal" command changes.
5702 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5703 comment.
5704 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5705 call.
5706 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5707 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5708 (jump_command): Adjust clear_proceed_status call.
5709 (signal_command): Warn if other thread that are resumed have
5710 signals that will be delivered. Adjust clear_proceed_status call.
5711 (until_next_command, finish_command)
5712 (proceed_after_attach_callback, attach_command_post_wait)
5713 (attach_command): Adjust clear_proceed_status call.
5714 * infrun.c (proceed_after_vfork_done): Likewise.
5715 (proceed_after_attach_callback): Adjust comment.
5716 (clear_proceed_status_thread): Clear stop_signal if not in pass
5717 state.
5718 (clear_proceed_status_callback): Delete.
5719 (clear_proceed_status): New 'step' parameter. Only clear the
5720 proceed status of threads the command being prepared is about to
5721 resume.
5722 (proceed): If passed in an explicit signal, override stop_signal
5723 with it. Don't pass the last stop signal to the thread we're
5724 resuming.
5725 (init_wait_for_inferior): Adjust clear_proceed_status call.
5726 (switch_back_to_stepped_thread): Clear the signal if it should not
5727 be passed.
5728 * infrun.h (clear_proceed_status): New 'step' parameter.
5729 (user_visible_resume_ptid): Add comment.
5730 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5731 signal is in pass state.
5732 * remote.c (append_pending_thread_resumptions): Likewise.
5733 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5734
d8be2939
TT
57352014-07-25 Tom Tromey <tromey@redhat.com>
5736
5737 * target.h (target_stopped_data_address)
5738 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5739 parentheses.
5740
7d0d9d2b
PL
57412014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5742
5743 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5744 comments.
5745 (avr_pointer_to_address): Likewise.
5746
e9e7f724
TT
57472014-07-24 Tom Tromey <tromey@redhat.com>
5748
5749 * monitor.c (compile_pattern): Update.
5750 * target.h (struct target_ops) <to_shortname, to_longname,
5751 to_doc>: Now const.
5752
1947513d
TT
57532014-07-24 Tom Tromey <tromey@redhat.com>
5754
5755 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5756 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5757 (add_info_alias, add_com): Make "doc" const.
5758 (print_doc_line): Make "str" const.
5759 (delete_cmd): Update.
5760 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5761 (print_doc_line): Update.
5762 * cli/cli-script.c (document_command): Update.
5763 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5764 (add_com, add_info, add_info_alias): Update.
5765 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5766 * python/py-cmd.c (cmdpy_destroyer): Update.
5767
64e61d29
TT
57682014-07-24 Tom Tromey <tromey@redhat.com>
5769
5770 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5771 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5772 (help_cmd_list): Constify.
5773 (lookup_cmd): Update.
5774 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5775 const.
5776 (help_cmd_list, apropos_cmd): Update.
5777 * cli/cli-script.c (show_user): Update.
5778 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5779 * cli/cli-setshow.h (cmd_show_list): Update.
5780 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5781 (cmd_show_list): Update.
5782 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5783 * python/py-cmd.c (cmdpy_destroyer): Update.
5784
429e55ea
TT
57852014-07-24 Tom Tromey <tromey@redhat.com>
5786
5787 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5788 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5789 const.
5790 * command.h (deprecate_cmd): Update.
5791 * maint.c (maintenance_do_deprecate): Add casts.
5792
64669f3b
TT
57932014-07-24 Tom Tromey <tromey@redhat.com>
5794
5795 * cli/cli-decode.c (help_cmd): Make parameter "const".
5796 * cli/cli-decode.h (help_cmd): Update.
5797
d3d3328b
TT
57982014-07-24 Tom Tromey <tromey@redhat.com>
5799
5800 * stack.c (up_silently_base, down_silently_base): Make argument
5801 const.
5802
414842dc
TT
58032014-07-24 Tom Tromey <tromey@redhat.com>
5804
5805 * solib.c (solib_add): Make "pattern" const.
5806 * solib.h (solib_add): Update.
5807
baa336ce
TT
58082014-07-24 Tom Tromey <tromey@redhat.com>
5809
5810 * remote.c (remote_serial_open, print_packet, putpkt)
5811 (putpkt_binary): Constify.
5812 * remote.h (putpkt): Update.
5813
5a19e2d0
TT
58142014-07-24 Tom Tromey <tromey@redhat.com>
5815
5816 * monitor.c (monitor_open): Make "args" const.
5817 * monitor.h (monitor_open): Update.
5818
fc4baa5e
TT
58192014-07-24 Tom Tromey <tromey@redhat.com>
5820
5821 * maint.c (match_bfd_flags): Make "string" const.
5822 (print_bfd_section_info): Remove casts.
5823 (print_objfile_section_info): Make "string" const.
5824
0d5f0dbe
TT
58252014-07-24 Tom Tromey <tromey@redhat.com>
5826
5827 * inf-child.c (inf_child_open_target): Make "arg" const.
5828 * inf-child.h (inf_child_open_target): Update.
5829
41c77899
TT
58302014-07-24 Tom Tromey <tromey@redhat.com>
5831
5832 * environ.c (unset_in_environ): Make "var" const.
5833 * environ.h (unset_in_environ): Update.
5834
93db0d79
TT
58352014-07-24 Tom Tromey <tromey@redhat.com>
5836
5837 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5838 Make "cmd" const.
5839 (scan_filename_with_cleanup): Likewise.
5840 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5841 Make arguments const.
5842 (restore_command): Update.
5843
36d6eb95
PA
58442014-07-24 Pedro Alves <palves@redhat.com>
5845
5846 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5847
8009206a
TT
58482014-07-24 Tom Tromey <tromey@redhat.com>
5849 Gary Benson <gbenson@redhat.com>
5850
5851 * nat/linux-ptrace.c (additional_flags): New global.
5852 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5853 additional_flags; don't check GDBSERVER.
5854 (linux_ptrace_set_additional_flags): New function.
5855 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5856 Declare.
5857 * linux-nat.c (_initialize_linux_nat): Call
5858 linux_ptrace_set_additional_flags.
5859
a7068b60
TT
58602014-07-24 Tom Tromey <tromey@redhat.com>
5861
5862 * make-target-delegates (munge_type, write_debugmethod): New
5863 functions.
5864 (debug_names): New global.
5865 ($TARGET_DEBUG_PRINTER): New global.
5866 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5867 name.
5868 Write debug methods. Generate init_debug_target.
5869 * target-debug.h: New file.
5870 * target-delegates.c: Rebuild.
5871 * target.c: Include target-debug.h.
5872 (debug_target): Hoist definition.
5873 (target_kill, target_get_section_table, target_memory_map)
5874 (target_flash_erase, target_flash_done, target_detach)
5875 (target_disconnect, target_wait, target_resume)
5876 (target_pass_signals, target_program_signals, target_follow_fork)
5877 (target_mourn_inferior, target_search_memory)
5878 (target_thread_address_space, target_close)
5879 (target_find_new_threads, target_core_of_thread)
5880 (target_verify_memory, target_insert_mask_watchpoint)
5881 (target_remove_mask_watchpoint): Remove targetdebug code.
5882 (debug_to_post_attach, debug_to_prepare_to_store)
5883 (debug_to_files_info, debug_to_insert_breakpoint)
5884 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5885 (debug_to_region_ok_for_hw_watchpoint)
5886 (debug_to_can_accel_watchpoint_condition)
5887 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5888 (debug_to_watchpoint_addr_within_range)
5889 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5890 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5891 (debug_to_terminal_init, debug_to_terminal_inferior)
5892 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5893 (debug_to_terminal_save_ours, debug_to_terminal_info)
5894 (debug_to_load, debug_to_post_startup_inferior)
5895 (debug_to_insert_fork_catchpoint)
5896 (debug_to_remove_fork_catchpoint)
5897 (debug_to_insert_vfork_catchpoint)
5898 (debug_to_remove_vfork_catchpoint)
5899 (debug_to_insert_exec_catchpoint)
5900 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5901 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5902 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5903 (setup_target_debug): Call init_debug_target.
5904 * target.h (TARGET_DEBUG_PRINTER): New macro.
5905 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5906 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5907
2c51604d
GB
59082014-07-24 Gary Benson <gbenson@redhat.com>
5909
5910 * exceptions.h (throw_vfatal): Renamed to...
5911 (throw_vquit): New declaration.
5912 (throw_quit): Likewise.
5913 * exceptions.c (throw_vfatal): Renamed to...
5914 (throw_vquit): New function.
5915 (throw_quit): Likewise.
5916 (throw_error): Call throw_verror rather than throw_it.
5917 * utils.h (vfatal): Removed.
5918 (fatal): Likewise.
5919 * utils.c (vfatal): Removed.
5920 (fatal): Likewise.
5921 (internal_verror): Replaced call to fatal with call to throw_quit.
5922 (quit): Replaced calls to fatal with calls to throw_quit.
5923
34211963
ME
59242014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5925
5926 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5927 target_read_code.
5928
a52b4d3e
ME
59292014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5930
5931 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5932 less than zero in conditional expression.
5933
a8bdc56b
TT
59342014-07-23 Tom Tromey <tromey@redhat.com>
5935
5936 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5937 ($INTRO_PART): Don't match whitespace.
5938 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5939 argument matching.
5940 ($METHOD): Add $METHOD_TRAILER.
5941 (trim): Rewrite.
5942 (scan_target_h): New sub.
5943 Change main loop not to collect state.
5944 * target-delegates.c: Rebuild.
5945
91b52240
GB
59462014-07-23 Gary Benson <gbenson@redhat.com>
5947
5948 * cp-support.c (gdb_demangle): Fix build on systems without
5949 sigaltstack.
5950
45326f6f
JK
59512014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5952
5953 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5954 for reference entry value target data value.
5955
e214cf6c
JK
59562014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5957
5958 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5959 value_available_contents_eq.
5960
bddbbedd
PA
59612014-07-22 Pedro Alves <palves@redhat.com>
5962
5963 * value.c (allocate_optimized_out_value): Don't mark value as
5964 non-lazy.
5965
45c71484
JW
59662014-07-22 Jiong Wang <jiong.wang@arm.com>
5967
5968 * MAINTAINERS (Write After Approval): Update my email address.
5969
9597b22a
DE
59702014-07-20 Doug Evans <dje@google.com>
5971
5972 PR server/17147
5973 * remote.c (putpkt_binary): Add text to error message.
5974
91101fe5
YQ
59752014-07-20 Yao Qi <yao@codesourcery.com>
5976
5977 * eval.c: Remove "Chill" from comments.
5978 * gdbtypes.h: Likewise.
5979 * symtab.h: Likewise.
5980
c9402c95
YQ
59812014-07-20 Yao Qi <yao@codesourcery.com>
5982
5983 * std-operator.def: Update comments to TERNOP_SLICE.
5984
ae8fddda
YQ
59852014-07-20 Yao Qi <yao@codesourcery.com>
5986
5987 * std-operator.def: Remove BINOP_RANGE.
5988 * breakpoint.c (watchpoint_exp_is_const): Update.
5989 * expprint.c (dump_subexp_body_standard): Likewise.
5990 * eval.c (init_array_element): Remove dead code.
5991 (evaluate_subexp_standard): Likewise.
5992
9c816640
YQ
59932014-07-20 Yao Qi <yao@codesourcery.com>
5994
5995 * std-operator.def: Remove BINOP_IN.
5996 * breakpoint.c (watchpoint_exp_is_const): Update.
5997 * eval.c (evaluate_subexp_standard): Likewise.
5998 * expprint.c (dump_subexp_body_standard): Likewise.
5999
164224e9
ME
60002014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6001
6002 * microblaze-tdep.c (microblaze_register_names): Add
6003 the rshr and rslr register names.
6004 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6005 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6006 Use of tdesc_numbered_register. Use of
6007 microblaze_register_g_packet_guesses. Use of
6008 tdesc_use_registers. Use of set_gdbarch_register_type.
6009 (microblaze_register_g_packet_guesses): New.
6010 * microblaze-tdep.h (microblaze_reg_num): Add
6011 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6012 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6013 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6014 * features/microblaze-core.xml: New file.
6015 * features/microblaze-stack-protect.xml: New file.
6016 * features/microblaze-with-stack-protect.c: New file.
6017 * features/microblaze-with-stack-protect.xml: New file.
6018 * features/microblaze.xml: New file.
6019 * features/microblaze.c: New file.
6020 * features/Makefile (microblaze-with-stack-protect): Add
6021 microblaze-with-stack-protect microblaze and microblaze-expedite.
6022 * regformats/microblaze-with-stack-protect.dat: New file.
6023 * regformats/microblaze.dat: New file.
6024 * doc/gdb.texinfo (MicroBlaze Features): Added.
6025
e8b2341c
TT
60262014-07-18 Tom Tromey <tromey@redhat.com>
6027
6028 * exec.c (exec_ops): Now static.
6029 * exec.h (exec_ops): Don't declare.
6030
44e89118
TT
60312014-07-18 Tom Tromey <tromey@redhat.com>
6032
6033 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6034 to find_target_beneath.
6035 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6036 find_target_beneath.
6037 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6038
b0ed115f
TT
60392014-07-18 Tom Tromey <tromey@redhat.com>
6040
6041 PR gdb/17130:
6042 * utils.c (quit): Use target_supports_terminal_ours.
6043 * target.h (target_supports_terminal_ours): Declare.
6044 * target.c (target_supports_delete_record): Don't check
6045 to_delete_record against NULL.
6046 (target_supports_terminal_ours): New function.
6047
e75fdfca
TT
60482014-07-18 Tom Tromey <tromey@redhat.com>
6049
6050 PR gdb/17130:
6051 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6052 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6053 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6054 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6055 * windows-nat.c (windows_xfer_partial): Always delegate.
6056 * record-btrace.c (record_btrace_xfer_partial): Simplify
6057 delegation.
6058 (record_btrace_fetch_registers, record_btrace_store_registers)
6059 (record_btrace_prepare_to_store, record_btrace_resume)
6060 (record_btrace_wait, record_btrace_find_new_threads)
6061 (record_btrace_thread_alive): Likewise.
6062 * procfs.c (procfs_xfer_partial): Always delegate.
6063 * corelow.c (core_xfer_partial): Always delegate.
6064 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6065
83814951
TT
60662014-07-18 Tom Tromey <tromey@redhat.com>
6067
6068 * exec.c (exec_make_note_section): Move earlier.
6069
b8b8facf
DE
60702014-07-17 Doug Evans <dje@google.com>
6071
74b49205 6072 PR gdb/17170
b8b8facf
DE
6073 * maint.c (count_symtabs_and_blocks): Handle NULL
6074 current_program_space.
6075 (report_command_stats): Check global enabled flag in addition to
6076 recorded enabled flag.
6077 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6078
69ff6be5
PA
60792014-07-16 Pedro Alves <palves@redhat.com>
6080
6081 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6082
252db1b5
TT
60832014-07-16 Tom Tromey <tromey@redhat.com>
6084
6085 * target.h (struct target_ops) <to_delete_record>: Reformat
6086 comment.
6087
a432721e
TT
60882014-07-16 Tom Tromey <tromey@redhat.com>
6089
6090 * target-delegates.c: Rebuild.
6091
487d9753
PL
60922014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6093
6094 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6095 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6096 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6097 (avr_pointer_to_address): Likewise.
6098 (avr_address_class_type_flags): New function.
6099 (avr_address_class_type_flags_to_name): Likewise.
6100 (avr_address_class_name_to_type_flags): Likewise.
6101 (avr_gdbarch_init): Set address_class_type_flags,
6102 address_class_type_flags_to_name and
6103 address_class_name_to_type_flags.
6104
57745c90
PA
61052014-07-15 Pedro Alves <palves@redhat.com>
6106
6107 * linux-nat.c (kill_callback): Save errno and work with saved
6108 copy.
6109
2d40be18
SM
61102014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6111
6112 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6113
572f6555
EBM
61142014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6115
6116 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6117 breakpoint support correctly.
6118
cc1c52ad
PA
61192014-07-14 Pedro Alves <palves@redhat.com>
6120
6121 * utils.c (prompt_for_continue): Call target_terminal_ours.
6122
1e973570
PA
61232014-07-14 Pedro Alves <palves@redhat.com>
6124
6125 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6126 catch_errors. Don't re-enable stdin or notify observers where,
6127 and rethrow error.
6128 (fetch_inferior_event_wrapper): Delete.
6129
93d6eb10
PA
61302014-07-14 Pedro Alves <palves@redhat.com>
6131
6132 PR gdb/17072
6133 * top.c: Include "inf-loop.h".
6134 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6135 field.
6136 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6137 was async before.
6138 (gdb_readline_wrapper): Store whether the target is async, and
6139 make it sync.
6140
0017922d
PA
61412014-07-14 Pedro Alves <palves@redhat.com>
6142
6143 PR gdb/17072
6144 * top.c (gdb_readline_wrapper_line): Tweak comment.
6145 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6146 the input handler callback.
6147
94696ad3
PA
61482014-07-14 Pedro Alves <palves@redhat.com>
6149
6150 PR gdb/17072
6151 * main.c: Include event-top.h.
6152 (handle_command_errors): New function.
6153 (catch_command_errors, catch_command_errors_const): Use it.
6154
9d1e69a2
PA
61552014-07-14 Pedro Alves <palves@redhat.com>
6156
6157 * exceptions.c (catch_command_errors, catch_command_errors_const):
6158 Moved to main.c.
6159 * exceptions.h (catch_command_errors_ftype)
6160 (catch_command_errors_const_ftype): Moved to main.c.
6161 (catch_command_errors, catch_command_errors_const): Delete
6162 declarations.
6163 * main.c (catch_command_errors_ftype)
6164 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6165 (catch_command_errors, catch_command_errors_const)): Moved here
6166 from exceptions.c and make static.
6167
feefc97b
PA
61682014-07-14 Pedro Alves <palves@redhat.com>
6169
6170 * exceptions.c (print_any_exception): Delete.
6171 (catch_exceptions_with_msg): Use exception_print instead of
6172 print_any_exception.
6173 (catch_errors): Use exception_fprintf instead of
6174 print_any_exception.
6175 (catch_command_errors, catch_command_errors_const): Use
6176 exception_print instead of print_any_exception.
6177
c933f875
PA
61782014-07-14 Pedro Alves <palves@redhat.com>
6179
6180 * infcall.c (run_inferior_call): Set 'sync_execution' while
6181 running the inferior call.
6182
feb6f816
PA
61832014-07-14 Pedro Alves <palves@redhat.com>
6184
6185 * value.c (value_contents_equal): Delete function.
6186 * value.h (value_contents_equal): Delete declaration.
6187
d98b7a16
TT
61882014-07-14 Tom Tromey <tromey@redhat.com>
6189
6190 PR exp/17106:
6191 * gdbtypes.c (is_dynamic_type_internal): New function, from
6192 is_dynamic_type.
6193 (is_dynamic_type): Rewrite.
6194 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6195 (resolve_dynamic_struct): Likewise.
6196 (resolve_dynamic_type_internal): New function, from
6197 resolve_dynamic_type.
6198 (resolve_dynamic_type): Rewrite.
6199
548740d6
TT
62002014-07-14 Tom Tromey <tromey@redhat.com>
6201
6202 * target.c (target_require_runnable): Also check record_stratum.
6203 Update comment.
6204
808f7ab1
YQ
62052014-07-11 Yao Qi <yao@codesourcery.com>
6206
6207 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6208 thumb_instruction_restores_sp return true.
6209
540314bd
YQ
62102014-07-11 Yao Qi <yao@codesourcery.com>
6211
6212 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6213 (thumb_in_function_epilogue_p): Call
6214 thumb_instruction_restores_sp.
6215
1db01f22
YQ
62162014-07-11 Yao Qi <yao@codesourcery.com>
6217
6218 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6219 'add sp, #imm'.
6220 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6221
3116063b
GB
62222014-07-11 Gary Benson <gbenson@redhat.com>
6223
6224 * amd64-linux-nat.c (gdbcore.h): Remove include.
6225 (regset.h): Likewise.
6226 (nat/linux-btrace.h): Likewise.
6227 (btrace.h): Likewise.
6228 (gdb_assert.h): Likewise.
6229 (string.h): Likewise.
6230 (sys/uio.h): Likewise.
6231 (sys/debugreg.h): Likewise.
6232 (sys/syscall.h): Likewise.
6233 (sys/procfs.h): Likewise.
6234 (sys/user.h): Likewise.
6235 (asm/ptrace.h): Likewise.
6236 (i386-nat.h): Likewise.
6237 * i386-linux-nat.c (i386-nat.h): Likewise.
6238 (regset.h): Likewise.
6239 (target.h): Likewise.
6240 (linux-nat.h): Likewise.
6241 (nat/linux-btrace.h): Likewise.
6242 (btrace.h): Likewise.
6243 (gdb_assert.h): Likewise.
6244 (string.h): Likewise.
6245 (sys/uio.h): Likewise.
6246 (sys/user.h): Likewise.
6247 (sys/procfs.h): Likewise.
6248 (sys/reg.h): Likewise.
6249 (sys/debugreg.h): Likewise.
6250 (ORIG_EAX): Remove definition.
6251
040baaf6
GB
62522014-07-11 Gary Benson <gbenson@redhat.com>
6253
6254 * i386-linux-nat.h: New file.
6255 * x86-linux-nat.h: Likewise.
6256 * x86-linux-nat.c: Likewise.
6257 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6258 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6259 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6260 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6261 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6262 (PTRACE_SETREGSET): Likewise.
6263 (arch_lwp_info): Now in x86-linux-nat.c.
6264 (have_ptrace_getregset): Now in x86-linux-nat.h.
6265 (x86_linux_dr_get): Now in x86-linux-nat.c.
6266 (x86_linux_dr_set): Likewise.
6267 (x86_linux_dr_get_addr): Likewise.
6268 (x86_linux_dr_get_control): Likewise.
6269 (x86_linux_dr_get_status): Likewise.
6270 (update_debug_registers_callback): Likewise.
6271 (x86_linux_dr_set_control): Likewise.
6272 (x86_linux_dr_set_addr): Likewise.
6273 (x86_linux_prepare_to_resume): Likewise.
6274 (x86_linux_new_thread): Likewise.
6275 (x86_linux_new_fork): Likewise.
6276 (x86_linux_get_thread_area): Likewise.
6277 (super_post_startup_inferior): Likewise.
6278 (x86_linux_child_post_startup_inferior): Likewise.
6279 (AMD64_LINUX_USER64_CS): Likewise.
6280 (AMD64_LINUX_X32_DS): Likewise.
6281 (x86_linux_read_description): Likewise.
6282 (x86_linux_enable_btrace): Likewise.
6283 (x86_linux_disable_btrace): Likewise.
6284 (x86_linux_teardown_btrace): Likewise.
6285 (x86_linux_read_btrace): Likewise.
6286 (x86_linux_create_target): Likewise.
6287 (x86_linux_add_target): Likewise.
6288 * i386-linux-nat.c (x86-linux-nat.h): New include.
6289 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6290 (PTRACE_SETREGSET): Likewise.
6291 (arch_lwp_info): Now in x86-linux-nat.c.
6292 (have_ptrace_getregset): Now in x86-linux-nat.h.
6293 (x86_linux_dr_get): Now in x86-linux-nat.c.
6294 (x86_linux_dr_set): Likewise.
6295 (x86_linux_dr_get_addr): Likewise.
6296 (x86_linux_dr_get_control): Likewise.
6297 (x86_linux_dr_get_status): Likewise.
6298 (update_debug_registers_callback): Likewise.
6299 (x86_linux_dr_set_control): Likewise.
6300 (x86_linux_dr_set_addr): Likewise.
6301 (x86_linux_prepare_to_resume): Likewise.
6302 (x86_linux_new_thread): Likewise.
6303 (x86_linux_new_fork): Likewise.
6304 (x86_linux_get_thread_area): Likewise.
6305 (super_post_startup_inferior): Likewise.
6306 (x86_linux_child_post_startup_inferior): Likewise.
6307 (AMD64_LINUX_USER64_CS): Likewise.
6308 (AMD64_LINUX_X32_DS): Likewise.
6309 (x86_linux_read_description): Likewise.
6310 (x86_linux_enable_btrace): Likewise.
6311 (x86_linux_disable_btrace): Likewise.
6312 (x86_linux_teardown_btrace): Likewise.
6313 (x86_linux_read_btrace): Likewise.
6314 (x86_linux_create_target): Likewise.
6315 (x86_linux_add_target): Likewise.
6316
1aa7e42c
GB
63172014-07-11 Gary Benson <gbenson@redhat.com>
6318
6319 * amd64-linux-nat.c: Comment and whitespace changes.
6320 * i386-linux-nat.c: Comment and whitespace changes.
6321
c1e246a0
GB
63222014-07-11 Gary Benson <gbenson@redhat.com>
6323
6324 * amd64-linux-nat.c (x86_linux_create_target): New function.
6325 (x86_linux_add_target): Likewise.
6326 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6327 * i386-linux-nat.c (x86_linux_create_target): New function.
6328 (x86_linux_add_target): Likewise.
6329 (_initialize_i386_linux_nat): Delegate to the above new functions.
6330
8c420b8d
GB
63312014-07-11 Gary Benson <gbenson@redhat.com>
6332
6333 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6334 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6335 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6336 (ps_get_thread_area): Delegate to the above.
6337
cb1da100
GB
63382014-07-11 Gary Benson <gbenson@redhat.com>
6339
6340 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6341 x86_linux_read_description. All uses updated. amd64-specific
6342 code conditionalized. Conditionalized i386-specific code added.
6343 Redundant cast removed.
6344 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6345 x86_linux_read_description. All uses updated. i386-specific
6346 code conditionalized. Conditionalized amd64-specific code added.
6347 One sizeof replaced with the actual type it is describing.
6348
2acf3cd0
GB
63492014-07-11 Gary Benson <gbenson@redhat.com>
6350
6351 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6352 x86_linux_dr_get. All uses updated.
6353 (amd64_linux_dr_set): Renamed to
6354 x86_linux_dr_set. All uses updated.
6355 (amd64_linux_dr_get_addr): Renamed to
6356 x86_linux_dr_get_addr. All uses updated.
6357 (amd64_linux_dr_get_control): Renamed to
6358 x86_linux_dr_get_control. All uses updated.
6359 (amd64_linux_dr_get_status): Renamed to
6360 x86_linux_dr_get_status. All uses updated.
6361 (amd64_linux_dr_set_control): Renamed to
6362 x86_linux_dr_set_control. All uses updated.
6363 (amd64_linux_dr_set_addr): Renamed to
6364 x86_linux_dr_set_addr. All uses updated.
6365 (amd64_linux_prepare_to_resume): Renamed to
6366 x86_linux_prepare_to_resume. All uses updated.
6367 (amd64_linux_new_thread): Renamed to
6368 x86_linux_new_thread. All uses updated.
6369 (amd64_linux_new_fork): Renamed to
6370 x86_linux_new_fork. All uses updated.
6371 (amd64_linux_child_post_startup_inferior): Renamed to
6372 x86_linux_child_post_startup_inferior. All uses updated.
6373 (amd64_linux_enable_btrace): Renamed to
6374 x86_linux_enable_btrace. All uses updated.
6375 (amd64_linux_disable_btrace): Renamed to
6376 x86_linux_disable_btrace. All uses updated.
6377 (amd64_linux_teardown_btrace): Renamed to
6378 x86_linux_teardown_btrace. All uses updated.
6379 (amd64_linux_read_btrace): Renamed to
6380 x86_linux_read_btrace. All uses updated.
6381 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6382 x86_linux_dr_get. All uses updated.
6383 (i386_linux_dr_set): Renamed to
6384 x86_linux_dr_set. All uses updated.
6385 (i386_linux_dr_get_addr): Renamed to
6386 x86_linux_dr_get_addr. All uses updated.
6387 (i386_linux_dr_get_control): Renamed to
6388 x86_linux_dr_get_control. All uses updated.
6389 (i386_linux_dr_get_status): Renamed to
6390 x86_linux_dr_get_status. All uses updated.
6391 (i386_linux_dr_set_control): Renamed to
6392 x86_linux_dr_set_control. All uses updated.
6393 (i386_linux_dr_set_addr): Renamed to
6394 x86_linux_dr_set_addr. All uses updated.
6395 (i386_linux_prepare_to_resume): Renamed to
6396 x86_linux_prepare_to_resume. All uses updated.
6397 (i386_linux_new_thread): Renamed to
6398 x86_linux_new_thread. All uses updated.
6399 (i386_linux_new_fork): Renamed to
6400 x86_linux_new_fork. All uses updated.
6401 (i386_linux_child_post_startup_inferior): Renamed to
6402 x86_linux_child_post_startup_inferior. All uses updated.
6403 (i386_linux_enable_btrace): Renamed to
6404 x86_linux_enable_btrace. All uses updated.
6405 (i386_linux_disable_btrace): Renamed to
6406 x86_linux_disable_btrace. All uses updated.
6407 (i386_linux_teardown_btrace): Renamed to
6408 x86_linux_teardown_btrace. All uses updated.
6409 (i386_linux_read_btrace): Renamed to
6410 x86_linux_read_btrace. All uses updated.
6411
b9c1d481
AS
64122014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6413
6414 * remote.c (extended_remote_post_attach): New function.
6415 (init_extended_remote_ops): Install it as to_post_attach method.
6416
7180e04a
PA
64172014-07-09 Pedro Alves <palves@redhat.com>
6418
6419 * infcmd.c (attach_command_post_wait): Don't call
6420 target_terminal_inferior here.
6421 (attach_command): Call it here instead.
6422
9a9a7608
AB
64232014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6426 field.
6427 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6428 from varobj.c, with additional checks.
6429 (c_varobj_ops): Fill in is_path_expr_parent field.
6430 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6431 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6432 field.
6433 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6434 ops method.
6435 (varobj_default_is_path_expr_parent): New function.
6436 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6437 (varobj_default_is_path_expr_parent): Declare new function.
6438
1f267ae3
MM
64392014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6440
6441 * infcmd.c (finish_backward): Turn internal error into normal error.
6442
b2ee242b
PA
64432014-07-07 Pedro Alves <palves@redhat.com>
6444
8a869bca 6445 PR gdb/17096
b2ee242b
PA
6446 * remote.c (async_handle_remote_sigint)
6447 (async_handle_remote_sigint_twice): Call
6448 gdb_call_async_signal_handler instead of
6449 mark_async_signal_handler.
6450
38e229b2
TT
64512014-07-07 Tom Tromey <tromey@redhat.com>
6452
6453 * target-delegates.c: Rebuild.
6454 * target.c (target_info_record): Remove.
6455 * record.c (info_record_command): Unconditionally call
6456 to_info_record.
6457 * target.h (struct target_ops) <to_info_record>: Use
6458 TARGET_DEFAULT_IGNORE.
6459 (target_info_record): Remove.
6460
f0f9ff95
TT
64612014-07-07 Tom Tromey <tromey@redhat.com>
6462
6463 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6464 TARGET_DEFAULT_NORETURN.
6465 * target.c (generic_tls_error): New function.
6466 (target_translate_tls_address): Don't search target stack.
6467 * target-delegates.c: Rebuild.
6468 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6469 stack.
6470 * linux-thread-db.c (thread_db_get_thread_local_address):
6471 Unconditionally call beneath target.
6472
4a5be5ee
MK
64732014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6474
6475 * cli/cli-logging.c (pop_output_files): Assign targerr to
6476 gdb_stdtargerr.
6477
92c3b204
AB
64782014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * MAINTAINERS (Write After Approval): Update my email address.
6481
9b11e3a7
GB
64822014-07-02 Gary Benson <gbenson@redhat.com>
6483
6484 * proc-service.c (ps_xfer_memory): Update comment.
6485 (ps_pstop): Remove unused function.
6486 (ps_pcontinue): Likewise.
6487 (ps_lstop): Likewise.
6488 (ps_lcontinue): Likewise.
6489 (ps_lgetxregsize): Likewise.
6490 (ps_lgetxregs): Likewise.
6491 (ps_lsetxregs): Likewise.
6492 (ps_plog): Likewise.
6493 (ps_ptread): Likewise.
6494 (ps_ptwrite): Likewise.
6495
cf363f18
MW
64962014-07-01 Mark Wielaard <mjw@redhat.com>
6497
6498 * dwarf2read.c (add_array_cv_type): New function.
6499 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6500 (read_tag_volatile_type): Likewise.
6501
82ae6c8d
TT
65022014-07-01 Tom Tromey <tromey@redhat.com>
6503
6504 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6505 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6506 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6507 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6508 * command.h (cmd_cfunc_ftype): Move earlier.
6509 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6510 (add_com, add_info): Use cmd_cfunc_ftype.
6511
96142726
TT
65122014-06-30 Tom Tromey <tromey@redhat.com>
6513
6514 * symtab.c (operator_chars): Make parameters and return type
6515 const.
6516 (file_matches): Make "files" const.
6517 (struct search_symbols_data) <files>: Now const.
6518 (search_symbols): Make "regexp" and "files" parameters const.
6519 Update.
6520 (symtab_symbol_info): Remove cast.
6521 (rbreak_command): Update.
6522 * symtab.h (search_symbols): Update.
6523
b67a2c6f
YQ
65242014-06-27 Yao Qi <yao@codesourcery.com>
6525
6526 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6527 Change parameter type to 'struct thread_info *'. Caller
6528 updated.
6529 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6530 Update declaration.
6531 * dummy-frame.c (struct dummy_frame_id): New.
6532 (dummy_frame_id_eq): New function.
6533 (struct dummy_frame) <id>: Change its type to 'struct
6534 dummy_frame_id'.
6535 (dummy_frame_push): Add parameter ptid and save it in
6536 dummy_frame_id.
6537 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6538 inferior_ptid.
6539 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6540 to inferior_ptid.
6541 (lookup_dummy_frame): Change parameter type to 'struct
6542 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6543 instead of frame_id_eq.
6544 (dummy_frame_pop): Add parameter ptid. Callers updated.
6545 Update comments. Compose dummy_frame_id and pass it to
6546 lookup_dummy_frame.
6547 (dummy_frame_discard): Add parameter ptid.
6548 (dummy_frame_sniffer): Compose dummy_frame_id and call
6549 dummy_frame_id_eq instead of frame_id_eq.
6550 (fprint_dummy_frames): Print ptid.
6551 * dummy-frame.h: Remove comments.
6552 (dummy_frame_push): Add ptid in declaration.
6553 (dummy_frame_pop, dummy_frame_discard): Likewise.
6554
5b10184c
TT
65552014-06-26 Tom Tromey <tromey@redhat.com>
6556
6557 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6558 * command.h (error_no_arg): Update.
6559
06900326
TT
65602014-06-26 Tom Tromey <tromey@redhat.com>
6561
6562 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6563 (do_show_command): Make "arg" const.
6564 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6565
c2bcbb1d
TT
65662014-06-26 Tom Tromey <tromey@redhat.com>
6567
6568 * record-full.c (record_full_get_bookmark): Make "args" const.
6569 (record_full_goto_bookmark): Make "raw_bookmark" const.
6570 * record.c (record_goto): New function.
6571 (cmd_record_goto): Use it. Now static.
6572 * record.h (record_goto): Declare.
6573 (cmd_record_goto): Remove declaration.
6574 * target-delegates.c: Rebuild.
6575 * target.h (struct target_ops) <to_get_bookmark,
6576 to_goto_bookmark>: Make parameter const.
6577
9cbe5fff
TT
65782014-06-26 Tom Tromey <tromey@redhat.com>
6579
6580 * defs.h (generic_load): Update.
6581 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6582 * monitor.c (monitor_load): Make "args" const.
6583 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6584 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6585 const.
6586 (mips_load): Make "file" const.
6587 * remote-sim.c (gdbsim_load): Make "args" const.
6588 * remote.c (remote_load): Make "name" const.
6589 * symfile.c (generic_load): Make "args" const.
6590 * target-delegates.c: Rebuild.
6591 * target.c (target_load): Make "arg" const.
6592 (debug_to_load): Make "args" const.
6593 * target.h (struct target_ops) <to_load>: Make parameter const.
6594 (target_load): Update.
6595
34a68019
TT
65962014-06-26 Tom Tromey <tromey@redhat.com>
6597
6598 PR symtab/16902:
6599 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6600 (dwarf2_physname, read_partial_die)
6601 (guess_partial_die_structure_name, fixup_partial_die)
6602 (guess_full_die_structure_name, anonymous_struct_prefix)
6603 (dwarf2_name): Use per-BFD obstack.
6604
efc889c1
YQ
66052014-06-26 Yao Qi <yao@codesourcery.com>
6606
6607 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6608 dummyframe and this_id into inner block below.
6609
4395285e
YQ
66102014-06-26 Yao Qi <yao@codesourcery.com>
6611
6612 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6613 with "signal_pass[0]" in the initialization of signal_pass.
6614
aef92902
MM
66152014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6616
6617 * record-btrace.c (record_btrace_generating_corefile)
6618 (record_btrace_prepare_to_generate_core)
6619 (record_btrace_done_generating_core): New.
6620 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6621 (record_btrace_store_registers, record_btrace_prepare_to_store):
6622 Forward request when generating a core file.
6623 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6624 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6625 to_done_generating_core.
6626
5fff78c4
MM
66272014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6628
6629 * target.h (target_ops) <to_prepare_to_generate_core>
6630 <to_done_generating_core>: New.
6631 (target_prepare_to_generate_core, target_done_generating_core): New.
6632 * target.c (target_prepare_to_generate_core)
6633 (target_done_generating_core): New.
6634 * target-delegates.c: Regenerate.
6635 * gcore.c: (write_gcore_file): Rename to ...
6636 (write_gcore_file_1): ...this.
6637 (write_gcore_file): Call target_prepare_to_generate_core
6638 and target_done_generating_core.
6639
1d1f1ccb
MM
66402014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6641
6642 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6643 * gcore.c (write_gcore_file): Free memory returned from
6644 make_corefile_notes.
6645 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6646 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6647
3343ef86
YQ
66482014-06-24 Yao Qi <yao@codesourcery.com>
6649
6650 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6651 (arm_linux_init_abi): Set skip_trampoline_code with
6652 gdbarch_skip_trampoline_code instead of
6653 find_solib_trampoline_target.
6654
18d18ac8
YQ
66552014-06-24 Yao Qi <yao@codesourcery.com>
6656
6657 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6658 arm_skip_bx_reg returns non-zero.
6659
80d8d390
YQ
66602014-06-24 Yao Qi <yao@codesourcery.com>
6661
6662 * arm-tdep.c (arm_skip_bx_reg): New function.
6663 (arm_skip_stub): Call arm_skip_bx_reg.
6664
6a18a01c
DB
66652014-06-23 Don Breazeal <donb@codesourcery.com>
6666
6667 * MAINTAINERS: Add myself as write-after-approval maintainer.
6668
8e9db26e
PA
66692014-06-23 Pedro Alves <palves@redhat.com>
6670
6671 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6672 DR_CONTROL before setting DR0..DR3.
6673 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6674 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6675 bits of DR_CONTROL related to the debug register slot being
6676 disabled. If all slots are vacant, clear local slowdown as well,
6677 and assert DR_CONTROL is 0.
6678
70afc5b7
SC
66792014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6680
6681 * python/lib/gdb/command/xmethods.py
6682 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6683 current progspace only if the string "progspace" matches LOCUS_RE.
6684
840ed64d
JK
66852014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6686
6687 Fix --with-system-readline with readline-6.3 patch 5.
6688 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6689 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6690 types.
6691
26f2dc30
TT
66922014-06-20 Tom Tromey <tromey@redhat.com>
6693
6694 * dwarf2read.c (dw2_get_real_path): Use correct type in
6695 OBSTACK_CALLOC.
6696 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6697
125f8a3d
GB
66982014-06-20 Gary Benson <gbenson@redhat.com>
6699
6700 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6701 * common/glibc_thread_db.h: Likewise.
6702 * common/i386-cpuid.h: Likewise.
6703 * common/i386-gcc-cpuid.h: Likewise.
6704 * common/linux-btrace.h: Likewise.
6705 * common/linux-osdata.h: Likewise.
6706 * common/linux-procfs.h: Likewise.
6707 * common/linux-ptrace.h: Likewise.
6708 * common/mips-linux-watch.h: Likewise.
6709 * common/linux-btrace.c: Moved to nat.
6710 * common/linux-osdata.c: Likewise.
6711 * common/linux-procfs.c: Likewise.
6712 * common/linux-ptrace.c: Likewise.
6713 * common/mips-linux-watch.c: Likewise.
6714 * nat/gdb_thread_db.h: Moved from common.
6715 * nat/glibc_thread_db.h: Likewise.
6716 * nat/i386-cpuid.h: Likewise.
6717 * nat/i386-gcc-cpuid.h: Likewise.
6718 * nat/linux-btrace.c: Likewise.
6719 * nat/linux-btrace.h: Likewise.
6720 * nat/linux-osdata.c: Likewise.
6721 * nat/linux-osdata.h: Likewise.
6722 * nat/linux-procfs.c: Likewise.
6723 * nat/linux-procfs.h: Likewise.
6724 * nat/linux-ptrace.c: Likewise.
6725 * nat/linux-ptrace.h: Likewise.
6726 * nat/mips-linux-watch.c: Likewise.
6727 * nat/mips-linux-watch.h: Likewise.
6728 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6729 (object file files): Reordered.
6730 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6731 of glibc_thread_db.h.
6732
42995dbd
GB
67332014-06-20 Gary Benson <gbenson@redhat.com>
6734
6735 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6736 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6737 (i386_dr_low): Likewise.
6738 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6739 (i386_dr_low_set_addr): Likewise.
6740 (i386_dr_low_get_addr): Likewise.
6741 (i386_dr_low_can_set_control): Likewise.
6742 (i386_dr_low_set_control): Likewise.
6743 (i386_dr_low_get_control): Likewise.
6744 (i386_dr_low_get_status): Likewise.
6745 (i386_get_debug_register_length): Likewise.
6746 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6747 (i386_dr_low): Likewise.
6748 * nat/i386-dregs.c (i386-low.h): Remove include.
6749 (i386-nat.h): Likewise.
6750 (nat/i386-dregs.h): New include.
6751 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6752 (i386_dr_low_set_addr): Likewise.
6753 (i386_dr_low_get_addr): Likewise.
6754 (i386_dr_low_can_set_control): Likewise.
6755 (i386_dr_low_set_control): Likewise.
6756 (i386_dr_low_get_control): Likewise.
6757 (i386_dr_low_get_status): Likewise.
6758 (i386_get_debug_register_length): Likewise.
6759 (debug_hw_points): Likewise.
6760
3ed9baed
IB
67612014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6762
6763 * Makefile.in (SFILES): Add d-exp.y.
6764 (YYFILES): Add d-exp.c.
6765 (YYOBJ): Add d-exp.o.
6766 (local-maintainer-clean): Delete d-exp.c.
6767 * d-exp.y: New file.
6768 * d-lang.h (d_parse): New declaration.
6769 (d_error): New declaration.
6770 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6771 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6772 PREC_ORDER operators.
6773 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6774
78c164b0
YQ
67752014-06-19 Yao Qi <yao@codesourcery.com>
6776
6777 * gdbthread.h (any_running): Remove the declaration.
6778 * thread.c (any_running): Remove.
6779
f6e29b6e
YQ
67802014-06-19 Yao Qi <yao@codesourcery.com>
6781
6782 * gdbthread.h (struct thread_info) <state>: Change its type to
6783 'enum thread_state'. Update comments.
6784
034f788c
PA
67852014-06-19 Pedro Alves <palves@redhat.com>
6786
6787 * gdbthread.h (ALL_THREADS): Delete.
6788 (ALL_NON_EXITED_THREADS): New macro.
6789 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6790 instead of ALL_THREADS.
6791 * infrun.c (find_thread_needs_step_over)
6792 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6793 instead of ALL_THREADS.
6794 * record-btrace.c (record_btrace_open)
6795 (record_btrace_stop_recording, record_btrace_close)
6796 (record_btrace_is_replaying, record_btrace_resume)
6797 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6798 * remote.c (append_pending_thread_resumptions): Likewise.
6799 * thread.c (thread_apply_all_command): Likewise.
6800
46e33252
GB
68012014-06-19 Gary Benson <gbenson@redhat.com>
6802
6803 * i386-nat.c (i386_stopped_by_watchpoint):
6804 Use i386_dr_stopped_by_watchpoint.
6805 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6806 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6807
3a8ee006
GB
68082014-06-19 Gary Benson <gbenson@redhat.com>
6809
6810 * nat/i386-dregs.c: New file.
6811 * Makefile.in (i386-dregs.o): New rule.
6812 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6813 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6814 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6815 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6816 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6817 * config/i386/go32.mh (NATDEPFILES): Likewise.
6818 * config/i386/linux.mh (NATDEPFILES): Likewise.
6819 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6820 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6821 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6822 * i386-nat.h (debug_hw_points): New declaration.
6823 * i386-nat.c (breakpoint.h): Remove include.
6824 (command.h): Likewise.
6825 (target.h): Likewise.
6826 (gdb_assert.h): Likewise.
6827 (debug_hw_points): Made nonstatic.
6828 (debug_printf): Now in i386-dregs.c.
6829 (TARGET_HAS_DR_LEN_8): Likewise.
6830 (DR_CONTROL_SHIFT): Likewise.
6831 (DR_CONTROL_SIZE): Likewise.
6832 (DR_RW_EXECUTE): Likewise.
6833 (DR_RW_WRITE): Likewise.
6834 (DR_RW_READ): Likewise.
6835 (DR_RW_IORW): Likewise.
6836 (DR_LEN_1): Likewise.
6837 (DR_LEN_2): Likewise.
6838 (DR_LEN_4): Likewise.
6839 (DR_LEN_8): Likewise.
6840 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6841 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6842 (DR_ENABLE_SIZE): Likewise.
6843 (DR_LOCAL_SLOWDOWN): Likewise.
6844 (DR_GLOBAL_SLOWDOWN): Likewise.
6845 (DR_CONTROL_RESERVED): Likewise.
6846 (I386_DR_CONTROL_MASK): Likewise.
6847 (I386_DR_VACANT): Likewise.
6848 (I386_DR_LOCAL_ENABLE): Likewise.
6849 (I386_DR_GLOBAL_ENABLE): Likewise.
6850 (I386_DR_DISABLE): Likewise.
6851 (I386_DR_SET_RW_LEN): Likewise.
6852 (I386_DR_GET_RW_LEN): Likewise.
6853 (I386_DR_WATCH_HIT): Likewise.
6854 (i386_wp_op_t): Likewise.
6855 (i386_show_dr): Likewise.
6856 (i386_length_and_rw_bits): Likewise.
6857 (i386_insert_aligned_watchpoint): Likewise.
6858 (i386_remove_aligned_watchpoint): Likewise.
6859 (i386_handle_nonaligned_watchpoint): Likewise.
6860 (i386_update_inferior_debug_regs): Likewise.
6861 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6862 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6863 (i386_region_ok_for_watchpoint):
6864 Use i386_dr_region_ok_for_watchpoint.
6865 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6866
322a8e06
GB
68672014-06-19 Gary Benson <gbenson@redhat.com>
6868
6869 * i386-nat.c (i386_insert_hw_breakpoint): Use
6870 i386_insert_watchpoint.
6871 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6872
8f26655c
GB
68732014-06-19 Gary Benson <gbenson@redhat.com>
6874
6875 * i386-nat.c (i386_dr_show): Renamed to
6876 i386_show_dr and made static. All uses updated.
6877 (i386_dr_length_and_rw_bits): Renamed to
6878 i386_length_and_rw_bits and made static.
6879 All uses updated.
6880 (i386_dr_insert_aligned_watchpoint): Renamed to
6881 i386_insert_aligned_watchpoint and made static.
6882 All uses updated.
6883 (i386_dr_remove_aligned_watchpoint): Renamed to
6884 i386_remove_aligned_watchpoint and made static.
6885 All uses updated.
6886 (i386_dr_update_inferior_debug_regs): Renamed to
6887 i386_update_inferior_debug_regs and made static.
6888 All uses updated.
6889 * nat/i386-dregs.h (i386_dr_show): Removed.
6890 (i386_dr_length_and_rw_bits): Likewise.
6891 (i386_dr_insert_aligned_watchpoint): Likewise.
6892 (i386_dr_remove_aligned_watchpoint): Likewise.
6893 (i386_dr_update_inferior_debug_regs): Likewise.
6894
992c7d70
GB
68952014-06-19 Gary Benson <gbenson@redhat.com>
6896
6897 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6898 * configure: Regenerate.
6899 * config.in: Likewise.
6900 * main.c (signal.h): New include.
6901 (setup_alternate_signal_stack): New function.
6902 (captured_main): Call the above.
6903 * cp-support.c (signal.h): New include.
6904 (catch_demangler_crashes): New flag.
6905 (SIGJMP_BUF): New define.
6906 (SIGSETJMP): Likewise.
6907 (SIGLONGJMP): Likewise.
6908 (gdb_demangle_jmp_buf): New static global.
6909 (gdb_demangle_attempt_core_dump): Likewise.
6910 (gdb_demangle_signal_handler): New function.
6911 (gdb_demangle): If catch_demangler_crashes is set, install the
6912 above signal handler before calling bfd_demangle, and restore
6913 the original signal handler afterwards. Display the offending
6914 symbol and call demangler_warning the first time a segmentation
6915 fault is caught.
6916 (_initialize_cp_support): New maint set/show command.
6917
eae7090b
GB
69182014-06-19 Gary Benson <gbenson@redhat.com>
6919
6920 * utils.h (resource_limit_kind): New enum.
6921 (can_dump_core): New declaration.
6922 (warn_cant_dump_core): Likewise.
6923 (dump_core): Likewise.
6924 * utils.c (dump_core): Made nonstatic. Added new
6925 parameter "limit_kind".
6926 (can_dump_core): Made nonstatic. Moved printing code to...
6927 (warn_cant_dump_core): New function.
6928 (can_dump_core_warn): Likewise.
6929 (internal_vproblem): Replace calls to can_dump_core with
6930 calls to can_dump_core_warn. Supply new argument to each.
6931
57fcfb1b
GB
69322014-06-19 Gary Benson <gbenson@redhat.com>
6933
6934 * utils.h (demangler_vwarning): New declaration.
6935 (demangler_warning): Likewise.
6936 * utils.c (struct internal_problem)
6937 <user_settable_should_quit>: New field.
6938 <user_settable_should_dump_core>: Likewise
6939 (internal_error_problem): Add values for above new fields.
6940 (internal_warning_problem): Likewise.
6941 (demangler_warning_problem): New static global.
6942 (demangler_vwarning): New function.
6943 (demangler_warning): Likewise.
6944 (add_internal_problem_command): Selectively add commands.
6945 (_initialize_utils): New internal problem command.
6946 * maint.c (maintenance_demangler_warning): New function.
6947 (_initialize_maint_cmds): New command.
6948
17a40b44
TT
69492014-06-18 Tom Tromey <tromey@redhat.com>
6950
6951 * f-valprint.c (info_common_command_for_block): Update.
6952 * symtab.h (struct general_symbol_info) <common_block>: Now
6953 const.
6954
346d1dfe
TT
69552014-06-18 Tom Tromey <tromey@redhat.com>
6956
6957 * symtab.h (struct symtab) <blockvector>: Now const.
6958 * ada-lang.c (ada_add_global_exceptions): Update.
6959 * buildsym.c (augment_type_symtab): Update.
6960 * dwarf2read.c (dw2_lookup_symbol): Update.
6961 * jit.c (finalize_symtab): Update.
6962 * jv-lang.c (add_class_symtab_symbol): Update.
6963 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6964 Update.
6965 * objfiles.c (objfile_relocate1): Update.
6966 * psymtab.c (lookup_symbol_aux_psymtabs)
6967 (maintenance_check_psymtabs): Update.
6968 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6969 Update.
6970 * spu-tdep.c (spu_catch_start): Update.
6971 * symmisc.c (dump_symtab_1): Update.
6972 * symtab.c (lookup_global_symbol_from_objfile)
6973 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6974 (basic_lookup_transparent_type_quick)
6975 (basic_lookup_transparent_type, find_pc_sect_symtab)
6976 (find_pc_sect_line, search_symbols): Update.
6977 * block.c (find_block_in_blockvector): Make "bl" const.
6978 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6979 const.
6980 (blockvector_contains_pc): Make "bv" const.
6981 (block_for_pc_sect): Update.
6982 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6983 (blockvector_contains_pc): Update.
6984 * breakpoint.c (resolve_sal_pc): Update.
6985 * inline-frame.c (block_starting_point_at): Update.
6986
1834676b
TT
69872014-06-18 Tom Tromey <tromey@redhat.com>
6988
6989 * completer.c (complete_line): Make "line_buffer" const.
6990 * completer.h (complete_line): Update.
6991
ac1a991b
TT
69922014-06-18 Tom Tromey <tromey@redhat.com>
6993
6994 * symtab.c (add_macro_name): Remove unneeded cast.
6995
5bc98e52
TT
69962014-06-18 Tom Tromey <tromey@redhat.com>
6997
6998 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6999 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7000
8236def8
TT
70012014-06-18 Tom Tromey <tromey@redhat.com>
7002
7003 * probe.c (info_probes_for_ops): Make "arg" const.
7004 * probe.h (info_probes_for_ops): Update.
7005
3977b71f
TT
70062014-06-18 Tom Tromey <tromey@redhat.com>
7007
7008 * varobj.c (varobj_create): Update.
7009 * valops.c (value_of_this): Update.
7010 * tracepoint.c (add_local_symbols, scope_info): Update.
7011 * symtab.h (struct general_symbol_info) <block>: Now const.
7012 * symtab.c (skip_prologue_sal)
7013 (default_make_symbol_completion_list_break_on)
7014 (skip_prologue_using_sal): Update.
7015 * stack.h (iterate_over_block_locals)
7016 (iterate_over_block_local_vars): Update.
7017 * stack.c (print_frame_args): Update.
7018 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7019 parameter const.
7020 (get_selected_block): Make return type const.
7021 * python/py-frame.c (frapy_block): Update.
7022 * python/py-block.c (gdbpy_block_for_pc): Update.
7023 * p-exp.y (%union) <bval>: Now const.
7024 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7025 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7026 * m2-exp.y (%union) <bval>: Now const.
7027 * linespec.c (get_current_search_block): Make return type const.
7028 (create_sals_line_offset, find_label_symbols): Update.
7029 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7030 Update.
7031 (block_starting_point_at): Make "block" const.
7032 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7033 (check_exception_resume): Update.
7034 * guile/scm-frame.c (gdbscm_frame_block): Update.
7035 * guile/scm-block.c (gdbscm_lookup_block): Update.
7036 * frame.h (get_frame_block): Update.
7037 (get_selected_block): Make return type const.
7038 * frame.c (frame_id_inner): Update.
7039 * f-valprint.c (info_common_command_for_block)
7040 (info_common_command): Update.
7041 * dwarf2loc.c (dwarf2_find_location_expression)
7042 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7043 (locexpr_describe_location_piece): Update.
7044 * c-exp.y (%union) <bval>: Now const.
7045 * breakpoint.c (resolve_sal_pc): Update.
7046 * blockframe.c (get_frame_block):Make return type const.
7047 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7048 (block_innermost_frame): Update.
7049 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7050 (block_for_pc, block_for_pc_sect): Update.
7051 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7052 'pblock' const.
7053 (block_for_pc_sect, block_for_pc): Make return type const.
7054 * ax-gdb.c (gen_expr): Update.
7055 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7056 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7057 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7058 (ada_read_var_value): Update.
7059 * ada-exp.y (struct name_info) <block>: Now const.
7060 (%union): Likewise.
7061 (block_lookup): Constify.
7062
b9228891
GB
70632014-06-18 Gary Benson <gbenson@redhat.com>
7064
7065 * nat/i386-dregs.h: New file.
7066 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7067 * i386-nat.h (i386-dregs.h): New include.
7068 (DR_FIRSTADDR): Now in i386-dregs.h.
7069 (DR_LASTADDR): Likewise.
7070 (DR_NADDR): Likewise.
7071 (DR_STATUS): Likewise.
7072 (DR_CONTROL): Likewise.
7073 (i386_debug_reg_state): Likewise.
7074 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7075
a1aa2221
LM
70762014-06-18 Don Breazeal <donb@codesourcery.com>
7077
7078 * breakpoint.c (set_longjmp_breakpoint): Call
7079 momentary_breakpoint_from_master with additional argument.
7080 (set_longjmp_breakpoint_for_call_dummy): Call
7081 momentary_breakpoint_from_master with additional argument.
7082 (set_std_terminate_breakpoint): Call
7083 momentary_breakpoint_from_master with additional argument.
7084 (momentary_breakpoint_from_master): Add argument to function
7085 definition and use it to initialize structure member flag.
74228e77 7086 (clone_momentary_breakpoint): Call
a1aa2221
LM
7087 momentary_breakpoint_from_master with additional argument.
7088 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7089 member flags set in momentary_breakpoint_from_master.
7090
4be83cc2
GB
70912014-06-18 Gary Benson <gbenson@redhat.com>
7092
7093 * i386-nat.c (i386_show_dr): Renamed to
7094 i386_dr_show and made nonstatic. All uses updated.
7095 (i386_length_and_rw_bits): Renamed to
7096 i386_dr_length_and_rw_bits and made nonstatic.
7097 All uses updated.
7098 (i386_insert_aligned_watchpoint): Renamed to
7099 i386_dr_insert_aligned_watchpoint and made nonstatic.
7100 All uses updated.
7101 (i386_remove_aligned_watchpoint): Renamed to
7102 i386_dr_remove_aligned_watchpoint and made nonstatic.
7103 All uses updated.
7104 (i386_update_inferior_debug_regs): Renamed to
7105 i386_dr_update_inferior_debug_regs and made nonstatic.
7106 All uses updated.
7107
131aa0d4
GB
71082014-06-18 Gary Benson <gbenson@redhat.com>
7109
7110 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7111 (i386_dr_low_can_set_control): Likewise.
7112 (i386_dr_low_set_addr): Likewise.
7113 (i386_dr_low_set_control): Likewise.
7114 (i386_dr_low_get_addr): Likewise.
7115 (i386_dr_low_get_status): Likewise.
7116 (i386_dr_low_get_control): Likewise.
7117 (i386_insert_aligned_watchpoint): Use new macros.
7118 (i386_update_inferior_debug_regs): Likewise.
7119 (i386_stopped_data_address): Likewise.
7120
d9305f7f
GB
71212014-06-18 Gary Benson <gbenson@redhat.com>
7122
7123 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7124 New parameter. All uses updated.
7125
ea008da4
GB
71262014-06-18 Gary Benson <gbenson@redhat.com>
7127
7128 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7129 All uses updated.
7130
1b6d4134
GB
71312014-06-18 Gary Benson <gbenson@redhat.com>
7132
7133 * i386-nat.c (debug_printf): New macro.
7134 (i386_get_debug_register_length): Likewise.
7135 (TARGET_HAS_DR_LEN_8): Use above macro.
7136 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7137 and printf_unfiltered. Use phex to format values.
7138
9b4550ef
GB
71392014-06-18 Gary Benson <gbenson@redhat.com>
7140
7141 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7142 Make const.
7143
6e62758f
GB
71442014-06-18 Gary Benson <gbenson@redhat.com>
7145
7146 * i386-nat.c: Comment changes.
7147
51c79e94
GB
71482014-06-18 Gary Benson <gbenson@redhat.com>
7149
7150 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7151
3e11889a
GB
71522014-06-18 Gary Benson <gbenson@redhat.com>
7153
7154 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7155 (i386_insert_aligned_watchpoint): Likewise.
7156 (i386_remove_aligned_watchpoint): Likewise.
7157 (i386_handle_nonaligned_watchpoint): Likewise.
7158
fc6e2f03
GB
71592014-06-18 Gary Benson <gbenson@redhat.com>
7160
7161 * i386-nat.c: Whitespace changes.
7162
2afe7d50
SB
71632014-06-17 Samuel Bronson <naesten@gmail.com>
7164
7165 * MAINTAINERS: Update Roland McGrath's email address.
7166 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7167 Red Hat a while ago, and giving me a current address.
2afe7d50 7168
3bca49ee
TT
71692014-06-17 Tom Tromey <tromey@redhat.com>
7170
7171 * utils.h (savestring): Remove declaration.
7172
6e366df1
TT
71732014-06-17 Tom Tromey <tromey@redhat.com>
7174
7175 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7176
6be47f0c
KS
71772014-06-16 Keith Seitz <keiths@redhat.com>
7178
7179 PR mi/15863
7180 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7181 to update the varobj if inferior_ptid is null_ptid.
7182
7bc112c1
TT
71832014-06-16 Tom Tromey <tromey@redhat.com>
7184
7185 * target.h (struct target_ops) <to_info_proc>: Make parameter
7186 const.
7187 (target_info_proc): Update.
7188 * target.c (target_info_proc): Make "args" const.
7189 * procfs.c (procfs_info_proc): Update.
7190 * linux-tdep.c (linux_info_proc): Update.
7191 (linux_core_info_proc_mappings): Make "args" const.
7192 (linux_core_info_proc): Update.
7193 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7194 * gdbarch.c: Rebuild.
7195 * gdbarch.h: Rebuild.
7196 * corelow.c (core_info_proc): Update.
7197
fee354ee
TT
71982014-06-16 Tom Tromey <tromey@redhat.com>
7199
7200 * target.h (struct target_ops) <to_disconnect>: Make parameter
7201 const.
7202 (target_disconnect): Update.
7203 * target.c (target_disconnect): Make "args" const.
7204 * target-delegates.c: Rebuild.
7205 * remote.c (remote_disconnect): Update.
7206 * record.h (record_disconnect): Update.
7207 * record.c (record_disconnect): Update.
7208 * inf-child.c (inf_child_disconnect): Update.
7209
a30bf1f1
TT
72102014-06-16 Tom Tromey <tromey@redhat.com>
7211
7212 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7213 * target.c (debug_to_rcmd, default_rcmd): Update.
7214 * target-delegates.c: Rebuild.
7215 * remote.c (remote_rcmd): Update.
7216 * monitor.c (monitor_rcmd): Update.
7217
d03de421
PA
72182014-06-16 Pedro Alves <palves@redhat.com>
7219
7220 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7221 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7222 have OBJF_SHARED set.
7223 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7224 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7225 instead of OBJF_USERLOADED.
7226 * objfiles.h (OBJF_SHARED): Update comment.
7227 (userloaded_objfile_contains_address_p): Rename to ...
7228 (shared_objfile_contains_address_p): ... this, and update
7229 comments.
7230 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7231 new objfile.
7232 (remove_symbol_file_command): Skip objfiles that don't have
7233 OBJF_SHARED set.
7234
99f4262f
TT
72352014-06-16 Tom Tromey <tromey@redhat.com>
7236
7237 * minsyms.h (prim_record_minimal_symbol)
7238 (prim_record_minimal_symbol_and_info): Update comments.
7239
97d66cc6
EZ
72402014-06-14 Eli Zaretskii <eliz@gnu.org>
7241
7242 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7243 or --without-guile, according to how GDB was built.
7244
635c7e8a
TT
72452014-06-13 Tom Tromey <tromey@redhat.com>
7246
7247 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7248 to help_list.
7249 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7250 to help_list.
7251 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7252 help_list.
7253 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7254 help_list.Pass all_commands, not -1, to help_list.
7255 * cli/cli-dump.c (dump_command, append_command)
7256 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7257 (binary_dump_command, binary_append_command): Pass all_commands,
7258 not -1, to help_list.
7259 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7260 -1, to help_list.
7261 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7262 -1, to help_list.
7263 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7264 help_list.
7265 * top.c (set_history): Pass all_commands, not -1, to help_list.
7266 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7267 all_commands, not -1, to help_list.
7268 * symfile.c (overlay_command): Pass all_commands, not -1, to
7269 help_list.
7270 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7271 help_list.
7272 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7273 help_list.
7274 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7275 -1, to help_list.
7276 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7277 not -1, to help_list.
7278 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7279 not -1, to help_list.
7280 * maint.c (maintenance_command, maintenance_info_command)
7281 (maintenance_print_command, maintenance_set_cmd): Pass
7282 all_commands, not -1, to help_list.
7283 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7284 help_list.
7285 * language.c (set_check): Pass all_commands, not -1, to help_list.
7286 * infcmd.c (unset_command): Pass all_commands, not -1, to
7287 help_list.
7288 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7289 help_list.
7290 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7291 help_list.
7292 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7293 help_list.
7294 * breakpoint.c (save_command): Pass all_commands, not -1, to
7295 help_list.
7296 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7297 all_commands, not -1, to help_list.
7298
b94ade42
PL
72992014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7300
7301 * regcache.c (struct register_to_invalidate): New structure.
7302 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7303 functions.
7304 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7305
31f628ae
YQ
73062014-06-12 Yao Qi <yao@codesourcery.com>
7307
7308 * varobj.c (varobj_get_num_children): Call
7309 varobj_is_dynamic_p.
7310 (varobj_list_children): Likewise.
7311 (varobj_update): Likewise. Update comments.
7312
cde5ef40
YQ
73132014-06-12 Yao Qi <yao@codesourcery.com>
7314
7315 * varobj.c (varobj_pretty_printed_p): Rename to ...
7316 (varobj_is_dynamic_p): ... this. New function.
7317 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7318 (varobj_is_dynamic_p): Declare.
7319 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7320 (mi_print_value_p, varobj_update_one): Likewise.
7321
576ea091
YQ
73222014-06-12 Pedro Alves <pedro@codesourcery.com>
7323 Yao Qi <yao@codesourcery.com>
7324
7325 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7326 (varobj_get_iterator): Wrap up code for pretty-printer by
7327 "#if HAVE_PYTHON" and "#endif".
7328 (update_dynamic_varobj_children): Likewise.
7329
827f100c
YQ
73302014-06-12 Pedro Alves <pedro@codesourcery.com>
7331 Yao Qi <yao@codesourcery.com>
7332
7333 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7334 gdb_python_initialized is false. Move some code from varobj.c.
7335 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7336 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7337 (struct varobj_item): Moved to varobj-iter.h".
7338 (varobj_clear_saved_item): New function.
7339 (update_dynamic_varobj_children): Move python-related code to
7340 py-varobj.c.
7341 (free_variable): Call varobj_clear_saved_item and
7342 varobj_iter_delete.
7343
e5250216
YQ
73442014-06-12 Pedro Alves <pedro@codesourcery.com>
7345 Yao Qi <yao@codesourcery.com>
7346
7347 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7348 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7349 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7350 (py-varobj.o): New rule.
7351 * python/py-varobj.c: New file.
7352 * python/python-internal.h (py_varobj_get_iterator): Declare.
7353 * varobj-iter.h: New file.
7354 * varobj.c: Include "varobj-iter.h"
7355 (struct varobj) <child_iter>: Change its type from "PyObject *"
7356 to "struct varobj_iter *".
7357 <saved_item>: Likewise.
7358 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7359 [HAVE_PYTHON] (varobj_get_iterator): New function.
7360 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7361 python-specific code to python/py-varobj.c.
7362 (install_visualizer): Call varobj_iter_delete instead of
7363 Py_XDECREF.
7364 * varobj.h (varobj_ensure_python_env): Declare.
7365
5a2e0d6e
YQ
73662014-06-12 Yao Qi <yao@codesourcery.com>
7367
7368 * varobj.c (struct varobj_item): New structure.
7369 (create_child_with_value): Update declaration.
7370 (varobj_add_child): Replace arguments 'name' and 'value' with
7371 'item'. All callers updated.
7372 (install_dynamic_child): Likewise.
7373 (update_dynamic_varobj_children): Likewise.
7374 (varobj_add_child): Likewise.
7375 (create_child_with_value): Likewise.
7376
919b9a93
JB
73772014-06-11 Joel Brobecker <brobecker@adacore.com>
7378
7379 * NEWS: Create a new section for the next release branch.
7380 Rename the section of the current branch, now that it has
7381 been cut.
7382
71a55bdf
JB
73832014-06-11 Joel Brobecker <brobecker@adacore.com>
7384
7385 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7386 * version.in: Bump version to 7.8.50.DATE-cvs.
7387
364fe1f7
PA
73882014-06-11 Pedro Alves <palves@redhat.com>
7389
7390 PR remote/17028
7391 * ser-mingw.c (net_windows_socket_check_pending): New function.
7392 (net_windows_select_thread): Ignore spurious wakeups. Use
7393 net_windows_socket_check_pending.
7394 (net_windows_wait_handle): Check for pending events with
7395 ioctlsocket, through net_windows_socket_check_pending, instead of
7396 checking the socket's event.
7397
5a6c7709
SC
73982014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7399
7400 * python/python-internal.h (gdb_PyObject_GetAttrString)
7401 (gdb_PyObject_HasAttrString): New inline function definitions.
7402 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7403 char * of the second argument to PyObject_GetAttrString.
74228e77 7404
0e58ee40
JB
74052014-06-10 Joel Brobecker <brobecker@adacore.com>
7406
7407 * serial.c (serial_write): Fix index of character to be printed
7408 in call to serial_logchar when serial debug traces are enabled.
7409
d190df30
JB
74102014-06-10 Joel Brobecker <brobecker@adacore.com>
7411
7412 * gdbtypes (resolve_dynamic_range): Add function description.
7413
b4b01d36
PA
74142014-06-09 Pedro Alves <palves@redhat.com>
7415
7416 * linux-nat.c (linux_child_follow_fork): Initialize status with
7417 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7418 inner block. Only pass the signal to PTRACE_DETACH if in pass
7419 state.
7420
3657956b
GB
74212014-06-09 Gary Benson <gbenson@redhat.com>
7422
7423 * common/signals.c (gdb_signal_from_host): Reorder to separate
7424 the always-available ANSI-standard signals from the signals that
7425 require checking.
7426 (do_gdb_signal_to_host): Likewise.
7427 * proc-events.c (signal_table): Likewise.
7428
c077881a
HZ
74292014-06-08 Hui Zhu <hui@codesourcery.com>
7430
7431 * common/linux-ptrace.c (linux_disable_event_reporting): New
7432 function.
7433 * common/linux-ptrace.h (linux_disable_event_reporting): New
7434 declaration.
7435 * linux-nat.c (linux_child_follow_fork): Do a single step before
7436 detach.
7437
4186eb54
KS
74382014-06-07 Keith Seitz <keiths@redhat.com>
7439
7440 Revert:
7441 PR c++/16253
7442 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7443 from symbol_matches_domain in symtab.c. All local callers
7444 of symbol_matches_domain updated.
7445 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7446 search STRUCT_DOMAIN.
7447 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7448 independently. standard_lookup will do that automatically.
7449 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7450 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7451 (cp_lookup_symbol_in_namespace): Likewise.
7452 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7453 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7454 may return a STRUCT_DOMAIN match.
7455 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7456 * cp-support.c: Include language.h.
7457 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7458 VAR_DOMAIN.
7459 * psymtab.c (match_partial_symbol): Compare the requested
7460 domain with the symbol's domain directly.
7461 (lookup_partial_symbol): Likewise.
7462 * symtab.c (lookup_symbol_in_language): Explain when/why
7463 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7464 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7465 appropriate languages.
7466 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7467 and moved to ada-lang.c
7468 (lookup_block_symbol): Explain that this function only returns
7469 symbol matching the requested DOMAIN.
7470 Compare the requested domain with the symbol's domain directly.
7471 (iterate_over_symbols): Compare the requested domain with the
7472 symbol's domain directly.
7473 * symtab.h (symbol_matches_domain): Remove.
7474
25326a28 74752014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7476
7477 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7478 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7479 (gdbscm_guile_version_is_at_least): Declare.
7480 (gdbscm_scm_string_to_int): Declare.
7481 * guile/guile.c (gdbscm_guile_major_version): New global.
7482 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7483 (guile_datadir): New static global.
7484 (gdbscm_guile_data_directory): New function.
7485 (initialize_scheme_side): Update.
7486 (misc_guile_functions): Add guile-data-directory.
7487 (initialize_gdb_module): Fetch guile version number.
7488 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7489 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7490 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7491 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7492 comments.
7493 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7494 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7495 * guile/scm-value.c (gdbscm_value_to_string): Only call
7496 scm_port_conversion_strategy if Guile version >= 2.0.6.
7497
0a770bb2 74982014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7499
7500 * main.c (print_gdb_help): Add -q and --silent.
7501
73ba372c
GB
75022014-06-06 Gary Benson <gbenson@redhat.com>
7503
7504 * common/signals.c: Remove preprocessor conditionals for
7505 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7506 SIGSEGV and SIGTERM.
7507 * proc-events.c: Likewise.
7508
c33b2f12
MM
75092014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7510
7511 * symfile.c (symfile_free_objfile): Remove restriction to
7512 OBJF_USERLOADED.
7513 * symfile-mem.c (symbol_file_add_from_memory): Call
7514 add_target_sections_of_objfile.
7515
fb934770
LC
75162014-06-05 Ludovic Courtès <ludo@gnu.org>
7517
7518 * guile/scm-value.c (gdbscm_history_append_x): Use
7519 'vlscm_get_value_smob_arg_unsafe' instead of
7520 'vlscm_scm_to_value'.
7521
6ef284bd
SM
75222014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7523
7524 PR mi/15806
7525 * utils.c (printchar): Don't escape at all if quoter is NUL.
7526 Update function documentation to clarify effect of parameter
7527 QUOTER.
7528 * remote.c (escape_buffer): Pass '\\' as the quoter to
7529 fputstrn_unfiltered.
7530 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7531 generate the output.
7532 (mi_solib_unloaded): Same.
7533
270c9937
JB
75342014-06-05 Joel Brobecker <brobecker@adacore.com>
7535
7536 * development.sh: Delete.
7537 * Makefile.in (config.status): Adjust dependency on development.sh.
7538 * configure.ac: Adjust development.sh source call.
7539 * configure: Regenerate.
7540
16f691fb
DE
75412014-06-04 Doug Evans <xdje42@gmail.com>
7542
7543 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7544 is_scheme_bkpt, spec.
7545 (bpscm_make_breakpoint_smob): Initialize new members.
7546 (gdbscm_create_breakpoint_x): Split into two ...
7547 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7548 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7549 (scheme_function breakpoint_functions): Update.
7550 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7551 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7552 register-breakpoint!.
7553
ef7cab6b
JB
75542014-06-04 Joel Brobecker <brobecker@adacorer.com>
7555
7556 PR server/17023
7557 * mem-break.c (z_type_supported): Return zero if
7558 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7559
012370f6
TT
75602014-06-04 Tom Tromey <tromey@redhat.com>
7561
7562 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7563 value_from_contents_and_address_unresolved.
7564 (ada_template_to_fixed_record_type_1): Likewise.
7565 (ada_which_variant_applies): Likewise.
7566 * value.h (value_from_contents_and_address_unresolved): Declare.
7567 * value.c (value_from_contents_and_address_unresolved): New
7568 function.
7569 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7570 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7571 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7572
92e2a17f
TT
75732014-06-04 Tom Tromey <tromey@redhat.com>
7574
7575 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7576
c0939df1
TT
75772014-06-04 Tom Tromey <tromey@redhat.com>
7578
7579 * procfs.c (procfs_attach): Make "args" const.
7580 * windows-nat.c (windows_attach): Make "args" const.
7581 * nto-procfs.c (procfs_attach): Make "args" const.
7582 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7583 * go32-nat.c (go32_attach): Make "args" const.
7584 * gnu-nat.c (gnu_attach): Make "args" const.
7585 * darwin-nat.c (darwin_attach): Make "args" const.
7586 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7587 * linux-nat.c (linux_nat_attach): Make "args" const.
7588 * remote.c (extended_remote_attach_1, extended_remote_attach):
7589 Make "args" const.
7590 * target.h (struct target_ops) <to_attach>: Make "args" const.
7591 (find_default_attach): Likewise.
7592 * utils.c (parse_pid_to_attach): Make "args" const.
7593 * utils.h (parse_pid_to_attach): Update.
7594
8eaff7cd
TT
75952014-06-04 Tom Tromey <tromey@redhat.com>
7596
7597 * target-delegates.c: Rebuild.
7598 * target.c (default_thread_address_space): New function.
7599 (target_thread_address_space): Simplify.
7600 * target.h (struct target_ops) <to_thread_address_space>: Add
7601 TARGET_DEFAULT_FUNC.
7602
1913f160
DE
76032014-06-04 Doug Evans <xdje42@gmail.com>
7604
7605 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7606
70ad5bff
MM
76072014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7608
7609 * record-btrace.c: Include event-loop.h and inf-loop.h.
7610 (record_btrace_resume_exec_dir)
7611 (record_btrace_async_inferior_event_handler)
7612 (record_btrace_handle_async_inferior_event): New.
7613 (record_btrace_open): Create async event handler.
7614 (record_btrace_close): Delete async event handler.
7615 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7616 Mark async event handler.
7617 (record_btrace_execution_direction): New.
7618 (init_record_btrace_ops): Initialize to_execution_direction.
7619
b6210538
DE
76202014-06-03 Doug Evans <xdje42@gmail.com>
7621
7622 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7623 (gdbscm_make_parameter): Ditto.
7624
a5b1fd27
DE
76252014-06-03 Doug Evans <dje@google.com>
7626
7627 * exec.c (exec_close_1): Call clear_section_table instead of
7628 resize_section_table.
7629 (clear_section_table): New function.
7630 (resize_section_table): Make static. Rename arg num_added to
7631 adjustment.
7632 * exec.h (clear_section_table): Declare.
7633 (resize_section_table): Delete.
7634 * progspace.c (release_program_space): Call clear_section_table
7635 instead of resize_section_table.
7636
0c6e92a5
SC
76372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7638
7639 * NEWS (Python Scripting): Add entry about the new xmethods
7640 feature.
7641
883964a7
SC
76422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7643
7644 * python/py-xmethods.c: New file.
7645 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7646 (objfpy_dealloc): XDECREF on the new xmethods field.
7647 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7648 field.
7649 (objfpy_get_xmethods): New function.
7650 (objfile_getset): New entry 'xmethods'.
7651 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7652 (pspy_dealloc): XDECREF on the new xmethods field.
7653 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7654 field.
7655 (pspy_get_xmethods): New function.
7656 (pspace_getset): New entry 'xmethods'.
7657 * python/python-internal.h: Add declarations for new functions.
7658 * python/python.c (_initialize_python): Invoke
7659 gdbpy_initialize_xmethods.
7660 * python/lib/gdb/__init__.py (xmethods): New
7661 attribute.
7662 * python/lib/gdb/xmethod.py: New file.
7663 * python/lib/gdb/command/xmethods.py: New file.
7664
58992dc5
SC
76652014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7666
7667 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7668 best match method returned by find_overload_match is an xmethod.
7669 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7670 the best matching operator returned by find_overload_match is an
7671 xmethod.
7672 * valops.c: #include "extension.h".
7673 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7674 Return void. The list of matching source methods is returned in
7675 "fn_list" and a vector of matching debug method workers is
7676 returned in "xm_worker_vec". Update all callers.
7677 (value_find_oload_method_list): Likewise.
7678 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7679 non-NULL, then the index of the best matching method in this
7680 vector is returned. Update all callers.
7681 (find_overload_match): Include xmethods while performing overload
7682 resolution.
7683
e81e7f5e
SC
76842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7685
7686 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7687 * extension-priv.h (struct extension_language_ops): Add the
7688 xmethod interface.
7689 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7690 get_matching_xmethod_workers, get_xmethod_argtypes,
7691 invoke_xmethod, free_xmethod_worker,
7692 free_xmethod_worker_vec): New functions.
7693 * extension.h: #include "common/vec.h".
7694 New function declarations.
7695 (struct xmethod_worker): New struct.
7696 (VEC (xmethod_worker_ptr)): New vector type.
7697 (xmethod_worker_ptr): New typedef.
7698 (xmethod_worker_vec): Likewise.
7699 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7700 builtin_type.
7701 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7702 (struct builtin_type): New field "xmethod".
7703 * valarith.c (value_ptradd): Assert that the value argument is not
7704 lval_xcallable.
7705 * valops.c (value_must_coerce_to_target): Return 0 for
7706 lval_xcallable values.
7707 * value.c (struct value): New field XM_WORKER in the field
7708 LOCATION.
7709 (value_address, value_raw_address): Return 0 for lval_xcallable
7710 values.
7711 (set_value_address): Assert that the value is not an
7712 lval_xcallable.
7713 (value_free): Free the associated xmethod worker when freeing
7714 lval_xcallable values.
7715 (set_value_component_location): Assert that the WHOLE value is not
7716 lval_xcallable.
7717 (value_of_xmethod, call_xmethod): New functions.
7718 * value.h: Declare "struct xmethod_worker".
7719 Declare new functions value_of_xmethod, call_xmethod.
7720
ef370185
JB
77212014-06-03 Joel Brobecker <brobecker@adacore.com>
7722 Pedro Alves <palves@redhat.com>
7723
7724 PR breakpoints/17000
7725 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7726 New function, extracted from software_breakpoint_inserted_here_p.
7727 (software_breakpoint_inserted_here_p): Replace factored out code
7728 by call to find_non_raw_software_breakpoint_inserted_here.
7729 (bp_target_info_copy_insertion_state): New function.
7730 (bkpt_insert_location): Handle the case of a single-step
7731 breakpoint already inserted at the same address.
7732 (bkpt_remove_location): Handle the case of a single-step
7733 breakpoint still inserted at the same address.
7734 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7735 breakpoint already inserted at the same address.
7736 (deprecated_remove_raw_breakpoint): Handle the case of a
7737 non-raw breakpoint still inserted at the same address.
7738 (find_single_step_breakpoint): New function, extracted from
7739 single_step_breakpoint_inserted_here_p.
7740 (find_single_step_breakpoint): New function,
7741 factored out from single_step_breakpoint_inserted_here_p.
7742 (single_step_breakpoint_inserted_here_p): Reimplement.
7743
1e2ccb61
BM
77442014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7745
7746 Pushed by Joel Brobecker <brobecker@adacore.com>
7747 * source.c (show_substitute_path_command): Fix display of matching
7748 substitution rules.
7749
d3448d85
GB
77502014-06-03 Gary Benson <gbenson@redhat.com>
7751
7752 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7753
06eb1586
DE
77542014-06-02 Doug Evans <xdje42@gmail.com>
7755
7756 Add parameter support for Guile.
7757 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7758 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7759 (scm-param.o): New rule.
7760 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7761 (gdbscm_misc_error): Declare.
7762 (gdbscm_canonicalize_command_name): Declare.
7763 (gdbscm_scm_to_host_string): Declare.
7764 (gdbscm_scm_from_host_string): Declare.
7765 (gdbscm_initialize_parameters): Declare.
7766 * guile/guile.c (initialize_gdb_module): Call
7767 gdbscm_initialize_parameters.
7768 * guile/lib/gdb.scm: Export parameter symbols.
7769 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7770 cmdscm_canonicalize_name and made public. All callers updated.
7771 * guile/scm-exception.c (gdbscm_misc_error): New function.
7772 * guile/scm-param.c: New file.
7773 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7774 (gdbscm_scm_to_host_string): New function.
7775 (gdbscm_scm_from_host_string): New function.
7776 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7777
e698b8c4
DE
77782014-06-02 Doug Evans <xdje42@gmail.com>
7779
7780 Add command support for Guile.
7781 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7782 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7783 (scm-cmd.o): New rule.
7784 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7785 (gdbscm_user_error_p): Declare.
7786 (gdbscm_parse_command_name): Declare.
7787 (gdbscm_valid_command_class_p): Declare.
7788 (gdbscm_initialize_commands): Declare.
7789 * guile/guile.c (initialize_gdb_module): Call
7790 gdbscm_initialize_commands.
7791 * guile/lib/gdb.scm: Export command symbols.
7792 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7793 (throw-user-error): New function.
7794 * guile/scm-cmd.c: New file.
7795 * guile/scm-exception.c (user_error_symbol): New static global.
7796 (gdbscm_user_error_p): New function.
7797 (gdbscm_initialize_exceptions): Set user_error_symbol.
7798 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7799
fb1f94b0
PM
78002014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7801
7802 * top.c (command_loop): Handle comments here...
7803 (command_line_input): ... not here.
7804
ded03782
DE
78052014-06-02 Doug Evans <xdje42@gmail.com>
7806
7807 Add progspace support for Guile.
7808 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7809 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7810 (scm-progspace.o): New rule.
7811 * guile/guile-internal.h (pspace_smob): New typedef.
7812 (psscm_pspace_smob_pretty_printers): Declare.
7813 (psscm_pspace_smob_from_pspace): Declare.
7814 (psscm_scm_from_pspace): Declare.
7815 * guile/guile.c (initialize_gdb_module): Call
7816 gdbscm_initialize_pspaces.
7817 * guile/lib/gdb.scm: Export progspace symbols.
7818 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7819 support.
7820 (append-pretty-printer!): Ditto.
7821 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7822 Implement.
7823 * guile/scm-progspace.c: New file.
7824
397998fc
AM
78252014-06-03 Alan Modra <amodra@gmail.com>
7826
7827 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7828 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7829
6aa5f3a6
DE
78302014-06-02 Doug Evans <dje@google.com>
7831
7832 Add support for skeletonless type units.
7833 * dwarf2read.c (struct dwarf2_per_objfile): New member
7834 n_allocated_type_units.
7835 (struct dwarf2_per_objfile) <tu_stats>: New member
7836 nr_all_type_units_reallocs.
7837 (create_signatured_type_table_from_index): Initialize
7838 n_allocated_type_units
7839 (create_all_type_units): Ditto.
7840 (add_type_unit): Move up in file. New arg slot.
7841 All callers updated. Increase space for all_type_units more
7842 efficiently.
7843 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7844 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7845 (lookup_dwp_signatured_type): Ditto.
7846 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7847 All callers updated.
7848 (build_type_psymtabs_1): Leave type_unit_groups as
7849 NULL if no TUs present.
7850 (print_tu_stats): New function.
7851 (process_skeletonless_type_unit): New function.
7852 (process_dwo_file_for_skeletonless_type_units): New
7853 function.
7854 (process_skeletonless_type_units): New function.
7855 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7856 Call print tu_stats if debugging enabled.
7857
41fac0cf
PA
78582014-06-02 Pedro Alves <palves@redhat.com>
7859
7860 * breakpoint.c (build_target_command_list): Don't build a command
7861 list if we have any duplicate location that isn't a dprintf.
7862
cd1608cc
PA
78632014-06-02 Pedro Alves <palves@redhat.com>
7864
7865 * breakpoint.c (dprintf_breakpoint_hit): New function.
7866 (initialize_breakpoint_ops): Install it as dprintf's
7867 breakpoint_hit method.
7868
486ef3b9
JB
78692014-06-02 Joel Brobecker <brobecker@adacore.com>
7870
7871 * source.c (substitute_path_rule_matches): Simplify using
7872 filename_ncmp instead of FILENAME_CMP.
7873
230cd560
JB
78742014-06-02 Joel Brobecker <brobecker@adacore.com>
7875
7876 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7877
16954d5d
LC
78782014-06-01 Ludovic Courtès <ludo@gnu.org>
7879
7880 * configure.ac: When Guile is available, check for the
7881 availability of 'scm_new_smob'.
7882 * configure, config.h.in: Regenerate.
7883 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7884 function.
7885
53e8a631
AB
78862014-05-30 Andrew Burgess <aburgess@broadcom.com>
7887
7888 * frame.c (struct frame_info): Add stop_string field.
7889 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7890 (get_prev_frame_always): Old content moved into
7891 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7892 TRY_CATCH, handle MEMORY_ERROR exceptions.
7893 (frame_stop_reason_string): New function definition.
7894 * frame.h (unwind_stop_reason_to_string): Extend comment to
7895 mention frame_stop_reason_string.
7896 (frame_stop_reason_string): New function declaration.
7897 * stack.c (frame_info): Switch to frame_stop_reason_string.
7898 (backtrace_command_1): Switch to frame_stop_reason_string.
7899 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7900 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7901 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7902
70e38b8e
AB
79032014-05-30 Andrew Burgess <aburgess@broadcom.com>
7904
7905 * frame.c (frame_stop_reason_string): Rename to ...
7906 (unwind_stop_reason_to_string): this.
7907 * frame.h (frame_stop_reason_string): Rename to ...
7908 (unwind_stop_reason_to_string): this.
7909 * stack.c (frame_info): Update call to frame_stop_reason_string.
7910 (backtrace_command_1): Likewise.
7911 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7912 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7913
938f0e2f
AB
79142014-05-30 Andrew Burgess <aburgess@broadcom.com>
7915
7916 * frame.c (remove_prev_frame): New function.
7917 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7918 remove_prev_frame.
7919
a09dd441
PA
79202014-05-29 Pedro Alves <palves@redhat.com>
7921
7922 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7923 and make it const. When a single-step decays to a continue,
7924 clear 'step', not 'hw_step'. Pass whether the caller wanted
7925 to step to user_visible_resume_ptid, not what we ask the
7926 target to do.
7927
bdc36728
PA
79282014-05-29 Pedro Alves <palves@redhat.com>
7929
7930 * infrun.c (process_event_stop_test, handle_step_into_function)
7931 (handle_step_into_function_backward): Adjust.
7932 Don't set the even thread's stop_step and call stop_waiting before
7933 calling end_stepping_range. Instead do that ...
7934 (end_stepping_range): ... here. Take an ecs pointer parameter.
7935
22bcd14b
PA
79362014-05-29 Pedro Alves <palves@redhat.com>
7937
7938 * infrun.c (stop_stepping): Rename to ...
7939 (stop_waiting): ... this.
7940 (proceed): Update comment.
7941 (process_event_stop_test, handle_inferior_event)
7942 (handle_signal_stop, handle_step_into_function)
7943 (handle_step_into_function_backward): Update.
7944
4ae57c05
PA
79452014-05-29 Pedro Alves <palves@redhat.com>
7946
7947 * infcall.c (run_inferior_call): Don't check whether the current
7948 thread is running after the proceed call.
7949
329ea579
PA
79502014-05-29 Pedro Alves <palves@redhat.com>
7951 Tom Tromey <tromey@redhat.com>
7952
7953 * NEWS: Mention "maint set target-async", "set mi-async", and that
7954 background execution commands are now always available.
7955 * target.h (target_async_permitted): Update comment.
7956 * target.c (target_async_permitted, target_async_permitted_1):
7957 Default to 1.
7958 (set_target_async_command): Rename to ...
7959 (maint_set_target_async_command): ... this.
7960 (show_target_async_command): Rename to ...
7961 (maint_show_target_async_command): ... this.
7962 (_initialize_target): Adjust.
7963 * infcmd.c (prepare_execution_command): Make extern.
7964 * inferior.h (prepare_execution_command): Declare.
7965 * infrun.c (set_observer_mode): Leave target async alone.
7966 * mi/mi-interp.c (mi_interpreter_init): Install
7967 mi_on_sync_execution_done as sync_execution_done observer.
7968 (mi_on_sync_execution_done): New function.
7969 (mi_execute_command_input_handler): Don't print the prompt if we
7970 just started a synchronous command with an async target.
7971 (mi_on_resume): Check sync_execution before printing prompt.
7972 * mi/mi-main.h (mi_async_p): Declare.
7973 * mi/mi-main.c: Include gdbcmd.h.
7974 (mi_async_p): New function.
7975 (mi_async, mi_async_1): New globals.
7976 (set_mi_async_command, show_mi_async_command, mi_async): New
7977 functions.
7978 (exec_continue): Call prepare_execution_command.
7979 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7980 (mi_execute_async_cli_command): Use mi_async_p.
7981 (_initialize_mi_main): Install "set mi-async". Make
7982 "target-async" a deprecated alias.
7983
92bcb5f9
PA
79842014-05-29 Pedro Alves <palves@redhat.com>
7985
7986 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7987 (_initialize_cli_interp): Adjust.
7988 * event-loop.c: Include "observer.h".
7989 (start_event_loop): Notify 'command_error' observers instead of
7990 calling display_gdb_prompt. Remove FIXME comment.
7991 * event-top.c (display_gdb_prompt): Remove call into the
7992 interpreters.
7993 * inf-loop.c: Include "observer.h".
7994 (inferior_event_handler): Notify 'command_error' observers instead
7995 of calling display_gdb_prompt.
7996 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7997 observers instead of calling display_gdb_prompt.
7998 * interps.c (interp_set): Don't call display_gdb_prompt.
7999 (current_interp_display_prompt_p): Delete.
8000 * interps.h (interp_prompt_p): Delete declaration.
8001 (interp_prompt_p_ftype): Delete.
8002 (struct interp_procs) <prompt_proc_p>: Delete field.
8003 (current_interp_display_prompt_p): Delete declaration.
8004 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8005 (_initialize_mi_interp): Adjust.
8006 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8007 'command_error' observers.
8008 (tui_on_sync_execution_done, tui_on_command_error): New
8009 functions.
8010 (tui_display_prompt_p): Delete.
8011 (_initialize_tui_interp): Adjust.
8012
fd664c91
PA
80132014-05-29 Pedro Alves <palves@redhat.com>
8014
8015 PR gdb/13860
8016 * cli/cli-interp.c: Include infrun.h and observer.h.
8017 (cli_uiout, cli_interp): New globals.
8018 (cli_on_signal_received, cli_on_end_stepping_range)
8019 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8020 functions.
8021 (cli_interpreter_init): Install them as 'end_stepping_range',
8022 'signal_received' 'signal_exited', 'exited' and 'no_history'
8023 observers.
8024 (_initialize_cli_interp): Remove cli_interp local.
8025 * infrun.c (handle_inferior_event): Call the several stop reason
8026 observers instead of printing the stop reason directly.
8027 (end_stepping_range): New function.
8028 (print_end_stepping_range_reason, print_signal_exited_reason)
8029 (print_exited_reason, print_signal_received_reason)
8030 (print_no_history_reason): Make static, and add an uiout
8031 parameter. Print to that instead of to CURRENT_UIOUT.
8032 * infrun.h (print_end_stepping_range_reason)
8033 (print_signal_exited_reason, print_exited_reason)
8034 (print_signal_received_reason print_no_history_reason): New
8035 declarations.
8036 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8037 'mi_uiout'.
8038 <cli_uiout>: New field.
8039 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8040 uiout for CLI output. Install 'signal_received',
8041 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8042 observers.
8043 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8044 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8045 (mi_on_no_history): New functions.
8046 (ui_out_free_cleanup): Delete function.
8047 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8048 instead use the one already stored in the MI interpreter data.
8049 (mi_ui_out): Adjust.
8050 * tui/tui-interp.c: Include infrun.h and observer.h.
8051 (tui_interp): New global.
8052 (tui_on_signal_received, tui_on_end_stepping_range)
8053 (tui_on_signal_exited, tui_on_exited)
8054 (tui_on_no_history): New functions.
8055 (tui_init): Install them as 'end_stepping_range',
8056 'signal_received' 'signal_exited', 'exited' and 'no_history'
8057 observers.
8058 (_initialize_tui_interp): Delete tui_interp local.
8059
8817a6f2
PA
80602014-05-29 Pedro Alves <palves@redhat.com>
8061
8062 PR gdb/15713
8063 * linux-nat.c (linux_nat_resume_callback): Rename the second
8064 parameter to 'except'. Skip LP if it points to EXCEPT.
8065 (linux_nat_resume): Don't mark the event lwp as not stopped
8066 before resuming sibling lwps. Instead ask
8067 linux_nat_resume_callback to skip the event lwp. Mark it as not
8068 stopped after actually resuming it.
8069 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8070 resuming it.
8071 (wait_lwp): Mark the lwp as stopped here.
8072 (stop_wait_callback): Mark the lwp as not stopped right after
8073 resuming it. Don't mark lwps as stopped here.
8074 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8075 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8076
251bde03
PA
80772014-05-29 Pedro Alves <palves@redhat.com>
8078
8079 PR PR15693
8080 * infrun.c (resume): Determine how much to resume depending on
8081 whether the caller wanted a step, not whether we can hardware step
8082 the target. Mark all threads that we intend to run as running,
8083 unless we're calling an inferior function.
8084 (normal_stop): If the thread is running an infcall, don't finish
8085 thread state.
8086 * target.c (target_resume): Don't mark threads as running here.
8087
7f3c0343
JB
80882014-05-28 Joel Brobecker <brobecker@adacore.com>
8089
8090 * serial.c (_initialize_serial): Remove support for
8091 the "set remotebaud" and "show remotebaud" commands.
8092 * NEWS: Add entry documenting the removal of that command.
8093
ee34b3f9
YQ
80942014-05-28 Yao Qi <yao@codesourcery.com>
8095
8096 * charset.c: Fix typo in comments.
8097
add6c04d
GB
80982014-05-27 Gary Benson <gbenson@redhat.com>
8099
8100 * utils.c (internal_vproblem): Prompt for a bug report.
8101
92c48fc5
AW
81022014-05-26 Andy Wingo <wingo@igalia.com>
8103
8104 * guile/scm-arch.c (arscm_mark_arch_smob):
8105 * guile/scm-block.c (bkscm_mark_block_smob)
8106 (bkscm_mark_block_syms_progress_smob):
8107 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8108 * guile/scm-exception.c (exscm_mark_exception_smob):
8109 * guile/scm-frame.c (frscm_mark_frame_smob):
8110 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8111 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8112 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8113 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8114 (ppscm_mark_pretty_printer_worker_smob):
8115 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8116 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8117 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8118 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8119 mark functions.
8120 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8121 function.
8122
b2715b27
AW
81232014-05-26 Andy Wingo <wingo@igalia.com>
8124 Doug Evans <xdje42@gmail.com>
8125
8126 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8127 empty_base_class. All uses updated.
8128 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8129 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8130 Adapt all callers.
8131 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8132 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8133 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8134 (gdbscm_gsmob_has_property_p, add_property_name)
8135 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8136 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8137 (gdb-object-has-property?, gdb-object-properties): Remove.
8138 (gdb-object-kind): Renamed from gsmob-kind.
8139
214ab2da
AW
81402014-05-26 Andy Wingo <wingo@igalia.com>
8141
8142 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8143 * configure: Regenerate.
8144
589fdceb
MM
81452014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8146
8147 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8148
67b5c0c1
MM
81492014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8150
8151 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8152 (replay_memory_access_read_only, replay_memory_access_read_write)
8153 (replay_memory_access_types, replay_memory_access)
8154 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8155 (cmd_set_record_btrace, cmd_show_record_btrace)
8156 (cmd_show_replay_memory_access): New.
8157 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8158 (record_btrace_remove_breakpoint): Replace
8159 record_btrace_allow_memory_access with replay_memory_access.
8160 (_initialize_record_btrace): Add commands.
8161 * NEWS: Announce it.
8162
036cd381
RR
81632014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8164
8165 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8166
c77c1e42
RR
81672014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8168
8169 * MAINTAINERS (Write After Approval): Move self back from
8170 paper trail.
8171
45741a9c
PA
81722014-05-22 Pedro Alves <palves@redhat.com>
8173
8174 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8175 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8176 (disable_randomization, enum exec_direction_kind)
8177 (execution_direction, stop_registers, start_remote)
8178 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8179 (wait_for_inferior, normal_stop, get_last_target_status)
8180 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8181 (insert_step_resume_breakpoint_at_sal)
8182 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8183 (set_step_info, print_stop_event, signal_stop_state)
8184 (signal_print_state, signal_pass_state, signal_stop_update)
8185 (signal_print_update, signal_pass_update)
8186 (update_signals_program_target, clear_exit_convenience_vars)
8187 (displaced_step_dump_bytes, update_observer_mode)
8188 (signal_catch_update, gdb_signal_from_command): Move
8189 declarations ...
8190 * infrun.h: ... to this new file.
8191 * amd64-tdep.c: Include infrun.h.
8192 * annotate.c: Include infrun.h.
8193 * arch-utils.c: Include infrun.h.
8194 * arm-linux-tdep.c: Include infrun.h.
8195 * arm-tdep.c: Include infrun.h.
8196 * break-catch-sig.c: Include infrun.h.
8197 * breakpoint.c: Include infrun.h.
8198 * common/agent.c: Include infrun.h instead of inferior.h.
8199 * corelow.c: Include infrun.h.
8200 * event-top.c: Include infrun.h.
8201 * go32-nat.c: Include infrun.h.
8202 * i386-tdep.c: Include infrun.h.
8203 * inf-loop.c: Include infrun.h.
8204 * infcall.c: Include infrun.h.
8205 * infcmd.c: Include infrun.h.
8206 * infrun.c: Include infrun.h.
8207 * linux-fork.c: Include infrun.h.
8208 * linux-nat.c: Include infrun.h.
8209 * linux-thread-db.c: Include infrun.h.
8210 * monitor.c: Include infrun.h.
8211 * nto-tdep.c: Include infrun.h.
8212 * procfs.c: Include infrun.h.
8213 * record-btrace.c: Include infrun.h.
8214 * record-full.c: Include infrun.h.
8215 * remote-m32r-sdi.c: Include infrun.h.
8216 * remote-mips.c: Include infrun.h.
8217 * remote-notif.c: Include infrun.h.
8218 * remote-sim.c: Include infrun.h.
8219 * remote.c: Include infrun.h.
8220 * reverse.c: Include infrun.h.
8221 * rs6000-tdep.c: Include infrun.h.
8222 * s390-linux-tdep.c: Include infrun.h.
8223 * solib-irix.c: Include infrun.h.
8224 * solib-osf.c: Include infrun.h.
8225 * solib-svr4.c: Include infrun.h.
8226 * target.c: Include infrun.h.
8227 * top.c: Include infrun.h.
8228 * windows-nat.c: Include infrun.h.
8229 * mi/mi-interp.c: Include infrun.h.
8230 * mi/mi-main.c: Include infrun.h.
8231 * python/py-threadevent.c: Include infrun.h.
8232
98eb56a4
PA
82332014-05-22 Pedro Alves <palves@redhat.com>
8234
8235 * infrun.c (handle_inferior_event): Store the exit code for
8236 --return-child-result here, instead of ...
8237 (print_exited_reason): ... here.
8238
17b2616c
PA
82392014-05-21 Pedro Alves <palves@redhat.com>
8240
8241 PR gdb/13860
8242 * gdbthread.h (struct thread_control_state): New field
8243 `command_interp'.
8244 * infrun.c (follow_fork): Copy the new thread control field to the
8245 child fork thread.
8246 (clear_proceed_status_thread): Clear the new thread control field.
8247 (proceed): Set the new thread control field.
8248 * interps.h (command_interp): Declare.
8249 * interps.c (command_interpreter): New global.
8250 (command_interp): New function.
8251 (interp_exec): Set `command_interpreter' while here.
8252 * cli-out.c (cli_uiout_dtor): New function.
8253 (cli_ui_out_impl): Install it.
8254 * mi/mi-interp.c: Include cli-out.h.
8255 (mi_cmd_interpreter_exec): Add comment.
8256 (restore_current_uiout_cleanup): New function.
8257 (ui_out_free_cleanup): New function.
8258 (mi_on_normal_stop): If finishing an execution command started by
8259 a CLI command, or any kind of breakpoint-like event triggered,
8260 print the stop event to the output (CLI) stream.
8261 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8262
5166082f
PA
82632014-05-21 Pedro Alves <palves@redhat.com>
8264
8265 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8266 current source line having changed.
8267 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8268 * infrun.c (normal_stop): Adjust call to
8269 set_current_sal_from_frame.
8270 * source.c (clear_lines_listed_range): New function.
8271 (set_current_source_symtab_and_line, identify_source_line): Clear
8272 the lines listed range.
8273 (line_info): Handle the first "info line" after the current source
8274 line having changed.
8275 * stack.c (print_stack_frame): Remove center handling.
8276 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8277 center sal.line.
8278
c1ee2fb3
PA
82792014-05-21 Pedro Alves <palves@redhat.com>
8280
8281 * inf-child.c (inf_child_mourn_inferior): New function.
8282 * inf-child.h (inf_child_mourn_inferior): New declaration.
8283 * darwin-nat.c (darwin_mourn_inferior): Use
8284 inf_child_mourn_inferior.
8285 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8286 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8287 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8288 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8289 * windows-nat.c (windows_mourn_inferior): Likewise.
8290
5c6d4fb2
DE
82912014-05-21 Doug Evans <xdje42@gmail.com>
8292
250748cb 8293 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8294
4a2722c5
DE
82952014-05-21 Doug Evans <xdje42@gmail.com>
8296
17292b30 8297 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8298 (gdbscm_out_of_range_error): Ditto.
8299 (gdbscm_memory_error): Ditto.
250748cb
DE
8300 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8301 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8302 (gdbscm_out_of_range_error): Update.
8303 (gdbscm_memory_error): Update.
8304 (gdbscm_scm_to_target_string_unsafe): Delete.
8305
6a3cb8e8
PA
83062014-05-21 Pedro Alves <palves@redhat.com>
8307
8308 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8309 globals.
8310 (inf_child_open_target): New function.
8311 (inf_child_open): Use inf_child_open_target to push the target
8312 instead of erroring out.
8313 (inf_child_disconnect, inf_child_close)
8314 (inf_child_maybe_unpush_target): New functions.
8315 (inf_child_target): Install inf_child_disconnect and
8316 inf_child_close. Store a pointer to the returned object.
8317 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8318 declarations.
8319 * target.c (auto_connect_native_target): New global.
8320 (show_default_run_target): New function.
8321 (find_default_run_target): Return NULL if automatically connecting
8322 to the native target is disabled.
8323 (_initialize_target): Install set/show auto-connect-native-target.
8324 * NEWS: Mention "set auto-connect-native-target", and "target
8325 native".
8326 * linux-nat.c (super_close): New global.
8327 (linux_nat_close): Call super_close.
8328 (linux_nat_add_target): Store a pointer to the base class's
8329 to_close method.
8330 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8331 inf_child_maybe_unpush.
8332 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8333 already pushed.
8334 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8335 the inferior. Use inf_child_maybe_unpush_target.
8336 (inf_ttrace_attach): Don't push the target if it is already
8337 pushed.
8338 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8339 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8340 after mourning the inferior. Use inf_child_maybe_unpush_target.
8341 (darwin_attach_pid): Don't push the target if it is already
8342 pushed.
8343 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8344 mourning the inferior. Use inf_child_maybe_unpush_target.
8345 (gnu_detach): Use inf_child_maybe_unpush_target.
8346 * go32-nat.c (go32_create_inferior): Don't push the target if it
8347 is already pushed.
8348 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8349 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8350 (procfs_open): Rename to ...
8351 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8352 comments. Can target_preopen before changing node. Call
8353 inf_child_open_target to push the target explicitly.
8354 (procfs_attach): Don't push the target if it is already pushed.
8355 (procfs_detach): Use inf_child_maybe_unpush_target.
8356 (procfs_create_inferior): Don't push the target if it is already
8357 pushed.
8358 (nto_native_ops): New global.
8359 (procfs_open): Reimplement.
8360 (procfs_native_open): New function.
8361 (init_procfs_targets): Install procfs_native_open as to_open of
8362 "target native". Store a pointer to the "native" target in
8363 nto_native_ops.
8364 * procfs.c (procfs_attach): Don't push the target if it is already
8365 pushed.
8366 (procfs_detach): Use inf_child_maybe_unpush_target.
8367 (procfs_mourn_inferior): Only unpush the target after mourning the
8368 inferior. Use inf_child_maybe_unpush_target.
8369 (procfs_init_inferior): Don't push the target if it is already
8370 pushed.
8371 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8372 if it is already pushed.
8373
930ee1b1
PA
83742014-05-21 Pedro Alves <palves@redhat.com>
8375
8376 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8377 and "procfs" targets are now called "native" instead.
8378
1f5d1b13
PA
83792014-05-21 Pedro Alves <palves@redhat.com>
8380
8381 * go32-nat.c (go32_open): Delete.
8382 (go32_target): Don't override the to_open method.
8383
132f8e03
PA
83842014-05-21 Pedro Alves <palves@redhat.com>
8385
8386 * nto-procfs.c (procfs_can_run): New function.
8387 (nto_procfs_ops): New global.
8388 (init_procfs_targets): New, based on procfs_target. Install
8389 "target native" in addition to "target procfs".
8390 (_initialize_procfs): Call init_procfs_targets instead of adding
8391 the target here.
8392
03c136c3
PA
83932014-05-21 Pedro Alves <palves@redhat.com>
8394
8395 * windows-nat.c (windows_target): Don't override to_shortname,
8396 to_longname or to_doc.
8397
a635d0f3
PA
83982014-05-21 Pedro Alves <palves@redhat.com>
8399
8400 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8401 to_doc.
8402
4f9b5133
PA
84032014-05-21 Pedro Alves <palves@redhat.com>
8404
8405 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8406 to_shortname, to_longname or to_doc.
8407
bc85afde
PA
84082014-05-21 Pedro Alves <palves@redhat.com>
8409
8410 * go32-nat.c (go32_target): Don't override to_shortname,
8411 to_longname or to_doc.
8412
4ebfc96e
PA
84132014-05-21 Pedro Alves <palves@redhat.com>
8414
8415 * inf-child.c (inf_child_open): Remove mention of "child".
8416 (inf_child_target): Rename target to "native" instead of "child".
8417
2648dfed
AA
84182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8419
8420 * Makefile.in (SFILES): Delete "regset.c".
8421 (COMMON_OBS): Delete "regset.o".
8422 * regset.c: Remove.
8423 * regset.h (regset_alloc): Delete prototype.
8424
b13feb94
AA
84252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8426
8427 * sparc-linux-tdep.c (sparc32_linux_gregset)
8428 (sparc32_linux_fpregset): New static regset structures.
8429 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8430 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8431 'fpregset' fields.
8432 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8433 (sparc64_linux_fpregset): New static regset structures.
8434 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8435 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8436 New static regset structures.
8437 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8438 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8439 New static regset structures.
8440 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8441 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8442 New static regset structures.
8443 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8444 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8445 New static regset structures.
8446 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8447
b4fd25c9
AA
84482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8449
8450 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8451 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8452 register maps ("regmaps") from "*regset" to "*regmap". Do this
8453 for all regmap types and variables.
8454 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8455 (sparc32_linux_supply_core_gregset)
8456 (sparc32_linux_collect_core_gregset)
8457 (sparc32_linux_supply_core_fpregset)
8458 (sparc32_linux_collect_core_fpregset): Likewise.
8459 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8460 (sparc_gregmap, sparc_fpregmap): ... these.
8461 (sparc_supply_gregset, sparc_collect_gregset)
8462 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8463 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8464 (_initialize_sparc_nat): Rename regmaps.
8465 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8466 (sparc_gregmap, sparc_fpregmap): ... these.
8467 (sparc_supply_gregset, sparc_collect_gregset)
8468 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8469 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8470 Rename macros to...
8471 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8472 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8473 Likewise.
8474 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8475 Rename to...
8476 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8477 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8478 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8479 regmaps.
8480 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8481 (sparc32_bsd_fpregset): Rename to...
8482 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8483 (sparc32_bsd_fpregmap): ... these.
8484 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8485 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8486 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8487 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8488 (struct sparc_gregmap, struct sparc_fpregmap)
8489 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8490 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8491 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8492 (sparc32_supply_regset, sparc32_collect_gregset)
8493 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8494 prototypes.
8495 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8496 (sparc64_linux_ptrace_gregmap): ... this.
8497 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8498 (_initialize_sparc64_linux_nat): Rename regmaps.
8499 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8500 (sparc64_linux_core_gregmap): ... this.
8501 (sparc64_linux_supply_core_gregset)
8502 (sparc64_linux_collect_core_gregset)
8503 (sparc64_linux_supply_core_fpregset)
8504 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8505 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8506 (sparc64_sol2_fpregset): Rename to...
8507 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8508 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8509 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8510 regmaps.
8511 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8512 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8513 (sparc64_bsd_fpregset): Rename to...
8514 (struct sparc_gregmap, sparc64_sol2_gregmap)
8515 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8516 (sparc64_bsd_fpregmap): ... these.
8517 (sparc64_supply_gregset, sparc64_collect_gregset)
8518 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8519 prototypes.
8520 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8521 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8522 (sparc64fbsd_gregmap): ... this.
8523 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8524 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8525 Rename regmaps.
8526 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8527 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8528 (sparc64nbsd_collect_fpregset): Likewise.
8529 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8530 (sparc64nbsd_gregmap): ... this.
8531 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8532 regmaps.
8533 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8534 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8535 (sparc64obsd_gregmap): ... this.
8536 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8537 regmaps.
8538 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8539 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8540 (sparc32nbsd_gregmap): ... this.
8541 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8542 regmaps.
8543
8fea3224
AA
85442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8545
8546 * score-tdep.c (score7_linux_gregset): New static regset
8547 structure.
8548 (score7_linux_regset_from_core_section): Remove dynamic regset
8549 allocation.
8550 (score_gdbarch_init): Drop allocation of tdep structure.
8551 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8552
24534243
AA
85532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8554
8555 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8556 regset structures.
8557 (am33_regset_from_core_section): Remove dynamic regset
8558 allocations.
8559
b7195f27
AA
85602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8561
8562 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8563 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8564 structures.
8565 (mips_linux_regset_from_core_section): Remove dynamic regset
8566 allocations.
8567 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8568 'gregset64', 'fpregset', and 'fpregset64'.
8569 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8570 deleted tdep fields.
8571
ecc37a5a
AA
85722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8573
8574 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8575 regset structures.
8576 (amd64_regset_from_core_section): Remove dynamic regset
8577 allocations.
8578 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8579 structure.
8580 (amd64obsd_regset_from_core_section): Remove dynamic regset
8581 allocation.
8582 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8583 Likewise.
8584 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8585 x86-common regset supply function.
8586 * i386-tdep.c (i386_collect_gregset): Make static.
8587 (i386_gregset): New global regset structure.
8588 (i386_fpregset, i386_xstateregset): New static regset structures.
8589 (i386_regset_from_core_section): Remove dynamic regset
8590 allocations.
8591 (i386_gdbarch_init): Remove initialization of tdep fields
8592 'gregset', 'fpregset', and 'xstateregset'.
8593 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8594 'fpregset', and 'xstateregset'.
8595 (i386_collect_gregset): Remove prototype.
8596 (i386_gregset): New declaration.
8597 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8598 structure.
8599 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8600 allocation.
8601
b7611c43
AA
86022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8603
8604 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8605 (arm_linux_vfpregset): New static regset structures.
8606 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8607 regset structures.
8608 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8609 and 'vfpregset' fields.
8610
a069a2bd
AA
86112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8612
8613 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8614 (aarch64_linux_fpregset): New static regset structures.
8615 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8616 of regset structures.
8617 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8618 'fpregset' fields.
8619
09424cff
AA
86202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8621
8622 * regset.h (struct regset): Remove gdbarch field.
8623 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8624 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8625 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8626 Likewise.
8627 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8628 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8629 (ppc32_linux_vsxregset): Likewise.
8630 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8631 via the regcache instead of the regset.
8632 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8633 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8634 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8635 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8636 Likewise.
8637
3ca7dae4
AA
86382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8639
8640 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8641 Constify structures.
8642 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8643 (alphanbsd_aout_gregset): Likewise.
8644 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8645 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8646 Likewise.
8647 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8648 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8649 Likewise.
8650 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8651 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8652 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8653 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8654 * m88k-tdep.c (m88k_gregset): Likewise.
8655 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8656 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8657 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8658 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8659 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8660 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8661 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8662 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8663 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8664 Likewise.
8665 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8666 * sh-tdep.h (sh_corefile_gregset): Likewise.
8667 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8668 * vax-tdep.c (vax_gregset): Likewise.
8669
5876f503
JK
86702014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8671
8672 Fix TLS access for -static -pthread.
8673 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8674 (try_thread_db_load_1): Initialize it.
8675 (thread_db_get_thread_local_address): Call it if LM is zero.
8676 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8677 * target.h (struct target_ops) (to_get_thread_local_address): Add
8678 load_module_addr comment.
8679
0256a6ac
PA
86802014-05-21 Pedro Alves <palves@redhat.com>
8681
8682 * dcache.c (dcache_read_memory_partial): If reading the cache line
8683 fails, fallback to reading just the memory the caller wanted.
8684
227533ac
DE
86852014-05-20 Doug Evans <dje@google.com>
8686
8687 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8688 instead of get_current_arch.
8689
936d2992
PA
86902014-05-20 Pedro Alves <palves@redhat.com>
8691
8692 * NEWS: Mention that compare-sections now works with all targets.
8693
8694 * remote.c (PACKET_qCRC): New enum value.
8695 (remote_verify_memory): Don't send qCRC if the target has no
8696 execution. Use packet_support/packet_ok. If the target doesn't
8697 support the qCRC packet, fallback to a deep memory copy.
8698 (compare_sections_command): Say "target image" instead of "remote
8699 executable".
8700 (_initialize_remote): Add PACKET_qCRC to the list of config
8701 packets that have no associated command. Extend comment.
8702 * target.c (simple_verify_memory, default_verify_memory): New
8703 function.
8704 * target.h (struct target_ops) <to_verify_memory>: Default to
8705 default_verify_memory.
8706 (simple_verify_memory): New declaration.
8707 * target-delegates.c: Regenerate.
8708
e59fa00f
MM
87092014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8710
8711 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8712
f2205de0
HZ
87132014-05-20 Hui Zhu <hui@codesourcery.com>
8714 Yao Qi <yao@codesourcery.com>
8715
8716 PR backtrace/16558
8717 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8718 and change address of sp and pc.
8719
c4e54771
TT
87202014-05-19 Tom Tromey <tromey@redhat.com>
8721
8722 * gdbtypes.c (rank_function): Use XNEWVEC.
8723 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8724
73051182
DE
87252014-05-19 Doug Evans <dje@google.com>
8726
8727 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8728 build_type_unit_groups and moved closer to only caller. Remove
8729 arguments. All references updated. Remove outdated .gdb_index
8730 comment.
8731 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8732 build_type_psymtabs_1.
8733
8832e7e3
DE
87342014-05-19 Doug Evans <dje@google.com>
8735
8736 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8737 n_type_unit_groups, all_type_unit_groups. All uses removed.
8738 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8739 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8740 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8741 (add_type_unit_group_to_table): Delete.
8742
cd8ae15e
DE
87432014-05-19 Doug Evans <dje@google.com>
8744
8745 * eval.c (evaluate_subexp_standard): Add some comments.
8746
08f4850b
DE
87472014-05-17 Doug Evans <xdje42@gmail.com>
8748
8749 * progspace.c (remove_program_space): Delete, unused.
8750 * progspace.h (remove_program_space): Ditto.
8751
bed8455c
DE
87522014-05-17 Doug Evans <xdje42@gmail.com>
8753
8754 * inferior.c (prune_inferiors): Fix comment.
8755 (remove_inferior_command): Call prune_program_spaces.
8756
8d551b02
DE
87572014-05-16 Doug Evans <dje@google.com>
8758
8759 New command line option -D.
8760 * NEWS: Mention it.
8761 * main.c (set_gdb_data_directory): New function.
8762 (captured_main): Recognize -D. Flag error for --data-directory "".
8763 Call set_gdb_data_directory.
8764 (print_gdb_help): Print --data-directory, -D.
8765 * main.h (set_gdb_data_directory): Declare.
8766 * top.c (staged_gdb_datadir): New static global.
8767 (set_gdb_datadir): Call set_gdb_data_directory
8768 (show_gdb_datadir): New function.
8769 (init_main): Update init of data-directory parameter.
8770
18848e28
GF
87712014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8772
8773 Import the "dirfd" gnulib module.
8774 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8775 * gnulib/aclocal.m4: Update.
8776 * gnulib/config.in: Update.
8777 * gnulib/configure: Update.
8778 * gnulib/import/Makefile.am: Update.
8779 * gnulib/import/Makefile.in: Update.
8780 * gnulib/import/dirfd.c: New.
8781 * gnulib/import/m4/dirfd.m4: New.
8782 * gnulib/import/m4/gnulib-cache.m4: Update.
8783 * gnulib/import/m4/gnulib-comp.m4: Update.
8784
95c64f92
YQ
87852014-05-16 Pierre Muller <muller@sourceware.org>
8786 Yao Qi <yao@codesourcery.com>
8787
8788 * valprint.c (print_wchar): Move the code on checking whether
8789 W is a printable wide char to the default branch of switch
8790 statement below. Call wchar_printable instead of gdb_iswprint.
8791
cac395ea
TM
87922014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8793
19679eca 8794 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8795 ldr.w and ldrd instructions.
8796
83655187
DE
87972014-05-15 Doug Evans <dje@google.com>
8798
8799 * dwarf2read.c (read_structure_type): Delete outdated comments.
8800
dd756689
TT
88012014-05-14 Tom Tromey <tromey@redhat.com>
8802
8803 * macrocmd.c (print_macro_definition): Reindent.
8804
75ddda77
DE
88052014-05-13 Doug Evans <xdje42@gmail.com>
8806
8807 * python/py-cmd.c (cmdpy_completer): Add comment.
8808 (completers): Make const.
8809
b0f16a3e
SM
88102014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8811
8812 * infrun.c (resume): Remove should_resume (unused). Move up
8813 declaration of resume_ptid.
8814
033c3379
TT
88152014-05-13 Tom Tromey <tromey@redhat.com>
8816
8817 * language.h (unop_type_check): Remove.
8818 (binop_type_check): Don't declare.
8819
9b44a3a5
AA
88202014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8821
8822 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8823 call to regcache_raw_collect.
8824
303a33fa
SM
88252014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8826
8827 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8828 mi_console->quote as the quoting character.
8829
196100a0
SM
88302014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8831
8832 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8833
f989a1c8
TT
88342014-04-29 Tom Tromey <tromey@redhat.com>
8835
8836 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8837 "show debug varobj".
8838
9404b58f
KM
88392014-05-07 Kyle McMartin <kyle@redhat.com>
8840
8841 Pushed by Joel Brobecker <brobecker@adacore.com>.
8842 * aarch64-tdep.c (aarch64_software_single_step): New function.
8843 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8844 with aarch64_software_single_step.
8845
5e49ba57
JB
88462014-05-05 Joel Brobecker <brobecker@adacore.com>
8847
8848 GDB 7.7.1 released.
8849
c888a17d
KS
88502014-05-05 Keith Seitz <keiths@redhat.com>
8851
8852 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8853 variable or history value is successfully parsed.
8854
290a839c
YQ
88552014-05-05 Yao Qi <yao@codesourcery.com>
8856 Pedro Alves <palves@redhat.com>
8857
8858 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8859 address of blocks that intersects the requested range. Trim
8860 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8861 sections.
8862 * ctf.c (ctf_xfer_partial): Likewise.
8863
91256dc2
YQ
88642014-05-05 Yao Qi <yao@codesourcery.com>
8865
8866 * printcmd.c (display_command): Remove the check to
8867 target_has_execution.
8868
07284463
MK
88692014-05-03 Mark Kettenis <kettenis@gnu.org>
8870
8871 * ppcobsd-nat.c: Include "obsd-nat.h".
8872 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8873 add_target.
8874 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8875
30a1e6cc
SDJ
88762014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8877
8878 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8879 and 16-bit signed and unsigned arguments. Update comment.
8880 (stap_parse_probe_arguments): Extend code to handle such
8881 arguments. Use warning instead of complaint to notify about
8882 unrecognized bitness.
8883
f33da99a
SDJ
88842014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8885
8886 PR breakpoints/16889
8887 * stap-probe.c (stap_parse_probe_arguments): Simplify
8888 check for non-prefixed probes (i.e., probes whose
8889 arguments do not start with "N@"). Always set the
8890 argument type to a sane value.
8891
95cf3b38
DT
88922014-05-01 David Taylor <dtaylor@emc.com>
8893
8894 * remote.c (compare_sections_command): Add -r option to compare
8895 all loadable read-only sections.
8896
1cfdf534
SC
88972014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8898
8899 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8900 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8901 Update all callers.
8902 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8903 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8904 Remove unused CORE_ADDR argument. Update all callers.
8905
ca4f7f8b
PA
89062014-04-29 Pedro Alves <palves@redhat.com>
8907
8908 * remote.c (struct packet_config) <detect>: Extend comment.
8909 (add_packet_config_cmd): Don't set the config's detect or support
8910 fields here.
8911 (init_all_packet_configs): Also initialize the config's 'detect'
8912 field.
8913 (reset_all_packet_configs_support): New function.
8914 (remote_open_1): Call reset_all_packet_configs_support instead of
8915 init_all_packet_configs.
8916 (_initialize_remote): Initialize all packet configs. Assert that
8917 all packets have an associated command, except a few known
8918 outliers.
8919
11c1ba78
JB
89202014-04-28 Joel Brobecker <brobecker@adacore.com>
8921
8922 * dwarf2read.c (read_subrange_type): Handle dynamic
8923 DW_AT_lower_bound attributes.
8924
8739bc53
JB
89252014-04-28 Joel Brobecker <brobecker@adacore.com>
8926
8927 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8928 dynamic bounds before computing its upper bound.
8929 (ada_discrete_type_low_bound): Same as above with the lower bound.
8930
6f8a3220
JB
89312014-04-28 Joel Brobecker <brobecker@adacore.com>
8932
8933 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8934 range types. Adjust the array handling implementation to
8935 take advantage of this change.
8936 (resolve_dynamic_range): New function, mostly extracted from
8937 resolve_dynamic_bounds.
8938 (resolve_dynamic_array): New function, mostly extracted from
8939 resolve_dynamic_bounds.
8940 (resolve_dynamic_bounds): Delete.
8941 (resolve_dynamic_type): Reimplement. Add handling of
8942 TYPE_CODE_RANGE types.
8943
4d072ce4
JB
89442014-04-28 Joel Brobecker <brobecker@adacore.com>
8945
8946 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8947 handling of parallel ___XA types.
8948
52865325
JB
89492014-04-28 Joel Brobecker <brobecker@adacore.com>
8950
8951 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8952 unnecessary second call to static_unwrap_type.
8953
433e77fa
HZ
89542014-04-27 Hui Zhu <hui@codesourcery.com>
8955
8956 * stack.c (print_frame_info): Call do_gdb_disassembly with
8957 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8958
b51a69ee
DE
89592014-04-26 Doug Evans <xdje42@gmail.com>
8960
8961 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8962
7ae1a6a6
PA
89632014-04-25 Pedro Alves <palves@redhat.com>
8964
8965 PR server/16255
8966 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8967 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8968 and newline from built string.
8969 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8970 (linux_ptrace_attach_fail_reason): ... this.
8971 * linux-nat.c (linux_nat_attach): Adjust to use
8972 linux_ptrace_attach_fail_reason.
8973
4082afcc
PA
89742014-04-25 Pedro Alves <palves@redhat.com>
8975
8976 * remote.c (struct remote_state): Remove multi_process_aware,
8977 non_stop_aware, cond_tracepoints, cond_breakpoints,
8978 breakpoint_commands, fast_tracepoints, static_tracepoints,
8979 install_in_trace, disconnected_tracing,
8980 enable_disable_tracepoints, string_tracing, and
8981 augmented_libraries_svr4_read fields.
8982 (remote_multi_process_p): Move further below in the file.
8983 (struct packet_config): Add comments.
8984 (update_packet_config): Delete function.
8985 (show_packet_config_cmd): Use packet_config_support.
8986 (add_packet_config_cmd): Use NULL as set callback.
8987 (packet_ok): "set remote foo-packet"-style commands no longer
8988 change config->supported -- adjust.
8989 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8990 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8991 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8992 (PACKET_QNonStop, PACKET_multiprocess_feature)
8993 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8994 (PACKET_DisconnectedTracing_feature)
8995 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8996 (set_remote_protocol_packet_cmd): Delete function.
8997 (packet_config_support, packet_support): New functions.
8998 (set_remote_protocol_Z_packet_cmd): Don't call
8999 update_packet_config.
9000 (remote_query_attached, remote_pass_signals)
9001 (remote_program_signals, remote_threads_info)
9002 (remote_threads_extra_info, remote_start_remote): Use
9003 packet_support.
9004 (remote_start_remote): Use packet_config_support and
9005 packet_support.
9006 (init_all_packet_configs): Set all packets to unknown support,
9007 instead of calling update_packet_config.
9008 (remote_check_symbols): Use packet_support.
9009 (remote_supported_packet): Unconditionally set the packet config's
9010 support status.
9011 (remote_multi_process_feature, remote_non_stop_feature)
9012 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9013 (remote_breakpoint_commands_feature)
9014 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9015 (remote_install_in_trace_feature)
9016 (remote_disconnected_tracing_feature)
9017 (remote_enable_disable_tracepoint_feature)
9018 (remote_string_tracing_feature)
9019 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9020 (remote_protocol_features): Adjust to use remote_supported_packet
9021 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9022 "ConditionalTracepoints", "ConditionalBreakpoints",
9023 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9024 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9025 "EnableDisableTracepoints", and "tracenz".
9026 (remote_query_supported): Use packet_support.
9027 (remote_open_1): Adjust.
9028 (extended_remote_attach_1): Use packet_support. Switch on the
9029 result of packet_ok instead of checking whether the packet ended
9030 up disabled.
9031 (remote_vcont_resume): Use packet_support.
9032 (remote_resume, remote_stop_ns, fetch_register_using_p)
9033 (remote_prepare_to_store, store_register_using_P)
9034 (check_binary_download, remote_write_bytes): Use packet_support.
9035 (remote_vkill): Use packet_support. Switch on the result of
9036 packet_ok instead of checking whether the packet ended up
9037 disabled.
9038 (extended_remote_supports_disable_randomization): Use
9039 packet_support.
9040 (extended_remote_run): Switch on the result of packet_ok instead
9041 of checking whether the packet ended up disabled.
9042 (remote_insert_breakpoint, remote_remove_breakpoint)
9043 (remote_insert_watchpoint, remote_remove_watchpoint)
9044 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9045 packet_support.
9046 (remote_search_memory): Use packet_config_support.
9047 (remote_get_thread_local_address, remote_get_tib_address)
9048 (remote_hostio_send_command, remote_can_execute_reverse): Use
9049 packet_support.
9050 (remote_supports_cond_tracepoints)
9051 (remote_supports_cond_breakpoints)
9052 (remote_supports_fast_tracepoints)
9053 (remote_supports_static_tracepoints)
9054 (remote_supports_install_in_trace)
9055 (remote_supports_enable_disable_tracepoint)
9056 (remote_supports_string_tracing)
9057 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9058 the packet config says the feature is enabled or disabled.
9059 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9060 (remote_get_trace_status): Use packet_support.
9061 (remote_set_disconnected_tracing): Adjust to check whether the
9062 feature is enabled with packet_support.
9063 (remote_set_trace_buffer_size, remote_use_agent)
9064 (remote_can_use_agent, remote_supports_btrace): Use
9065 packet_support.
9066 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9067 Use packet_config_support.
9068 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9069 the packet config says the feature is enabled or disabled.
9070 (set_range_stepping): Use packet_support.
9071
bdb52a22
TT
90722014-04-25 Tom Tromey <tromey@redhat.com>
9073
9074 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9075 argument.
9076
e9475ead
SA
90772014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9078
9079 * NEWS: Mention support for C99 variable length arrays.
9080
82eacd52
JB
90812014-04-24 Joel Brobecker <brobecker@adacore.com>
9082
9083 * ada-lang.c (standard_exc): Expand introductory comment.
9084
01f9f808
MS
90852014-04-24 Michael Sturm <michael.sturm@mintel.com>
9086 Walfred Tedeschi <walfred.tedeschi@intel.com>
9087
9088 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9089 AVX512 registers.
9090 (amd64_linux_read_description): Add code to handle AVX512 xstate
9091 mask and return respective tdesc.
9092 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9093 and features/i386/x32-avx512-linux.c.
9094 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9095 (amd64_linux_core_read_description): Add code to handle AVX512
9096 xstate mask and return respective tdesc.
9097 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9098 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9099 calculation.
9100 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9101 (tdesc_amd64_avx512_linux): New prototype.
9102 (tdesc_x32_avx512_linux): Likewise.
9103 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9104 features/i386/x32-avx512.c.
9105 (amd64_ymm_avx512_names): New register names for pseudo
9106 registers YMM16-31.
9107 (amd64_ymmh_avx512_names): New register names for raw registers
9108 YMMH16-31.
9109 (amd64_k_names): New register names for K registers.
9110 (amd64_zmmh_names): New register names for ZMM raw registers.
9111 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9112 (amd64_xmm_avx512_names): New register names for XMM16-31
9113 registers.
9114 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9115 registers.
9116 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9117 if feature is present.
9118 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9119 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9120 (AMD64_NUM_REGS): Adjust to new number of registers.
9121 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9122 registers supplied via XSTATE by AVX512 registers.
9123 (i386_linux_read_description): Add case for AVX512.
9124 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9125 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9126 (i386_linux_core_read_description): Add case for AVX512.
9127 (i386_linux_init_abi): Install supported register note section
9128 for AVX512.
9129 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9130 AVX512.
9131 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9132 registers to be number of zmm7h + 1.
9133 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9134 * i386-tdep.c: Include features/i386/i386-avx512.c.
9135 (i386_zmm_names): Add ZMM pseudo register names array.
9136 (i386_zmmh_names): Add ZMM raw register names array.
9137 (i386_k_names): Add K raw register names array.
9138 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9139 registers. AVX512 has 16 more ZMM registers than there are YMM
9140 registers.
9141 (i386_zmmh_regnum_p): Add function to look up register number of
9142 ZMM raw registers.
9143 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9144 (i386_k_regnum_p): Likewise for K raw registers.
9145 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9146 registers added by AVX512.
9147 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9148 registers added by AVX512.
9149 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9150 added by AVX512.
9151 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9152 (i386_pseudo_register_name): Add ZMM pseudo registers.
9153 (i386_zmm_type): Construct and return vector registers type for ZMM
9154 registers.
9155 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9156 ZMM0-31 pseudo registers and K registers.
9157 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9158 and YMM16-31 registers from register cache.
9159 (i386_pseudo_register_write): Add code to write K, ZMM and
9160 YMM16-31 registers.
9161 (i386_register_reggroup_p): Add code to include/exclude AVX512
9162 registers in/from respective register groups.
9163 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9164 registers if feature is present in xcr0.
9165 (i386_gdbarch_init): Add code to initialize AVX512 feature
9166 variables in tdep structure, wire in pseudo registers and call
9167 initialize_tdesc_i386_avx512.
9168 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9169 variables.
9170 (i386_regnum): Add AVX512 registers.
9171 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9172 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9173 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9174 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9175 512 bits wide.
9176 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9177 (i386_ymm_avx512_regnum_p): Likewise.
9178 (i386_k_regnum_p): Likewise.
9179 (i386_zmm_regnum_p): Likewise.
9180 (i386_zmmh_regnum_p): Likewise.
9181 * i387-tdep.c : Update year in copyright notice.
9182 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9183 XSAVE buffer.
9184 (XSAVE_YMM_AVX512_ADDR): New macro.
9185 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9186 XSAVE buffer.
9187 (XSAVE_XMM_AVX512_ADDR): New macro.
9188 (xsave_avx512_k_offset): New table for K register offsets in
9189 XSAVE buffer.
9190 (XSAVE_AVX512_K_ADDR): New macro.
9191 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9192 in XSAVE buffer.
9193 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9194 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9195 buffer.
9196 (i387_collect_xsave): Add code to collect AVX512 registers from
9197 XSAVE buffer.
9198 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9199 of XMM16-31 registers.
9200 (I387_NUM_K_REGS): New define for number of K registers.
9201 (I387_K0_REGNUM): New define for K0 register number.
9202 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9203 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9204 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9205 registers.
9206 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9207 (I387_XMM16_REGNUM): New define for XMM16 register number.
9208 (I387_YMM0_REGNUM): New define for YMM0 register number.
9209 (I387_KEND_REGNUM): New define for last K register number.
9210 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9211 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9212 number.
9213 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9214 number.
9215 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9216 size.
9217 * features/Makefile: Add AVX512 related files.
9218 * features/i386/32bit-avx512.xml: New file.
9219 * features/i386/64bit-avx512.xml: Likewise.
9220 * features/i386/amd64-avx512-linux.c: Likewise.
9221 * features/i386/amd64-avx512-linux.xml: Likewise.
9222 * features/i386/amd64-avx512.c: Likewise.
9223 * features/i386/amd64-avx512.xml: Likewise.
9224 * features/i386/i386-avx512-linux.c: Likewise.
9225 * features/i386/i386-avx512-linux.xml: Likewise.
9226 * features/i386/i386-avx512.c: Likewise.
9227 * features/i386/i386-avx512.xml: Likewise.
9228 * features/i386/x32-avx512-linux.c: Likewise.
9229 * features/i386/x32-avx512-linux.xml: Likewise.
9230 * features/i386/x32-avx512.c: Likewise.
9231 * features/i386/x32-avx512.xml: Likewise.
9232 * regformats/i386/amd64-avx512-linux.dat: New file.
9233 * regformats/i386/amd64-avx512.dat: Likewise.
9234 * regformats/i386/i386-avx512-linux.dat: Likewise.
9235 * regformats/i386/i386-avx512.dat: Likewise.
9236 * regformats/i386/x32-avx512-linux.dat: Likewise.
9237 * regformats/i386/x32-avx512.dat: Likewise.
9238 * NEWS: Add note about new support for AVX512.
9239
9240
08351840
PA
92412014-04-23 Pedro Alves <palves@redhat.com>
9242
9243 * breakpoint.c (insert_bp_location): Tolerate errors if the
9244 breakpoint is set in a user-loaded objfile.
9245 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9246 location is marked shlib_disabled. If the breakpoint is set in a
9247 user-loaded objfile is a GDB-side memory breakpoint, validate it
9248 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9249 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9250 flag.
9251 * mem-break.c (memory_validate_breakpoint): New function.
9252 * objfiles.c (userloaded_objfile_contains_address_p): New
9253 function.
9254 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9255 * target.h (memory_validate_breakpoint): New declaration.
9256
076855f9
PA
92572014-04-23 Pedro Alves <palves@redhat.com>
9258
9259 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9260 the breakpoint is set in a shared library, only suppress
9261 errors for software breakpoints, not hardware breakpoints.
9262
483805cf
PA
92632014-04-22 Pedro Alves <palves@redhat.com>
9264
9265 * infrun.c (schedlock_applies): New function, factored out from
9266 find_thread_needs_step_over.
9267 (find_thread_needs_step_over): Use it.
9268 (switch_back_to_stepped_thread): Always clear trap_expected if the
9269 step over is finished. Return early if scheduler locking applies.
9270 Look for the stepping thread and a potential step-over thread with
9271 a single loop.
9272 (currently_stepping_or_nexting_callback): Delete.
9273
a75fef0e
NC
92742014-04-22 Nick Clifton <nickc@redhat.com>
9275
9276 * NEWS: Mention that ARM sim now supports tracing.
9277
48b6e87e
YQ
92782014-04-22 Yao Qi <yao@codesourcery.com>
9279
9280 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9281 to ...
9282 * tracefile.c (tracefile_fetch_registers): ... it. New
9283 function.
9284 * tracefile.h (tracefile_fetch_registers): Declare.
9285 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9286 tracefile_fetch_registers.
9287
17617f2d
EZ
92882014-04-19 Eli Zaretskii <eliz@gnu.org>
9289
9290 PR gdb/14018
9291 * windows-nat.c (thread_rec): Don't display a warning when
9292 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9293 fails for any reason, set th->suspended to -1, so that we don't
9294 try to resume such a thread. Also, don't return NULL in these
9295 cases, to avoid completely ruin the session due to "PC register is
9296 not available" error.
9297 (do_windows_fetch_inferior_registers): Check errors in
9298 GetThreadContext call.
9299 (windows_continue): Accept an additional argument KILLED; if not
9300 zero, ignore errors in the SetThreadContext call, since the
9301 inferior was killed and is shutting down.
9302 (windows_resume, get_windows_debug_event)
9303 (windows_create_inferior, windows_mourn_inferior)
9304 (windows_kill_inferior): All callers of windows_continue changed
9305 to adjust to its new calling sequence.
9306
5723a6fd
YQ
93072014-04-19 Yao Qi <yao@codesourcery.com>
9308
9309 * ctf.c (ctf_open): Call post_create_inferior.
9310
614d5099
YQ
93112014-04-19 Yao Qi <yao@codesourcery.com>
9312
9313 * ctf.c (handle_id): New static variable.
9314 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9315 value. Get the declaration of event "register" and get length
9316 of field "contents".
9317
dac3e710
YQ
93182014-04-19 Yao Qi <yao@codesourcery.com>
9319
9320 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9321
2bca57ba
SC
93222014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9323
9324 * valops.c (oload_method_static): Remove unnecessary argument
9325 METHOD. Update all callers.
9326
51d48146
PA
93272014-04-18 Pedro alves <palves@redhat.com>
9328 Tom Tromey <tromey@redhat.com>
9329
9330 PR backtrace/15558
9331 * frame.c (get_prev_frame_1): Rename to ...
9332 (get_prev_frame_always): ... this, and make extern. Adjust.
9333 (skip_artificial_frames): Use get_prev_frame_always.
9334 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9335 (get_frame_unwind_stop_reason): Adjust to rename.
9336 * frame.h (get_prev_frame_always): Declare.
9337 * inline-frame.c: Include frame.h.
9338 (inline_frame_this_id): Use get_prev_frame_always.
9339
1bdad2e0
TG
93402014-04-18 Tristan Gingold <gingold@adacore.com>
9341
9342 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9343 code by using bfd_mach_o_get_base_address.
9344
7ce16bd4
UW
93452014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9346
9347 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9348 (spu_ax_pseudo_register_collect): New function.
9349 (spu_ax_pseudo_register_push_stack): Likewise.
9350 (spu_dwarf_reg_to_regnum): Likewise.
9351 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9352
2ed3c037
UW
93532014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9354
9355 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9356 Replace FRAME argument with FRAME_ID.
9357 * gdbarch.c, gdbarch.h: Regenerate.
9358 * findvar.c (default_value_from_register): Add GDBARCH argument;
9359 replace FRAME by FRAME_ID. No longer call get_frame_id.
9360 (value_from_register): Update call to gdbarch_value_from_register.
9361 * value.h (default_value_from_register): Update prototype.
9362 * s390-linux-tdep.c (s390_value_from_register): Update interface
9363 and call to default_value_from_register.
9364 * spu-tdep.c (spu_value_from_register): Likewise.
9365
9366 * findvar.c (address_from_register): Remove TYPE argument.
9367 Do not call value_from_register; use gdbarch_value_from_register
9368 with null_frame_id instead.
9369 * value.h (address_from_register): Update prototype.
9370 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9371 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9372 address_from_register interface change.
9373
71e50e83
YQ
93742014-04-17 Yao Qi <yao@codesourcery.com>
9375
9376 * gdbtypes.h: Update comments to link to types and macros'
9377 definitions.
9378
7a23c549
SC
93792014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9380
9381 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9382
22869d73
KS
93832014-04-16 Keith Seitz <keiths@redhat.com>
9384
9385 PR gdb/15827
9386 * dwarf2read.c (skip_one_die): Check that all relative-offset
9387 sibling DIEs fall within range of the current reader's buffer.
9388 (read_partial_die): Likewise.
9389
c4f87ca6
KS
93902014-04-16 Keith Seitz <keiths@redhat.com>
9391
9392 PR c++/16597
9393 * cp-namespace.c (lookup_symbol_file): If the type name of
9394 `this' is NULL, return immediately.
9395
b50c8614
KS
93962014-04-14 Keith Seitz <keiths@redhat.com>
9397
9398 PR c++/16253
9399 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9400 from symbol_matches_domain in symtab.c. All local callers
9401 of symbol_matches_domain updated.
9402 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9403 search STRUCT_DOMAIN.
9404 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9405 independently. standard_lookup will do that automatically.
9406 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9407 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9408 (cp_lookup_symbol_in_namespace): Likewise.
9409 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9410 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9411 may return a STRUCT_DOMAIN match.
9412 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9413 * cp-support.c: Include language.h.
9414 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9415 VAR_DOMAIN.
9416 * psymtab.c (match_partial_symbol): Compare the requested
9417 domain with the symbol's domain directly.
9418 (lookup_partial_symbol): Likewise.
9419 * symtab.c (lookup_symbol_in_language): Explain when/why
9420 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9421 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9422 appropriate languages.
9423 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9424 and moved to ada-lang.c
9425 (lookup_block_symbol): Explain that this function only returns
9426 symbol matching the requested DOMAIN.
9427 Compare the requested domain with the symbol's domain directly.
9428 (iterate_over_symbols): Compare the requested domain with the
9429 symbol's domain directly.
9430 * symtab.h (symbol_matches_domain): Remove.
9431
3d567982
TT
94322014-04-14 Tom Tromey <tromey@redhat.com>
9433
9434 PR c++/15246:
9435 * c-exp.y (type_aggregate_p): New function.
9436 (qualified_name, classify_inner_name): Use it.
9437 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9438 and TYPE_TARGET_TYPE of an enum type.
9439 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9440 an enum type.
9441 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9442 handle TYPE_DECLARED_CLASS.
9443 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9444 types.
9445 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9446 * valops.c (enum_constant_from_type): New function.
9447 (value_aggregate_elt): Use it.
9448 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9449 TYPE_CODE_ENUM.
9450
c848d642
TT
94512014-04-14 Tom Tromey <tromey@redhat.com>
9452
9453 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9454 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9455 const.
9456 * value.h (value_aggregate_elt): Update.
9457
0626fc76
TT
94582014-04-14 Tom Tromey <tromey@redhat.com>
9459
9460 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9461
5ecaaa66
SA
94622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9463
9464 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9465 (evaluate_subexp_standard): Pass noside argument.
9466 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9467 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9468 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9469 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9470 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9471
1612e0c0
SA
94722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9473
9474 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9475 points to a constant blob.
9476
c451ebe5
SA
94772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9478
9479 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9480 property and store it as the high bound and flag the range accordingly.
9481 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9482 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9483 * gdbtypes.h (enum range_flags): New enum.
9484 (struct range_bounds): Add flags member.
9485
1d42e4c4
SA
94862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9487
9488 * c-typeprint.c (c_type_print_varspec_suffix): Added
9489 check for not yet resolved high bound. If unresolved, print
9490 "variable length" string to the console instead of random
9491 length.
9492
9f1f738a
SA
94932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9494
9495 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9496 value.
9497 (ada_template_to_fixed_record_type_1): Likewise.
9498 (ada_to_fixed_type_1): Likewise.
9499 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9500 (cp_print_value): Likewise.
9501 * d-valprint.c (dynamic_array_type): Likewise.
9502 * findvar.c (address_of_variable): Likewise.
9503 * jv-valprint.c (java_value_print): Likewise.
9504 * valops.c (value_ind): Likewise.
9505 * value.c (coerce_ref): Likewise.
9506
3c8452d4
SA
95072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9508
9509 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9510 value and retrieve the dynamic type size.
9511
4ad88275
SA
95122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9513
9514 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9515 passed to sizeof is dynamic evaluate the argument to compute the length.
9516
80180f79
SA
95172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9518 Joel Brobecker <brobecker@adacore.com>
9519
9520 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9521 (dwarf2_evaluate_property): New function.
9522 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9523 * dwarf2read.c (attr_to_dynamic_prop): New function.
9524 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9525 attribute.
9526 * gdbtypes.c: Include dwarf2loc.h.
9527 (is_dynamic_type): New function.
9528 (resolve_dynamic_type): New function.
9529 (resolve_dynamic_bounds): New function.
9530 (get_type_length): New function.
9531 (check_typedef): Use get_type_length to compute type length.
9532 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9533 (TYPE_LOW_BOUND_KIND): New macro.
9534 (is_dynamic_type): New function prototype.
9535 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9536 to resolve dynamic properties of the type. Update comment.
9537 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9538
a1556843
RH
95392014-04-14 Richard Henderson <rth@redhat.com>
9540
9541 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9542
0be03e84
DE
95432014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9544 Doug Evans <xdje42@gmail.com>
9545
9546 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9547 dereference TYPE_CODE_REF values.
9548
6b662e19
JB
95492014-04-11 Joel Brobecker <brobecker@adacore.com>
9550
9551 Revert the following changes due to regressions:
9552
9553 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9554 (dwarf2_evaluate_property): New function.
9555 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9556 * dwarf2read.c (attr_to_dynamic_prop): New function.
9557 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9558 attribute.
9559 * gdbtypes.c: Include dwarf2loc.h.
9560 (is_dynamic_type): New function.
9561 (resolve_dynamic_type): New function.
9562 (resolve_dynamic_bounds): New function.
9563 (get_type_length): New function.
9564 (check_typedef): Use get_type_length to compute type length.
9565 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9566 (TYPE_LOW_BOUND_KIND): New macro.
9567 (is_dynamic_type): New function prototype.
9568 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9569 to resolve dynamic properties of the type. Update comment.
9570 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9571
9572 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9573 passed to sizeof is dynamic evaluate the argument to compute the length.
9574
9575 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9576 value and retrieve the dynamic type size.
9577
9578 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9579 (ada_template_to_fixed_record_type_1): Likewise.
9580 (ada_to_fixed_type_1): Likewise.
9581 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9582 (cp_print_value): Likewise.
9583 * d-valprint.c (dynamic_array_type): Likewise.
9584 * eval.c (evaluate_subexp_with_coercion): Likewise.
9585 * findvar.c (address_of_variable): Likewise.
9586 * jv-valprint.c (java_value_print): Likewise.
9587 * valops.c (value_ind): Likewise.
9588 * value.c (coerce_ref): Likewise.
9589
9590 * c-typeprint.c (c_type_print_varspec_suffix): Added
9591 check for not yet resolved high bound. If unresolved, print
9592 "variable length" string to the console instead of random
9593 length.
9594
9595 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9596 property and store it as the high bound and flag the range accordingly.
9597 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9598 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9599 * gdbtypes.h (enum range_flags): New enum.
9600 (struct range_bounds): Add flags member.
9601
9602 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9603 points to a constant blob.
9604
9605 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9606 (evaluate_subexp_standard): Pass noside argument.
9607 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9608 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9609 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9610 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9611 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9612
245a5f0b
KS
96132014-04-11 Keith Seitz <keiths@redhat.com>
9614
9615 PR c++/16675
9616 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9617 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9618 reference types.
9619
3bce8237
SA
96202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9621
9622 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9623 (evaluate_subexp_standard): Pass noside argument.
9624 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9625 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9626 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9627 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9628 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9629
92b09522
SA
96302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9631
9632 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9633 points to a constant blob.
9634
e1969afb
SA
96352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9636
9637 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9638 property and store it as the high bound and flag the range accordingly.
9639 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9640 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9641 * gdbtypes.h (enum range_flags): New enum.
9642 (struct range_bounds): Add flags member.
9643
b86138fb
SA
96442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9645
9646 * c-typeprint.c (c_type_print_varspec_suffix): Added
9647 check for not yet resolved high bound. If unresolved, print
9648 "variable length" string to the console instead of random
9649 length.
9650
bcd629a4
SA
96512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9652
9653 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9654 (ada_template_to_fixed_record_type_1): Likewise.
9655 (ada_to_fixed_type_1): Likewise.
9656 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9657 (cp_print_value): Likewise.
9658 * d-valprint.c (dynamic_array_type): Likewise.
9659 * eval.c (evaluate_subexp_with_coercion): Likewise.
9660 * findvar.c (address_of_variable): Likewise.
9661 * jv-valprint.c (java_value_print): Likewise.
9662 * valops.c (value_ind): Likewise.
9663 * value.c (coerce_ref): Likewise.
9664
04b19544
SA
96652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9666
9667 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9668 value and retrieve the dynamic type size.
9669
26cb189f
SA
96702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9671
9672 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9673 passed to sizeof is dynamic evaluate the argument to compute the length.
9674
37c1ab67
SA
96752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9676
9677 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9678 (dwarf2_evaluate_property): New function.
9679 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9680 * dwarf2read.c (attr_to_dynamic_prop): New function.
9681 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9682 attribute.
9683 * gdbtypes.c: Include dwarf2loc.h.
9684 (is_dynamic_type): New function.
9685 (resolve_dynamic_type): New function.
9686 (resolve_dynamic_bounds): New function.
9687 (get_type_length): New function.
9688 (check_typedef): Use get_type_length to compute type length.
9689 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9690 (TYPE_LOW_BOUND_KIND): New macro.
9691 (is_dynamic_type): New function prototype.
9692 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9693 to resolve dynamic properties of the type. Update comment.
9694 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9695
729efb13
SA
96962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9697
9698 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9699 declaring high/low bounds and change uses accordingly. Call
9700 create_range_type instead of create_static_range_type.
9701 * gdbtypes.c (create_range_type): New function.
9702 (create_range_type): Convert bounds into struct bound_prop and pass
9703 them to create_range_type.
9704 * gdbtypes.h (struct bound_prop): New struct.
9705 (create_range_type): New function prototype.
9706 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9707 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9708 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9709 part of the bound.
9710 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9711
0c9c3474
SA
97122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9713
9714 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9715 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9716 * ada-lang.c: All uses of create_range_type updated.
9717 * coffread.c: All uses of create_range_type updated.
9718 * dwarf2read.c: All uses of create_range_type updated.
9719 * f-exp.y: All uses of create_range_type updated.
9720 * m2-valprint.c: All uses of create_range_type updated.
9721 * mdebugread.c: All uses of create_range_type updated.
9722 * stabsread.c: All uses of create_range_type updated.
9723 * valops.c: All uses of create_range_type updated.
9724 * valprint.c: All uses of create_range_type updated.
9725
9d497a19
PA
97262014-04-10 Pedro Alves <palves@redhat.com>
9727
9728 * breakpoint.c (single_step_breakpoints)
9729 (single_step_gdbarch): Move up in the file.
9730 (one_breakpoint_xfer_memory): New function, factored out from ...
9731 (breakpoint_xfer_memory): ... here. Also process single-step
9732 breakpoints.
9733
15a9128a
TG
97342014-04-09 Tristan Gingold <gingold@adacore.com>
9735
9736 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9737 comments.
9738 (darwin_decode_exception_message): Free port only after use.
9739
9c97a070
PL
97402014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9741
9742 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9743 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9744 when setting the size of call_length.
9745
7af389b8
SC
97462014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9747
9748 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9749 dereference TYPE_CODE_REF values.
9750
86ad98c3
JB
97512014-04-07 Joel Brobecker <brobecker@adacore.com>
9752
9753 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9754 end of warning message.
9755
b0aeadb3
DE
97562014-04-03 Doug Evans <dje@google.com>
9757
9758 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9759 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9760
5979d6b6
AM
97612014-04-02 Alan Modra <amodra@gmail.com>
9762
9763 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9764 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9765 (struct symbol_file_add_from_memory_args): Add size field.
9766 (find_vdso_size): New function.
9767 (add_vsyscall_page): Attempt to find vdso size.
9768
0d60c288
DE
97692014-04-01 Doug Evans <dje@google.com>
9770
9771 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9772
a41f2563
TG
97732014-04-01 Tristan Gingold <gingold@adacore.com>
9774
9775 * darwin-nat.c (darwin_encode_reply): Add prototype.
9776 (darwin_decode_exception_message): Reply to unknown inferiors.
9777 (darwin_decode_message): Handle message by id. Ignore message
9778 to unknown inferior.
9779 (darwin_wait): Discard unknown messages, add debug trace.
9780
11a865c8
DE
97812014-03-31 Doug Evans <dje@google.com>
9782
9783 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9784 comp_dir_string.
9785
770e7fc7
DE
97862014-03-31 Doug Evans <dje@google.com>
9787
9788 New option "set print symbol-loading".
9789 * NEWS: Mention it.
9790 * solib.c (solib_read_symbols): Only print symbol loading messages
9791 if requested.
9792 (solib_add): If symbol loading is in "brief" mode, notify user
9793 symbols are being loaded.
9794 (reload_shared_libraries_1): Ditto.
9795 * symfile.c (print_symbol_loading_off): New static global.
9796 (print_symbol_loading_brief): New static global.
9797 (print_symbol_loading_full): New static global.
9798 (print_symbol_loading_enums): New static global.
9799 (print_symbol_loading): New static global.
9800 (print_symbol_loading_p): New function.
9801 (symbol_file_add_with_addrs): Only print symbol loading messages
9802 if requested.
9803 (_initialize_symfile): Register "print symbol-loading" set/show
9804 command.
9805 * symfile.h (print_symbol_loading_p): Declare.
9806
c32c64b7
DE
98072014-03-30 Doug Evans <xdje42@gmail.com>
9808
9809 * infrun.c (set_last_target_status): New function.
9810 (handle_inferior_event): Call it.
9811
7c0bc051
DE
98122014-03-30 Doug Evans <xdje42@gmail.com>
9813
9814 * inferior.h (enum stop_kind): Improve comment.
9815
8776cfe9
JB
98162014-03-28 Joel Brobecker <brobecker@adacore.com>
9817
9818 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9819 a reference, strip the reference layer before calling
9820 the lang_ops value_has_mutated callback.
9821
410a0ff2
SDJ
98222014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9823
9824 Remove some globals from our parser.
9825 * language.c (unk_lang_parser): Add "struct parser_state"
9826 argument.
9827 * language.h (struct language_defn) <la_parser>: Likewise.
9828 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9829 (initialize_expout): Add "struct parser_state" argument.
9830 Rewrite function to use the parser state.
9831 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9832 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9833 write_exp_elt_longcst, write_exp_elt_dblcst,
9834 write_exp_elt_decfloatcst, write_exp_elt_type,
9835 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9836 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9837 write_dollar_variable): Likewise.
9838 (parse_exp_in_context_1): Use parser state.
9839 (insert_type_address_space): Add "struct parser_state" argument.
9840 Use parser state.
9841 (increase_expout_size): New function.
9842 * parser-defs.h: Forward declare "struct language_defn" and
9843 "struct parser_state".
9844 (expout, expout_size, expout_ptr): Remove extern declarations.
9845 (parse_gdbarch, parse_language): Rewrite macro declarations to
9846 accept the parser state.
9847 (struct parser_state): New struct.
9848 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9849 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9850 write_exp_elt_decfloatcst, write_exp_elt_type,
9851 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9852 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9853 write_exp_msymbol, write_dollar_variable,
9854 mark_struct_expression, insert_type_address_space): Add "struct
9855 parser_state" argument.
9856 (increase_expout_size): New function.
9857 * utils.c (do_clear_parser_state): New function.
9858 (make_cleanup_clear_parser_state): Likewise.
9859 * utils.h (make_cleanup_clear_parser_state): New function
9860 prototype.
9861 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9862 Update calls to write_exp* in order to pass the parser state.
9863 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9864 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9865 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9866 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9867 * stap-probe.c (stap_parse_register_operand): Likewise.
9868 (stap_parse_single_operand): Likewise.
9869 (stap_parse_argument_1): Likewise.
9870 (stap_parse_argument): Use parser state.
9871 * stap-probe.h: Include "parser-defs.h".
9872 (struct stap_parse_info) <pstate>: New field.
9873 * c-exp.y (parse_type): Rewrite to use parser state.
9874 (yyparse): Redefine to c_parse_internal.
9875 (pstate): New global variable.
9876 (parse_number): Add "struct parser_state" argument.
9877 (write_destructor_name): Likewise.
9878 (type_exp): Update calls to write_exp* and similars in order to
9879 use parser state.
9880 (exp1, exp, variable, qualified_name, space_identifier,
9881 typename, typebase): Likewise.
9882 (write_destructor_name, parse_number, lex_one_token,
9883 classify_name, classify_inner_name, c_parse): Add "struct
9884 parser_state" argument. Update function to use parser state.
9885 * c-lang.h: Forward declare "struct parser_state".
9886 (c_parse): Add "struct parser_state" argument.
9887 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9888 (yyparse): Redefine macro to ada_parse_internal.
9889 (pstate): New variable.
9890 (write_int, write_object_renaming, write_var_or_type,
9891 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9892 type_int, type_long, type_long_long, type_float, type_double,
9893 type_long_double, type_char, type_boolean, type_system_address):
9894 Add "struct parser_state" argument.
9895 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9896 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9897 var_or_type, aggregate, aggregate_component_list,
9898 positional_list, others, component_group,
9899 component_associations): Update calls to write_exp* and similar
9900 functions in order to use parser state.
9901 (ada_parse, write_var_from_sym, write_int,
9902 write_exp_op_with_string, write_object_renaming,
9903 find_primitive_type, write_selectors, write_ambiguous_var,
9904 write_var_or_type, write_name_assoc, type_int, type_long,
9905 type_long_long, type_float, type_double, type_long_double,
9906 type_char, type_boolean, type_system_address): Add "struct
9907 parser_state" argument. Adjust function to use parser state.
9908 * ada-lang.c (parse): Likewise.
9909 * ada-lang.h: Forward declare "struct parser_state".
9910 (ada_parse): Add "struct parser_state" argument.
9911 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9912 calls to both functions.
9913 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9914 parser state.
9915 (yyparse): Redefine macro to f_parse_internal.
9916 (pstate): New variable.
9917 (parse_number): Add "struct parser_state" argument.
9918 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9919 and similars in order to use parser state.
9920 (parse_number): Adjust code to use parser state.
9921 (yylex): Likewise.
9922 (f_parse): New function.
9923 * f-lang.h: Forward declare "struct parser_state".
9924 (f_parse): Add "struct parser_state" argument.
9925 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9926 parser state.
9927 (yyparse): Redefine macro for java_parse_internal.
9928 (pstate): New variable.
9929 (push_expression_name, push_expression_name, insert_exp): Add
9930 "struct parser_state" argument.
9931 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9932 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9933 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9934 PostIncrementExpression, PostDecrementExpression,
9935 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9936 UnaryExpressionNotPlusMinus, CastExpression,
9937 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9938 RelationalExpression, EqualityExpression, AndExpression,
9939 ExclusiveOrExpression, InclusiveOrExpression,
9940 ConditionalAndExpression, ConditionalOrExpression,
9941 ConditionalExpression, Assignment, LeftHandSide): Update
9942 calls to write_exp* and similars in order to use parser state.
9943 (parse_number): Ajust code to use parser state.
9944 (yylex): Likewise.
9945 (java_parse): New function.
9946 (push_variable): Add "struct parser_state" argument. Adjust
9947 code to user parser state.
9948 (push_fieldnames, push_qualified_expression_name,
9949 push_expression_name, insert_exp): Likewise.
9950 * jv-lang.h: Forward declare "struct parser_state".
9951 (java_parse): Add "struct parser_state" argument.
9952 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9953 parser state.
9954 (yyparse): Redefine macro to m2_parse_internal.
9955 (pstate): New variable.
9956 (type_exp, exp, fblock, variable, type): Update calls to
9957 write_exp* and similars to use parser state.
9958 (yylex): Likewise.
9959 (m2_parse): New function.
9960 * m2-lang.h: Forward declare "struct parser_state".
9961 (m2_parse): Add "struct parser_state" argument.
9962 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9963 * objc-lang.h: Forward declare "struct parser_state".
9964 (end_msglist): Add "struct parser_state" argument.
9965 * p-exp.y (parse_type): Rewrite macro to use parser state.
9966 (yyparse): Redefine macro to pascal_parse_internal.
9967 (pstate): New variable.
9968 (parse_number): Add "struct parser_state" argument.
9969 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9970 write_exp* and similars in order to use parser state.
9971 (parse_number, yylex): Adjust code to use parser state.
9972 (pascal_parse): New function.
9973 * p-lang.h: Forward declare "struct parser_state".
9974 (pascal_parse): Add "struct parser_state" argument.
9975 * go-exp.y (parse_type): Rewrite macro to use parser state.
9976 (yyparse): Redefine macro to go_parse_internal.
9977 (pstate): New variable.
9978 (parse_number): Add "struct parser_state" argument.
9979 (type_exp, exp1, exp, variable, type): Update calls to
9980 write_exp* and similars in order to use parser state.
9981 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9982 to use parser state.
9983 (go_parse): Likewise.
9984 * go-lang.h: Forward declare "struct parser_state".
9985 (go_parse): Add "struct parser_state" argument.
9986
342587c4
DE
99872014-03-27 Doug Evans <dje@google.com>
9988
9989 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9990
33e80786
DE
99912014-03-27 Doug Evans <dje@google.com>
9992
9993 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9994 Remove argument abbrev_section. All callers updated.
9995
1dbab08b
DE
99962014-03-27 Doug Evans <dje@google.com>
9997
9998 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9999 addr_base, ranges_base.
10000
318d3177
KS
100012014-03-26 Keith Seitz <keiths@redhat.com>
10002
10003 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10004 types, not VAR_DOMAIN.
10005
1e54db15
SL
100062014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10007
10008 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10009 "ra" registers.
10010 * features/nios2-linux.c: Regenerated.
10011 * features/nios2.c: Regenerated.
10012
d3839ede
PA
100132014-03-25 Pedro Alves <palves@redhat.com>
10014
10015 * cli/cli-script.c (script_from_file): Force the interpreter to
10016 sync mode.
10017
7588d2ec
PL
100182014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10019
10020 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10021 small stack allocation.
10022
a6290449
TG
100232014-03-24 Tristan Gingold <gingold@adacore.com>
10024
10025 * darwin-nat.c (exc_server): Remove unused prototype.
10026 (darwin_dump_message): Correctly display data on x86_64.
10027 (darwin_encode_reply): Fix style.
10028 Add comments and fix indentation.
10029
31ae9d24 100302014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10031
10032 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10033
6339bfc4
DE
100342014-03-22 Doug Evans <xdje42@gmail.com>
10035
10036 * infcmd.c: Whitespace fixes.
10037 (interrupt_command): Merge two function comments into one.
10038
0a07590b
DE
100392014-03-22 Doug Evans <xdje42@gmail.com>
10040
10041 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10042 All uses updated.
10043
b55fbac4
YQ
100442014-03-22 Yao Qi <yao@codesourcery.com>
10045
10046 * remote.c (target_read_live_memory): Remove.
10047 (memory_xfer_live_readonly_partial): Rename it to
10048 remote_xfer_live_readonly_partial. Remove argument 'object'.
10049 All callers updated. Call remote_read_bytes_1
10050 instead of target_read_live_memory.
10051 * tracepoint.c (set_traceframe_number): Remove.
10052 (make_cleanup_restore_traceframe_number): Likewise .
10053 * tracepoint.h (set_traceframe_number): Remove declaration.
10054 (make_cleanup_restore_traceframe_number): Likewise.
10055
9217e74e
YQ
100562014-03-22 Yao Qi <yao@codesourcery.com>
10057
10058 * remote.c (remote_read_bytes): Move code on reading from the
10059 remote stub to ...
10060 (remote_read_bytes_1): ... here. New function.
10061
8acf9577
YQ
100622014-03-22 Yao Qi <yao@codesourcery.com>
10063
10064 * ctf.c (ctf_xfer_partial): Check the return value of
10065 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10066 return TARGET_XFER_UNAVAILABLE.
10067 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10068 * target.c (target_read_live_memory): Move it to remote.c.
10069 (memory_xfer_live_readonly_partial): Likewise.
10070 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10071 * remote.c (target_read_live_memory): Moved from target.c.
10072 (memory_xfer_live_readonly_partial): Likewise.
10073 (remote_read_bytes): Factored out from
10074 memory_xfer_partial_1.
10075
feef67ab
DE
100762014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10077
10078 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10079 NULL pointer.
10080
b65dc60b
PA
100812014-03-21 Pedro Alves <palves@redhat.com>
10082
10083 * infrun.c (normal_stop): Extend comment.
10084
b4ab256d
HZ
100852014-03-21 Hui Zhu <hui@codesourcery.com>
10086 Pedro Alves <palves@redhat.com>
10087
10088 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10089 static buffer.
10090 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10091 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10092 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10093
deba7593
MR
100942014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10095
10096 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10097 `z' formatted output modifier.
10098
1bff71c3
SDJ
100992014-03-20 Tom Tromey <tromey@redhat.com>
10100 Sergio Durigan Junior <sergiodj@redhat.com>
10101
10102 * probe.c (parse_probes): Turn assert into an ordinary error.
10103 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10104 exceptions when parsing probes. Rearrange the code for clarity.
10105
90e28950
TT
101062014-03-20 Tom Tromey <tromey@redhat.com>
10107
10108 PR gdb/14135
10109 * top.c (execute_command): Only dispatch events if the command
10110 started the target.
10111
beb460e8
PA
101122014-03-20 Tom Tromey <tromey@redhat.com>
10113
10114 PR cli/15718
10115 * infcall.c: Include event-top.h.
10116 (run_inferior_call): Call async_disable_stdin if needed.
10117
99619bea
PA
101182014-03-20 Pedro Alves <palves@redhat.com>
10119
10120 * infrun.c (prepare_to_proceed): Delete.
10121 (thread_still_needs_step_over): New function.
10122 (find_thread_needs_step_over): New function.
10123 (proceed): If the current thread needs a step-over, set its
10124 steping_over_breakpoint flag. Adjust to use
10125 find_thread_needs_step_over instead of prepare_to_proceed.
10126 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10127 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10128 breakpoint.
10129 (switch_back_to_stepped_thread): Step over breakpoints of all
10130 threads not the stepping thread, before switching back to the
10131 stepping thread.
10132
2adfaa28
PA
101332014-03-20 Pedro Alves <palves@redhat.com>
10134
10135 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10136 extern.
10137 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10138 * infrun.c (saved_singlestep_ptid)
10139 (stepping_past_singlestep_breakpoint): Delete.
10140 (resume): Remove stepping_past_singlestep_breakpoint handling.
10141 (proceed): Store the prev_pc of the stepping thread too.
10142 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10143 singlestep_pc.
10144 (enum infwait_states): Delete infwait_thread_hop_state.
10145 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10146 field.
10147 (handle_inferior_event): Adjust.
10148 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10149 handling and the thread-hop code. Before removing single-step
10150 breakpoints, check whether the thread hit a single-step breakpoint
10151 of another thread. If it did, the trap is not a random signal.
10152 (switch_back_to_stepped_thread): If the event thread hit a
10153 single-step breakpoint, unblock it before switching to the
10154 stepping thread. Handle the case of the stepped thread having
10155 advanced already.
10156 (keep_going): Handle the case of the current thread moving past a
10157 single-step breakpoint.
10158
31e77af2
PA
101592014-03-20 Pedro Alves <palves@redhat.com>
10160
10161 PR breakpoints/7143
10162 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10163 are being stepped over.
10164 (breakpoint_address_match): Make extern.
10165 * breakpoint.h (breakpoint_address_match): New declaration.
10166 * inferior.h (stepping_past_instruction_at): New declaration.
10167 * infrun.c (struct step_over_info): New type.
10168 (step_over_info): New global.
10169 (set_step_over_info, clear_step_over_info)
10170 (stepping_past_instruction_at): New functions.
10171 (handle_inferior_event): Clear the step-over info when
10172 trap_expected is cleared.
10173 (resume): Remove now stale comment.
10174 (clear_proceed_status): Clear step-over info.
10175 (proceed): Adjust step-over handling to set or clear the step-over
10176 info instead of removing all breakpoints.
10177 (handle_signal_stop): When setting up a thread-hop, don't remove
10178 breakpoints here.
10179 (stop_stepping): Clear step-over info.
10180 (keep_going): Adjust step-over handling to set or clear step-over
10181 info and then always inserting breakpoints, instead of removing
10182 all breakpoints when stepping over one.
10183
b9f437de
PA
101842014-03-20 Pedro Alves <palves@redhat.com>
10185
10186 * infrun.c (previous_inferior_ptid): Adjust comment.
10187 (deferred_step_ptid): Delete.
10188 (infrun_thread_ptid_changed, prepare_to_proceed)
10189 (init_wait_for_inferior): Adjust.
10190 (handle_signal_stop): Delete deferred_step_ptid handling.
10191
06c868a8
JK
101922014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 PR gdb/15358
10195 * defs.h (sync_quit_force_run): New declaration.
10196 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10197 * event-top.c (async_sigterm_handler): New declaration.
10198 (async_sigterm_token): New variable.
10199 (async_init_signals): Create also async_sigterm_token.
10200 (async_sigterm_handler): New function.
10201 (sync_quit_force_run): New variable.
10202 (handle_sigterm): Replace quit_force call by other calls.
10203 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10204
dea80df0
MR
102052014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10206
10207 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10208 offset into SPE pseudo registers.
10209
0c7e1a46
PA
102102014-03-18 Pedro Alves <palves@redhat.com>
10211
10212 PR gdb/13860
10213 * inferior.h (print_stop_event): Declare.
10214 * infrun.c (print_stop_event): New, factored out from ...
10215 (normal_stop): ... this.
10216 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10217 of bpstat_print/print_stack_frame.
10218
9c1fcd01
TT
102192014-03-17 Tom Tromey <tromey@redhat.com>
10220
10221 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10222
11aa919a
PMR
102232014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10224
10225 * ada-lang.c (decode_constrained_packed_array): Perform a
10226 minimal coercion for reference with coerce_ref instead of
10227 ada_coerce_ref.
10228
d4ccb5e0
TG
102292014-03-17 Tristan Gingold <gingold@adacore.com>
10230
10231 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10232 (darwin_solib_create_inferior_hook): Emit a warning if version
10233 is unhandled.
10234
49840f2a
UW
102352014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10236
10237 * python/py-value.c (get_field_flag): Cast flag_name argument to
10238 PyObject_GetAttrString to support Python 2.4.
10239
ed4123e5
JK
102402014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10241
10242 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10243 (Global Maintainers): Remove Jan Kratochvil.
10244
d6b64346
PA
102452014-03-14 Pedro Alves <palves@redhat.com>
10246
10247 * inferior.h (terminal_ours_for_output): Rename to ...
10248 (child_terminal_ours_for_output): ... this.
10249 (terminal_save_ours): Rename to ...
10250 (child_terminal_save_ours): ... this.
10251 (terminal_ours): Rename to ...
10252 (child_terminal_ours): ... this.
10253 (terminal_inferior): Rename to ...
10254 (child_terminal_inferior): ... this.
10255 (terminal_init_inferior): Rename to ...
10256 (child_terminal_init_inferior): ... this.
10257 (terminal_init_inferior_with_pgrp): Rename to ...
10258 (child_terminal_init_inferior_with_pgrp): ... this.
10259 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10260 (child_terminal_init_with_pgrp): ... this.
10261 (terminal_save_ours): Rename to ...
10262 (child_terminal_save_ours): ... this.
10263 (terminal_init_inferior): Rename to ...
10264 (child_terminal_init): ... this. Adjust.
10265 (terminal_inferior): Rename to ...
10266 (child_terminal_inferior): ... this.
10267 (terminal_ours_for_output): Rename to ...
10268 (child_terminal_ours_for_output): ... this. Adjust.
10269 (terminal_ours): Rename to ...
10270 (child_terminal_ours): ... this.
10271 (terminal_ours_1): Rename to ...
10272 (child_terminal_ours_1): ... this. Adjust.
10273 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10274 * windows-nat.c (do_initial_windows_stuff): Adjust.
10275 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10276 (gnu_terminal_init): ... this. Adjust.
10277 (gnu_target): Adjust.
10278 * inf-child.c (inf_child_target): Adjust.
10279
5a1e8c7a
DE
102802014-03-13 Doug Evans <xdje42@gmail.com>
10281
10282 PR guile/16612
10283 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10284 new eq?-hashtab.
10285
350e1a76
DE
102862014-03-13 Doug Evans <xdje42@gmail.com>
10287
10288 * value.c (record_latest_value): Call release_value_or_incref
10289 instead of release_value.
10290
a69900ae
PA
102912014-03-13 Pedro Alves <palves@redhat.com>
10292
10293 * procfs.c (procfs_target): Don't override to_shortname,
10294 to_longname or to_doc.
10295
5db9f0bd
PA
102962014-03-13 Pedro Alves <palves@redhat.com>
10297
10298 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10299 Unix in user visible strings.
10300
5e3a2c38
SS
103012014-03-12 Stan Shebs <stan@codesourcery.com>
10302
10303 * gdbtypes.h: Annotate comments for Doxygen, add a page
10304 block comment with some general info.
10305
8bc2fe48
PA
103062014-03-12 Pedro Alves <palves@redhat.com>
10307
10308 * infcmd.c (prepare_execution_command): New function, factored out
10309 from several execution commands.
10310 (run_command_1, continue_command, step_1, jump_command)
10311 (signal_command, until_command, advance_command, finish_command)
10312 (attach_command): Use prepare_execution_command.
10313
638c5f49
OJ
103142014-03-12 Omair Javaid <omair.javaid@linaro.org>
10315
10316 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10317 (MAX_BPTS): Define.
10318 (MAX_WPTS): Define.
10319 (struct arm_linux_thread_points): Removed.
10320 (struct arm_linux_process_info): New.
10321 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10322 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10323 (arm_linux_find_breakpoints_by_tid): Removed.
10324 (struct arch_lwp_info): New.
10325 (arm_linux_find_process_pid): New functions.
10326 (arm_linux_add_process): New functions.
10327 (arm_linux_process_info_get): New functions.
10328 (arm_linux_forget_process): New function.
10329 (arm_linux_get_debug_reg_state): New function.
10330 (struct update_registers_data): New.
10331 (update_registers_callback): New function.
10332 (arm_linux_insert_hw_breakpoint1): Updated.
10333 (arm_linux_remove_hw_breakpoint1): Updated.
10334 (arm_linux_insert_hw_breakpoint): Updated.
10335 (arm_linux_remove_hw_breakpoint): Updated.
10336 (arm_linux_insert_watchpoint): Updated.
10337 (arm_linux_remove_watchpoint): Updated.
10338 (arm_linux_new_thread): Updated.
10339 (arm_linux_prepare_to_resume): New function.
10340 (arm_linux_new_fork): New function.
10341 (_initialize_arm_linux_nat): Updated.
10342
6d03af93
PA
103432014-03-12 Pedro Alves <palves@redhat.com>
10344
10345 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10346
b3ccfe11
TT
103472014-03-12 Tom Tromey <tromey@redhat.com>
10348
10349 * inf-child.c (return_zero): New function.
10350 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10351 * aix-thread.c (aix_thread_inferior_created): New function.
10352 (aix_thread_attach): Remove.
10353 (init_aix_thread_ops): Don't set to_attach.
10354 (_initialize_aix_thread): Register inferior_created observer.
10355 * corelow.c (init_core_ops): Don't set to_attach or
10356 to_create_inferior.
10357 * exec.c (init_exec_ops): Don't set to_attach or
10358 to_create_inferior.
10359 * infcmd.c (run_command_1): Use find_run_target. Make direct
10360 target calls.
10361 (attach_command): Use find_attach_target. Make direct target
10362 calls.
10363 * record-btrace.c (init_record_btrace_ops): Don't set
10364 to_create_inferior.
10365 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10366 Remove.
10367 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10368 set to_create_inferior.
10369 * target.c (complete_target_initialization): Add assertion.
10370 (target_create_inferior): Remove.
10371 (find_default_attach, find_default_create_inferior): Remove.
10372 (find_attach_target, find_run_target): New functions.
10373 (find_default_is_async_p, find_default_can_async_p)
10374 (target_supports_non_stop, target_attach): Remove.
10375 (init_dummy_target): Don't set to_create_inferior or
10376 to_supports_non_stop.
10377 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10378 TARGET_DEFAULT_FUNC.
10379 <to_create_inferior>: Add comment.
10380 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10381 TARGET_DEFAULT_RETURN.
10382 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10383 (find_attach_target, find_run_target): Declare.
10384 (target_create_inferior): Remove.
10385 (target_has_execution_1): Update comment.
10386 (target_supports_non_stop): Remove.
10387 * target-delegates.c: Rebuild.
10388
91f83b02
PA
103892014-03-12 Pedro Alves <palves@redhat.com>
10390
10391 * inf-child.h: Update comment to not mention Unix.
10392
f1aea813
PA
103932014-03-12 Pedro Alves <palves@redhat.com>
10394
10395 * inf-child.c: Update top comment to not mention Unix. Add
10396 generic comment describing how this target is meant to be used.
10397 (inf_child_post_attach, inf_child_post_startup_inferior)
10398 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10399 Unix in comment.
10400
ee8e9165
PA
104012014-03-12 Pedro Alves <palves@redhat.com>
10402
10403 * nto-procfs.c: Include inf-child.h.
10404 (procfs_ops): Delete global.
10405 (procfs_can_run): Delete method.
10406 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10407 target pointer instead of referencing procfs_ops.
10408 (procfs_prepare_to_store): Delete.
10409 (init_procfs_ops): Delete function.
10410 (procfs_target): New function, based on init_procfs_ops, but
10411 inherit inf_child_target.
10412 (_initialize_procfs): Use procfs_target.
10413
51a9c8c5
PA
104142014-03-12 Pedro Alves <palves@redhat.com>
10415
10416 * windows-nat.c: Include inf-child.h.
10417 (windows_ops): Delete global.
10418 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10419 methods.
10420 (init_windows_ops): Delete function.
10421 (windows_target): New function, based on init_windows_ops, but
10422 inherit inf_child_target.
10423 (_initialize_windows_nat): Use windows_target. Install x86
10424 specific target methods here.
10425
c1966e26
DE
104262014-03-10 Doug Evans <xdje42@gmail.com>
10427
10428 * guile/guile.c (call_initialize_gdb_module): New function.
10429 (initialize_guile): Replace call to scm_init_guile with call to
10430 scm_with_guile.
10431
023db19c
JB
104322014-03-10 Joel Brobecker <brobecker@adacore.com>
10433
10434 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10435 in call to TYPE_CODE macro.
10436
5ec18f2b
JG
104372014-03-10 Jerome Guitton <guitton@adacore.com>
10438
8668be63
JB
10439 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10440 Resolve tagged types to full view.
5ec18f2b 10441
7d03f2eb
HZ
104422014-03-10 Hui Zhu <hui@codesourcery.com>
10443
10444 * target.h (target_insert_breakpoint): Remove "hardware" from its
10445 comments.
10446
c5164cbc
DE
104472014-03-07 Doug Evans <dje@google.com>
10448
10449 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10450
c4a3fee2
DE
104512014-03-07 Doug Evans <dje@google.com>
10452
10453 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10454 Remove unused local comp_dir_attr. Assert exactly one of
10455 stub_comp_unit_die, stub_comp_dir is non-NULL.
10456
3156469c
JB
104572014-03-07 Joel Brobecker <brobecker@adacore.com>
10458
10459 * target.h (complete_target_initialization, add_target):
10460 Add comment.
10461
c1a7b7c6
PA
104622014-03-07 Pedro Alves <palves@redhat.com>
10463
10464 * go32-nat.c: Include inf-child.h.
10465 (go32_ops): Delete global.
10466 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10467 Delete methods.
10468 (go32_create_inferior): Push the passed in target pointer instead
10469 of referencing go32_ops.
10470 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10471 (go32_target): New function, based on init_go32_ops, but inherit
10472 inf_child_target.
10473 (_initialize_go32_nat): Use go32_target. Move parts of
10474 init_go32_ops here.
10475
d3c1a85f
JB
104762014-03-06 Joel Brobecker <brobecker@adacore.com>
10477
10478 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10479 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10480 SYMBOL_VALUE_ADDRESS.
10481 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10482
5fa1d40e
YQ
104832014-03-06 Yao Qi <yao@codesourcery.com>
10484
10485 * breakpoint.c (get_tracepoint_by_number): Remove argument
10486 optional_p. All callers updated. Adjust comments. Update
10487 output message.
10488 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10489
0c13193f
YQ
104902014-03-06 Yao Qi <yao@codesourcery.com>
10491
10492 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10493 early if get_number returns zero. Use 'p' instead of 'args'.
10494
2217da06
YQ
104952014-03-06 Yao Qi <yao@codesourcery.com>
10496
10497 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10498 message.
10499
cc3da688
YQ
105002014-03-06 Yao Qi <yao@codesourcery.com>
10501
10502 PR breakpoints/16508
10503 * tracepoint.c (check_trace_running): New function.
10504 (trace_find_command): Move code to check_trace_running and
10505 call check_trace_running.
10506 (trace_find_pc_command): Likewise.
10507 (trace_find_tracepoint_command): Likewise.
10508 (trace_find_line_command): Likewise.
10509 (trace_find_range_command): Likewise.
10510 * tracepoint.h (check_trace_running): Likewise.
10511 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10512
6a5f844b
YQ
105132014-03-06 Yao Qi <yao@codesourcery.com>
10514
10515 * target.h (struct target_ops) <to_traceframe_info>: Use
10516 TARGET_DEFAULT_NORETURN (tcomplain ()).
10517 * target-delegates.c: Regenerated.
10518
0f26cec1
PA
105192014-03-05 Pedro Alves <palves@redhat.com>
10520
10521 PR gdb/16575
10522 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10523 void. Update comment.
10524 (dcache_xfer_memory): Delete.
10525 (dcache_read_memory_partial): New, based on the read bits of
10526 dcache_xfer_memory.
10527 (dcache_update): Add status parameter. Use ULONGEST for len, and
10528 adjust. Discard cache lines if the reason for the update was
10529 error.
10530 * dcache.h (dcache_xfer_memory): Delete declaration.
10531 (dcache_read_memory_partial): New declaration.
10532 (dcache_update): Update prototype.
10533 * target.c (raw_memory_xfer_partial): Update the dcache here.
10534 (memory_xfer_partial_1): Don't handle dcache writes here.
10535
b2b255bd
MF
105362014-03-05 Mike Frysinger <vapier@gentoo.org>
10537
10538 * remote-sim.c (gdbsim_load): Add const to prog.
10539
5d9cf8a4
TT
105402014-03-03 Tom Tromey <tromey@redhat.com>
10541
10542 * elfread.c (probe_key): Change to bfd_data.
10543 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10544 now per-BFD, not per-objfile.
10545 * stap-probe.c (stap_probe_destroy): Update comment.
10546 (handle_stap_probe): Allocate on the per-BFD obstack.
10547
729662a5
TT
105482014-03-03 Tom Tromey <tromey@redhat.com>
10549
10550 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10551 * breakpoint.c (create_longjmp_master_breakpoint): Use
10552 get_probe_address.
10553 (add_location_to_breakpoint, bkpt_probe_insert_location)
10554 (bkpt_probe_remove_location): Update.
10555 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10556 * elfread.c (elf_symfile_relocate_probe): Remove.
10557 (elf_probe_fns): Update.
10558 (insert_exception_resume_breakpoint): Change type of "probe"
10559 parameter to bound_probe.
10560 (check_exception_resume): Update.
10561 * objfiles.c (objfile_relocate1): Don't relocate probes.
10562 * probe.c (bound_probe_s): New typedef.
10563 (parse_probes): Use get_probe_address. Set sal's objfile.
10564 (find_probe_by_pc): Return a bound_probe.
10565 (collect_probes): Return a VEC(bound_probe_s).
10566 (compare_probes): Update.
10567 (gen_ui_out_table_header_info): Change type of "probes"
10568 parameter. Update.
10569 (info_probes_for_ops): Update.
10570 (get_probe_address): New function.
10571 (probe_safe_evaluate_at_pc): Update.
10572 * probe.h (struct probe_ops) <get_probe_address>: New field.
10573 <set_semaphore, clear_semaphore>: Add objfile parameter.
10574 (struct probe) <objfile>: Remove field.
10575 <arch>: New field.
10576 <address>: Update comment.
10577 (struct bound_probe): New.
10578 (find_probe_by_pc): Return a bound_probe.
10579 (get_probe_address): Declare.
10580 * solib-svr4.c (struct probe_and_action) <address>: New field.
10581 (hash_probe_and_action, equal_probe_and_action): Update.
10582 (register_solib_event_probe): Add address parameter.
10583 (solib_event_probe_at): Update.
10584 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10585 get_probe_address.
10586 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10587 (stap_get_probe_address): New function.
10588 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10589 (compile_probe_arg): Update.
10590 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10591 address.
10592 (handle_stap_probe): Don't relocate the probe.
10593 (stap_relocate): Remove.
10594 (stap_gen_info_probes_table_values): Update.
10595 (stap_probe_ops): Remove stap_relocate.
10596 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10597 (debug_sym_probe_fns): Update.
10598 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10599 * symtab.c (init_sal): Use memset.
10600 * symtab.h (struct symtab_and_line) <objfile>: New field.
10601 * tracepoint.c (start_tracing, stop_tracing): Update.
10602
ff887920
TT
106032014-03-03 Tom Tromey <tromey@redhat.com>
10604
10605 * probe.h (parse_probes, find_probe_by_pc)
10606 (find_probes_in_objfile): Fix comments.
10607
f0407826
DE
106082014-03-02 Doug Evans <xdje42@gmail.com>
10609
10610 * infrun.c (handle_signal_stop): Replace test for
10611 TARGET_WAITKIND_STOPPED with an assert.
10612
35e6a711
DE
106132014-03-02 Doug Evans <xdje42@gmail.com>
10614
10615 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10616
667f9d0b
DE
106172014-03-02 Doug Evans <xdje42@gmail.com>
10618
10619 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10620
dc92ace0
MK
106212014-03-01 Mark Kettenis <kettenis@gnu.org>
10622
10623 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10624
a900370f
MK
106252014-03-01 Mark Kettenis <kettenis@gnu.org>
10626
10627 * i386obsd-nat.c: Include "obsd-nat.h".
10628 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10629 add_target.
10630 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10631
b72a7981
MK
106322014-03-01 Mark Kettenis <kettenis@gnu.org>
10633
10634 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10635
96c70aba
MK
106362014-03-01 Mark Kettenis <kettenis@gnu.org>
10637
10638 * mips64obsd-nat.c: Include "obsd-nath".
10639 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10640 add_target
10641 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10642
874a80af
MK
106432014-03-01 Mark Kettenis <kettenis@gnu.org>
10644
8fd408f1
MK
10645 * amd64obsd-nat.c: Include "obsd-nat,h.
10646 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10647 add_target.
874a80af
MK
10648 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10649
9cf95373
SC
106502014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10651
10652 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10653 (find_overload_match): Update call to find_oload_champ.
10654 (find_oload_champ_namespace_loop): Likewise
10655
863e4da4
MK
106562014-02-28 Mark Kettenis <kettenis@gnu.org>
10657
025cac40
MK
10658 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10659
1ed586ce
MK
10660 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10661 * config/sparc/obsd64.mh: New file.
10662 * sparc64obsd-nat.c: New file.
10663
863e4da4
MK
10664 * obsd-nat.h: New file.
10665 * obsd-nat.c: New file.
10666 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10667 (ALLDEPFILES): Add obsd-nat.c.
10668
89de4da4
TT
106692014-02-28 Tom Tromey <tromey@redhat.com>
10670
10671 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10672 * cli-out.h (cli_ui_out_impl): Now const.
10673 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10674 * ui-out.c (struct ui_out) <impl>: Now const.
10675 (default_ui_out_impl): Now const.
10676 (ui_out_new): Make 'impl' parameter const.
10677 * ui-out.h (ui_out_new): Update.
10678
c725e7b6
MK
106792014-02-27 Mark Kettenis <kettenis@gnu.org>
10680
10681 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10682
670b46b3
MK
106832014-02-27 Mark Kettenis <kettenis@gnu.org>
10684
10685 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10686
c91550fc
JK
106872014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10688
10689 Additional PR 8882 fix.
10690 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10691
2fa0369e
PA
106922014-02-27 Pedro Alves <palves@redhat.com>
10693
10694 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10695 isn't set.
10696
d632a097
PA
106972014-02-27 Pedro Alves <palves@redhat.com>
10698
10699 PR 12702
10700 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10701 * nat/linux-waitpid.c: Include string.h.
10702 (status_to_str): Moved here and made extern.
10703 * nat/linux-waitpid.h (status_to_str): New declaration.
10704
2ebd5a35
HZ
107052014-02-27 Hui Zhu <hui@codesourcery.com>
10706
10707 PR 12702
10708 * infrun.c (ptid_match): Move ...
10709 * common/ptid.c (ptid_match): ... here.
10710 * inferior.h (ptid_match): Move ...
10711 * common/ptid.h (ptid_match): ... here.
10712
3cdd631f
MK
107132014-02-27 Mark Kettenis <kettenis@gnu.org>
10714
10715 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10716 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10717 gdb_target_obs.
10718
bee30a64
MK
107192014-02-27 Mark Kettenis <kettenis@gnu.org>
10720
10721 * obsd-tdep.c (obsd_auxv_parse): New function.
10722 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10723
10724 * gdbarch.sh (auxv_parse): New.
10725 * gdbarch.h: Regenerated.
10726 * gdbarch.c: Regenerated.
10727 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10728
7a5a839f
LC
107292014-02-26 Ludovic Courtès <ludo@gnu.org>
10730
10731 * guile/scm-value.c (gdbscm_history_append_x): New function.
10732 (value_functions): Add it.
10733
31aa7e4e
JB
107342014-02-27 Joel Brobecker <brobecker@adacore.com>
10735
10736 * dwarf2read.c (attr_value_as_address): New function.
10737 (dwarf2_find_base_address, read_call_site_scope): Use
10738 attr_value_as_address in place of DW_ADDR.
10739 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10740 the low and high addresses. Slight rework of the handling
10741 of the high pc being a constant form, and limit it to
10742 DWARF verson 4 or higher.
10743 (dwarf2_record_block_ranges): Likewise.
10744 (read_partial_die): Likewise.
10745 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10746
9b333ba3
TT
107472014-02-26 Tom Tromey <tromey@redhat.com>
10748
10749 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10750
5f6cac40
TT
107512014-02-26 Tom Tromey <tromey@redhat.com>
10752
10753 * elfread.c (elf_read_minimal_symbols): Return early if
10754 minimal symbols have already been read. Add "ei" parameter.
10755 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10756 * minsyms.c (prim_record_minimal_symbol_full): Update.
10757 * objfiles.h (struct objstats) <n_minsyms>: Move...
10758 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10759 * symmisc.c (print_objfile_statistics): Update.
10760
2750ef27
TT
107612014-02-26 Tom Tromey <tromey@redhat.com>
10762
10763 * elfread.c (elf_read_minimal_symbols): New function, from
10764 elf_symfile_read.
10765 (elf_symfile_read): Call it.
10766
34643a32
TT
107672014-02-26 Tom Tromey <tromey@redhat.com>
10768
10769 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10770 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10771 (lookup_minimal_symbol_solib_trampoline)
10772 (lookup_minimal_symbol_by_pc_section_1)
10773 (lookup_minimal_symbol_and_objfile): Update.
10774 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10775 Don't allocate a minimal symbol if minsyms have already been read.
10776 (build_minimal_symbol_hash_tables): Update.
10777 (install_minimal_symbols): Do nothing if minsyms already read.
10778 Use the per-BFD obstack.
10779 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10780 * objfiles.c (allocate_objfile): Call
10781 terminate_minimal_symbol_table later.
10782 (have_minimal_symbols): Update.
10783 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10784 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10785 Move from struct objfile.
10786 <minsyms_read>: New field.
10787 (struct objfile) <msymbols, minimal_symbol_count,
10788 msymbol_hash, msymbol_demangled_hash>: Move.
10789 (ALL_OBJFILE_MSYMBOLS): Update.
10790 * symfile.c (read_symbols): Set minsyms_read.
10791 (reread_symbols): Update.
10792 * symmisc.c (dump_objfile, dump_msymbols): Update.
10793
2273f0ac
TT
107942014-02-26 Tom Tromey <tromey@redhat.com>
10795
10796 * minsyms.c (msymbols_sort): Remove.
10797 * minsyms.h (msymbols_sort): Remove.
10798 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10799 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10800 * elfread.c (elf_symtab_read): Don't add section offsets.
10801 * xcoffread.c (record_minimal_symbol): Don't add section offset
10802 to minimal symbol address.
10803 * somread.c (text_offset, data_offset): Remove.
10804 (som_symtab_read): Don't add section offsets to minimal symbol
10805 addresses.
10806 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10807 Don't add section offsets to minimal symbols.
10808 * coffread.c (coff_symtab_read): Don't add section offsets
10809 to minimal symbol addresses.
10810 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10811 to minimal symbol addresses.
10812 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10813 section offset to minimal symbol addresses.
10814 * mdebugread.c (parse_partial_symbols): Don't add section
10815 offset to minimal symbol addresses.
10816 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10817 offset to minimal symbol addresses.
10818
77e371c0
TT
108192014-02-26 Tom Tromey <tromey@redhat.com>
10820
10821 * ada-lang.c (ada_main_name): Update.
10822 (ada_add_standard_exceptions): Update.
10823 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10824 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10825 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10826 * auxv.c (ld_so_xfer_auxv): Update.
10827 * avr-tdep.c (avr_scan_prologue): Update.
10828 * ax-gdb.c (gen_var_ref): Update.
10829 * blockframe.c (get_pc_function_start)
10830 (find_pc_partial_function_gnu_ifunc): Update.
10831 * breakpoint.c (create_overlay_event_breakpoint)
10832 (create_longjmp_master_breakpoint)
10833 (create_std_terminate_master_breakpoint)
10834 (create_exception_master_breakpoint): Update.
10835 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10836 * c-valprint.c (c_val_print): Update.
10837 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10838 * common/agent.c (agent_look_up_symbols): Update.
10839 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10840 * dwarf2loc.c (call_site_to_target_addr): Update.
10841 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10842 * elfread.c (elf_gnu_ifunc_record_cache)
10843 (elf_gnu_ifunc_resolve_by_got): Update.
10844 * findvar.c (default_read_var_value): Update.
10845 * frame.c (inside_main_func): Update.
10846 * frv-tdep.c (frv_frame_this_id): Update.
10847 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10848 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10849 Update.
10850 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10851 (hppa_hpux_find_dummy_bpaddr): Update.
10852 * hppa-tdep.c (hppa_symbol_address): Update.
10853 * infcmd.c (until_next_command): Update.
10854 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10855 Update.
10856 * linespec.c (minsym_found, add_minsym): Update.
10857 * linux-nat.c (get_signo): Update.
10858 * linux-thread-db.c (inferior_has_bug): Update.
10859 * m32c-tdep.c (m32c_return_value)
10860 (m32c_m16c_address_to_pointer): Update.
10861 * m32r-tdep.c (m32r_frame_this_id): Update.
10862 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10863 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10864 * maint.c (maintenance_translate_address): Update.
10865 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10866 (frob_address): New function.
10867 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10868 frob_address. Rename parameter to "pc_in".
10869 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10870 addresses.
10871 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10872 Update.
10873 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10874 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10875 * objc-lang.c (find_objc_msgsend): Update.
10876 * objfiles.c (objfile_relocate1): Update.
10877 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10878 * p-valprint.c (pascal_val_print): Update.
10879 * parse.c (write_exp_msymbol): Update.
10880 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10881 (ppc_elfv2_skip_entrypoint): Update.
10882 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10883 * printcmd.c (build_address_symbolic, msym_info)
10884 (address_info): Update.
10885 * proc-service.c (ps_pglobal_lookup): Update.
10886 * psymtab.c (find_pc_sect_psymtab_closer)
10887 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10888 Change msymbol parameter to bound_minimal_symbol.
10889 * ravenscar-thread.c (get_running_thread_id): Update.
10890 * remote.c (remote_check_symbols): Update.
10891 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10892 address.
10893 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10894 * solib-dsbt.c (lm_base): Update.
10895 * solib-frv.c (lm_base, main_got): Update.
10896 * solib-irix.c (locate_base): Update.
10897 * solib-som.c (som_solib_create_inferior_hook)
10898 (link_map_start): Update.
10899 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10900 * solib-svr4.c (elf_locate_base, enable_break): Update.
10901 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10902 (flush_ea_cache): Update.
10903 * stabsread.c (define_symbol, scan_file_globals): Update.
10904 * stack.c (find_frame_funname): Update.
10905 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10906 (debug_qf_find_pc_sect_symtab): Update.
10907 * symfile.c (simple_read_overlay_table)
10908 (simple_overlay_update): Update.
10909 * symfile.h (struct quick_symbol_functions)
10910 <find_pc_sect_symtab>: Change type of msymbol to
10911 bound_minimal_symbol.
10912 * symmisc.c (dump_msymbols): Update.
10913 * symtab.c (find_pc_sect_symtab_via_partial)
10914 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10915 (search_symbols, print_msymbol_info): Update.
10916 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10917 (MSYMBOL_VALUE_ADDRESS): Redefine.
10918 (BMSYMBOL_VALUE_ADDRESS): New macro.
10919 * tracepoint.c (scope_info): Update.
10920 * tui/tui-disasm.c (tui_find_disassembly_address)
10921 (tui_get_begin_asm_address): Update.
10922 * valops.c (find_function_in_inferior): Update.
10923 * value.c (value_static_field, value_fn_field): Update.
10924
3b7344d5
TT
109252014-02-26 Tom Tromey <tromey@redhat.com>
10926
10927 * ada-lang.c (ada_update_initial_language): Update.
10928 (ada_main_name, ada_has_this_exception_support): Update.
10929 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10930 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10931 * arm-tdep.c (arm_skip_stub): Update.
10932 * auxv.c (ld_so_xfer_auxv): Update.
10933 * avr-tdep.c (avr_scan_prologue): Update.
10934 * ax-gdb.c (gen_var_ref): Update.
10935 * breakpoint.c (struct breakpoint_objfile_data)
10936 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10937 type to bound_minimal_symbol.
10938 (create_overlay_event_breakpoint)
10939 (create_longjmp_master_breakpoint)
10940 (create_std_terminate_master_breakpoint)
10941 (create_exception_master_breakpoint): Update.
10942 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10943 * c-exp.y (classify_name): Update.
10944 * coffread.c (coff_symfile_read): Update.
10945 * common/agent.c (agent_look_up_symbols): Update.
10946 * d-lang.c (d_main_name): Update.
10947 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10948 * dec-thread.c (enable_dec_thread): Update.
10949 * dwarf2loc.c (call_site_to_target_addr): Update.
10950 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10951 * eval.c (evaluate_subexp_standard): Update.
10952 * findvar.c (struct minsym_lookup_data) <result>: Change type
10953 to bound_minimal_symbol.
10954 <objfile>: Remove.
10955 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10956 * frame.c (inside_main_func): Update.
10957 * frv-tdep.c (frv_frame_this_id): Update.
10958 * gcore.c (call_target_sbrk): Update.
10959 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10960 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10961 Update.
10962 * go-lang.c (go_main_name): Update.
10963 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10964 (hppa_hpux_find_import_stub_for_addr): Update.
10965 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10966 Update. Change return type.
10967 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10968 type.
10969 * jit.c (jit_breakpoint_re_set_internal): Update.
10970 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10971 Update.
10972 * linux-nat.c (get_signo): Update.
10973 * linux-thread-db.c (inferior_has_bug): Update
10974 * m32c-tdep.c (m32c_return_value)
10975 (m32c_m16c_address_to_pointer): Update.
10976 * m32r-tdep.c (m32r_frame_this_id): Update.
10977 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10978 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10979 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10980 lookup_minimal_symbol. Change return type.
10981 (lookup_minimal_symbol): Remove.
10982 (lookup_bound_minimal_symbol): Update.
10983 (lookup_minimal_symbol_text): Change return type.
10984 (lookup_minimal_symbol_solib_trampoline): Change return type.
10985 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10986 (lookup_minimal_symbol_solib_trampoline): Change return type.
10987 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10988 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10989 (value_nsstring, find_imps): Update.
10990 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10991 * p-lang.c (pascal_main_name): Update.
10992 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10993 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10994 * proc-service.c (ps_pglobal_lookup): Update.
10995 * ravenscar-thread.c (get_running_thread_msymbol): Change
10996 return type.
10997 (has_ravenscar_runtime, get_running_thread_id): Update.
10998 * remote.c (remote_check_symbols): Update.
10999 * sol-thread.c (ps_pglobal_lookup): Update.
11000 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11001 * solib-dsbt.c (lm_base): Update.
11002 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11003 Update.
11004 * solib-irix.c (locate_base): Update.
11005 * solib-som.c (som_solib_create_inferior_hook)
11006 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11007 Update.
11008 * solib-spu.c (spu_enable_break): Update.
11009 * solib-svr4.c (elf_locate_base, enable_break): Update.
11010 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11011 (flush_ea_cache): Update.
11012 * stabsread.c (define_symbol): Update.
11013 * symfile.c (simple_read_overlay_table): Update.
11014 * symtab.c (find_pc_sect_line): Update.
11015 * tracepoint.c (scope_info): Update.
11016 * tui-disasm.c (tui_get_begin_asm_address): Update.
11017 * value.c (value_static_field): Update.
11018
40c1a007
TT
110192014-02-26 Tom Tromey <tromey@redhat.com>
11020
11021 * minsyms.c (prim_record_minimal_symbol_full): Use
11022 SET_MSYMBOL_VALUE_ADDRESS.
11023 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11024 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11025 SET_MSYMBOL_VALUE_ADDRESS.
11026 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11027 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11028
efd66ac6
TT
110292014-02-26 Tom Tromey <tromey@redhat.com>
11030
11031 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11032 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11033 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11034 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11035 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11036 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11037 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11038 * ada-lang.c (ada_main_name): Update.
11039 (ada_lookup_simple_minsym): Update.
11040 (ada_make_symbol_completion_list): Update.
11041 (ada_add_standard_exceptions): Update.
11042 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11043 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11044 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11045 * arm-tdep.c (skip_prologue_function): Update.
11046 (arm_skip_stack_protector, arm_skip_stub): Update.
11047 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11048 (arm_wince_skip_main_prologue): Update.
11049 * auxv.c (ld_so_xfer_auxv): Update.
11050 * avr-tdep.c (avr_scan_prologue): Update.
11051 * ax-gdb.c (gen_var_ref): Update.
11052 * block.c (call_site_for_pc): Update.
11053 * blockframe.c (get_pc_function_start): Update.
11054 (find_pc_partial_function_gnu_ifunc): Update.
11055 * breakpoint.c (create_overlay_event_breakpoint): Update.
11056 (create_longjmp_master_breakpoint): Update.
11057 (create_std_terminate_master_breakpoint): Update.
11058 (create_exception_master_breakpoint): Update.
11059 (resolve_sal_pc): Update.
11060 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11061 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11062 Update.
11063 * c-valprint.c (c_val_print): Update.
11064 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11065 * coffread.c (coff_symfile_read): Update.
11066 * common/agent.c (agent_look_up_symbols): Update.
11067 * dbxread.c (find_stab_function_addr): Update.
11068 (end_psymtab): Update.
11069 * dwarf2loc.c (call_site_to_target_addr): Update.
11070 (func_verify_no_selftailcall): Update.
11071 (tailcall_dump): Update.
11072 (call_site_find_chain_1): Update.
11073 (dwarf_expr_reg_to_entry_parameter): Update.
11074 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11075 (elf_gnu_ifunc_resolve_by_got): Update.
11076 * f-valprint.c (info_common_command): Update.
11077 * findvar.c (read_var_value): Update.
11078 * frame.c (get_prev_frame_1): Update.
11079 (inside_main_func): Update.
11080 * frv-tdep.c (frv_skip_main_prologue): Update.
11081 (frv_frame_this_id): Update.
11082 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11083 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11084 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11085 (gnuv3_skip_trampoline): Update.
11086 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11087 (hppa64_hpux_in_solib_call_trampoline): Update.
11088 (hppa_hpux_skip_trampoline_code): Update.
11089 (hppa64_hpux_search_dummy_call_sequence): Update.
11090 (hppa_hpux_find_import_stub_for_addr): Update.
11091 (hppa_hpux_find_dummy_bpaddr): Update.
11092 * hppa-tdep.c (hppa_symbol_address)
11093 (hppa_lookup_stub_minimal_symbol): Update.
11094 * i386-tdep.c (i386_skip_main_prologue): Update.
11095 (i386_pe_skip_trampoline_code): Update.
11096 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11097 * infcall.c (get_function_name): Update.
11098 * infcmd.c (until_next_command): Update.
11099 * jit.c (jit_breakpoint_re_set_internal): Update.
11100 (jit_inferior_init): Update.
11101 * linespec.c (minsym_found): Update.
11102 (add_minsym): Update.
11103 * linux-fork.c (info_checkpoints_command): Update.
11104 * linux-nat.c (get_signo): Update.
11105 * linux-thread-db.c (inferior_has_bug): Update.
11106 * m32c-tdep.c (m32c_return_value): Update.
11107 (m32c_m16c_address_to_pointer): Update.
11108 (m32c_m16c_pointer_to_address): Update.
11109 * m32r-tdep.c (m32r_frame_this_id): Update.
11110 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11111 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11112 * maint.c (maintenance_translate_address): Update.
11113 * minsyms.c (add_minsym_to_hash_table): Update.
11114 (add_minsym_to_demangled_hash_table): Update.
11115 (msymbol_objfile): Update.
11116 (lookup_minimal_symbol): Update.
11117 (iterate_over_minimal_symbols): Update.
11118 (lookup_minimal_symbol_text): Update.
11119 (lookup_minimal_symbol_by_pc_name): Update.
11120 (lookup_minimal_symbol_solib_trampoline): Update.
11121 (lookup_minimal_symbol_by_pc_section_1): Update.
11122 (lookup_minimal_symbol_and_objfile): Update.
11123 (prim_record_minimal_symbol_full): Update.
11124 (compare_minimal_symbols): Update.
11125 (compact_minimal_symbols): Update.
11126 (build_minimal_symbol_hash_tables): Update.
11127 (install_minimal_symbols): Update.
11128 (terminate_minimal_symbol_table): Update.
11129 (find_solib_trampoline_target): Update.
11130 (minimal_symbol_upper_bound): Update.
11131 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11132 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11133 (mips_skip_pic_trampoline_code): Update.
11134 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11135 * objc-lang.c (selectors_info): Update.
11136 (classes_info): Update.
11137 (find_methods): Update.
11138 (find_imps): Update.
11139 (find_objc_msgsend): Update.
11140 * objfiles.c (objfile_relocate1): Update.
11141 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11142 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11143 * p-valprint.c (pascal_val_print): Update.
11144 * parse.c (write_exp_msymbol): Update.
11145 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11146 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11147 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11148 * printcmd.c (build_address_symbolic): Update.
11149 (sym_info): Update.
11150 (address_info): Update.
11151 * proc-service.c (ps_pglobal_lookup): Update.
11152 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11153 (find_pc_sect_psymtab): Update.
11154 * python/py-framefilter.c (py_print_frame): Update.
11155 * ravenscar-thread.c (get_running_thread_id): Update.
11156 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11157 Update.
11158 * remote.c (remote_check_symbols): Update.
11159 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11160 (rs6000_skip_trampoline_code): Update.
11161 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11162 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11163 * solib-dsbt.c (lm_base): Update.
11164 * solib-frv.c (lm_base): Update.
11165 (main_got): Update.
11166 * solib-irix.c (locate_base): Update.
11167 * solib-som.c (som_solib_create_inferior_hook): Update.
11168 (som_solib_desire_dynamic_linker_symbols): Update.
11169 (link_map_start): Update.
11170 * solib-spu.c (spu_enable_break): Update.
11171 (ocl_enable_break): Update.
11172 * solib-svr4.c (elf_locate_base): Update.
11173 (enable_break): Update.
11174 * spu-tdep.c (spu_get_overlay_table): Update.
11175 (spu_catch_start): Update.
11176 (flush_ea_cache): Update.
11177 * stabsread.c (define_symbol): Update.
11178 (scan_file_globals): Update.
11179 * stack.c (find_frame_funname): Update.
11180 (frame_info): Update.
11181 * symfile.c (simple_read_overlay_table): Update.
11182 (simple_overlay_update): Update.
11183 * symmisc.c (dump_msymbols): Update.
11184 * symtab.c (fixup_section): Update.
11185 (find_pc_sect_line): Update.
11186 (skip_prologue_sal): Update.
11187 (search_symbols): Update.
11188 (print_msymbol_info): Update.
11189 (rbreak_command): Update.
11190 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11191 (completion_list_objc_symbol): Update.
11192 (default_make_symbol_completion_list_break_on): Update.
11193 * tracepoint.c (scope_info): Update.
11194 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11195 (tui_get_begin_asm_address): Update.
11196 * valops.c (find_function_in_inferior): Update.
11197 * value.c (value_static_field): Update.
11198 (value_fn_field): Update.
11199
50e65b17
TT
112002014-02-26 Tom Tromey <tromey@redhat.com>
11201
11202 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11203 bound minimal symbols. Move code that knows about minsym
11204 table layout...
11205 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11206 function.
11207 * minsyms.h (minimal_symbol_upper_bound): Declare.
11208 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11209 minimal_symbol_upper_bound.
11210
1b588015
JB
112112014-02-27 Joel Brobecker <brobecker@adacore.com>
11212
11213 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11214 Use the type's name if its basic type does not have a tag.
11215
dbb9c2b1
JB
112162014-02-27 Joel Brobecker <brobecker@adacore.com>
11217
11218 * dwarf2read.c (read_subrange_type): Add comment.
11219
55426c9d
JB
112202014-02-27 Joel Brobecker <brobecker@adacore.com>
11221
11222 * dwarf2read.c (update_enumeration_type_from_children): New
11223 function, mostly extracted from process_structure_scope.
11224 (read_enumeration_type): Call update_enumeration_type_from_children.
11225 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11226 and flag_flag_enum fields.
11227
f2fce0ca
PA
112282014-02-26 Pedro Alves <palves@redhat.com>
11229
11230 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11231 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11232 to_xfer_partial method.
11233
7a44e40e
PA
112342014-02-26 Pedro Alves <palves@redhat.com>
11235
11236 * target.c (complete_target_initialization): Don't install
11237 default_xfer_partial as to_xfer_partial hook.
11238 (nomemory): Delete.
11239 (update_current_target): Don't INHERIT nor de_fault
11240 deprecated_xfer_memory. Delete de_fault macro.
11241 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11242 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11243 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11244 field.
11245
bd265cd0
PA
112462014-02-26 Pedro Alves <palves@redhat.com>
11247
11248 * go32-nat.c (my_write_child): New function.
11249 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11250 (go32_xfer_partial): New function.
11251 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11252 Instead install a to_xfer_partial hook.
11253
9d46c4e5
PA
112542014-02-26 Pedro Alves <palves@redhat.com>
11255
11256 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11257 to_xfer_partial helper. Rewrite.
11258 (procfs_xfer_partial): New function.
11259 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11260 Install a to_xfer_partial hook.
11261
a1583b1f
PA
112622014-02-26 Pedro Alves <palves@redhat.com>
11263
11264 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11265 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11266 (m32r_xfer_partial): New function.
11267 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11268 Install a to_xfer_partial hook.
11269
6df1b29f
PA
112702014-02-26 Pedro Alves <palves@redhat.com>
11271
11272 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11273 helper.
11274 (mips_xfer_partial): New function.
11275 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11276 hook. Install a to_xfer_partial hook.
11277
dc53a7ad
JB
112782014-02-26 Joel Brobecker <brobecker@adacore.com>
11279
11280 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11281 * gdbtypes.c (create_array_type_with_stride): New function,
11282 renaming create_array_type, but with an added parameter
11283 called "bit_stride".
11284 (create_array_type): Re-implement using
11285 create_array_type_with_stride.
11286 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11287 and DW_AT_bit_stride attributes.
11288
12ab52e9
PA
112892014-02-26 Pedro Alves <palves@redhat.com>
11290
11291 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11292 task-specific breakpoints.
11293
d16461ae
PA
112942014-02-25 Pedro Alves <palves@redhat.com>
11295
11296 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11297 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11298
a8b16220
SS
112992014-02-25 Stan Shebs <stan@codesourcery.com>
11300
11301 * defs.h: Annotate comments for Doxygen.
11302
b9e795ee
TT
113032014-02-25 Tom Tromey <tromey@redhat.com>
11304
11305 * target.h (target_ignore): Don't declare.
11306 * target.c (target_ignore): Remove.
11307
849c862e
JK
113082014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11309
11310 PR gdb/16626
11311 * auto-load.c (auto_load_objfile_script_1): Change filename to
11312 debugfile.
11313
475109d8
JB
113142014-02-25 Joel Brobecker <brobecker@adacore.com>
11315
11316 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11317 documentation. Adjust prototype to match the target_ops
11318 to_xfer_partial method. Adjust implementation accordingly.
11319
e186c3bd
HZ
113202014-02-25 Hui Zhu <hui@codesourcery.com>
11321
11322 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11323 to_traceframe_info.
11324
6d451942
KB
113252014-02-25 Kevin Buettner <kevinb@redhat.com>
11326
041ab8b4 11327 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11328 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11329 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11330 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11331 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11332 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11333 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11334 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11335 New constants.
11336 (rl78_register_type): Use a data pointer type for SP and
11337 new pseudo registers mentioned above. Use a 16 bit integer
11338 type for all other register pairs.
11339 (rl78_register_name, rl78_g10_register_name): Update for
11340 new pseudo registers.
11341 (rl78_pseudo_register_read): Likewise.
11342 (rl78_pseudo_register_write): Likewise.
11343 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11344 to the newly added pseudo registers.
11345
eddf0bae
DE
113462014-02-24 Doug Evans <dje@google.com>
11347
11348 * value.c (record_latest_value): Fix comment.
11349 * printcmd.c (print_command_1): Remove code to handle -1 return from
11350 record_latest_value.
11351
e96027e0
PA
113522014-02-24 Pedro Alves <palves@redhat.com>
11353
11354 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11355 deprecated_xfer_memory hook.
11356 (procfs_xfer_partial): Call procfs_xfer_memory instead
11357 of the deprecated_xfer_memory target hook.
11358 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11359 helper.
11360
0837c976
YZ
113612014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11362
11363 * windows-nat.c (windows_xfer_shared_libraries): Return
11364 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11365 requested object is TARGET_OBJECT_LIBRARIES.
11366
bc113b4e
YQ
113672014-02-24 Yao Qi <yao@codesourcery.com>
11368
11369 * target.h (enum target_xfer_status)
11370 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11371 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11372 explicitly. New.
11373 * corefile.c (memory_error_message): User updated.
11374 * exec.c (section_table_read_available_memory): Likewise.
11375 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11376 * target.c (target_xfer_status_to_string): Likewise.
11377 (raw_memory_xfer_partial): Likewise.
11378 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11379 * valops.c (read_value_memory): Likewise.
11380 * exec.h: Update comments.
11381
01cb8804
YQ
113822014-02-24 Yao Qi <yao@codesourcery.com>
11383
11384 * target.c (target_xfer_status_to_string): Rename argument err
11385 to status.
11386 * target.h (target_xfer_status_to_string): Update declaration.
11387 Replace target_xfer_error_to_string with
11388 target_xfer_status_to_string in comment.
11389
93063aa6
YQ
113902014-02-24 Yao Qi <yao@codesourcery.com>
11391
11392 * mips-linux-nat.c (super_close): Update its type.
11393 (mips_linux_close): Pass 'self' to super_close.
11394
5c328c05
YQ
113952014-02-24 Yao Qi <yao@codesourcery.com>
11396
11397 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11398 * corefile.c (read_memory): Adjusted.
11399 * target.c (target_write_with_progress): Adjusted.
11400
f73023dd
YQ
114012014-02-23 Yao Qi <yao@codesourcery.com>
11402
11403 Revert two patches:
11404
11405 2013-10-25 Yao Qi <yao@codesourcery.com>
11406
11407 * remote.c (remote_traceframe_info): Return early if
11408 traceframe is not selected.
11409
11410 2013-07-19 Yao Qi <yao@codesourcery.com>
11411
11412 * target.c (update_current_target): Change the default action
11413 of 'to_traceframe_info' from tcomplain to return_zero.
11414 * target.h (struct target_ops) <to_traceframe_info>: Add more
11415 comments.
11416
5a2eb0ef
YQ
114172014-02-23 Yao Qi <yao@codesourcery.com>
11418
11419 * valops.c (read_value_memory): Rewrite it. Call
11420 target_xfer_partial in a loop.
11421 * exec.h (section_table_available_memory): Remove declaration.
11422 Move comments to ...
11423 * exec.c (section_table_available_memory): ... here. Make it
11424 static.
11425
1ee79381
YQ
114262014-02-23 Yao Qi <yao@codesourcery.com>
11427
11428 * exec.c (section_table_read_available_memory): New function.
11429 * exec.h (section_table_read_available_memory): Declare.
11430 * ctf.c (ctf_xfer_partial): Call
11431 section_table_read_available_memory.
11432 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11433
1ca49d37
YQ
114342014-02-23 Yao Qi <yao@codesourcery.com>
11435
11436 * ctf.c (ctf_xfer_partial): Move code to ...
11437 * exec.c (exec_read_partial_read_only): ... it. New function.
11438 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11439 * tracefile.c: Include "exec.h".
11440 * exec.h (exec_read_partial_read_only): Declare.
11441
a283690e
YQ
114422014-02-23 Yao Qi <yao@codesourcery.com>
11443
11444 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11445 (tfile_has_memory): Remove.
11446 (init_tfile_ops): Don't set fields to_has_all_memory and
11447 to_has_memory of tfile_ops.
11448 * tracefile.c (tracefile_has_all_memory): New function.
11449 (tracefile_has_memory): New function.
11450 (init_tracefile_ops): Initialize fields to_has_all_memory and
11451 to_has_memory of 'ops'.
11452
12e03cd0
YQ
114532014-02-23 Yao Qi <yao@codesourcery.com>
11454
11455 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11456 (ctf_thread_alive, ctf_get_trace_status): Remove.
11457 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11458 init_tracefile_ops.
11459 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11460 (tfile_has_stack, tfile_has_registers): Remove.
11461 (tfile_thread_alive): Remove.
11462 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11463 init_tracefile_ops.
11464 * tracefile.c (tracefile_has_stack): New function.
11465 (tracefile_has_registers): New function.
11466 (tracefile_thread_alive): New function.
11467 (tracefile_get_trace_status): New function.
11468 (init_tracefile_ops): New function.
11469 * tracefile.h (init_tracefile_ops): Declare.
11470
11395323
YQ
114712014-02-23 Yao Qi <yao@codesourcery.com>
11472
11473 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11474 (O_LARGEFILE): Likewise.
11475 (tfile_ops): Likewise.
11476 (TRACE_HEADER_SIZE): Likewise.
11477 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11478 (cur_data_size): Likewise.
11479 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11480 (tfile_close, tfile_files_info): Likewise.
11481 (tfile_get_trace_status): Likewise.
11482 (tfile_get_tracepoint_status): Likewise.
11483 (tfile_get_traceframe_address): Likewise.
11484 (tfile_trace_find, match_blocktype): Likewise.
11485 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11486 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11487 (tfile_get_trace_state_variable_value): Likewise.
11488 (tfile_has_all_memory, tfile_has_memory): Likewise.
11489 (tfile_has_stack, tfile_has_registers): Likewise.
11490 (tfile_thread_alive, build_traceframe_info): Likewise.
11491 (tfile_traceframe_info, init_tfile_ops): Likewise.
11492 (_initialize_tracepoint): Don't call init_tfile_ops
11493 and add_target_with_completer.
11494 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11495 exec.h, completer.h and filenames.h.
11496 (_initialize_tracefile_tfile): New function.
11497
7951c4eb
YQ
114982014-02-23 Yao Qi <yao@codesourcery.com>
11499
11500 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11501 tracefile-tfile.o.
11502 (HFILES_NO_SRCDIR): Add tracefile.h.
11503 * ctf.c: Include "tracefile.h".
11504 * tracefile.h: New file.
11505 * tracefile.c: New file
11506 * tracefile-tfile.c: New file.
11507 * tracepoint.c: Include "tracefile.h".
11508 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11509 (stop_reason_names): Add const.
11510 (trace_file_writer_xfree): Move it to tracefile.c.
11511 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11512 (trace_save_ctf): Likewise.
11513 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11514 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11515 (tfile_write_header, tfile_write_regblock_type): Likewise.
11516 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11517 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11518 (tfile_write_raw_data, tfile_end): Likewise.
11519 (tfile_trace_file_writer_new): Likewise.
11520 (free_uploaded_tp): Make it extern.
11521 (free_uploaded_tsv): Make it extern.
11522 (_initialize_tracepoint): Move code to register command 'tsave'
11523 to tracefile.c.
11524 * tracepoint.h (stop_reason_names): Declare.
11525 (struct trace_frame_write_ops): Move it to tracefile.h.
11526 (struct trace_file_write_ops): Likewise.
11527 (struct trace_file_writer): Likewise.
11528 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11529
184cd072
JK
115302014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11531
11532 PR gdb/16594
11533 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11534 process name.
11535 (get_cores_used_by_process): New parameter num_cores, use it.
11536 (linux_xfer_osdata_processes): Pass num_cores to it.
11537 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11538 process name.
11539
c63528fc
AK
115402014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11541
11542 * target.c (memory_xfer_partial): Fix length arg in call to
11543 breakpoint_xfer_memory.
11544
d7b30f67
SDJ
115452014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11546
11547 PR tdep/16397
11548 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11549 number comes after the + or - signs. Adjust length of register
11550 name to be extracted.
11551
8838afaf
TT
115522014-02-20 Tom Tromey <tromey@redhat.com>
11553
11554 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11555 (ada_varobj_ops): Mark "extern".
11556
05227d14
TT
115572014-02-20 Tom Tromey <tromey@redhat.com>
11558
11559 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11560
1254eefc
DE
115612014-02-20 Doug Evans <xdje42@gmail.com>
11562
11563 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11564 All callers updated.
11565 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11566 All callers updated.
11567 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11568 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11569
adde2bff
DE
115702014-02-20 lin zuojian <manjian2006@gmail.com>
11571 Joel Brobecker <brobecker@adacore.com>
11572 Doug Evans <xdje42@gmail.com>
11573
11574 PR symtab/16581
11575 * dwarf2read.c (struct die_info): New member in_process.
11576 (reset_die_in_process): New function.
11577 (process_die): Set it at the start, reset when returning.
11578 (inherit_abstract_dies): Only call process_die if origin_child_die
11579 not already being processed.
11580
3be75f87
JB
115812014-02-20 Joel Brobecker <brobecker@adacore.com>
11582
11583 * windows-nat.c (handle_unload_dll): Add function documentation.
11584 (do_initial_windows_stuff): Add comment explaining why we wait
11585 until after inferior initialization has finished before
11586 processing all DLLs.
11587
47f7ffdb
JB
115882014-02-20 Joel Brobecker <brobecker@adacore.com>
11589
11590 * windows-nat.c (get_module_name): Delete.
11591 (windows_get_exec_module_filename): New function, mostly
11592 inspired from get_module_name.
11593 (windows_pid_to_exec_file): Replace call to get_module_name
11594 by call to windows_get_exec_module_filename.
11595
1cd9feab
JB
115962014-02-20 Joel Brobecker <brobecker@adacore.com>
11597
11598 * windows-nat.c (handle_load_dll): Rewrite this function's
11599 introductory comment. Remove code using get_module_name
11600 to get the DLL's name.
11601
ea39ad35
JB
116022014-02-20 Joel Brobecker <brobecker@adacore.com>
11603
11604 * windows-nat.c (get_windows_debug_event): Ignore
11605 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11606 if windows_initialization_done == 0.
11607 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11608 Adjust implementation to always load all DLLs.
11609 (do_initial_windows_stuff): Replace call to
11610 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11611
95060284
JB
116122014-02-20 Joel Brobecker <brobecker@adacore.com>
11613
11614 * windows-nat.c (_initialize_windows_nat): Deprecate the
11615 "dll-symbols" command. Turn the "add-shared-symbol-files"
11616 and "assf" aliases into commands, and deprecate them as well.
11617 * NEWS: Add entry explaining that "dll-symbols" and its two
11618 aliases are now deprecated.
11619
8d4fdb12
JB
116202014-02-20 Joel Brobecker <brobecker@adacore.com>
11621
11622 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11623 new-line in debug string. Remove trailing spaces.
11624
1b281443
SS
116252014-02-19 Stan Shebs <stan@codesourcery.com>
11626
11627 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11628
f7bd0f78
SC
116292014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11630
11631 * NEWS: Add entry for the new feature
11632 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11633 and class values.
11634
399ebc3d
SS
116352014-02-19 Stan Shebs <stan@codesourcery.com>
11636
11637 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11638
c658158d
PA
116392014-02-19 Pedro Alves <palves@redhat.com>
11640
11641 * common/ptid.h (struct ptid): Mention that process_stratum
11642 targets should prefer ptid.lwp.
11643
ba348170
PA
116442014-02-19 Pedro Alves <palves@redhat.com>
11645
11646 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11647 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11648 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11649 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11650 store remote thread ids rather than ptid.tid.
11651 (_initialize_remote): Adjust.
11652
ac01945b
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target.c (target_get_unwinder): Rewrite.
11656 (target_get_tailcall_unwinder): Rewrite.
11657 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11658 (record_btrace_to_get_tailcall_unwinder): New function.
11659 (init_record_btrace_ops): Update.
11660 * target.h (struct target_ops) <to_get_unwinder,
11661 to_get_tailcall_unwinder>: Now function pointers. Use
11662 TARGET_DEFAULT_RETURN.
11663
8476dc92
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11667 argument.
11668 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11669
c0eca49f
TT
116702014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11673 directly.
11674 * target-delegates.c: Rebuild.
11675 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11676 TARGET_DEFAULT_FUNC.
11677 * target.c (default_target_decr_pc_after_break): Rename from
11678 forward_target_decr_pc_after_break. Simplify.
11679 (target_decr_pc_after_break): Rely on delegation.
11680
596b6b39
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target.c (update_current_target): Do not INHERIT to_doc or
11684 to_magic. Do not de_fault to_open or to_close.
11685
b427c1bc
TT
116862014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * gcore.h (objfile_find_memory_regions): Declare.
11689 * gcore.c (objfile_find_memory_regions): No longer static. Add
11690 "self" argument.
11691 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11692 * exec.c: Include gcore.h.
11693 (exec_set_find_memory_regions): Remove.
11694 (exec_find_memory_regions): Remove.
11695 (exec_do_find_memory_regions): Remove.
11696 (init_exec_ops): Update.
11697 * defs.h (exec_set_find_memory_regions): Remove.
11698
9b144037
TT
116992014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target-delegates.c: Rebuild.
11702 * target.h (struct target_ops) <to_extra_thread_info,
11703 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11704 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11705 not 0, in TARGET_DEFAULT_RETURN.
11706
555bbdeb
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.c (complete_target_initialization): Remove casts. Use
11710 return_zero_has_execution.
11711 (return_zero): Add "ignore" argument.
11712 (return_zero_has_execution): New function.
11713 (init_dummy_target): Remove casts. Use
11714 return_zero_has_execution.
11715
be4ddd36
TT
117162014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target.c (update_current_target): Update comments. Do not
11719 INHERIT to_stratum.
11720
2117c711
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11724 needed.
11725 * corelow.c (core_read_description): Delegate when needed.
11726 * remote.c (remote_read_description): Delegate when needed.
11727 * target-delegates.c: Rebuild.
11728 * target.c (target_read_description): Rewrite.
11729 * target.h (struct target_ops) <to_read_description>: Update
11730 comment. Use TARGET_DEFAULT_RETURN.
11731
e88ef65c
TT
117322014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target-delegates.c: Rebuild.
11735 * target.c (update_current_target): Don't inherit or default
11736 to_can_run.
11737 (find_default_run_target): Check against delegate_can_run.
11738 * target.h (struct target_ops) <to_can_run>: Use
11739 TARGET_DEFAULT_RETURN.
11740
86a0854a
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (target_disconnect): Unconditionally delegate.
11745 * target.h (struct target_ops) <to_disconnect>: Use
11746 TARGET_DEFAULT_NORETURN.
11747
ee97f592
TT
117482014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * record.c (record_stop): Unconditionally delegate.
11751 * target-delegates.c: Rebuild.
11752 * target.c (target_stop_recording): Unconditionally delegate.
11753 * target.h (struct target_ops) <to_stop_recording>: Use
11754 TARGET_DEFAULT_IGNORE.
11755
6dc7fcf4
TT
117562014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target-delegates.c: Rebuild.
11759 * target.c (target_enable_btrace): Unconditionally delegate.
11760 * target.h (struct target_ops) <to_enable_btrace>: Use
11761 TARGET_DEFAULT_NORETURN.
11762
eb5b20d4
TT
117632014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target-delegates.c: Rebuild.
11766 * target.c (target_read_btrace): Unconditionally delegate.
11767 * target.h (struct target_ops) <to_read_btrace>: Use
11768 TARGET_DEFAULT_NORETURN.
11769
9ace480d
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (target_teardown_btrace): Unconditionally delegate.
11774 * target.h (struct target_ops) <to_teardown_btrace>: Use
11775 TARGET_DEFAULT_NORETURN.
11776
8dc292d3
TT
117772014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target-delegates.c: Rebuild.
11780 * target.c (target_disable_btrace): Unconditionally delegate.
11781 * target.h (struct target_ops) <to_disable_btrace>: Use
11782 TARGET_DEFAULT_NORETURN.
11783
58a5184e
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target-delegates.c: Rebuild.
11787 * target.c (default_search_memory): New function.
11788 (simple_search_memory): Update comment.
11789 (target_search_memory): Unconditionally delegate.
11790 * target.h (struct target_ops) <to_search_memory>: Use
11791 TARGET_DEFAULT_FUNC.
11792
8de71aab
TT
117932014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * auxv.c (default_auxv_parse): No longer static.
11796 (target_auxv_parse): Unconditionally delegate.
11797 * auxv.h (default_auxv_parse): Declare.
11798 * target-delegates.c: Rebuild.
11799 * target.c: Include auxv.h.
11800 * target.h (struct target_ops) <to_auxv_parse>: Use
11801 TARGET_DEFAULT_FUNC.
11802
6b2c5a57
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (target_memory_map): Unconditionally delegate.
11807 * target.h (struct target_ops) <to_memory_map>: Use
11808 TARGET_DEFAULT_RETURN.
11809
cbffc065
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_thread_alive): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_thread_alive>: Use
11815 TARGET_DEFAULT_RETURN.
11816
f09e2107
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_save_record): Unconditionally delegate.
11821 * target.h (struct target_ops) <to_save_record>: Use
11822 TARGET_DEFAULT_NORETURN.
11823
07366925
TT
118242014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target-delegates.c: Rebuild.
11827 * target.c (target_delete_record): Unconditionally delegate.
11828 * target.h (struct target_ops) <to_delete_record>: Use
11829 TARGET_DEFAULT_NORETURN.
11830
dd2e9d25
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target-delegates.c: Rebuild.
11834 * target.c (target_record_is_replaying): Unconditionally
11835 delegate.
11836 * target.h (struct target_ops) <to_record_is_replaying>: Use
11837 TARGET_DEFAULT_RETURN.
11838
671e76cc
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (target_goto_record_begin): Unconditionally delegate.
11843 * target.h (struct target_ops) <to_goto_record_begin>: Use
11844 TARGET_DEFAULT_NORETURN.
11845
e9179bb3
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (target_goto_record_end): Unconditionally delegate.
11850 * target.h (struct target_ops) <to_goto_record_end>: Use
11851 TARGET_DEFAULT_NORETURN.
11852
05969c84
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (target_goto_record): Unconditionally delegate.
11857 * target.h (struct target_ops) <to_goto_record>: Use
11858 TARGET_DEFAULT_NORETURN.
11859
3679abfa
TT
118602014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target-delegates.c: Rebuild.
11863 * target.c (target_insn_history): Unconditionally delegate.
11864 * target.h (struct target_ops) <to_insn_history>: Use
11865 TARGET_DEFAULT_NORETURN.
11866
8444ab58
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (target_insn_history_from): Unconditionally delegate.
11871 * target.h (struct target_ops) <to_insn_history_from>: Use
11872 TARGET_DEFAULT_NORETURN.
11873
c29302cc
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (target_insn_history_range): Unconditionally delegate.
11878 * target.h (struct target_ops) <to_insn_history_range>: Use
11879 TARGET_DEFAULT_NORETURN.
11880
170049d4
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (target_call_history): Unconditionally delegate.
11885 * target.h (struct target_ops) <to_call_history>: Use
11886 TARGET_DEFAULT_NORETURN.
11887
16fc27d6
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (target_call_history_from): Unconditionally delegate.
11892 * target.h (struct target_ops) <to_call_history_from>: Use
11893 TARGET_DEFAULT_NORETURN.
11894
115d9817
TT
118952014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (target_call_history_range): Unconditionally delegate.
11899 * target.h (struct target_ops) <to_call_history_range>: Use
11900 TARGET_DEFAULT_NORETURN.
11901
eb276a6b
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target-delegates.c: Rebuild.
11905 * target.c (target_verify_memory): Unconditionally delegate.
11906 * target.h (struct target_ops) <to_verify_memory>: Use
11907 TARGET_DEFAULT_NORETURN.
11908
9e538d0d
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target-delegates.c: Rebuild.
11912 * target.c (target_core_of_thread): Unconditionally delegate.
11913 * target.h (struct target_ops) <to_core_of_thread>: Use
11914 TARGET_DEFAULT_RETURN.
11915
f6fb2925
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (target_flash_done): Unconditionally delegate.
11920 * target.h (struct target_ops) <to_flash_done>: Use
11921 TARGET_DEFAULT_NORETURN.
11922
e8a6c6ac
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target-delegates.c: Rebuild.
11926 * target.c (target_flash_erase): Unconditionally delegate.
11927 * target.h (struct target_ops) <to_flash_erase>: Use
11928 TARGET_DEFAULT_NORETURN.
11929
7e35c012
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (target_get_section_table): Unconditionally delegate.
11934 * target.h (struct target_ops) <to_get_section_table>: Use
11935 TARGET_DEFAULT_RETURN.
11936
770234d3
TT
119372014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target-delegates.c: Rebuild.
11940 * target.c (target_pid_to_str): Unconditionally delegate.
11941 (init_dummy_target): Don't initialize to_pid_to_str.
11942 (default_pid_to_str): Rename from dummy_pid_to_str.
11943 * target.h (struct target_ops) <to_pid_to_str>: Use
11944 TARGET_DEFAULT_FUNC.
11945
09b0dc2b
TT
119462014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_find_new_threads): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_find_new_threads>: Use
11951 TARGET_DEFAULT_RETURN.
11952
7d4f8efa
TT
119532014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_program_signals): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_program_signals>: Use
11958 TARGET_DEFAULT_IGNORE.
11959
035cad7f
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_pass_signals): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_pass_signals>: Use
11965 TARGET_DEFAULT_IGNORE.
11966
8d657035
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (default_mourn_inferior): New function.
11971 (target_mourn_inferior): Unconditionally delegate.
11972 * target.h (struct target_ops) <to_mourn_inferior>: Use
11973 TARGET_DEFAULT_FUNC.
11974
098dba18
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (default_follow_fork): New function.
11979 (target_follow_fork): Unconditionally delegate.
11980 * target.h (struct target_ops) <to_follow_fork>: Use
11981 TARGET_DEFAULT_FUNC.
11982
423a4807
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (target_kill): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_kill>: Use
11988 TARGET_DEFAULT_NORETURN.
11989
6c7e5e5c
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target-delegates.c: Rebuild.
11993 * target.c (target_masked_watch_num_registers): Unconditionally
11994 delegate.
11995 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11996 Use TARGET_DEFAULT_RETURN.
11997
8b1c364c
TT
119982014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target-delegates.c: Rebuild.
12001 * target.c (target_remove_mask_watchpoint): Unconditionally
12002 delegate.
12003 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12004 TARGET_DEFAULT_RETURN.
12005
cd4ae029
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target-delegates.c: Rebuild.
12009 * target.c (target_insert_mask_watchpoint): Unconditionally
12010 delegate.
12011 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12012 TARGET_DEFAULT_RETURN.
12013
a134316b
TT
120142014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_ranged_break_num_registers): Unconditionally
12018 delegate.
12019 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12020 Use TARGET_DEFAULT_RETURN.
12021
ad5989bd
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target-delegates.c: Rebuild.
12025 * target.c (target_fetch_registers): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_fetch_registers>: Use
12027 TARGET_DEFAULT_NORETURN.
12028
46ee7e8d
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12033 to_stop.
12034 * target.h (struct target_ops) <to_stop>: Use
12035 TARGET_DEFAULT_IGNORE.
12036
843f59ed
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12041 to_can_run_breakpoint_commands.
12042 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12043 Use TARGET_DEFAULT_RETURN.
12044
ccfde2a0
TT
120452014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12049 to_supports_evaluation_of_breakpoint_conditions.
12050 * target.h (struct target_ops)
12051 <to_supports_evaluation_of_breakpoint_conditions>: Use
12052 TARGET_DEFAULT_RETURN.
12053
0de91722
TT
120542014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target-delegates.c: Rebuild.
12057 * target.c (update_current_target): Don't inherit or default
12058 to_augmented_libraries_svr4_read.
12059 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12060 Use TARGET_DEFAULT_RETURN.
12061
9a7d8b48
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target-delegates.c: Rebuild.
12065 * target.c (update_current_target): Don't inherit or default
12066 to_can_use_agent.
12067 * target.h (struct target_ops) <to_can_use_agent>: Use
12068 TARGET_DEFAULT_RETURN.
12069
d9db5b21
TT
120702014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target-delegates.c: Rebuild.
12073 * target.c (update_current_target): Don't inherit or default
12074 to_use_agent.
12075 * target.h (struct target_ops) <to_use_agent>: Use
12076 TARGET_DEFAULT_NORETURN.
12077
92155eeb
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target-delegates.c: Rebuild.
12081 * target.c (update_current_target): Don't inherit or default
12082 to_traceframe_info.
12083 (return_null): Remove.
12084 * target.h (struct target_ops) <to_traceframe_info>: Use
12085 TARGET_DEFAULT_RETURN.
12086
d6522a22
TT
120872014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target-delegates.c: Rebuild.
12090 * target.c (update_current_target): Don't inherit or default
12091 to_static_tracepoint_markers_by_strid.
12092 * target.h (struct target_ops)
12093 <to_static_tracepoint_markers_by_strid>: Use
12094 TARGET_DEFAULT_NORETURN.
12095
4c3e4425
TT
120962014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target-delegates.c: Rebuild.
12099 * target.c (update_current_target): Don't inherit or default
12100 to_static_tracepoint_marker_at.
12101 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12102 Use TARGET_DEFAULT_RETURN.
12103
dcd6917f
TT
121042014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * target-delegates.c: Rebuild.
12107 * target.c (update_current_target): Don't inherit or default
12108 to_set_permissions.
12109 * target.h (struct target_ops) <to_set_permissions>: Use
12110 TARGET_DEFAULT_IGNORE.
12111
22bcceee
TT
121122014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target-delegates.c: Rebuild.
12115 * target.c (update_current_target): Don't inherit or default
12116 to_get_tib_address.
12117 * target.h (struct target_ops) <to_get_tib_address>: Use
12118 TARGET_DEFAULT_NORETURN.
12119
8586ccaa
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target-delegates.c: Rebuild.
12123 * target.c (update_current_target): Don't inherit or default
12124 to_set_trace_notes.
12125 * target.h (struct target_ops) <to_set_trace_notes>: Use
12126 TARGET_DEFAULT_RETURN.
12127
91df8d1d
TT
121282014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * target-delegates.c: Rebuild.
12131 * target.c (update_current_target): Don't initialize
12132 to_set_trace_buffer_size.
12133 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12134 TARGET_DEFAULT_IGNORE.
12135
8d526939
TT
121362014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target-delegates.c: Rebuild.
12139 * target.c (update_current_target): Don't inherit or default
12140 to_set_circular_trace_buffer.
12141 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12142 TARGET_DEFAULT_IGNORE.
12143
0bcfeddf
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12148 to_set_disconnected_tracing.
12149 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12150 TARGET_DEFAULT_IGNORE.
12151
9249843f
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_get_min_fast_tracepoint_insn_len.
12157 (return_minus_one): Remove.
12158 * target.h (struct target_ops)
12159 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12160
ace92e7d
TT
121612014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_get_raw_trace_data.
12166 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12167 TARGET_DEFAULT_NORETURN.
12168
08120467
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_upload_trace_state_variables.
12174 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12175 Use TARGET_DEFAULT_RETURN.
12176
1e949b00
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_upload_tracepoints.
12182 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12183 TARGET_DEFAULT_RETURN.
12184
a2e6c147
TT
121852014-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_save_trace_data.
12190 * target.h (struct target_ops) <to_save_trace_data>: Use
12191 TARGET_DEFAULT_NORETURN.
12192
959bcd0b
TT
121932014-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_get_trace_state_variable_value.
12198 * target.h (struct target_ops)
12199 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12200
afc94e66
TT
122012014-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_trace_find.
12206 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12207
e51c07ea
TT
122082014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target-delegates.c: Rebuild.
12211 * target.c (update_current_target): Don't inherit or default
12212 to_trace_stop.
12213 * target.h (struct target_ops) <to_trace_stop>: Use
12214 TARGET_DEFAULT_NORETURN.
12215
6fea14cd
TT
122162014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target-delegates.c: Rebuild.
12219 * target.c (update_current_target): Don't inherit or default
12220 to_get_tracepoint_status.
12221 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12222 TARGET_DEFAULT_NORETURN.
12223
4072d4ff
TT
122242014-02-19 Tom Tromey <tromey@redhat.com>
12225
12226 * target-delegates.c: Rebuild.
12227 * target.c (update_current_target): Don't inherit or default
12228 to_get_trace_status.
12229 * target.h (struct target_ops) <to_get_trace_status>: Use
12230 TARGET_DEFAULT_RETURN.
12231
25da2e80
TT
122322014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target-delegates.c: Rebuild.
12235 * target.c (update_current_target): Don't inherit or default
12236 to_trace_start.
12237 * target.h (struct target_ops) <to_trace_start>: Use
12238 TARGET_DEFAULT_NORETURN.
12239
86dd181d
TT
122402014-02-19 Tom Tromey <tromey@redhat.com>
12241
12242 * target-delegates.c: Rebuild.
12243 * target.c (update_current_target): Don't inherit or default
12244 to_trace_set_readonly_regions.
12245 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12246 Use TARGET_DEFAULT_NORETURN.
12247
05c41993
TT
122482014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target-delegates.c: Rebuild.
12251 * target.c (update_current_target): Don't inherit or default
12252 to_disable_tracepoint.
12253 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12254 TARGET_DEFAULT_NORETURN.
12255
151f70f1
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target-delegates.c: Rebuild.
12259 * target.c (update_current_target): Don't inherit or default
12260 to_enable_tracepoint.
12261 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12262 TARGET_DEFAULT_NORETURN.
12263
94eb98b9
TT
122642014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target-delegates.c: Rebuild.
12267 * target.c (update_current_target): Don't inherit or default
12268 to_download_trace_state_variable.
12269 * target.h (struct target_ops) <to_download_trace_state_variable>:
12270 Use TARGET_DEFAULT_NORETURN.
12271
719acc4a
TT
122722014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * target-delegates.c: Rebuild.
12275 * target.c (update_current_target): Don't inherit or default
12276 to_can_download_tracepoint.
12277 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12278 TARGET_DEFAULT_RETURN.
12279
9a980a22
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target-delegates.c: Rebuild.
12283 * target.c (update_current_target): Don't inherit or default
12284 to_download_tracepoint.
12285 * target.h (struct target_ops) <to_download_tracepoint>: Use
12286 TARGET_DEFAULT_NORETURN.
12287
5536135b
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target-delegates.c: Rebuild.
12291 * target.c (update_current_target): Don't inherit or default
12292 to_trace_init.
12293 * target.h (struct target_ops) <to_trace_init>: Use
12294 TARGET_DEFAULT_RETURN.
12295
9409d39e
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target-delegates.c: Rebuild.
12299 * target.c (update_current_target): Don't inherit or default
12300 to_supports_string_tracing.
12301 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12302 TARGET_DEFAULT_RETURN.
12303
aab1b22d
TT
123042014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * target-delegates.c: Rebuild.
12307 * target.c (update_current_target): Don't inherit or default
12308 to_supports_enable_disable_tracepoint.
12309 * target.h (struct target_ops)
12310 <to_supports_enable_disable_tracepoint>: Use
12311 TARGET_DEFAULT_RETURN.
12312
a7304748
TT
123132014-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_supports_multi_process.
12318 * target.h (struct target_ops) <to_supports_multi_process>: Use
12319 TARGET_DEFAULT_RETURN.
12320
4229b31d
TT
123212014-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_get_ada_task_ptid.
12326 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12327 TARGET_DEFAULT_FUNC.
12328
43eba180
TT
123292014-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_thread_architecture.
12334 * target.h (struct target_ops) <to_thread_architecture>: Use
12335 TARGET_DEFAULT_FUNC.
12336
fe31bf5b
TT
123372014-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_execution_direction.
12342 * target.h (struct target_ops) <to_execution_direction>: Use
12343 TARGET_DEFAULT_FUNC.
12344
53e1cfc7
TT
123452014-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_can_execute_reverse.
12350 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12351 TARGET_DEFAULT_RETURN.
12352 (target_can_execute_reverse): Unconditionally delegate.
12353
9bb9d61d
TT
123542014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * target-delegates.c: Rebuild.
12357 * target.c (update_current_target): Don't inherit or default
12358 to_goto_bookmark.
12359 (dummy_goto_bookmark): Remove.
12360 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12361 * target.h (struct target_ops) <to_goto_bookmark>: Use
12362 TARGET_DEFAULT_NORETURN.
12363
3dbafbbb
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target-delegates.c: Rebuild.
12367 * target.c (update_current_target): Don't inherit or default
12368 to_get_bookmark.
12369 (dummy_get_bookmark): Remove.
12370 (init_dummy_target): Don't inherit or default to_get_bookmark.
12371 * target.h (struct target_ops) <to_get_bookmark>: Use
12372 TARGET_DEFAULT_NORETURN
12373
16f796b1
TT
123742014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_make_corefile_notes.
12379 (init_dummy_target): Don't initialize to_make_corefile_notes.
12380 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12381 TARGET_DEFAULT_FUNC.
12382
0b5a2719
TT
123832014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_find_memory_regions.
12388 (init_dummy_target): Don't initialize to_find_memory_regions.
12389 * target.h (struct target_ops) <to_find_memory_regions>: Use
12390 TARGET_DEFAULT_FUNC.
12391
d9cb0195
TT
123922014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target-delegates.c: Rebuild.
12395 * target.c (update_current_target): Don't inherit or default
12396 to_log_command.
12397 * target.h (struct target_ops) <to_log_command>: Use
12398 TARGET_DEFAULT_IGNORE.
12399 (target_log_command): Unconditionally delegate.
12400
830ca330
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target-delegates.c: Rebuild.
12404 * target.c (update_current_target): Don't inherit or default
12405 to_pid_to_exec_file.
12406 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12407 TARGET_DEFAULT_RETURN.
12408
825828fc
TT
124092014-02-19 Tom Tromey <tromey@redhat.com>
12410
12411 * target-delegates.c: Rebuild.
12412 * target.c (update_current_target): Don't inherit or default
12413 to_thread_name.
12414 (target_thread_name): Unconditionally delegate.
12415 * target.h (struct target_ops) <to_thread_name>: Use
12416 TARGET_DEFAULT_RETURN.
12417
4a7e6dda
TT
124182014-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_extra_thread_info.
12423 * target.h (struct target_ops) <to_extra_thread_info>: Use
12424 TARGET_DEFAULT_RETURN.
12425
0db88c1d
TT
124262014-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_has_exited.
12431 * target.h (struct target_ops) <to_has_exited>: Use
12432 TARGET_DEFAULT_RETURN..
12433
6a9fa051
TT
124342014-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_set_syscall_catchpoint.
12439 (return_one): Remove.
12440 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12441 TARGET_DEFAULT_RETURN.
12442
62f64d7a
TT
124432014-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_insert_exec_catchpoint.
12448 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12449 TARGET_DEFAULT_RETURN.
12450
cda0f38c
TT
124512014-01-08 Tom Tromey <tromey@redhat.com>
12452
12453 * target-delegates.c: Rebuild.
12454 * target.c (update_current_target): Don't inherit or default
12455 to_insert_exec_catchpoint.
12456 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12457 TARGET_DEFAULT_RETURN.
12458
95c3375e
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target-delegates.c: Rebuild.
12462 * target.c (update_current_target): Don't inherit or default
12463 to_remove_vfork_catchpoint.
12464 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12465 TARGET_DEFAULT_RETURN.
12466
7e18a8dc
TT
124672014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * target-delegates.c: Rebuild.
12470 * target.c (update_current_target): Don't inherit or default
12471 to_insert_vfork_catchpoint.
12472 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12473 TARGET_DEFAULT_RETURN.
12474
e1a21fb7
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target-delegates.c: Rebuild.
12478 * target.c (update_current_target): Don't inherit or default
12479 to_remove_fork_catchpoint.
12480 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12481 TARGET_DEFAULT_RETURN.
12482
5958ebeb
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target-delegates.c: Rebuild.
12486 * target.c (update_current_target): Don't inherit or default
12487 to_insert_fork_catchpoint.
12488 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12489 TARGET_DEFAULT_RETURN.
12490
340ba4bf
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target-delegates.c: Rebuild.
12494 * target.c (update_current_target): Don't inherit or default
12495 to_post_startup_inferior.
12496 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12497 TARGET_DEFAULT_IGNORE.
12498
7634da87
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target-delegates.c: Rebuild.
12502 * target.c (update_current_target): Don't inherit or default
12503 to_load.
12504 * target.h (struct target_ops) <to_load>: Use
12505 TARGET_DEFAULT_NORETURN.
12506
e19e919f
TT
125072014-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_terminal_info.
12512 * target.h (struct target_ops) <to_terminal_info>: Use
12513 TARGET_DEFAULT_FUNC.
12514
c6ea8f79
TT
125152014-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_terminal_save_ours.
12520 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12521 TARGET_DEFAULT_IGNORE.
12522
e4a733f1
TT
125232014-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_terminal_ours.
12528 * target.h (struct target_ops) <to_terminal_ours>: Use
12529 TARGET_DEFAULT_IGNORE.
12530
74fcbef9
TT
125312014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * target-delegates.c: Rebuild.
12534 * target.c (update_current_target): Don't inherit or default
12535 to_terminal_ours_for_output.
12536 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12537 TARGET_DEFAULT_IGNORE.
12538
ddeaacc9
TT
125392014-02-19 Tom Tromey <tromey@redhat.com>
12540
12541 * target-delegates.c: Rebuild.
12542 * target.c (update_current_target): Don't inherit or default
12543 to_terminal_inferior.
12544 * target.h (struct target_ops) <to_terminal_inferior>: Use
12545 TARGET_DEFAULT_IGNORE.
12546
0343661d
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target-delegates.c: Rebuild.
12550 * target.c (update_current_target): Don't inherit or default
12551 to_terminal_init.
12552 * target.h (struct target_ops) <to_terminal_init>: Use
12553 TARGET_DEFAULT_IGNORE.
12554
77cdffe9
TT
125552014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target-delegates.c: Rebuild.
12558 * target.c (update_current_target): Don't inherit or default
12559 to_can_accel_watchpoint_condition.
12560 * target.h (struct target_ops)
12561 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12562
d03655e4
TT
125632014-02-19 Tom Tromey <tromey@redhat.com>
12564
12565 * target-delegates.c: Rebuild.
12566 * target.c (update_current_target): Don't inherit or default
12567 to_region_ok_for_hw_watchpoint.
12568 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12569 Use TARGET_DEFAULT_FUNC.
12570
65f160a9
TT
125712014-02-19 Tom Tromey <tromey@redhat.com>
12572
12573 * target-delegates.c: Rebuild.
12574 * target.c (update_current_target): Don't inherit or default
12575 to_watchpoint_addr_within_range.
12576 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12577 Use TARGET_DEFAULT_FUNC.
12578
61dd109f
TT
125792014-02-19 Tom Tromey <tromey@redhat.com>
12580
12581 * target-delegates.c: Rebuild.
12582 * target.c (update_current_target): Don't inherit or default
12583 to_remove_watchpoint.
12584 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12585 TARGET_DEFAULT_NORETURN.
12586
016facd4
TT
125872014-02-19 Tom Tromey <tromey@redhat.com>
12588
12589 * target-delegates.c: Rebuild.
12590 * target.c (update_current_target): Don't inherit or default
12591 to_insert_watchpoint.
12592 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12593 TARGET_DEFAULT_RETURN.
12594
418dabac
TT
125952014-02-19 Tom Tromey <tromey@redhat.com>
12596
12597 * target-delegates.c: Rebuild.
12598 * target.c (update_current_target): Don't inherit or default
12599 to_remove_hw_breakpoint.
12600 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12601 TARGET_DEFAULT_RETURN.
12602
61b371f9
TT
126032014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target-delegates.c: Rebuild.
12606 * target.c (update_current_target): Don't inherit or default
12607 to_insert_hw_breakpoint.
12608 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12609 TARGET_DEFAULT_RETURN.
12610
52b51d06
TT
126112014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target-delegates.c: Rebuild.
12614 * target.c (update_current_target): Don't inherit or default
12615 to_can_use_hw_breakpoint.
12616 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12617 TARGET_DEFAULT_RETURN.
12618
f86e59b2
TT
126192014-02-19 Tom Tromey <tromey@redhat.com>
12620
12621 * target-delegates.c: Rebuild.
12622 * target.c (update_current_target): Don't inherit or default
12623 to_files_info.
12624 * target.h (struct target_ops) <to_files_info>: Use
12625 TARGET_DEFAULT_IGNORE.
12626
6c628163
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target-delegates.c: Rebuild.
12630 * target.c (update_current_target): Don't inherit or default
12631 to_store.
12632 * target.h (struct target_ops) <to_store>: Use
12633 TARGET_DEFAULT_NORETURN.
12634
bebd3233
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target-delegates.c: Rebuild.
12638 * target.c (update_current_target): Don't inherit or default
12639 to_post_attach.
12640 * target.h (struct target_ops) <to_post_attach>: Use
12641 TARGET_DEFAULT_IGNORE.
12642
a53f3625
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target-delegates.c: Rebuild.
12646 * target.c (update_current_target): Don't inherit or default
12647 to_rcmd.
12648 (default_rcmd): New function.
12649 (do_monitor_command): Unconditionally delegate.
12650 * target.h (struct target_ops) <to_rmcd>: Use
12651 TARGET_DEFAULT_FUNC.
12652
e9a29200
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target-delegates.c: Rebuild.
12656 * target.c (init_dummy_target): Don't initialize to_attach.
12657 (target_attach): Unconditionally delegate.
12658 * target.h (struct target_ops) <to_attach>: Use
12659 TARGET_DEFAULT_FUNC.
12660
09da0d0a
TT
126612014-02-19 Tom Tromey <tromey@redhat.com>
12662
12663 * target-delegates.c: Rebuild.
12664 * target.c (target_detach): Unconditionally delegate.
12665 (init_dummy_target): Don't initialize to_detach.
12666 * target.h (struct target_ops) <to_detach>: Use
12667 TARGET_DEFAULT_IGNORE.
12668
5436ff03
TT
126692014-02-19 Tom Tromey <tromey@redhat.com>
12670
12671 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12672 Add argument.
12673 (target_augmented_libraries_svr4_read): Add argument.
12674 * target.c (update_current_target): Update.
12675 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12676 argument.
12677
f0d960ea
TT
126782014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_call_history_range>: Add
12681 argument.
12682 * target.c (target_call_history_range): Add argument.
12683 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12684 argument.
12685 (record_btrace_call_history_from): Update.
12686
ec0aea04
TT
126872014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * target.h (struct target_ops) <to_call_history_from>: Add
12690 argument.
12691 * target.c (target_call_history_from): Add argument.
12692 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12693 argument.
12694
5df2fcba
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target.h (struct target_ops) <to_call_history>: Add argument.
12698 * target.c (target_call_history): Add argument.
12699 * record-btrace.c (record_btrace_call_history): Add 'self'
12700 argument.
12701
4e99c6b7
TT
127022014-02-19 Tom Tromey <tromey@redhat.com>
12703
12704 * target.h (struct target_ops) <to_insn_history_range>: Add
12705 argument.
12706 * target.c (target_insn_history_range): Add argument.
12707 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12708 argument.
12709 (record_btrace_insn_history_from): Update.
12710
9abc3ff3
TT
127112014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * target.h (struct target_ops) <to_insn_history_from>: Add
12714 argument.
12715 * target.c (target_insn_history_from): Add argument.
12716 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12717 argument.
12718
7a6c5609
TT
127192014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target.h (struct target_ops) <to_insn_history>: Add argument.
12722 * target.c (target_insn_history): Add argument.
12723 * record-btrace.c (record_btrace_insn_history): Add 'self'
12724 argument.
12725
606183ac
TT
127262014-02-19 Tom Tromey <tromey@redhat.com>
12727
12728 * target.h (struct target_ops) <to_goto_record>: Add argument.
12729 * target.c (target_goto_record): Add argument.
12730 * record-full.c (record_full_goto): Add 'self' argument.
12731 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12732
307a1b91
TT
127332014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12736 * target.c (target_goto_record_end): Add argument.
12737 * record-full.c (record_full_goto_end): Add 'self' argument.
12738 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12739
08475817
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_goto_record_begin>: Add
12743 argument.
12744 * target.c (target_goto_record_begin): Add argument.
12745 * record-full.c (record_full_goto_begin): Add 'self' argument.
12746 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12747 argument.
12748
1c63c994
TT
127492014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * target.h (struct target_ops) <to_record_is_replaying>: Add
12752 argument.
12753 * target.c (target_record_is_replaying): Add argument.
12754 * record-full.c (record_full_is_replaying): Add 'self' argument.
12755 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12756 argument.
12757 (record_btrace_xfer_partial, record_btrace_store_registers)
12758 (record_btrace_prepare_to_store, record_btrace_resume)
12759 (record_btrace_wait, record_btrace_decr_pc_after_break)
12760 (record_btrace_find_new_threads, record_btrace_thread_alive):
12761 Update.
12762
d1b55219
TT
127632014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_delete_record>: Add argument.
12766 * target.c (target_delete_record): Add argument.
12767 * record-full.c (record_full_delete): Add 'self' argument.
12768
1390f529
TT
127692014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target.h (struct target_ops) <to_save_record>: Add argument.
12772 * target.c (target_save_record): Add argument.
12773 * record-full.c (record_full_save): Add 'self' argument.
12774 (record_full_save): Add 'self' argument.
12775
630d6a4a
TT
127762014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * target.h (struct target_ops) <to_info_record>: Add argument.
12779 * target.c (target_info_record): Add argument.
12780 * record.c (info_record_command): Add argument.
12781 * record-full.c (record_full_info): Add 'self' argument.
12782 * record-btrace.c (record_btrace_info): Add 'self' argument.
12783
c6cd7c02
TT
127842014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12787 * target.c (target_stop_recording): Add argument.
12788 * record.c (record_stop): Add argument.
12789 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12790 argument.
12791
39c49f83
TT
127922014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12795 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12796 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12797 argument.
12798 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12799 (_initialize_amd64_linux_nat): Use it.
12800 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12801 (_initialize_i386_linux_nat): Use it.
12802
1777056d
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12806 * target.c (target_teardown_btrace): Add argument.
12807 * remote.c (remote_teardown_btrace): Add 'self' argument.
12808 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12809 argument.
12810 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12811 argument.
12812
25e95349
TT
128132014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12816 * target.c (target_disable_btrace): Add argument.
12817 * remote.c (remote_disable_btrace): Add 'self' argument.
12818 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12819 argument.
12820 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12821 argument.
12822
e3c49f88
TT
128232014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12826 * target.c (target_enable_btrace): Add argument.
12827 * remote.c (remote_enable_btrace): Add 'self' argument.
12828 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12829 argument.
12830 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12831 argument.
12832
fe38f897
TT
128332014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12836 (target_can_use_agent): Add argument.
12837 * target.c (update_current_target): Update.
12838 * remote.c (remote_can_use_agent): Add 'self' argument.
12839 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12840
2c152180
TT
128412014-02-19 Tom Tromey <tromey@redhat.com>
12842
12843 * target.h (struct target_ops) <to_use_agent>: Add argument.
12844 (target_use_agent): Add argument.
12845 * target.c (update_current_target): Update.
12846 * remote.c (remote_use_agent): Add 'self' argument.
12847 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12848
a893e81f
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12852 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12853 (target_traceframe_info): Add argument.
12854 * target.c (update_current_target): Update.
12855 * remote.c (remote_traceframe_info): Add 'self' argument.
12856 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12857
c686c57f
TT
128582014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target.h (target_static_tracepoint_markers_by_strid): Add
12861 argument.
12862 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12863 'self' argument.
12864 * target.c (update_current_target): Update.
12865 * remote.c (struct target_ops)
12866 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12867 * linux-nat.c (struct target_ops)
12868 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12869
61fc905d
TT
128702014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12873 Add argument.
12874 (target_static_tracepoint_marker_at): Add argument.
12875 * target.c (update_current_target): Update.
12876 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12877 argument.
12878
c378d69d
TT
128792014-02-19 Tom Tromey <tromey@redhat.com>
12880
12881 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12882 (target_set_permissions): Add argument.
12883 * target.c (update_current_target): Update.
12884 * remote.c (remote_set_permissions): Add 'self' argument.
12885 (remote_start_remote): Update.
12886
bd7ae0f5
TT
128872014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12890 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12891 (target_get_tib_address): Add argument.
12892 * target.c (update_current_target): Update.
12893 * remote.c (remote_get_tib_address): Add 'self' argument.
12894
d9e68a2c
TT
128952014-02-19 Tom Tromey <tromey@redhat.com>
12896
12897 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12898 (target_set_trace_notes): Add argument.
12899 * target.c (update_current_target): Update.
12900 * remote.c (remote_set_trace_notes): Add 'self' argument.
12901
4da384be
TT
129022014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12905 argument.
12906 (target_set_trace_buffer_size): Add argument.
12907 * target.c (update_current_target): Update.
12908 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12909
736d5b1f
TT
129102014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12913 argument.
12914 (target_set_circular_trace_buffer): Add argument.
12915 * target.c (update_current_target): Update.
12916 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12917 argument.
12918
37b25738
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12922 argument.
12923 (target_set_disconnected_tracing): Add argument.
12924 * target.c (update_current_target): Update.
12925 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12926
0e67620a
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (struct target_ops)
12930 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12931 (target_get_min_fast_tracepoint_insn_len): Add argument.
12932 * target.c (update_current_target): Update.
12933 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12934 argument.
12935
88ee6f45
TT
129362014-02-19 Tom Tromey <tromey@redhat.com>
12937
12938 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12939 argument.
12940 (target_get_raw_trace_data): Add argument.
12941 * target.c (update_current_target): Update.
12942 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12943
181e3713
TT
129442014-02-19 Tom Tromey <tromey@redhat.com>
12945
12946 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12947 Add argument.
12948 (target_upload_trace_state_variables): Add argument.
12949 * target.c (update_current_target): Update.
12950 * remote.c (remote_upload_trace_state_variables): Add 'self'
12951 argument.
12952 (remote_start_remote): Update.
12953
ab6617cc
TT
129542014-02-19 Tom Tromey <tromey@redhat.com>
12955
12956 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12957 argument.
12958 (target_upload_tracepoints): Add argument.
12959 * target.c (update_current_target): Update.
12960 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12961 (remote_start_remote): Update.
12962
dc3decaf
TT
129632014-02-19 Tom Tromey <tromey@redhat.com>
12964
12965 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12966 (target_save_trace_data): Add argument.
12967 * target.c (update_current_target): Update.
12968 * remote.c (remote_save_trace_data): Add 'self' argument.
12969
4011015b
TT
129702014-02-19 Tom Tromey <tromey@redhat.com>
12971
12972 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12973 argument.
12974 * target.h (struct target_ops)
12975 <to_get_trace_state_variable_value>: Add argument.
12976 (target_get_trace_state_variable_value): Add argument.
12977 * target.c (update_current_target): Update.
12978 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12979 argument.
12980 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12981
bd4c6793
TT
129822014-02-19 Tom Tromey <tromey@redhat.com>
12983
12984 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12985 * target.h (struct target_ops) <to_trace_find>: Add argument.
12986 (target_trace_find): Add argument.
12987 * target.c (update_current_target): Update.
12988 * remote.c (remote_trace_find): Add 'self' argument.
12989 * ctf.c (ctf_trace_find): Add 'self' argument.
12990
74499f1b
TT
129912014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12994 (target_trace_stop): Add argument.
12995 * target.c (update_current_target): Update.
12996 * remote.c (remote_trace_stop): Add 'self' argument.
12997
db90e85c
TT
129982014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13001 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13002 argument.
13003 (target_get_tracepoint_status): Add argument.
13004 * target.c (update_current_target): Update.
13005 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13006
8bd200f1
TT
130072014-02-19 Tom Tromey <tromey@redhat.com>
13008
13009 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13010 * target.h (struct target_ops) <to_get_trace_status>: Add
13011 argument.
13012 (target_get_trace_status): Add argument.
13013 * target.c (update_current_target): Update.
13014 * remote.c (remote_get_trace_status): Add 'self' argument.
13015 (remote_start_remote, remote_can_download_tracepoint): Update.
13016 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13017
e2d1aae3
TT
130182014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * target.h (struct target_ops) <to_trace_start>: Add argument.
13021 (target_trace_start): Add argument.
13022 * target.c (update_current_target): Update.
13023 * remote.c (remote_trace_start): Add 'self' argument.
13024
583f9a86
TT
130252014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13028 Add argument.
13029 (target_trace_set_readonly_regions): Add argument.
13030 * target.c (update_current_target): Update.
13031 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13032 argument.
13033
780b049c
TT
130342014-02-19 Tom Tromey <tromey@redhat.com>
13035
13036 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13037 argument.
13038 (target_disable_tracepoint): Add argument.
13039 * target.c (update_current_target): Update.
13040 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13041
46670d57
TT
130422014-02-19 Tom Tromey <tromey@redhat.com>
13043
13044 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13045 argument.
13046 (target_enable_tracepoint): Add argument.
13047 * target.c (update_current_target): Update.
13048 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13049
559d2b81
TT
130502014-02-19 Tom Tromey <tromey@redhat.com>
13051
13052 * target.h (struct target_ops) <to_download_trace_state_variable>:
13053 Add argument.
13054 (target_download_trace_state_variable): Add argument.
13055 * target.c (update_current_target): Update.
13056 * remote.c (remote_download_trace_state_variable): Add 'self'
13057 argument.
13058
a52a8357
TT
130592014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13062 argument.
13063 (target_can_download_tracepoint): Add argument.
13064 * target.c (update_current_target): Update.
13065 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13066
548f7808
TT
130672014-02-19 Tom Tromey <tromey@redhat.com>
13068
13069 * target.h (struct target_ops) <to_download_tracepoint>: Add
13070 argument.
13071 (target_download_tracepoint): Add argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_download_tracepoint): Add 'self' argument.
13074
ecae04e1
TT
130752014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_trace_init>: Add argument.
13078 (target_trace_init): Add argument.
13079 * target.c (update_current_target): Update.
13080 * remote.c (remote_trace_init): Add 'self' argument.
13081
fab5aa7c
TT
130822014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13085 * target.c (target_fileio_readlink): Add argument.
13086 * remote.c (remote_hostio_readlink): Add 'self' argument.
13087 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13088
dbbca37d
TT
130892014-02-19 Tom Tromey <tromey@redhat.com>
13090
13091 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13092 * target.c (target_fileio_unlink): Add argument.
13093 * remote.c (remote_hostio_unlink): Add 'self' argument.
13094 (remote_file_delete): Update.
13095 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13096
df39ea25
TT
130972014-02-19 Tom Tromey <tromey@redhat.com>
13098
13099 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13100 * target.c (target_fileio_close): Add argument.
13101 * remote.c (remote_hostio_close): Add 'self' argument.
13102 (remote_hostio_close_cleanup): Update.
13103 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13104 Update.
13105 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13106
a3be983c
TT
131072014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13110 * target.c (target_fileio_pread): Add argument.
13111 * remote.c (remote_hostio_pread): Add 'self' argument.
13112 (remote_bfd_iovec_pread, remote_file_get): Update.
13113 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13114
0d866f62
TT
131152014-02-19 Tom Tromey <tromey@redhat.com>
13116
13117 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13118 * target.c (target_fileio_pwrite): Add argument.
13119 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13120 (remote_file_put): Update.
13121 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13122
cd897586
TT
131232014-02-19 Tom Tromey <tromey@redhat.com>
13124
13125 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13126 * target.c (target_fileio_open): Add argument.
13127 * remote.c (remote_hostio_open): Add 'self' argument.
13128 (remote_bfd_iovec_open): Add 'self' argument.
13129 (remote_file_put): Add 'self' argument.
13130 (remote_file_get): Add 'self' argument.
13131 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13132
78eff0ec
TT
131332014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13136 Add argument.
13137 (target_can_run_breakpoint_commands): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13140 argument.
13141 (remote_insert_breakpoint): Add 'self' argument.
13142 (remote_insert_hw_breakpoint): Add 'self' argument.
13143 (remote_can_run_breakpoint_commands): Add 'self' argument.
13144
efcc2da7
TT
131452014-02-19 Tom Tromey <tromey@redhat.com>
13146
13147 * target.h (struct target_ops)
13148 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13149 (target_supports_evaluation_of_breakpoint_conditions): Add
13150 argument.
13151 * target.c (update_current_target): Update.
13152 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13153 argument.
13154 (remote_insert_breakpoint): Add 'self' argument.
13155 (remote_insert_hw_breakpoint): Add 'self' argument.
13156 (remote_supports_cond_breakpoints): Add 'self' argument.
13157
6de37a3a
TT
131582014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13161 argument.
13162 (target_supports_string_tracing): Add argument.
13163 * target.c (update_current_target): Update.
13164 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13165
2bfc0540
TT
131662014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops)
13169 <to_supports_disable_randomization>: Add argument.
13170 * target.c (find_default_supports_disable_randomization): Add
13171 argument.
13172 (target_supports_disable_randomization): Add argument.
13173 (find_default_supports_disable_randomization): Add 'self'
13174 argument.
13175 * remote.c (extended_remote_supports_disable_randomization): Add
13176 'self' argument.
13177 (remote_supports_disable_randomization): Add 'self' argument.
13178 (extended_remote_create_inferior): Update.
13179 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13180 'self' argument.
13181
7d178d6a
TT
131822014-02-19 Tom Tromey <tromey@redhat.com>
13183
13184 * target.h (struct target_ops)
13185 <to_supports_enable_disable_tracepoint>: Add argument.
13186 (target_supports_enable_disable_tracepoint): Add argument.
13187 * target.c (update_current_target): Update.
13188 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13189 argument.
13190
86ce2668
TT
131912014-02-19 Tom Tromey <tromey@redhat.com>
13192
13193 * target.h (struct target_ops) <to_supports_multi_process>: Add
13194 argument.
13195 (target_supports_multi_process): Add argument.
13196 * target.c (update_current_target): Update.
13197 * remote.c (remote_supports_multi_process): Add 'self' argument.
13198 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13199 argument.
13200 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13201 argument.
13202
4c612759
TT
132032014-02-19 Tom Tromey <tromey@redhat.com>
13204
13205 * target.h (struct target_ops) <to_execution_direction>: Add
13206 argument.
13207 (target_execution_direction): Add argument.
13208 * target.c (default_execution_direction): Add 'self' argument.
13209 * record-full.c (record_full_execution_direction): Add 'self'
13210 argument.
13211
19db3e69
TT
132122014-02-19 Tom Tromey <tromey@redhat.com>
13213
13214 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13215 argument.
13216 (target_can_execute_reverse): Add argument.
13217 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13218 * record-full.c (record_full_can_execute_reverse): Add 'self'
13219 argument.
13220 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13221 argument.
13222
1e6b91a4
TT
132232014-02-19 Tom Tromey <tromey@redhat.com>
13224
13225 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13226 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13227 argument.
13228 (target_get_ada_task_ptid): Add argument.
13229 * target.c (update_current_target): Update.
13230 (default_get_ada_task_ptid): Add 'self' argument.
13231 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13232 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13233 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13234 argument.
13235 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13236 argument.
13237 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13238 argument.
13239 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13240 argument.
13241 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13242 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13243 argument.
13244
3c80fb48
TT
132452014-02-19 Tom Tromey <tromey@redhat.com>
13246
13247 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13248 (target_goto_bookmark): Add argument.
13249 * target.c (dummy_goto_bookmark): Add 'self' argument.
13250 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13251
dd0e2830
TT
132522014-02-19 Tom Tromey <tromey@redhat.com>
13253
13254 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13255 (target_get_bookmark): Add argument.
13256 * target.c (dummy_get_bookmark): Add 'self' argument.
13257 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13258
fc6691b2
TT
132592014-02-19 Tom Tromey <tromey@redhat.com>
13260
13261 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13262 argument.
13263 (target_make_corefile_notes): Add argument.
13264 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13265 * procfs.c (procfs_make_note_section): Add 'self' argument.
13266 (procfs_make_note_section): Add 'self' argument.
13267 (procfs_make_note_section): Add 'self' argument.
13268 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13269 argument.
13270 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13271 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13272 * exec.c (exec_make_note_section): Add 'self' argument.
13273 (exec_make_note_section): Add 'self' argument.
13274
2e73927c
TT
132752014-02-19 Tom Tromey <tromey@redhat.com>
13276
13277 * target.h (struct target_ops) <to_find_memory_regions>: Add
13278 argument.
13279 (target_find_memory_regions): Add argument.
13280 * target.c (dummy_find_memory_regions): Add 'self' argument.
13281 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13282 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13283 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13284 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13285 * exec. (exec_do_find_memory_regions): New global.
13286 (exec_set_find_memory_regions): Rewrite.
13287 (exec_find_memory_regions): New function.
13288 (init_exec_ops): Use exec_find_memory_regions.
13289
2a9a2795
TT
132902014-02-19 Tom Tromey <tromey@redhat.com>
13291
13292 * target.h (struct target_ops) <to_supports_non_stop>: Add
13293 argument.
13294 * target.c (find_default_supports_non_stop): Add argument.
13295 (target_supports_non_stop): Add argument.
13296 (find_default_supports_non_stop): Add 'self' argument.
13297 * remote.c (remote_supports_non_stop): Add 'self' argument.
13298 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13299
4ab76ea3
TT
133002014-02-19 Tom Tromey <tromey@redhat.com>
13301
13302 * target.h (struct target_ops) <to_log_command>: Add argument.
13303 (target_log_command): Add argument.
13304 * serial.h (serial_log_command): Add 'self' argument.
13305 * serial.c (serial_log_command): Add 'self' argument.
13306
8dd27370
TT
133072014-02-19 Tom Tromey <tromey@redhat.com>
13308
13309 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13310 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13311 argument.
13312 (target_pid_to_exec_file): Add argument.
13313 * target.c (debug_to_pid_to_exec_file): Add argument.
13314 (update_current_target): Update.
13315 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13316 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13317 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13318 (linux_handle_extended_wait): Update.
13319 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13320 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13321 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13322 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13323
1aac633b
TT
133242014-02-19 Tom Tromey <tromey@redhat.com>
13325
13326 * target.h (struct target_ops) <to_rcmd>: Add argument.
13327 (target_rcmd): Add argument.
13328 * target.c (debug_to_rcmd): Add argument.
13329 (update_current_target, do_monitor_command): Update.
13330 * remote.c (remote_rcmd): Add 'self' argument.
13331 * monitor.c (monitor_rcmd): Add 'self' argument.
13332
1eab8a48
TT
133332014-02-19 Tom Tromey <tromey@redhat.com>
13334
13335 * windows-nat.c (windows_stop): Add 'self' argument.
13336 * target.h (struct target_ops) <to_stop>: Add argument.
13337 * target.c (target_stop): Add argument.
13338 (debug_to_stop): Add argument.
13339 (update_current_target): Update.
13340 * remote.c (remote_stop): Add 'self' argument.
13341 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13342 (gdbsim_cntrl_c): Update.
13343 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13344 * procfs.c (procfs_stop): Add 'self' argument.
13345 * nto-procfs.c (procfs_stop): Add 'self' argument.
13346 * monitor.c (monitor_stop): Add 'self' argument.
13347 (monitor_open): Update.
13348 * linux-nat.c (linux_nat_stop): Add argument.
13349 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13350 * gnu-nat.c (gnu_stop): Add 'self' argument.
13351 * darwin-nat.c (darwin_stop): Add 'self' argument.
13352
503a628d
TT
133532014-02-19 Tom Tromey <tromey@redhat.com>
13354
13355 * target.h (struct target_ops) <to_thread_name>: Add argument.
13356 * target.c (target_thread_name): Add argument.
13357 (update_current_target): Update.
13358 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13359
c15906d8
TT
133602014-02-19 Tom Tromey <tromey@redhat.com>
13361
13362 * target.h (struct target_ops) <to_extra_thread_info>: Add
13363 argument.
13364 (target_extra_thread_info): Add argument.
13365 * target.c (update_current_target): Update.
13366 * remote.c (remote_threads_extra_info): Add 'self' argument.
13367 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13368 argument.
13369 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13370 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13371 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13372 argument.
13373 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13374 argument.
13375 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13376 argument.
13377 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13378 argument.
13379
daf5e9b6
TT
133802014-02-19 Tom Tromey <tromey@redhat.com>
13381
13382 * target.h (struct target_ops) <to_program_signals>: Add argument.
13383 * target.c (target_program_signals): Add argument.
13384 * remote.c (remote_program_signals): Add 'self' argument.
13385
94bedb42
TT
133862014-02-19 Tom Tromey <tromey@redhat.com>
13387
13388 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13389 * target.c (target_pass_signals): Add argument.
13390 * remote.c (remote_pass_signals): Add 'self' argument.
13391 (remote_start_remote): Update.
13392 * procfs.c (procfs_pass_signals): Add 'self' argument.
13393 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13394 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13395 (linux_nat_create_inferior, linux_nat_attach): Update.
13396
da82bd6b
TT
133972014-02-19 Tom Tromey <tromey@redhat.com>
13398
13399 * windows-nat.c (windows_can_run): Add 'self' argument.
13400 * target.h (struct target_ops) <to_can_run>: Add argument.
13401 (target_can_run): Add argument.
13402 * target.c (debug_to_can_run): Add argument.
13403 (update_current_target): Update.
13404 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13405 * inf-child.c (inf_child_can_run): Add 'self' argument.
13406 * go32-nat.c (go32_can_run): Add 'self' argument.
13407
d796e1d6
TT
134082014-02-19 Tom Tromey <tromey@redhat.com>
13409
13410 * target.h (struct target_ops) <to_has_exited>: Add argument.
13411 (target_has_exited): Add argument.
13412 * target.c (debug_to_has_exited): Add argument.
13413 (update_current_target): Update.
13414
ff214e67
TT
134152014-02-19 Tom Tromey <tromey@redhat.com>
13416
13417 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13418 argument.
13419 (target_set_syscall_catchpoint): Add argument.
13420 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13421 argument.
13422 * target.c (update_current_target): Update.
13423
758e29d2
TT
134242014-02-19 Tom Tromey <tromey@redhat.com>
13425
13426 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13427 argument.
13428 (target_remove_exec_catchpoint): Add argument.
13429 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13430 (update_current_target): Update.
13431 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13432 argument.
13433
ba025e51
TT
134342014-02-19 Tom Tromey <tromey@redhat.com>
13435
13436 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13437 argument.
13438 (target_insert_exec_catchpoint): Add argument.
13439 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13440 (update_current_target): Update.
13441 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13442 argument.
13443
e98cf0cd
TT
134442014-02-19 Tom Tromey <tromey@redhat.com>
13445
13446 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13447 argument.
13448 (target_remove_vfork_catchpoint): Add argument.
13449 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13450 (update_current_target): Update.
13451 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13452 argument.
13453
3ecc7da0
TT
134542014-02-19 Tom Tromey <tromey@redhat.com>
13455
13456 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13457 argument.
13458 (target_insert_vfork_catchpoint): Add argument.
13459 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13460 (update_current_target): Update.
13461 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13462 argument.
13463
973fc227
TT
134642014-02-19 Tom Tromey <tromey@redhat.com>
13465
13466 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13467 argument.
13468 (target_remove_fork_catchpoint): Add argument.
13469 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13470 (update_current_target): Update.
13471 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13472 argument.
13473
a863b201
TT
134742014-02-19 Tom Tromey <tromey@redhat.com>
13475
13476 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13477 argument.
13478 (target_insert_fork_catchpoint): Add argument.
13479 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13480 (update_current_target): Update.
13481 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13482 argument.
13483
2e97a79e
TT
134842014-02-19 Tom Tromey <tromey@redhat.com>
13485
13486 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13487 argument.
13488 (target_post_startup_inferior): Add argument.
13489 * target.c (debug_to_post_startup_inferior): Add argument.
13490 (update_current_target): Update.
13491 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13492 argument.
13493 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13494 argument.
13495 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13496 argument.
13497 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13498 argument.
13499 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13500 'self' argument.
13501 (super_post_startup_inferior): Likewise.
13502 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13503 'self' argument.
13504 (super_post_startup_inferior): Likewise.
13505 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13506 Add 'self' argument.
13507 (super_post_startup_inferior): Likewise.
13508
71a9f134
TT
135092014-02-19 Tom Tromey <tromey@redhat.com>
13510
13511 * target.h (struct target_ops) <to_load>: Add argument.
13512 * target.c (target_load): Add argument.
13513 (debug_to_load): Add argument.
13514 (update_current_target): Update.
13515 * remote.c (remote_load): Add 'self' argument.
13516 * remote-sim.c (gdbsim_load): Add 'self' argument.
13517 * remote-mips.c (mips_load): Add 'self' argument.
13518 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13519 * monitor.c (monitor_load): Add 'self' argument.
13520 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13521
0a4f40a2
TT
135222014-02-19 Tom Tromey <tromey@redhat.com>
13523
13524 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13525 (target_terminal_info): Add argument.
13526 * target.c (debug_to_terminal_info): Add argument.
13527 (default_terminal_info): Likewise.
13528 * inflow.c (child_terminal_info): Add 'self' argument.
13529 * inferior.h (child_terminal_info): Add 'self' argument.
13530 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13531
ae3bd431
TT
135322014-02-19 Tom Tromey <tromey@redhat.com>
13533
13534 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13535 argument.
13536 (target_terminal_save_ours): Add argument.
13537 * target.c (debug_to_terminal_save_ours): Add argument.
13538 (update_current_target): Update.
13539 * inflow.c (terminal_save_ours): Add 'self' argument.
13540 * inferior.h (terminal_save_ours): Add 'self' argument.
13541
e3594fd1
TT
135422014-02-19 Tom Tromey <tromey@redhat.com>
13543
13544 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13545 (target_terminal_ours): Add argument.
13546 * target.c (debug_to_terminal_ours): Add argument.
13547 (update_current_target): Update.
13548 * remote.c (remote_terminal_ours): Add 'self' argument.
13549 (remote_close): Update.
13550 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13551 * inflow.c (terminal_ours): Add 'self' argument.
13552 * inferior.h (terminal_ours): Add 'self' argument.
13553 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13554
2e1e1a19
TT
135552014-02-19 Pedro Alves <palves@redhat.com>
13556 Tom Tromey <tromey@redhat.com>
13557
13558 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13559 argument.
13560 (target_terminal_ours_for_output): Add argument.
13561 * target.c (debug_to_terminal_ours_for_output): Add argument.
13562 (update_current_target): Update.
13563 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13564 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13565 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13566
d2f640d4
TT
135672014-02-19 Tom Tromey <tromey@redhat.com>
13568
13569 * target.h (struct target_ops) <to_terminal_inferior>: Add
13570 argument.
13571 * target.c (target_terminal_inferior): Add argument.
13572 (update_current_target): Update.
13573 * remote.c (remote_terminal_inferior): Add 'self' argument.
13574 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13575 * inflow.c (terminal_inferior): Add 'self' argument.
13576 * inferior.h (terminal_inferior): Add 'self' argument.
13577 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13578 (go32_terminal_inferior): Add 'self' argument.
13579
c42bf286
TT
135802014-02-19 Tom Tromey <tromey@redhat.com>
13581
13582 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13583 (target_terminal_init): Add argument.
13584 * target.c (debug_to_terminal_init): Add argument.
13585 (update_current_target): Update.
13586 * inflow.c (terminal_init_inferior): Add 'self' argument.
13587 * inferior.h (terminal_init_inferior): Add 'self' argument.
13588 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13589 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13590
c3a5ff89
TT
135912014-02-19 Tom Tromey <tromey@redhat.com>
13592
13593 * target.h (struct target_ops)
13594 <to_can_accel_watchpoint_condition>: Add argument.
13595 (target_can_accel_watchpoint_condition): Add argument.
13596 * target.c (debug_to_can_accel_watchpoint_condition): Add
13597 argument.
13598 (update_current_target): Update.
13599 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13600 'self' argument.
13601
31568a15
TT
136022014-02-19 Tom Tromey <tromey@redhat.com>
13603
13604 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13605 Add argument.
13606 (target_region_ok_for_hw_watchpoint): Add argument.
13607 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13608 (default_region_ok_for_hw_watchpoint): Add argument.
13609 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13610 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13611 argument.
13612 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13613 argument.
13614 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13615 argument.
13616 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13617 'self' argument.
13618 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13619 'self' argument.
13620 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13621 'self' argument.
13622 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13623 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13624 'self' argument.
13625 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13626 Add 'self' argument.
13627
7bb99c53
TT
136282014-02-19 Tom Tromey <tromey@redhat.com>
13629
13630 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13631 argument.
13632 (target_insert_watchpoint): Add argument.
13633 * target.c (debug_to_insert_watchpoint): Add argument.
13634 (update_current_target): Update.
13635 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13636 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13637 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13638 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13639 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13640 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13641 argument.
13642 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13643 (procfs_insert_hw_watchpoint): Add 'self' argument.
13644 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13645 argument.
13646 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13647 argument.
13648 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13649 argument.
13650 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13651 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13652 argument.
13653 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13654 'self' argument.
13655
11b5219a
TT
136562014-02-19 Tom Tromey <tromey@redhat.com>
13657
13658 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13659 argument.
13660 (target_remove_watchpoint): Add argument.
13661 * target.c (debug_to_remove_watchpoint): Add argument.
13662 (update_current_target): Update.
13663 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13664 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13665 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13666 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13667 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13668 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13669 argument.
13670 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13671 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13672 argument.
13673 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13674 argument.
13675 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13676 argument.
13677 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13678 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13679 argument.
13680 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13681 'self' argument.
13682
a64dc96c
TT
136832014-02-19 Tom Tromey <tromey@redhat.com>
13684
13685 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13686 argument.
13687 (target_remove_hw_breakpoint): Add argument.
13688 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13689 (update_current_target): Update.
13690 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13691 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13692 argument.
13693 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13694 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13695 argument.
13696 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13697 'self' argument.
13698
23a26771
TT
136992014-02-19 Tom Tromey <tromey@redhat.com>
13700
13701 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13702 argument.
13703 (target_insert_hw_breakpoint): Add argument.
13704 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13705 (update_current_target): Update.
13706 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13707 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13708 argument.
13709 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13710 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13711 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13712 argument.
13713 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13714 'self' argument.
13715
5461485a
TT
137162014-02-19 Tom Tromey <tromey@redhat.com>
13717
13718 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13719 argument.
13720 (target_can_use_hardware_watchpoint): Add argument.
13721 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13722 (update_current_target): Update.
13723 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13724 argument.
13725 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13726 argument.
13727 * remote.c (remote_check_watch_resources): Add 'self' argument.
13728 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13729 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13730 argument.
13731 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13732 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13733 argument.
13734 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13735 argument.
13736 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13737 argument.
13738 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13739 argument.
13740 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13741 argument.
13742 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13743 argument.
13744 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13745 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13746 argument.
13747 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13748 'self' argument.
13749
f045800c
TT
137502014-02-19 Tom Tromey <tromey@redhat.com>
13751
13752 * target.h (struct target_ops) <to_post_attach>: Add argument.
13753 (target_post_attach): Add argument.
13754 * target.c (debug_to_post_attach): Add argument.
13755 (update_current_target): Update.
13756 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13757 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13758 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13759 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13760 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13761
de90e03d
TT
137622014-02-19 Tom Tromey <tromey@redhat.com>
13763
13764 * windows-nat.c (windows_close): Add 'self' argument.
13765 * tracepoint.c (tfile_close): Add 'self' argument.
13766 * target.h (struct target_ops) <to_close>: Add argument.
13767 * target.c (target_close): Add argument.
13768 (update_current_target): Update.
13769 * remote.c (remote_close): Add 'self' argument.
13770 * remote-sim.c (gdbsim_close): Add 'self' argument.
13771 * remote-mips.c (mips_close): Add 'self' argument.
13772 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13773 * record-full.c (record_full_close): Add 'self' argument.
13774 * record-btrace.c (record_btrace_close): Add 'self' argument.
13775 * monitor.h (monitor_close): Add 'self' argument.
13776 * monitor.c (monitor_close): Add 'self' argument.
13777 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13778 * linux-nat.c (linux_nat_close): Add argument.
13779 * go32-nat.c (go32_close): Add 'self' argument.
13780 * exec.c (exec_close_1): Add 'self' argument.
13781 * ctf.c (ctf_close): Add 'self' argument.
13782 * corelow.c (core_close): Add 'self' argument.
13783 (core_close_cleanup): Update.
13784 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13785 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13786
9dd130a0
TT
137872014-02-19 Tom Tromey <tromey@redhat.com>
13788
13789 * remote.c (remote_load): New function.
13790 (init_remote_ops): Use it.
13791
46917d26
TT
137922014-02-19 Tom Tromey <tromey@redhat.com>
13793
13794 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13795 argument.
13796 * common/linux-btrace.h (linux_supports_btrace): Update.
13797 * remote.c (remote_supports_btrace): Add "self" argument.
13798 * target-delegates.c: Rebuild.
13799 * target.c (target_supports_btrace): Remove.
13800 * target.h (struct target_ops) <to_supports_btrace>: Add
13801 target_ops argument.
13802 (target_supports_btrace): New define.
13803
6b84065d
TT
138042014-02-19 Tom Tromey <tromey@redhat.com>
13805
13806 * record-full.c (record_full_beneath_to_resume_ops)
13807 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13808 (record_full_beneath_to_wait)
13809 (record_full_beneath_to_store_registers_ops)
13810 (record_full_beneath_to_store_registers)
13811 (record_full_beneath_to_xfer_partial_ops)
13812 (record_full_beneath_to_xfer_partial)
13813 (record_full_beneath_to_insert_breakpoint_ops)
13814 (record_full_beneath_to_insert_breakpoint)
13815 (record_full_beneath_to_remove_breakpoint_ops)
13816 (record_full_beneath_to_remove_breakpoint)
13817 (record_full_beneath_to_stopped_by_watchpoint)
13818 (record_full_beneath_to_stopped_data_address)
13819 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13820 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13821 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13822 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13823 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13824 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13825 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13826 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13827 (record_full_resume, record_full_wait_1)
13828 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13829 (record_full_store_registers, record_full_xfer_partial)
13830 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13831 (record_full_async, record_full_core_xfer_partial): Use target
13832 delegation.
13833 * target-delegates.c: Rebuild.
13834 * target.c (current_xfer_partial): Remove.
13835 (update_current_target): Do not INHERIT or de_fault
13836 to_insert_breakpoint, to_remove_breakpoint,
13837 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13838 to_is_async_p, to_async. Do not set to_xfer_partial field.
13839 (default_xfer_partial): Simplify.
13840 (current_xfer_partial): Remove.
13841 (target_wait, target_resume): Simplify.
13842 (find_default_can_async_p, find_default_is_async_p): Update.
13843 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13844 to_xfer_partial, to_stopped_by_watchpoint,
13845 to_stopped_data_address.
13846 (target_store_registers): Simplify.
13847 (forward_target_remove_breakpoint)
13848 (forward_target_insert_breakpoint): Remove.
13849 (target_remove_breakpoint, target_insert_breakpoint)
13850 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13851 * target.h (struct target_ops) <to_resume, to_wait,
13852 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13853 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13854 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13855 markup.
13856 (forward_target_remove_breakpoint)
13857 (forward_target_insert_breakpoint): Remove.
13858 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13859 directly.
13860 (record_btrace_insert_breakpoint): Delegate directly.
13861
1101cb7b
TT
138622014-02-19 Tom Tromey <tromey@redhat.com>
13863
13864 PR build/7701:
13865 * target-delegates.c: New file.
13866 * target.c: Include target-delegates.c.
13867 (init_dummy_target): Call install_dummy_methods.
13868 (complete_target_initialization): Call install_delegators.
13869 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13870 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13871 * make-target-delegates: New file.
13872
8b06beed
TT
138732014-02-19 Tom Tromey <tromey@redhat.com>
13874
13875 * record.c (find_record_target): Use find_target_at.
13876 * target.c (find_target_at): New function.
13877 * target.h (find_target_at): Declare.
13878
6a109b6b
TT
138792014-02-19 Tom Tromey <tromey@redhat.com>
13880
13881 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13882 Add 'ops' argument.
13883 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13884 'ops' argument.
13885 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13886 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13887 'ops' argument.
13888 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13889 argument.
13890 * linux-nat.c (save_sigtrap): Update.
13891 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13892 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13893 (linux_nat_close): Update.
13894 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13895 argument.
13896 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13897 argument.
13898 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13899 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13900 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13901 (tmp_to_async): Add 'ops' argument.
13902 (record_full_stopped_by_watchpoint, record_full_async)
13903 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13904 argument.
13905 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13906 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13907 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13908 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13909 (remote_is_async_p, remote_async): Add 'ops' argument.
13910 (remote_stopped_data_address): Update.
13911 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13912 * target.c (update_current_target)
13913 (find_default_can_async_p, find_default_is_async_p): Update.
13914 (init_dummy_target): Update.
13915 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13916 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13917 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13918 (target_can_async_p, target_is_async_p, target_async)
13919 (target_stopped_by_watchpoint): Update.
13920
e095146b
YQ
139212014-02-19 Yao Qi <yao@codesourcery.com>
13922
13923 PR gdb/16220
13924 * gdbarch.sh: Remove startup_gdbarch.
13925 * gdbarch.c: Regenerated.
13926 * gdbarch.h: Likewise.
13927
bc3c6b36
KB
139282014-02-17 Kevin Buettner <kevinb@redhat.com>
13929
13930 * rl78-tdep.c (rl78_g10_register_name): New function.
13931 (rl78_return_value): Add g10 support.
13932 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13933 g10.
13934
98dc0167 139352014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13936
13937 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13938 (SUBDIR_GUILE_SRCS): Ditto.
13939 (scm-gsmob.o): Ditto.
13940
842c05cd
YQ
139412014-02-17 Yao Qi <yao@codesourcery.com>
13942
13943 * gnu-nat.c (ILL_RPC): Declare defined function.
13944
25c0bd04
YQ
139452014-02-17 Yao Qi <yao@codesourcery.com>
13946
13947 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13948 mach_msg_type_number_t.
13949 (gnu_write_inferior): Likewise.
13950
a9a758e3
YQ
139512014-02-17 Yao Qi <yao@codesourcery.com>
13952
13953 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13954 in format string.
13955 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13956 (inf_validate_procs, inf_signal): Likewise.
13957 (S_exception_raise_request): Likewise.
13958 (do_mach_notify_dead_name): Likewise.
13959 (steal_exc_port): Likewise.
13960 (gnu_read_inferior): Change 'copy_count''s type to
13961 mach_msg_type_number_t.
13962 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13963 format string.
13964
bae8023e
TS
139652014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13966
c82f56d9
TS
13967 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13968 flag. Adjust all users; in particular...
13969 (gnu_wait): ..., don't decrement its value in here...
13970 (gnu_create_inferior): ..., and instead set the flag in here,
13971 around the startup_inferior call, and call that one with
13972 START_INFERIOR_TRAPS_EXPECTED.
13973
3398af6a
TS
13974 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13975 (ILL_RPC): ... new macro.
13976 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13977 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13978 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13979 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13980 functions with ILL_RPC macro.
13981 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13982 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13983 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13984 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13985 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13986 (S_proc_getlogin_reply, S_proc_getsid_reply)
13987 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13988 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13989 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13990 (S_proc_getnports_reply, S_proc_is_important_reply)
13991 (S_proc_get_code_reply): New stub functions, generated with
13992 ILL_RPC macro.
13993
d47642c9
TS
13994 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13995 collected the type check structures.
13996
bae8023e
TS
13997 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13998
8a55ffb0
DE
139992014-02-14 Doug Evans <dje@google.com>
14000
14001 * target.c (target_write_partial): Fix result type.
14002
c2853f3d
JM
140032014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14004
14005 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14006 the proper offsets to access fpregset_t.
14007
ac61d2db
SA
140082014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14009
14010 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14011 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14012 * h8300-tdep.c (setmachinelist): Remove global.
14013 * hppa-tdep.c (hppa_sigtramp): Remove global.
14014 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14015 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14016 * ravenscar-thread.c (update_target_observer): Remove global.
14017 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14018
9d2d0b8b
TT
140192014-02-12 Tom Tromey <tromey@redhat.com>
14020
14021 * common/rsp-low.c: Update comments.
14022 * common/rsp-low.h: Update comments.
14023
a7191e8b
TT
140242014-02-12 Tom Tromey <tromey@redhat.com>
14025
14026 * common/rsp-low.c (convert_ascii_to_int): Remove.
14027 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14028
ff0e980e
TT
140292014-02-12 Tom Tromey <tromey@redhat.com>
14030
14031 * common/rsp-low.h (unhexify): Don't declare.
14032 * common/rsp-low.c (unhexify): Remove.
14033
e9371aff
TT
140342014-02-12 Tom Tromey <tromey@redhat.com>
14035
14036 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14037 * common/rsp-low.c (convert_int_to_ascii): Remove.
14038
971dc0b8
TT
140392014-02-12 Tom Tromey <tromey@redhat.com>
14040
14041 * common/rsp-low.h (hexify): Don't declare.
14042 * common/rsp-low.c (hexify): Remove.
14043
0a822afb
TT
140442014-02-12 Tom Tromey <tromey@redhat.com>
14045
14046 * common/rsp-low.c (hexify): Never take strlen of argument.
14047
9f1b45b0
TT
140482014-02-12 Tom Tromey <tromey@redhat.com>
14049
14050 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14051 * remote.c (extended_remote_run, remote_rcmd)
14052 (remote_download_trace_state_variable, remote_save_trace_data)
14053 (remote_set_trace_notes): Update.
14054 * tracepoint.c (encode_source_string, tfile_write_status)
14055 (tfile_write_uploaded_tsv): Update.
14056
9c3d6531
TT
140572014-02-12 Tom Tromey <tromey@redhat.com>
14058
14059 * tracepoint.c: Include rsp-low.h.
14060 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14061 * remote.c: Include rsp-low.h.
14062 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14063 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14064 (remote_unescape_input): Move to common/rsp-low.c.
14065 * common/rsp-low.h: New file.
14066 * common/rsp-low.c: New file.
14067 * Makefile.in (SFILES): Add common/rsp-low.c.
14068 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14069 (COMMON_OBS): Add rsp-low.o.
14070 (rsp-low.o): New target.
14071
01fd3ea5
TT
140722014-02-12 Tom Tromey <tromey@redhat.com>
14073
14074 * utils.h: Include print-utils.h.
14075 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14076 (int_string, core_addr_to_string, core_addr_to_string_nz)
14077 (hex_string, hex_string_custom): Don't declare.
14078 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14079 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14080 (hex_string_custom, int_string, core_addr_to_string)
14081 (core_addr_to_string_nz, host_address_to_string): Move to
14082 common/print-utils.c.
14083 * common/print-utils.h: New file.
14084 * common/print-utils.c: New file
14085 * Makefile.in (SFILES): Add common/print-utils.c.
14086 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14087 (COMMON_OBS): Add print-utils.o.
14088 (print-utils.o): New target.
14089
9fb50108
TT
140902014-02-12 Tom Tromey <tromey@redhat.com>
14091
14092 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14093
0548b5db
MK
140942014-02-12 Mark Kettenis <kettenis@gnu.org>
14095
14096 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14097
493443a4
MK
140982014-02-12 Mark Kettenis <kettenis@gnu.org>
14099
14100 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14101 if a PT_IO ptrace request returns sucessfully but indicates that 0
14102 bytes were transferred.
14103
706d0883
PA
141042014-02-12 Pedro Alves <palves@redhat.com>
14105 Kevin Buettner <kevinb@redhat.com>
14106
14107 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14108 TYPE_INSTANCE_FLAG_CODE_SPACE.
14109
5caa2f0b
PA
141102014-02-12 Pedro Alves <palves@redhat.com>
14111
14112 * h8300-tdep.c (pseudo_from_raw_register)
14113 (raw_from_pseudo_register): New functions.
14114 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14115 them.
14116
76fd5f74
PA
141172014-02-12 Pedro Alves <palves@redhat.com>
14118
14119 * h8300-tdep.c (h8300_register_sim_regno): New function.
14120 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14121 gdbarch_register_sim_regno hook.
14122
8f008406
SA
141232014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14124
14125 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14126
195abc10
SA
141272014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14128
14129 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14130
93ffa5b9
MK
141312014-02-12 Mark Kettenis <kettenis@gnu.org>
14132
14133 * obsd-tdep.h (obsd_init_abi): New prototype.
14134 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14135 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14136 (obsd_init_abi): New functions.
14137 * i386obsd-tdep.c: Include "obsd-tdep.h".
14138 (i386obsd_init_abi): Call obsd_init_abi.
14139 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14140 (amd64obsd_init_abi): Call obsd_init_abi.
14141 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14142 obsd-tdep.c to gdb_target_obs.
14143
49caec94
JM
141442014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14145
14146 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14147 double float arguments to 16-byte in the argument slots.
14148
e1402065
DE
141492014-02-11 Doug Evans <xdje42@gmail.com>
14150
14151 * configure.ac: Don't crash if pkg-config is not found and guile
14152 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14153 in guile checks.
14154 * configure: Regenerate.
14155
edcc890f
YQ
141562014-02-11 Yao Qi <yao@codesourcery.com>
14157
14158 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14159 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14160 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14161 * gnu-nat.c (gnu_xfer_memory): Likewise.
14162 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14163 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14164 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14165 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14166
9b409511
YQ
141672014-02-11 Yao Qi <yao@codesourcery.com>
14168
14169 * target.h (enum target_xfer_error): Rename to ...
14170 (enum target_xfer_status): ... it. New. All users updated.
14171 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14172 New.
14173 (TARGET_XFER_STATUS_ERROR_P): New macro.
14174 (target_xfer_error_to_string): Remove declaration.
14175 (target_xfer_status_to_string): Declare.
14176 (target_xfer_partial_ftype): Adjust it.
14177 (struct target_ops) <to_xfer_partial>: Return
14178 target_xfer_status. Add argument xfered_len. Update
14179 comments.
14180 * target.c (target_xfer_error_to_string): Rename to ...
14181 (target_xfer_status_to_string): ... it. New. All callers
14182 updated.
14183 (target_read_live_memory): Likewise. Call target_xfer_partial
14184 instead of target_read.
14185 (memory_xfer_live_readonly_partial): Return
14186 target_xfer_status. Add argument xfered_len.
14187 (raw_memory_xfer_partial): Likewise.
14188 (memory_xfer_partial_1): Likewise.
14189 (memory_xfer_partial): Likewise.
14190 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14191 properly. Update debug message.
14192 (default_xfer_partial, current_xfer_partial): Likewise.
14193 (target_write_partial): Likewise.
14194 (target_read_partial): Likewise. All callers updated.
14195 (read_whatever_is_readable): Likewise.
14196 (target_write_with_progress): Likewise.
14197 (target_read_alloc_1): Likewise.
14198
14199 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14200 * auxv.c (procfs_xfer_auxv): Likewise.
14201 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14202 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14203 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14204 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14205 * corefile.c (read_memory): Adjust.
14206 * corelow.c (core_xfer_partial): Likewise.
14207 * ctf.c (ctf_xfer_partial): Likewise.
14208 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14209 updated.
14210 (darwin_xfer_partial): Likewise.
14211 * exec.c (section_table_xfer_memory_partial): Likewise. All
14212 callers updated.
14213 (exec_xfer_partial): Likewise.
14214 * exec.h (section_table_xfer_memory_partial): Update
14215 declaration.
14216 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14217 negative.
14218 (gnu_xfer_partial): Likewise.
14219 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14220 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14221 (ia64_hpux_xfer_solib_got): Likewise.
14222 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14223 type of 'partial_len' to ULONGEST.
14224 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14225 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14226 (linux_nat_xfer_partial): Likewise.
14227 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14228 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14229 * monitor.c (monitor_xfer_memory): Likewise.
14230 (monitor_xfer_partial): Likewise.
14231 * procfs.c (procfs_xfer_partial): Likewise.
14232 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14233 * record-full.c (record_full_xfer_partial): Likewise.
14234 (record_full_core_xfer_partial): Likewise.
14235 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14236 (gdbsim_xfer_partial): Likewise.
14237 * remote.c (remote_write_bytes_aux): Likewise. All callers
14238 updated.
14239 (remote_write_bytes, remote_read_bytes): Likewise. All
14240 callers updated.
14241 (remote_flash_erase): Likewise. All callers updated.
14242 (remote_write_qxfer): Likewise. All callers updated.
14243 (remote_read_qxfer): Likewise. All callers updated.
14244 (remote_xfer_partial): Likewise.
14245 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14246 (rs6000_xfer_shared_libraries): Likewise.
14247 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14248 (sol_thread_xfer_partial): Likewise.
14249 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14250 (sparc_xfer_partial): Likewise.
14251 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14252 updated.
14253 (spu_xfer_partial): Likewise.
14254 * spu-multiarch.c (spu_xfer_partial): Likewise.
14255 * tracepoint.c (tfile_xfer_partial): Likewise.
14256 * windows-nat.c (windows_xfer_memory): Likewise.
14257 (windows_xfer_shared_libraries): Likewise.
14258 (windows_xfer_partial): Likewise.
14259 * valprint.c: Replace 'target_xfer_error' with
14260 'target_xfer_status' in comments.
14261
a8e63083
JB
142622014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14263
14264 Checked in by Joel Brobecker <brobecker@adacore.com>.
14265 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14266
e86b67d3
JB
142672014-02-11 Joel Brobecker <brobecker@adacore.com>
14268
14269 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14270 function parameters.
14271
4b7d1f7f
WN
142722014-02-10 Will Newton <will.newton@linaro.org>
14273
14274 * elfread.c (elf_rel_plt_read): Look for a .got section if
14275 looking up .got.plt fails.
14276 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14277 on address passed to elf_gnu_ifunc_record_cache.
14278 (elf_gnu_ifunc_resolve_addr): Likewise.
14279 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14280
961842b2
JM
142812014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14282
14283 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14284 (X_RETTURN): New macro.
14285 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14286
14287 * sparc64-tdep.c (sparc64_init_abi): Hook
14288 sparc_in_function_epilogue_p.
14289
3f03e7b1
GB
142902014-02-10 Gary Benson <gbenson@redhat.com>
14291
14292 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14293 Rename name_matcher to symbol_matcher.
14294
96f861ef
GB
142952014-02-10 Gary Benson <gbenson@redhat.com>
14296
14297 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14298 Use expand_symtabs_file_matcher_ftype and
14299 expand_symtabs_symbol_matcher_ftype.
14300
ee01b665
JB
143012014-02-10 Joel Brobecker <brobecker@adacore.com>
14302
14303 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14304 (struct ada_symbol_cache): New.
14305 (ada_free_symbol_cache): Forward declare.
14306 (struct ada_pspace_data): New.
14307 (ada_pspace_data_handle): New static global.
14308 (get_ada_pspace_data, ada_pspace_data_cleanup)
14309 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14310 (cache_space, cache): Delete, now folded inside struct
14311 ada_pspace_data.
14312 (ada_get_symbol_cache): New function.
14313 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14314 implementation.
14315 (_initialize_ada_language): Remove initialization of cache_space.
14316 Move call to observer_attach_inferior_exit up, grouping it
14317 with the other observer registrations inside this function.
14318 Rename command to be more general. Add call to
14319 register_program_space_data_with_cleanup.
14320
143adbbf
JB
143212014-02-10 Joel Brobecker <brobecker@adacore.com>
14322
14323 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14324 ada_new_objfile_observer.
14325 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14326 (_initialize_tasks): Update uses of ada_new_objfile_observer
14327 and ada_tasks_normal_stop_observer.
14328
aa4fb036
JB
143292014-02-10 Joel Brobecker <brobecker@adacore.com>
14330
14331 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14332 returned by the 'Length attribute to integer.
14333
9dee8cc6
JB
143342014-02-10 Joel Brobecker <brobecker@adacore.com>
14335
14336 * ada-lang.c (_initialize_ada_language): Initialize
14337 cache_space obstack.
14338
3d9434b5
JB
143392014-02-10 Joel Brobecker <brobecker@adacore.com>
14340
14341 * ada-lang.c (HASH_SIZE): New macro.
14342 (struct cache_entry): New type.
14343 (cache_space, cache): New static globals.
14344 (ada_clear_symbol_cache, find_entry): New functions.
14345 (lookup_cached_symbol, cache_symbol): Implement.
14346 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14347 (_initialize_ada_language): Attach ada_new_objfile_observer
14348 and ada_free_objfile_observer.
14349
f0c5f9b2
JB
143502014-02-10 Joel Brobecker <brobecker@adacore.com>
14351
14352 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14353 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14354 struct block * parameter.
14355 (ada_lookup_symbol_list_worker): Constify local variable "block".
14356 Remove cast which is no longer necessary.
14357
ed3ef339
DE
143582014-02-10 Doug Evans <xdje42@gmail.com>
14359
14360 Add Guile as an extension language.
14361 * NEWS: Mention Guile scripting.
14362 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14363 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14364 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14365 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14366 (CLIBS): Add GUILE_LIBS.
14367 (install-guile): New rule.
14368 (guile.o): New rule.
14369 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14370 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14371 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14372 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14373 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14374 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14375 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14376 * configure.ac: New option --with-guile.
14377 * configure: Regenerate.
14378 * config.in: Regenerate.
14379 * auto-load.c: Remove #include "python/python.h". Add #include
14380 "gdb/section-scripts.h".
14381 (source_section_scripts): Handle Guile scripts.
14382 (_initialize_auto_load): Add name of Guile objfile script to
14383 scripts-directory help text.
14384 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14385 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14386 (struct breakpoint): New member scm_bp_object.
14387 * defs.h (enum command_control_type): New value guile_control.
14388 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14389 "extension.h".
14390 (show_user): Update comment.
14391 (_initialize_cli_cmds): Update help text for "show user". Update help
14392 text for max-user-call-depth.
14393 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14394 "extension.h".
14395 (multi_line_command_p): Add guile_control.
14396 (print_command_lines): Handle guile_control.
14397 (execute_control_command, recurse_read_control_structure): Ditto.
14398 (process_next_line): Recognize "guile" commands.
14399 * disasm.c (gdb_disassemble_info): Make non-static.
14400 * disasm.h: #include "dis-asm.h".
14401 (struct gdbarch): Add forward decl.
14402 (gdb_disassemble_info): Declare.
14403 * extension.c: #include "guile/guile.h".
14404 (extension_languages): Add guile.
14405 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14406 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14407 * gdbtypes.c (get_unsigned_type_max): New function.
14408 (get_signed_type_minmax): New function.
14409 * gdbtypes.h (get_unsigned_type_max): Declare.
14410 (get_signed_type_minmax): Declare.
14411 * guile/README: New file.
14412 * guile/guile-internal.h: New file.
14413 * guile/guile.c: New file.
14414 * guile/guile.h: New file.
14415 * guile/scm-arch.c: New file.
14416 * guile/scm-auto-load.c: New file.
14417 * guile/scm-block.c: New file.
14418 * guile/scm-breakpoint.c: New file.
14419 * guile/scm-disasm.c: New file.
14420 * guile/scm-exception.c: New file.
14421 * guile/scm-frame.c: New file.
14422 * guile/scm-gsmob.c: New file.
14423 * guile/scm-iterator.c: New file.
14424 * guile/scm-lazy-string.c: New file.
14425 * guile/scm-math.c: New file.
14426 * guile/scm-objfile.c: New file.
14427 * guile/scm-ports.c: New file.
14428 * guile/scm-pretty-print.c: New file.
14429 * guile/scm-safe-call.c: New file.
14430 * guile/scm-string.c: New file.
14431 * guile/scm-symbol.c: New file.
14432 * guile/scm-symtab.c: New file.
14433 * guile/scm-type.c: New file.
14434 * guile/scm-utils.c: New file.
14435 * guile/scm-value.c: New file.
14436 * guile/lib/gdb.scm: New file.
14437 * guile/lib/gdb/boot.scm: New file.
14438 * guile/lib/gdb/experimental.scm: New file.
14439 * guile/lib/gdb/init.scm: New file.
14440 * guile/lib/gdb/iterator.scm: New file.
14441 * guile/lib/gdb/printing.scm: New file.
14442 * guile/lib/gdb/types.scm: New file.
14443 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14444 (VPATH): Add $(GUILE_SRCDIR).
14445 (GUILE_DIR): New variable.
14446 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14447 (all): Add stamp-guile dependency.
14448 (stamp-guile): New rule.
14449 (clean-guile, install-guile, uninstall-guile): New rules.
14450 (install-only): Add install-guile dependency.
14451 (uninstall): Add uninstall-guile dependency.
14452 (clean): Add clean-guile dependency.
14453
ac020ec5
DE
144542014-02-09 Doug Evans <xdje42@gmail.com>
14455
14456 Revert this patch (which I approved, mea culpa).
14457
14458 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14459
14460 * Makefile.in (all-lib): Remove.
14461 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14462
2a081c59
JK
144632014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14464
14465 Fix Python stack corruption.
14466 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14467 gdb_py_longest.
14468
0a6bd22d
MK
144692014-02-08 Mark Kettenis <kettenis@gnu.org>
14470
14471 * Makefile.in (all-lib): Remove.
14472 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14473
1a860409
DE
144742014-02-07 Doug Evans <dje@google.com>
14475
14476 * extension-priv.h (extension_language_script_ops): Add comment.
14477 (extension_language_ops): Add comment.
caf5a491 14478 (active_ext_lang_state): Fix typo in comment.
1a860409 14479
d137e6dc
PA
144802014-02-07 Pedro Alves <palves@redhat.com>
14481
0dcb32c3 14482 PR breakpoints/16292
d137e6dc
PA
14483 * infrun.c (handle_signal_stop) <signal arrives while stepping
14484 over a breakpoint>: Switch back to the stepping thread.
14485
ce6d0892
YQ
144862014-02-07 Yao Qi <yao@codesourcery.com>
14487
14488 * target.c (target_xfer_partial): Return zero if LEN is zero.
14489
2ed4b548
YQ
144902014-02-07 Yao Qi <yao@codesourcery.com>
14491
14492 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14493 (ld_so_xfer_auxv): Likewise.
14494 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14495 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14496 * corelow.c (core_xfer_partial): Likewise.
14497 * ctf.c (ctf_xfer_partial): Likewise.
14498 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14499 (darwin_xfer_partial): Likewise.
14500 * exec.c (exec_xfer_partial): Likewise.
14501 * gnu-nat.c (gnu_xfer_partial): Likewise.
14502 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14503 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14504 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14505 * linux-nat.c (linux_xfer_siginfo): Likewise.
14506 (linux_proc_xfer_spu): Likewise.
14507 * procfs.c (procfs_xfer_partial): Likewise.
14508 * record-full.c (record_full_xfer_partial): Likewise.
14509 (record_full_core_xfer_partial): Likewise.
14510 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14511 * remote.c (remote_write_qxfer): Likewise.
14512 (remote_write_qxfer, remote_read_qxfer): Likewise.
14513 (remote_xfer_partial): Likewise.
14514 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14515 (rs6000_xfer_shared_libraries): Likewise.
14516 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14517 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14518 (spu_xfer_partial): Likewise.
14519 * target.c (memory_xfer_partial_1): Likewise.
14520 * tracepoint.c (tfile_xfer_partial): Likewise.
14521 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14522 (windows_xfer_partial): Likewise.
14523
c09f20e4
YQ
145242014-02-07 Yao Qi <yao@codesourcery.com>
14525
14526 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14527 comments.
14528 (core_xfer_shared_libraries_aix): Likewise.
14529 * gdbarch.c, gdbarch.h: Regenerated.
14530 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14531 ULONGEST. Change 'len_avail' type to ULONGEST.
14532 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14533 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14534 declaration.
14535 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14536
8635b3bf
YQ
145372014-02-07 Yao Qi <yao@codesourcery.com>
14538
14539 * corefile.c (memory_error): Get 'exception' from ERR and pass
14540 'exception' to throw_error.
14541
6dddc817
DE
145422014-02-06 Doug Evans <xdje42@gmail.com>
14543
14544 * configure.ac (libpython checking): Remove all but python.o from
14545 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14546 * configure: Regenerate.
14547
14548 * Makefile.in (SFILES): Add extension.c.
14549 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14550 (COMMON_OBS): Add extension.o.
14551 * extension.h: New file.
14552 * extension-priv.h: New file.
14553 * extension.c: New file.
14554
14555 * python/python-internal.h: #include "extension.h".
14556 (gdbpy_auto_load_enabled): Declare.
14557 (gdbpy_apply_val_pretty_printer): Declare.
14558 (gdbpy_apply_frame_filter): Declare.
14559 (gdbpy_preserve_values): Declare.
14560 (gdbpy_breakpoint_cond_says_stop): Declare.
14561 (gdbpy_breakpoint_has_cond): Declare.
14562 (void source_python_script_for_objfile): Delete.
14563 * python/python.c: #include "extension-priv.h".
14564 Delete inclusion of "observer.h".
14565 (extension_language_python): Moved here and renamed from
14566 script_language_python in py-auto-load.c.
14567 Redefined to be of type extension_language_defn.
14568 (python_extension_script_ops): New global.
14569 (python_extension_ops): New global.
14570 (struct python_env): New member previous_active.
14571 (restore_python_env): Call restore_active_ext_lang.
14572 (ensure_python_env): Call set_active_ext_lang.
14573 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14574 New arg extlang.
14575 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14576 New arg extlang.
14577 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14578 New arg extlang.
14579 (gdbpy_eval_from_control_command): Renamed from
14580 eval_python_from_control_command, made static. New arg extlang.
14581 (gdbpy_source_script) Renamed from source_python_script, made static.
14582 New arg extlang.
14583 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14584 result to int. New arg extlang.
14585 (gdbpy_source_objfile_script): Renamed from
14586 source_python_script_for_objfile, made static. New arg extlang.
14587 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14588 static. New args extlang, extlang_printers. Change result type to
14589 "void".
14590 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14591 static. New arg extlang. Rename arg printers to extlang_printers
14592 and change type to ext_lang_type_printers *.
14593 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14594 static. Replace argument arg with extlang, extlang_printers.
14595 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14596 (!HAVE_PYTHON, source_python_script): Delete.
14597 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14598 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14599 (!HAVE_PYTHON, start_type_printers): Delete.
14600 (!HAVE_PYTHON, apply_type_printers): Delete.
14601 (!HAVE_PYTHON, free_type_printers): Delete.
14602 (_initialize_python): Delete call to observer_attach_before_prompt.
14603 (finalize_python): Set/restore active extension language.
14604 (gdbpy_finish_initialization) Renamed from
14605 finish_python_initialization, made static. New arg extlang.
14606 (gdbpy_initialized): New function.
14607 * python/python.h: #include "extension.h". Delete #include
14608 "value.h", "mi/mi-cmds.h".
14609 (extension_language_python): Declare.
14610 (GDBPY_AUTO_FILE_NAME): Delete.
14611 (enum py_bt_status): Moved to extension.h and renamed to
14612 ext_lang_bt_status.
14613 (enum frame_filter_flags): Moved to extension.h.
14614 (enum py_frame_args): Moved to extension.h and renamed to
14615 ext_lang_frame_args.
14616 (finish_python_initialization): Delete.
14617 (eval_python_from_control_command): Delete.
14618 (source_python_script): Delete.
14619 (apply_val_pretty_printer): Delete.
14620 (apply_frame_filter): Delete.
14621 (preserve_python_values): Delete.
14622 (gdbpy_script_language_defn): Delete.
14623 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14624 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14625
14626 * auto-load.c: #include "extension.h".
14627 (GDB_AUTO_FILE_NAME): Delete.
14628 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14629 (script_language_gdb): Delete, moved to extension.c and renamed to
14630 extension_language_gdb.
14631 (source_gdb_script_for_objfile): Delete.
14632 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14633 (loaded_script): Change type of language member to
14634 struct extension_language_defn *.
14635 (init_loaded_scripts_info): Initialize
14636 unsupported_script_warning_printed.
14637 (maybe_add_script): Make static. Change type of language arg to
14638 struct extension_language_defn *.
14639 (clear_section_scripts): Reset unsupported_script_warning_printed.
14640 (auto_load_objfile_script_1): Rewrite to use extension language API.
14641 (auto_load_objfile_script): Make public. Remove support-compiled-in
14642 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14643 (source_section_scripts): Rewrite to use extension language API.
14644 (load_auto_scripts_for_objfile): Rewrite to use
14645 auto_load_scripts_for_objfile.
14646 (collect_matching_scripts_data): Change type of language member to
14647 struct extension_language_defn *.
14648 (auto_load_info_scripts): Change type of language arg to
14649 struct extension_language_defn *.
14650 (unsupported_script_warning_print): New function.
14651 (script_not_found_warning_print): Make static.
14652 (_initialize_auto_load): Rewrite construction of scripts-directory
14653 help.
14654 * auto-load.h (struct objfile): Add forward decl.
14655 (struct script_language): Delete.
14656 (struct auto_load_pspace_info): Add forward decl.
14657 (struct extension_language_defn): Add forward decl.
14658 (maybe_add_script): Delete.
14659 (auto_load_objfile_script): Declare.
14660 (script_not_found_warning_print): Delete.
14661 (auto_load_info_scripts): Update prototype.
14662 (auto_load_gdb_scripts_enabled): Declare.
14663 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14664 auto_load_python_scripts_enabled and made public.
14665 (script_language_python): Delete, moved to python.c.
14666 (gdbpy_script_language_defn): Delete.
14667 (info_auto_load_python_scripts): Update to use
14668 extension_language_python.
14669
14670 * breakpoint.c (condition_command): Replace call to
14671 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14672 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14673 with call to breakpoint_ext_lang_cond_says_stop.
14674 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14675 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14676 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14677 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14678 New arg slang.
14679 (local_setattro): Print name of extension language with existing
14680 stop condition.
14681
14682 * valprint.c (val_print, value_print): Update to call
14683 apply_ext_lang_val_pretty_printer.
14684 * cp-valprint.c (cp_print_value): Update call to
14685 apply_ext_lang_val_pretty_printer.
14686 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14687 (gdbpy_apply_val_pretty_printer): Renamed from
14688 apply_val_pretty_printer. New arg extlang.
14689 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14690
14691 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14692 extension language API.
14693 * cli/cli-script.c (execute_control_command): Update to call
14694 eval_ext_lang_from_control_command.
14695
14696 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14697 enum ext_lang_bt_status values. Update call to
14698 apply_ext_lang_frame_filter.
14699 (mi_cmd_stack_list_locals): Ditto.
14700 (mi_cmd_stack_list_args): Ditto.
14701 (mi_cmd_stack_list_variables): Ditto.
14702 * mi/mi-main.c: Delete #include "python/python-internal.h".
14703 Add #include "extension.h".
14704 (mi_cmd_list_features): Replace reference to python internal variable
14705 gdb_python_initialized with call to ext_lang_initialized_p.
14706
14707 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14708 Update to use enum ext_lang_frame_args. Update to call
14709 apply_ext_lang_frame_filter.
14710 * python/py-framefilter.c (extract_sym): Update to use enum
14711 ext_lang_bt_status.
14712 (extract_value, py_print_type, py_print_value): Ditto.
14713 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14714 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14715 (py_print_frame): Ditto.
14716 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14717 New arg extlang. Update to use enum ext_lang_bt_status.
14718
14719 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14720 finish_python_initialization. Replace with call to
14721 finish_ext_lang_initialization.
14722
14723 * typeprint.c (do_free_global_table): Update to call
14724 free_ext_lang_type_printers.
14725 (create_global_typedef_table): Update to call
14726 start_ext_lang_type_printers.
14727 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14728 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14729 (type_print_options): Change type of global_printers from "void *"
14730 to "struct ext_lang_type_printers *".
14731
14732 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14733 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14734 (gdbpy_preserve_values): Renamed from preserve_python_values.
14735 New arg extlang.
14736 (!HAVE_PYTHON, preserve_python_values): Delete.
14737
14738 * utils.c (quit_flag): Delete, moved to extension.c.
14739 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14740 extension.c.
14741
14742 * eval.c: Delete #include "python/python.h".
14743 * main.c: Delete #include "python/python.h".
14744
14745 * defs.h: Update comment.
14746
6af79985
JB
147472014-02-06 Joel Brobecker <brobecker@adacore.com>
14748
14749 GDB 7.7 released.
14750
12c5175d
MK
147512014-02-05 Mark Kettenis <kettenis@gnu.org>
14752
14753 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14754 defined.
14755
8dc5b319
YQ
147562014-02-05 Yao Qi <yao@codesourcery.com>
14757
14758 * remote.c (remote_pass_signals): Remove local 'buf' and use
14759 rs->buf.
14760 (remote_program_signals): Likewise.
14761
de7b2893
YQ
147622014-02-05 Yao Qi <yao@codesourcery.com>
14763
14764 * ctf.c: Include "inferior.h" and "gdbthread.h".
14765 (CTF_PID): A new macro.
14766 (ctf_open): Call inferior_appeared and add_thread_silent.
14767 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14768 (ctf_thread_alive): New function.
14769 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14770
66d032ac
YQ
147712014-02-05 Yao Qi <yao@codesourcery.com>
14772
14773 Revert this patch:
14774
14775 2013-05-24 Yao Qi <yao@codesourcery.com>
14776
14777 * tracepoint.c (TFILE_PID): Remove.
14778 (tfile_open): Don't add thread and inferior.
14779 (tfile_close): Don't set 'inferior_ptid'. Don't call
14780 exit_inferior_silent.
14781 (tfile_thread_alive): Remove.
14782 (init_tfile_ops): Don't set field 'to_thread_alive' of
14783 tfile_ops.
14784
f4ccffad
CE
147852014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14786
14787 * remote.c (remote_start_remote): Call remote_check_symbols even
14788 if only symbol-file (not file) has been given.
14789
591a12a1
UW
147902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14791
14792 * gdbarch.sh (skip_entrypoint): New callback.
14793 * gdbarch.c, gdbarch.h: Regenerate.
14794 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14795 * infrun.c (fill_in_stop_func): Likewise.
14796 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14797 (ppc_elfv2_elf_make_msymbol_special): New function.
14798 (ppc_elfv2_skip_entrypoint): Likewise.
14799 (ppc_linux_init_abi): Install them for ELFv2.
14800
cc0e89c5
UW
148012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14802
14803 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14804 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14805 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14806 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14807 structures returned in GPRs.
14808
52f548e4
UW
148092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14810
14811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14812 offset to the stack parameter list for the ELFv2 ABI.
14813
d4094b6a
UW
148142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14815
14816 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14817 set_gdbarch_convert_from_func_ptr_addr and
14818 set_gdbarch_elf_make_msymbol_special for ELFv1.
14819 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14820 function descriptors on ELFv1.
14821 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14822 set up r12 at function entry.
14823
cd453cd0
UW
148242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14825
14826 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14827 (struct gdbarch_tdep): New member elf_abi.
14828
14829 * rs6000-tdep.c: Include "elf/ppc64.h".
14830 (rs6000_gdbarch_init): Detect ELF ABI version.
14831
0ff3e01f
UW
148322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14833
14834 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14835 within a register pair holding a DFP 128-bit value on little-endian.
14836 (ppc64_sysv_abi_return_value_base): Likewise.
14837 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14838 (dfp_pseudo_register_write): Likewise.
14839
5b757e5d
UW
148402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14841
14842 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14843 offset on little-endian when passing _Decimal32.
14844 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14845
084ee545
UW
148462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14847
14848 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14849 of the overlapped FP register within the VSX register on little-
14850 endian platforms.
14851 (efpr_pseudo_register_write): Likewise.
14852
d63167af
UW
148532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14854
14855 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14856 offset on little-endian when passing small structures.
14857
e765b44c
UW
148582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14859
14860 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14861 (struct ppc64_sysv_argpos): New data structure.
14862 (ppc64_sysv_abi_push_float): Remove.
14863 (ppc64_sysv_abi_push_val): New function.
14864 (ppc64_sysv_abi_push_integer): Likewise.
14865 (ppc64_sysv_abi_push_freg): Likewise.
14866 (ppc64_sysv_abi_push_vreg): Likewise.
14867 (ppc64_sysv_abi_push_param): Likewise.
14868 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14869 (ppc64_sysv_abi_return_value_base): New function.
14870 (ppc64_sysv_abi_return_value): Refactor to use it.
14871
36c24d95
UW
148722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14873
14874 * NEWS: Document new target powerpc64le-*-linux*.
14875
26fd9228
MK
148762014-02-04 Mark Kettenis <kettenis@gnu.org>
14877
14878 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14879 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14880 core dumps.
14881 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14882 register set used in ELF core dumps. Add floating-point register set.
14883
c5bb7362
KB
148842014-02-03 Kevin Buettner <kevinb@redhat.com>
14885
74228e77 14886 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14887 dwarf2_to_gdb[] table using symbolic constants. Adjust
14888 penultimate entry from number representing the PC register
14889 to symbolic constant representing the MDR register. Add
14890 constant for the PC register to the end of the table.
14891
af09351e
MK
148922014-02-03 Mark Kettenis <kettenis@gnu.org>
14893
14894 * bsd-kvm.c: Include <sys/param.h>
14895
8507e05d
MK
148962014-02-03 Mark Kettenis <kettenis@gnu.org>
14897
14898 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14899
ae56bfb8
JB
149002014-01-31 Joel Brobecker <brobecker@adacore.com>
14901
14902 * ada-lang.h (clear_ada_sym_cache): Delete.
14903
718ee4dc
UW
149042014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14905
14906 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14907
401e27fd
JM
149082014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14909
14910 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14911 the sigreturn register save area only if the syscall is
14912 sigreturn.
14913
a7c88acd
JB
149142014-01-29 Joel Brobecker <brobecker@adacore.com>
14915
14916 * valops.c (value_slice): Minor reformatting.
14917
fa0079ea
UW
149182014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14919
14920 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14921
c6044dd1
JB
149222014-01-28 Joel Brobecker <brobecker@adacore.com>
14923
14924 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14925 New static globals.
14926 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14927 (ada_ignore_descriptive_types_p): New static global.
14928 (find_parallel_type_by_descriptive_type): Return immediately
14929 if ada_ignore_descriptive_types_p is set.
14930 (_initialize_ada_language): Register new commands "maintenance
14931 set ada", "maintenance show ada", "maintenance set ada
14932 ignore-descriptive-types" and "maintenance show ada
14933 ignore-descriptive-types".
14934 * NEWS: Add entry for new "maint ada set/show
14935 ignore-descriptive-types" commands.
14936
568e808b
MM
149372014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14938
14939 * record-btrace.c (record_btrace_close): Call btrace_teardown
14940 for all threads.
14941
467d141b
JB
149422014-01-27 Joel Brobecker <brobecker@adacore.com>
14943
14944 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14945 "ui-out.h".
14946
fb151210
JB
149472014-01-27 Joel Brobecker <brobecker@adacore.com>
14948
14949 * ada-typeprint (type_is_full_subrange_of_target_type):
14950 New function.
14951 (print_range): Add parameter bounds_prefered_p. If not set,
14952 try printing range types using the name of their base type.
14953 (print_range_type): Add parameter bounds_prefered_p.
14954 Use it in call to print_range.
14955 (print_array_type, ada_print_type): Update calls to print_range
14956 and print_range_type.
14957
aba02109
JB
149582014-01-27 Joel Brobecker <brobecker@adacore.com>
14959
14960 * ada-typeprint.c (print_array_type, print_choices, print_range)
14961 (print_range_bound, print_dynamic_range_bound, print_range_type):
14962 Remove declaration.
14963
e62e21fd
JB
149642014-01-27 Joel Brobecker <brobecker@adacore.com>
14965
14966 * ada-typeprint.c (print_range): Add missing empty line
14967 after local declaration.
14968
859cf5d1
JB
149692014-01-27 Joel Brobecker <brobecker@adacore.com>
14970
14971 * ada-valprint.c (print_optional_low_bound): Get index_type's
14972 target type for as long as it is a TYPE_CODE_RANGE.
14973
25790f6f
JB
149742014-01-27 Joel Brobecker <brobecker@adacore.com>
14975
14976 * procfs.c (procfs_make_note_section): Remove assertion and
14977 associated comment.
14978
6b6aa828
YQ
149792014-01-24 Yao Qi <yao@codesourcery.com>
14980
14981 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14982 * corelow.c (get_core_siginfo): Likewise.
14983
5d6df423
YQ
149842014-01-24 Yao Qi <yao@codesourcery.com>
14985
14986 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14987 ULONGEST. Don't check 'len' is negative.
14988 (remote_write_bytes): Change type of 'len' to ULONGEST.
14989
83b645b8
TT
149902014-01-23 Tom Tromey <tromey@redhat.com>
14991
14992 PR python/16485:
14993 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14994 Handle exception from frame.block.
14995 (FrameVars.fetch_frame_locals): Likewise.
14996
0740f8d8
TT
149972014-01-23 Tom Tromey <tromey@redhat.com>
14998
14999 PR python/16487:
15000 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15001 on a NULL pointer. Move "goto error" to correct place.
15002
21909fa1
TT
150032014-01-23 Tom Tromey <tromey@redhat.com>
15004
15005 PR python/16491:
15006 * python/py-framefilter.c (apply_frame_filter): Call
15007 ensure_python_env after computing gdbarch.
15008
17fde6d0
YQ
150092014-01-23 Yao Qi <yao@codesourcery.com>
15010
15011 * target.c (raw_memory_xfer_partial): Change argument type
15012 from void * to gdb_byte *.
15013 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15014
87ce2a04
DE
150152014-01-22 Doug Evans <dje@google.com>
15016
15017 New gdbserver option --debug-format=timestamp.
15018 * NEWS: Mention it.
15019
237b092b
AA
150202014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15021
15022 * syscalls/s390x-linux.xml: New file.
15023 * syscalls/s390-linux.xml: New file.
15024 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15025 (XML_SYSCALL_FILENAME_S390X): Likewise.
15026 (op_svc): New enum value for SVC opcode.
15027 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15028 (s390_linux_get_syscall_number): New function.
15029 (s390_gdbarch_init): Register '*get_syscall_number' and the
15030 syscall xml file name.
15031 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15032 "s390-linux.xml" and "s390x-linux.xml".
15033 * NEWS: Announce new feature.
15034
54bff650
BS
150352014-01-22 Baruch Siach <baruch@tkos.co.il>
15036
15037 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15038
14e361d7
PA
150392014-01-22 Pedro Alves <palves@redhat.com>
15040
15041 * xtensa-config.c: Include defs.h.
15042
46bbb3ed
JB
150432014-01-22 Joel Brobecker <brobecker@adacore.com>
15044
15045 * common/common-utils.h: Add "ARI:" comment beside __func__
15046 reference.
15047
3a80edfc
JB
150482014-01-22 Joel Brobecker <brobecker@adacore.com>
15049
15050 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15051 documentation a bit.
15052
4869db5e
RM
150532014-01-21 Roland McGrath <mcgrathr@google.com>
15054
15055 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15056 * configure: Regenerate.
15057 * aclocal.m4: Regenerate.
15058 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15059 New substituted variables.
15060 (install-strip): New target.
15061 (INSTALL_SCRIPT): New substituted variable.
15062 (FLAGS_TO_PASS): Add it.
15063 (install-only): Use $(INSTALL_SCRIPT) rather than
15064 $(INSTALL_PROGRAM) for gcore.
15065
9ea4267d
TT
150662014-01-20 Tom Tromey <tromey@redhat.com>
15067
15068 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15069 together.
15070
1f2bdf09
TT
150712014-01-20 Tom Tromey <tromey@redhat.com>
15072
15073 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15074 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15075 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15076 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15077 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15078 (struct cmd_list_element) <flags>: Remove.
15079 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15080 doc_allocated>: New fields.
15081 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15082 bitfields.
15083 * maint.c (maintenance_do_deprecate): Update.
15084 * top.c (execute_command): Update.
15085
e671835b
BS
150862014-01-20 Baruch Siach <baruch@tkos.co.il>
15087
15088 * xtensa-linux-nat.c: Include asm/ptrace.h.
15089
50367cd2
IB
150902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15091
15092 * Makefile.in (SFILES): Add d-support.c.
15093 (COMMON_OBS): Add d-support.o.
15094 * d-lang.h (d_parse_symbol): Add comment, now defined in
15095 d-support.c.
15096 * d-lang.c (parse_call_convention)
15097 (parse_attributes, parse_function_types)
15098 (parse_function_args, parse_type, parse_identifier)
15099 (call_convention_p, d_parse_symbol): Move functions to ...
15100 * d-support.c: ... New file.
15101
ec9f644a
IB
151022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15103
15104 * d-lang.h (d_parse_symbol): Add declaration.
15105 * d-lang.c (extract_identifiers)
15106 (extract_type_info): Remove functions.
15107 (parse_call_convention, parse_attributes)
15108 (parse_function_types, parse_function_args)
15109 (parse_type, parse_identifier, call_convention_p)
15110 (d_parse_symbol): New functions.
15111 (d_demangle): Use d_parse_symbol to demangle D symbols.
15112
94b1b47e
IB
151132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15114
15115 * d-lang.h (struct builtin_d_type): New data type.
15116 (builtin_d_type): Add declaration.
15117 * d-lang.c (d_language_arch_info, build_d_types)
15118 (builtin_d_type): New functions.
15119 (enum d_primitive_types): New data type.
15120 (d_language_defn): Change c_language_arch_info to
15121 d_language_arch_info.
15122 (d_type_data): New static variable.
15123 (_initialize_d_language): Initialize d_type_data.
15124
63778547
IB
151252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15126
15127 * d-lang.h (d_main_name): Add declaration.
15128 * d-lang.c (d_main_name): New function.
15129 * symtab.c (find_main_name): Add call to d_main_name.
15130
3271ba66
IB
151312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15132
15133 * d-lang.c (d_language_defn): Change macro_expansion_c to
15134 macro_expansion_no.
15135
d36b3012
IB
151362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15137
15138 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15139
c90a6fb7
SDJ
151402014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15141
15142 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15143 gdb_exception" declaration.
15144 * remote.c (getpkt_or_notif_sane): Likewise.
15145
749234e5
DE
151462014-01-17 Doug Evans <dje@google.com>
15147
15148 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15149 function, contents of dirnames_to_char_ptr_vec_append moved here.
15150 (delim_string_to_char_ptr_vec): New function.
15151 (dirnames_to_char_ptr_vec_append): Rewrite.
15152 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15153
df049a58
DE
151542014-01-17 Doug Evans <dje@google.com>
15155
15156 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15157 and moved here ...
15158 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15159 #include "common-utils.h".
15160 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15161 * common/vec.h (VEC_ASSERT_PASS): Update.
15162 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15163 (MACH_CHECK_ERROR): Update.
15164
69f97648
SM
151652014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15166
15167 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15168 comments.
15169 * gdbarch.h: Regenerate.
15170
98b1cfdc
TT
151712014-01-16 Tom Tromey <tromey@redhat.com>
15172
15173 * value.c (struct value) <regnum>: Move earlier.
15174
77a19445
TT
151752014-01-16 Tom Tromey <tromey@redhat.com>
15176
15177 * remote.c (extended_remote_create_inferior): Rename from
15178 extended_remote_create_inferior_1. Add "ops" argument. Remove
15179 old implementation.
15180
62261490
PA
151812014-01-16 Pedro Alves <palves@redhat.com>
15182
15183 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15184 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15185 the backchain.
15186
4d65956b
DE
151872014-01-16 Doug Evans <dje@google.com>
15188
15189 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15190
52834460
MM
151912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15192
15193 * btrace.h (btrace_thread_flag): New.
15194 (struct btrace_thread_info) <flags>: New.
15195 * record-btrace.c (record_btrace_resume_thread)
15196 (record_btrace_find_thread_to_move, btrace_step_no_history)
15197 (btrace_step_stopped, record_btrace_start_replaying)
15198 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15199 (record_btrace_find_resume_thread): New.
15200 (record_btrace_resume, record_btrace_wait): Extend.
15201 (record_btrace_can_execute_reverse): New.
15202 (record_btrace_open): Fail in non-stop mode.
15203 (record_btrace_set_replay): Split into this, ...
15204 (record_btrace_stop_replaying): ... this, ...
15205 (record_btrace_clear_histories): ... and this.
15206 (init_record_btrace_ops): Init to_can_execute_reverse.
15207 * NEWS: Announce it.
15208
118e6252
MM
152092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15210
15211 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15212 (forward_target_decr_pc_after_break)
15213 (target_decr_pc_after_break): New.
15214 * target.c (forward_target_decr_pc_after_break)
15215 (target_decr_pc_after_break): New.
15216 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15217 instead of gdbarch_decr_pc_after_break.
15218 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15219 instead of gdbarch_decr_pc_after_break.
15220 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15221 instead of gdbarch_decr_pc_after_break.
15222 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15223 instead of gdbarch_decr_pc_after_break.
15224 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15225 instead of gdbarch_decr_pc_after_break.
15226 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15227 instead of gdbarch_decr_pc_after_break.
15228
6e07b1d2
MM
152292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15230
15231 * btrace.c: Include regcache.h.
15232 (btrace_add_pc): New.
15233 (btrace_enable): Call btrace_add_pc.
15234 (btrace_is_empty): New.
15235 * btrace.h (btrace_is_empty): New.
15236 * record-btrace.c (require_btrace, record_btrace_info): Call
15237 btrace_is_empty.
15238
969c39fb
MM
152392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15240
15241 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15242 Support delta reads.
15243 (linux_disable_btrace): Change return type.
15244 * common/linux-btrace.h (linux_read_btrace): Change parameters
15245 and return type to allow error reporting. Update users.
15246 (linux_disable_btrace): Change return type. Update users.
15247 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15248 New.
15249 (btrace_error): New.
15250 (btrace_block) <begin>: Comment on BEGIN == 0.
15251 * btrace.c (btrace_compute_ftrace): Start from the end of
15252 the current trace.
15253 (btrace_stitch_trace, btrace_clear_history): New.
15254 (btrace_fetch): Read delta trace, return if replaying.
15255 (btrace_clear): Move clear history code to btrace_clear_history.
15256 (parse_xml_btrace): Throw an error if parsing failed.
15257 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15258 and return type to allow error reporting.
15259 (target_read_btrace): Change parameters and return type to allow
15260 error reporting.
15261 * target.c (target_read_btrace): Update.
15262 * remote.c (remote_read_btrace): Support delta reads. Pass
15263 errors on.
15264 * NEWS: Announce it.
15265
0b722aec
MM
152662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15267
15268 * record.h (record_btrace_frame_unwind)
15269 (record_btrace_tailcall_frame_unwind): New declarations.
15270 * dwarf2-frame: Include record.h
15271 (dwarf2_frame_cfa): Throw an error for btrace frames.
15272 * record-btrace.c: Include hashtab.h.
15273 (btrace_get_bfun_name): New.
15274 (btrace_call_history): Call btrace_get_bfun_name.
15275 (struct btrace_frame_cache): New.
15276 (bfcache): New.
15277 (bfcache_hash, bfcache_eq, bfcache_new): New.
15278 (btrace_get_frame_function): New.
15279 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15280 (record_btrace_frame_this_id): Compute own id.
15281 (record_btrace_frame_prev_register): Provide PC, throw_error
15282 for all other registers.
15283 (record_btrace_frame_sniffer): Detect btrace frames.
15284 (record_btrace_tailcall_frame_sniffer): New.
15285 (record_btrace_frame_dealloc_cache): New.
15286 (record_btrace_frame_unwind): Add new functions.
15287 (record_btrace_tailcall_frame_unwind): New.
15288 (_initialize_record_btrace): Allocate cache.
15289 * btrace.c (btrace_clear): Call reinit_frame_cache.
15290 * NEWS: Announce it.
15291
066ce621
MM
152922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15293
15294 * record-btrace.c (record_btrace_set_replay)
15295 (record_btrace_goto_begin, record_btrace_goto_end)
15296 (record_btrace_goto): New.
15297 (init_record_btrace_ops): Initialize them.
15298 * NEWS: Announce it.
15299
e2887aa3
MM
153002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15301
15302 * record-btrace.c (record_btrace_find_new_threads)
15303 (record_btrace_thread_alive): New.
15304 (init_record_btrace_ops): Initialize to_find_new_threads and
15305 to_thread_alive.
15306
b2f4cfde
MM
153072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15308
15309 * record-btrace.c (record_btrace_resume): New.
15310 (record_btrace_wait): New.
15311 (init_record_btrace_ops): Initialize to_wait and to_resume.
15312
633785ff
MM
153132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15314
15315 * record-btrace.c (record_btrace_xfer_partial)
15316 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15317 (record_btrace_allow_memory_access): New.
15318 (init_record_btrace_ops): Initialize new methods.
15319 * target.c (raw_memory_xfer_partial): Bail out if target reports
15320 that this memory is not available.
15321
3db08215
MM
153222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15323
15324 * target.h (target_ops) <to_insert_breakpoint>
15325 <to_remove_breakpoint>: Add target_ops parameter.
15326 (forward_target_insert_breakpoint): New.
15327 (forward_target_remove_breakpoint): New.
15328 (memory_remove_breakpoint, memory_insert_breakpoint):
15329 Add target_ops parameter.
15330 * target.c (target_insert_breakpoint): Split into this and ...
15331 (forward_target_insert_breakpoint): ... this.
15332 (target_remove_breakpoint): Split into this and ...
15333 (forward_target_remove_breakpoint): ... this.
15334 (debug_to_insert_breakpoint): Add target_ops parameter.
15335 Call forward_target_insert_breakpoint.
15336 (debug_to_remove_breakpoint): Add target_ops parameter.
15337 Call forward_target_remove_breakpoint.
15338 (update_current_target): Do not inherit or default to_insert_breakpoint
15339 and to_remove_breakpoint.
15340 * corelow.c (ignore): Add target_ops parameter.
15341 * exec.c (ignore): Add target_ops parameter.
15342 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15343 Add target_ops parameter.
15344 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15345 Add target_ops parameter.
15346 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15347 Add target_ops parameter.
15348 * record-full.c (record_full_beneath_to_insert_breakpoint)
15349 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15350 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15351 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15352 (record_full_core_remove_breakpoint): Add target_ops parameter.
15353 Update users.
15354 (record_full_beneath_to_insert_breakpoint_ops)
15355 (record_full_beneath_to_remove_breakpoint_ops)
15356 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15357 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15358 tmp_to_remove_breakpoint_ops,
15359 record_full_beneath_to_insert_breakpoint_ops, and
15360 record_full_beneath_to_remove_breakpoint_ops.
15361 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15362 (m32r_remove_breakpoint): Add target_ops parameter.
15363 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15364 Add target_ops parameter.
15365 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15366 Add target_ops parameter.
15367
cecac1ab
MM
153682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15369 Markus Metzger <markus.t.metzger@intel.com>
15370
15371 * record-btrace.c: Include frame-unwind.h.
15372 (record_btrace_frame_unwind_stop_reason)
15373 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15374 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15375 New.
15376 (init_record_btrace_ops): Install it.
15377
824344ca
MM
153782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15379
15380 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15381 get_prev_frame_1.
15382
32261e52
MM
153832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15384
15385 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15386 earlier.
15387
ea001bdc
MM
153882014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15389
15390 * frame-unwind.c: Include target.h.
15391 (frame_unwind_try_unwinder): New function with code from ...
15392 (frame_unwind_find_by_frame): ... here. New variable
15393 unwinder_from_target, call also target_get_unwinder)
15394 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15395 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15396 * target.h (struct target_ops): New fields to_get_unwinder and
15397 to_get_tailcall_unwinder.
15398 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15399
1f3ef581
MM
154002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15401
15402 * record-btrace.c (record_btrace_fetch_registers)
15403 (record_btrace_store_registers)
15404 (record_btrace_to_prepare_to_store): New.
15405 (init_record_btrace_ops): Add the above.
15406
f32dbf8c
MM
154072014-01-16 Tom Tromey <tromey@redhat.com>
15408
15409 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15410 * target.h (struct target_ops) <to_prepare_to_store>: Add
15411 argument.
15412 (target_prepare_to_store): Add argument.
15413 * target.c (debug_to_prepare_to_store): Add argument.
15414 (update_current_target): Update.
15415 * remote.c (remote_prepare_to_store): Add 'self' argument.
15416 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15417 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15418 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15419 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15420 argument.
15421 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15422 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15423 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15424 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15425 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15426
07bbe694
MM
154272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15428
15429 * btrace.h (replay) <replay>: New.
15430 (btrace_is_replaying): New.
15431 * btrace.c (btrace_clear): Free replay iterator.
15432 (btrace_is_replaying): New.
15433 * record-btrace.c (record_btrace_is_replaying): New.
15434 (record_btrace_info): Print insn number if replaying.
15435 (record_btrace_insn_history): Start at replay position.
15436 (record_btrace_call_history): Start at replay position.
15437 (init_record_btrace_ops): Init to_record_is_replaying.
15438
0688d04e
MM
154392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15440
15441 * record-btrace.c (record_btrace_insn_history_range): Include
15442 end.
15443 (record_btrace_insn_history_from): Adjust range.
15444 (record_btrace_call_history_range): Include
15445 end.
15446 (record_btrace_call_history_from): Adjust range.
15447 * NEWS: Announce changes.
15448
8710b709
MM
154492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15450
15451 * record.h (enum record_print_flag)
15452 <record_print_indent_calls>: New.
15453 * record.c (get_call_history_modifiers): Recognize /c modifier.
15454 (_initialize_record): Document /c modifier.
15455 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15456 Reorder fields. Optionally indent the function name. Update
15457 all users.
15458 * NEWS: Announce changes.
15459
d0fa7535
MM
154602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15461
15462 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15463
5de9129b
MM
154642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15465
15466 * btrace.c (ftrace_new_function): Start counting at one.
15467 * record-btrace.c (record_btrace_info): Adjust number of calls
15468 and insns.
15469 * NEWS: Announce it.
15470
7acbe133
MM
154712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15472
15473 * record-btrace.c (btrace_call_history_insn_range): Print
15474 insn range as [begin, end].
15475
23a7fe75
MM
154762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15477
15478 * btrace.h (struct btrace_func_link): New.
15479 (enum btrace_function_flag): New.
15480 (struct btrace_inst): Rename to ...
15481 (struct btrace_insn): ...this. Update all users.
15482 (struct btrace_func) <ibegin, iend>: Remove.
15483 (struct btrace_func_link): New.
15484 (struct btrace_func): Rename to ...
15485 (struct btrace_function): ...this. Update all users.
15486 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15487 (number, level, flags>: New.
15488 (struct btrace_insn_iterator): Rename to ...
15489 (struct btrace_insn_history): ...this.
15490 Update all users.
15491 (struct btrace_insn_iterator, btrace_call_iterator): New.
15492 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15493 (struct btrace_target_info) <begin, end, level>
15494 <insn_history, call_history>: New.
15495 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15496 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15497 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15498 (btrace_call_number, btrace_call_begin, btrace_call_end)
15499 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15500 (btrace_find_function_by_number, btrace_set_insn_history)
15501 (btrace_set_call_history): New.
15502 * btrace.c (btrace_init_insn_iterator)
15503 (btrace_init_func_iterator, compute_itrace): Remove.
15504 (ftrace_print_function_name, ftrace_print_filename)
15505 (ftrace_skip_file): Change
15506 parameter to const.
15507 (ftrace_init_func): Remove.
15508 (ftrace_debug): Use new btrace_function fields.
15509 (ftrace_function_switched): Also consider gaining and
15510 losing symbol information).
15511 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15512 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15513 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15514 New.
15515 (ftrace_new_function): Move. Remove debug print.
15516 (ftrace_update_lines, ftrace_update_insns): New.
15517 (ftrace_update_function): Check for call, ret, and jump.
15518 (compute_ftrace): Renamed to ...
15519 (btrace_compute_ftrace): ...this. Rewritten to compute call
15520 stack.
15521 (btrace_fetch, btrace_clear): Updated.
15522 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15523 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15524 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15525 (btrace_call_number, btrace_call_begin, btrace_call_end)
15526 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15527 (btrace_find_function_by_number, btrace_set_insn_history)
15528 (btrace_set_call_history): New.
15529 * record-btrace.c (require_btrace): Use new btrace thread
15530 info fields.
15531 (record_btrace_info, btrace_insn_history)
15532 (record_btrace_insn_history, record_btrace_insn_history_range):
15533 Use new btrace thread info fields and new iterator.
15534 (btrace_func_history_src_line): Rename to ...
15535 (btrace_call_history_src_line): ...this. Use new btrace
15536 thread info fields.
15537 (btrace_func_history): Rename to ...
15538 (btrace_call_history): ...this. Use new btrace thread info
15539 fields and new iterator.
15540 (record_btrace_call_history, record_btrace_call_history_range):
15541 Use new btrace thread info fields and new iterator.
15542
8372a7cb
MM
155432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15544
15545 * frame.h (frame_id_build_unavailable_stack_special): New.
15546 * frame.c (frame_id_build_unavailable_stack_special): New.
15547
c2170eef
MM
155482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15549
15550 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15551 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15552 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15553 to gdbarch.
15554 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15555 (i386_insn_is_jump, i386_jmp_p): New.
15556 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15557 insn_is_jump to gdbarch.
15558 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15559 * gdbarch.h: Regenerated.
15560 * gdbarch.c: Regenerated.
15561 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15562 (default_insn_is_jump): New.
15563 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15564 (default_insn_is_jump): New.
15565
864089d2
MM
155662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15567
15568 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15569 Change to ...
15570 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15571 (btrace_read_type) <btrace_read_new>: Change to ...
15572 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15573
ed9edfb5
MM
155742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15575
15576 * common/linux-btrace.c (linux_read_btrace): Free trace from
15577 previous iteration.
15578
fbcbc3fd
DE
155792014-01-15 Doug Evans <dje@google.com>
15580
15581 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15582 uint32_t.
15583
3d548a53
TT
155842014-01-15 Tom Tromey <tromey@redhat.com>
15585
15586 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15587 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15588 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15589 (set_objfile_main_name): New function.
15590 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15591 language_of_main>: New fields.
15592 (set_objfile_main_name): Declare.
15593 * symtab.c (find_main_name): Loop over objfiles to find the main
15594 name and language.
15595 (set_main_name): Now static.
15596 (get_main_info): Add comment.
15597 * symtab.h (set_main_name): Don't declare.
15598
32ac0d11
TT
155992014-01-15 Tom Tromey <tromey@redhat.com>
15600
15601 * symtab.c (main_progspace_key): New global.
15602 (struct main_info): New.
15603 (name_of_main, language_of_main): Remove.
15604 (get_main_info, main_info_cleanup): New function.
15605 (set_main_name, main_name, main_language): Use get_main_info.
15606 (_initialize_symtab): Initialize main_progspace_key.
15607
9e6c82ad
TT
156082014-01-15 Tom Tromey <tromey@redhat.com>
15609
15610 * dbxread.c (process_one_symbol): Update.
15611 * dwarf2read.c (read_partial_die): Update.
15612 * symfile.c (set_initial_language): Call main_language.
15613 * symtab.c (language_of_main): Now static.
15614 (set_main_name): Add 'lang' parameter.
15615 (find_main_name): Update.
15616 (main_language): New function.
15617 (symtab_observer_executable_changed): Update.
15618 * symtab.h (set_main_name): Update.
15619 (language_of_main): Remove.
15620 (main_language): Declare.
15621
6ef55de7
TT
156222014-01-15 Tom Tromey <tromey@redhat.com>
15623
15624 * symfile.c (init_entry_point_info): Use new "initialized" field.
15625 Update.
15626 * objfiles.h (struct entry_point) <initialized>: New field.
15627 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15628 (struct objfile) <ei>: ...here. Remove.
15629 * objfiles.c (entry_point_address_query): Update.
15630
53eddfa6
TT
156312014-01-15 Tom Tromey <tromey@redhat.com>
15632
15633 * objfiles.c (entry_point_address_query): Relocate entry point
15634 address.
15635 (objfile_relocate1): Do not relocate entry point address.
15636 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15637 <the_bfd_section_index>: New field.
15638 * symfile.c (init_entry_point_info): Find the entry point's
15639 section.
15640
d56e56aa
TT
156412014-01-15 Tom Tromey <tromey@redhat.com>
15642
15643 * solib-frv.c (enable_break): Use entry_point_address_query.
15644
33a97bbe
OJ
156452014-01-15 Omair Javaid <omair.javaid@linaro.org>
15646
15647 * NEWS: Add note on improved process record-replay on
15648 arm*-linux* targets.
15649
c6ec2b30
OJ
156502014-01-15 Omair Javaid <omair.javaid@linaro.org>
15651
15652 * arm-tdep.c (enum arm_record_result): New enum.
15653 (arm_record_unsupported_insn): New function.
15654 (arm_record_coproc_data_proc): Removed.
15655 (thumb2_record_ld_st_multiple): New function.
15656 (thumb2_record_ld_st_dual_ex_tbb): New function.
15657 (thumb2_record_data_proc_sreg_mimm): New function.
15658 (thumb2_record_ps_dest_generic): New function.
15659 (thumb2_record_branch_misc_cntrl): New function.
15660 (thumb2_record_str_single_data): New function.
15661 (thumb2_record_ld_mem_hints): New function.
15662 (thumb2_record_ld_word): New function.
15663 (thumb2_record_lmul_lmla_div): New function.
15664 (thumb2_record_decode_insn_handler): New function.
15665 (decode_insn): Add thumb32 instruction handlers.
15666
97dfe206
OJ
156672014-01-15 Omair Javaid <omair.javaid@linaro.org>
15668
15669 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15670 (struct arm_linux_record_tdep): Declare.
15671 (arm_canonicalize_syscall): New function.
15672 (arm_all_but_pc_registers_record): New function.
15673 (arm_linux_syscall_record): New function.
15674 (arm_linux_init_abi): Add syscall recording constructs.
15675 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15676 decoding. (arm_record_coproc_data_proc): Update arm syscall
15677 decoding.
15678 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15679 <arm_syscall_record>: New field.
15680 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15681 gdb_target_obs.
15682
9904a494
OJ
156832014-01-15 Omair Javaid <omair.javaid@linaro.org>
15684
15685 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15686 register for push instruction recording.
15687
f969241e
OJ
156882014-01-15 Omair Javaid <omair.javaid@linaro.org>
15689
15690 * arm-tdep.c (thumb_record_misc): Update to correct logical
15691 error while recording ldm, ldmia and pop instructions.
15692
bfbbec00
OJ
156932014-01-15 Omair Javaid <omair.javaid@linaro.org>
15694
15695 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15696
e40adcc9
PA
156972014-01-15 Pedro Alves <palves@redhat.com>
15698
15699 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15700 (go32_resume, go32_fetch_registers, store_register)
15701 (go32_store_registers, go32_prepare_to_store)
15702 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15703 (go32_create_inferior, go32_can_run, go32_terminal_init)
15704 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15705 declarations.
15706
b0a16e66
TT
157072014-01-15 Tom Tromey <tromey@redhat.com>
15708
15709 * target.h (async_callback_ftype): New typedef.
15710 (struct target_ops) <to_async>: Use it.
15711
bf7105a4
JB
157122014-01-15 Joel Brobecker <brobecker@adacore.com>
15713
15714 * python/py-value.c (get_field_type): Remove unnecessary curly
15715 braces for single-statement if block.
15716
a8f35c2e
JB
157172014-01-15 Joel Brobecker <brobecker@adacore.com>
15718
15719 * python/py-type.c (convert_field): Add missing empty line
15720 after declarations.
15721
bb4142cf
DE
157222014-01-14 Doug Evans <dje@google.com>
15723
15724 * symfile.h (expand_symtabs_matching): Renamed from
15725 expand_partial_symbol_names. Update prototype.
15726 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15727 * symfile.c (expand_symtabs_matching): Renamed from
15728 expand_partial_symbol_names. New args file_matcher, kind.
15729 Rename arg fun to symbol_matcher.
15730 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15731 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15732 ada_expand_partial_symbol_name.
15733 (ada_make_symbol_completion_list): Update to call
15734 expand_symtabs_matching.
15735 (ada_add_global_exceptions): Call expand_symtabs_matching.
15736 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15737 call map_symbol_filenames.
15738 * symtab.c (sources_info): Update to call map_symbol_filenames.
15739 (search_symbols): Call expand_symtabs_matching.
15740 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15741 (default_make_symbol_completion_list_break_on): Update to call
15742 expand_symtabs_matching.
15743 (make_source_files_completion_list): Update to call
15744 map_symbol_filenames.
15745
206f2a57
DE
157462014-01-14 Doug Evans <dje@google.com>
15747
15748 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15749 (expand_symtabs_symbol_matcher_ftype): New typedef.
15750 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15751 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15752 * symfile.c (expand_partial_symbol_names): Update to use
15753 expand_symtabs_symbol_matcher_ftype.
15754 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15755 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15756 Arg name_matcher renamed to symbol_matcher.
15757 * psymtab.c (recursively_search_psymtabs): Update to use
15758 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15759 sym_matcher.
15760 (expand_symtabs_matching_via_partial): Update to use
15761 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15762 Arg name_matcher renamed to symbol_matcher.
15763
540c2971
DE
157642014-01-14 Doug Evans <dje@google.com>
15765
15766 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15767 (map_partial_symbol_filenames): Ditto.
15768 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15769 (map_partial_symbol_filenames): Ditto.
15770 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15771 (map_partial_symbol_filenames): Ditto.
15772 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15773 (map_partial_symbol_filenames): Ditto.
15774 * symtab.c: Delete #include "psymtab.h".
15775
8213266a
PA
157762014-01-14 Pedro Alves <palves@redhat.com>
15777 Tom Tromey <tromey@redhat.com>
15778
15779 * infrun.c (use_displaced_stepping): Use find_record_target
15780 instead of RECORD_IS_USED.
15781 (adjust_pc_after_break): Use record_full_is_used instead of
15782 RECORD_IS_USED.
15783 * record-btrace.c (record_btrace_open): Call record_preopen
15784 instead of checking RECORD_IS_USED.
15785 * record-full.c (record_full_shortname)
15786 (record_full_core_shortname): New globals.
15787 (record_full_is_used): New function.
15788 (find_full_open): Call record_preopen instead of checking
15789 RECORD_IS_USED.
15790 (init_record_full_ops): Set the target's shortname to
15791 record_full_shortname.
15792 (init_record_full_core_ops): Set the target's shortname to
15793 record_full_core_shortname.
15794 * record-full.h (record_full_is_used): Declare.
15795 * record.c (find_record_target): Make extern.
15796 (record_preopen): New function.
15797 * record.h (RECORD_IS_USED): Delete macro.
15798 (find_record_target, record_preopen): Declare functions.
15799
7ec1862d
YQ
158002014-01-14 Yao Qi <yao@codesourcery.com>
15801
15802 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15803 'len''s type to ULONGEST.
15804 (core_xfer_shared_libraries_aix): Likewise.
15805 * gdbarch.c, gdbarch.h: Regenerated.
15806 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15807 Change type of 'len' to ULONGEST.
15808 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15809 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15810
dea80a27
YQ
158112014-01-14 Yao Qi <yao@codesourcery.com>
15812
15813 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15814 type of 'len' to ULONGEST.
15815 (linux_xfer_osdata_processgroups): Likewise.
15816 (linux_xfer_osdata_threads): Likewise.
15817 (linux_xfer_osdata_fds): Likewise.
15818 (linux_xfer_osdata_isockets): Likewise.
15819 (linux_xfer_osdata_shm): Likewise.
15820 (linux_xfer_osdata_sem): Likewise.
15821 (linux_xfer_osdata_msg): Likewise.
15822 (linux_common_xfer_osdata): Likewise.
15823 (struct osdata_type) <getter>: Likewise.
15824 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15825 the declaration.
15826
b55e14c7
YQ
158272014-01-14 Yao Qi <yao@codesourcery.com>
15828
15829 * target.h (target_xfer_partial_ftype): Update.
15830 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15831 ULONGEST.
15832 * aix-thread.c (aix_thread_xfer_partial): Change type of
15833 argument 'len' to ULONGEST.
15834 * auxv.c (procfs_xfer_auxv): Likewise.
15835 (ld_so_xfer_auxv): Likewise.
15836 (memory_xfer_auxv): Likewise.
15837 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15838 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15839 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15840 * corelow.c (core_xfer_partial): Likewise.
15841 * ctf.c (ctf_xfer_partial): Likewise.
15842 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15843 '%u'.
15844 (darwin_read_dyld_info): Likewise.
15845 (darwin_xfer_partial): Likewise.
15846 * exec.c (section_table_xfer_memory_partial): Likewise.
15847 (exec_xfer_partial): Likewise.
15848 * exec.h (section_table_xfer_memory_partial): Update
15849 declaration.
15850 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15851 instead of plongest.
15852 (gnu_xfer_partial): Likewise.
15853 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15854 (ia64_hpux_xfer_solib_got): Likewise.
15855 (ia64_hpux_xfer_partial): Likewise.
15856 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15857 * inf-ptrace.c (inf_ptrace_xfer_partial):
15858 * inf-ttrace.c (inf_ttrace_xfer_partial):
15859 * linux-nat.c (linux_xfer_siginfo): Likewise.
15860 (linux_nat_xfer_partial): Likewise.
15861 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15862 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15863 * monitor.c (monitor_xfer_memory): Likewise.
15864 (monitor_xfer_partial): Likewise.
15865 * procfs.c (procfs_xfer_partial): Likewise.
15866 * record-full.c (record_full_xfer_partial): Likewise.
15867 (record_full_core_xfer_partial): Likewise.
15868 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15869 instead of plongest.
15870 (gdbsim_xfer_partial): Likewise.
15871 * remote.c (remote_xfer_partial): Likewise.
15872 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15873 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15874 declaration.
15875 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15876 (rs6000_xfer_shared_libraries): Likewise.
15877 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15878 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15879 (sparc_xfer_partial): Likewise.
15880 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15881 (spu_xfer_partial): Likewise.
15882 * spu-multiarch.c (spu_xfer_partial): Likewise.
15883 * target.c (target_read_live_memory): Likewise.
15884 (memory_xfer_live_readonly_partial): Likewise.
15885 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15886 (target_xfer_partial, default_xfer_partial): Likewise.
15887 (current_xfer_partial): Likewise.
15888 * tracepoint.c (tfile_xfer_partial): Likewise.
15889 * windows-nat.c (windows_xfer_memory): Likewise. Call
15890 pulongest instead of plongest.
15891 (windows_xfer_partial): Likewise.
15892 (windows_xfer_shared_libraries): Likewise.
15893
05804640
YQ
158942014-01-14 Yao Qi <yao@codesourcery.com>
15895
15896 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15897 target_xfer_partial_ftype.
15898
b5b08fb4
SC
158992014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15900
15901 PR python/15464
15902 PR python/16113
15903 * valops.c (value_struct_elt_bitpos): New function
15904 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15905 object to 'None' if the field name is an empty string ("").
15906 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15907 attribute to look for a field when 'name' is 'None'.
15908 (get_field_type): New function
15909
13aaf454
DE
159102014-01-13 Doug Evans <dje@google.com>
15911
15912 PR symtab/16426
15913 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15914 (try_open_dwop_file): Ditto.
15915 * gdb_bfd.c: #include "vec.h".
15916 (bfdp): New typedef.
15917 (struct gdb_bfd_data): New member included_bfds.
15918 (gdb_bfd_unref): Unref all included bfds.
15919 (gdb_bfd_record_inclusion): New function.
15920 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15921
c2cec97c
TT
159222014-01-13 Tom Tromey <tromey@redhat.com>
15923
15924 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15925
78e5999d
TT
159262014-01-13 Tom Tromey <tromey@redhat.com>
15927
15928 * defs.h (use_windows): Remove.
15929 * gdb.c (main): Update.
15930 * main.c (captured_main, gdb_main): Update.
15931 * main.h (struct captured_main_args) <use_windows>: Remove.
15932 * top.c (use_windows): Remove.
15933
f2052bbe
TT
159342014-01-13 Tom Tromey <tromey@redhat.com>
15935
15936 * defs.h (deprecated_flush_hook): Remove.
15937
fde4f8ed
JK
159382014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15939
15940 PR threads/16216
15941 * linux-thread-db.c (try_thread_db_load): Add parameter
15942 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15943 (try_thread_db_load_from_pdir_1): Move it there from here.
15944 (try_thread_db_load_from_sdir): Update caller.
15945 (try_thread_db_load_from_dir): Move it there from here.
15946
bdf61915
PP
159472014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15948
15949 * regformats/regdat.sh: Always rewrite the register file.
15950
f71e1a8d
PA
159512014-01-13 Pedro Alves <palves@redhat.com>
15952
15953 * Makefile.in (CHECK_HEADERS): New variable.
15954 (check-headers:): New rule.
15955
42c85435
TT
159562014-01-13 Tom Tromey <tromey@redhat.com>
15957
15958 * cli/cli-setshow.c (do_set_command): Update.
15959 * defs.h (deprecated_set_hook): Remove.
15960 * top.c (deprecated_set_hook): Remove.
15961
f8de5129
PA
159622014-01-13 Pedro Alves <palves@redhat.com>
15963
15964 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15965 the tracepoint if the PC is a pseudo-register.
15966
fc270c35
TT
159672014-01-13 Tom Tromey <tromey@redhat.com>
15968
15969 * defs.h (XCALLOC): Remove.
15970 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15971 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15972 * dwarf2loc.c (allocate_piece_closure): Likewise.
15973 * elfread.c (elf_symfile_segments): Likewise.
15974 (elf_symfile_segments): Likewise.
15975 * gdbtypes.c (copy_type_recursive): Likewise.
15976 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15977 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15978 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15979 XCALLOC.
15980 * mt-tdep.c (mt_gdbarch_init): Likewise.
15981 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15982 XCALLOC.
15983 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15984 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15985 * registry.c (registry_alloc_data): Likewise.
15986 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15987 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15988 * serial.c (serial_fdopen_ops): Likewise.
15989 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15990 XCALLOC.
15991 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15992 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15993 not XCALLOC.
15994
70ba0933
TT
159952014-01-13 Tom Tromey <tromey@redhat.com>
15996
15997 * defs.h (XMALLOC): Remove.
15998 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15999 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16000 * cli-out.c (struct ui_out *): Likewise.
16001 * cli/cli-dump.c (add_dump_command): Likewise.
16002 (add_dump_command): Likewise.
16003 * complaints.c (get_complaints): Likewise.
16004 (find_complaint): Likewise.
16005 * dwarf2-frame.c (execute_cfa_program): Likewise.
16006 * dwarf2read.c (abbrev_table_read_table): Likewise.
16007 * gdbarch.sh: Likewise.
16008 * gdbarch.c: Rebuild.
16009 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16010 * interps.c (interp_new): Likewise.
16011 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16012 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16013 * mi/mi-console.c (mi_console_file_new): Likewise.
16014 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16015 * mi/mi-out.c (mi_out_new): Likewise.
16016 * mi/mi-parse.c (mi_parse): Likewise.
16017 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16018 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16019 * observer.c (xalloc_observer_list_node): Likewise.
16020 * regcache.c (regcache_xmalloc_1): Likewise.
16021 * reggroups.c (reggroup_new): Likewise.
16022 (_initialize_reggroup): Likewise.
16023 * registry.c (register_data_with_cleanup): Likewise.
16024 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16025 * ser-base.c (serial_ttystate): Likewise.
16026 * ser-mingw.c (make_pipe_state): Likewise.
16027 * ser-pipe.c (pipe_open): Likewise.
16028 * serial.c (serial_open): Likewise.
16029 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16030 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16031 (tui_alloc_win_info): Likewise.
16032 (tui_add_content_elements): Likewise.
16033 * tui/tui-file.c (tui_file_new): Likewise.
16034 * tui/tui-out.c (tui_out_new): Likewise.
16035 * ui-file.c (mem_file_new): Likewise.
16036 * ui-out.c (push_level): Likewise.
16037 (make_cleanup_ui_out_end): Likewise.
16038 (append_header_to_list): Likewise.
16039 (ui_out_new): Likewise.
16040 * user-regs.c (user_reg_add_builtin): Likewise.
16041
41bf6aca
TT
160422014-01-13 Tom Tromey <tromey@redhat.com>
16043
16044 * defs.h (XZALLOC): Remove.
16045 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16046 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16047 (get_ada_tasks_inferior_data): Likewise.
16048 * auto-load.c (get_auto_load_pspace_data): Likewise.
16049 * auxv.c (get_auxv_inferior_data): Likewise.
16050 * bfd-target.c (target_bfd_reopen): Likewise.
16051 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16052 (deprecated_insert_raw_breakpoint): Likewise.
16053 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16054 * corelow.c (core_open): Likewise.
16055 * darwin-nat.c (darwin_check_new_threads): Likewise.
16056 (darwin_attach_pid): Likewise.
16057 * dummy-frame.c (dummy_frame_push): Likewise.
16058 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16059 * dwarf2loc.c (allocate_piece_closure): Likewise.
16060 * elfread.c (elf_symfile_segments): Likewise.
16061 * eval.c (ptrmath_type_p): Likewise.
16062 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16063 * gdbtypes.c (alloc_type_arch): Likewise.
16064 (alloc_type_instance): Likewise.
16065 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16066 * inf-child.c (inf_child_can_use_agent): Likewise.
16067 * inflow.c (get_inflow_inferior_data): Likewise.
16068 * infrun.c (save_infcall_suspend_state): Likewise.
16069 * jit.c (jit_reader_load): Likewise.
16070 (get_jit_objfile_data): Likewise.
16071 (get_jit_program_space_data): Likewise.
16072 (jit_object_open_impl): Likewise.
16073 (jit_symtab_open_impl): Likewise.
16074 (jit_block_open_impl): Likewise.
16075 (jit_frame_sniffer): Likewise.
16076 * linux-fork.c (add_fork): Likewise.
16077 * maint.c (make_command_stats_cleanup): Likewise.
16078 * objfiles.c (get_objfile_pspace_data): Likewise.
16079 * opencl-lang.c (struct lval_closure): Likewise.
16080 * osdata.c (osdata_start_osdata): Likewise.
16081 * progspace.c (new_address_space): Likewise.
16082 (add_program_space): Likewise.
16083 * remote-sim.c (get_sim_inferior_data): Likewise.
16084 * sh-tdep.c (sh_gdbarch_init): Likewise.
16085 * skip.c (Ignore): Likewise.
16086 (skip_delete_command): Likewise.
16087 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16088 (library_list_start_library): Likewise.
16089 (solib_aix_current_sos): Likewise.
16090 * solib-darwin.c (get_darwin_info): Likewise.
16091 (darwin_current_sos): Likewise.
16092 * solib-dsbt.c (get_dsbt_info): Likewise.
16093 * solib-ia64-hpux.c (new_so_list): Likewise.
16094 (ia64_hpux_get_solib_linkage_addr): Likewise.
16095 * solib-spu.c (append_ocl_sos): Likewise.
16096 (spu_current_sos): Likewise.
16097 * solib-svr4.c (get_svr4_info): Likewise.
16098 (svr4_keep_data_in_core): Likewise.
16099 (library_list_start_library): Likewise.
16100 (svr4_default_sos): Likewise.
16101 (svr4_read_so_list): Likewise.
16102 * solib-target.c (library_list_start_library): Likewise.
16103 (solib_target_current_sos): Likewise.
16104 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16105 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16106 * symfile.c (default_symfile_segments): Likewise.
16107 * target-descriptions.c (tdesc_data_init): Likewise.
16108 (tdesc_create_reg): Likewise.
16109 (struct tdesc_type *): Likewise.
16110 (tdesc_create_vector): Likewise.
16111 (tdesc_set_struct_size): Likewise.
16112 (struct tdesc_type *): Likewise.
16113 (tdesc_free_feature): Likewise.
16114 (tdesc_create_feature): Likewise.
16115 * windows-nat.c (windows_add_thread): Likewise.
16116 (windows_make_so): Likewise.
16117 * xml-support.c (gdb_xml_body_text): Likewise.
16118 (gdb_xml_create_parser_and_cleanup): Likewise.
16119 (xml_process_xincludes): Likewise.
16120 * xml-syscall.c (allocate_syscalls_info): Likewise.
16121 (syscall_create_syscall_desc): Likewise.
16122
5acfdbae
SDJ
161232014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16124
16125 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16126 function, with code from i386_stap_parse_special_token.
16127 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16128 (i386_stap_parse_special_token): Move code to the two functions
16129 above; simplify it.
16130
0000e5cc
PA
161312014-01-09 Pedro Alves <palves@redhat.com>
16132 Hui Zhu <hui@codesourcery.com>
16133
16134 PR gdb/16101
16135 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16136 bp_err_string. Don't mark the location shlib_disabled if the
16137 error thrown wasn't a generic or memory error. Catch errors
16138 thrown while inserting breakpoints in overlayed code. Output
16139 error message of software breakpoints.
16140 * remote.c (remote_insert_breakpoint): If this breakpoint has
16141 target-side commands but this stub doesn't support Z0 packets,
16142 throw NOT_SUPPORTED_ERROR error.
16143 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16144 * target.h (target_insert_breakpoint): Extend comment.
16145 (target_insert_hw_breakpoint): Add comment.
16146
b7ea362b
PA
161472014-01-08 Pedro Alves <palves@redhat.com>
16148
16149 * remote.c (remote_add_thread): Add threads silently if starting
16150 up.
16151 (remote_notice_new_inferior): If in all-stop, and starting up,
16152 don't call notice_new_inferior.
16153 (get_current_thread): New function, factored out from ...
16154 (add_current_inferior_and_thread): ... this. Adjust.
16155 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16156 found any thread, then select the remote's current thread as GDB's
16157 current thread too.
16158
b7bba001
JB
161592014-01-08 Joel Brobecker <brobecker@adacore.com>
16160
16161 * NEWS: Create a new section for the next release branch.
16162 Rename the section of the current branch, now that it has
16163 been cut.
16164
16dfbded
JB
161652014-01-08 Joel Brobecker <brobecker@adacore.com>
16166
16167 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16168 * version.in: Bump version to 7.7.50.DATE-cvs.
16169
22c90ac1
YQ
161702014-01-08 Yao Qi <yao@codesourcery.com>
16171
16172 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16173 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16174 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16175
d64ad97c
YQ
161762014-01-08 Yao Qi <yao@codesourcery.com>
16177
16178 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16179 return value of bfd_get_filename to symbol_file_add_from_bfd.
16180
f93ba80c
PM
161812014-01-08 Pierre Muller <muller@sourceware.org>
16182
16183 Fix PR16201.
16184 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16185 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16186 to prim_record_mininal_symbol_and_info.
16187 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16188 in call to prim_record_minimal_symbol_and_info.
16189 (read_pe_exported_syms): Set index field of section_data.
16190
a4d9ba85
AP
161912014-01-07 Andrew Pinski <apinski@cavium.com>
16192
16193 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16194 * features/aarch64.c: Regenerate.
16195
1b67eb02
AS
161962014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16197
16198 * target.c (return_null): Define.
16199 (update_current_target): Use it instead of return_zero for
16200 functions that return a pointer.
16201
5e3f4fab
EBM
162022014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16203
16204 * source.c (add_path): Fix check for duplicated paths in the previously
16205 included paths.
16206
e2616788
HK
162072014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16208
16209 * ada-lang.c: Remove duplicated include statements.
16210 * alphabsd-nat.c: Ditto.
16211 * amd64-darwin-tdep.c: Ditto.
16212 * amd64fbsd-nat.c: Ditto.
16213 * auto-load.c: Ditto.
16214 * ax-gdb.c: Ditto.
16215 * breakpoint.c: Ditto.
16216 * dbxread.c: Ditto.
16217 * fork-child.c: Ditto.
16218 * gdb_usleep.c: Ditto.
16219 * i386-darwin-tdep.c: Ditto.
16220 * i386fbsd-nat.c: Ditto.
16221 * infcmd.c: Ditto.
16222 * inferior.c: Ditto.
16223 * jv-lang.c: Ditto.
16224 * linux-nat.c: Ditto.
16225 * linux-tdep.c: Ditto.
16226 * m68kbsd-nat.c: Ditto.
16227 * m68klinux-nat.c: Ditto.
16228 * microblaze-tdep.c: Ditto.
16229 * mips-linux-tdep.c: Ditto.
16230 * mn10300-tdep.c: Ditto.
16231 * nto-tdep.c: Ditto.
16232 * opencl-lang.c: Ditto.
16233 * osdata.c: Ditto.
16234 * printcmd.c: Ditto.
16235 * regcache.c: Ditto.
16236 * remote-m32r-sdi.c: Ditto.
16237 * remote.c: Ditto.
16238 * symfile.c: Ditto.
16239 * symtab.c: Ditto.
16240 * tilegx-linux-nat.c: Ditto.
16241 * tilegx-tdep.c: Ditto.
16242 * tracepoint.c: Ditto.
16243 * valops.c: Ditto.
16244 * vaxbsd-nat.c: Ditto.
16245 * windows-nat.c: Ditto.
16246 * xtensa-tdep.c: Ditto.
16247
bd1f7788
YQ
162482014-01-07 Yao Qi <yao@codesourcery.com>
16249
16250 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16251
79301218
JB
162522014-01-07 Yao Qi <yao@codesourcery.com>
16253 Joel Brobecker <brobecker@adacore.com>
16254
16255 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16256 (pdc_write_regs): Likewise.
16257 (fetch_regs_kernel_thread): Likewise.
16258 (store_regs_kernel_thread): Likewise.
16259
162602014-01-07 Joel Brobecker <brobecker@adacore.com>
16261
16262 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16263 tagged type objects to their actual type.
16264
8e355c5d
JB
162652014-01-07 Joel Brobecker <brobecker@adacore.com>
16266
16267 * ada-valprint.c (print_field_values): Add "language" parameter.
16268 Update calls to print_field_values and print_variant_part.
16269 Pass new parameter "language" in call to val_print instead
16270 of "current_language". Replace call to ada_val_print by call
16271 to val_print.
16272 (print_variant_part): Add "language" parameter.
16273 (ada_val_print_struct_union): Update call to print_field_values.
16274
4fbf5aa5
JB
162752014-01-07 Joel Brobecker <brobecker@adacore.com>
16276
16277 * ada-valprint.c (ui_memcpy): Delete.
16278 (ada_print_floating): Update documentation. Add empty line
16279 between between function documentation and implementation.
16280 Delete variable "buffer". Use ui_file_xstrdup in place of
16281 ui_file_put. Minor adjustments following this change.
16282
71855601
JB
162832014-01-07 Joel Brobecker <brobecker@adacore.com>
16284
16285 * ada-valprint.c (ada_val_print_string): New function,
16286 extracted from ada_val_print_array.
16287 (ada_val_print_array): Replace extracted code by call
16288 to ada_val_print_string followed by a return. Move
16289 "else" branch to the function's top block.
16290
4eb27a30
JB
162912014-01-07 Joel Brobecker <brobecker@adacore.com>
16292
16293 * ada-valprint.c (ada_val_print_array): Move implementation
16294 down. Rename parameter "offset" and "val" into "offset_aligned"
16295 and "original_value" respectively. Add parameter "offset".
16296
34b27950
JB
162972014-01-07 Joel Brobecker <brobecker@adacore.com>
16298
16299 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16300 re-organizing the code. Change the "???" message printed
16301 when target type is a TYPE_CODE_UNDEF into
16302 "<ref to undefined type>".
16303
079e4591
JB
163042014-01-07 Joel Brobecker <brobecker@adacore.com>
16305
16306 * ada-valprint.c (print_record): Delete, implementation inlined...
16307 (ada_val_print_struct_union): ... here. Remove call to
16308 ada_check_typedef in inlined implementation.
16309
8004dfd1
JB
163102014-01-07 Joel Brobecker <brobecker@adacore.com>
16311
16312 * ada-valprint.c (ada_val_print_gnat_array): New function,
16313 extracted from ada_val_print_1;
16314 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16315 (ada_val_print_flt, ada_val_print_struct_union)
16316 (ada_val_print_ref): Likewise.
16317 (ada_val_print_1): Delete variables i and elttype.
16318 Replace extracted-out code by call to corresponding
16319 new functions.
16320
760a2db0
JB
163212014-01-07 Joel Brobecker <brobecker@adacore.com>
16322
16323 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16324
3a92c861
JB
163252014-01-07 Joel Brobecker <brobecker@adacore.com>
16326
16327 * ada-valprint.c (ada_val_print_1): Replace calls to
16328 ada_val_print_1 by calls to val_print.
16329
cd1630f9
JB
163302014-01-07 Joel Brobecker <brobecker@adacore.com>
16331
16332 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16333 Update calls to self accordingly. Replace calls to c_val_print
16334 by calls to val_print.
16335
bdf779a0
JB
163362014-01-07 Joel Brobecker <brobecker@adacore.com>
16337
16338 * ada-valprint.c (print_record): Delete declaration.
16339 (adjust_type_signedness, ada_val_print_1): Likewise.
16340 (ada_val_print): Move function implementation down.
16341 (print_variant_part, print_field_values, print_record):
16342 Move function implementation up.
16343
c0d48811
JB
163442014-01-07 Joel Brobecker <brobecker@adacore.com>
16345
16346 * python/py-type.c (typy_get_name): New function.
16347 (type_object_getset): Add entry for attribute "name".
16348 * NEWS: Add entry mentioning this new attribute.
16349
c26e9cbb
YQ
163502014-01-07 Yao Qi <yao@codesourcery.com>
16351
16352 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16353 statement.
16354
0cc6f43d
YQ
163552014-01-07 Yao Qi <yao@codesourcery.com>
16356
16357 * gnu-nat.c (info_port_rights): Add qualifier const to
16358 argument args.
16359
eec03155
YQ
163602014-01-07 Yao Qi <yao@codesourcery.com>
16361
16362 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16363
f04a82ef
YQ
163642014-01-07 Yao Qi <yao@codesourcery.com>
16365
16366 * gnu-nat.c (make_inf) Update declaration.
16367 (make_inf): Make it static.
16368 (inf_set_traced): Likewise.
16369 (inf_port_to_thread, inf_task_died_status): Likewise.
16370
d57dda0a
YQ
163712014-01-07 Yao Qi <yao@codesourcery.com>
16372
16373 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16374
3aa8c969
YQ
163752014-01-07 Yao Qi <yao@codesourcery.com>
16376
16377 * gnu-nat.c (_initialize_gnu_nat): Declare.
16378
94123b4f
YQ
163792014-01-07 Yao Qi <yao@codesourcery.com>
16380
16381 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16382 'enum bfd_endian'.
16383 (struct gdbarch_info) <byte_order>: Change type to
16384 'enum bfd_endian'.
16385 <byte_order_for_code>: Likewise.
16386 * gdbarch.c, gdbarch.h: Regenerated.
16387
dc81d70a
TT
163882014-01-06 Sasha Smundak <asmundak@google.com>
16389
16390 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16391
cc2f3c35
TT
163922014-01-06 Tom Tromey <tromey@redhat.com>
16393
16394 * doublest.c (convert_doublest_to_floatformat): Use const, not
16395 CONST.
16396 * somread.c (som_symtab_read): Likewise.
16397
adcf2eed
HZ
163982014-01-07 Hui Zhu <hui@codesourcery.com>
16399
16400 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16401 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16402 (gdb_bfd_fopen): Ditto.
16403 (gdb_bfd_openr): Ditto.
16404 (gdb_bfd_openw): Ditto.
16405 (gdb_bfd_openr_iovec): Ditto.
16406 (gdb_bfd_fdopenr): Ditto.
16407 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16408 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16409 with xstrdup.
16410 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16411 with xstrdup.
16412 * symfile-mem.c (symbol_file_add_from_memory): Removed
16413 gdb_bfd_stash_filename.
16414
50722198
DE
164152014-01-03 Doug Evans <dje@google.com>
16416
16417 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16418 output.
16419
2fa4b862
JB
164202014-01-01 Joel Brobecker <brobecker@adacore.com>
16421
16422 Update year range in copyright notice of all files.
16423
28498c42
JB
164242014-01-01 Joel Brobecker <brobecker@adacore.com>
16425
16426 * top.c (print_gdb_version): Set copyright year to 2014.
16427
7b6e1046
JB
164282014-01-01 Joel Brobecker <brobecker@adacore.com>
16429
16430 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16431
df96af55 16432For older changes see ChangeLog-2013.
c906108c
SS
16433\f
16434Local Variables:
16435mode: change-log
16436left-margin: 8
16437fill-column: 74
16438version-control: never
57da7796 16439coding: utf-8
c906108c 16440End:
This page took 3.092278 seconds and 4 git commands to generate.