Introduce utility function find_inferior_ptid
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c9657e70
SM
12014-12-15 Simon Marchi <simon.marchi@ericsson.com>
2
3 * inferior.c (find_inferior_ptid): New function.
4 * inferior.h (find_inferior_ptid): New declaration.
5 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
6 * corelow.c (core_pid_to_str): Same.
7 * darwin-nat.c (darwin_resume): Same.
8 * infrun.c (fetch_inferior_event): Same.
9 (get_inferior_stop_soon): Same.
10 (handle_inferior_event): Same.
11 (handle_signal_stop): Same.
12 * linux-nat.c (resume_lwp): Same.
13 (stop_wait_callback): Same.
14 * mi/mi-interp.c (mi_new_thread): Same.
15 (mi_thread_exit): Same.
16 * proc-service.c (ps_pglobal_lookup): Same.
17 * record-btrace.c (record_btrace_step_thread): Same.
18 * remote-sim.c (gdbsim_close_inferior): Same.
19 (gdbsim_resume): Same.
20 (gdbsim_stop): Same.
21 * sol2-tdep.c (sol2_core_pid_to_str): Same.
22 * target.c (memory_xfer_partial_1): Same.
23 (default_thread_address_space): Same.
24 * thread.c (thread_change_ptid): Same.
25 (switch_to_thread): Same.
26 (do_restore_current_thread_cleanup): Same.
27
38bcc89d
SM
282014-12-15 Simon Marchi <simon.marchi@ericsson.com>
29
30 * defs.h (gdb_readline): Constify argument.
31 (gdb_readline_wrapper): Same.
32 (command_line_input): Same.
33 (deprecated_readline_hook): Same.
34 * top.c (deprecated_readline_hook): Same.
35 (gdb_readline): Same.
36 (gdb_readline_wrapper): Same.
37 (command_line_input): Constify argument. Pass prompt_arg to called
38 functions instead of local_prompt, overwriting prompt_arg if necessary.
39 * event-top.h (display_gdb_prompt): Constify argument.
40 * event-top.c (display_gdb_prompt): Same.
41 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
42 if building with Python 3.4 and up.
43
89ed8ea1
SM
442014-12-15 Simon Marchi <simon.marchi@ericsson.com>
45
46 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
47 os.getcwdu().
48
aacd3e8c
CU
492014-12-15 Catalin Udma <catalin.udma@freescale.com>
50
51 PR gdb/15684
52 * memattr.c (mem_info_command): Remove "unsigned long" casts.
53
dc4d6886
DE
542014-12-13 Doug Evans <xdje42@gmail.com>
55
56 * utils.c (make_hex_string): Fix off-by-one error.
57
c1b5a1a6
JB
582014-12-13 Joel Brobecker <brobecker@adacore.com>
59
60 * ada-lang.h (ada_ensure_varsize_limit): Declare.
61 * ada-lang.c (check_size): Remove advance declaration.
62 (ada_ensure_varsize_limit): Renames check_size.
63 Replace calls to check_size by calls to ada_ensure_varsize_limit
64 throughout.
65 * ada-valprint.c (ada_val_print_ref): Add call to
66 ada_ensure_varsize_limit. Add comment explaining why.
67
3c46a02f
JB
682014-12-13 Joel Brobecker <brobecker@adacore.com>
69
70 * utils.c (make_hex_string): Replace use of sprintf by use of
71 xsnprintf.
72
8e8347b8
JB
732014-12-13 Joel Brobecker <brobecker@adacore.com>
74
75 * compile/compile-object-load.c (link_callbacks_multiple_definition)
76 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
77 newline at end of warning message.
78
f93b65a0
JB
792014-12-13 Joel Brobecker <brobecker@adacore.com>
80
81 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
82 new "EXTRA-ARGS" parameter.
83 * configure.ac: If large-file support is disabled in GDB,
84 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
85 * configure: Regenerate.
86
5537b577
JK
872014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 PR symtab/17642
90 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
91 TYPE if not TYPE_CODE_TYPEDEF.
92
e0782980
JB
932014-12-13 Joel Brobecker <brobecker@adacore.com>
94
95 PR backtrace/16215:
96 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
97 the frame unwinder must either be the dwarf2_frame_unwind
98 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
99 stack_addr is valid before calling get_frame_base. Throw
100 an error if not valid.
101
ae6a105d
DE
1022014-12-12 Doug Evans <xdje42@gmail.com>
103
104 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
105 result != NULL.
106
59da4d04
DE
1072014-12-12 Doug Evans <xdje42@gmail.com>
108
109 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
110 All callers updated. Rename arg "namespace" to "symbol_name".
111
83827540
DE
1122014-12-12 Doug Evans <xdje42@gmail.com>
113
114 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
115 partial_map_symtabs_matching_filename. All uses updated.
116 (psym_find_pc_sect_compunit_symtab): Renamed from
117 find_pc_sect_compunit_symtab_from_partial. All uses updated.
118 Add function comment.
119 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
120 All uses updated. Add function comment.
121 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
122 Add function comment.
123 (psym_find_last_source_symtab): Renamed from
124 find_last_source_symtab_from_partial. All uses updated.
125 Add function comment.
126 (psym_forget_cached_source_info): Renamed from
127 forget_cached_source_info_partial. All uses updated.
128 Add function comment.
129 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
130 All uses updated. Add function comment.
131 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
132 updated. Add function comment.
133 (psym_expand_symtabs_for_function): Renamed from
134 read_symtabs_for_function. All uses updated. Update function comment.
135 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
136 All uses updated. Add function comment.
137 (psym_expand_symtabs_with_fullname): Renamed from
138 read_psymtabs_with_fullname. All uses updated. Add function comment.
139 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
140 All uses updated. Add function comment.
141 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
142 All uses updated.
143 (psym_expand_symtabs_matching): Renamed from
144 expand_symtabs_matching_via_partial. All uses updated.
145 Add function comment.
146 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
147 Add function comment.
148
bb2ec1b3
TT
1492014-12-12 Phil Muldoon <pmuldoon@redhat.com>
150 Jan Kratochvil <jan.kratochvil@redhat.com>
151 Tom Tromey <tromey@redhat.com>
152
153 * NEWS: Update.
154 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
155 field.
156 * p-lang.c (pascal_language_defn): Update.
157 * opencl-lang.c (opencl_language_defn): Update.
158 * objc-lang.c (objc_language_defn): Update.
159 * m2-lang.c (m2_language_defn): Update.
160 * language.h (struct language_defn) <la_get_compile_instance,
161 la_compute_program>: New fields.
162 * language.c (unknown_language_defn, auto_language_defn)
163 (local_language_defn): Update.
164 * jv-lang.c (java_language_defn): Update.
165 * go-lang.c (go_language_defn): Update.
166 * f-lang.c (f_language_defn): Update.
167 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
168 * dwarf2loc.c (dwarf2_compile_property_to_c)
169 (locexpr_generate_c_location, loclist_generate_c_location): New
170 functions.
171 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
172 * defs.h (enum compile_i_scope_types): New.
173 (enum command_control_type) <compile_control>: New constant.
174 (struct command_line) <control_u>: New field.
175 * d-lang.c (d_language_defn): Update.
176 * compile/compile.c: New file.
177 * compile/compile-c-support.c: New file.
178 * compile/compile-c-symbols.c: New file.
179 * compile/compile-c-types.c: New file.
180 * compile/compile.h: New file.
181 * compile/compile-internal.h: New file.
182 * compile/compile-loc2c.c: New file.
183 * compile/compile-object-load.c: New file.
184 * compile/compile-object-load.h: New file.
185 * compile/compile-object-run.c: New file.
186 * compile/compile-object-run.h: New file.
187 * cli/cli-script.c (multi_line_command_p, print_command_lines)
188 (execute_control_command, process_next_line)
189 (recurse_read_control_structure): Handle compile_control.
190 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
191 * c-lang.c (c_language_defn, cplus_language_defn)
192 (asm_language_defn, minimal_language_defn): Update.
193 * ada-lang.c (ada_language_defn): Update.
194 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
195 New variables.
196 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
197 (HFILES_NO_SRCDIR): Add compile.h.
198 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
199 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
200 (compile.o, compile-c-types.o, compile-c-symbols.o)
201 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
202 (compile-c-support.o): New targets.
203
a2658feb
JK
2042014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
205
206 * s390-linux-tdep.c (s390_gcc_target_options): New function.
207 (s390_gdbarch_init): Add it to gdbarch.
208
3bc3cebe
JK
2092014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
210
211 * linux-tdep.c: Include objfiles.h and infcall.h.
212 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
213 function.
214 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
215
d064d1be
JK
2162014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
217
218 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
219 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
220 translate_register. Now public.
221 (dwarf2_compile_expr_to_ax): Update.
222
af945b75
TT
2232014-12-12 Tom Tromey <tromey@redhat.com>
224 Jan Kratochvil <jan.kratochvil@redhat.com>
225
226 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
227 (dwarf_expr_frame_base): Update caller.
228 (dwarf_expr_frame_base_1): Rename to ...
229 (func_get_frame_base_dwarf_block): ... this and make it public.
230 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
231 callers.
232 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
233
a8fd5589
TT
2342014-12-12 Tom Tromey <tromey@redhat.com>
235
236 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
237 Update.
238 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
239 dwarf2_compile_cfa_to_ax.
240 (dwarf2_compile_cfa_to_ax): Remove.
241 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
242 (dwarf2_compile_cfa_to_ax): Remove.
243
ed12ef62
JK
2442014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
245
246 * infcall.h (call_function_by_hand_dummy): Declare.
247 * infcall.c (call_function_by_hand): Use
248 call_function_by_hand_dummy.
249 (call_function_by_hand_dummy): Rename from call_function_by_hand.
250 Add arguments. Register a destructor.
251
ac04f72b
TT
2522014-12-12 Tom Tromey <tromey@redhat.com>
253 Jan Kratochvil <jan.kratochvil@redhat.com>
254
255 * osabi.h (osabi_triplet_regexp): Declare.
256 * osabi.c (struct osabi_names): New.
257 (gdb_osabi_names): Change type to struct osabi_names. Update
258 values.
259 (gdbarch_osabi_name): Update.
260 (osabi_triplet_regexp): New function.
261 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
262 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
263 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
264 set_gdbarch_gnu_triplet_regexp.
265 * gdbarch.sh (gnu_triplet_regexp): New method.
266 * gdbarch.c, gdbarch.h: Rebuild.
267 * arch-utils.h (default_gnu_triplet_regexp): Declare.
268 * arch-utils.c (default_gnu_triplet_regexp): New function.
269
f208eee0
JK
2702014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
271
272 * arch-utils.c (default_infcall_mmap)
273 (default_gcc_target_options): New functions.
274 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
275 (GDB_MMAP_PROT_EXEC): Define.
276 (default_infcall_mmap, default_gcc_target_options): Declare.
277 * gdbarch.h: Rebuild.
278 * gdbarch.c: Rebuild.
279 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
280
233a8fb3
JK
2812014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
282
283 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
284 fields.
285 (pop_dummy_frame): Call the destructor if it exists.
286 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
287 functions.
288 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
289 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
290
f1660027
TT
2912014-12-12 Tom Tromey <tromey@redhat.com>
292
293 * gdbtypes.h (make_unqualified_type): Declare.
294 * gdbtypes.c (make_unqualified_type): New function.
295
de571fc5
TT
2962014-12-12 Tom Tromey <tromey@redhat.com>
297
298 * ui-file.h (ui_file_write_for_put): Declare.
299 * ui-file.c (ui_file_write_for_put): New function.
300 * mi/mi-out.c (do_write): Remove.
301 (mi_out_put): Use ui_file_write_for_put.
302
6dddd6a5
DE
3032014-12-12 Doug Evans <dje@google.com>
304
305 * NEWS: Mention gdb.lookup_objfile.
306 * python/python.c (GdbMethods): Add lookup_objfile.
307 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
308 * python/py-objfile.c: #include "symtab.h".
309 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
310 (objfpy_lookup_objfile_by_name): New function.
311 (objfpy_lookup_objfile_by_build_id): New function.
312 (gdbpy_lookup_objfile): New function.
313
f161c171
MR
3142014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
315
316 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
317 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
318 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
319 macros.
320 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
321 Likewise.
322
71c24708
AA
3232014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
324
325 * completer.c: Include "target.h", "reggroups.h", and
326 "user-regs.h".
327 (reg_or_group_completer): New.
328 * completer.h (reg_or_group_completer): Declare.
329 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
330 the "info registers" and "info all-registers" commands and the
331 dbx-mode "lr" command.
332
f5b95c01
AA
3332014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
334
335 * user-regs.c: Include "arch-utils.h", "command.h", and
336 "cli/cli-cmds.h".
337 (maintenance_print_user_registers): New.
338 (_initialize_user_regs): Register new "maint print user-registers"
339 subcommand.
340 * NEWS: Mention new GDB command "maint print user-registers".
341
3e29f34a
MR
3422014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
343 Maciej W. Rozycki <macro@mips.com>
344 Pedro Alves <pedro@codesourcery.com>
345
346 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
347 remove `predefault' and `invalid_p' initializers.
348 (make_symbol_special): New architecture method.
349 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
350 (objfile, symbol): New declarations.
351 * arch-utils.h (default_elf_make_msymbol_special): Remove
352 prototype.
353 (default_make_symbol_special): New prototype.
354 (default_adjust_dwarf2_addr): Likewise.
355 (default_adjust_dwarf2_line): Likewise.
356 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
357 * arch-utils.c (default_elf_make_msymbol_special): Remove
358 function.
359 (default_make_symbol_special): New function.
360 (default_adjust_dwarf2_addr): Likewise.
361 (default_adjust_dwarf2_line): Likewise.
362 * dwarf2-frame.c (decode_frame_entry_1): Call
363 `gdbarch_adjust_dwarf2_addr'.
364 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
365 * dwarf2read.c (create_addrmap_from_index): Likewise.
366 (process_psymtab_comp_unit_reader): Likewise.
367 (add_partial_symbol): Likewise.
368 (add_partial_subprogram): Likewise.
369 (process_full_comp_unit): Likewise.
370 (read_file_scope): Likewise.
371 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
372 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
373 (read_call_site_scope): Likewise.
374 (dwarf2_ranges_read): Likewise.
375 (dwarf2_record_block_ranges): Likewise.
376 (read_attribute_value): Likewise.
377 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
378 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
379 * elfread.c (elf_symtab_read): Don't call
380 `gdbarch_elf_make_msymbol_special' if unset.
381 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
382 the ISA bit from the PC.
383 * mips-tdep.c (mips_unmake_compact_addr): New function.
384 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
385 address appropriately.
386 (mips_make_symbol_special): New function.
387 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
388 (mips_pc_is_mips16): Likewise.
389 (mips_pc_is_micromips): Likewise.
390 (mips_pc_isa): Likewise.
391 (mips_adjust_dwarf2_addr): New function.
392 (mips_adjust_dwarf2_line): Likewise.
393 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
394 (mips_addr_bits_remove): Likewise.
395 (mips_skip_trampoline_code): Likewise.
396 (mips_write_pc): Don't set the ISA bit.
397 (mips_eabi_push_dummy_call): Likewise.
398 (mips_o64_push_dummy_call): Likewise.
399 (mips_gdbarch_init): Install `mips_make_symbol_special',
400 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
401 handlers.
402 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
403 target-specific symbol address adjustments.
404 * gdbarch.h: Regenerate.
405 * gdbarch.c: Regenerate.
406
21daaaaf
YQ
4072014-12-12 Yao Qi <yao@codesourcery.com>
408
409 PR tdep/14261
410 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
411 'skip_pc'. Remove code skipping prologue instructions, use
412 arm_analyze_prologue instead.
413 (arm_analyze_prologue): Stop the scanning for unrecognized
414 instruction when skipping prologue.
415
f303bc3e
YQ
4162014-12-12 Yao Qi <yao@codesourcery.com>
417
418 * arm-tdep.c (arm_instruction_restores_sp): New function.
419 (arm_analyze_prologue): Call arm_instruction_restores_sp.
420 (arm_in_function_epilogue_p): Move code to
421 arm_instruction_restores_sp.
422
05a6c3c8
DE
4232014-12-11 Doug Evans <xdje42@gmail.com>
424
425 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
426
fe2a438d
DE
4272014-12-11 Doug Evans <xdje42@gmail.com>
428
429 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
430 (symbol *lookup_symbol_via_quick_fns): Ditto.
431 (lookup_symbol_in_objfile): Add forward decl.
432 (lookup_global_symbol_from_objfile): Simplify, call
433 lookup_symbol_in_objfile.
434
540feddf
DE
4352014-12-11 Doug Evans <xdje42@gmail.com>
436
437 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
438
fc126975
SM
4392014-12-10 Simon Marchi <simon.marchi@ericsson.com>
440
441 PR breakpoints/17012
442 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
443 it is marked as persistent.
444
56286edf
DE
4452014-12-10 Doug Evans <xdje42@gmail.com>
446
447 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
448 closer to its subroutines.
449
34ef8452
DE
4502014-12-10 Doug Evans <xdje42@gmail.com>
451
452 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
453
9a80057a
DE
4542014-12-10 Doug Evans <xdje42@gmail.com>
455
456 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
457 * cp-support.c (cp_lookup_symbol_imports): Delete.
458
1abf3a14
SM
4592014-12-10 Simon Marchi <simon.marchi@ericsson.com>
460
461 PR gdb/17627
462 * target.c (cleanup_restore_target_terminal): New function.
463 (make_cleanup_restore_target_terminal): New function.
464 * target.h (make_cleanup_restore_target_terminal): New declaration.
465 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
466
d4d1e336
DE
4672014-12-08 Doug Evans <dje@google.com>
468
469 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
470
a0be3e44
DE
4712014-12-08 Doug Evans <dje@google.com>
472
473 * NEWS: Mention gdb.Objfile.owner.
474 * python/py-objfile.c (objfpy_get_owner): New function.
475 (objfile_getset): Add "owner".
476
6c1c7be3
JK
4772014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
480 (lookup_global_symbol_from_objfile): Call it.
481
efad9b6a
JK
4822014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 Remove const from struct objfile *.
485 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
486 symtab.c, symtab.h: In these files.
487
069bb7ec
AF
4882014-12-05 Andreas From <andreas.from@ericsson.com>
489
490 * MAINTAINERS (Write After Approval): Add "Andreas From"
491
642a8d80
DE
4922014-12-05 Doug Evans <xdje42@gmail.com>
493
494 Revert:
495 PR symtab/17602
496 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
497
86e4ed39
DE
4982014-12-04 Doug Evans <dje@google.com>
499
500 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
501 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
502 (objfile_getset): Add "add_separate_debug_file".
503
7c50a931
DE
5042014-12-04 Doug Evans <dje@google.com>
505
506 * NEWS: Mention gdb.Objfile.build_id.
507 * build-id.c (build_id_bfd_get): Make non-static.
508 * build-id.h (build_id_bfd_get): Add declaration.
509 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
510 (OBJFPY_REQUIRE_VALID): New macro.
511 (objfpy_get_build_id): New function.
512 (objfile_getset): Add "build_id".
513 * utils.c (make_hex_string): New function.
514 * utils.h (make_hex_string): Add declaration.
515
ba715d7f
JK
5162014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
517
518 * block.c (block_lookup_symbol_primary): New function.
519 * block.h (block_lookup_symbol_primary): New declaration.
520 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
521 Call block_lookup_symbol_primary.
522
858339f2
MR
5232014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
524
525 * tramp-frame.h (tramp_frame): Add `validate' member.
526 * tramp-frame.c (tramp_frame_start): Validate trampoline before
527 scanning.
528 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
529 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
530 (mips_linux_o32_sigframe): Initialize `validate' member.
531 (mips_linux_o32_rt_sigframe): Likewise.
532 (mips_linux_n32_rt_sigframe): Likewise.
533 (mips_linux_n64_rt_sigframe): Likewise.
534 (micromips_linux_o32_sigframe): New variable.
535 (micromips_linux_o32_rt_sigframe): Likewise.
536 (micromips_linux_n32_rt_sigframe): Likewise.
537 (micromips_linux_n64_rt_sigframe): Likewise.
538 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
539 (mips_linux_n32n64_sigframe_init): Likewise.
540 (mips_linux_sigframe_validate): New function.
541 (micromips_linux_sigframe_validate): Likewise.
542 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
543
ff1eb2b5
UW
5442014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
545
546 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
547 * sparc-sol2-tdep.c: Include "regset.h".
548 (sparc32_sol2_supply_core_gregset): New function.
549 (sparc32_sol2_collect_core_gregset): Likewise.
550 (sparc32_sol2_supply_core_fpregset): Likewise.
551 (sparc32_sol2_collect_core_fpregset): Likewise.
552 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
553 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
554 tdep->fpregset/sizeof_fpregset.
555 * sparc64-sol2-tdep.c: Include "regset.h".
556 (sparc64_sol2_supply_core_gregset): New function.
557 (sparc64_sol2_collect_core_gregset): Likewise.
558 (sparc64_sol2_supply_core_fpregset): Likewise.
559 (sparc64_sol2_collect_core_fpregset): Likewise.
560 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
561 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
562 tdep->fpregset/sizeof_fpregset.
563
75783939
SM
5642014-12-03 Simon Marchi <simon.marchi@ericsson.com>
565
566 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
567 type.
568
7c5fdd25
DE
5692014-12-02 Doug Evans <dje@google.com>
570
571 * symtab.c (symbol_init_cplus_specific): Delete.
572 (symbol_set_demangled_name): Remove special c++ support.
573 (symbol_get_demangled_name, symbol_set_language): Ditto.
574 * symtab.h (struct cplus_specific): Delete.
575 (struct general_symbol_info) <language_specific>: Remove
576 cplus_specific.
577
29f0c3b7
DE
5782014-12-02 Doug Evans <dje@google.com>
579
580 PR symtab/17602
581 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
582
72998fb3
DE
5832014-12-02 Doug Evans <dje@google.com>
584
585 PR symtab/17591
586 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
587 to strip parameters.
588
422b9917
DE
5892014-12-02 Doug Evans <dje@google.com>
590
591 * dwarf2read.c (peek_die_abbrev): Improve error message text.
592
47c6ee49
DE
5932014-12-02 Doug Evans <dje@google.com>
594
595 * valops.c (do_search_struct_field): Remove remnant of Chill support.
596 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
597
5da3ffc9
SM
5982014-12-02 Simon Marchi <simon.marchi@ericsson.com>
599
600 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
601
162078c8
NB
6022014-12-02 Nick Bull <nicholaspbull@gmail.com>
603
604 * NEWS: Mention new Python events.
605 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
606 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
607 (py-infevents.o): New rule.
608 * doc/observer.texi (inferior_call_pre, inferior_call_post)
609 (memory_changed, register_changed): New observers.
610 * infcall.c (call_function_by_hand): Notify observer before and
611 after inferior call.
612 * python/py-event.h (inferior_call_kind): New enum.
613 (emit_inferior_call_event): New prototype.
614 (emit_register_changed_event): New prototype.
615 (emit_memory_changed_event): New prototype.
616 * python/py-events.h (events_object): New registries
617 inferior_call, memory_changed and register_changed.
618 * python/py-evts.c (gdbpy_initialize_py_events): Add the
619 inferior_call, memory_changed and register_changed registries.
620 * python/py-infevents.c: New.
621 * python/py-inferior.c (python_on_inferior_call_pre)
622 (python_on_inferior_call_post, python_on_register_change)
623 (python_on_memory_change): New functions.
624 (gdbpy_initialize_inferior): Attach python handler to new
625 observers.
626 * python/py-infthread.c(gdbpy_create_ptid_object): New.
627 (thpy_get_ptid) Use gdbpy_create_ptid_object.
628 * python/python-internal.h:
629 (gdbpy_create_ptid_object)
630 (gdbpy_initialize_inferior_call_pre_event)
631 (gdbpy_initialize_inferior_call_post_event)
632 (gdbpy_initialize_register_changed_event)
633 (gdbpy_initialize_memory_changed_event): New prototypes.
634 * python/python.c (_initialize_python): Initialize new events.
635 * valops.c (value_assign): Notify register_changed observer.
636
007baf27
DE
6372014-12-02 Doug Evans <dje@google.com>
638
639 * python/py-infthread.c: Whitespace fixes.
640
d5552aab
AA
6412014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
642
643 * features/Makefile (s390-te-linux64-expedite): Replace
644 non-existant r14 and r15 by r14l and r15l, respectively.
645 * regformats/s390-te-linux64.dat: Regenerate.
646
30b5e341
SM
6472014-12-01 Simon Marchi <simon.marchi@ericsson.com>
648
649 * objfiles.c (allocate_objfile): Remove duplicate comment.
650
ac3d87c0
UW
6512014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
652
653 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
654 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
655 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
656 (supply_gregset, supply_fpregset): Remove.
657 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
658 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
659 and sizeof_gregset.
660
f10c5b19
JK
6612014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 Add add-auto-load-scripts-directory.
664 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
665 * auto-load.c (add_auto_load_dir): New function.
666 (_initialize_auto_load): Install it.
667
f0d4ba1f
MG
6682014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
669
670 Pushed by Joel Brobecker <brobecker@adacore.com>.
671 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
672
18ac6ffc
SC
6732014-11-29 Siva Chandra Reddy <sivachandra@google.com>
674
675 * eval.c (evaluate_subexp): Check that the thread stack temporaries
676 are not already enabled before enabling them.
677
4072f920
YQ
6782014-11-29 Yao Qi <yao@codesourcery.com>
679
680 * arm-tdep.c (arm_analyze_prologue): Move local variables
681 'framereg' and 'framesize' to inner block. Move code to
682 inner block too.
683
6c659fc2
SC
6842014-11-28 Siva Chandra Reddy <sivachandra@google.com>
685
686 * eval.c: Include gdbthread.h.
687 (evaluate_subexp): Enable thread stack temporaries before
688 evaluating a complete expression and clean them up after the
689 evaluation is complete.
690 * gdbthread.h: Include common/vec.h.
691 (value_ptr): New typedef.
692 (VEC (value_ptr)): New vector type.
693 (value_vec): New typedef.
694 (struct thread_info): Add new fields stack_temporaries_enabled
695 and stack_temporaries.
696 (enable_thread_stack_temporaries)
697 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
698 (get_last_thread_stack_temporary)
699 (value_in_thread_stack_temporaries): Declare.
700 * gdbtypes.c (class_or_union_p): New function.
701 * gdbtypes.h (class_or_union_p): Declare.
702 * infcall.c (call_function_by_hand): Store return values of class
703 type as temporaries on stack.
704 * thread.c (enable_thread_stack_temporaries): New function.
705 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
706 (get_last_thread_stack_temporary): Likewise.
707 (value_in_thread_stack_temporaries): Likewise.
708 * value.c (value_force_lval): New function.
709 * value.h (value_force_lval): Declare.
710
f7ca3fcf
PM
7112014-11-28 Pierre Muller <muller@sourceware.org>
712
713 Pushed by Joel Brobecker <brobecker@adacore.com>.
714 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
715 registers.
716
b2859a9a
UW
7172014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
718
719 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
720 * config/sparc/linux.mh (NATDEPFILES): Likewise.
721 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
722 * m68klinux-nat.c (fetch_core_registers): Remove.
723 (linux_elf_core_fns): Remove.
724 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
725
0fa9473f
JB
7262014-11-28 Joel Brobecker <brobecker@adacore.com>
727
728 * utils.c (gdb_realpath): Rework comment about handling on
729 Windows.
730
6a29c58e
YQ
7312014-11-28 Yao Qi <yao@codesourcery.com>
732
733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
734 rename.
735 * gnulib/aclocal.m4: Re-generated.
736 * gnulib/config.in: Re-generated.
737 * gnulib/configure: Re-generated.
738 * gnulib/import/Makefile.am: Re-generated.
739 * gnulib/import/Makefile.in: Re-generated.
740 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
741 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
742 * import/basename-lgpl.c: New file.
743 * import/dirname-lgpl.c: New file.
744 * import/dirname.h: New file.
745 * import/m4/dirname.m4: New file.
746 * import/m4/malloc.m4: New file.
747 * import/m4/rename.m4: New file.
748 * import/m4/rmdir.m4: New file.
749 * import/m4/stdio_h.m4: New file.
750 * import/malloc.c: New file.
751 * import/rename.c: New file.
752 * import/rmdir.c: New file.
753 * import/same-inode.h: New file.
754 * import/stdio.c: New file.
755 * import/stdio.in.h: New file.
756 * import/stripslash.c: New file.
757
abbffc89
YQ
7582014-11-28 Yao Qi <yao@codesourcery.com>
759
760 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
761 and realpath.
762 * config.in: Re-generated.
763 * configure: Re-generated.
764 * utils.c (gdb_realpath): Remove code calling realpath,
765 canonicalize_file_name and pathconf.
766 [!_WIN32]: Call canonicalize_file_name.
767
98399780
YQ
7682014-11-28 Yao Qi <yao@codesourcery.com>
769
770 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
771 canonicalize-lgpl.
772 * aclocal.m4: Re-generated.
773 * config.in: Re-generated.
774 * configure: Re-generated.
775 * import/Makefile.am: Re-generated.
776 * import/Makefile.in: Re-generated.
777 * import/m4/gnulib-cache.m4: Re-generated.
778 * import/m4/gnulib-comp.m4: Re-generated.
779 * import/canonicalize-lgpl.c: New file.
780 * import/extra/snippet/_Noreturn.h: New file.
781 * import/m4/canonicalize.m4: New file.
782 * import/m4/double-slash-root.m4: New file.
783 * import/m4/eealloc.m4: New file.
784 * import/m4/malloca.m4: New file.
785 * import/m4/nocrash.m4: New file.
786 * import/m4/stdlib_h.m4: New file.
787 * import/malloca.c: New file.
788 * import/malloca.h: New file.
789 * import/malloca.valgrind: New file.
790
3332aaf2
YQ
7912014-11-28 Yao Qi <yao@codesourcery.com>
792
793 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
794 * config.in, configure: Regenerate.
795 * symfile.c (find_separate_debug_file_by_debuglink): Remove
796 code checking HAVE_LSTAT is defined.
797
f45c62c4
YQ
7982014-11-28 Yao Qi <yao@codesourcery.com>
799
800 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
801 lstat.
802 * gnulib/aclocal.m4: Re-generated.
803 * gnulib/config.in: Re-generated.
804 * gnulib/configure: Re-generated.
805 * gnulib/import/Makefile.am: Re-generated.
806 * gnulib/import/Makefile.in: Re-generated.
807 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
808 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
809 * gnulib/import/lstat.c: New file.
810 * gnulib/import/m4/lstat.m4: New file.
811
bdca27a2
YQ
8122014-11-28 Yao Qi <yao@codesourcery.com>
813
814 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
815 * config.in, configure: Re-generate.
816 * inf-child.c (inf_child_fileio_readlink): Don't check
817 HAVE_READLINK is defined.
818
2196f55f
YQ
8192014-11-28 Yao Qi <yao@codesourcery.com>
820
821 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
822 * gnulib/aclocal.m4: Re-generated.
823 * gnulib/config.in: Likewise.
824 * gnulib/configure: Likewise.
825 * gnulib/import/Makefile.am: Likewise.
826 * gnulib/import/Makefile.in: Likewise.
827 * gnulib/import/m4/gnulib-cache.m4: Likewise.
828 * gnulib/import/m4/gnulib-comp.m4: Likewise.
829 * gnulib/import/dosname.h: New file
830 * gnulib/import/m4/largefile.m4: New file.
831 * gnulib/import/m4/readlink.m4: New file.
832 * gnulib/import/m4/stat.m4: New file.
833 * gnulib/import/readlink.c: New file.
834 * gnulib/import/stat.c: New file.
835
7014e923 8362014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
837
838 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
839 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
840
aa489395
SL
8412014-11-25 Sandra Loosemore <sandra@codesourcery.com>
842
843 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
844 that there can be only one stack adjustment in the prologue
845 with tests to detect specific disallowed stack adjustments.
846
7f1659b5
SL
8472014-11-25 Sandra Loosemore <sandra@codesourcery.com>
848
849 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
850 adjustments.
851
d53c26c7
SL
8522014-11-25 Sandra Loosemore <sandra@codesourcery.com>
853
854 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
855 the instruction as well as reading it from memory.
856 (nios2_match_add): New.
857 (nios2_match_sub): New.
858 (nios2_match_addi): New.
859 (nios2_match_orhi): New.
860 (nios2_match_stw): New.
861 (nios2_match_ldw): New.
862 (nios2_match_rdctl): New.
863 (enum branch_condition): New.
864 (nios2_match_branch): New.
865 (nios2_match_jmpi): New.
866 (nios2_match_calli): New.
867 (nios2_match_jmpr): New.
868 (nios2_match_callr): New.
869 (nios2_match_break): New.
870 (nios2_match_trap): New.
871 (nios2_in_epilogue_p): Rewrite to use new functions.
872 (nios2_analyze_prologue): Likewise.
873 (nios2_skip_prologue): Delete unused local limit_pc.
874 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
875 (nios2_get_next_pc): Rewrite to use new functions.
876
cac9b138
JK
8772014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
878
879 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
880
a441dfbc
ST
8812014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
882
883 Pushed by Joel Brobecker <brobecker@adacore.com>
884 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
885 elements pi_len by the size of the elements before calling
886 vm_deallocate.
887 (inf_validate_task_sc): Likewise, and properly deallocate the
888 noise array.
889
4c9e8482
DE
8902014-11-23 Doug Evans <xdje42@gmail.com>
891
892 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
893 number and name if present. All callers updated.
894 (dump_fn_fieldlists): Fix indentation of args.
895
15ee0bbd
PP
8962014-11-23 Patrick Palka <patrick@parcs.ath.cx>
897
898 * MAINTAINERS (Write After Approval): Add myself.
899
e8af5d7a
JB
9002014-11-23 Joel Brobecker <brobecker@adacore.com>
901
902 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
903 to a bp_call_dummy breakpoint type.
904
a344fc09
PP
9052014-11-23 Patrick Palka <patrick@parcs.ath.cx>
906
907 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
908 registering the signal handler.
909
d64e57fa
PP
9102014-11-23 Patrick Palka <patrick@parcs.ath.cx>
911
912 * event-top.h (call_stdin_event_handler_again_p): Declare.
913 * event-top.c (call_stdin_event_handler_again_p): Define.
914 (stdin_event_handler): Use it.
915 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
916 handler again if there is pending input following a
917 start sequence.
918
6f9d33d8
PP
9192014-11-23 Patrick Palka <patrick@parcs.ath.cx>
920
921 Pushed by Joel Brobecker <brobecker@adacore.com>
922 * linux-fork.c (checkpoint_command): Print index of new
923 checkpoint in response message.
924
88db67ef
YQ
9252014-11-23 Yao Qi <yao@codesourcery.com>
926
927 * valprint.c (read_string): Move local variables 'found_nul',
928 'chunksize' and 'limit' to inner scope. Update comments.
929
01465b56
DE
9302014-11-22 Doug Evans <xdje42@gmail.com>
931
932 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
933 function comment.
934 (search_symbols): Fix comments and whitespace.
935
07a1c2c3
DE
9362014-11-22 Doug Evans <xdje42@gmail.com>
937
938 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
939
b2a919a8
DE
9402014-11-21 Doug Evans <dje@google.com>
941
942 * psymtab.c (psymtab_search_name): Fix whitespace.
943
278289d5
YQ
9442014-11-21 Yao Qi <yao@codesourcery.com>
945
946 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
947 errno.
948 * gnulib/import/Makefile.am: Re-generated.
949 * gnulib/import/Makefile.in: Likewise.
950 * gnulib/import/m4/gnulib-cache.m4: Likewise.
951
e01e2baa
YQ
9522014-11-21 Yao Qi <yao@codesourcery.com>
953
954 * gdb_wchar.h: Include wchar.h and wctype.h.
955 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
956 include wchar.h and wctype.h.
957 Don't check HAVE_WCHAR_H.
958
f0c00af8
YQ
9592014-11-21 Yao Qi <yao@codesourcery.com>
960
961 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
962 and wctype-h.
963 * gnulib/import/Makefile.am: Re-generated.
964 * gnulib/import/Makefile.in: Likewise.
965 * gnulib/import/m4/gnulib-cache.m4: Likewise.
966
0cae13bb
YQ
9672014-11-21 Yao Qi <yao@codesourcery.com>
968
969 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
970 memchr.
971 * gnulib/import/Makefile.am: Re-generated.
972 * gnulib/import/Makefile.in: Likewise.
973 * gnulib/import/m4/gnulib-cache.m4: Likewise.
974
9c232dda
YQ
9752014-11-21 Yao Qi <yao@codesourcery.com>
976
977 * common/common-defs.h: Include alloca.h
978 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
979 * configure: Re-generated.
980 * defs.h: Remove code handling alloca.
981 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
982 or not.
983
00d7f58f
YQ
9842014-11-21 Yao Qi <yao@codesourcery.com>
985
986 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
987 alloca.
988 * gnulib/import/Makefile.am: Re-generated.
989 * gnulib/import/Makefile.in: Likewise..
990 * gnulib/import/m4/gnulib-cache.m4: Likewise.
991
6068ad5d
YQ
9922014-11-21 Yao Qi <yao@codesourcery.com>
993
994 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
995 alphabetical order.
996
45e44d27
JB
9972014-11-21 Joel Brobecker <brobecker@adacore.com>
998
999 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1000 flag_unsigned if HIGH_BOUND is constant and negative.
1001
7e7cbeb3
SDJ
10022014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1003
1004 PR breakpoints/10737
1005 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1006 modifier from "struct gdbarch" when compiling without Expat (XML)
1007 support.
1008 (get_syscall_by_number): Likewise.
1009 (get_syscall_by_name): Likewise.
1010 (get_syscall_names): Likewise.
1011
458c8db8
SDJ
10122014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1013
1014 PR breakpoints/10737
1015 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1016 set_xml_syscall_file_name to provide gdbarch.
1017 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1018 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1019 * breakpoint.c (print_it_catch_syscall): Adjust call to
1020 get_syscall_by_number to provide gdbarch.
1021 (print_one_catch_syscall): Likewise.
1022 (print_mention_catch_syscall): Likewise.
1023 (print_recreate_catch_syscall): Likewise.
1024 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1025 and get_syscall_by_name to provide gdbarch.
1026 (catch_syscall_completer): Adjust call to get_syscall_names to
1027 provide gdbarch.
1028 * gdbarch.c: Regenerate.
1029 * gdbarch.h: Likewise.
1030 * gdbarch.sh: Forward declare "struct syscalls_info".
1031 (xml_syscall_file): New variable.
1032 (syscalls_info): Likewise.
1033 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1034 set_xml_syscall_file_name to provide gdbarch.
1035 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1036 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1037 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1038 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1039 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1040 * xml-syscall.c: Include gdbarch.h.
1041 (set_xml_syscall_file_name): Accept gdbarch parameter.
1042 (get_syscall_by_number): Likewise.
1043 (get_syscall_by_name): Likewise.
1044 (get_syscall_names): Likewise.
1045 (my_gdb_datadir): Delete global variable.
1046 (struct syscalls_info) <my_gdb_datadir>: New variable.
1047 (struct syscalls_info) <sysinfo>: Rename variable to
1048 "syscalls_info".
1049 (sysinfo): Delete global variable.
1050 (have_initialized_sysinfo): Likewise.
1051 (xml_syscall_file): Likewise.
1052 (sysinfo_free_syscalls_desc): Rename to...
1053 (syscalls_info_free_syscalls_desc): ... this.
1054 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1055 code to the new layout of "struct syscalls_info".
1056 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1057 "syscalls_info".
1058 (syscall_create_syscall_desc): Likewise.
1059 (syscall_start_syscall): Likewise.
1060 (syscall_parse_xml): Likewise.
1061 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1062 (init_sysinfo): Rename to...
1063 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1064 Adjust function to deal with gdbarch.
1065 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1066 gdbarch as a parameter. Adjust code.
1067 (xml_get_syscall_name): Likewise.
1068 (xml_list_of_syscalls): Likewise.
1069 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1070 (get_syscall_by_number): Likewise.
1071 (get_syscall_by_name): Likewise.
1072 (get_syscall_names): Likewise.
1073 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1074 (get_syscall_by_number): Likewise.
1075 (get_syscall_by_name): Likewise.
1076 (get_syscall_names): Likewise.
1077
43f3e411
DE
10782014-11-20 Doug Evans <xdje42@gmail.com>
1079
1080 Split struct symtab into two: struct symtab and compunit_symtab.
1081 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1082 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1083 to "struct compunit_symtab *". All callers updated.
1084 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1085 "struct symtab *" argument to "struct compunit_symtab *".
1086 All callers updated.
1087 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1088 result to "struct compunit_symtab *". All callers updated.
1089 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1090 Change result to "struct compunit_symtab *". All callers updated.
1091 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1092 hange type to "struct compunit_symtab *". All uses updated.
1093 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1094 Change type to "struct compunit_symtab *". All uses updated.
1095 * buildsym.c (struct buildsym_compunit): New struct.
1096 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1097 (buildsym_compunit): New static global.
1098 (finish_block_internal): Update to fetch objfile from
1099 buildsym_compunit.
1100 (make_blockvector): Delete objfile argument.
1101 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1102 debugformat, producer.
1103 (start_buildsym_compunit): New function.
1104 (free_buildsym_compunit): Renamed from free_subfiles_list.
1105 All callers updated.
1106 (patch_subfile_names): Rewrite to use buildsym_compunit.
1107 (get_compunit_symtab): New function.
1108 (get_macro_table): Delete argument comp_dir. All callers updated.
1109 (start_symtab): Change result to "struct compunit_symtab *".
1110 All callers updated. Create the subfile of the main source file.
1111 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1112 (reset_symtab_globals): Update.
1113 (end_symtab_get_static_block): Update to use buildsym_compunit.
1114 (end_symtab_without_blockvector): Rewrite.
1115 (end_symtab_with_blockvector): Change result to
1116 "struct compunit_symtab *". All callers updated.
1117 Update to use buildsym_compunit. Don't set symtab->dirname,
1118 instead set it in the compunit.
1119 Explicitly make sure main symtab is first in its list.
1120 Set debugformat, producer, blockvector, block_line_section, and
1121 macrotable in the compunit.
1122 (end_symtab_from_static_block): Change result to
1123 "struct compunit_symtab *". All callers updated.
1124 (end_symtab, end_expandable_symtab): Ditto.
1125 (set_missing_symtab): Change symtab argument to
1126 "struct compunit_symtab *". All callers updated.
1127 (augment_type_symtab): Ditto.
1128 (record_debugformat): Update to use buildsym_compunit.
1129 (record_producer): Update to use buildsym_compunit.
1130 * buildsym.h (struct subfile) <dirname>: Delete.
1131 <producer, debugformat>: Delete.
1132 <buildsym_compunit>: New member.
1133 (get_compunit_symtab): Declare.
1134 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1135 from primary_symtab. Change type to "struct compunit_symtab *".
1136 All uses updated.
1137 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1138 All callers updated.
1139 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1140 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1141 symtab. Change type to "struct compunit_symtab *". All uses updated.
1142 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1143 All callers updated.
1144 (dw2_find_last_source_symtab): Ditto.
1145 (dw2_lookup_symbol): Ditto.
1146 (recursively_find_pc_sect_compunit_symtab): Renamed from
1147 recursively_find_pc_sect_symtab. Change result to
1148 "struct compunit_symtab *". All callers updated.
1149 (dw2_find_pc_sect_compunit_symtab): Renamed from
1150 dw2_find_pc_sect_symtab. Change result to
1151 "struct compunit_symtab *". All callers updated.
1152 (get_compunit_symtab): Renamed from get_symtab. Change result to
1153 "struct compunit_symtab *". All callers updated.
1154 (recursively_compute_inclusions): Change type of immediate_parent
1155 argument to "struct compunit_symtab *". All callers updated.
1156 (compute_compunit_symtab_includes): Renamed from
1157 compute_symtab_includes. All callers updated. Rewrite to compute
1158 includes of compunit_symtabs and not symtabs.
1159 (process_full_comp_unit): Update to work with struct compunit_symtab.
1160 (process_full_type_unit): Ditto.
1161 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1162 (dwarf_decode_lines): Remove special case handling of main subfile.
1163 (macro_start_file): Delete argument comp_dir. All callers updated.
1164 (dwarf_decode_macro_bytes): Ditto.
1165 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1166 use struct compunit_symtab.
1167 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1168 * jit.c (finalize_symtab): Build compunit_symtab.
1169 * jv-lang.c (get_java_class_symtab): Change result to
1170 "struct compunit_symtab *". All callers updated.
1171 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1172 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1173 comp_dir. Change type to "struct compunit_symtab *".
1174 All uses updated.
1175 (new_macro_table): Change comp_dir argument to cust,
1176 "struct compunit_symtab *". All callers updated.
1177 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1178 nr_primary_symtabs. All uses updated.
1179 (count_symtabs_and_blocks): Update to handle compunits.
1180 (report_command_stats): Update output, "primary symtabs" renamed to
1181 "compunits".
1182 * mdebugread.c (new_symtab): Change result to
1183 "struct compunit_symtab *". All callers updated.
1184 (parse_procedure): Change type of search_symtab argument to
1185 "struct compunit_symtab *". All callers updated.
1186 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1187 separate loop.
1188 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1189 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1190 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1191 All uses updated.
1192 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1193 All uses updated.
1194 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1195 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1196 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1197 symtab. Change type to "struct compunit_symtab *". All uses updated.
1198 * psymtab.c (psymtab_to_symtab): Change result type to
1199 "struct compunit_symtab *". All callers updated.
1200 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1201 find_pc_sect_symtab_from_partial. Change result type to
1202 "struct compunit_symtab *". All callers updated.
1203 (lookup_symbol_aux_psymtabs): Change result type to
1204 "struct compunit_symtab *". All callers updated.
1205 (find_last_source_symtab_from_partial): Ditto.
1206 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1207 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1208 and macro_table from compunit.
1209 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1210 type to "struct compunit_symtab *". All callers updated.
1211 (debug_qf_lookup_symbol): Ditto.
1212 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1213 debug_qf_find_pc_sect_symtab, change result type to
1214 "struct compunit_symtab *". All callers updated.
1215 * symfile.c (allocate_symtab): Delete objfile argument.
1216 New argument cust.
1217 (allocate_compunit_symtab): New function.
1218 (add_compunit_symtab_to_objfile): New function.
1219 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1220 Change result type to "struct compunit_symtab *". All uses updated.
1221 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1222 Change result type to "struct compunit_symtab *". All uses updated.
1223 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1224 separate loop.
1225 (dump_symtab_1): Update test for primary source symtab.
1226 (maintenance_info_symtabs): Update to handle compunit symtabs.
1227 (maintenance_check_symtabs): Ditto.
1228 * symtab.c (set_primary_symtab): Delete.
1229 (compunit_primary_filetab): New function.
1230 (compunit_language): New function.
1231 (iterate_over_some_symtabs): Change type of arguments "first",
1232 "after_last" to "struct compunit_symtab *". All callers updated.
1233 Update to loop over symtabs in each compunit.
1234 (error_in_psymtab_expansion): Rename symtab argument to cust,
1235 and change type to "struct compunit_symtab *". All callers updated.
1236 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1237 Change result type to "struct compunit_symtab *". All callers updated.
1238 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1239 Change result type to "struct compunit_symtab *". All callers updated.
1240 (find_pc_sect_line): Only loop over symtabs within selected compunit
1241 instead of all symtabs in the objfile.
1242 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1243 <compunit_symtab> New member.
1244 <block_line_section>: Moved to compunit_symtab.
1245 <locations_valid>: Ditto.
1246 <epilogue_unwind_valid>: Ditto.
1247 <macro_table>: Ditto.
1248 <dirname>: Ditto.
1249 <debugformat>: Ditto.
1250 <producer>: Ditto.
1251 <objfile>: Ditto.
1252 <call_site_htab>: Ditto.
1253 <includes>: Ditto.
1254 <user>: Ditto.
1255 <primary>: Delete
1256 (SYMTAB_COMPUNIT): New macro.
1257 (SYMTAB_BLOCKVECTOR): Update definition.
1258 (SYMTAB_OBJFILE): Update definition.
1259 (SYMTAB_DIRNAME): Update definition.
1260 (struct compunit_symtab): New type. Common members among all source
1261 symtabs within a compilation unit moved here. All uses updated.
1262 (COMPUNIT_OBJFILE): New macro.
1263 (COMPUNIT_FILETABS): New macro.
1264 (COMPUNIT_DEBUGFORMAT): New macro.
1265 (COMPUNIT_PRODUCER): New macro.
1266 (COMPUNIT_DIRNAME): New macro.
1267 (COMPUNIT_BLOCKVECTOR): New macro.
1268 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1269 (COMPUNIT_LOCATIONS_VALID): New macro.
1270 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1271 (COMPUNIT_CALL_SITE_HTAB): New macro.
1272 (COMPUNIT_MACRO_TABLE): New macro.
1273 (ALL_COMPUNIT_FILETABS): New macro.
1274 (compunit_symtab_ptr): New typedef.
1275 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1276
005e2509
JB
12772014-11-20 Joel Brobecker <brobecker@adacore.com>
1278
1279 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1280 if the TYPE_CODE of range_type's base type does not match
1281 the TYPE_CODE of encoding_type's base type.
1282
2b0f535a
JB
12832014-11-19 Joel Brobecker <brobecker@adacore.com>
1284
1285 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1286 it starts with '<'.
1287
8908fca5
JB
12882014-11-19 Joel Brobecker <brobecker@adacore.com>
1289
1290 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1291 (ada_is_redundant_index_type_desc): New function.
1292 (to_fixed_array_type): Ignore parallel XA type if redundant.
1293
4a46959e
JB
12942014-11-19 Joel Brobecker <brobecker@adacore.com>
1295
1296 * ada-lang.c (constrained_packed_array_type): Set the length
1297 of the return array as if both bounds where zero if that
1298 returned array's index type is dynamic.
1299
2acf986b
YQ
13002014-11-19 Yao Qi <yao@codesourcery.com>
1301
1302 * config/i386/go32.mh (CC): Remove.
1303
439247b6
DE
13042014-11-18 Doug Evans <xdje42@gmail.com>
1305
1306 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1307 updated.
1308
4d663531
DE
13092014-11-18 Doug Evans <xdje42@gmail.com>
1310
1311 * buildsym.c (buildsym_objfile): New static global.
1312 (buildsym_comp_dir): New static global.
1313 (finish_block_internal): Delete arg objfile. All callers updated.
1314 (finish_block): Delete arg objfile. All callers updated.
1315 (start_subfile): Delete arg dirname. All callers updated.
1316 (patch_subfile_names): Update buildsym_comp_dir.
1317 (get_macro_table): Delete arg objfile. All callers updated.
1318 (start_symtab): New arg objfile. All callers updated.
1319 Rename arg dirname to comp_dir.
1320 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1321 (end_symtab_get_static_block): Delete arg objfile. All callers
1322 updated.
1323 (end_symtab_without_blockvector): Ditto.
1324 (end_symtab_with_blockvector): Ditto.
1325 (end_symtab_from_static_block): Ditto.
1326 (end_symtab): Ditto.
1327 (end_expandable_symtab): Ditto.
1328 (augment_type_symtab): Ditto.
1329 * coffread.c (coff_start_symtab): New arg objfile. All callers
1330 updated.
1331
8435453b
DE
13322014-11-18 Doug Evans <xdje42@gmail.com>
1333
1334 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1335 updated.
1336
ee6f8984
DE
13372014-11-18 Doug Evans <xdje42@gmail.com>
1338
1339 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1340 symtab.dirname updated to use it.
1341
eb822aa6
DE
13422014-11-18 Doug Evans <xdje42@gmail.com>
1343
1344 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1345 symtab.objfile updated to use it.
1346
98387a29
DE
13472014-11-18 Doug Evans <xdje42@gmail.com>
1348
1349 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1350
aff08958
DE
13512014-11-18 Doug Evans <xdje42@gmail.com>
1352
1353 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1354 SYMBOL_OBJFILE.
1355 * findvar.c (default_read_var_value): Ditto.
1356 * jv-lang.c (add_class_symtab_symbol): Ditto.
1357 * parse.c (operator_check_standard): Ditto.
1358 * printcmd.c (address_info): Ditto.
1359 * symtab.c (fixup_symbol_section): Ditto.
1360 (skip_prologue_sal): Ditto.
1361 * tracepoint.c (scope_info): Ditto.
1362 * valops.c (find_function_in_inferior): Ditto.
1363 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1364 * python/py-symbol.c (set_symbol): Ditto.
1365
7bab9b58
DE
13662014-11-18 Doug Evans <xdje42@gmail.com>
1367
1368 * buildsym.c (main_subfile): New static global.
1369 (free_subfiles_list): New function.
1370 (start_symtab): Set main_subfile.
1371 (restart_symtab): Replace init of subfiles, current_subfile with
1372 call to free_subfiles_list.
1373 (watch_main_source_file_lossage): Use main_subfile.
1374 (reset_symtab_globals): Replace init of current_subfile with call
1375 to free_subfiles_list.
1376 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1377 functions, split out from ...
1378 (end_symtab_from_static_block): ... here. Rewrite to call them.
1379
f194fefb
DE
13802014-11-18 Doug Evans <xdje42@gmail.com>
1381
1382 The result of symtab expansion is always a primary symtab.
1383 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1384 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1385 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1386 (psymtab_to_symtab): Add comment and assert.
1387 (map_matching_symbols_psymtab): Remove unnecessary test for
1388 non-primary symtab.
1389
34248c3a
DE
13902014-11-15 Doug Evans <xdje42@gmail.com>
1391
1392 PR symtab/17559
1393 * symtab.c (find_pc_line_symtab): New function.
1394 * symtab.h (find_pc_line_symtab): Declare.
1395 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1396 find_pc_symtab.
1397 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1398 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1399 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1400 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1401 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1402 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1403
2097ae25
DE
14042014-11-15 Doug Evans <xdje42@gmail.com>
1405
1406 * symtab.c (expand_symtab_containing_pc): Renamed from
1407 find_pc_sect_symtab_via_partial. All callers updated.
1408
1ada499f
YQ
14092014-11-15 Yao Qi <yao@codesourcery.com>
1410
1411 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1412
355e2102
JB
14132014-11-14 Joel Brobecker <brobecker@adacore.com>
1414
1415 * common/common-defs.h: Move <stdarg.h> #include ahead of
1416 <stdio.h> #include.
1417
83030110
PA
14182014-11-14 Pedro Alves <palves@redhat.com>
1419
1420 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1421 [!PHONY_ICONV] (gdb_iconv): New function.
1422 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1423
a8719064
DE
14242014-11-13 Doug Evans <dje@google.com>
1425
1426 PR symtab/17591
1427 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1428 "(anonymous namespace)".
1429
60f7655a
DE
14302014-11-13 Doug Evans <dje@google.com>
1431
1432 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1433 infinite loop.
1434
5784b3ca
JK
14352014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * NEWS (maint set target-async): Fix typo.
1438
6218dc4b
PA
14392014-11-12 Pedro Alves <palves@redhat.com>
1440
1441 * infrun.c (enum infwait_states, infwait_state): Delete.
1442
af48d08f
PA
14432014-11-12 Pedro Alves <palves@redhat.com>
1444
1445 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1446 Rewrite stepping over a permanent breakpoint.
1447 (thread_still_needs_step_over, proceed): Don't set
1448 stepping_over_breakpoint for permanent breakpoints.
1449 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1450 single-step breakpoints out of the target on hardware step
1451 targets.
1452 (process_event_stop_test): If stepping a permanent breakpoint
1453 doesn't hit the step-resume breakpoint, delete the step-resume
1454 breakpoint.
1455 (switch_back_to_stepped_thread): Also check if the stepped thread
1456 has advanced already on hardware step targets.
1457 (currently_stepping): Return true if the thread stepped a
1458 breakpoint.
1459
1a853c52
PA
14602014-11-12 Pedro Alves <palves@redhat.com>
1461
1462 Mark locations as permanent, not the whole breakpoint.
1463 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1464 (mark_breakpoints_out): Don't mark permanent breakpoints as
1465 uninserted.
1466 (breakpoint_init_inferior): Use mark_breakpoints_out.
1467 (breakpoint_here_p): Adjust.
1468 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1469 of permanent breakpoints.
1470 (make_breakpoint_permanent): Mark each location as permanent,
1471 instead of marking the breakpoint.
1472 (add_location_to_breakpoint): If the location is permanent, mark
1473 it as such, and as inserted.
1474 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1475 (bp_location_compare, update_global_location_list): Adjust.
1476 (update_breakpoint_locations): Don't make the breakpoint permanent
1477 here.
1478 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1479 breakpoints.
1480 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1481 (struct bp_location) <permanent>: New field.
1482 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1483 reference to bp_permanent.
1484
ae9bb220
PA
14852014-11-12 Pedro Alves <palves@redhat.com>
1486
1487 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1488 * arch-utils.h (default_skip_permanent_breakpoint): New
1489 declaration.
1490 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1491 Install default_skip_permanent_breakpoint as default method.
1492 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1493 (i386_gdbarch_init): Don't install it.
1494 * infrun.c (resume): Assume there's always a
1495 gdbarch_skip_permanent_breakpoint implementation.
1496 * gdbarch.h, gdbarch.c: Regenerate.
1497
015de688
DC
14982014-11-11 Daniel Colascione <dancol@dancol.org>
1499
1500 Warn about cross-PID-namespace debugging.
1501 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1502 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1503 * linux-thread-db.c (check_pid_namespace_match): New function.
1504 (thread_db_inferior_created): Call it.
1505
26a84859
DE
15062014-11-10 Doug Evans <xdje42@gmail.com>
1507
1508 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1509 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1510
712a2e6d
DE
15112014-11-10 Doug Evans <xdje42@gmail.com>
1512
1513 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1514
af3768e9
DE
15152014-11-10 Doug Evans <xdje42@gmail.com>
1516
1517 PR symtab/17564
1518 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1519 (lookup_static_symbol): Move definition to new location and rewrite.
1520 (lookup_symbol_in_objfile): New function.
1521 (lookup_symbol_global_iterator_cb): Call it.
1522
b1f28d99
UW
15232014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1524
1525 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1526
b7a084be
PA
15272014-11-07 Pedro Alves <palves@redhat.com>
1528
1529 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1530 check if we did a "nexti" inside a prologue.
1531 * symtab.c (in_prologue): Delete function.
1532 * symtab.h (in_prologue): Delete declaration.
1533
67be31e5
DE
15342014-11-06 Doug Evans <xdje42@gmail.com>
1535
1536 * symtab.h (lookup_global_symbol): Improve function comment.
1537
08724ab7
DE
15382014-11-06 Doug Evans <xdje42@gmail.com>
1539
1540 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1541 All callers updated.
1542 * symtab.h (lookup_global_symbol): Update decl.
1543 (lookup_static_symbol): Move decl to better location.
1544
d9060ba6
DE
15452014-11-06 Doug Evans <xdje42@gmail.com>
1546
1547 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1548
74016e12
DE
15492014-11-06 Doug Evans <xdje42@gmail.com>
1550
1551 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1552 All callers updated.
1553 (lookup_symbol_in_all_objfiles): Renamed from
1554 lookup_symbol_aux_symtabs. All callers updated.
1555 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1556 All callers updated.
1557 (lookup_symbol_in_objfile_symtabs): Renamed from
1558 lookup_symbol_aux_objfile. All callers updated.
1559
d1a2d36d
DE
15602014-11-06 Doug Evans <xdje42@gmail.com>
1561
1562 * symtab.c (lookup_symbol_in_block): Renamed from
1563 lookup_symbol_aux_block. All callers updated.
1564
24d864bb
DE
15652014-11-06 Doug Evans <xdje42@gmail.com>
1566
1567 * symtab.c (lookup_static_symbol): Renamed from
1568 lookup_static_symbol_aux. All callers updated.
1569 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1570 All callers updated.
1571
358d6ab3
DE
15722014-11-06 Doug Evans <xdje42@gmail.com>
1573
1574 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1575 * block.c (block_lookup_symbol): Use it.
1576 * cp-support.c (make_symbol_overload_list_block): Use it.
1577 * symtab.c (iterate_over_symbols): Use it.
1578
16b2eaa1
DE
15792014-11-06 Doug Evans <xdje42@gmail.com>
1580
1581 * symtab.c (lookup_block_symbol): Moved to ...
1582 * block.c (block_lookup_symbol): ... here and renamed.
1583 All callers updated.
1584 * block.h (block_lookup_symbol): Declare.
1585 * symtab.h (lookup_block_symbol): Delete.
1586
2dd2cd1c
DE
15872014-11-06 Doug Evans <xdje42@gmail.com>
1588
1589 * ada-lang.c (ada_make_symbol_completion_list): Use
1590 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1591 * symtab.c (lookup_objfile_from_block): Ditto.
1592
d4c58915
DE
15932014-11-06 Doug Evans <xdje42@gmail.com>
1594
1595 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1596 TYPE_CODE_STRUCT.
1597
9c1877ea
DE
15982014-11-06 Doug Evans <xdje42@gmail.com>
1599
1600 * objfiles.c (get_objfile_arch): Constify.
1601 * objfiles.h (get_objfile_arch): Update prototype.
1602 * solib.c (solib_global_lookup): Fetch arch from objfile,
1603 not target_gdbarch.
1604
426a4079
SL
16052014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1606
1607 * nios2-tdep.c (wild_insn): Delete.
1608 (profiler_insn, irqentry_insn): Delete.
1609 (nios2_match_sequence): Delete.
1610 (nios2_analyze_prologue): Update comments. Remove matching
1611 of obsolete profiler_insn and irqentry_insn sequences.
1612
ee11262d
AM
16132014-11-05 Alan Modra <amodra@gmail.com>
1614
1615 * charset.c (convert_between_encodings): Shrink obstack using
1616 obstack_blank_fast.
1617 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1618 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1619 to char* before doing pointer arithmetic.
ee11262d 1620
c87e6d00
SM
16212014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1622
1623 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1624
441ef17f
PA
16252014-11-04 Pedro Alves <palves@redhat.com>
1626
1627 * breakpoint.c (breakpoint_thread_match): Delete function.
1628 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1629
e0f52461
SC
16302014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1631
1632 PR c++/17494
1633 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1634 the method args also under EVAL_SKIP when evaluating method
1635 calls under EVAL_SKIP.
1636
a0b4d890
YQ
16372014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1638
1639 * dwarf2loc.c (read_pieced_value): Do big endian
1640 processing only if gdb_regnum is not -1.
1641 (write_pieced_value): Ditto.
1642
16432014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1644
1645 * arm-linux-tdep.c (arm_linux_init_abi): Use
1646 info.byte_order_for_code to choose endianity of breakpoint
1647 instructions snippets.
1648
16492014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1650
1651 * arm-tdep.c (extract_arm_insn): Use
1652 gdbarch_byte_order_for_code to read arm instruction.
1653
e82149ff
DE
16542014-11-02 Doug Evans <xdje42@gmail.com>
1655
1656 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1657
d7ee84f1
DE
16582014-11-02 Doug Evans <xdje42@gmail.com>
1659
1660 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1661 main_subfile before returning.
1662
4f072d17
DE
16632014-10-31 Doug Evans <xdje42@gmail.com>
1664
1665 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1666 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1667
8301c89e
DE
16682014-10-31 Doug Evans <xdje42@gmail.com>
1669
1670 * valops.c (value_cast_pointers): Fix whitespace.
1671 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1672 Ditto.
1673
02be9a71
DE
16742014-10-30 Doug Evans <dje@google.com>
1675
1676 * NEWS: Mention ability add attributes to gdb.Objfile and
1677 gdb.Progspace objects.
1678 * python/py-objfile.c (objfile_object): New member dict.
1679 (objfpy_dealloc): Py_XDECREF dict.
1680 (objfpy_initialize): Initialize dict.
1681 (objfile_getset): Add __dict__.
1682 (objfile_object_type): Set tp_dictoffset member.
1683 * python/py-progspace.c (progspace_object): New member dict.
1684 (pspy_dealloc): Py_XDECREF dict.
1685 (pspy_initialize): Initialize dict.
1686 (pspace_getset): Add __dict__.
1687 (pspace_object_type): Set tp_dictoffset member.
1688
6427bef6
YQ
16892014-10-30 Yao Qi <yao@codesourcery.com>
1690
1691 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1692 replace '\\' with '\\\\'.
1693
f60325be
JB
16942014-10-29 Joel Brobecker <brobecker@adacore.com>
1695
1696 GDB 7.8.1 released.
1697
ab917dfb
PA
16982014-10-29 Pedro Alves <palves@redhat.com>
1699
1700 PR gdb/17408
1701 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1702 instead of assuming a thread with a stepping range is always
1703 stepping.
1704
d3d4baed
PA
17052014-10-29 Pedro Alves <palves@redhat.com>
1706
1707 PR python/17372
1708 * event-top.c (change_line_handler): Call
1709 gdb_rl_callback_handler_remove instead of
1710 rl_callback_handler_remove.
1711 (callback_handler_installed): New global.
1712 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1713 (gdb_rl_callback_handler_reinstall): New functions.
1714 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1715 gdb_rl_callback_handler_install instead of
1716 rl_callback_handler_remove and rl_callback_handler_install.
1717 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1718 instead of rl_callback_handler_remove.
1719 * event-top.h (gdb_rl_callback_handler_remove)
1720 (gdb_rl_callback_handler_install)
1721 (gdb_rl_callback_handler_reinstall): New declarations.
1722 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1723 cleanup function.
1724 (fetch_inferior_event): Install it.
1725 * top.c (gdb_readline_wrapper_line) Call
1726 gdb_rl_callback_handler_remove instead of
1727 rl_callback_handler_remove.
1728 (gdb_readline_wrapper_cleanup): Don't call
1729 rl_callback_handler_install.
1730
6e5d7f39
PA
17312014-10-29 Pedro Alves <palves@redhat.com>
1732
1733 * event-top.c (command_line_handler): Clear the first byte of
1734 linebuffer, when it is first allocated.
1735
551cb6a5
PA
17362014-10-29 Pedro Alves <palves@redhat.com>
1737
1738 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1739 TRY_CATCH.
1740
1e1e619b
PA
17412014-10-29 Pedro Alves <palves@redhat.com>
1742
1743 PR tui/16138
1744 PR tui/17519
1745 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1746 (tui_allowed_p): Delete function.
1747 * tui/tui.c: Include "interps.h".
1748 (tui_enable): Don't use tui_allowed_p. Error out here with
1749 detailed error messages if the TUI is the top level interpreter,
1750 or if output is not a terminal. Use newterm instead of initscr,
1751 and error out if initializing the terminal fails. Also error out if
1752 the terminal doesn't support cursor addressing.
1753 * tui/tui.h (tui_allowed_p): Delete declaration.
1754
6041179a
JB
17552014-10-29 Joel Brobecker <brobecker@adacore.com>
1756
1757 * arm-tdep.c (arm_skip_stack_protector): Return early if
1758 address loaded by first "ldr" instruction does not have
1759 a corresponding minimal symbol. Update comment.
1760
6ae274b7
YQ
17612014-10-29 Yao Qi <yao@codesourcery.com>
1762
1763 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1764 loaded address correctly of ldr instruction.
1765
7f5ef605
PA
17662014-10-28 Pedro Alves <palves@redhat.com>
1767
1768 PR gdb/12623
1769 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1770 field.
1771 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1772 thread's stepped_breakpoint field. Skip if reverse debugging.
1773 Add comment.
1774 (init_thread_stepping_state, handle_signal_stop): Clear the
1775 thread's stepped_breakpoint field.
1776
7d1a114c
PA
17772014-10-27 Pedro Alves <palves@redhat.com>
1778
1779 * remote.c (remote_thread_alive): New, factored out from ...
1780 (remote_thread_alive): ... this.
1781 (remote_update_thread_list): Bail out before deleting threads if
1782 the target returned an empty list, and, the current thread has a
1783 magic/fake ptid.
1784
e5f8a7cc
PA
17852014-10-27 Pedro Alves <palves@redhat.com>
1786
1787 * infrun.c (handle_signal_stop): Also skip handlers when a random
1788 signal arrives while handling a "stepi" or a "nexti". Set the
1789 thread's 'step_after_step_resume_breakpoint' flag.
1790
71e396f9
LM
17912014-10-27 Luis Machado <lgustavo@codesourcery.com>
1792
1793 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1794 (arm_record_ld_st_imm_offset): Reimplement to cover all
1795 load/store cases for ARM opcode 010.
1796 (arm_record_ld_st_multiple): Reimplement to cover all
1797 load/store cases for ARM opcode 100.
1798
3aee438b
DE
17992014-10-26 Doug Evans <xdje42@gmail.com>
1800
1801 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1802
f88cb4b6
DE
18032014-10-26 Doug Evans <xdje42@gmail.com>
1804
1805 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1806 parameter "kind" to "block_index".
1807 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1808 "block_index".
1809 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1810
a023a30f
DE
18112014-10-26 Doug Evans <xdje42@gmail.com>
1812
1813 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1814
4c35218e
DE
18152014-10-26 Doug Evans <xdje42@gmail.com>
1816
1817 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1818 obstack_alloc.
1819
f08e8df3
DE
18202014-10-26 Doug Evans <xdje42@gmail.com>
1821
1822 * parser-defs.h (block_found): Move decl from here ...
1823 * symtab.h (block_found): ... to here.
1824
cf901d3b
DE
18252014-10-26 Doug Evans <xdje42@gmail.com>
1826
1827 * symtab.h (struct field_of_this_result): Fix typo in comment.
1828 (lookup_symbol_in_language): Move function comment here.
1829 (lookup_symbol): Improve function comment.
1830 (basic_lookup_symbol_nonlocal): Ditto.
1831 (lookup_symbol_static, lookup_symbol_global): Ditto.
1832 (lookup_symbol_aux_block): Ditto.
1833 (lookup_language_this): Add function comment.
1834 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1835 function comment.
1836 (lookup_block_symbol): Improve function comment.
1837 (lookup_struct): Fix capitalization in function comment.
1838 (lookup_transparent_type): Add function comment.
1839 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1840 Improve function comment.
1841 (lookup_objfile_from_block): Add function comment.
1842 * symtab.c (lookup_symbol_in_language): Update function comment.
1843 (lookup_symbol, lookup_language_this): Ditto.
1844 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1845 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1846 (basic_lookup_symbol_nonlocal): Ditto.
1847 (lookup_symbol_static, lookup_symbol_global): Ditto.
1848 (lookup_transparent_type, lookup_block_symbol): Ditto.
1849
ff6c39cf
DE
18502014-10-25 Doug Evans <xdje42@gmail.com>
1851
1852 * symtab.c (types_info): Delete forward decl.
1853 (functions_info, variables_info, sources_info): Ditto.
1854 (_initialize_symtab): Rewrite forward decl to use
1855 initialize_file_ftype.
1856
ec201f0c
DE
18572014-10-25 Doug Evans <xdje42@gmail.com>
1858
1859 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1860
ca040673
DE
18612014-10-25 Doug Evans <xdje42@gmail.com>
1862
1863 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1864 of local var child_die.
1865
6f259a23
DB
18662014-10-24 Don Breazeal <donb@codesourcery.com>
1867
1868 * infrun.c (follow_fork_inferior): Update fork message printing
1869 to use target_terminal_ours_for_output instead of
1870 target_terminal_ours, to use _() for all format strings, to print
1871 "vfork" instead of "fork" for vforks, and to add a detach message.
1872 (handle_vfork_child_exec_or_exit): Update message printing to use
1873 target_terminal_ours_for_output instead of target_terminal_ours, to
1874 use _() for all format strings, and to fix some formatting.
1875
09dd9a69
PA
18762014-10-24 Pedro Alves <palves@redhat.com>
1877
1878 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1879 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1880 * config/vax/vax.mh: Delete.
1881 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1882 obsolete configurations section.
1883 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1884 * vax-nat.c: Delete file.
1885
5ab806de
PA
18862014-10-24 Pedro Alves <palves@redhat.com>
1887
1888 * NEWS (Removed targets): Add OS/arch column.
1889
3433cfa5
SC
18902014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1891
1892 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1893 on the arg type of a constructor only if it is of reference type.
1894
96ba4233
SL
18952014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1896
1897 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1898 accessors and constants from nios2 opcodes update.
1899 (nios2_get_next_pc): Likewise.
1900
28153fd3
DE
19012014-10-19 Doug Evans <xdje42@gmail.com>
1902
1903 * gdbthread.h (set_running): Fix comment.
1904 (set_executing, finish_thread_state): Fix comment.
1905
fc9b8e47
DE
19062014-10-18 Doug Evans <xdje42@gmail.com>
1907
1908 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1909
4ffbba72
DE
19102014-10-17 Doug Evans <dje@google.com>
1911
1912 * NEWS: Mention new event gdb.clear_objfiles.
1913 * python/py-event.h (emit_clear_objfiles_event): Clear
1914 * python/py-events.h (events_object): New member clear_objfiles.
1915 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1916 event.
1917 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1918 emit clear_objfiles event.
1919 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1920 function.
1921 (emit_clear_objfiles_event): New function.
1922 (clear_objfiles): New event.
1923 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1924 Declare.
1925 * python/python.c (_initialize_python): Call
1926 gdbpy_initialize_clear_objfiles_event.
1927
d096d8c1
DE
19282014-10-17 Doug Evans <dje@google.com>
1929
1930 * NEWS: Mention new gdb.Objfile.progspace attribute.
1931 * python/py-objfile.c (objfpy_get_progspace): New function.
1932 (objfile_getset): New entry for "progspace".
1933
6c4486e6
PA
19342014-10-17 Pedro Alves <palves@redhat.com>
1935
1936 PR gdb/17471
1937 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1938 returns a copy of the input.
1939 (run_command_1, continue_command, step_1, jump_command)
1940 (signal_command, until_command, advance_command, finish_command)
1941 (attach_command): Adjust and install a cleanup to free the
1942 stripped args.
1943
0ff33695
PA
19442014-10-17 Pedro Alves <palves@redhat.com>
1945
1946 PR gdb/17300
1947 * infcmd.c (continue_1): If continuing all threads in the
1948 foreground, make sure the inferior's terminal settings are put in
1949 effect.
1950
6fdebc3d
PA
19512014-10-17 Pedro Alves <palves@redhat.com>
1952
1953 PR gdb/17472
1954 * annotate.c (annotate_breakpoints_invalid): Use
1955 target_terminal_our_for_output instead of target_terminal_ours.
1956 Give back the terminal to the target.
1957 (annotate_frames_invalid): Likewise.
1958
5842f62a
PA
19592014-10-17 Pedro Alves <palves@redhat.com>
1960
1961 * target.c (enum terminal_state): New enum.
1962 (terminal_state): New global.
1963 (target_terminal_init): New function.
1964 (target_terminal_inferior): Skip if inferior already owns the
1965 terminal.
1966 (target_terminal_ours, target_terminal_ours_for_output): New
1967 functions.
1968 * target.h (target_terminal_init): Convert to function prototype.
1969 (target_terminal_ours_for_output): Convert to function prototype
1970 and tweak comment.
1971 (target_terminal_ours): Convert to function prototype and tweak
1972 comment.
1973 * windows-nat.c (do_initial_windows_stuff): Call
1974 target_terminal_init instead of child_terminal_init_with_pgrp.
1975
32a8097b
PA
19762014-10-17 Pedro Alves <palves@redhat.com>
1977
1978 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1979 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1980 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1981 solib-osf.c.
1982 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1983 * ada-lang.h [__alpha__ && __osf__]
1984 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1985 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1986 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1987 GDB_OSABI_OSF1.
1988 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1989 files.
1990 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1991 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1992 * configure: Regenerate.
1993 * configure.ac: Remove references to osf.
1994 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1995 section. Remove all other references to osf.
1996 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1997 Remove all other references to osf.
1998 * dec-thread.c: Delete file.
1999 * defs.h (GDB_OSABI_OSF1): Delete.
2000 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2001 defined.
2002 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2003 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2004 Delete code.
2005 (unconditionally_kill_inferior)
2006 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2007 * solib-osf.c: Delete file.
2008
80134cf5
PA
20092014-10-17 Pedro Alves <palves@redhat.com>
2010
2011 * remote.c (clear_threads_listing_context): Move higher up, out of
2012 the HAVE_LIBEXPAT guard.
2013
89c7137f
TG
20142014-10-16 Tristan Gingold <gingold@adacore.com>
2015
2016 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2017 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2018 on amd64.
2019
44ee4a52
PA
20202014-10-15 Pedro Alves <palves@redhat.com>
2021
2022 * dec-thread.c (dec_thread_count_gdb_threads)
2023 (dec_thread_add_gdb_thread): Delete.
2024 (dec_thread_update_thread_list): Delete.
2025 (dec_thread_find_new_threads): Rename to ...
2026 (dec_thread_update_thread_list): ... this. Delete GDB-size
2027 threads that are no longer found in dec_thread_list.
2028 (resync_thread_list): Delete.
2029 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2030 resync_thread_list.
2031
ab970af1
PA
20322014-10-15 Pedro Alves <palves@redhat.com>
2033
2034 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2035 * remote.c (remote_update_thread_list): Skip calling prune_threads
2036 if any thread listing method is supported, and instead walk over
2037 the set of remote threads listed, deleting those that are not
2038 found in GDB's thread list.
2039
e8032dde
PA
20402014-10-15 Pedro Alves <palves@redhat.com>
2041
2042 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2043 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2044 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2045 (bsd_uthread_target): Adjust.
2046 * corelow.c (core_open): Adjust.
2047 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2048 (dec_thread_update_thread_list): New function.
2049 (init_dec_thread_ops): Adjust.
2050 * gdbthread.h (prune_threads): New declaration.
2051 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2052 (thread_db_update_thread_list): ... this. Call prune_threads.
2053 (init_thread_db_ops): Adjust.
2054 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2055 (procfs_update_thread_list): ... this. Call prune_threads.
2056 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2057 Adjust.
2058 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2059 (obsd_update_thread_list): ... this. Call prune_threads.
2060 (obsd_add_target): Adjust.
2061 * procfs.c (procfs_target): Adjust.
2062 (procfs_notice_thread): Update comment.
2063 (procfs_find_new_threads): Rename to ...
2064 (procfs_update_thread_list): ... this. Call prune_threads.
2065 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2066 comment.
2067 (ravenscar_wait): Adjust.
2068 (ravenscar_find_new_threads): Rename to ...
2069 (ravenscar_update_thread_list): ... this. Call prune_threads.
2070 (init_ravenscar_thread_ops): Adjust.
2071 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2072 (record_btrace_update_thread_list): ... this. Adjust comment.
2073 (init_record_btrace_ops): Adjust.
2074 * remote.c (remote_threads_info): Rename to ...
2075 (remote_update_thread_list): ... this. Call prune_threads.
2076 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2077 Adjust.
2078 * sol-thread.c (check_for_thread_db): Adjust.
2079 (sol_find_new_threads_callback): Rename to ...
2080 (sol_update_thread_list_callback): ... this.
2081 (sol_find_new_threads): Rename to ...
2082 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2083 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2084 * target-delegates.c: Regenerate.
2085 * target.c (target_find_new_threads): Rename to ...
2086 (target_update_thread_list): ... this.
2087 * target.h (struct target_ops): Rename to_find_new_threads field
2088 to to_update_thread_list.
2089 (target_find_new_threads): Rename to ...
2090 (target_update_thread_list): ... this.
2091 * thread.c (prune_threads): Make extern.
2092 (update_thread_list): Adjust.
2093
6dc54d91
PA
20942014-10-15 Pedro Alves <palves@redhat.com>
2095
2096 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2097 Add describing comment. Return -1 if the qL packet is not
2098 supported.
2099 (struct thread_item, thread_item_t): Move higher up in
2100 the file. Add comments.
2101 (struct threads_parsing_context): Move higher up in
2102 the file, add comments, and remote to ...
2103 (struct threads_listing_context): ... this.
2104 (remote_newthread_step): Don't add the thread to GDB's thread
2105 database here. Instead push it to the thread_listing_context
2106 list.
2107 (remote_find_new_threads): Rename to ...
2108 (remote_get_threads_with_ql): ... this. Add target_ops and
2109 targets_listing_context parameters. Pass down context.
2110 (start_thread): Adjust.
2111 (clear_threads_parsing_context): Rename to ...
2112 (clear_threads_listing_context): ... this.
2113 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2114 remote_threads_info.
2115 (remote_get_threads_with_qthreadinfo): Ditto.
2116 (remote_threads_info): Reimplement.
2117
36728e82
PA
21182014-10-15 Pedro Alves <palves@redhat.com>
2119
2120 * infrun.c (resume): Don't force displaced-stepping for all
2121 single-steps on software single-stepping archs.
2122
34b7e8a6
PA
21232014-10-15 Pedro Alves <palves@redhat.com>
2124
2125 * breakpoint.c (single_step_breakpoints): Delete global.
2126 (insert_single_step_breakpoint): Adjust to store the breakpoint
2127 pointer in the current thread.
2128 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2129 (cancel_single_step_breakpoints): Delete functions.
2130 (breakpoint_has_location_inserted_here): Make extern.
2131 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2132 breakpoint list.
2133 * breakpoint.h (breakpoint_has_location_inserted_here): New
2134 declaration.
2135 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2136 (cancel_single_step_breakpoints): Remove declarations.
2137 * gdbthread.h (struct thread_control_state)
2138 <single_step_breakpoints>: New field.
2139 (delete_single_step_breakpoints)
2140 (thread_has_single_step_breakpoints_set)
2141 (thread_has_single_step_breakpoint_here): New declarations.
2142 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2143 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2144 (singlestep_pc): Delete globals.
2145 (infrun_thread_ptid_changed): Remove references to removed
2146 globals.
2147 (resume_cleanups): Delete the current thread's single-step
2148 breakpoints.
2149 (maybe_software_singlestep): Remove references to removed globals.
2150 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2151 delete_single_step_breakpoints.
2152 (init_wait_for_inferior): Remove references to removed globals.
2153 (delete_thread_infrun_breakpoints): Delete the thread's
2154 single-step breakpoints too.
2155 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2156 single-step breakpoints here.
2157 (delete_stopped_threads_single_step_breakpoints): New function.
2158 (adjust_pc_after_break): Adjust to use
2159 thread_has_single_step_breakpoints_set.
2160 (handle_inferior_event): Remove references to removed globals.
2161 Use delete_stopped_threads_single_step_breakpoints.
2162 (handle_signal_stop): Adjust to per-thread single-step
2163 breakpoints. Swap test order to do cheaper tests first.
2164 (switch_back_to_stepped_thread): Extend debug output. Remove
2165 references to removed globals.
2166 * record-full.c (record_full_wait_1): Adjust to per-thread
2167 single-step breakpoints.
2168 * thread.c (delete_single_step_breakpoints)
2169 (thread_has_single_step_breakpoints_set)
2170 (thread_has_single_step_breakpoint_here): New functions.
2171 (clear_thread_inferior_resources): Also delete the thread's
2172 single-step breakpoints.
2173
5b834a0a
PA
21742014-10-15 Pedro Alves <palves@redhat.com>
2175
2176 * thread.c (delete_thread_breakpoint): New function.
2177 (delete_step_resume_breakpoint)
2178 (delete_exception_resume_breakpoint): Use it.
2179 (delete_at_next_stop): New function.
2180 (clear_thread_inferior_resources): Use delete_at_next_stop.
2181
a1fd2fa5
PA
21822014-10-15 Pedro Alves <palves@redhat.com>
2183
2184 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2185 (breakpoint_inserted_here_p): ... here. Remove special case for
2186 software single-step breakpoints.
2187 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2188 (software_breakpoint_inserted_here_p): ... here. Remove special
2189 case for software single-step breakpoints.
2190 (bp_target_info_copy_insertion_state)
2191 (deprecated_insert_raw_breakpoint)
2192 (deprecated_remove_raw_breakpoint): Delete functions.
2193 * breakpoint.h (deprecated_insert_raw_breakpoint)
2194 (deprecated_remove_raw_breakpoint): Remove declarations.
2195
7c16b83e
PA
21962014-10-15 Pedro Alves <palves@redhat.com>
2197
2198 PR breakpoints/9649
2199 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2200 Delete array globals.
2201 (single_step_breakpoints): New global.
2202 (breakpoint_xfer_memory): Remove special handling for single-step
2203 breakpoints.
2204 (update_breakpoints_after_exec): Delete bp_single_step
2205 breakpoints.
2206 (detach_breakpoints): Remove special handling for single-step
2207 breakpoints.
2208 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2209 (bpstat_stop_status): Add comment.
2210 (bpstat_what, bptype_string, print_one_breakpoint_location)
2211 (adjust_breakpoint_address, init_bp_location): Handle
2212 bp_single_step.
2213 (new_single_step_breakpoint): New function.
2214 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2215 handling for single-step breakpoints.
2216 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2217 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2218 Rewrite.
2219 (detach_single_step_breakpoints, find_single_step_breakpoint):
2220 Delete functions.
2221 (breakpoint_has_location_inserted_here): New function.
2222 (single_step_breakpoint_inserted_here_p): Rewrite.
2223 * breakpoint.h: Remove FIXME.
2224 (enum bptype) <bp_single_step>: New enum value.
2225 (insert_single_step_breakpoint): Update comment.
2226 * infrun.c (resume_cleanups)
2227 (delete_step_thread_step_resume_breakpoint): Remove single-step
2228 breakpoints.
2229 (fetch_inferior_event): Install a cleanup that removes infrun
2230 breakpoints.
2231 (switch_back_to_stepped_thread) <expect thread advanced also>:
2232 Clear step-over info.
2233
0cbcdb96
PA
22342014-10-15 Pedro Alves <palves@redhat.com>
2235
2236 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2237 (delete_thread_infrun_breakpoints): New function, with parts
2238 salvaged from delete_step_resume_breakpoint_callback.
2239 (delete_step_thread_step_resume_breakpoint): Delete.
2240 (for_each_just_stopped_thread_callback_func): New typedef.
2241 (for_each_just_stopped_thread): New function.
2242 (delete_just_stopped_threads_infrun_breakpoints): New function.
2243 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2244 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2245 ... this. Adjust.
2246 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2247
963f9c80
PA
22482014-10-15 Pedro Alves <palves@redhat.com>
2249
2250 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2251 trying to step past a non-steppable watchpoint.
2252 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2253 field.
2254 * infrun.c (struct step_over_info): Add new field
2255 'nonsteppable_watchpoint_p' and adjust comments.
2256 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2257 Adjust.
2258 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2259 (stepping_past_nonsteppable_watchpoint): New function.
2260 (step_over_info_valid_p): Also return true if stepping past a
2261 nonsteppable watchpoint.
2262 (proceed): Adjust call to set_step_over_info. Remove reference to
2263 init_infwait_state.
2264 (init_wait_for_inferior): Remove reference to init_infwait_state.
2265 (waiton_ptid): Delete global.
2266 (struct execution_control_state)
2267 <stepped_after_stopped_by_watchpoint>: Delete field.
2268 (wait_for_inferior, fetch_inferior_event): Always pass
2269 minus_one_ptid to target_wait.
2270 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2271 field.
2272 (init_infwait_state): Delete function.
2273 (handle_inferior_event): Remove infwait_state handling.
2274 (handle_signal_stop) <watchpoints handling>: Adjust after
2275 stepped_after_stopped_by_watchpoint removal. Don't remove
2276 breakpoints here nor set infwait_state. Set the thread's
2277 stepping_over_watchpoint flag, and call keep_going instead.
2278 (keep_going): Handle stepping_over_watchpoint. Adjust
2279 set_step_over_info calls.
2280 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2281 function.
2282
6cc83d2a
PA
22832014-10-15 Pedro Alves <palves@redhat.com>
2284
2285 * infrun.c (step_over_info_valid_p): New function.
2286 (resume): Use step_over_info_valid_p instead of checking the
2287 threads's trap_expected flag.
2288
6979730b
DE
22892014-10-15 Doug Evans <dje@google.com>
2290 Walfred Tedeschi <walfred.tedeschi@intel.com>
2291
2292 PR python/17364
2293 * python/lib/gdb/__init__.py (packages): Add "printer".
2294 * python/lib/gdb/command/bound_registers.py: Moved to ...
2295 * python/lib/gdb/printer/bound_registers.py: ... here.
2296 Add printer to global set of builtin printers. Rename printer from
2297 "bound" to "mpx_bound128".
2298 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2299 registered as global "builtin" printer.
2300 (add_builtin_pretty_printer): New function.
2301 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2302 gdb/printer/__init__.py.
2303
35a49624
IB
23042014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2305
2306 * Makefile.in (SFILES): Remove d-support.c.
2307 (COMMON_OBS): Remove d-support.o.
2308 * d-lang.h (d_parse_symbol): Remove declaration.
2309 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2310 * d-support.c: Remove file.
2311
8fa0c4f8
AA
23122014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2313
2314 * gdb/infrun.c (process_event_stop_test): Apply
2315 gdbarch_addr_bits_remove to longjmp resume address.
2316
3666da81
PA
23172014-10-15 Pedro Alves <palves@redhat.com>
2318
2319 * regformats/microblaze.dat: Delete file.
2320
449aa9df
AKA
23212014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2322
2323 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2324 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2325
ebb8ece2
SC
23262014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2327
2328 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2329 as non-trivial.
2330
82c48ac7
SC
23312014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2332
2333 PR c++/13403
2334 PR c++/15154
2335 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2336 with qualified args.
2337
c40cc657
JB
23382014-10-14 Joel Brobecker <brobecker@adacore.com>
2339
2340 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2341 of the case where the second operand is a pointer.
2342 <BINOP_SUB>: Likewise.
2343
0ea5cda8
SDJ
23442014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2345
2346 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2347 only if it is not NULL.
2348 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2349 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2350 (struct probe_ops) <clear_semaphore>: Likewise.
2351 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2352 not NULL.
2353 (stop_tracing): Likewise, for clear_semaphore.
2354
f7088df3
SDJ
23552014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2356
2357 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2358 using language_c, instead of current_language.
2359
4e1bbde0
DE
23602014-10-13 Doug Evans <dje@google.com>
2361
6ff5a0f6 2362 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2363 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2364 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2365 (pspy_new, pspace_to_pspace_object): Call it.
2366
c780cc2f
JK
23672014-10-13 Miroslav Franc <mfranc@redhat.com>
2368 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 Fix "save breakpoints" for "catch" command.
2371 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2372 newline.
2373
99894e11
JK
23742014-10-12 Miroslav Franc <mfranc@redhat.com>
2375
2376 Fix "save breakpoints" for "disable $bpnum" command.
2377 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2378
3831839c
PA
23792014-10-10 Pedro Alves <palves@redhat.com>
2380
2381 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2382 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2383 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2384 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2385 and been removed.
2386 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2387 * configure.ac: Remove references to IRIX.
2388 * configure.host: Add *-*-irix* to the obsolete hosts section.
2389 Remove all other references to irix.
2390 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2391 Delete files.
2392
cc3afae2
AKA
23932014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2394
2395 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2396 isn't valid, release the tdesc arch data and return NULL.
2397
cdfa0b0a
PA
23982014-10-10 Pedro Alves <palves@redhat.com>
2399
2400 * linux-tdep.c: Include observer.h.
2401 (linux_inferior_data): New global.
2402 (struct linux_info): New structure.
2403 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2404 (get_linux_inferior_data): New functions.
2405 (linux_vsyscall_range): Rename to ...
2406 (linux_vsyscall_range_raw): ... this.
2407 (linux_vsyscall_range): New function; handles caching.
2408 (_initialize_linux_tdep): Register linux_inferior_data. Install
2409 inferior_exit and inferior_appeared observers.
2410
8b9a549d
PA
24112014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 Pedro Alves <palves@redhat.com>
2413
2414 PR symtab/14466
2415 * solib-svr4.c (svr4_read_so_list): Rename to ...
2416 (svr4_current_sos_1): ... this and change the function comment.
2417 (svr4_current_sos): New function.
2418
3437254d
PA
24192014-10-10 Pedro Alves <palves@redhat.com>
2420
2421 * arch-utils.c (default_vsyscall_range): New function.
2422 * arch-utils.h (default_vsyscall_range): New declaration.
2423 * gdbarch.sh (vsyscall_range): New hook.
2424 * gdbarch.h, gdbarch.c: Regenerate.
2425 * linux-tdep.c (linux_vsyscall_range): New function.
2426 (linux_init_abi): Install linux_vsyscall_range as
2427 vsyscall_range gdbarch hook.
2428 * memrange.c (address_in_mem_range): New function.
2429 * memrange.h (address_in_mem_range): New declaration.
2430 * symfile-mem.c (find_vdso_size): Delete function.
2431 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2432
31cc0b80
PA
24332014-10-10 Pedro Alves <palves@redhat.com>
2434
2435 * infrun.c (normal_stop): Fix typo in comment.
2436
3e3286a2
SDJ
24372014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2438
2439 PR tdep/9390
2440 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2441 typo when using logical AND to determine instruction type.
2442
fcbdedf8
YQ
24432014-10-09 Yao Qi <yao@codesourcery.com>
2444
2445 * infrun.c (handle_signal_stop): Remove local variable
2446 'printed'.
2447
db984616
SS
24482014-10-08 Stan Shebs <stan@codesourcery.com>
2449
2450 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2451
3ba37e6c
GB
24522014-10-08 Gary Benson <gbenson@redhat.com>
2453
2454 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2455
a442d071
GB
24562014-10-08 Gary Benson <gbenson@redhat.com>
2457
2458 * common/common-defs.h: Include common-exceptions.h.
2459 * exceptions.h: Do not include common-exceptions.h.
2460
6f1947e8
GB
24612014-10-08 Gary Benson <gbenson@redhat.com>
2462
2463 * common/common-defs.h: Include cleanups.h.
2464 * common/common-exceptions.c: Do not include cleanups.h.
2465 * utils.h: Likewise.
2466
c765fdb9
GB
24672014-10-08 Gary Benson <gbenson@redhat.com>
2468
2469 * ada-lang.c: Do not include exceptions.h.
2470 * ada-valprint.c: Likewise.
2471 * amd64-tdep.c: Likewise.
2472 * auto-load.c: Likewise.
2473 * block.c: Likewise.
2474 * break-catch-throw.c: Likewise.
2475 * breakpoint.c: Likewise.
2476 * btrace.c: Likewise.
2477 * c-lang.c: Likewise.
2478 * cli/cli-cmds.c: Likewise.
2479 * cli/cli-interp.c: Likewise.
2480 * cli/cli-script.c: Likewise.
2481 * completer.c: Likewise.
2482 * corefile.c: Likewise.
2483 * corelow.c: Likewise.
2484 * cp-abi.c: Likewise.
2485 * cp-support.c: Likewise.
2486 * cp-valprint.c: Likewise.
2487 * darwin-nat.c: Likewise.
2488 * dwarf2-frame-tailcall.c: Likewise.
2489 * dwarf2-frame.c: Likewise.
2490 * dwarf2loc.c: Likewise.
2491 * dwarf2read.c: Likewise.
2492 * eval.c: Likewise.
2493 * event-loop.c: Likewise.
2494 * event-top.c: Likewise.
2495 * f-valprint.c: Likewise.
2496 * frame-unwind.c: Likewise.
2497 * frame.c: Likewise.
2498 * gdbtypes.c: Likewise.
2499 * gnu-v2-abi.c: Likewise.
2500 * gnu-v3-abi.c: Likewise.
2501 * guile/scm-auto-load.c: Likewise.
2502 * guile/scm-breakpoint.c: Likewise.
2503 * guile/scm-cmd.c: Likewise.
2504 * guile/scm-frame.c: Likewise.
2505 * guile/scm-lazy-string.c: Likewise.
2506 * guile/scm-param.c: Likewise.
2507 * guile/scm-symbol.c: Likewise.
2508 * guile/scm-type.c: Likewise.
2509 * hppa-hpux-tdep.c: Likewise.
2510 * i386-tdep.c: Likewise.
2511 * inf-loop.c: Likewise.
2512 * infcall.c: Likewise.
2513 * infcmd.c: Likewise.
2514 * infrun.c: Likewise.
2515 * interps.c: Likewise.
2516 * interps.h: Likewise.
2517 * jit.c: Likewise.
2518 * linespec.c: Likewise.
2519 * linux-nat.c: Likewise.
2520 * linux-thread-db.c: Likewise.
2521 * m32r-rom.c: Likewise.
2522 * main.c: Likewise.
2523 * memory-map.c: Likewise.
2524 * mi/mi-cmd-break.c: Likewise.
2525 * mi/mi-cmd-stack.c: Likewise.
2526 * mi/mi-interp.c: Likewise.
2527 * mi/mi-main.c: Likewise.
2528 * monitor.c: Likewise.
2529 * nto-procfs.c: Likewise.
2530 * objc-lang.c: Likewise.
2531 * p-valprint.c: Likewise.
2532 * parse.c: Likewise.
2533 * ppc-linux-tdep.c: Likewise.
2534 * printcmd.c: Likewise.
2535 * probe.c: Likewise.
2536 * python/py-auto-load.c: Likewise.
2537 * python/py-breakpoint.c: Likewise.
2538 * python/py-cmd.c: Likewise.
2539 * python/py-finishbreakpoint.c: Likewise.
2540 * python/py-frame.c: Likewise.
2541 * python/py-framefilter.c: Likewise.
2542 * python/py-function.c: Likewise.
2543 * python/py-gdb-readline.c: Likewise.
2544 * python/py-inferior.c: Likewise.
2545 * python/py-infthread.c: Likewise.
2546 * python/py-lazy-string.c: Likewise.
2547 * python/py-linetable.c: Likewise.
2548 * python/py-param.c: Likewise.
2549 * python/py-prettyprint.c: Likewise.
2550 * python/py-symbol.c: Likewise.
2551 * python/py-type.c: Likewise.
2552 * python/py-value.c: Likewise.
2553 * python/python-internal.h: Likewise.
2554 * python/python.c: Likewise.
2555 * record-btrace.c: Likewise.
2556 * record-full.c: Likewise.
2557 * regcache.c: Likewise.
2558 * remote-fileio.c: Likewise.
2559 * remote-mips.c: Likewise.
2560 * remote.c: Likewise.
2561 * rs6000-aix-tdep.c: Likewise.
2562 * rs6000-nat.c: Likewise.
2563 * skip.c: Likewise.
2564 * solib-darwin.c: Likewise.
2565 * solib-dsbt.c: Likewise.
2566 * solib-frv.c: Likewise.
2567 * solib-ia64-hpux.c: Likewise.
2568 * solib-spu.c: Likewise.
2569 * solib-svr4.c: Likewise.
2570 * solib.c: Likewise.
2571 * spu-tdep.c: Likewise.
2572 * stack.c: Likewise.
2573 * stap-probe.c: Likewise.
2574 * symfile-mem.c: Likewise.
2575 * symmisc.c: Likewise.
2576 * target.c: Likewise.
2577 * thread.c: Likewise.
2578 * top.c: Likewise.
2579 * tracepoint.c: Likewise.
2580 * tui/tui-interp.c: Likewise.
2581 * typeprint.c: Likewise.
2582 * utils.c: Likewise.
2583 * valarith.c: Likewise.
2584 * valops.c: Likewise.
2585 * valprint.c: Likewise.
2586 * value.c: Likewise.
2587 * varobj.c: Likewise.
2588 * windows-nat.c: Likewise.
2589 * xml-support.c: Likewise.
2590
484933d1
MR
25912014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2592
2593 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2594 name implies.
2595 (extended_mips16_next_pc): Update accordingly.
2596
ab50adb6
MR
25972014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2598
2599 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2600 function.
2601 (micromips_instruction_is_compact_branch): Likewise.
2602 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2603 or a compact jump, reaching a jump delay slot, or seeing a
2604 second non-prologue instruction.
2605 (micromips_scan_prologue): Also terminate scanning upon seeing a
2606 compact branch or jump, or reaching a branch or jump delay slot.
2607 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2608 or jump delay slot, or seeing a second non-prologue instruction.
2609 (mips32_instruction_has_delay_slot): Retain instruction
2610 examination code only, update arguments accordingly and move
2611 instruction fetch pieces to...
2612 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2613 (micromips_instruction_has_delay_slot): Likewise and to...
2614 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2615 (mips16_instruction_has_delay_slot): Likewise and to...
2616 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2617 (mips_single_step_through_delay): Update accordingly.
2618 (mips_adjust_breakpoint_address): Likewise.
2619
ae790652
MR
26202014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2621
2622 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2623 !mustbe32 also return 1 for 32-bit instructions.
2624 (mips16_instruction_has_delay_slot): Likewise. Add an
2625 explanatory comment.
2626
9b807e7b
MR
26272014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2628
2629 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2630 symbols special.
2631
0d5ed153
MR
26322014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2633
2634 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2635 update comments.
2636 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2637 for the breakpoint's address. Don't preinitialize `placed_size'.
2638 (insert_bp_location): Set `reqstd_address' rather than
2639 `placed_address'.
2640 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2641 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2642 address.
2643 (bkpt_remove_location): Likewise.
2644 (deprecated_insert_raw_breakpoint): Likewise.
2645 (deprecated_remove_raw_breakpoint): Likewise.
2646 (find_single_step_breakpoint): Likewise.
2647 * mem-break.c (default_memory_insert_breakpoint): Use
2648 `reqstd_address' for the breakpoint's address. Don't set
2649 `placed_address' or `placed_size' if breakpoint contents couldn't
2650 have been determined.
2651 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2652 the breakpoint's address.
2653 (remote_insert_hw_breakpoint): Likewise. Don't set
2654 `placed_address' or `placed_size' if breakpoint couldn't have been
2655 set.
2656 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2657 `reqstd_address' for the breakpoint's address.
2658 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2659 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2660 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2661 * microblaze-linux-tdep.c
2662 (microblaze_linux_memory_remove_breakpoint): Likewise.
2663 * monitor.c (monitor_insert_breakpoint): Likewise.
2664 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2665 (procfs_insert_hw_breakpoint): Likewise.
2666 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2667 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2668 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2669 * remote-mips.c (mips_insert_breakpoint): Likewise.
2670 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2671
3e871532
LM
26722014-10-03 Luis Machado <lgustavo@codesourcery.com>
2673
2674 * valops.c (value_assign): Check for bit field assignments
2675 before calling architecture-specific register value
2676 conversion functions.
2677
ec48dc8b
PM
26782014-10-03 Pierre Muller <muller@sourceware.org>
2679
2680 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2681
b57bacec
PA
26822014-10-02 Pedro Alves <palves@redhat.com>
2683
2684 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2685 threads_are_executing.
2686 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2687 describing comment.
2688 * gdbthread.h (threads_are_executing): Declare.
2689 (handle_signal_stop) <random signals>: Don't print about the
2690 signal here if stopping.
2691 (end_stepping_range): Don't notify observers here.
2692 (normal_stop): Update the thread list. If stopped by a random
2693 signal or a stepping range ended, notify observers.
2694 * thread.c (threads_executing): New global.
2695 (init_thread_list): Clear 'threads_executing'.
2696 (set_executing): Set or clear 'threads_executing'.
2697 (threads_are_executing): New function.
2698 (update_threads_executing): New function.
2699 (update_thread_list): Use it.
2700
13fd3ff3
PA
27012014-10-02 Pedro Alves <palves@redhat.com>
2702
2703 PR breakpoints/17431
2704 * breakpoint.c (update_breakpoints_after_exec): Don't create
2705 overlay, longjmp, std terminate nor exception breakpoints here.
2706
32990ada
PA
27072014-10-02 Pedro Alves <palves@redhat.com>
2708
2709 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2710 Adjust comments.
2711 * inferior.c (find_inferior_for_program_space): Give preference to
2712 the current inferior.
2713 * inferior.h (find_inferior_for_program_space): Update comment.
2714 * progspace.c (switch_to_program_space_and_thread): Prefer the
2715 current inferior if it's bound to the program space requested. If
2716 the inferior found doesn't have a PID yet, don't bother looking up
2717 a thread.
2718 * progspace.h (switch_to_program_space_and_thread): Adjust
2719 comment.
2720 * thread.c (any_thread_of_process, any_live_thread_of_process):
2721 Give preference to the current thread.
2722
0fec99e8
PA
27232014-10-01 Pedro Alves <palves@redhat.com>
2724
2725 * breakpoint.c (insert_bp_location): Error out if inserting a
2726 software breakpoint at a read-only address.
2727 * target.c (memory_xfer_check_region): New function, factored out
2728 from ...
2729 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2730 ULONGEST.
2731 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2732 against the memory region attributes.
2733
2ddf4301
SM
27342014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2735
2736 * NEWS: Announce new exit-code field in -list-thread-groups
2737 output.
2738 * inferior.c (exit_inferior_1): Don't clear exit code.
2739 (inferior_appeared): Clear exit code.
2740 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2741 code.
2742
5fdeec1d
PA
27432014-10-01 Pedro Alves <palves@redhat.com>
2744
2745 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2746 GENERATED" along with emacs/vi read-only markers.
2747 * regformats/aarch64.dat: Regenerate.
2748 * regformats/arm-with-iwmmxt.dat: Regenerate.
2749 * regformats/arm-with-neon.dat: Regenerate.
2750 * regformats/arm-with-vfpv2.dat: Regenerate.
2751 * regformats/arm-with-vfpv3.dat: Regenerate.
2752 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2753 * regformats/i386/amd64-avx.dat: Regenerate.
2754 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2755 * regformats/i386/amd64-avx512.dat: Regenerate.
2756 * regformats/i386/amd64-linux.dat: Regenerate.
2757 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2758 * regformats/i386/amd64-mpx.dat: Regenerate.
2759 * regformats/i386/amd64.dat: Regenerate.
2760 * regformats/i386/i386-avx-linux.dat: Regenerate.
2761 * regformats/i386/i386-avx.dat: Regenerate.
2762 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2763 * regformats/i386/i386-avx512.dat: Regenerate.
2764 * regformats/i386/i386-linux.dat: Regenerate.
2765 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2766 * regformats/i386/i386-mmx.dat: Regenerate.
2767 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2768 * regformats/i386/i386-mpx.dat: Regenerate.
2769 * regformats/i386/i386.dat: Regenerate.
2770 * regformats/i386/x32-avx-linux.dat: Regenerate.
2771 * regformats/i386/x32-avx.dat: Regenerate.
2772 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2773 * regformats/i386/x32-avx512.dat: Regenerate.
2774 * regformats/i386/x32-linux.dat: Regenerate.
2775 * regformats/i386/x32.dat: Regenerate.
2776 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2777 * regformats/mips-dsp-linux.dat: Regenerate.
2778 * regformats/mips-linux.dat: Regenerate.
2779 * regformats/mips64-dsp-linux.dat: Regenerate.
2780 * regformats/mips64-linux.dat: Regenerate.
2781 * regformats/nios2-linux.dat: Regenerate.
2782 * regformats/rs6000/powerpc-32.dat: Regenerate.
2783 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2784 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2785 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2786 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2787 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2788 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2789 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2790 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2791 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2792 * regformats/s390-linux32.dat: Regenerate.
2793 * regformats/s390-linux32v1.dat: Regenerate.
2794 * regformats/s390-linux32v2.dat: Regenerate.
2795 * regformats/s390-linux64.dat: Regenerate.
2796 * regformats/s390-linux64v1.dat: Regenerate.
2797 * regformats/s390-linux64v2.dat: Regenerate.
2798 * regformats/s390-te-linux64.dat: Regenerate.
2799 * regformats/s390x-linux64.dat: Regenerate.
2800 * regformats/s390x-linux64v1.dat: Regenerate.
2801 * regformats/s390x-linux64v2.dat: Regenerate.
2802 * regformats/s390x-te-linux64.dat: Regenerate.
2803 * regformats/tic6x-c62x-linux.dat: Regenerate.
2804 * regformats/tic6x-c62x.dat: Regenerate.
2805 * regformats/tic6x-c64x-linux.dat: Regenerate.
2806 * regformats/tic6x-c64x.dat: Regenerate.
2807 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2808 * regformats/tic6x-c64xp.dat: Regenerate.
2809
db74e4ba
PA
28102014-10-01 Pedro Alves <palves@redhat.com>
2811
2812 * features/Makefile: Update comments.
2813 (XMLTOC): List all xml files we build C files from.
2814 (clean-cfiles): New rule.
2815
d63f2f84
PA
28162014-10-01 Pedro Alves <palves@redhat.com>
2817
2818 * features/i386/amd64-avx512-linux.c: Regenerate.
2819 * features/i386/amd64-avx512.c: Regenerate.
2820 * features/i386/x32-avx512-linux.c: Regenerate.
2821 * features/i386/x32-avx512.c: Regenerate.
2822
20ad026d
PA
28232014-10-01 Pedro Alves <palves@redhat.com>
2824
2825 * features/Makefile (WHICH): Remove arm-with-m,
2826 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2827
acc9fe45
PA
28282014-10-01 Pedro Alves <palves@redhat.com>
2829
2830 * features/Makefile (clean): New rule.
2831
e001e535
PA
28322014-10-01 Pedro Alves <palves@redhat.com>
2833
2834 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2835 (zmm14h): Add missing end quotes.
2836
bdc14417
PA
28372014-10-01 Pedro Alves <palves@redhat.com>
2838
2839 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2840 * features/aarch64.c: Regenerate.
2841
d83ad864
DB
28422014-09-30 Don Breazeal <donb@codesourcery.com>
2843
2844 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2845 code so as to work with follow_fork_inferior.
2846 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2847 (inf_ttrace_create_inferior): Remove reference to
2848 inf_ttrace_vfork_ppid.
2849 (inf_ttrace_attach): Ditto.
2850 (inf_ttrace_detach): Ditto.
2851 (inf_ttrace_kill): Use current_inferior instead of
2852 inf_ttrace_vfork_ppid.
2853 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2854 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2855 inferior away from the parent.
2856 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2857 target_follow_fork.
2858 (follow_fork_inferior): New function.
2859 (follow_inferior_reset_breakpoints): Make function static.
2860 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2861 * linux-nat.c (linux_child_follow_fork): Move target-independent
2862 code to infrun.c:follow_fork_inferior.
2863
29082443
AA
28642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865
2866 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2867 * gdbarch.c: Regenerate.
2868 * gdbarch.h: Likewise.
2869 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2870 gdbarch method 'regset_from_core_section'.
2871 (get_core_register_section): Remove handling for the case that
2872 regset == NULL and regset_from_core_section is defined.
2873 (get_core_registers): Drop check for deleted method.
2874 * procfs.c (procfs_do_thread_registers): Adjust comment.
2875
f968fe80
AA
28762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877
2878 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2879 (linux_nat_make_corefile_notes): Remove.
2880 (linux_target_install_ops): Do not set target method
2881 'make_corefile_notes'.
2882 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2883 Remove field.
2884 (linux_corefile_thread_callback): Instead of args->collect, call
2885 linux_collect_thread_registers.
2886 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2887 NULL unless there is a regset iterator.
2888 (linux_make_corefile_notes_1): Remove.
2889 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2890 by linux_make_corefile_notes.
2891 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2892
174ad59a
AA
28932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2894
2895 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2896 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2897 Remove.
2898 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2899
97094034
AA
29002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2901
2902 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2903 (xtensa_iterate_over_regset_sections): New.
2904 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2905
f73d3ce7
AA
29062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907
2908 * vax-tdep.c (vax_regset_from_core_section): Remove.
2909 (vax_iterate_over_regset_sections): New.
2910 (vax_gdbarch_init): Adjust gdbarch initialization.
2911
cb24567a
AA
29122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2913
2914 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2915 (tilegx_regset_from_core_section): Remove.
2916 (tilegx_iterate_over_regset_sections): New.
2917 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2918
e5139de8
AA
29192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2920
2921 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2922 (sparc_iterate_over_regset_sections): New.
2923 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2924 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2925 targets.
2926 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2927 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2928 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2929 target method 'make_corefile_notes'.
2930
c6d41a6f
AA
29312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2932
2933 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2934 'sizeof_gregset' and 'sizeof_fpregset'.
2935 * sh-tdep.c (sh_regset_from_core_section): Remove.
2936 (sh_iterate_over_regset_sections): New.
2937 (sh_gdbarch_init): Adjust gdbarch initialization.
2938 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2939 sizeof_fpregset.
2940 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2941 'sizeof_gregset'.
2942
9845a0b5
AA
29432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2944
2945 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2946 (score7_linux_iterate_over_regset_sections): New.
2947 (score_gdbarch_init): Adjust gdbarch initialization.
2948
23ea9aeb
AA
29492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950
2951 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2952 FreeBSD targets.
2953 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2954 method 'make_corefile_notes'.
2955 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2956 (ppcfbsd_regset_from_core_section): Remove.
2957 (ppcfbsd_iterate_over_regset_sections): New.
2958 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2959 initialization.
2960 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2961 (ppcnbsd_iterate_over_regset_sections): New.
2962 (ppcnbsd_init_abi): Adjust.
2963 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2964 (ppcobsd_iterate_over_regset_sections): New.
2965 (ppcobsd_init_abi): Adjust.
2966 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2967 (rs6000_aix_iterate_over_regset_sections): New.
2968 (rs6000_aix_init_osabi): Adjust.
2969
c5b8d704
AA
29702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2971
2972 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2973 (nios2_regset_from_core_section): Remove.
2974 (nios2_iterate_over_regset_sections): New.
2975 (nios2_linux_init_abi): Adjust gdbarch initialization.
2976
3636e608
AA
29772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2978
2979 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2980 (am33_iterate_over_regset_sections): New.
2981 (am33_linux_init_osabi): Adjust gdbarch initialization.
2982
d4036235
AA
29832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2984
2985 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2986 (mips_linux_iterate_over_regset_sections): New.
2987 (mips_linux_init_abi): Adjust gdbarch initialization.
2988 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2989 (mips64obsd_iterate_over_regset_sections): New.
2990 (mips64obsd_init_abi): Adjust.
2991 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2992 (mipsnbsd_iterate_over_regset_sections): New.
2993 (mipsnbsd_init_abi): Adjust.
2994
b61ddd6e
AA
29952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996
2997 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2998 (m88k_iterate_over_regset_sections): New.
2999 (m88k_gdbarch_init): Adjust gdbarch initialization.
3000
55a2906a
AA
30012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3002
3003 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3004 (ia64_linux_iterate_over_regset_sections): New.
3005 (ia64_linux_init_abi): Adjust gdbarch initialization.
3006
022c98ab
AA
30072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3008
3009 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3010 (m68kbsd_iterate_over_regset_sections): New.
3011 (m68kbsd_init_abi): Adjust gdbarch initialization.
3012 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3013 (m68k_linux_iterate_over_regset_sections): New.
3014 (m68k_linux_init_abi): Adjust gdbarch initialization.
3015
5fac247f
AA
30162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017
3018 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3019 (m32r_linux_regset_from_core_section): Remove.
3020 (m32r_linux_iterate_over_regset_sections): New.
3021 (m32r_linux_init_abi): Adjust gdbarch initialization.
3022
490496c3
AA
30232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3024
3025 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3026 (amd64obsd_iterate_over_regset_sections): New.
3027 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3028 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3029 Remove.
3030 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3031 regset_from_core_section initialization.
3032 * i386-tdep.c (i386_regset_from_core_section): Remove.
3033 (i386_iterate_over_regset_sections): New.
3034 (i386_gdbarch_init): Adjust gdbarch initialization.
3035 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3036 (i386_iterate_over_regset_sections): New prototype.
3037 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3038 Remove.
3039 (i386obsd_aout_iterate_over_regset_sections): New.
3040 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3041 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3042 targets.
3043 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3044 (amd64fbsd_init_abi): Call fbsd_init_abi.
3045 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3046 (i386fbsd4_init_abi): Call fbsd_init_abi.
3047 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3048 target method 'make_corefile_notes'.
3049 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3050
50c5eb53
AA
30512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052
3053 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3054 (hppa_hpux_iterate_over_regset_sections): New.
3055 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3056 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3057 (hppa_linux_iterate_over_regset_sections): New.
3058 (hppa_linux_init_abi): Adjust.
3059 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3060 (hppanbsd_iterate_over_regset_sections): New.
3061 (hppanbsd_init_abi): Adjust.
3062 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3063 (hppaobsd_iterate_over_regset_sections): New.
3064 (hppaobsd_init_abi): Adjust.
3065
66afae4f
AA
30662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067
3068 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3069 (frv_linux_iterate_over_regset_sections): New.
3070 (frv_linux_init_abi): Adjust gdbarch initialization.
3071
ed09174e
AA
30722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3073
3074 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3075 (armbsd_iterate_over_regset_sections): New prototype.
3076 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3077 (armbsd_iterate_over_regset_sections): New.
3078 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3079 initialization.
3080
dff2166e
AA
30812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082
3083 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3084 (alpha_linux_iterate_over_regset_sections): New.
3085 (alpha_linux_init_abi): Adjust gdbarch initialization.
3086 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3087 prototype.
3088 (alphanbsd_iterate_over_regset_sections): New prototype.
3089
4108500a
AA
30902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3091
3092 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3093 Remove.
3094 (aarch64_linux_iterate_over_regset_sections): New.
3095 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3096
a904c024
AA
30972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098
3099 * fbsd-tdep.c: New file.
3100 * fbsd-tdep.h: New file.
3101 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3102 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3103 (ALLDEPFILES): Add fbsd-tdep.c.
3104
8f0435f7
AA
31052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3106
3107 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3108 parameter.
3109 * gdbarch.h: Regenerate.
3110 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3111 iterator.
3112 (get_core_register_section): Add parameter 'regset' and use it, if
3113 set. Add parameter 'min_size' and verify the bfd section size
3114 against it.
3115 (get_core_registers_cb): Add parameter 'regset' and pass it to
3116 get_core_register section. For the "standard" register sections
3117 ".reg" and ".reg2", set an appropriate default for human_name.
3118 (get_core_registers): Don't abort when the gdbarch has an iterator
3119 but no regset_from_core_section. Add NULL/0 for parameters
3120 'regset'/'min_size' in calls to get_core_register_section.
3121 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3122 'regset' and use it instead of calling the
3123 regset_from_core_section gdbarch method.
3124 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3125 * i386-tdep.c (i386_supply_xstateregset)
3126 (i386_collect_xstateregset, i386_xstateregset): Moved to
3127 i386-linux-tdep.c.
3128 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3129 .reg-xstate.
3130 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3131 core file support only if the regset iterator hasn't been set.
3132 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3133 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3134 Moved from i386-tdep.c and renamed to *_linux*.
3135 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3136 each callback invocation. Allow any .reg-xstate size when reading
3137 from a core file.
3138 * amd64-tdep.c (amd64_supply_xstateregset)
3139 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3140 amd64-linux-tdep.c.
3141 (amd64_regset_from_core_section): Remove.
3142 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3143 install an amd64-specific regset_from_core_section gdbarch method.
3144 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3145 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3146 Moved from amd64-tdep.c and renamed to *_linux*.
3147 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3148 to each callback invocation. Allow any .reg-xstate size when
3149 reading from a core file.
3150 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3151 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3152 each callback invocation.
3153 (arm_linux_init_abi): No longer set the regset_from_core_section
3154 gdbarch method.
3155 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3156 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3157 each callback invocation.
3158 (ppc_linux_init_abi): No longer set the regset_from_core_section
3159 gdbarch method.
3160 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3161 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3162 (s390_regset_from_core_section): Remove.
3163 (s390_iterate_over_regset_sections): Add regset parameter to each
3164 callback invocation.
3165 (s390_gdbarch_init): No longer set the regset_from_core_section
3166 gdbarch method. Drop initialization of deleted tdep fields.
3167
5aa82d05
AA
31682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169
3170 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3171 (amd64_linux_iterate_over_regset_sections): New.
3172 (amd64_linux_init_abi_common): Don't install the regset section
3173 list, but the new iterator in gdbarch.
3174 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3175 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3176 (arm_linux_iterate_over_regset_sections): ...here. New function.
3177 (arm_linux_init_abi): Set iterator instead of section list.
3178 * corelow.c (get_core_registers_cb): New function, logic moved
3179 from...
3180 (get_core_registers): ...loop body here. Use new iterator method
3181 instead of walking through the regset section list.
3182 * gdbarch.sh: Remove 'core_regset_sections'. New method
3183 'iterate_over_regset_sections'. New typedef
3184 'iterate_over_regset_sections_cb'.
3185 * gdbarch.c: Regenerate.
3186 * gdbarch.h: Likewise.
3187 * i386-linux-tdep.c (i386_linux_regset_sections)
3188 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3189 Remove.
3190 (i386_linux_iterate_over_regset_sections): New.
3191 (i386_linux_init_abi): Don't choose a regset section list, but
3192 install new iterator in gdbarch.
3193 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3194 (linux_collect_regset_section_cb): New function, logic moved
3195 from...
3196 (linux_collect_thread_registers): ...loop body here. Use iterator
3197 method instead of walking through list.
3198 (linux_make_corefile_notes_1): Check for presence of iterator
3199 method instead of regset section list.
3200 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3201 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3202 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3203 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3204 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3205 (ppc_linux_init_abi): Don't choose from above regset section
3206 lists, but install new iterator in gdbarch.
3207 * regset.h (struct core_regset_section): Remove.
3208 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3209 have_linux_v1, have_linux_v2, and have_tdb.
3210 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3211 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3212 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3213 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3214 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3215 (s390_iterate_over_regset_sections): ...here. New function. Use
3216 new tdep fields.
3217 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3218 regset section lists, but install new iterator.
3219
2eca4a8d
JK
32202014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3221
3222 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3223
a73c2b56
SM
32242014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3225
3226 * progspace.c (print_program_space): Don't prune program spaces
3227 before printing them.
3228
03d46957
PA
32292014-09-25 Pedro Alves <palves@redhat.com>
3230
3231 * infrun.c (user_visible_resume_ptid): Don't check
3232 singlestep_breakpoints_inserted_p.
3233
e558d7c1
PA
32342014-09-25 Pedro Alves <palves@redhat.com>
3235
3236 * breakpoint.c (should_be_inserted): Add debug output.
3237
7f89fd65
PA
32382014-09-25 Pedro Alves <palves@redhat.com>
3239
3240 * infrun.c (stepping_past_instruction_at)
3241 (clear_exit_convenience_vars): Point at infrun.h instead of
3242 inferior.h.
3243 (handle_signal_stop): Fix typo.
3244
b7576e5c
YQ
32452014-09-24 Yao Qi <yao@codesourcery.com>
3246
3247 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3248 bitmask.
3249
9a6cf368
GB
32502014-09-22 Gary Benson <gbenson@redhat.com>
3251
3252 * target.c (target_stop): Updated comment.
3253
03f4463b
GB
32542014-09-22 Gary Benson <gbenson@redhat.com>
3255
3256 * target/target.h (target_stop_ptid): Renamed as...
3257 (target_stop_and_wait): New function. Updated comment.
3258 All uses updated.
3259 (target_continue_ptid): Renamed as...
3260 (target_continue_no_signal): New function. Updated comment.
3261 All uses updated.
3262
a25a5a45
PA
32632014-09-22 Pedro Alves <palves@redhat.com>
3264
3265 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3266 and "auto" merged.
3267 * breakpoint.c (enum ugll_insert_mode): New enum.
3268 (always_inserted_mode): Now a plain boolean.
3269 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3270 (breakpoints_always_inserted_mode): Delete.
3271 (breakpoints_should_be_inserted_now): New function.
3272 (insert_breakpoints): Pass UGLL_INSERT to
3273 update_global_location_list instead of calling
3274 insert_breakpoint_locations manually.
3275 (create_solib_event_breakpoint_1): New, factored out from ...
3276 (create_solib_event_breakpoint): ... this.
3277 (create_and_insert_solib_event_breakpoint): Use
3278 create_solib_event_breakpoint_1 instead of calling
3279 insert_breakpoint_locations manually.
3280 (update_global_location_list): Change parameter type from boolean
3281 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3282 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3283 (update_global_location_list_nothrow): Change parameter type from
3284 boolean to enum ugll_insert_mode.
3285 (_initialize_breakpoint): "breakpoint always-inserted" option is
3286 now a boolean command. Update help text.
3287 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3288 (breakpoints_should_be_inserted_now): New declaration.
3289 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3290 Remove breakpoints_always_inserted_mode check.
3291 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3292 * remote.c (remote_start_remote): Likewise.
3293
04086b45
PA
32942014-09-22 Pedro Alves <palves@redhat.com>
3295
3296 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3297 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3298 Instead, pass UGLL_INSERT to update_global_location_list.
3299 (update_global_location_list): Change parameter type from boolean
3300 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3301 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3302 (create_solib_event_breakpoint_1): New, factored out from ...
3303 (create_solib_event_breakpoint): ... this.
3304 (create_and_insert_solib_event_breakpoint): Use
3305 create_solib_event_breakpoint_1 instead of calling
3306 insert_breakpoint_locations manually.
3307 (update_global_location_list): Handle UGLL_INSERT.
3308
44702360
PA
33092014-09-22 Pedro Alves <palves@redhat.com>
3310
3311 * breakpoint.c (enum ugll_insert_mode): New enum.
3312 (update_global_location_list)
3313 (update_global_location_list_nothrow): Change parameter type from
3314 boolean to enum ugll_insert_mode. All callers adjusted.
3315
93c6145a
JB
33162014-09-19 Joel Brobecker <brobecker@adacore.com>
3317
3318 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3319 SystemTap support in GDB.
3320
89a5711c
DB
33212014-09-19 Don Breazeal <donb@codesourcery.com>
3322
3323 * linux-nat.c (linux_handle_extended_wait): Call
3324 linux_ptrace_get_extended_event.
3325 (wait_lwp): Call linux_is_extended_waitstatus.
3326 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3327 and linux_is_extended_waitstatus.
3328 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3329 linux_ptrace_get_extended_event.
3330 (linux_ptrace_get_extended_event): New function.
3331 (linux_is_extended_waitstatus): New function.
3332 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3333 (linux_is_extended_waitstatus): New declarations.
3334
c3b7b696
YQ
33352014-09-19 Yao Qi <yao@codesourcery.com>
3336
3337 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3338 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3339 comments. Callers update.
3340 (dwarf_decode_lines): Likewise.
3341 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3342 comments. Skip the line table if 'lowpc' is greater than
3343 'address'. Don't check
3344 dwarf2_per_objfile->has_section_at_zero.
3345
2b4fd423
DE
33462014-09-18 Doug Evans <dje@google.com>
3347
3348 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3349 * python/py-symtab.c (stpy_get_producer): New function.
3350 (symtab_object_getset): Add "producer" attribute.
3351
5e43d467
UW
33522014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3353
3354 PR gdb/17384
3355 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3356 (do_captured_read_memory_integer): Remove.
3357 (safe_read_memory_integer): Use target_read_memory directly instead
3358 of catching errors in do_captured_read_memory_integer.
3359
04e79979
MR
33602014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3361
3362 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3363 not gdb/doc.
3364
76aeec5b
SDJ
33652014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3366
3367 * objc-lang.c (find_implementation_from_class): Remove dead code.
3368
2f693f9d
SDJ
33692014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3370
3371 PR cli/7233
3372 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3373 "fprintf_unfiltered (gdb_stdlog...)".
3374
bb9d5f81
PP
33752014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3376
3377 PR breakpoints/12526
3378 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3379 val_bitsize.
3380 * breakpoint.c (watch_command_1): Use these fields to retain
3381 bitfield information.
3382 (extract_bitfield_from_watchpoint_value): New function.
3383 (watchpoint_check): Use it.
3384 (update_watchpoint): Use it. Optimize the address and length of a
3385 HW watchpoint pointing to a bitfield.
3386 * value.h (unpack_value_bitfield): New prototype.
3387 * value.c (unpack_value_bitfield): Make extern.
3388
05db5edd
ST
33892014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3390
3391 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3392 x86-dregs.o.
3393 * gnu-nat.c (inf_threads): New function.
3394 * gnu-nat.h (inf_threads_ftype): New typedef.
3395 (inf_threads): New declaration.
3396 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3397 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3398 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3399 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3400 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3401 (i386_gnu_dr_get_control): New functions.
3402 (reg_addr): New structure.
3403 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3404 i386 debugging register hooks.
3405 * NEWS: Mention this.
3406
5a578da5
OJ
34072014-08-13 Omair Javaid <omair.javaid@linaro.org>
3408
3409 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3410 vector data transfer instructions.
3411 (arm_record_coproc_data_proc): Updated.
3412
f20f80dd
OJ
34132014-08-13 Omair Javaid <omair.javaid@linaro.org>
3414
3415 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3416 arm_record_exreg_ld_st_insn.
3417 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3418 load/store insns.
3419
851f26ae
OJ
34202014-08-13 Omair Javaid <omair.javaid@linaro.org>
3421
3422 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3423 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3424 processing instructions.
3425
1e1b6563
OJ
34262014-08-13 Omair Javaid <omair.javaid@linaro.org>
3427
3428 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3429 for advance SIMD struct ld/st insn.
3430 (thumb2_record_decode_insn_handler): Replace stub handler with
3431 thumb2_record_asimd_struct_ld_st.
3432
60cc5e93
OJ
34332014-08-13 Omair Javaid <omair.javaid@linaro.org>
3434
3435 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3436 for asimd, vfp and coprocessor insns.
3437 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3438 and coprocessor insns.
3439 (thumb2_record_coproc_insn): New function.
3440 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3441 handlers.
3442 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3443 opcode 110 insns.
3444
81219e53
DE
34452014-09-13 Doug Evans <xdje42@gmail.com>
3446
3447 * NEWS: Mention new "queue-signal" command.
3448 * infcmd.c (queue_signal_command): New function.
3449 (_initialize_infcmd): Add new queue-signal command.
3450
d36bf488
DE
34512014-09-13 Doug Evans <xdje42@gmail.com>
3452
3453 * linux-nat.c (wait_lwp): Add debugging printf.
3454 (linux_nat_wait_1): Ditto.
3455
f37f681c
PA
34562014-09-12 Pedro Alves <palves@redhat.com>
3457
3458 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3459 (create_and_insert_solib_event_breakpoint): New functions.
3460 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3461 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3462 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3463 (remove_dbx_link_breakpoint): Delete function.
3464 (insert_dbx_link_bpt_in_file): Use
3465 create_and_insert_solib_event_breakpoint instead of
3466 deprecated_insert_raw_breakpoint.
3467 (procfs_wait): Don't check whether we hit __dbx_link here.
3468 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3469 here.
3470 * solib-irix.c (base_breakpoint): Delete global.
3471 (disable_break): Delete function.
3472 (enable_break): Use create_solib_event_breakpoint
3473 instead of deprecated_insert_raw_breakpoint.
3474 (irix_solib_handle_event): New function.
3475 (irix_solib_create_inferior_hook): Don't run the target or disable
3476 the mapping-complete breakpoint here.
3477 (_initialize_irix_solib): Install irix_solib_handle_event as
3478 so_ops->handle_event hook.
3479
9d9bf2df
EBM
34802014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3481 Ulrich Weigand  <uweigand@de.ibm.com>
3482
3483 PR tdep/17379
3484 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3485 instead of read_memory_unsigned_integer.
3486
b006a80e
GB
34872014-09-12 Gary Benson <gbenson@redhat.com>
3488
3489 * nat/linux-waitpid.c: Include common-defs.h.
3490 [GDBSERVER]: Add FIXME comment.
3491 [!GDBSERVER]: Don't include defs.h or signal.h.
3492 (linux_debug) [!GDBSERVER]: Remove empty block.
3493
296b1496
GB
34942014-09-12 Gary Benson <gbenson@redhat.com>
3495
3496 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3497 Don't include defs.h or server.h.
3498
53f81362
GB
34992014-09-12 Gary Benson <gbenson@redhat.com>
3500
3501 * nat/linux-btrace.c: Include common-defs.h.
3502 Don't include defs.h, server.h or gdbthread.h.
3503 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3504
727605ca
GB
35052014-09-12 Gary Benson <gbenson@redhat.com>
3506
3507 * common/agent.c: Include common-defs.h.
3508 Don't include defs.h or server.h.
3509 * common/buffer.c: Likewise.
3510 * common/common-debug.c: Likewise.
3511 * common/common-utils.c: Likewise.
3512 * common/errors.c: Likewise.
3513 * common/filestuff.c: Likewise.
3514 * common/format.c: Likewise.
3515 * common/gdb_vecs.c: Likewise.
3516 * common/print-utils.c: Likewise.
3517 * common/ptid.c: Likewise.
3518 * common/rsp-low.c: Likewise.
3519 * common/signals.c: Likewise.
3520 * common/vec.c: Likewise.
3521 * common/xml-utils.c: Likewise.
3522 * nat/linux-osdata.c: Likewise.
3523 * nat/linux-procfs.c: Likewise.
3524 * nat/linux-ptrace.c: Likewise.
3525 * nat/mips-linux-watch.c: Likewise.
3526 * target/waitstatus.c: Likewise.
3527
361c8ade
GB
35282014-09-12 Tom Tromey <tromey@redhat.com>
3529 Gary Benson <gbenson@redhat.com>
3530
3531 * common/common-regcache.h: New file.
3532 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3533 * regcache.h: Include common-regcache.h.
3534 (regcache_read_pc): Don't declare.
3535 * regcache.c (get_thread_regcache_for_ptid): New function.
3536 * nat/linux-btrace.c: Don't include regcache.h.
3537 Include common-regcache.h.
3538 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3539
a01cbb49
TS
35402014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3541
3542 * regcache.h (struct regset): Declare.
3543
98880d46
PA
35442014-09-11 Pedro Alves <palves@redhat.com>
3545
3546 PR gdb/17347
3547 * main.c: Include "infrun.h".
3548 (catch_command_errors, catch_command_errors_const): Wait for the
3549 foreground command to complete.
3550 * top.c (maybe_wait_sync_command_done): New function, factored out
3551 from ...
3552 (maybe_wait_sync_command_done): ... here.
3553 * top.h (maybe_wait_sync_command_done): New declaration.
3554
bd9269f7
GB
35552014-09-11 Tom Tromey <tromey@redhat.com>
3556 Gary Benson <gbenson@redhat.com>
3557
3558 * common/symbol.h: New file.
3559 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3560 * minsyms.c (find_minimal_symbol_address): New function.
3561 * common/agent.c: Include common/symbol.h.
3562 [!GDBSERVER]: Don't include objfiles.h.
3563 (agent_look_up_symbols): Use find_minimal_symbol_address.
3564
f8c1d06b
GB
35652014-09-11 Gary Benson <gbenson@redhat.com>
3566
3567 * target/target.h (target_stop_ptid, target_continue_ptid):
3568 Declare.
3569 * target.c (target_stop_ptid, target_continue_ptid): New
3570 functions.
3571 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3572 (agent_run_command): Always use target_stop_ptid and
3573 target_continue_ptid.
3574
721ec300
GB
35752014-09-11 Tom Tromey <tromey@redhat.com>
3576 Gary Benson <gbenson@redhat.com>
3577
3578 * target/target.h: New file.
3579 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3580 * target.h: Include target/target.h.
3581 (target_read_memory, target_write_memory): Don't declare.
3582 * target.c (target_read_uint32): New function.
3583 * common/agent.c: Include target/target.h.
3584 [!GDBSERVER]: Don't include target.h.
3585 (helper_thread_id): Type changed to uint32_t.
3586 (agent_get_helper_thread_id): Use target_read_uint32.
3587 (agent_run_command): Always use target_read_memory and
3588 target_write_memory.
3589 (agent_capability): Type changed to uint32_t.
3590 (agent_capability_check): Use target_read_uint32.
3591
c5e92cca
GB
35922014-09-11 Gary Benson <gbenson@redhat.com>
3593
3594 * common/common-debug.h (show_debug_regs): Declare.
3595 * common/common-debug.c (show_debug_regs): Define.
3596 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3597 all uses with show_debug_regs. Replace all uses that considered
3598 debug_hw_points as a multi-value integer with straight boolean
3599 uses.
3600 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3601 with show_debug_regs.
3602 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3603 all uses with show_debug_regs.
3604 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3605 uses with show_debug_regs.
3606
eeef931a
UW
36072014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3608
3609 * findvar.c (address_from_register): Handle targets requiring
3610 a special conversion routine even for plain pointer types.
3611
8efa9855
UW
36122014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3613
3614 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3615 (store_register): Do not call exec_one_dummy_insn.
3616
eb479039
JB
36172014-09-10 Joel Brobecker <brobecker@adacore.com>
3618
3619 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3620 dereference it first. Use value_enclosing_type instead of
3621 value_type.
3622 (ada_array_length): Likewise.
3623
deede10c
JB
36242014-09-10 Joel Brobecker <brobecker@adacore.com>
3625
3626 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3627 Adjust function implementation and documentation accordingly.
3628 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3629 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3630 Update call to ada_value_ptr_subscript.
3631
7828a5f5
JB
36322014-09-10 Joel Brobecker <brobecker@adacore.com>
3633
3634 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3635 instead of VAL's type.
3636
35782f14
JB
36372014-09-10 Joel Brobecker <brobecker@adacore.com>
3638
3639 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3640
d342a0da
DE
36412014-09-09 Doug Evans <xdje42@gmail.com>
3642
3643 PR guile/17367
3644 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3645 last parameter to pkg-config, not first.
3646 * configure.ac: Pass --with-guile provided pkg-config path to
3647 GDB_GUILE_PROGRAM_NAMES.
3648 * configure: Regenerate.
3649
b4a3d263
GKB
36502014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3651
3652 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3653 Bertazi".
3654
6e466374
MR
36552014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3656
3657 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3658 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3659 the list of sections determining GDB_OSABI_IRIX.
3660
a1ada89a
JH
36612014-09-09 James Hogan <james.hogan@imgtec.com>
3662
3663 * MAINTAINERS (Write After Approval): Add "James Hogan".
3664
86db008d
JH
36652014-09-09 James Hogan <james.hogan@imgtec.com>
3666
3667 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3668
72fde3df
JB
36692014-09-09 Joel Brobecker <brobecker@adacore.com>
3670
3671 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3672
92d8d229
DE
36732014-09-08 Doug Evans <xdje42@gmail.com>
3674
3675 PR 17247
3676 * guile.c: #include <signal.h>.
3677 (_initialize_guile): Block SIGCHLD while initializing Guile.
3678
3679 Replaces the following, which is reverted.
3680
3681 2014-07-26 Doug Evans <xdje42@gmail.com>
3682
3683 PR 17185
3684 * configure.ac: Add check for header gc/gc.h.
3685 Add check for function setenv.
3686 * configure: Regenerate.
3687 * config.in: Regenerate.
3688 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3689
d81412aa
DE
36902014-09-08 Doug Evans <xdje42@gmail.com>
3691
3692 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3693 with named constant. Fix style of pointer comparison.
3694 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3695
a9f116cb
GKB
36962014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3697
3698 PR gdb/17035
3699 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3700 decide whether we display the command on "show user".
3701 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3702 printing command name.
3703 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3704 * cli/cli-decode.c (cli_user_command_p): Create helper function
3705 to verify whether cmd_list_element is a user-defined command.
3706
c75bd3a2
JK
37072014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3708
3709 PR python/17355
3710 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3711 Fix goto out of TRY_CATCH.
3712
faa42425 37132014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3714 Tom Tromey <tromey@redhat.com>
faa42425
DE
3715
3716 PR 15276
3717 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3718 $_any_caller_matches.
3719 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3720 * python/lib/gdb/function/caller_is.py: New file.
3721
0d41ba00
DE
37222014-09-06 Doug Evans <xdje42@gmail.com>
3723
3724 * infcmd.c (program_info): Fix typo.
3725
474ca4f6
SDJ
37262014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3727
3728 PR gdb/17235
3729 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3730 'number'. New variable 'has_digit'. Rewrite code to deal with
3731 subexpressions on SDT probes.
3732
ebf13736
PA
37332014-09-04 Pedro Alves <palves@redhat.com>
3734
3735 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3736 the input is only one character long.
3737
eb0b0463
SDJ
37382014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3739
3740 PR fortran/17237
3741 * f-valprint.c (f_val_print): Specify the correct print option to
3742 use when printing integer values.
3743
5ee44bfa
GB
37442014-09-04 Gary Benson <gbenson@redhat.com>
3745
3746 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3747 Remove code to cope with LWPs wrapped as PIDs.
3748 Add assertions to ensure no wrapped LWPs are passed.
3749
4875ffdb
PA
37502014-09-04 Pedro Alves <palves@redhat.com>
3751
3752 * value.c (value_ranges_copy_adjusted): New function, factored out
3753 from ...
3754 (value_contents_copy_raw): ... here.
3755 (unpack_value_bits_as_long_1): Rename back to ...
3756 (unpack_bits_as_long): ... this. Remove 'original_value' and
3757 'result' parameters. Change return type to LONGEST.
3758 (unpack_value_bits_as_long): Delete.
3759 (unpack_value_field_as_long_1): Delete.
3760 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3761 (unpack_value_bitfield): New function.
3762 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3763 (value_fetch_lazy): Use unpack_value_bitfield.
3764 * value.h (unpack_value_bits_as_long): Delete declaration.
3765
5f3b99cf
SS
37662014-09-03 Sasha Smundak <asmundak@google.com>
3767
3768 * python/py-frame.c (frapy_read_register): New function.
3769
ac740bc7
JH
37702014-09-03 James Hogan <james.hogan@imgtec.com>
3771
3772 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3773 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3774
7d793aa9
SDJ
37752014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3776
3777 PR python/16699
3778 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3779 function.
3780 (add_cmd): Set "completer_handle_brkchars" to NULL.
3781 * cli/cli-decode.h (struct cmd_list_element)
3782 <completer_handle_brkchars>: New field.
3783 * command.h (completer_ftype_void): New typedef.
3784 (set_cmd_completer_handle_brkchars): New prototype.
3785 * completer.c (set_gdb_completion_word_break_characters): New
3786 function.
3787 (complete_line_internal): Call "completer_handle_brkchars"
3788 callback from command.
3789 * completer.h: Include "command.h".
3790 (set_gdb_completion_word_break_characters): New prototype.
3791 * python/py-cmd.c (cmdpy_completer_helper): New function.
3792 (cmdpy_completer_handle_brkchars): New function.
3793 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3794 (cmdpy_init): Set completer_handle_brkchars to
3795 cmdpy_completer_handle_brkchars.
3796
97ea6506
GB
37972014-09-03 Gary Benson <gbenson@redhat.com>
3798
3799 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3800 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3801 Loop conditions changed to equivalent form.
3802 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3803 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3804 ALL_DEBUG_ADDRESS_REGISTERS.
3805
d1437815
JB
38062014-09-03 Joel Brobecker <brobecker@adacore.com>
3807
3808 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3809 description fix.
3810
9b94fcf1
DE
38112014-09-02 Doug Evans <dje@google.com>
3812
3813 * typeprint.c (find_global_typedef): Fix comment.
3814
df7e5265
GB
38152014-09-02 Gary Benson <gbenson@redhat.com>
3816
3817 * i386-nat.h: Renamed as...
3818 * x86-nat.h: New file. All type, function and variable name
3819 prefixes changed from "i386_" to "x86_". All references updated.
3820 * i386-nat.c: Renamed as...
3821 * x86-nat.c: New file. All type, function and variable name
3822 prefixes changed from "i386_" to "x86_". All references updated.
3823 * common/i386-xstate.h: Renamed as...
3824 * common/x86-xstate.h: New file. All type, function and variable
3825 name prefixes changed from "i386_" to "x86_". All references
3826 updated.
3827 * nat/i386-cpuid.h: Renamed as...
3828 * nat/x86-cpuid.h: New file. All type, function and variable name
3829 prefixes changed from "i386_" to "x86_". All references updated.
3830 * nat/i386-gcc-cpuid.h: Renamed as...
3831 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3832 name prefixes changed from "i386_" to "x86_". All references
3833 updated.
3834 * nat/i386-dregs.h: Renamed as...
3835 * nat/x86-dregs.h: New file. All type, function and variable name
3836 prefixes changed from "i386_" to "x86_". All references updated.
3837 * nat/i386-dregs.c: Renamed as...
3838 * nat/x86-dregs.c: New file. All type, function and variable name
3839 prefixes changed from "i386_" to "x86_". All references updated.
3840
1c3569d4
MR
38412014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3842
3843 * varobj.c (_initialize_varobj): Move to the end of file.
3844
ff55e1b5
GB
38452014-08-29 Gary Benson <gbenson@redhat.com>
3846
3847 * common/common-exceptions.h: New file.
3848 * common/common-exceptions.c: Likewise.
3849 * Makefile.in (SFILES): Add common/common-exceptions.c.
3850 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3851 (COMMON_OBS): Add common-exceptions.o.
3852 (common-exceptions.o): New rule.
3853 * exceptions.h (common-exceptions.h): Include.
3854 (gdb_setjmp.h): Do not include.
3855 (return_reason): Moved to common-exceptions.h.
3856 (enum return_reason): Likewise.
3857 (RETURN_MASK): Likewise.
3858 (typedef return_mask): Likewise.
3859 (enum errors): Likewise.
3860 (struct gdb_exception): Likewise.
3861 (exceptions_state_mc_init): Likewise.
3862 (exceptions_state_mc_action_iter): Likewise.
3863 (exceptions_state_mc_action_iter_1): Likewise.
3864 (TRY_CATCH): Likewise.
3865 (throw_exception): Likewise.
3866 (throw_verror): Likewise.
3867 (throw_vquit): Likewise.
3868 (throw_error): Likewise.
3869 (throw_quit): Likewise.
3870 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3871 (enum catcher_action): Likewise.
3872 (struct catcher): Likewise.
3873 (current_catcher): Likewise.
3874 (catcher_list_size): Likewise.
3875 (exceptions_state_mc_init): Likewise.
3876 (catcher_pop): Likewise.
3877 (exceptions_state_mc): Likewise.
3878 (exceptions_state_mc_action_iter): Likewise.
3879 (exceptions_state_mc_action_iter_1): Likewise.
3880 (throw_exception): Likewise.
3881 (exception_messages): Likewise.
3882 (exception_messages_size): Likewise.
3883 (throw_it): Likewise.
3884 (throw_verror): Likewise.
3885 (throw_vquit): Likewise.
3886 (throw_error): Likewise.
3887 (throw_quit): Likewise.
3888 (prepare_to_throw_exception): New function.
3889
e9bcb658
GB
38902014-08-29 Gary Benson <gbenson@redhat.com>
3891
3892 * common/gdb_setjmp.h: New file.
3893 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3894 * configure.ac: Move sigsetjmp check...
3895 * common/common.m4: ...here.
3896 * configure: Regenerate.
3897 * cp-support.c (SIGJMP_BUF): Delete.
3898 (SIGSETJMP): Likewise.
3899 (SIGLONGJMP): Likewise.
3900 * exceptions.h (gdb_setjmp.h): Include.
3901 (setjmp.h): Do not include.
3902 (EXCEPTIONS_SIGJMP_BUF): Delete.
3903 (EXCEPTIONS_SIGSETJMP): Likewise.
3904 (EXCEPTIONS_SIGLONGJMP): Likewise.
3905 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3906 from gdb_setjmp.h.
3907 * exceptions.c: Likewise.
3908
e3180625
GB
39092014-08-29 Gary Benson <gbenson@redhat.com>
3910
3911 * cleanups.h: Moved to...
3912 * common/cleanups.h: New file.
3913 * cleanups.c: Moved to...
3914 * common/cleanups.c: New file. Include common-defs.h and
3915 cleanups.h. Do not include defs.h.
3916 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3917 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3918 (cleanups.o): New rule.
3919
e3d6ba5d
GB
39202014-08-29 Gary Benson <gbenson@redhat.com>
3921
3922 * common/errors.h (internal_warning): New declaration.
3923 (internal_vwarning): Likewise.
3924 * common/errors.c (internal_warning): New function.
3925 * utils.h (internal_warning): Don't declare.
3926 (internal_vwarning): Likewise.
3927 * utils.c (internal_warning): Removed.
3928
075c7033
GB
39292014-08-29 Gary Benson <gbenson@redhat.com>
3930
3931 * main.c (captured_main): Use warning during startup.
3932 Prefix startup warning messages with command name.
3933
91b35fd0
GB
39342014-08-29 Gary Benson <gbenson@redhat.com>
3935
3936 * main.c (captured_main): Handle usage errors with error.
3937
b1ec390e
GB
39382014-08-29 Gary Benson <gbenson@redhat.com>
3939
3940 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3941 exit pair with a call to error. Wrap the message with _().
3942
fd0ef3dd
GB
39432014-08-29 Gary Benson <gbenson@redhat.com>
3944
3945 * main.c (captured_main): Replace a fprintf/exit
3946 pair with a call to error. Wrap the message with _().
3947
e0e6bcab
GB
39482014-08-29 Gary Benson <gbenson@redhat.com>
3949
3950 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3951 pairs with calls to error. Wrap the message with _().
3952
0d2f5c07
GB
39532014-08-29 Gary Benson <gbenson@redhat.com>
3954
3955 * utils.c (vwarning): Protect calls to target_terminal_ours
3956 and wrap_here.
3957
5df43998
GB
39582014-08-29 Gary Benson <gbenson@redhat.com>
3959
3960 * exceptions.c (print_flush): Protect calls to
3961 target_terminal_ours and wrap_here.
3962
2437fd32
GB
39632014-08-29 Gary Benson <gbenson@redhat.com>
3964
3965 * utils.h (filtered_printing_initialized): New declaration.
3966 * utils.c (abort_with_message): New function.
3967 (internal_vproblem): Use abort_with_message for first level
3968 recursive internal problems, and if gdb_stderr is not set up.
3969 Protect calls to target_terminal_ours, begin_line and query.
3970
f1f58506
DE
39712014-08-28 Doug Evans <dje@google.com>
3972
3973 * symtab.c (in_prologue): Move definition to better spot.
3974 (skip_prologue_using_sal): Ditto.
3975
aab2f208
DE
39762014-08-28 Doug Evans <dje@google.com>
3977
3978 * symtab.c (find_function_start_sal): Move definition to better spot.
3979
6b65d1b6
YQ
39802014-08-28 Yao Qi <yao@codesourcery.com>
3981
3982 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3983 found_stack_adjust in forward scan. Remove condition check
3984 on found_stack_adjust which is always true. Indent the code.
3985
a1b34d15
YQ
39862014-08-28 Yao Qi <yao@codesourcery.com>
3987
3988 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3989 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3990 (dwarf_decode_lines): Remove argument
3991 want_line_info. Remove condition check on want_line_info.
3992 Callers update.
3993
d5962de5
DE
39942014-08-27 Doug Evans <dje@google.com>
3995
3996 * dwarf2read.c (dwarf_record_line): Fix typo.
3997
9b139002
SDJ
39982014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3999
4000 * target.h (struct target_ops::to_terminal_save_ours): Remove
4001 declaration.
4002 (target_terminal_save_ours): Remove macro.
4003 * target-delegates.c: Regenerate.
4004 * inf-child.c (inf_child_target): Don't set the nonexistent
4005 field to_terminal_save_ours.
4006 * inferior.h (child_terminal_save_ours): Remove declaration.
4007 * terminal.h (gdb_save_tty_state): New declaration.
4008 * inflow.c (child_terminal_save_ours): Rename to ...
4009 (gdb_save_tty_state): ... this.
4010 * tui/tui.c: Include terminal.h.
4011 (tui_enable): Use gdb_save_tty_state instead of
4012 target_terminal_save_ours.
4013 (tui_disable): Likewise.
4014
9debeba0
DE
40152014-08-25 Doug Evans <dje@google.com>
4016
4017 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4018 Pass NULL instead of 0 for context pointer.
4019
428fc5fc
YQ
40202014-08-25 Yao Qi <yao@codesourcery.com>
4021
4022 * dwarf2read.c: Fix grammatical error.
4023
cdc07690
YQ
40242014-08-24 Yao Qi <yao@codesourcery.com>
4025
4026 * dwarf2read.c (scan_partial_symbols): Update comments.
4027 Rename argument 'need_pc' with 'set_addrmap'.
4028 (add_partial_namespace): Rename argument 'need_pc' with
4029 'set_addrmap'.
4030 (add_partial_module): Likewise.
4031 (add_partial_subprogram): Likewise. Update comments.
4032 (dwarf2_name): Fix typo.
4033
a05a36a5
DE
40342014-08-22 Doug Evans <dje@google.com>
4035
4036 PR 17276
4037 * dwarf2read.c (dwarf_record_line_p): New function.
4038 (dwarf_decode_lines_1): Ignore subsequent line number entries
4039 for the same line if any entry had a non-zero discriminator.
4040
252a6764
DE
40412014-08-22 Doug Evans <dje@google.com>
4042
4043 * buildsym.h (record_line_ftype): New typedef.
4044 (record_line): Use it.
4045 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4046 (dwarf_decode_lines_1): Call them.
4047
510db052
YQ
40482014-08-22 Yao Qi <yao@codesourcery.com>
4049
4050 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4051 (ctf_end): Remove code.
4052
22fd09ae
JK
40532014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4056 (linux_make_corefile_notes): call update_thread_list, protected against
4057 exceptions.
4058
656e8868
PA
40592014-08-21 Pedro Alves <palves@redhat.com>
4060
4061 * infcmd.c (attach_command): Remove comment.
4062
de589d04
WN
40632014-08-21 Bin Cheng <bin.cheng@arm.com>
4064
4065 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4066 unsigned LONGEST to ULONGEST.
4067
2a31c623
PA
40682014-08-20 Pedro Alves <palves@redhat.com>
4069
4070 * Makefile.in (check-read1): New rule.
4071
d36430db
JB
40722014-08-20 Joel Brobecker <brobecker@adacore.com>
4073
4074 * value.c (value_from_contents_and_address): Strip resolved_type's
4075 typedef layers before checking its TYPE_DATA_LOCATION.
4076
000339af
PA
40772014-08-20 Pedro Alves <palves@redhat.com>
4078
4079 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4080
5f52445b
YQ
40812014-08-20 Yao Qi <yao@codesourcery.com>
4082
4083 * amd64-tdep.c (amd64_classify): Add a blank line after the
4084 example. Move "*/" to a new line.
4085 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4086 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4087 * dwarf2read.c (psymtab_include_file_name): Likewise.
4088
9a0dc9e3
PA
40892014-08-19 Andrew Burgess <aburgess@broadcom.com>
4090 Pedro Alves <palves@redhat.com>
4091
4092 PR symtab/14604
4093 PR symtab/14605
4094 * ada-lang.c (coerce_unspec_val_to_type): Use
4095 value_contents_copy_raw.
4096 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4097 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4098 * cp-valprint.c (cp_print_value_fields): Let the common printing
4099 code handle optimized out values.
4100 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4101 * d-valprint.c (dynamic_array_type): Use
4102 value_bits_any_optimized_out.
4103 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4104 check_any_valid fields.
4105 (check_pieced_value_bits): Delete and inline ...
4106 (check_pieced_synthetic_pointer): ... here.
4107 (check_pieced_value_validity): Delete.
4108 (check_pieced_value_invalid): Delete.
4109 (pieced_value_funcs): Remove check_validity and check_any_valid
4110 fields.
4111 (read_pieced_value): Use mark_value_bits_optimized_out.
4112 (write_pieced_value): Switch to use
4113 mark_value_bytes_optimized_out.
4114 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4115 of assuming the whole value is optimized out.
4116 * findvar.c (read_frame_register_value): Remove special handling
4117 of optimized out registers.
4118 (value_from_register): Use mark_value_bytes_optimized_out.
4119 * frame-unwind.c (frame_unwind_got_optimized): Use
4120 mark_value_bytes_optimized_out.
4121 * jv-valprint.c (java_value_print): Adjust.
4122 (java_print_value_fields): Let the common printing code handle
4123 optimized out values.
4124 * mips-tdep.c (mips_print_register): Remove special handling of
4125 optimized out registers.
4126 * opencl-lang.c (lval_func_check_validity): Delete.
4127 (lval_func_check_any_valid): Delete.
4128 (opencl_value_funcs): Remove check_validity and check_any_valid
4129 fields.
4130 * p-valprint.c (pascal_object_print_value_fields): Let the common
4131 printing code handle optimized out values.
4132 * stack.c (read_frame_arg): Remove special handling of optimized
4133 out values. Fetch both VAL and ENTRYVAL before comparing
4134 contents. Adjust to value_available_contents_eq rename.
4135 * valprint.c (valprint_check_validity)
4136 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4137 (val_print_array_elements): Adjust.
4138 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4139 (value_bits_any_optimized_out): New function.
4140 (value_entirely_covered_by_range_vector): New function, factored
4141 out from value_entirely_unavailable.
4142 (value_entirely_unavailable): Reimplement.
4143 (value_entirely_optimized_out): New function.
4144 (insert_into_bit_range_vector): New function, factored out from
4145 mark_value_bits_unavailable.
4146 (mark_value_bits_unavailable): Reimplement.
4147 (struct ranges_and_idx): New struct.
4148 (find_first_range_overlap_and_match): New function, factored out
4149 from value_available_contents_bits_eq.
4150 (value_available_contents_bits_eq): Rename to ...
4151 (value_contents_bits_eq): ... this. Check both unavailable
4152 contents and optimized out contents.
4153 (value_available_contents_eq): Rename to ...
4154 (value_contents_eq): ... this.
4155 (allocate_value_lazy): Remove reference to the old optimized_out
4156 boolean.
4157 (allocate_optimized_out_value): Use
4158 mark_value_bytes_optimized_out.
4159 (require_not_optimized_out): Adjust to check whether the
4160 optimized_out vec is empty.
4161 (ranges_copy_adjusted): New function, factored out from
4162 value_contents_copy_raw.
4163 (value_contents_copy_raw): Also copy the optimized out ranges.
4164 Assert the destination ranges aren't optimized out.
4165 (value_contents_copy): Update comment, remove call to
4166 require_not_optimized_out.
4167 (value_contents_equal): Adjust to check whether the optimized_out
4168 vec is empty.
4169 (set_value_optimized_out, value_optimized_out_const): Delete.
4170 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4171 New functions.
4172 (value_entirely_optimized_out, value_bits_valid): Delete.
4173 (value_copy): Take a VEC copy of the 'optimized_out' field.
4174 (value_primitive_field): Remove special handling of optimized out.
4175 (value_fetch_lazy): Assert that lazy values have no unavailable
4176 regions. Use value_bits_any_optimized_out. Remove some special
4177 handling for optimized out values.
4178 * value.h: Add intro comment about <optimized out> and
4179 <unavailable>.
4180 (struct lval_funcs): Remove check_validity and check_any_valid
4181 fields.
4182 (set_value_optimized_out, value_optimized_out_const): Remove.
4183 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4184 New declarations.
4185 (value_bits_any_optimized_out): New declaration.
4186 (value_bits_valid): Delete declaration.
4187 (value_available_contents_eq): Rename to ...
4188 (value_contents_eq): ... this, and extend comments.
4189
6694c411
JK
41902014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4191
4192 Fix -fsanitize=address on unreadable inferior strings.
4193 * valprint.c (val_print_string): Fix access before BUFFER.
4194
89a1c21a
SM
41952014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4196
4197 * target.c (target_struct_size): Remove.
4198 (target_struct_allocsize): Remove.
4199 (DEFAULT_ALLOCSIZE): Remove.
4200 (target_ops_p): New typedef.
4201 (DEF_VEC_P (target_ops_p)): New vector type.
4202 (target_structs): Change type to VEC (target_ops_p).
4203 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4204 (find_default_run_target): Rewrite for loop following changes to
4205 target_structs.
4206
cb417230
JB
42072014-08-19 Joel Brobecker <brobecker@adacore.com>
4208
4209 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4210 Adjust code accordingly. Adjust function description comment.
4211
817e0957
YQ
42122014-08-19 Yao Qi <yao@codesourcery.com>
4213
4214 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4215 types.
4216
2974be62
AM
42172014-08-19 Alan Modra <amodra@gmail.com>
4218
4219 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4220 * config.in: Regenerate.
4221 * configure: Regenerate.
4222
34abf635
GB
42232014-08-19 Tom Tromey <tromey@redhat.com>
4224 Gary Benson <gbenson@redhat.com>
4225
4226 * common/common-debug.h: New file.
4227 * common/common-debug.c: Likewise.
4228 * debug.c: Likewise.
4229 * Makefile.in (SFILES): Add common/common-debug.c.
4230 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4231 (COMMON_OBS): Add common-debug.o and debug.o.
4232 (common-debug.o): New rule.
4233 * common/common-defs.h: Include common-debug.h.
4234 * common/agent.c (debug_agent_printf): New function.
4235 (DEBUG_AGENT): Redefine.
4236 * nat/i386-dregs.c (debug_printf): Undefine.
4237
f6e94d78
GB
42382014-08-19 Gary Benson <gbenson@redhat.com>
4239
4240 * common/common-defs.h: Include print-utils.h.
4241 * utils.h: Do not include print-utils.h.
4242
9239eeab
GB
42432014-08-19 Tom Tromey <tromey@redhat.com>
4244 Gary Benson <gbenson@redhat.com>
4245
4246 * common/common-types.h: New file.
4247 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4248 * common/common-defs.h: Include common-types.h.
4249 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4250 (ULONGEST): Remove.
4251
ef87c8bb
GB
42522014-08-19 Tom Tromey <tromey@redhat.com>
4253 Gary Benson <gbenson@redhat.com>
4254
4255 * common/errors.h: New file.
4256 * common/errors.c: Likewise.
4257 * Makefile.in (SFILES): Add common/errors.c.
4258 (HFILES_NO_SRCDIR): Add common/errors.h.
4259 (COMMON_OBS): Add errors.o.
4260 (errors.o): New rule.
4261 * common/common-defs.h: Include errors.h.
4262 * utils.h (perror_with_name, error, verror, warning, vwarning):
4263 Don't declare.
4264 * common/common-utils.h: (malloc_failure, internal_error):
4265 Likewise.
4266
196a707b
GB
42672014-08-19 Gary Benson <gbenson@redhat.com>
4268
4269 * utils.c (internal_vproblem): Always print the message.
4270
ded4fc8f
DE
42712014-08-18 Doug Evans <dje@google.com>
4272
4273 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4274
950c97d8
JB
42752014-08-18 Joel Brobecker <brobecker@adacore.com>
4276
4277 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4278 Return 0 if TYPE is dynamic.
4279 (print_range): Add handling of dynamic ranges.
4280
3cdcd0ce
JB
42812014-08-18 Keven Boell <keven.boell@intel.com>
4282 Joel Brobecker <brobecker@adacore.com>
4283
4284 * gdbtypes.h (struct main_type): Add field "data_location".
4285 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4286 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4287 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4288 a dynamic data location.
4289 (resolve_dynamic_type): Add DW_AT_data_location handling.
4290 (copy_recursive, copy_type): Copy the data_location information
4291 when present.
4292 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4293 * value.c (value_from_contents_and_address): Add
4294 DW_AT_data_location handling.
4295
08412b07
JB
42962014-08-18 Keven Boell <keven.boell@intel.com>
4297 Joel Brobecker <brobecker@adacore.com>
4298
4299 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4300 field "get_object_address".
4301 * dwarf2expr.c (execute_stack_op): Add handling for
4302 DW_OP_push_object_address.
4303 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4304 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4305 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4306 (dwarf_expr_get_obj_addr): New function.
4307 (dwarf_expr_ctx_funcs): Add get_object_address field.
4308 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4309 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4310 (dwarf2_evaluate_property): Add parameter "address". Use it.
4311 (needs_get_obj_addr): New function.
4312 (needs_frame_ctx_funcs): Add get_object_address field.
4313 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4314 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4315 (resolve_dynamic_array): Likewise.
4316
84754697
JB
43172014-08-18 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4320 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4321 fixed value for records and unions for which some GNAT encodings
4322 are present.
4323
da5c522f
JB
43242014-08-18 Joel Brobecker <brobecker@adacore.com>
4325
4326 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4327 rewrite to avoid "else if" and "else" constructs. Should be
4328 a no-op in practice.
4329
0d72a7c3
JB
43302014-08-18 Joel Brobecker <brobecker@adacore.com>
4331
4332 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4333 of lexical block.
4334
e66d4446
SC
43352014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4336
4337 PR c++/17132
4338 * eval.c: Update all calls to find_overload_match.
4339 * valarith.c: Likewise.
4340 (value_user_defined_cpp_op, value_user_defined_op): New
4341 argument NOSIDE. Update all callers.
4342 * valops.c (find_overload_match): New argument NOSIDE.
4343 * value.h (find_overload_match): Update signature.
4344
940df408
SC
43452014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4346
4347 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4348 'items' methods instead of 'iteritems' method on dictionaries.
4349
699ca60a
DE
43502014-08-15 Doug Evans <dje@google.com>
4351
4352 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4353 closer to use.
4354
37780ee5
DE
43552014-08-15 Doug Evans <dje@google.com>
4356
4357 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4358
0ad93d4f
DE
43592014-08-15 Doug Evans <dje@google.com>
4360
4361 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4362
20d8c372
DE
43632014-08-15 Doug Evans <dje@google.com>
4364
4365 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4366 unused.
4367
cb039ba4
EZ
43682014-08-15 Eli Zaretskii <eliz@gnu.org>
4369
4370 * dcache.h: Include target.h, to avoid compile time warnings.
4371
eb7a547a
JB
43722014-08-15 Joel Brobecker <brobecker@adacore.com>
4373
4374 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4375 frame_info" partial declaration.
4376 * gdbarch.h: Regenerate.
4377
783cecc8
YQ
43782014-08-15 Yao Qi <yao@codesourcery.com>
4379
4380 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4381 Add parameter 'decode_for_pst_p'. Callers update.
4382
65c749e7
YQ
43832014-08-13 Yao Qi <yao@codesourcery.com>
4384
4385 PR build/17104
4386 * configure.ac: Use local variable 'pos'.
4387 * configure: Regenerated.
4388
d769e349
DE
43892014-08-11 Doug Evans <dje@google.com>
4390
4391 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4392 message, it is redundant with "Reading symbols from ..." message.
4393
24f1235e
DE
43942014-08-10 Doug Evans <xdje42@gmail.com>
4395
4396 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4397
dcd2e6ef
YQ
43982014-08-09 Yao Qi <yao@codesourcery.com>
4399
4400 PR remote/9053
4401 * remote.c (remote_xfer_partial): Remove dead code.
4402
070bdf0b
AA
44032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4404
4405 * ia64-linux-tdep.c: Include "regset.h".
4406 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4407 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4408 (ia64_linux_supply_fpregset): New function.
4409 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4410 (ia64_linux_regset_from_core_section): New function.
4411 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4412 method.
4413
08f9f542
AA
44142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4415
4416 * m68klinux-tdep.c: Include "regset.h".
4417 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4418 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4419 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4420 (m68k_linux_regset_from_core_section): New function.
4421 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4422 method.
4423
8f1cee41
AA
44242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4425
4426 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4427 function. Move logic to...
4428 (tilegx_linux_regmap): ... this new register map.
4429 (tilegx_linux_regset): Refer to register map, replace supply
4430 method by regcache_supply_regset, and add collect method.
4431 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4432 TILEGX_FIRST_EASY_REGNUM.
4433
c5741217
AA
44342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4435
4436 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4437 that calls regcache_supply_regset and handles the EPC register
4438 separately. Move main logic to...
4439 (score7_linux_gregmap): ... this new register map.
4440 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4441 (score7_linux_gregset): Refer to register map. Add collect method.
4442 (score7_linux_regset_from_core_section): Replace
4443 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4444 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4445 (struct regset): Delete unused forward declaraction.
4446 (struct pt_regs): Delete structure definition.
4447 (elf_gregset_t): Delete typedef.
4448
81580573
AA
44492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4450
4451 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4452 (nios2_core_regset): Add collect method.
4453
ba199d7d
AA
44542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4455
4456 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4457 platform-independent and don't write to read-only input buffer.
4458 (m32r_linux_collect_gregset): New function.
4459 (m32r_linux_gregset): Add collect method.
4460
0006a9da
AA
44612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4462
4463 * hppa-linux-tdep.c (greg_map): Rename to...
4464 (hppa_linux_gregmap): ... this. Also convert to
4465 regcache_map_entry format.
4466 (hppa_linux_supply_regset): Delete function.
4467 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4468 (hppa_linux_fpregmap): ... this new register map.
4469 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4470 register map, replace supply method by regcache_supply_regset, and
4471 add collect method regcache_collect_regset.
4472
901e1b23
AA
44732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4474
4475 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4476 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4477 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4478 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4479 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4480 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4481 (frv_linux_supply_gregset): Replace main logic by call to
4482 regcache_supply_regset, but keep clearing gr32-gr63.
4483 (frv_linux_supply_fpregset): Delete function.
4484 (frv_linux_gregset): Refer to appropriate register map and add
4485 regcache_collect_regset as the collect method.
4486 (frv_linux_fpregset): Likewise. Also exchange the supply method
4487 by regcache_supply_regset.
4488
1d6e7555
AA
44892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4490
4491 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4492 by call to alpha_supply_int_regs.
4493 (alpha_linux_collect_gregset): New function.
4494 (alpha_linux_supply_fpregset): Replace logic by call to
4495 alpha_supply_fp_regs.
4496 (alpha_linux_collect_fpregset): New function.
4497 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4498
d4d793bf
AA
44992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4500
4501 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4502 by call to regcache_collect_regset.
4503 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4504 instead of aarch64_linux_supply_gregset/_fpregset.
4505 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4506 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4507 header file instead.
4508 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4509 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4510 functions. Move logic to ...
4511 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4512 register maps.
4513 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4514 refer to new register maps, replace *_regset_from_core by
4515 regcache_supply_regset, and also use regcache_collect_regset.
4516 * aarch64-linux-tdep.h: Include "regset.h".
4517 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4518 Delete prototypes.
4519 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4520 macros, moved from C source file.
4521 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4522 variable declarations.
4523
99b7da5d
AA
45242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4525
4526 * s390-linux-nat.c: Include "regset.h".
4527 (regmap_gregset): Delete macro.
4528 (s390_64_regmap_gregset): New register map for
4529 regcache_supply/_collect_regset.
4530 (s390_64_gregset): New regset.
4531 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4532 (regmap_fpregset): Delete macro.
4533 (s390_native_supply, s390_native_collect): Delete functions.
4534 (supply_gregset, fill_gregset): Replace s390-specific regmap
4535 handling by a call to regcache_supply/_collect_regset.
4536 (supply_fpregset, fill_fpregset): Call regcache_supply/
4537 _collect_regset instead of s390_native_supply/_collect.
4538 (fetch_regset, store_regset): Likewise. Also change the last
4539 parameter to a regset instead of a regmap.
4540 (s390_linux_fetch_inferior_registers)
4541 (390_linux_store_inferior_registers): Adjust last parameter in
4542 calls to fetch_regset and store_regset.
4543 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4544 (s390_gregmap): ... this. Also make static const and convert to
4545 regcache_map_entry format.
4546 (s390x_regmap_gregset): Delete.
4547 (s390_regmap_fpregset): Rename to...
4548 (s390_fpregmap): ... this. Make static const and convert to
4549 regcache_map_entry format.
4550 (s390_regmap_upper, s390_regmap_last_break)
4551 (s390x_regmap_last_break, s390_regmap_system_call)
4552 (s390_regmap_tdb): Likewise.
4553 (s390_supply_regset, s390_collect_regset): Remove functions.
4554 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4555 s390_supply_regset.
4556 (s390_gregset, s390_fpregset, s390_upper_regset)
4557 (s390_last_break_regset, s390x_last_break_regset)
4558 (s390_system_call_regset, s390_tdb_regset): Make global and
4559 replace s390_supply/_collect_regset by regcache_supply/
4560 _collect_regset.
4561 (s390x_gregset): Delete.
4562 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4563 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4564 (s390_regmap_fpregset, s390_regmap_last_break)
4565 (s390x_regmap_last_break, s390_regmap_system_call)
4566 (s390_regmap_tdb): Delete global variable declarations.
4567 (s390_gregset, s390_fpregset, s390_last_break_regset)
4568 (s390x_last_break_regset, s390_system_call_regset)
4569 (s390_tdb_regset): New global variable declarations.
4570
0b309272
AA
45712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4572
4573 * regcache.c: Include "regset.h".
4574 (regcache_transfer_regset): New local function.
4575 (regcache_supply_regset, regcache_collect_regset): New functions.
4576 * regcache.h (struct regcache_map_entry): New structure.
4577 (REGCACHE_MAP_SKIP): New enum value.
4578 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4579
7fefa8d7
AA
45802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4581
4582 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4583 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4584 (ppc_linux_collect_gregset ): Likewise.
4585 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4586 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4587 (ppc_collect_vrregset): Likewise.
4588 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4589 Likewise.
4590
96c4f946
YQ
45912014-08-07 Yao Qi <yao@codesourcery.com>
4592
4593 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4594 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4595 * remote.c (remote_read_bytes): Likewise.
4596
fffbe6a8
YQ
45972014-08-07 Yao Qi <yao@codesourcery.com>
4598
4599 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4600
5ee8a82c
YQ
46012014-08-07 Yao Qi <yao@codesourcery.com>
4602
4603 PR remote/17230
4604 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4605 TARGET_XFER_OK instead of 0.
4606
bb974a24
GB
46072014-08-07 Gary Benson <gbenson@redhat.com>
4608
4609 * common/common-defs.h: Include errno.h.
4610 * defs.h: Do not include errno.h.
4611 * ada-typeprint.c: Likewise.
4612 * c-typeprint.c: Likewise.
4613 * core-regset.c: Likewise.
4614 * corefile.c: Likewise.
4615 * corelow.c: Likewise.
4616 * event-loop.c: Likewise.
4617 * f-typeprint.c: Likewise.
4618 * gnu-nat.c: Likewise.
4619 * go32-nat.c: Likewise.
4620 * i386gnu-nat.c: Likewise.
4621 * m2-typeprint.c: Likewise.
4622 * nat/linux-btrace.c: Likewise.
4623 * p-typeprint.c: Likewise.
4624 * procfs.c: Likewise.
4625 * remote-sim.c: Likewise.
4626 * rs6000-nat.c: Likewise.
4627 * target.c: Likewise.
4628 * typeprint.c: Likewise.
4629 * ui-file.c: Likewise.
4630 * valops.c: Likewise.
4631 * valprint.c: Likewise.
4632
6d3d12eb
GB
46332014-08-07 Gary Benson <gbenson@redhat.com>
4634
4635 * common/common-defs.h: Include string.h.
4636 * aarch64-tdep.c: Do not include string.h.
4637 * ada-exp.y: Likewise.
4638 * ada-lang.c: Likewise.
4639 * ada-lex.l: Likewise.
4640 * ada-typeprint.c: Likewise.
4641 * ada-valprint.c: Likewise.
4642 * aix-thread.c: Likewise.
4643 * alpha-linux-tdep.c: Likewise.
4644 * alpha-mdebug-tdep.c: Likewise.
4645 * alpha-nat.c: Likewise.
4646 * alpha-osf1-tdep.c: Likewise.
4647 * alpha-tdep.c: Likewise.
4648 * alphanbsd-tdep.c: Likewise.
4649 * amd64-dicos-tdep.c: Likewise.
4650 * amd64-linux-tdep.c: Likewise.
4651 * amd64-nat.c: Likewise.
4652 * amd64-sol2-tdep.c: Likewise.
4653 * amd64fbsd-tdep.c: Likewise.
4654 * amd64obsd-tdep.c: Likewise.
4655 * arch-utils.c: Likewise.
4656 * arm-linux-nat.c: Likewise.
4657 * arm-linux-tdep.c: Likewise.
4658 * arm-tdep.c: Likewise.
4659 * arm-wince-tdep.c: Likewise.
4660 * armbsd-tdep.c: Likewise.
4661 * armnbsd-nat.c: Likewise.
4662 * armnbsd-tdep.c: Likewise.
4663 * armobsd-tdep.c: Likewise.
4664 * avr-tdep.c: Likewise.
4665 * ax-gdb.c: Likewise.
4666 * ax-general.c: Likewise.
4667 * bcache.c: Likewise.
4668 * bfin-tdep.c: Likewise.
4669 * breakpoint.c: Likewise.
4670 * build-id.c: Likewise.
4671 * buildsym.c: Likewise.
4672 * c-exp.y: Likewise.
4673 * c-lang.c: Likewise.
4674 * c-typeprint.c: Likewise.
4675 * c-valprint.c: Likewise.
4676 * charset.c: Likewise.
4677 * cli-out.c: Likewise.
4678 * cli/cli-cmds.c: Likewise.
4679 * cli/cli-decode.c: Likewise.
4680 * cli/cli-dump.c: Likewise.
4681 * cli/cli-interp.c: Likewise.
4682 * cli/cli-logging.c: Likewise.
4683 * cli/cli-script.c: Likewise.
4684 * cli/cli-setshow.c: Likewise.
4685 * cli/cli-utils.c: Likewise.
4686 * coffread.c: Likewise.
4687 * common/agent.c: Likewise.
4688 * common/buffer.c: Likewise.
4689 * common/buffer.h: Likewise.
4690 * common/common-utils.c: Likewise.
4691 * common/filestuff.c: Likewise.
4692 * common/filestuff.c: Likewise.
4693 * common/format.c: Likewise.
4694 * common/print-utils.c: Likewise.
4695 * common/rsp-low.c: Likewise.
4696 * common/signals.c: Likewise.
4697 * common/vec.h: Likewise.
4698 * common/xml-utils.c: Likewise.
4699 * core-regset.c: Likewise.
4700 * corefile.c: Likewise.
4701 * corelow.c: Likewise.
4702 * cp-abi.c: Likewise.
4703 * cp-name-parser.y: Likewise.
4704 * cp-support.c: Likewise.
4705 * cp-valprint.c: Likewise.
4706 * cris-tdep.c: Likewise.
4707 * d-exp.y: Likewise.
4708 * darwin-nat.c: Likewise.
4709 * dbxread.c: Likewise.
4710 * dcache.c: Likewise.
4711 * demangle.c: Likewise.
4712 * dicos-tdep.c: Likewise.
4713 * disasm.c: Likewise.
4714 * doublest.c: Likewise.
4715 * dsrec.c: Likewise.
4716 * dummy-frame.c: Likewise.
4717 * dwarf2-frame.c: Likewise.
4718 * dwarf2loc.c: Likewise.
4719 * dwarf2read.c: Likewise.
4720 * elfread.c: Likewise.
4721 * environ.c: Likewise.
4722 * eval.c: Likewise.
4723 * event-loop.c: Likewise.
4724 * exceptions.c: Likewise.
4725 * exec.c: Likewise.
4726 * expprint.c: Likewise.
4727 * f-exp.y: Likewise.
4728 * f-lang.c: Likewise.
4729 * f-typeprint.c: Likewise.
4730 * f-valprint.c: Likewise.
4731 * fbsd-nat.c: Likewise.
4732 * findcmd.c: Likewise.
4733 * findvar.c: Likewise.
4734 * fork-child.c: Likewise.
4735 * frame.c: Likewise.
4736 * frv-linux-tdep.c: Likewise.
4737 * frv-tdep.c: Likewise.
4738 * gdb.c: Likewise.
4739 * gdb_bfd.c: Likewise.
4740 * gdbarch.c: Likewise.
4741 * gdbarch.sh: Likewise.
4742 * gdbtypes.c: Likewise.
4743 * gnu-nat.c: Likewise.
4744 * gnu-v2-abi.c: Likewise.
4745 * gnu-v3-abi.c: Likewise.
4746 * go-exp.y: Likewise.
4747 * go-lang.c: Likewise.
4748 * go32-nat.c: Likewise.
4749 * guile/guile.c: Likewise.
4750 * guile/scm-auto-load.c: Likewise.
4751 * hppa-hpux-tdep.c: Likewise.
4752 * hppa-linux-nat.c: Likewise.
4753 * hppanbsd-tdep.c: Likewise.
4754 * hppaobsd-tdep.c: Likewise.
4755 * i386-cygwin-tdep.c: Likewise.
4756 * i386-dicos-tdep.c: Likewise.
4757 * i386-linux-tdep.c: Likewise.
4758 * i386-nto-tdep.c: Likewise.
4759 * i386-sol2-tdep.c: Likewise.
4760 * i386-tdep.c: Likewise.
4761 * i386bsd-tdep.c: Likewise.
4762 * i386gnu-nat.c: Likewise.
4763 * i386nbsd-tdep.c: Likewise.
4764 * i386obsd-tdep.c: Likewise.
4765 * i387-tdep.c: Likewise.
4766 * ia64-libunwind-tdep.c: Likewise.
4767 * ia64-linux-nat.c: Likewise.
4768 * inf-child.c: Likewise.
4769 * inf-ptrace.c: Likewise.
4770 * inf-ttrace.c: Likewise.
4771 * infcall.c: Likewise.
4772 * infcmd.c: Likewise.
4773 * inflow.c: Likewise.
4774 * infrun.c: Likewise.
4775 * interps.c: Likewise.
4776 * iq2000-tdep.c: Likewise.
4777 * irix5-nat.c: Likewise.
4778 * jv-exp.y: Likewise.
4779 * jv-lang.c: Likewise.
4780 * jv-typeprint.c: Likewise.
4781 * jv-valprint.c: Likewise.
4782 * language.c: Likewise.
4783 * linux-fork.c: Likewise.
4784 * linux-nat.c: Likewise.
4785 * lm32-tdep.c: Likewise.
4786 * m2-exp.y: Likewise.
4787 * m2-typeprint.c: Likewise.
4788 * m32c-tdep.c: Likewise.
4789 * m32r-linux-nat.c: Likewise.
4790 * m32r-linux-tdep.c: Likewise.
4791 * m32r-rom.c: Likewise.
4792 * m32r-tdep.c: Likewise.
4793 * m68hc11-tdep.c: Likewise.
4794 * m68k-tdep.c: Likewise.
4795 * m68kbsd-tdep.c: Likewise.
4796 * m68klinux-nat.c: Likewise.
4797 * m68klinux-tdep.c: Likewise.
4798 * m88k-tdep.c: Likewise.
4799 * machoread.c: Likewise.
4800 * macrocmd.c: Likewise.
4801 * main.c: Likewise.
4802 * mdebugread.c: Likewise.
4803 * mem-break.c: Likewise.
4804 * memattr.c: Likewise.
4805 * memory-map.c: Likewise.
4806 * mep-tdep.c: Likewise.
4807 * mi/mi-cmd-break.c: Likewise.
4808 * mi/mi-cmd-disas.c: Likewise.
4809 * mi/mi-cmd-env.c: Likewise.
4810 * mi/mi-cmd-stack.c: Likewise.
4811 * mi/mi-cmd-var.c: Likewise.
4812 * mi/mi-cmds.c: Likewise.
4813 * mi/mi-console.c: Likewise.
4814 * mi/mi-getopt.c: Likewise.
4815 * mi/mi-interp.c: Likewise.
4816 * mi/mi-main.c: Likewise.
4817 * mi/mi-parse.c: Likewise.
4818 * microblaze-rom.c: Likewise.
4819 * microblaze-tdep.c: Likewise.
4820 * mingw-hdep.c: Likewise.
4821 * minidebug.c: Likewise.
4822 * minsyms.c: Likewise.
4823 * mips-irix-tdep.c: Likewise.
4824 * mips-linux-tdep.c: Likewise.
4825 * mips-tdep.c: Likewise.
4826 * mips64obsd-tdep.c: Likewise.
4827 * mipsnbsd-tdep.c: Likewise.
4828 * mipsread.c: Likewise.
4829 * mn10300-linux-tdep.c: Likewise.
4830 * mn10300-tdep.c: Likewise.
4831 * monitor.c: Likewise.
4832 * moxie-tdep.c: Likewise.
4833 * mt-tdep.c: Likewise.
4834 * nat/linux-btrace.c: Likewise.
4835 * nat/linux-osdata.c: Likewise.
4836 * nat/linux-procfs.c: Likewise.
4837 * nat/linux-ptrace.c: Likewise.
4838 * nat/linux-waitpid.c: Likewise.
4839 * nbsd-tdep.c: Likewise.
4840 * nios2-linux-tdep.c: Likewise.
4841 * nto-procfs.c: Likewise.
4842 * nto-tdep.c: Likewise.
4843 * objc-lang.c: Likewise.
4844 * objfiles.c: Likewise.
4845 * opencl-lang.c: Likewise.
4846 * osabi.c: Likewise.
4847 * osdata.c: Likewise.
4848 * p-exp.y: Likewise.
4849 * p-lang.c: Likewise.
4850 * p-typeprint.c: Likewise.
4851 * parse.c: Likewise.
4852 * posix-hdep.c: Likewise.
4853 * ppc-linux-nat.c: Likewise.
4854 * ppc-sysv-tdep.c: Likewise.
4855 * ppcfbsd-tdep.c: Likewise.
4856 * ppcnbsd-tdep.c: Likewise.
4857 * ppcobsd-tdep.c: Likewise.
4858 * printcmd.c: Likewise.
4859 * procfs.c: Likewise.
4860 * prologue-value.c: Likewise.
4861 * python/py-auto-load.c: Likewise.
4862 * python/py-gdb-readline.c: Likewise.
4863 * ravenscar-thread.c: Likewise.
4864 * regcache.c: Likewise.
4865 * registry.c: Likewise.
4866 * remote-fileio.c: Likewise.
4867 * remote-m32r-sdi.c: Likewise.
4868 * remote-mips.c: Likewise.
4869 * remote-notif.c: Likewise.
4870 * remote-sim.c: Likewise.
4871 * remote.c: Likewise.
4872 * reverse.c: Likewise.
4873 * rs6000-aix-tdep.c: Likewise.
4874 * ser-base.c: Likewise.
4875 * ser-go32.c: Likewise.
4876 * ser-mingw.c: Likewise.
4877 * ser-pipe.c: Likewise.
4878 * ser-tcp.c: Likewise.
4879 * ser-unix.c: Likewise.
4880 * serial.c: Likewise.
4881 * sh-tdep.c: Likewise.
4882 * sh64-tdep.c: Likewise.
4883 * shnbsd-tdep.c: Likewise.
4884 * skip.c: Likewise.
4885 * sol-thread.c: Likewise.
4886 * solib-dsbt.c: Likewise.
4887 * solib-frv.c: Likewise.
4888 * solib-osf.c: Likewise.
4889 * solib-som.c: Likewise.
4890 * solib-spu.c: Likewise.
4891 * solib-target.c: Likewise.
4892 * solib.c: Likewise.
4893 * somread.c: Likewise.
4894 * source.c: Likewise.
4895 * sparc-nat.c: Likewise.
4896 * sparc-sol2-tdep.c: Likewise.
4897 * sparc-tdep.c: Likewise.
4898 * sparc64-tdep.c: Likewise.
4899 * sparc64fbsd-tdep.c: Likewise.
4900 * sparc64nbsd-tdep.c: Likewise.
4901 * sparcnbsd-tdep.c: Likewise.
4902 * spu-linux-nat.c: Likewise.
4903 * spu-multiarch.c: Likewise.
4904 * spu-tdep.c: Likewise.
4905 * stabsread.c: Likewise.
4906 * stack.c: Likewise.
4907 * std-regs.c: Likewise.
4908 * symfile.c: Likewise.
4909 * symmisc.c: Likewise.
4910 * symtab.c: Likewise.
4911 * target.c: Likewise.
4912 * thread.c: Likewise.
4913 * tilegx-linux-nat.c: Likewise.
4914 * tilegx-tdep.c: Likewise.
4915 * top.c: Likewise.
4916 * tracepoint.c: Likewise.
4917 * tui/tui-command.c: Likewise.
4918 * tui/tui-data.c: Likewise.
4919 * tui/tui-disasm.c: Likewise.
4920 * tui/tui-file.c: Likewise.
4921 * tui/tui-layout.c: Likewise.
4922 * tui/tui-out.c: Likewise.
4923 * tui/tui-regs.c: Likewise.
4924 * tui/tui-source.c: Likewise.
4925 * tui/tui-stack.c: Likewise.
4926 * tui/tui-win.c: Likewise.
4927 * tui/tui-windata.c: Likewise.
4928 * tui/tui-winsource.c: Likewise.
4929 * typeprint.c: Likewise.
4930 * ui-file.c: Likewise.
4931 * ui-out.c: Likewise.
4932 * user-regs.c: Likewise.
4933 * utils.c: Likewise.
4934 * v850-tdep.c: Likewise.
4935 * valarith.c: Likewise.
4936 * valops.c: Likewise.
4937 * valprint.c: Likewise.
4938 * value.c: Likewise.
4939 * varobj.c: Likewise.
4940 * vax-tdep.c: Likewise.
4941 * vaxnbsd-tdep.c: Likewise.
4942 * vaxobsd-tdep.c: Likewise.
4943 * windows-nat.c: Likewise.
4944 * xcoffread.c: Likewise.
4945 * xml-support.c: Likewise.
4946 * xstormy16-tdep.c: Likewise.
4947 * xtensa-linux-nat.c: Likewise.
4948
dccbb609
GB
49492014-08-07 Gary Benson <gbenson@redhat.com>
4950
4951 * common/common-defs.h: Include gdb_assert.h.
4952 * aarch64-tdep.c: Do not include gdb_assert.h.
4953 * addrmap.c: Likewise.
4954 * aix-thread.c: Likewise.
4955 * alpha-linux-tdep.c: Likewise.
4956 * alpha-mdebug-tdep.c: Likewise.
4957 * alphanbsd-tdep.c: Likewise.
4958 * amd64-nat.c: Likewise.
4959 * amd64-tdep.c: Likewise.
4960 * amd64bsd-nat.c: Likewise.
4961 * amd64fbsd-nat.c: Likewise.
4962 * amd64fbsd-tdep.c: Likewise.
4963 * amd64nbsd-nat.c: Likewise.
4964 * amd64nbsd-tdep.c: Likewise.
4965 * amd64obsd-nat.c: Likewise.
4966 * amd64obsd-tdep.c: Likewise.
4967 * arch-utils.c: Likewise.
4968 * arm-tdep.c: Likewise.
4969 * armbsd-tdep.c: Likewise.
4970 * auxv.c: Likewise.
4971 * bcache.c: Likewise.
4972 * bfin-tdep.c: Likewise.
4973 * blockframe.c: Likewise.
4974 * breakpoint.c: Likewise.
4975 * bsd-kvm.c: Likewise.
4976 * bsd-uthread.c: Likewise.
4977 * buildsym.c: Likewise.
4978 * c-exp.y: Likewise.
4979 * c-lang.c: Likewise.
4980 * charset.c: Likewise.
4981 * cleanups.c: Likewise.
4982 * cli-out.c: Likewise.
4983 * cli/cli-decode.c: Likewise.
4984 * cli/cli-dump.c: Likewise.
4985 * cli/cli-logging.c: Likewise.
4986 * cli/cli-script.c: Likewise.
4987 * cli/cli-utils.c: Likewise.
4988 * coffread.c: Likewise.
4989 * common/common-utils.c: Likewise.
4990 * common/queue.h: Likewise.
4991 * common/signals.c: Likewise.
4992 * common/vec.h: Likewise.
4993 * complaints.c: Likewise.
4994 * completer.c: Likewise.
4995 * corelow.c: Likewise.
4996 * cp-abi.c: Likewise.
4997 * cp-name-parser.y: Likewise.
4998 * cp-namespace.c: Likewise.
4999 * cp-support.c: Likewise.
5000 * cris-tdep.c: Likewise.
5001 * dbxread.c: Likewise.
5002 * dictionary.c: Likewise.
5003 * doublest.c: Likewise.
5004 * dsrec.c: Likewise.
5005 * dummy-frame.c: Likewise.
5006 * dwarf2-frame-tailcall.c: Likewise.
5007 * dwarf2-frame.c: Likewise.
5008 * dwarf2expr.c: Likewise.
5009 * dwarf2loc.c: Likewise.
5010 * dwarf2read.c: Likewise.
5011 * eval.c: Likewise.
5012 * event-loop.c: Likewise.
5013 * exceptions.c: Likewise.
5014 * expprint.c: Likewise.
5015 * f-valprint.c: Likewise.
5016 * fbsd-nat.c: Likewise.
5017 * findvar.c: Likewise.
5018 * frame-unwind.c: Likewise.
5019 * frame.c: Likewise.
5020 * frv-tdep.c: Likewise.
5021 * gcore.c: Likewise.
5022 * gdb-dlfcn.c: Likewise.
5023 * gdb_bfd.c: Likewise.
5024 * gdbarch.c: Likewise.
5025 * gdbarch.sh: Likewise.
5026 * gdbtypes.c: Likewise.
5027 * gnu-nat.c: Likewise.
5028 * gnu-v3-abi.c: Likewise.
5029 * go-lang.c: Likewise.
5030 * guile/scm-exception.c: Likewise.
5031 * guile/scm-gsmob.c: Likewise.
5032 * guile/scm-lazy-string.c: Likewise.
5033 * guile/scm-math.c: Likewise.
5034 * guile/scm-pretty-print.c: Likewise.
5035 * guile/scm-safe-call.c: Likewise.
5036 * guile/scm-utils.c: Likewise.
5037 * guile/scm-value.c: Likewise.
5038 * h8300-tdep.c: Likewise.
5039 * hppa-hpux-nat.c: Likewise.
5040 * hppa-tdep.c: Likewise.
5041 * hppanbsd-tdep.c: Likewise.
5042 * hppaobsd-tdep.c: Likewise.
5043 * i386-darwin-nat.c: Likewise.
5044 * i386-darwin-tdep.c: Likewise.
5045 * i386-nto-tdep.c: Likewise.
5046 * i386-tdep.c: Likewise.
5047 * i386bsd-nat.c: Likewise.
5048 * i386fbsd-tdep.c: Likewise.
5049 * i386gnu-nat.c: Likewise.
5050 * i386nbsd-tdep.c: Likewise.
5051 * i386obsd-tdep.c: Likewise.
5052 * i387-tdep.c: Likewise.
5053 * ia64-libunwind-tdep.c: Likewise.
5054 * ia64-tdep.c: Likewise.
5055 * inf-ptrace.c: Likewise.
5056 * inf-ttrace.c: Likewise.
5057 * infcall.c: Likewise.
5058 * infcmd.c: Likewise.
5059 * infrun.c: Likewise.
5060 * inline-frame.c: Likewise.
5061 * interps.c: Likewise.
5062 * jv-lang.c: Likewise.
5063 * jv-typeprint.c: Likewise.
5064 * linux-fork.c: Likewise.
5065 * linux-nat.c: Likewise.
5066 * linux-thread-db.c: Likewise.
5067 * m32c-tdep.c: Likewise.
5068 * m32r-linux-nat.c: Likewise.
5069 * m32r-tdep.c: Likewise.
5070 * m68k-tdep.c: Likewise.
5071 * m68kbsd-nat.c: Likewise.
5072 * m68kbsd-tdep.c: Likewise.
5073 * m88k-tdep.c: Likewise.
5074 * machoread.c: Likewise.
5075 * macroexp.c: Likewise.
5076 * macrotab.c: Likewise.
5077 * maint.c: Likewise.
5078 * mdebugread.c: Likewise.
5079 * memory-map.c: Likewise.
5080 * mep-tdep.c: Likewise.
5081 * mi/mi-common.c: Likewise.
5082 * microblaze-tdep.c: Likewise.
5083 * mingw-hdep.c: Likewise.
5084 * mips-linux-nat.c: Likewise.
5085 * mips-linux-tdep.c: Likewise.
5086 * mips-tdep.c: Likewise.
5087 * mips64obsd-tdep.c: Likewise.
5088 * mipsnbsd-tdep.c: Likewise.
5089 * mn10300-linux-tdep.c: Likewise.
5090 * mn10300-tdep.c: Likewise.
5091 * moxie-tdep.c: Likewise.
5092 * mt-tdep.c: Likewise.
5093 * nat/linux-btrace.c: Likewise.
5094 * nat/linux-osdata.c: Likewise.
5095 * nat/linux-ptrace.c: Likewise.
5096 * nat/mips-linux-watch.c: Likewise.
5097 * nios2-linux-tdep.c: Likewise.
5098 * nios2-tdep.c: Likewise.
5099 * objc-lang.c: Likewise.
5100 * objfiles.c: Likewise.
5101 * obsd-nat.c: Likewise.
5102 * opencl-lang.c: Likewise.
5103 * osabi.c: Likewise.
5104 * parse.c: Likewise.
5105 * ppc-linux-nat.c: Likewise.
5106 * ppc-sysv-tdep.c: Likewise.
5107 * ppcfbsd-nat.c: Likewise.
5108 * ppcfbsd-tdep.c: Likewise.
5109 * ppcnbsd-nat.c: Likewise.
5110 * ppcnbsd-tdep.c: Likewise.
5111 * ppcobsd-nat.c: Likewise.
5112 * ppcobsd-tdep.c: Likewise.
5113 * printcmd.c: Likewise.
5114 * procfs.c: Likewise.
5115 * prologue-value.c: Likewise.
5116 * psymtab.c: Likewise.
5117 * python/py-lazy-string.c: Likewise.
5118 * python/py-value.c: Likewise.
5119 * regcache.c: Likewise.
5120 * reggroups.c: Likewise.
5121 * registry.c: Likewise.
5122 * remote-sim.c: Likewise.
5123 * remote.c: Likewise.
5124 * rs6000-aix-tdep.c: Likewise.
5125 * rs6000-tdep.c: Likewise.
5126 * s390-linux-tdep.c: Likewise.
5127 * score-tdep.c: Likewise.
5128 * ser-base.c: Likewise.
5129 * ser-mingw.c: Likewise.
5130 * sh-tdep.c: Likewise.
5131 * sh64-tdep.c: Likewise.
5132 * solib-darwin.c: Likewise.
5133 * solib-spu.c: Likewise.
5134 * solib-svr4.c: Likewise.
5135 * source.c: Likewise.
5136 * sparc-nat.c: Likewise.
5137 * sparc-sol2-tdep.c: Likewise.
5138 * sparc-tdep.c: Likewise.
5139 * sparc64-sol2-tdep.c: Likewise.
5140 * sparc64-tdep.c: Likewise.
5141 * sparc64fbsd-tdep.c: Likewise.
5142 * sparc64nbsd-tdep.c: Likewise.
5143 * sparc64obsd-tdep.c: Likewise.
5144 * sparcnbsd-tdep.c: Likewise.
5145 * sparcobsd-tdep.c: Likewise.
5146 * spu-multiarch.c: Likewise.
5147 * spu-tdep.c: Likewise.
5148 * stabsread.c: Likewise.
5149 * stack.c: Likewise.
5150 * symfile.c: Likewise.
5151 * symtab.c: Likewise.
5152 * target-descriptions.c: Likewise.
5153 * target-memory.c: Likewise.
5154 * target.c: Likewise.
5155 * tic6x-linux-tdep.c: Likewise.
5156 * tic6x-tdep.c: Likewise.
5157 * tilegx-linux-nat.c: Likewise.
5158 * tilegx-tdep.c: Likewise.
5159 * top.c: Likewise.
5160 * tramp-frame.c: Likewise.
5161 * tui/tui-out.c: Likewise.
5162 * tui/tui-winsource.c: Likewise.
5163 * ui-out.c: Likewise.
5164 * user-regs.c: Likewise.
5165 * utils.c: Likewise.
5166 * v850-tdep.c: Likewise.
5167 * valops.c: Likewise.
5168 * value.c: Likewise.
5169 * varobj.c: Likewise.
5170 * vax-nat.c: Likewise.
5171 * xml-syscall.c: Likewise.
5172 * xml-tdesc.c: Likewise.
5173 * xstormy16-tdep.c: Likewise.
5174 * xtensa-linux-nat.c: Likewise.
5175 * xtensa-tdep.c: Likewise.
5176
e76df0d0
GB
51772014-08-07 Gary Benson <gbenson@redhat.com>
5178
5179 * common/common-defs.h: Include common-utils.h.
5180 * defs.h: Do not include common-utils.h.
5181 * common/gdb_assert.h: Likewise.
5182 * darwin-nat.h: Likewise.
5183 * nat/linux-btrace.c: Likewise.
5184 * target/waitstatus.h: Likewise.
5185
4cb9c816
GB
51862014-08-07 Gary Benson <gbenson@redhat.com>
5187
5188 * common/common-defs.h: Include ptid.h.
5189 * defs.h: Do not include ptid.h.
5190 * inferior.h: Likewise.
5191 * infrun.h: Likewise.
5192 * nat/linux-btrace.h: Likewise.
5193 * nat/linux-osdata.h: Likewise.
5194 * target/waitstatus.h: Likewise.
5195
3995eeee
GB
51962014-08-07 Gary Benson <gbenson@redhat.com>
5197
5198 * common/common-defs.h: Include gdb_locale.h.
5199 * defs.h: Do not include gdb_locale.h.
5200
cb9f1a9b
GB
52012014-08-07 Gary Benson <gbenson@redhat.com>
5202
5203 * common/common-defs.h: Include gdb/signals.h.
5204 * defs.h: Do not include gdb/signals.h.
5205
a5fceff8
GB
52062014-08-07 Gary Benson <gbenson@redhat.com>
5207
5208 * common/common-defs.h: Include pathmax.h.
5209 * defs.h: Do not include pathmax.h.
5210
b9391142
GB
52112014-08-07 Gary Benson <gbenson@redhat.com>
5212
5213 * common/common-defs.h: Include libiberty.h.
5214 * defs.h: Do not include libiberty.h.
5215 * common/queue.h: Likewise.
5216 * cp-name-parser.y: Likewise.
5217 * mi/mi-cmd-catch.c: Likewise.
5218 * python/python.c: Likewise.
5219
0e443c87
GB
52202014-08-07 Gary Benson <gbenson@redhat.com>
5221
5222 * common/common-defs.h: Include ansidecl.h.
5223 * defs.h: Do not include ansidecl.h.
5224 * common/buffer.h: Likewise.
5225 * common/common-utils.h: Likewise.
5226
8ebb3f56
GB
52272014-08-07 Gary Benson <gbenson@redhat.com>
5228
5229 * common/common-defs.h: Include stddef.h.
5230 * defs.h: Do not include stddef.h.
5231 * common/common-utils.h: Likewise.
5232 * amd64fbsd-nat.c: Likewise.
5233 * bcache.c: Likewise.
5234 * charset.c: Likewise.
5235 * common/buffer.h: Likewise.
5236 * common/vec.h: Likewise.
5237 * i386bsd-nat.c: Likewise.
5238 * nat/linux-btrace.h: Likewise.
5239 * ppcfbsd-nat.c: Likewise.
5240 * ppcnbsd-tdep.h: Likewise.
5241 * ppcobsd-nat.c: Likewise.
5242 * ppcobsd-tdep.h: Likewise.
5243 * python/py-gdb-readline.c: Likewise.
5244
8980bdf6
GB
52452014-08-07 Gary Benson <gbenson@redhat.com>
5246
5247 * common/common-defs.h: Include stdarg.h.
5248 * defs.h: Do not include stdarg.h.
5249 * ada-lang.c: Likewise.
5250 * common/common-utils.h: Likewise.
5251 * guile/scm-string.c: Likewise.
5252 * guile/scm-utils.c: Likewise.
5253 * m32c-tdep.c: Likewise.
5254
d7096f71
GB
52552014-08-07 Gary Benson <gbenson@redhat.com>
5256
5257 * common/common-defs.h: Include stdlib.h.
5258 * defs.h: Do not include stdlib.h.
5259 * addrmap.c: Likewise.
5260 * bcache.c: Likewise.
5261 * common/buffer.c: Likewise.
5262 * common/common-utils.c: Likewise.
5263 * cp-name-parser.y: Likewise.
5264 * go32-nat.c: Likewise.
5265 * mn10300-linux-tdep.c: Likewise.
5266 * nat/linux-osdata.c: Likewise.
5267 * tui/tui.c: Likewise.
5268 * windows-nat.c: Likewise.
5269
d02f550d
GB
52702014-08-07 Gary Benson <gbenson@redhat.com>
5271
5272 * common/common-defs.h: Include stdio.h.
5273 * defs.h: Do not include stdio.h.
5274 * ada-lang.c: Likewise.
5275 * common/buffer.c: Likewise.
5276 * common/common-utils.c: Likewise.
5277 * cp-name-parser.y: Likewise.
5278 * gnu-nat.c: Likewise.
5279 * go32-nat.c: Likewise.
5280 * i386gnu-nat.c: Likewise.
5281 * proc-api.c: Likewise.
5282 * proc-events.c: Likewise.
5283 * proc-flags.c: Likewise.
5284 * proc-why.c: Likewise.
5285 * python/python-internal.h: Likewise.
5286 * target-memory.c: Likewise.
5287 * tui/tui-io.c: Likewise.
5288 * tui/tui.c: Likewise.
5289
b6d7a4bf
SM
52902014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5291
5292 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5293 (scan_dyntag_auxv): Same.
5294
af19829b
YQ
52952014-08-06 Yao Qi <yao@codesourcery.com>
5296
5297 * amd64-linux-nat.c: Remove duplicated include
5298 "x86-linux-nat.h".
5299 * i386-linux-nat.c: Likewise.
5300
8e07a239
YQ
53012014-08-06 Yao Qi <yao@codesourcery.com>
5302
5303 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5304 operand" with "Special opcode" in comments.
5305
7bfe8241
GB
53062014-08-05 Gary Benson <gbenson@redhat.com>
5307
5308 * interps.c (initialize_interps): Remove prototype.
5309 (interpreter_initialized): Remove static global.
5310 (interp_add): Do not call initialize_interps.
5311 (initialize_interps): Remove function.
5312
d6c95504
GB
53132014-08-05 Gary Benson <gbenson@redhat.com>
5314
5315 * utils.c (vwarning): Remove spurious va_end.
5316
241fd515
AM
53172014-08-05 Alan Modra <amodra@gmail.com>
5318
5319 * charset.c (convert_between_encodings): Cast result of obstack_base.
5320 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5321 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5322 (read_unwind_info): Use size_t for some locals.
5323 * jit.c (finalize_symtab): Likewise.
5324 * utils.c (hashtab_obstack_allocate): Likewise.
5325 * symmisc.c (print_objfile_statistics): Update format strings.
5326
dc304a94
JK
53272014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5328
5329 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5330 (Changes in GDB 7.8): ... here.
5331
3cecbbbe
TT
53322014-08-04 Tom Tromey <tromey@redhat.com>
5333
5334 * target.c (set_targetdebug): New function.
5335 (initialize_targets): Pass set_targetdebug when creating "set
5336 debug target".
5337
6908c509
JB
53382014-08-01 Joel Brobecker <brobecker@adacore.com>
5339
5340 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5341 if detecting a variable-sized field that is not the last field.
5342 Fix struct type length computation.
5343
53e8f97d
JB
53442014-08-01 Joel Brobecker <brobecker@adacore.com>
5345
5346 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5347 Add debug trace.
5348
e068c55d
JB
53492014-08-01 Joel Brobecker <brobecker@adacore.com>
5350
5351 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5352 Remove "+ 8" offset in computation of CHAIN_VMA.
5353
4d4ca2a1
DE
53542014-07-31 Doug Evans <dje@google.com>
5355
5356 * inflow.c (child_terminal_inferior): Add comment.
5357 (child_terminal_ours_for_output): Add comment.
5358 (child_terminal_ours): Add comment.
5359 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5360 (linux_nat_terminal_ours): Add comment.
5361
462f517e
GB
53622014-07-31 Gary Benson <gbenson@redhat.com>
5363
5364 * common/btrace-common.h: Do not include defs.h or server.h.
5365 * nat/mips-linux-watch.h: Likewise.
5366 * gdb-dlfcn.h: Do not include defs.h.
5367 * tracefile.h: Likewise.
5368
74228e77
RM
53692014-07-30 Roland McGrath <mcgrathr@google.com>
5370
5371 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5372
014f9477
TT
53732014-07-30 Tom Tromey <tromey@redhat.com>
5374
5375 * bsd-kvm.c (bsd_kvm_open): Constify.
5376 * corelow.c (core_open): Constify.
5377 * ctf.c (ctf_open): Constify.
5378 * dbug-rom.c (dbug_open): Constify.
5379 * exec.c (exec_open): Constify.
5380 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5381 * microblaze-rom.c (picobug_open): Constify.
5382 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5383 Constify.
5384 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5385 * record-btrace.c (record_btrace_open): Constify.
5386 * record-full.c (record_full_core_open_1, record_full_open_1)
5387 (record_full_open): Constify.
5388 * remote-m32r-sdi.c (m32r_open): Constify.
5389 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5390 (rockhopper_open, lsi_open): Constify.
5391 * remote-sim.c (gdbsim_open): Constify.
5392 * remote.c (remote_open, extended_remote_open, remote_open_1):
5393 Constify.
5394 * target.h (struct target_ops) <to_open>: Make "arg" const.
5395 * tracefile-tfile.c (tfile_open): Constify.
5396
e799154c
TT
53972014-07-30 Tom Tromey <tromey@redhat.com>
5398
5399 * breakpoint.c (map_breakpoint_numbers): Update.
5400 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5401 (get_number_const): New function.
5402 (get_number): Rewrite using get_number_const.
5403 (init_number_or_range): Make "string" const.
5404 (number_is_in_list): Make "list" const.
5405 * cli/cli-utils.h (get_number_const): Declare.
5406 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5407 (init_number_or_range, number_is_in_list): Update.
5408 * printcmd.c (map_display_numbers): Update.
5409 * value.c (value_from_history_ref): Constify.
5410 * value.h (value_from_history_ref): Update.
5411
5f08566b
TT
54122014-07-30 Tom Tromey <tromey@redhat.com>
5413
5414 * corefile.c (hook_type, call_extra_exec_file_hooks)
5415 (specify_exec_file_hook): Constify.
5416 * exec.c (exec_file_attach): Make "filename" const.
5417 * gdbcore.h (deprecated_exec_file_display_hook)
5418 (specify_exec_file_hook, exec_file_attach): Constify.
5419 * main.c (captured_main): Use catch_command_errors_const.
5420
8981c758
TT
54212014-07-30 Tom Tromey <tromey@redhat.com>
5422
5423 * target.c (open_target): New function.
5424 (add_target_with_completer, add_deprecated_target_alias): Use
5425 set_cmd_sfunc, set_cmd_context.
5426 (debug_to_open): Remove.
5427 (setup_target_debug): Update.
5428
a1c7835a
YQ
54292014-07-30 Yao Qi <yao@codesourcery.com>
5430
5431 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5432 comments.
5433 * parse.c (exp_iterate): Update comments.
5434
976411d6
GB
54352014-07-30 Gary Benson <gbenson@redhat.com>
5436
5437 * common/common-defs.h: New file.
5438 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5439 * defs.h: Include common-defs.h.
5440 Do not include config.h or build-gnulib/config.h.
5441
5d4848a4
GB
54422014-07-30 Gary Benson <gbenson@redhat.com>
5443
5444 * common/common-utils.h: Do not include config.h.
5445 * nat/linux-btrace.h: Likewise.
5446
d41f6d8e
GB
54472014-07-30 Gary Benson <gbenson@redhat.com>
5448
5449 * btrace.c: Include defs.h.
5450 * common/ptid.c: Include defs.h or server.h as appropriate.
5451 * nat/mips-linux-watch.c: Likewise.
5452
84202f9c
TT
54532014-07-29 Tom Tromey <tromey@redhat.com>
5454
5455 * target.c (target_is_pushed): Simplify.
5456
2530441c
JB
54572014-07-29 Joel Brobecker <brobecker@adacore.com>
5458
5459 GDB 7.8 released.
5460
7e09a223
YQ
54612014-07-29 Yao Qi <yao@codesourcery.com>
5462
5463 PR gdb/17206
5464 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5465
7ebdbe92
DE
54662014-07-28 Doug Evans <xdje42@gmail.com>
5467
5468 PR guile/17203
5469 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5470 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5471 parameters.
5472
f347ffc9
WN
54732014-07-28 Will Newton <will.newton@linaro.org>
5474
5475 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5476 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5477 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5478 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5479 (THUMB2_EABI_SYSCALL): Likewise.
5480 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5481 struct tramp_frame.
5482 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5483 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5484
37c5f1f7
DE
54852014-07-27 Doug Evans <xdje42@gmail.com>
5486
5487 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5488
0c3abbc7
DE
54892014-07-27 Doug Evans <xdje42@gmail.com>
5490
5491 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5492
e76c5d17
DE
54932014-07-26 Ludovic Courtès <ludo@gnu.org>
5494 Doug Evans <xdje42@gmail.com>
5495
5496 PR guile/17146
5497 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5498 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5499 * configure.ac: Try to use guild to compile an scm file, if it fails
5500 then disable guile support.
5501 * configure: Regenerate.
5502 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5503 GUILE_FILE_LIST.
5504 (GUILE_COMPILED_FILES): New variable.
5505 (GUILE_FILES) Update.
5506 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5507 (stamp-guile): Compile scm files.
5508 * guile/guile.c (boot_guile_support): New function.
5509 (standard_throw_args_p): New function.
5510 (print_standard_throw_error, print_throw_error): New functions.
5511 (handle_boot_error): New function.
5512 (initialize_scheme_side): Rewrite to call boot_guile_support.
5513 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5514 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5515
186fcde0
DE
55162014-07-26 Ludovic Courtès <ludo@gnu.org>
5517 Doug Evans <xdje42@gmail.com>
5518
5519 PR guile/17146
5520 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5521 * guile/lib/gdb/support.scm: New file.
5522 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5523 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5524 All uses updated.
5525 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5526 All uses updated.
5527 (%assert-type): Ditto, and renamed to assert-type.
5528 (%exception-print-style): Delete.
5529
4df42755
DE
55302014-07-26 Doug Evans <xdje42@gmail.com>
5531
5532 PR build/17105
5533 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5534 * configure: Regenerate.
5535 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5536 PYTHON_FILES.
5537 (PYTHON_FILES): New variable.
5538 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5539 (GUILE_FILES): New variable.
5540 (stamp-python, install-python, uninstall-python): Handle empty
5541 file list.
5542 (stamp-guile, install-guile, uninstall-guile): Ditto.
5543
ee7333ae
DE
55442014-07-26 Doug Evans <xdje42@gmail.com>
5545
5546 PR guile/17177
5547 * guile/lib/gdb.scm (pretty-printers): Export.
5548 (set-pretty-printers!): Export.
5549 * guile/lib/gdb/printing.scm (gdb module): Update.
5550 (prepend-pretty-printer!, append-pretty-printer!): Update.
5551 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5552 (pretty_printer_list_var): Delete.
5553 (pretty_printer_list): New static global.
5554 (gdbscm_pretty_printers): New function.
5555 (gdbscm_set_pretty_printers_x): New function.
5556 (ppscm_find_pretty_printer_from_gdb): Update.
5557 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5558 (gdbscm_initialize_pretty_printers): Update.
5559
74edf516
DE
55602014-07-26 Doug Evans <xdje42@gmail.com>
5561
5562 PR 17185
5563 * configure.ac: Add check for header gc/gc.h.
5564 Add check for function setenv.
5565 * configure: Regenerate.
5566 * config.in: Regenerate.
5567 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5568
d54398a7
MR
55692014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5570
5571 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5572 variation in gdbarch matching.
5573
ab16fce8
TT
55742014-07-25 Tom Tromey <tromey@redhat.com>
5575
5576 * exec.c (using_exec_ops): Remove.
5577 (exec_close_1): Update. Remove extraneous block, reindent.
5578 (add_target_sections): Use target_is_pushed.
5579
88056fbb
PA
55802014-07-25 Pedro Alves <palves@redhat.com>
5581
5582 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5583 * monitor.c (monitor_create_inferior): Likewise.
5584 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5585 * remote-sim.c (gdbsim_create_inferior): Likewise.
5586 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5587 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5588 * windows-nat.c (do_initial_windows_stuff): Likewise.
5589
70509625
PA
55902014-07-25 Pedro Alves <palves@redhat.com>
5591
5592 * NEWS: Mention signal passing and "signal" command changes.
5593 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5594 comment.
5595 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5596 call.
5597 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5598 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5599 (jump_command): Adjust clear_proceed_status call.
5600 (signal_command): Warn if other thread that are resumed have
5601 signals that will be delivered. Adjust clear_proceed_status call.
5602 (until_next_command, finish_command)
5603 (proceed_after_attach_callback, attach_command_post_wait)
5604 (attach_command): Adjust clear_proceed_status call.
5605 * infrun.c (proceed_after_vfork_done): Likewise.
5606 (proceed_after_attach_callback): Adjust comment.
5607 (clear_proceed_status_thread): Clear stop_signal if not in pass
5608 state.
5609 (clear_proceed_status_callback): Delete.
5610 (clear_proceed_status): New 'step' parameter. Only clear the
5611 proceed status of threads the command being prepared is about to
5612 resume.
5613 (proceed): If passed in an explicit signal, override stop_signal
5614 with it. Don't pass the last stop signal to the thread we're
5615 resuming.
5616 (init_wait_for_inferior): Adjust clear_proceed_status call.
5617 (switch_back_to_stepped_thread): Clear the signal if it should not
5618 be passed.
5619 * infrun.h (clear_proceed_status): New 'step' parameter.
5620 (user_visible_resume_ptid): Add comment.
5621 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5622 signal is in pass state.
5623 * remote.c (append_pending_thread_resumptions): Likewise.
5624 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5625
d8be2939
TT
56262014-07-25 Tom Tromey <tromey@redhat.com>
5627
5628 * target.h (target_stopped_data_address)
5629 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5630 parentheses.
5631
7d0d9d2b
PL
56322014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5633
5634 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5635 comments.
5636 (avr_pointer_to_address): Likewise.
5637
e9e7f724
TT
56382014-07-24 Tom Tromey <tromey@redhat.com>
5639
5640 * monitor.c (compile_pattern): Update.
5641 * target.h (struct target_ops) <to_shortname, to_longname,
5642 to_doc>: Now const.
5643
1947513d
TT
56442014-07-24 Tom Tromey <tromey@redhat.com>
5645
5646 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5647 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5648 (add_info_alias, add_com): Make "doc" const.
5649 (print_doc_line): Make "str" const.
5650 (delete_cmd): Update.
5651 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5652 (print_doc_line): Update.
5653 * cli/cli-script.c (document_command): Update.
5654 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5655 (add_com, add_info, add_info_alias): Update.
5656 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5657 * python/py-cmd.c (cmdpy_destroyer): Update.
5658
64e61d29
TT
56592014-07-24 Tom Tromey <tromey@redhat.com>
5660
5661 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5662 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5663 (help_cmd_list): Constify.
5664 (lookup_cmd): Update.
5665 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5666 const.
5667 (help_cmd_list, apropos_cmd): Update.
5668 * cli/cli-script.c (show_user): Update.
5669 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5670 * cli/cli-setshow.h (cmd_show_list): Update.
5671 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5672 (cmd_show_list): Update.
5673 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5674 * python/py-cmd.c (cmdpy_destroyer): Update.
5675
429e55ea
TT
56762014-07-24 Tom Tromey <tromey@redhat.com>
5677
5678 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5679 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5680 const.
5681 * command.h (deprecate_cmd): Update.
5682 * maint.c (maintenance_do_deprecate): Add casts.
5683
64669f3b
TT
56842014-07-24 Tom Tromey <tromey@redhat.com>
5685
5686 * cli/cli-decode.c (help_cmd): Make parameter "const".
5687 * cli/cli-decode.h (help_cmd): Update.
5688
d3d3328b
TT
56892014-07-24 Tom Tromey <tromey@redhat.com>
5690
5691 * stack.c (up_silently_base, down_silently_base): Make argument
5692 const.
5693
414842dc
TT
56942014-07-24 Tom Tromey <tromey@redhat.com>
5695
5696 * solib.c (solib_add): Make "pattern" const.
5697 * solib.h (solib_add): Update.
5698
baa336ce
TT
56992014-07-24 Tom Tromey <tromey@redhat.com>
5700
5701 * remote.c (remote_serial_open, print_packet, putpkt)
5702 (putpkt_binary): Constify.
5703 * remote.h (putpkt): Update.
5704
5a19e2d0
TT
57052014-07-24 Tom Tromey <tromey@redhat.com>
5706
5707 * monitor.c (monitor_open): Make "args" const.
5708 * monitor.h (monitor_open): Update.
5709
fc4baa5e
TT
57102014-07-24 Tom Tromey <tromey@redhat.com>
5711
5712 * maint.c (match_bfd_flags): Make "string" const.
5713 (print_bfd_section_info): Remove casts.
5714 (print_objfile_section_info): Make "string" const.
5715
0d5f0dbe
TT
57162014-07-24 Tom Tromey <tromey@redhat.com>
5717
5718 * inf-child.c (inf_child_open_target): Make "arg" const.
5719 * inf-child.h (inf_child_open_target): Update.
5720
41c77899
TT
57212014-07-24 Tom Tromey <tromey@redhat.com>
5722
5723 * environ.c (unset_in_environ): Make "var" const.
5724 * environ.h (unset_in_environ): Update.
5725
93db0d79
TT
57262014-07-24 Tom Tromey <tromey@redhat.com>
5727
5728 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5729 Make "cmd" const.
5730 (scan_filename_with_cleanup): Likewise.
5731 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5732 Make arguments const.
5733 (restore_command): Update.
5734
36d6eb95
PA
57352014-07-24 Pedro Alves <palves@redhat.com>
5736
5737 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5738
8009206a
TT
57392014-07-24 Tom Tromey <tromey@redhat.com>
5740 Gary Benson <gbenson@redhat.com>
5741
5742 * nat/linux-ptrace.c (additional_flags): New global.
5743 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5744 additional_flags; don't check GDBSERVER.
5745 (linux_ptrace_set_additional_flags): New function.
5746 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5747 Declare.
5748 * linux-nat.c (_initialize_linux_nat): Call
5749 linux_ptrace_set_additional_flags.
5750
a7068b60
TT
57512014-07-24 Tom Tromey <tromey@redhat.com>
5752
5753 * make-target-delegates (munge_type, write_debugmethod): New
5754 functions.
5755 (debug_names): New global.
5756 ($TARGET_DEBUG_PRINTER): New global.
5757 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5758 name.
5759 Write debug methods. Generate init_debug_target.
5760 * target-debug.h: New file.
5761 * target-delegates.c: Rebuild.
5762 * target.c: Include target-debug.h.
5763 (debug_target): Hoist definition.
5764 (target_kill, target_get_section_table, target_memory_map)
5765 (target_flash_erase, target_flash_done, target_detach)
5766 (target_disconnect, target_wait, target_resume)
5767 (target_pass_signals, target_program_signals, target_follow_fork)
5768 (target_mourn_inferior, target_search_memory)
5769 (target_thread_address_space, target_close)
5770 (target_find_new_threads, target_core_of_thread)
5771 (target_verify_memory, target_insert_mask_watchpoint)
5772 (target_remove_mask_watchpoint): Remove targetdebug code.
5773 (debug_to_post_attach, debug_to_prepare_to_store)
5774 (debug_to_files_info, debug_to_insert_breakpoint)
5775 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5776 (debug_to_region_ok_for_hw_watchpoint)
5777 (debug_to_can_accel_watchpoint_condition)
5778 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5779 (debug_to_watchpoint_addr_within_range)
5780 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5781 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5782 (debug_to_terminal_init, debug_to_terminal_inferior)
5783 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5784 (debug_to_terminal_save_ours, debug_to_terminal_info)
5785 (debug_to_load, debug_to_post_startup_inferior)
5786 (debug_to_insert_fork_catchpoint)
5787 (debug_to_remove_fork_catchpoint)
5788 (debug_to_insert_vfork_catchpoint)
5789 (debug_to_remove_vfork_catchpoint)
5790 (debug_to_insert_exec_catchpoint)
5791 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5792 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5793 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5794 (setup_target_debug): Call init_debug_target.
5795 * target.h (TARGET_DEBUG_PRINTER): New macro.
5796 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5797 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5798
2c51604d
GB
57992014-07-24 Gary Benson <gbenson@redhat.com>
5800
5801 * exceptions.h (throw_vfatal): Renamed to...
5802 (throw_vquit): New declaration.
5803 (throw_quit): Likewise.
5804 * exceptions.c (throw_vfatal): Renamed to...
5805 (throw_vquit): New function.
5806 (throw_quit): Likewise.
5807 (throw_error): Call throw_verror rather than throw_it.
5808 * utils.h (vfatal): Removed.
5809 (fatal): Likewise.
5810 * utils.c (vfatal): Removed.
5811 (fatal): Likewise.
5812 (internal_verror): Replaced call to fatal with call to throw_quit.
5813 (quit): Replaced calls to fatal with calls to throw_quit.
5814
34211963
ME
58152014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5816
5817 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5818 target_read_code.
5819
a52b4d3e
ME
58202014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5821
5822 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5823 less than zero in conditional expression.
5824
a8bdc56b
TT
58252014-07-23 Tom Tromey <tromey@redhat.com>
5826
5827 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5828 ($INTRO_PART): Don't match whitespace.
5829 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5830 argument matching.
5831 ($METHOD): Add $METHOD_TRAILER.
5832 (trim): Rewrite.
5833 (scan_target_h): New sub.
5834 Change main loop not to collect state.
5835 * target-delegates.c: Rebuild.
5836
91b52240
GB
58372014-07-23 Gary Benson <gbenson@redhat.com>
5838
5839 * cp-support.c (gdb_demangle): Fix build on systems without
5840 sigaltstack.
5841
45326f6f
JK
58422014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5845 for reference entry value target data value.
5846
e214cf6c
JK
58472014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5850 value_available_contents_eq.
5851
bddbbedd
PA
58522014-07-22 Pedro Alves <palves@redhat.com>
5853
5854 * value.c (allocate_optimized_out_value): Don't mark value as
5855 non-lazy.
5856
45c71484
JW
58572014-07-22 Jiong Wang <jiong.wang@arm.com>
5858
5859 * MAINTAINERS (Write After Approval): Update my email address.
5860
9597b22a
DE
58612014-07-20 Doug Evans <dje@google.com>
5862
5863 PR server/17147
5864 * remote.c (putpkt_binary): Add text to error message.
5865
91101fe5
YQ
58662014-07-20 Yao Qi <yao@codesourcery.com>
5867
5868 * eval.c: Remove "Chill" from comments.
5869 * gdbtypes.h: Likewise.
5870 * symtab.h: Likewise.
5871
c9402c95
YQ
58722014-07-20 Yao Qi <yao@codesourcery.com>
5873
5874 * std-operator.def: Update comments to TERNOP_SLICE.
5875
ae8fddda
YQ
58762014-07-20 Yao Qi <yao@codesourcery.com>
5877
5878 * std-operator.def: Remove BINOP_RANGE.
5879 * breakpoint.c (watchpoint_exp_is_const): Update.
5880 * expprint.c (dump_subexp_body_standard): Likewise.
5881 * eval.c (init_array_element): Remove dead code.
5882 (evaluate_subexp_standard): Likewise.
5883
9c816640
YQ
58842014-07-20 Yao Qi <yao@codesourcery.com>
5885
5886 * std-operator.def: Remove BINOP_IN.
5887 * breakpoint.c (watchpoint_exp_is_const): Update.
5888 * eval.c (evaluate_subexp_standard): Likewise.
5889 * expprint.c (dump_subexp_body_standard): Likewise.
5890
164224e9
ME
58912014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5892
5893 * microblaze-tdep.c (microblaze_register_names): Add
5894 the rshr and rslr register names.
5895 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5896 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5897 Use of tdesc_numbered_register. Use of
5898 microblaze_register_g_packet_guesses. Use of
5899 tdesc_use_registers. Use of set_gdbarch_register_type.
5900 (microblaze_register_g_packet_guesses): New.
5901 * microblaze-tdep.h (microblaze_reg_num): Add
5902 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5903 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5904 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5905 * features/microblaze-core.xml: New file.
5906 * features/microblaze-stack-protect.xml: New file.
5907 * features/microblaze-with-stack-protect.c: New file.
5908 * features/microblaze-with-stack-protect.xml: New file.
5909 * features/microblaze.xml: New file.
5910 * features/microblaze.c: New file.
5911 * features/Makefile (microblaze-with-stack-protect): Add
5912 microblaze-with-stack-protect microblaze and microblaze-expedite.
5913 * regformats/microblaze-with-stack-protect.dat: New file.
5914 * regformats/microblaze.dat: New file.
5915 * doc/gdb.texinfo (MicroBlaze Features): Added.
5916
e8b2341c
TT
59172014-07-18 Tom Tromey <tromey@redhat.com>
5918
5919 * exec.c (exec_ops): Now static.
5920 * exec.h (exec_ops): Don't declare.
5921
44e89118
TT
59222014-07-18 Tom Tromey <tromey@redhat.com>
5923
5924 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5925 to find_target_beneath.
5926 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5927 find_target_beneath.
5928 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5929
b0ed115f
TT
59302014-07-18 Tom Tromey <tromey@redhat.com>
5931
5932 PR gdb/17130:
5933 * utils.c (quit): Use target_supports_terminal_ours.
5934 * target.h (target_supports_terminal_ours): Declare.
5935 * target.c (target_supports_delete_record): Don't check
5936 to_delete_record against NULL.
5937 (target_supports_terminal_ours): New function.
5938
e75fdfca
TT
59392014-07-18 Tom Tromey <tromey@redhat.com>
5940
5941 PR gdb/17130:
5942 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5943 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5944 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5945 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5946 * windows-nat.c (windows_xfer_partial): Always delegate.
5947 * record-btrace.c (record_btrace_xfer_partial): Simplify
5948 delegation.
5949 (record_btrace_fetch_registers, record_btrace_store_registers)
5950 (record_btrace_prepare_to_store, record_btrace_resume)
5951 (record_btrace_wait, record_btrace_find_new_threads)
5952 (record_btrace_thread_alive): Likewise.
5953 * procfs.c (procfs_xfer_partial): Always delegate.
5954 * corelow.c (core_xfer_partial): Always delegate.
5955 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5956
83814951
TT
59572014-07-18 Tom Tromey <tromey@redhat.com>
5958
5959 * exec.c (exec_make_note_section): Move earlier.
5960
b8b8facf
DE
59612014-07-17 Doug Evans <dje@google.com>
5962
74b49205 5963 PR gdb/17170
b8b8facf
DE
5964 * maint.c (count_symtabs_and_blocks): Handle NULL
5965 current_program_space.
5966 (report_command_stats): Check global enabled flag in addition to
5967 recorded enabled flag.
5968 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5969
69ff6be5
PA
59702014-07-16 Pedro Alves <palves@redhat.com>
5971
5972 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5973
252db1b5
TT
59742014-07-16 Tom Tromey <tromey@redhat.com>
5975
5976 * target.h (struct target_ops) <to_delete_record>: Reformat
5977 comment.
5978
a432721e
TT
59792014-07-16 Tom Tromey <tromey@redhat.com>
5980
5981 * target-delegates.c: Rebuild.
5982
487d9753
PL
59832014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5984
5985 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5986 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5987 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5988 (avr_pointer_to_address): Likewise.
5989 (avr_address_class_type_flags): New function.
5990 (avr_address_class_type_flags_to_name): Likewise.
5991 (avr_address_class_name_to_type_flags): Likewise.
5992 (avr_gdbarch_init): Set address_class_type_flags,
5993 address_class_type_flags_to_name and
5994 address_class_name_to_type_flags.
5995
57745c90
PA
59962014-07-15 Pedro Alves <palves@redhat.com>
5997
5998 * linux-nat.c (kill_callback): Save errno and work with saved
5999 copy.
6000
2d40be18
SM
60012014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6002
6003 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6004
572f6555
EBM
60052014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6006
6007 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6008 breakpoint support correctly.
6009
cc1c52ad
PA
60102014-07-14 Pedro Alves <palves@redhat.com>
6011
6012 * utils.c (prompt_for_continue): Call target_terminal_ours.
6013
1e973570
PA
60142014-07-14 Pedro Alves <palves@redhat.com>
6015
6016 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6017 catch_errors. Don't re-enable stdin or notify observers where,
6018 and rethrow error.
6019 (fetch_inferior_event_wrapper): Delete.
6020
93d6eb10
PA
60212014-07-14 Pedro Alves <palves@redhat.com>
6022
6023 PR gdb/17072
6024 * top.c: Include "inf-loop.h".
6025 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6026 field.
6027 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6028 was async before.
6029 (gdb_readline_wrapper): Store whether the target is async, and
6030 make it sync.
6031
0017922d
PA
60322014-07-14 Pedro Alves <palves@redhat.com>
6033
6034 PR gdb/17072
6035 * top.c (gdb_readline_wrapper_line): Tweak comment.
6036 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6037 the input handler callback.
6038
94696ad3
PA
60392014-07-14 Pedro Alves <palves@redhat.com>
6040
6041 PR gdb/17072
6042 * main.c: Include event-top.h.
6043 (handle_command_errors): New function.
6044 (catch_command_errors, catch_command_errors_const): Use it.
6045
9d1e69a2
PA
60462014-07-14 Pedro Alves <palves@redhat.com>
6047
6048 * exceptions.c (catch_command_errors, catch_command_errors_const):
6049 Moved to main.c.
6050 * exceptions.h (catch_command_errors_ftype)
6051 (catch_command_errors_const_ftype): Moved to main.c.
6052 (catch_command_errors, catch_command_errors_const): Delete
6053 declarations.
6054 * main.c (catch_command_errors_ftype)
6055 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6056 (catch_command_errors, catch_command_errors_const)): Moved here
6057 from exceptions.c and make static.
6058
feefc97b
PA
60592014-07-14 Pedro Alves <palves@redhat.com>
6060
6061 * exceptions.c (print_any_exception): Delete.
6062 (catch_exceptions_with_msg): Use exception_print instead of
6063 print_any_exception.
6064 (catch_errors): Use exception_fprintf instead of
6065 print_any_exception.
6066 (catch_command_errors, catch_command_errors_const): Use
6067 exception_print instead of print_any_exception.
6068
c933f875
PA
60692014-07-14 Pedro Alves <palves@redhat.com>
6070
6071 * infcall.c (run_inferior_call): Set 'sync_execution' while
6072 running the inferior call.
6073
feb6f816
PA
60742014-07-14 Pedro Alves <palves@redhat.com>
6075
6076 * value.c (value_contents_equal): Delete function.
6077 * value.h (value_contents_equal): Delete declaration.
6078
d98b7a16
TT
60792014-07-14 Tom Tromey <tromey@redhat.com>
6080
6081 PR exp/17106:
6082 * gdbtypes.c (is_dynamic_type_internal): New function, from
6083 is_dynamic_type.
6084 (is_dynamic_type): Rewrite.
6085 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6086 (resolve_dynamic_struct): Likewise.
6087 (resolve_dynamic_type_internal): New function, from
6088 resolve_dynamic_type.
6089 (resolve_dynamic_type): Rewrite.
6090
548740d6
TT
60912014-07-14 Tom Tromey <tromey@redhat.com>
6092
6093 * target.c (target_require_runnable): Also check record_stratum.
6094 Update comment.
6095
808f7ab1
YQ
60962014-07-11 Yao Qi <yao@codesourcery.com>
6097
6098 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6099 thumb_instruction_restores_sp return true.
6100
540314bd
YQ
61012014-07-11 Yao Qi <yao@codesourcery.com>
6102
6103 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6104 (thumb_in_function_epilogue_p): Call
6105 thumb_instruction_restores_sp.
6106
1db01f22
YQ
61072014-07-11 Yao Qi <yao@codesourcery.com>
6108
6109 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6110 'add sp, #imm'.
6111 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6112
3116063b
GB
61132014-07-11 Gary Benson <gbenson@redhat.com>
6114
6115 * amd64-linux-nat.c (gdbcore.h): Remove include.
6116 (regset.h): Likewise.
6117 (nat/linux-btrace.h): Likewise.
6118 (btrace.h): Likewise.
6119 (gdb_assert.h): Likewise.
6120 (string.h): Likewise.
6121 (sys/uio.h): Likewise.
6122 (sys/debugreg.h): Likewise.
6123 (sys/syscall.h): Likewise.
6124 (sys/procfs.h): Likewise.
6125 (sys/user.h): Likewise.
6126 (asm/ptrace.h): Likewise.
6127 (i386-nat.h): Likewise.
6128 * i386-linux-nat.c (i386-nat.h): Likewise.
6129 (regset.h): Likewise.
6130 (target.h): Likewise.
6131 (linux-nat.h): Likewise.
6132 (nat/linux-btrace.h): Likewise.
6133 (btrace.h): Likewise.
6134 (gdb_assert.h): Likewise.
6135 (string.h): Likewise.
6136 (sys/uio.h): Likewise.
6137 (sys/user.h): Likewise.
6138 (sys/procfs.h): Likewise.
6139 (sys/reg.h): Likewise.
6140 (sys/debugreg.h): Likewise.
6141 (ORIG_EAX): Remove definition.
6142
040baaf6
GB
61432014-07-11 Gary Benson <gbenson@redhat.com>
6144
6145 * i386-linux-nat.h: New file.
6146 * x86-linux-nat.h: Likewise.
6147 * x86-linux-nat.c: Likewise.
6148 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6149 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6150 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6151 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6152 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6153 (PTRACE_SETREGSET): Likewise.
6154 (arch_lwp_info): Now in x86-linux-nat.c.
6155 (have_ptrace_getregset): Now in x86-linux-nat.h.
6156 (x86_linux_dr_get): Now in x86-linux-nat.c.
6157 (x86_linux_dr_set): Likewise.
6158 (x86_linux_dr_get_addr): Likewise.
6159 (x86_linux_dr_get_control): Likewise.
6160 (x86_linux_dr_get_status): Likewise.
6161 (update_debug_registers_callback): Likewise.
6162 (x86_linux_dr_set_control): Likewise.
6163 (x86_linux_dr_set_addr): Likewise.
6164 (x86_linux_prepare_to_resume): Likewise.
6165 (x86_linux_new_thread): Likewise.
6166 (x86_linux_new_fork): Likewise.
6167 (x86_linux_get_thread_area): Likewise.
6168 (super_post_startup_inferior): Likewise.
6169 (x86_linux_child_post_startup_inferior): Likewise.
6170 (AMD64_LINUX_USER64_CS): Likewise.
6171 (AMD64_LINUX_X32_DS): Likewise.
6172 (x86_linux_read_description): Likewise.
6173 (x86_linux_enable_btrace): Likewise.
6174 (x86_linux_disable_btrace): Likewise.
6175 (x86_linux_teardown_btrace): Likewise.
6176 (x86_linux_read_btrace): Likewise.
6177 (x86_linux_create_target): Likewise.
6178 (x86_linux_add_target): Likewise.
6179 * i386-linux-nat.c (x86-linux-nat.h): New include.
6180 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6181 (PTRACE_SETREGSET): Likewise.
6182 (arch_lwp_info): Now in x86-linux-nat.c.
6183 (have_ptrace_getregset): Now in x86-linux-nat.h.
6184 (x86_linux_dr_get): Now in x86-linux-nat.c.
6185 (x86_linux_dr_set): Likewise.
6186 (x86_linux_dr_get_addr): Likewise.
6187 (x86_linux_dr_get_control): Likewise.
6188 (x86_linux_dr_get_status): Likewise.
6189 (update_debug_registers_callback): Likewise.
6190 (x86_linux_dr_set_control): Likewise.
6191 (x86_linux_dr_set_addr): Likewise.
6192 (x86_linux_prepare_to_resume): Likewise.
6193 (x86_linux_new_thread): Likewise.
6194 (x86_linux_new_fork): Likewise.
6195 (x86_linux_get_thread_area): Likewise.
6196 (super_post_startup_inferior): Likewise.
6197 (x86_linux_child_post_startup_inferior): Likewise.
6198 (AMD64_LINUX_USER64_CS): Likewise.
6199 (AMD64_LINUX_X32_DS): Likewise.
6200 (x86_linux_read_description): Likewise.
6201 (x86_linux_enable_btrace): Likewise.
6202 (x86_linux_disable_btrace): Likewise.
6203 (x86_linux_teardown_btrace): Likewise.
6204 (x86_linux_read_btrace): Likewise.
6205 (x86_linux_create_target): Likewise.
6206 (x86_linux_add_target): Likewise.
6207
1aa7e42c
GB
62082014-07-11 Gary Benson <gbenson@redhat.com>
6209
6210 * amd64-linux-nat.c: Comment and whitespace changes.
6211 * i386-linux-nat.c: Comment and whitespace changes.
6212
c1e246a0
GB
62132014-07-11 Gary Benson <gbenson@redhat.com>
6214
6215 * amd64-linux-nat.c (x86_linux_create_target): New function.
6216 (x86_linux_add_target): Likewise.
6217 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6218 * i386-linux-nat.c (x86_linux_create_target): New function.
6219 (x86_linux_add_target): Likewise.
6220 (_initialize_i386_linux_nat): Delegate to the above new functions.
6221
8c420b8d
GB
62222014-07-11 Gary Benson <gbenson@redhat.com>
6223
6224 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6225 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6226 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6227 (ps_get_thread_area): Delegate to the above.
6228
cb1da100
GB
62292014-07-11 Gary Benson <gbenson@redhat.com>
6230
6231 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6232 x86_linux_read_description. All uses updated. amd64-specific
6233 code conditionalized. Conditionalized i386-specific code added.
6234 Redundant cast removed.
6235 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6236 x86_linux_read_description. All uses updated. i386-specific
6237 code conditionalized. Conditionalized amd64-specific code added.
6238 One sizeof replaced with the actual type it is describing.
6239
2acf3cd0
GB
62402014-07-11 Gary Benson <gbenson@redhat.com>
6241
6242 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6243 x86_linux_dr_get. All uses updated.
6244 (amd64_linux_dr_set): Renamed to
6245 x86_linux_dr_set. All uses updated.
6246 (amd64_linux_dr_get_addr): Renamed to
6247 x86_linux_dr_get_addr. All uses updated.
6248 (amd64_linux_dr_get_control): Renamed to
6249 x86_linux_dr_get_control. All uses updated.
6250 (amd64_linux_dr_get_status): Renamed to
6251 x86_linux_dr_get_status. All uses updated.
6252 (amd64_linux_dr_set_control): Renamed to
6253 x86_linux_dr_set_control. All uses updated.
6254 (amd64_linux_dr_set_addr): Renamed to
6255 x86_linux_dr_set_addr. All uses updated.
6256 (amd64_linux_prepare_to_resume): Renamed to
6257 x86_linux_prepare_to_resume. All uses updated.
6258 (amd64_linux_new_thread): Renamed to
6259 x86_linux_new_thread. All uses updated.
6260 (amd64_linux_new_fork): Renamed to
6261 x86_linux_new_fork. All uses updated.
6262 (amd64_linux_child_post_startup_inferior): Renamed to
6263 x86_linux_child_post_startup_inferior. All uses updated.
6264 (amd64_linux_enable_btrace): Renamed to
6265 x86_linux_enable_btrace. All uses updated.
6266 (amd64_linux_disable_btrace): Renamed to
6267 x86_linux_disable_btrace. All uses updated.
6268 (amd64_linux_teardown_btrace): Renamed to
6269 x86_linux_teardown_btrace. All uses updated.
6270 (amd64_linux_read_btrace): Renamed to
6271 x86_linux_read_btrace. All uses updated.
6272 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6273 x86_linux_dr_get. All uses updated.
6274 (i386_linux_dr_set): Renamed to
6275 x86_linux_dr_set. All uses updated.
6276 (i386_linux_dr_get_addr): Renamed to
6277 x86_linux_dr_get_addr. All uses updated.
6278 (i386_linux_dr_get_control): Renamed to
6279 x86_linux_dr_get_control. All uses updated.
6280 (i386_linux_dr_get_status): Renamed to
6281 x86_linux_dr_get_status. All uses updated.
6282 (i386_linux_dr_set_control): Renamed to
6283 x86_linux_dr_set_control. All uses updated.
6284 (i386_linux_dr_set_addr): Renamed to
6285 x86_linux_dr_set_addr. All uses updated.
6286 (i386_linux_prepare_to_resume): Renamed to
6287 x86_linux_prepare_to_resume. All uses updated.
6288 (i386_linux_new_thread): Renamed to
6289 x86_linux_new_thread. All uses updated.
6290 (i386_linux_new_fork): Renamed to
6291 x86_linux_new_fork. All uses updated.
6292 (i386_linux_child_post_startup_inferior): Renamed to
6293 x86_linux_child_post_startup_inferior. All uses updated.
6294 (i386_linux_enable_btrace): Renamed to
6295 x86_linux_enable_btrace. All uses updated.
6296 (i386_linux_disable_btrace): Renamed to
6297 x86_linux_disable_btrace. All uses updated.
6298 (i386_linux_teardown_btrace): Renamed to
6299 x86_linux_teardown_btrace. All uses updated.
6300 (i386_linux_read_btrace): Renamed to
6301 x86_linux_read_btrace. All uses updated.
6302
b9c1d481
AS
63032014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6304
6305 * remote.c (extended_remote_post_attach): New function.
6306 (init_extended_remote_ops): Install it as to_post_attach method.
6307
7180e04a
PA
63082014-07-09 Pedro Alves <palves@redhat.com>
6309
6310 * infcmd.c (attach_command_post_wait): Don't call
6311 target_terminal_inferior here.
6312 (attach_command): Call it here instead.
6313
9a9a7608
AB
63142014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6317 field.
6318 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6319 from varobj.c, with additional checks.
6320 (c_varobj_ops): Fill in is_path_expr_parent field.
6321 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6322 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6323 field.
6324 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6325 ops method.
6326 (varobj_default_is_path_expr_parent): New function.
6327 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6328 (varobj_default_is_path_expr_parent): Declare new function.
6329
1f267ae3
MM
63302014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6331
6332 * infcmd.c (finish_backward): Turn internal error into normal error.
6333
b2ee242b
PA
63342014-07-07 Pedro Alves <palves@redhat.com>
6335
8a869bca 6336 PR gdb/17096
b2ee242b
PA
6337 * remote.c (async_handle_remote_sigint)
6338 (async_handle_remote_sigint_twice): Call
6339 gdb_call_async_signal_handler instead of
6340 mark_async_signal_handler.
6341
38e229b2
TT
63422014-07-07 Tom Tromey <tromey@redhat.com>
6343
6344 * target-delegates.c: Rebuild.
6345 * target.c (target_info_record): Remove.
6346 * record.c (info_record_command): Unconditionally call
6347 to_info_record.
6348 * target.h (struct target_ops) <to_info_record>: Use
6349 TARGET_DEFAULT_IGNORE.
6350 (target_info_record): Remove.
6351
f0f9ff95
TT
63522014-07-07 Tom Tromey <tromey@redhat.com>
6353
6354 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6355 TARGET_DEFAULT_NORETURN.
6356 * target.c (generic_tls_error): New function.
6357 (target_translate_tls_address): Don't search target stack.
6358 * target-delegates.c: Rebuild.
6359 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6360 stack.
6361 * linux-thread-db.c (thread_db_get_thread_local_address):
6362 Unconditionally call beneath target.
6363
4a5be5ee
MK
63642014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6365
6366 * cli/cli-logging.c (pop_output_files): Assign targerr to
6367 gdb_stdtargerr.
6368
92c3b204
AB
63692014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 * MAINTAINERS (Write After Approval): Update my email address.
6372
9b11e3a7
GB
63732014-07-02 Gary Benson <gbenson@redhat.com>
6374
6375 * proc-service.c (ps_xfer_memory): Update comment.
6376 (ps_pstop): Remove unused function.
6377 (ps_pcontinue): Likewise.
6378 (ps_lstop): Likewise.
6379 (ps_lcontinue): Likewise.
6380 (ps_lgetxregsize): Likewise.
6381 (ps_lgetxregs): Likewise.
6382 (ps_lsetxregs): Likewise.
6383 (ps_plog): Likewise.
6384 (ps_ptread): Likewise.
6385 (ps_ptwrite): Likewise.
6386
cf363f18
MW
63872014-07-01 Mark Wielaard <mjw@redhat.com>
6388
6389 * dwarf2read.c (add_array_cv_type): New function.
6390 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6391 (read_tag_volatile_type): Likewise.
6392
82ae6c8d
TT
63932014-07-01 Tom Tromey <tromey@redhat.com>
6394
6395 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6396 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6397 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6398 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6399 * command.h (cmd_cfunc_ftype): Move earlier.
6400 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6401 (add_com, add_info): Use cmd_cfunc_ftype.
6402
96142726
TT
64032014-06-30 Tom Tromey <tromey@redhat.com>
6404
6405 * symtab.c (operator_chars): Make parameters and return type
6406 const.
6407 (file_matches): Make "files" const.
6408 (struct search_symbols_data) <files>: Now const.
6409 (search_symbols): Make "regexp" and "files" parameters const.
6410 Update.
6411 (symtab_symbol_info): Remove cast.
6412 (rbreak_command): Update.
6413 * symtab.h (search_symbols): Update.
6414
b67a2c6f
YQ
64152014-06-27 Yao Qi <yao@codesourcery.com>
6416
6417 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6418 Change parameter type to 'struct thread_info *'. Caller
6419 updated.
6420 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6421 Update declaration.
6422 * dummy-frame.c (struct dummy_frame_id): New.
6423 (dummy_frame_id_eq): New function.
6424 (struct dummy_frame) <id>: Change its type to 'struct
6425 dummy_frame_id'.
6426 (dummy_frame_push): Add parameter ptid and save it in
6427 dummy_frame_id.
6428 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6429 inferior_ptid.
6430 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6431 to inferior_ptid.
6432 (lookup_dummy_frame): Change parameter type to 'struct
6433 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6434 instead of frame_id_eq.
6435 (dummy_frame_pop): Add parameter ptid. Callers updated.
6436 Update comments. Compose dummy_frame_id and pass it to
6437 lookup_dummy_frame.
6438 (dummy_frame_discard): Add parameter ptid.
6439 (dummy_frame_sniffer): Compose dummy_frame_id and call
6440 dummy_frame_id_eq instead of frame_id_eq.
6441 (fprint_dummy_frames): Print ptid.
6442 * dummy-frame.h: Remove comments.
6443 (dummy_frame_push): Add ptid in declaration.
6444 (dummy_frame_pop, dummy_frame_discard): Likewise.
6445
5b10184c
TT
64462014-06-26 Tom Tromey <tromey@redhat.com>
6447
6448 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6449 * command.h (error_no_arg): Update.
6450
06900326
TT
64512014-06-26 Tom Tromey <tromey@redhat.com>
6452
6453 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6454 (do_show_command): Make "arg" const.
6455 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6456
c2bcbb1d
TT
64572014-06-26 Tom Tromey <tromey@redhat.com>
6458
6459 * record-full.c (record_full_get_bookmark): Make "args" const.
6460 (record_full_goto_bookmark): Make "raw_bookmark" const.
6461 * record.c (record_goto): New function.
6462 (cmd_record_goto): Use it. Now static.
6463 * record.h (record_goto): Declare.
6464 (cmd_record_goto): Remove declaration.
6465 * target-delegates.c: Rebuild.
6466 * target.h (struct target_ops) <to_get_bookmark,
6467 to_goto_bookmark>: Make parameter const.
6468
9cbe5fff
TT
64692014-06-26 Tom Tromey <tromey@redhat.com>
6470
6471 * defs.h (generic_load): Update.
6472 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6473 * monitor.c (monitor_load): Make "args" const.
6474 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6475 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6476 const.
6477 (mips_load): Make "file" const.
6478 * remote-sim.c (gdbsim_load): Make "args" const.
6479 * remote.c (remote_load): Make "name" const.
6480 * symfile.c (generic_load): Make "args" const.
6481 * target-delegates.c: Rebuild.
6482 * target.c (target_load): Make "arg" const.
6483 (debug_to_load): Make "args" const.
6484 * target.h (struct target_ops) <to_load>: Make parameter const.
6485 (target_load): Update.
6486
34a68019
TT
64872014-06-26 Tom Tromey <tromey@redhat.com>
6488
6489 PR symtab/16902:
6490 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6491 (dwarf2_physname, read_partial_die)
6492 (guess_partial_die_structure_name, fixup_partial_die)
6493 (guess_full_die_structure_name, anonymous_struct_prefix)
6494 (dwarf2_name): Use per-BFD obstack.
6495
efc889c1
YQ
64962014-06-26 Yao Qi <yao@codesourcery.com>
6497
6498 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6499 dummyframe and this_id into inner block below.
6500
4395285e
YQ
65012014-06-26 Yao Qi <yao@codesourcery.com>
6502
6503 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6504 with "signal_pass[0]" in the initialization of signal_pass.
6505
aef92902
MM
65062014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6507
6508 * record-btrace.c (record_btrace_generating_corefile)
6509 (record_btrace_prepare_to_generate_core)
6510 (record_btrace_done_generating_core): New.
6511 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6512 (record_btrace_store_registers, record_btrace_prepare_to_store):
6513 Forward request when generating a core file.
6514 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6515 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6516 to_done_generating_core.
6517
5fff78c4
MM
65182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6519
6520 * target.h (target_ops) <to_prepare_to_generate_core>
6521 <to_done_generating_core>: New.
6522 (target_prepare_to_generate_core, target_done_generating_core): New.
6523 * target.c (target_prepare_to_generate_core)
6524 (target_done_generating_core): New.
6525 * target-delegates.c: Regenerate.
6526 * gcore.c: (write_gcore_file): Rename to ...
6527 (write_gcore_file_1): ...this.
6528 (write_gcore_file): Call target_prepare_to_generate_core
6529 and target_done_generating_core.
6530
1d1f1ccb
MM
65312014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6532
6533 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6534 * gcore.c (write_gcore_file): Free memory returned from
6535 make_corefile_notes.
6536 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6537 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6538
3343ef86
YQ
65392014-06-24 Yao Qi <yao@codesourcery.com>
6540
6541 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6542 (arm_linux_init_abi): Set skip_trampoline_code with
6543 gdbarch_skip_trampoline_code instead of
6544 find_solib_trampoline_target.
6545
18d18ac8
YQ
65462014-06-24 Yao Qi <yao@codesourcery.com>
6547
6548 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6549 arm_skip_bx_reg returns non-zero.
6550
80d8d390
YQ
65512014-06-24 Yao Qi <yao@codesourcery.com>
6552
6553 * arm-tdep.c (arm_skip_bx_reg): New function.
6554 (arm_skip_stub): Call arm_skip_bx_reg.
6555
6a18a01c
DB
65562014-06-23 Don Breazeal <donb@codesourcery.com>
6557
6558 * MAINTAINERS: Add myself as write-after-approval maintainer.
6559
8e9db26e
PA
65602014-06-23 Pedro Alves <palves@redhat.com>
6561
6562 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6563 DR_CONTROL before setting DR0..DR3.
6564 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6565 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6566 bits of DR_CONTROL related to the debug register slot being
6567 disabled. If all slots are vacant, clear local slowdown as well,
6568 and assert DR_CONTROL is 0.
6569
70afc5b7
SC
65702014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6571
6572 * python/lib/gdb/command/xmethods.py
6573 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6574 current progspace only if the string "progspace" matches LOCUS_RE.
6575
840ed64d
JK
65762014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6577
6578 Fix --with-system-readline with readline-6.3 patch 5.
6579 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6580 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6581 types.
6582
26f2dc30
TT
65832014-06-20 Tom Tromey <tromey@redhat.com>
6584
6585 * dwarf2read.c (dw2_get_real_path): Use correct type in
6586 OBSTACK_CALLOC.
6587 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6588
125f8a3d
GB
65892014-06-20 Gary Benson <gbenson@redhat.com>
6590
6591 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6592 * common/glibc_thread_db.h: Likewise.
6593 * common/i386-cpuid.h: Likewise.
6594 * common/i386-gcc-cpuid.h: Likewise.
6595 * common/linux-btrace.h: Likewise.
6596 * common/linux-osdata.h: Likewise.
6597 * common/linux-procfs.h: Likewise.
6598 * common/linux-ptrace.h: Likewise.
6599 * common/mips-linux-watch.h: Likewise.
6600 * common/linux-btrace.c: Moved to nat.
6601 * common/linux-osdata.c: Likewise.
6602 * common/linux-procfs.c: Likewise.
6603 * common/linux-ptrace.c: Likewise.
6604 * common/mips-linux-watch.c: Likewise.
6605 * nat/gdb_thread_db.h: Moved from common.
6606 * nat/glibc_thread_db.h: Likewise.
6607 * nat/i386-cpuid.h: Likewise.
6608 * nat/i386-gcc-cpuid.h: Likewise.
6609 * nat/linux-btrace.c: Likewise.
6610 * nat/linux-btrace.h: Likewise.
6611 * nat/linux-osdata.c: Likewise.
6612 * nat/linux-osdata.h: Likewise.
6613 * nat/linux-procfs.c: Likewise.
6614 * nat/linux-procfs.h: Likewise.
6615 * nat/linux-ptrace.c: Likewise.
6616 * nat/linux-ptrace.h: Likewise.
6617 * nat/mips-linux-watch.c: Likewise.
6618 * nat/mips-linux-watch.h: Likewise.
6619 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6620 (object file files): Reordered.
6621 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6622 of glibc_thread_db.h.
6623
42995dbd
GB
66242014-06-20 Gary Benson <gbenson@redhat.com>
6625
6626 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6627 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6628 (i386_dr_low): Likewise.
6629 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6630 (i386_dr_low_set_addr): Likewise.
6631 (i386_dr_low_get_addr): Likewise.
6632 (i386_dr_low_can_set_control): Likewise.
6633 (i386_dr_low_set_control): Likewise.
6634 (i386_dr_low_get_control): Likewise.
6635 (i386_dr_low_get_status): Likewise.
6636 (i386_get_debug_register_length): Likewise.
6637 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6638 (i386_dr_low): Likewise.
6639 * nat/i386-dregs.c (i386-low.h): Remove include.
6640 (i386-nat.h): Likewise.
6641 (nat/i386-dregs.h): New include.
6642 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6643 (i386_dr_low_set_addr): Likewise.
6644 (i386_dr_low_get_addr): Likewise.
6645 (i386_dr_low_can_set_control): Likewise.
6646 (i386_dr_low_set_control): Likewise.
6647 (i386_dr_low_get_control): Likewise.
6648 (i386_dr_low_get_status): Likewise.
6649 (i386_get_debug_register_length): Likewise.
6650 (debug_hw_points): Likewise.
6651
3ed9baed
IB
66522014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6653
6654 * Makefile.in (SFILES): Add d-exp.y.
6655 (YYFILES): Add d-exp.c.
6656 (YYOBJ): Add d-exp.o.
6657 (local-maintainer-clean): Delete d-exp.c.
6658 * d-exp.y: New file.
6659 * d-lang.h (d_parse): New declaration.
6660 (d_error): New declaration.
6661 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6662 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6663 PREC_ORDER operators.
6664 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6665
78c164b0
YQ
66662014-06-19 Yao Qi <yao@codesourcery.com>
6667
6668 * gdbthread.h (any_running): Remove the declaration.
6669 * thread.c (any_running): Remove.
6670
f6e29b6e
YQ
66712014-06-19 Yao Qi <yao@codesourcery.com>
6672
6673 * gdbthread.h (struct thread_info) <state>: Change its type to
6674 'enum thread_state'. Update comments.
6675
034f788c
PA
66762014-06-19 Pedro Alves <palves@redhat.com>
6677
6678 * gdbthread.h (ALL_THREADS): Delete.
6679 (ALL_NON_EXITED_THREADS): New macro.
6680 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6681 instead of ALL_THREADS.
6682 * infrun.c (find_thread_needs_step_over)
6683 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6684 instead of ALL_THREADS.
6685 * record-btrace.c (record_btrace_open)
6686 (record_btrace_stop_recording, record_btrace_close)
6687 (record_btrace_is_replaying, record_btrace_resume)
6688 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6689 * remote.c (append_pending_thread_resumptions): Likewise.
6690 * thread.c (thread_apply_all_command): Likewise.
6691
46e33252
GB
66922014-06-19 Gary Benson <gbenson@redhat.com>
6693
6694 * i386-nat.c (i386_stopped_by_watchpoint):
6695 Use i386_dr_stopped_by_watchpoint.
6696 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6697 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6698
3a8ee006
GB
66992014-06-19 Gary Benson <gbenson@redhat.com>
6700
6701 * nat/i386-dregs.c: New file.
6702 * Makefile.in (i386-dregs.o): New rule.
6703 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6704 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6705 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6706 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6707 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6708 * config/i386/go32.mh (NATDEPFILES): Likewise.
6709 * config/i386/linux.mh (NATDEPFILES): Likewise.
6710 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6711 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6712 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6713 * i386-nat.h (debug_hw_points): New declaration.
6714 * i386-nat.c (breakpoint.h): Remove include.
6715 (command.h): Likewise.
6716 (target.h): Likewise.
6717 (gdb_assert.h): Likewise.
6718 (debug_hw_points): Made nonstatic.
6719 (debug_printf): Now in i386-dregs.c.
6720 (TARGET_HAS_DR_LEN_8): Likewise.
6721 (DR_CONTROL_SHIFT): Likewise.
6722 (DR_CONTROL_SIZE): Likewise.
6723 (DR_RW_EXECUTE): Likewise.
6724 (DR_RW_WRITE): Likewise.
6725 (DR_RW_READ): Likewise.
6726 (DR_RW_IORW): Likewise.
6727 (DR_LEN_1): Likewise.
6728 (DR_LEN_2): Likewise.
6729 (DR_LEN_4): Likewise.
6730 (DR_LEN_8): Likewise.
6731 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6732 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6733 (DR_ENABLE_SIZE): Likewise.
6734 (DR_LOCAL_SLOWDOWN): Likewise.
6735 (DR_GLOBAL_SLOWDOWN): Likewise.
6736 (DR_CONTROL_RESERVED): Likewise.
6737 (I386_DR_CONTROL_MASK): Likewise.
6738 (I386_DR_VACANT): Likewise.
6739 (I386_DR_LOCAL_ENABLE): Likewise.
6740 (I386_DR_GLOBAL_ENABLE): Likewise.
6741 (I386_DR_DISABLE): Likewise.
6742 (I386_DR_SET_RW_LEN): Likewise.
6743 (I386_DR_GET_RW_LEN): Likewise.
6744 (I386_DR_WATCH_HIT): Likewise.
6745 (i386_wp_op_t): Likewise.
6746 (i386_show_dr): Likewise.
6747 (i386_length_and_rw_bits): Likewise.
6748 (i386_insert_aligned_watchpoint): Likewise.
6749 (i386_remove_aligned_watchpoint): Likewise.
6750 (i386_handle_nonaligned_watchpoint): Likewise.
6751 (i386_update_inferior_debug_regs): Likewise.
6752 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6753 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6754 (i386_region_ok_for_watchpoint):
6755 Use i386_dr_region_ok_for_watchpoint.
6756 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6757
322a8e06
GB
67582014-06-19 Gary Benson <gbenson@redhat.com>
6759
6760 * i386-nat.c (i386_insert_hw_breakpoint): Use
6761 i386_insert_watchpoint.
6762 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6763
8f26655c
GB
67642014-06-19 Gary Benson <gbenson@redhat.com>
6765
6766 * i386-nat.c (i386_dr_show): Renamed to
6767 i386_show_dr and made static. All uses updated.
6768 (i386_dr_length_and_rw_bits): Renamed to
6769 i386_length_and_rw_bits and made static.
6770 All uses updated.
6771 (i386_dr_insert_aligned_watchpoint): Renamed to
6772 i386_insert_aligned_watchpoint and made static.
6773 All uses updated.
6774 (i386_dr_remove_aligned_watchpoint): Renamed to
6775 i386_remove_aligned_watchpoint and made static.
6776 All uses updated.
6777 (i386_dr_update_inferior_debug_regs): Renamed to
6778 i386_update_inferior_debug_regs and made static.
6779 All uses updated.
6780 * nat/i386-dregs.h (i386_dr_show): Removed.
6781 (i386_dr_length_and_rw_bits): Likewise.
6782 (i386_dr_insert_aligned_watchpoint): Likewise.
6783 (i386_dr_remove_aligned_watchpoint): Likewise.
6784 (i386_dr_update_inferior_debug_regs): Likewise.
6785
992c7d70
GB
67862014-06-19 Gary Benson <gbenson@redhat.com>
6787
6788 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6789 * configure: Regenerate.
6790 * config.in: Likewise.
6791 * main.c (signal.h): New include.
6792 (setup_alternate_signal_stack): New function.
6793 (captured_main): Call the above.
6794 * cp-support.c (signal.h): New include.
6795 (catch_demangler_crashes): New flag.
6796 (SIGJMP_BUF): New define.
6797 (SIGSETJMP): Likewise.
6798 (SIGLONGJMP): Likewise.
6799 (gdb_demangle_jmp_buf): New static global.
6800 (gdb_demangle_attempt_core_dump): Likewise.
6801 (gdb_demangle_signal_handler): New function.
6802 (gdb_demangle): If catch_demangler_crashes is set, install the
6803 above signal handler before calling bfd_demangle, and restore
6804 the original signal handler afterwards. Display the offending
6805 symbol and call demangler_warning the first time a segmentation
6806 fault is caught.
6807 (_initialize_cp_support): New maint set/show command.
6808
eae7090b
GB
68092014-06-19 Gary Benson <gbenson@redhat.com>
6810
6811 * utils.h (resource_limit_kind): New enum.
6812 (can_dump_core): New declaration.
6813 (warn_cant_dump_core): Likewise.
6814 (dump_core): Likewise.
6815 * utils.c (dump_core): Made nonstatic. Added new
6816 parameter "limit_kind".
6817 (can_dump_core): Made nonstatic. Moved printing code to...
6818 (warn_cant_dump_core): New function.
6819 (can_dump_core_warn): Likewise.
6820 (internal_vproblem): Replace calls to can_dump_core with
6821 calls to can_dump_core_warn. Supply new argument to each.
6822
57fcfb1b
GB
68232014-06-19 Gary Benson <gbenson@redhat.com>
6824
6825 * utils.h (demangler_vwarning): New declaration.
6826 (demangler_warning): Likewise.
6827 * utils.c (struct internal_problem)
6828 <user_settable_should_quit>: New field.
6829 <user_settable_should_dump_core>: Likewise
6830 (internal_error_problem): Add values for above new fields.
6831 (internal_warning_problem): Likewise.
6832 (demangler_warning_problem): New static global.
6833 (demangler_vwarning): New function.
6834 (demangler_warning): Likewise.
6835 (add_internal_problem_command): Selectively add commands.
6836 (_initialize_utils): New internal problem command.
6837 * maint.c (maintenance_demangler_warning): New function.
6838 (_initialize_maint_cmds): New command.
6839
17a40b44
TT
68402014-06-18 Tom Tromey <tromey@redhat.com>
6841
6842 * f-valprint.c (info_common_command_for_block): Update.
6843 * symtab.h (struct general_symbol_info) <common_block>: Now
6844 const.
6845
346d1dfe
TT
68462014-06-18 Tom Tromey <tromey@redhat.com>
6847
6848 * symtab.h (struct symtab) <blockvector>: Now const.
6849 * ada-lang.c (ada_add_global_exceptions): Update.
6850 * buildsym.c (augment_type_symtab): Update.
6851 * dwarf2read.c (dw2_lookup_symbol): Update.
6852 * jit.c (finalize_symtab): Update.
6853 * jv-lang.c (add_class_symtab_symbol): Update.
6854 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6855 Update.
6856 * objfiles.c (objfile_relocate1): Update.
6857 * psymtab.c (lookup_symbol_aux_psymtabs)
6858 (maintenance_check_psymtabs): Update.
6859 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6860 Update.
6861 * spu-tdep.c (spu_catch_start): Update.
6862 * symmisc.c (dump_symtab_1): Update.
6863 * symtab.c (lookup_global_symbol_from_objfile)
6864 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6865 (basic_lookup_transparent_type_quick)
6866 (basic_lookup_transparent_type, find_pc_sect_symtab)
6867 (find_pc_sect_line, search_symbols): Update.
6868 * block.c (find_block_in_blockvector): Make "bl" const.
6869 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6870 const.
6871 (blockvector_contains_pc): Make "bv" const.
6872 (block_for_pc_sect): Update.
6873 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6874 (blockvector_contains_pc): Update.
6875 * breakpoint.c (resolve_sal_pc): Update.
6876 * inline-frame.c (block_starting_point_at): Update.
6877
1834676b
TT
68782014-06-18 Tom Tromey <tromey@redhat.com>
6879
6880 * completer.c (complete_line): Make "line_buffer" const.
6881 * completer.h (complete_line): Update.
6882
ac1a991b
TT
68832014-06-18 Tom Tromey <tromey@redhat.com>
6884
6885 * symtab.c (add_macro_name): Remove unneeded cast.
6886
5bc98e52
TT
68872014-06-18 Tom Tromey <tromey@redhat.com>
6888
6889 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6890 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6891
8236def8
TT
68922014-06-18 Tom Tromey <tromey@redhat.com>
6893
6894 * probe.c (info_probes_for_ops): Make "arg" const.
6895 * probe.h (info_probes_for_ops): Update.
6896
3977b71f
TT
68972014-06-18 Tom Tromey <tromey@redhat.com>
6898
6899 * varobj.c (varobj_create): Update.
6900 * valops.c (value_of_this): Update.
6901 * tracepoint.c (add_local_symbols, scope_info): Update.
6902 * symtab.h (struct general_symbol_info) <block>: Now const.
6903 * symtab.c (skip_prologue_sal)
6904 (default_make_symbol_completion_list_break_on)
6905 (skip_prologue_using_sal): Update.
6906 * stack.h (iterate_over_block_locals)
6907 (iterate_over_block_local_vars): Update.
6908 * stack.c (print_frame_args): Update.
6909 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6910 parameter const.
6911 (get_selected_block): Make return type const.
6912 * python/py-frame.c (frapy_block): Update.
6913 * python/py-block.c (gdbpy_block_for_pc): Update.
6914 * p-exp.y (%union) <bval>: Now const.
6915 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6916 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6917 * m2-exp.y (%union) <bval>: Now const.
6918 * linespec.c (get_current_search_block): Make return type const.
6919 (create_sals_line_offset, find_label_symbols): Update.
6920 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6921 Update.
6922 (block_starting_point_at): Make "block" const.
6923 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6924 (check_exception_resume): Update.
6925 * guile/scm-frame.c (gdbscm_frame_block): Update.
6926 * guile/scm-block.c (gdbscm_lookup_block): Update.
6927 * frame.h (get_frame_block): Update.
6928 (get_selected_block): Make return type const.
6929 * frame.c (frame_id_inner): Update.
6930 * f-valprint.c (info_common_command_for_block)
6931 (info_common_command): Update.
6932 * dwarf2loc.c (dwarf2_find_location_expression)
6933 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6934 (locexpr_describe_location_piece): Update.
6935 * c-exp.y (%union) <bval>: Now const.
6936 * breakpoint.c (resolve_sal_pc): Update.
6937 * blockframe.c (get_frame_block):Make return type const.
6938 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6939 (block_innermost_frame): Update.
6940 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6941 (block_for_pc, block_for_pc_sect): Update.
6942 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6943 'pblock' const.
6944 (block_for_pc_sect, block_for_pc): Make return type const.
6945 * ax-gdb.c (gen_expr): Update.
6946 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6947 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6948 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6949 (ada_read_var_value): Update.
6950 * ada-exp.y (struct name_info) <block>: Now const.
6951 (%union): Likewise.
6952 (block_lookup): Constify.
6953
b9228891
GB
69542014-06-18 Gary Benson <gbenson@redhat.com>
6955
6956 * nat/i386-dregs.h: New file.
6957 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6958 * i386-nat.h (i386-dregs.h): New include.
6959 (DR_FIRSTADDR): Now in i386-dregs.h.
6960 (DR_LASTADDR): Likewise.
6961 (DR_NADDR): Likewise.
6962 (DR_STATUS): Likewise.
6963 (DR_CONTROL): Likewise.
6964 (i386_debug_reg_state): Likewise.
6965 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6966
a1aa2221
LM
69672014-06-18 Don Breazeal <donb@codesourcery.com>
6968
6969 * breakpoint.c (set_longjmp_breakpoint): Call
6970 momentary_breakpoint_from_master with additional argument.
6971 (set_longjmp_breakpoint_for_call_dummy): Call
6972 momentary_breakpoint_from_master with additional argument.
6973 (set_std_terminate_breakpoint): Call
6974 momentary_breakpoint_from_master with additional argument.
6975 (momentary_breakpoint_from_master): Add argument to function
6976 definition and use it to initialize structure member flag.
74228e77 6977 (clone_momentary_breakpoint): Call
a1aa2221
LM
6978 momentary_breakpoint_from_master with additional argument.
6979 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6980 member flags set in momentary_breakpoint_from_master.
6981
4be83cc2
GB
69822014-06-18 Gary Benson <gbenson@redhat.com>
6983
6984 * i386-nat.c (i386_show_dr): Renamed to
6985 i386_dr_show and made nonstatic. All uses updated.
6986 (i386_length_and_rw_bits): Renamed to
6987 i386_dr_length_and_rw_bits and made nonstatic.
6988 All uses updated.
6989 (i386_insert_aligned_watchpoint): Renamed to
6990 i386_dr_insert_aligned_watchpoint and made nonstatic.
6991 All uses updated.
6992 (i386_remove_aligned_watchpoint): Renamed to
6993 i386_dr_remove_aligned_watchpoint and made nonstatic.
6994 All uses updated.
6995 (i386_update_inferior_debug_regs): Renamed to
6996 i386_dr_update_inferior_debug_regs and made nonstatic.
6997 All uses updated.
6998
131aa0d4
GB
69992014-06-18 Gary Benson <gbenson@redhat.com>
7000
7001 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7002 (i386_dr_low_can_set_control): Likewise.
7003 (i386_dr_low_set_addr): Likewise.
7004 (i386_dr_low_set_control): Likewise.
7005 (i386_dr_low_get_addr): Likewise.
7006 (i386_dr_low_get_status): Likewise.
7007 (i386_dr_low_get_control): Likewise.
7008 (i386_insert_aligned_watchpoint): Use new macros.
7009 (i386_update_inferior_debug_regs): Likewise.
7010 (i386_stopped_data_address): Likewise.
7011
d9305f7f
GB
70122014-06-18 Gary Benson <gbenson@redhat.com>
7013
7014 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7015 New parameter. All uses updated.
7016
ea008da4
GB
70172014-06-18 Gary Benson <gbenson@redhat.com>
7018
7019 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7020 All uses updated.
7021
1b6d4134
GB
70222014-06-18 Gary Benson <gbenson@redhat.com>
7023
7024 * i386-nat.c (debug_printf): New macro.
7025 (i386_get_debug_register_length): Likewise.
7026 (TARGET_HAS_DR_LEN_8): Use above macro.
7027 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7028 and printf_unfiltered. Use phex to format values.
7029
9b4550ef
GB
70302014-06-18 Gary Benson <gbenson@redhat.com>
7031
7032 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7033 Make const.
7034
6e62758f
GB
70352014-06-18 Gary Benson <gbenson@redhat.com>
7036
7037 * i386-nat.c: Comment changes.
7038
51c79e94
GB
70392014-06-18 Gary Benson <gbenson@redhat.com>
7040
7041 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7042
3e11889a
GB
70432014-06-18 Gary Benson <gbenson@redhat.com>
7044
7045 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7046 (i386_insert_aligned_watchpoint): Likewise.
7047 (i386_remove_aligned_watchpoint): Likewise.
7048 (i386_handle_nonaligned_watchpoint): Likewise.
7049
fc6e2f03
GB
70502014-06-18 Gary Benson <gbenson@redhat.com>
7051
7052 * i386-nat.c: Whitespace changes.
7053
2afe7d50
SB
70542014-06-17 Samuel Bronson <naesten@gmail.com>
7055
7056 * MAINTAINERS: Update Roland McGrath's email address.
7057 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7058 Red Hat a while ago, and giving me a current address.
2afe7d50 7059
3bca49ee
TT
70602014-06-17 Tom Tromey <tromey@redhat.com>
7061
7062 * utils.h (savestring): Remove declaration.
7063
6e366df1
TT
70642014-06-17 Tom Tromey <tromey@redhat.com>
7065
7066 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7067
6be47f0c
KS
70682014-06-16 Keith Seitz <keiths@redhat.com>
7069
7070 PR mi/15863
7071 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7072 to update the varobj if inferior_ptid is null_ptid.
7073
7bc112c1
TT
70742014-06-16 Tom Tromey <tromey@redhat.com>
7075
7076 * target.h (struct target_ops) <to_info_proc>: Make parameter
7077 const.
7078 (target_info_proc): Update.
7079 * target.c (target_info_proc): Make "args" const.
7080 * procfs.c (procfs_info_proc): Update.
7081 * linux-tdep.c (linux_info_proc): Update.
7082 (linux_core_info_proc_mappings): Make "args" const.
7083 (linux_core_info_proc): Update.
7084 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7085 * gdbarch.c: Rebuild.
7086 * gdbarch.h: Rebuild.
7087 * corelow.c (core_info_proc): Update.
7088
fee354ee
TT
70892014-06-16 Tom Tromey <tromey@redhat.com>
7090
7091 * target.h (struct target_ops) <to_disconnect>: Make parameter
7092 const.
7093 (target_disconnect): Update.
7094 * target.c (target_disconnect): Make "args" const.
7095 * target-delegates.c: Rebuild.
7096 * remote.c (remote_disconnect): Update.
7097 * record.h (record_disconnect): Update.
7098 * record.c (record_disconnect): Update.
7099 * inf-child.c (inf_child_disconnect): Update.
7100
a30bf1f1
TT
71012014-06-16 Tom Tromey <tromey@redhat.com>
7102
7103 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7104 * target.c (debug_to_rcmd, default_rcmd): Update.
7105 * target-delegates.c: Rebuild.
7106 * remote.c (remote_rcmd): Update.
7107 * monitor.c (monitor_rcmd): Update.
7108
d03de421
PA
71092014-06-16 Pedro Alves <palves@redhat.com>
7110
7111 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7112 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7113 have OBJF_SHARED set.
7114 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7115 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7116 instead of OBJF_USERLOADED.
7117 * objfiles.h (OBJF_SHARED): Update comment.
7118 (userloaded_objfile_contains_address_p): Rename to ...
7119 (shared_objfile_contains_address_p): ... this, and update
7120 comments.
7121 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7122 new objfile.
7123 (remove_symbol_file_command): Skip objfiles that don't have
7124 OBJF_SHARED set.
7125
99f4262f
TT
71262014-06-16 Tom Tromey <tromey@redhat.com>
7127
7128 * minsyms.h (prim_record_minimal_symbol)
7129 (prim_record_minimal_symbol_and_info): Update comments.
7130
97d66cc6
EZ
71312014-06-14 Eli Zaretskii <eliz@gnu.org>
7132
7133 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7134 or --without-guile, according to how GDB was built.
7135
635c7e8a
TT
71362014-06-13 Tom Tromey <tromey@redhat.com>
7137
7138 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7139 to help_list.
7140 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7141 to help_list.
7142 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7143 help_list.
7144 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7145 help_list.Pass all_commands, not -1, to help_list.
7146 * cli/cli-dump.c (dump_command, append_command)
7147 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7148 (binary_dump_command, binary_append_command): Pass all_commands,
7149 not -1, to help_list.
7150 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7151 -1, to help_list.
7152 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7153 -1, to help_list.
7154 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7155 help_list.
7156 * top.c (set_history): Pass all_commands, not -1, to help_list.
7157 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7158 all_commands, not -1, to help_list.
7159 * symfile.c (overlay_command): Pass all_commands, not -1, to
7160 help_list.
7161 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7162 help_list.
7163 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7164 help_list.
7165 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7166 -1, to help_list.
7167 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7168 not -1, to help_list.
7169 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7170 not -1, to help_list.
7171 * maint.c (maintenance_command, maintenance_info_command)
7172 (maintenance_print_command, maintenance_set_cmd): Pass
7173 all_commands, not -1, to help_list.
7174 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7175 help_list.
7176 * language.c (set_check): Pass all_commands, not -1, to help_list.
7177 * infcmd.c (unset_command): Pass all_commands, not -1, to
7178 help_list.
7179 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7180 help_list.
7181 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7182 help_list.
7183 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7184 help_list.
7185 * breakpoint.c (save_command): Pass all_commands, not -1, to
7186 help_list.
7187 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7188 all_commands, not -1, to help_list.
7189
b94ade42
PL
71902014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7191
7192 * regcache.c (struct register_to_invalidate): New structure.
7193 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7194 functions.
7195 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7196
31f628ae
YQ
71972014-06-12 Yao Qi <yao@codesourcery.com>
7198
7199 * varobj.c (varobj_get_num_children): Call
7200 varobj_is_dynamic_p.
7201 (varobj_list_children): Likewise.
7202 (varobj_update): Likewise. Update comments.
7203
cde5ef40
YQ
72042014-06-12 Yao Qi <yao@codesourcery.com>
7205
7206 * varobj.c (varobj_pretty_printed_p): Rename to ...
7207 (varobj_is_dynamic_p): ... this. New function.
7208 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7209 (varobj_is_dynamic_p): Declare.
7210 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7211 (mi_print_value_p, varobj_update_one): Likewise.
7212
576ea091
YQ
72132014-06-12 Pedro Alves <pedro@codesourcery.com>
7214 Yao Qi <yao@codesourcery.com>
7215
7216 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7217 (varobj_get_iterator): Wrap up code for pretty-printer by
7218 "#if HAVE_PYTHON" and "#endif".
7219 (update_dynamic_varobj_children): Likewise.
7220
827f100c
YQ
72212014-06-12 Pedro Alves <pedro@codesourcery.com>
7222 Yao Qi <yao@codesourcery.com>
7223
7224 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7225 gdb_python_initialized is false. Move some code from varobj.c.
7226 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7227 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7228 (struct varobj_item): Moved to varobj-iter.h".
7229 (varobj_clear_saved_item): New function.
7230 (update_dynamic_varobj_children): Move python-related code to
7231 py-varobj.c.
7232 (free_variable): Call varobj_clear_saved_item and
7233 varobj_iter_delete.
7234
e5250216
YQ
72352014-06-12 Pedro Alves <pedro@codesourcery.com>
7236 Yao Qi <yao@codesourcery.com>
7237
7238 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7239 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7240 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7241 (py-varobj.o): New rule.
7242 * python/py-varobj.c: New file.
7243 * python/python-internal.h (py_varobj_get_iterator): Declare.
7244 * varobj-iter.h: New file.
7245 * varobj.c: Include "varobj-iter.h"
7246 (struct varobj) <child_iter>: Change its type from "PyObject *"
7247 to "struct varobj_iter *".
7248 <saved_item>: Likewise.
7249 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7250 [HAVE_PYTHON] (varobj_get_iterator): New function.
7251 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7252 python-specific code to python/py-varobj.c.
7253 (install_visualizer): Call varobj_iter_delete instead of
7254 Py_XDECREF.
7255 * varobj.h (varobj_ensure_python_env): Declare.
7256
5a2e0d6e
YQ
72572014-06-12 Yao Qi <yao@codesourcery.com>
7258
7259 * varobj.c (struct varobj_item): New structure.
7260 (create_child_with_value): Update declaration.
7261 (varobj_add_child): Replace arguments 'name' and 'value' with
7262 'item'. All callers updated.
7263 (install_dynamic_child): Likewise.
7264 (update_dynamic_varobj_children): Likewise.
7265 (varobj_add_child): Likewise.
7266 (create_child_with_value): Likewise.
7267
919b9a93
JB
72682014-06-11 Joel Brobecker <brobecker@adacore.com>
7269
7270 * NEWS: Create a new section for the next release branch.
7271 Rename the section of the current branch, now that it has
7272 been cut.
7273
71a55bdf
JB
72742014-06-11 Joel Brobecker <brobecker@adacore.com>
7275
7276 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7277 * version.in: Bump version to 7.8.50.DATE-cvs.
7278
364fe1f7
PA
72792014-06-11 Pedro Alves <palves@redhat.com>
7280
7281 PR remote/17028
7282 * ser-mingw.c (net_windows_socket_check_pending): New function.
7283 (net_windows_select_thread): Ignore spurious wakeups. Use
7284 net_windows_socket_check_pending.
7285 (net_windows_wait_handle): Check for pending events with
7286 ioctlsocket, through net_windows_socket_check_pending, instead of
7287 checking the socket's event.
7288
5a6c7709
SC
72892014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7290
7291 * python/python-internal.h (gdb_PyObject_GetAttrString)
7292 (gdb_PyObject_HasAttrString): New inline function definitions.
7293 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7294 char * of the second argument to PyObject_GetAttrString.
74228e77 7295
0e58ee40
JB
72962014-06-10 Joel Brobecker <brobecker@adacore.com>
7297
7298 * serial.c (serial_write): Fix index of character to be printed
7299 in call to serial_logchar when serial debug traces are enabled.
7300
d190df30
JB
73012014-06-10 Joel Brobecker <brobecker@adacore.com>
7302
7303 * gdbtypes (resolve_dynamic_range): Add function description.
7304
b4b01d36
PA
73052014-06-09 Pedro Alves <palves@redhat.com>
7306
7307 * linux-nat.c (linux_child_follow_fork): Initialize status with
7308 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7309 inner block. Only pass the signal to PTRACE_DETACH if in pass
7310 state.
7311
3657956b
GB
73122014-06-09 Gary Benson <gbenson@redhat.com>
7313
7314 * common/signals.c (gdb_signal_from_host): Reorder to separate
7315 the always-available ANSI-standard signals from the signals that
7316 require checking.
7317 (do_gdb_signal_to_host): Likewise.
7318 * proc-events.c (signal_table): Likewise.
7319
c077881a
HZ
73202014-06-08 Hui Zhu <hui@codesourcery.com>
7321
7322 * common/linux-ptrace.c (linux_disable_event_reporting): New
7323 function.
7324 * common/linux-ptrace.h (linux_disable_event_reporting): New
7325 declaration.
7326 * linux-nat.c (linux_child_follow_fork): Do a single step before
7327 detach.
7328
4186eb54
KS
73292014-06-07 Keith Seitz <keiths@redhat.com>
7330
7331 Revert:
7332 PR c++/16253
7333 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7334 from symbol_matches_domain in symtab.c. All local callers
7335 of symbol_matches_domain updated.
7336 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7337 search STRUCT_DOMAIN.
7338 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7339 independently. standard_lookup will do that automatically.
7340 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7342 (cp_lookup_symbol_in_namespace): Likewise.
7343 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7344 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7345 may return a STRUCT_DOMAIN match.
7346 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7347 * cp-support.c: Include language.h.
7348 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7349 VAR_DOMAIN.
7350 * psymtab.c (match_partial_symbol): Compare the requested
7351 domain with the symbol's domain directly.
7352 (lookup_partial_symbol): Likewise.
7353 * symtab.c (lookup_symbol_in_language): Explain when/why
7354 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7355 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7356 appropriate languages.
7357 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7358 and moved to ada-lang.c
7359 (lookup_block_symbol): Explain that this function only returns
7360 symbol matching the requested DOMAIN.
7361 Compare the requested domain with the symbol's domain directly.
7362 (iterate_over_symbols): Compare the requested domain with the
7363 symbol's domain directly.
7364 * symtab.h (symbol_matches_domain): Remove.
7365
25326a28 73662014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7367
7368 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7369 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7370 (gdbscm_guile_version_is_at_least): Declare.
7371 (gdbscm_scm_string_to_int): Declare.
7372 * guile/guile.c (gdbscm_guile_major_version): New global.
7373 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7374 (guile_datadir): New static global.
7375 (gdbscm_guile_data_directory): New function.
7376 (initialize_scheme_side): Update.
7377 (misc_guile_functions): Add guile-data-directory.
7378 (initialize_gdb_module): Fetch guile version number.
7379 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7380 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7381 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7382 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7383 comments.
7384 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7385 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7386 * guile/scm-value.c (gdbscm_value_to_string): Only call
7387 scm_port_conversion_strategy if Guile version >= 2.0.6.
7388
0a770bb2 73892014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7390
7391 * main.c (print_gdb_help): Add -q and --silent.
7392
73ba372c
GB
73932014-06-06 Gary Benson <gbenson@redhat.com>
7394
7395 * common/signals.c: Remove preprocessor conditionals for
7396 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7397 SIGSEGV and SIGTERM.
7398 * proc-events.c: Likewise.
7399
c33b2f12
MM
74002014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7401
7402 * symfile.c (symfile_free_objfile): Remove restriction to
7403 OBJF_USERLOADED.
7404 * symfile-mem.c (symbol_file_add_from_memory): Call
7405 add_target_sections_of_objfile.
7406
fb934770
LC
74072014-06-05 Ludovic Courtès <ludo@gnu.org>
7408
7409 * guile/scm-value.c (gdbscm_history_append_x): Use
7410 'vlscm_get_value_smob_arg_unsafe' instead of
7411 'vlscm_scm_to_value'.
7412
6ef284bd
SM
74132014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7414
7415 PR mi/15806
7416 * utils.c (printchar): Don't escape at all if quoter is NUL.
7417 Update function documentation to clarify effect of parameter
7418 QUOTER.
7419 * remote.c (escape_buffer): Pass '\\' as the quoter to
7420 fputstrn_unfiltered.
7421 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7422 generate the output.
7423 (mi_solib_unloaded): Same.
7424
270c9937
JB
74252014-06-05 Joel Brobecker <brobecker@adacore.com>
7426
7427 * development.sh: Delete.
7428 * Makefile.in (config.status): Adjust dependency on development.sh.
7429 * configure.ac: Adjust development.sh source call.
7430 * configure: Regenerate.
7431
16f691fb
DE
74322014-06-04 Doug Evans <xdje42@gmail.com>
7433
7434 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7435 is_scheme_bkpt, spec.
7436 (bpscm_make_breakpoint_smob): Initialize new members.
7437 (gdbscm_create_breakpoint_x): Split into two ...
7438 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7439 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7440 (scheme_function breakpoint_functions): Update.
7441 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7442 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7443 register-breakpoint!.
7444
ef7cab6b
JB
74452014-06-04 Joel Brobecker <brobecker@adacorer.com>
7446
7447 PR server/17023
7448 * mem-break.c (z_type_supported): Return zero if
7449 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7450
012370f6
TT
74512014-06-04 Tom Tromey <tromey@redhat.com>
7452
7453 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7454 value_from_contents_and_address_unresolved.
7455 (ada_template_to_fixed_record_type_1): Likewise.
7456 (ada_which_variant_applies): Likewise.
7457 * value.h (value_from_contents_and_address_unresolved): Declare.
7458 * value.c (value_from_contents_and_address_unresolved): New
7459 function.
7460 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7461 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7462 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7463
92e2a17f
TT
74642014-06-04 Tom Tromey <tromey@redhat.com>
7465
7466 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7467
c0939df1
TT
74682014-06-04 Tom Tromey <tromey@redhat.com>
7469
7470 * procfs.c (procfs_attach): Make "args" const.
7471 * windows-nat.c (windows_attach): Make "args" const.
7472 * nto-procfs.c (procfs_attach): Make "args" const.
7473 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7474 * go32-nat.c (go32_attach): Make "args" const.
7475 * gnu-nat.c (gnu_attach): Make "args" const.
7476 * darwin-nat.c (darwin_attach): Make "args" const.
7477 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7478 * linux-nat.c (linux_nat_attach): Make "args" const.
7479 * remote.c (extended_remote_attach_1, extended_remote_attach):
7480 Make "args" const.
7481 * target.h (struct target_ops) <to_attach>: Make "args" const.
7482 (find_default_attach): Likewise.
7483 * utils.c (parse_pid_to_attach): Make "args" const.
7484 * utils.h (parse_pid_to_attach): Update.
7485
8eaff7cd
TT
74862014-06-04 Tom Tromey <tromey@redhat.com>
7487
7488 * target-delegates.c: Rebuild.
7489 * target.c (default_thread_address_space): New function.
7490 (target_thread_address_space): Simplify.
7491 * target.h (struct target_ops) <to_thread_address_space>: Add
7492 TARGET_DEFAULT_FUNC.
7493
1913f160
DE
74942014-06-04 Doug Evans <xdje42@gmail.com>
7495
7496 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7497
70ad5bff
MM
74982014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7499
7500 * record-btrace.c: Include event-loop.h and inf-loop.h.
7501 (record_btrace_resume_exec_dir)
7502 (record_btrace_async_inferior_event_handler)
7503 (record_btrace_handle_async_inferior_event): New.
7504 (record_btrace_open): Create async event handler.
7505 (record_btrace_close): Delete async event handler.
7506 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7507 Mark async event handler.
7508 (record_btrace_execution_direction): New.
7509 (init_record_btrace_ops): Initialize to_execution_direction.
7510
b6210538
DE
75112014-06-03 Doug Evans <xdje42@gmail.com>
7512
7513 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7514 (gdbscm_make_parameter): Ditto.
7515
a5b1fd27
DE
75162014-06-03 Doug Evans <dje@google.com>
7517
7518 * exec.c (exec_close_1): Call clear_section_table instead of
7519 resize_section_table.
7520 (clear_section_table): New function.
7521 (resize_section_table): Make static. Rename arg num_added to
7522 adjustment.
7523 * exec.h (clear_section_table): Declare.
7524 (resize_section_table): Delete.
7525 * progspace.c (release_program_space): Call clear_section_table
7526 instead of resize_section_table.
7527
0c6e92a5
SC
75282014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7529
7530 * NEWS (Python Scripting): Add entry about the new xmethods
7531 feature.
7532
883964a7
SC
75332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7534
7535 * python/py-xmethods.c: New file.
7536 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7537 (objfpy_dealloc): XDECREF on the new xmethods field.
7538 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7539 field.
7540 (objfpy_get_xmethods): New function.
7541 (objfile_getset): New entry 'xmethods'.
7542 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7543 (pspy_dealloc): XDECREF on the new xmethods field.
7544 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7545 field.
7546 (pspy_get_xmethods): New function.
7547 (pspace_getset): New entry 'xmethods'.
7548 * python/python-internal.h: Add declarations for new functions.
7549 * python/python.c (_initialize_python): Invoke
7550 gdbpy_initialize_xmethods.
7551 * python/lib/gdb/__init__.py (xmethods): New
7552 attribute.
7553 * python/lib/gdb/xmethod.py: New file.
7554 * python/lib/gdb/command/xmethods.py: New file.
7555
58992dc5
SC
75562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7557
7558 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7559 best match method returned by find_overload_match is an xmethod.
7560 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7561 the best matching operator returned by find_overload_match is an
7562 xmethod.
7563 * valops.c: #include "extension.h".
7564 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7565 Return void. The list of matching source methods is returned in
7566 "fn_list" and a vector of matching debug method workers is
7567 returned in "xm_worker_vec". Update all callers.
7568 (value_find_oload_method_list): Likewise.
7569 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7570 non-NULL, then the index of the best matching method in this
7571 vector is returned. Update all callers.
7572 (find_overload_match): Include xmethods while performing overload
7573 resolution.
7574
e81e7f5e
SC
75752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7576
7577 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7578 * extension-priv.h (struct extension_language_ops): Add the
7579 xmethod interface.
7580 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7581 get_matching_xmethod_workers, get_xmethod_argtypes,
7582 invoke_xmethod, free_xmethod_worker,
7583 free_xmethod_worker_vec): New functions.
7584 * extension.h: #include "common/vec.h".
7585 New function declarations.
7586 (struct xmethod_worker): New struct.
7587 (VEC (xmethod_worker_ptr)): New vector type.
7588 (xmethod_worker_ptr): New typedef.
7589 (xmethod_worker_vec): Likewise.
7590 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7591 builtin_type.
7592 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7593 (struct builtin_type): New field "xmethod".
7594 * valarith.c (value_ptradd): Assert that the value argument is not
7595 lval_xcallable.
7596 * valops.c (value_must_coerce_to_target): Return 0 for
7597 lval_xcallable values.
7598 * value.c (struct value): New field XM_WORKER in the field
7599 LOCATION.
7600 (value_address, value_raw_address): Return 0 for lval_xcallable
7601 values.
7602 (set_value_address): Assert that the value is not an
7603 lval_xcallable.
7604 (value_free): Free the associated xmethod worker when freeing
7605 lval_xcallable values.
7606 (set_value_component_location): Assert that the WHOLE value is not
7607 lval_xcallable.
7608 (value_of_xmethod, call_xmethod): New functions.
7609 * value.h: Declare "struct xmethod_worker".
7610 Declare new functions value_of_xmethod, call_xmethod.
7611
ef370185
JB
76122014-06-03 Joel Brobecker <brobecker@adacore.com>
7613 Pedro Alves <palves@redhat.com>
7614
7615 PR breakpoints/17000
7616 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7617 New function, extracted from software_breakpoint_inserted_here_p.
7618 (software_breakpoint_inserted_here_p): Replace factored out code
7619 by call to find_non_raw_software_breakpoint_inserted_here.
7620 (bp_target_info_copy_insertion_state): New function.
7621 (bkpt_insert_location): Handle the case of a single-step
7622 breakpoint already inserted at the same address.
7623 (bkpt_remove_location): Handle the case of a single-step
7624 breakpoint still inserted at the same address.
7625 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7626 breakpoint already inserted at the same address.
7627 (deprecated_remove_raw_breakpoint): Handle the case of a
7628 non-raw breakpoint still inserted at the same address.
7629 (find_single_step_breakpoint): New function, extracted from
7630 single_step_breakpoint_inserted_here_p.
7631 (find_single_step_breakpoint): New function,
7632 factored out from single_step_breakpoint_inserted_here_p.
7633 (single_step_breakpoint_inserted_here_p): Reimplement.
7634
1e2ccb61
BM
76352014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7636
7637 Pushed by Joel Brobecker <brobecker@adacore.com>
7638 * source.c (show_substitute_path_command): Fix display of matching
7639 substitution rules.
7640
d3448d85
GB
76412014-06-03 Gary Benson <gbenson@redhat.com>
7642
7643 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7644
06eb1586
DE
76452014-06-02 Doug Evans <xdje42@gmail.com>
7646
7647 Add parameter support for Guile.
7648 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7649 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7650 (scm-param.o): New rule.
7651 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7652 (gdbscm_misc_error): Declare.
7653 (gdbscm_canonicalize_command_name): Declare.
7654 (gdbscm_scm_to_host_string): Declare.
7655 (gdbscm_scm_from_host_string): Declare.
7656 (gdbscm_initialize_parameters): Declare.
7657 * guile/guile.c (initialize_gdb_module): Call
7658 gdbscm_initialize_parameters.
7659 * guile/lib/gdb.scm: Export parameter symbols.
7660 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7661 cmdscm_canonicalize_name and made public. All callers updated.
7662 * guile/scm-exception.c (gdbscm_misc_error): New function.
7663 * guile/scm-param.c: New file.
7664 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7665 (gdbscm_scm_to_host_string): New function.
7666 (gdbscm_scm_from_host_string): New function.
7667 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7668
e698b8c4
DE
76692014-06-02 Doug Evans <xdje42@gmail.com>
7670
7671 Add command support for Guile.
7672 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7673 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7674 (scm-cmd.o): New rule.
7675 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7676 (gdbscm_user_error_p): Declare.
7677 (gdbscm_parse_command_name): Declare.
7678 (gdbscm_valid_command_class_p): Declare.
7679 (gdbscm_initialize_commands): Declare.
7680 * guile/guile.c (initialize_gdb_module): Call
7681 gdbscm_initialize_commands.
7682 * guile/lib/gdb.scm: Export command symbols.
7683 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7684 (throw-user-error): New function.
7685 * guile/scm-cmd.c: New file.
7686 * guile/scm-exception.c (user_error_symbol): New static global.
7687 (gdbscm_user_error_p): New function.
7688 (gdbscm_initialize_exceptions): Set user_error_symbol.
7689 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7690
fb1f94b0
PM
76912014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7692
7693 * top.c (command_loop): Handle comments here...
7694 (command_line_input): ... not here.
7695
ded03782
DE
76962014-06-02 Doug Evans <xdje42@gmail.com>
7697
7698 Add progspace support for Guile.
7699 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7700 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7701 (scm-progspace.o): New rule.
7702 * guile/guile-internal.h (pspace_smob): New typedef.
7703 (psscm_pspace_smob_pretty_printers): Declare.
7704 (psscm_pspace_smob_from_pspace): Declare.
7705 (psscm_scm_from_pspace): Declare.
7706 * guile/guile.c (initialize_gdb_module): Call
7707 gdbscm_initialize_pspaces.
7708 * guile/lib/gdb.scm: Export progspace symbols.
7709 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7710 support.
7711 (append-pretty-printer!): Ditto.
7712 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7713 Implement.
7714 * guile/scm-progspace.c: New file.
7715
397998fc
AM
77162014-06-03 Alan Modra <amodra@gmail.com>
7717
7718 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7719 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7720
6aa5f3a6
DE
77212014-06-02 Doug Evans <dje@google.com>
7722
7723 Add support for skeletonless type units.
7724 * dwarf2read.c (struct dwarf2_per_objfile): New member
7725 n_allocated_type_units.
7726 (struct dwarf2_per_objfile) <tu_stats>: New member
7727 nr_all_type_units_reallocs.
7728 (create_signatured_type_table_from_index): Initialize
7729 n_allocated_type_units
7730 (create_all_type_units): Ditto.
7731 (add_type_unit): Move up in file. New arg slot.
7732 All callers updated. Increase space for all_type_units more
7733 efficiently.
7734 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7735 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7736 (lookup_dwp_signatured_type): Ditto.
7737 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7738 All callers updated.
7739 (build_type_psymtabs_1): Leave type_unit_groups as
7740 NULL if no TUs present.
7741 (print_tu_stats): New function.
7742 (process_skeletonless_type_unit): New function.
7743 (process_dwo_file_for_skeletonless_type_units): New
7744 function.
7745 (process_skeletonless_type_units): New function.
7746 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7747 Call print tu_stats if debugging enabled.
7748
41fac0cf
PA
77492014-06-02 Pedro Alves <palves@redhat.com>
7750
7751 * breakpoint.c (build_target_command_list): Don't build a command
7752 list if we have any duplicate location that isn't a dprintf.
7753
cd1608cc
PA
77542014-06-02 Pedro Alves <palves@redhat.com>
7755
7756 * breakpoint.c (dprintf_breakpoint_hit): New function.
7757 (initialize_breakpoint_ops): Install it as dprintf's
7758 breakpoint_hit method.
7759
486ef3b9
JB
77602014-06-02 Joel Brobecker <brobecker@adacore.com>
7761
7762 * source.c (substitute_path_rule_matches): Simplify using
7763 filename_ncmp instead of FILENAME_CMP.
7764
230cd560
JB
77652014-06-02 Joel Brobecker <brobecker@adacore.com>
7766
7767 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7768
16954d5d
LC
77692014-06-01 Ludovic Courtès <ludo@gnu.org>
7770
7771 * configure.ac: When Guile is available, check for the
7772 availability of 'scm_new_smob'.
7773 * configure, config.h.in: Regenerate.
7774 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7775 function.
7776
53e8a631
AB
77772014-05-30 Andrew Burgess <aburgess@broadcom.com>
7778
7779 * frame.c (struct frame_info): Add stop_string field.
7780 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7781 (get_prev_frame_always): Old content moved into
7782 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7783 TRY_CATCH, handle MEMORY_ERROR exceptions.
7784 (frame_stop_reason_string): New function definition.
7785 * frame.h (unwind_stop_reason_to_string): Extend comment to
7786 mention frame_stop_reason_string.
7787 (frame_stop_reason_string): New function declaration.
7788 * stack.c (frame_info): Switch to frame_stop_reason_string.
7789 (backtrace_command_1): Switch to frame_stop_reason_string.
7790 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7791 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7792 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7793
70e38b8e
AB
77942014-05-30 Andrew Burgess <aburgess@broadcom.com>
7795
7796 * frame.c (frame_stop_reason_string): Rename to ...
7797 (unwind_stop_reason_to_string): this.
7798 * frame.h (frame_stop_reason_string): Rename to ...
7799 (unwind_stop_reason_to_string): this.
7800 * stack.c (frame_info): Update call to frame_stop_reason_string.
7801 (backtrace_command_1): Likewise.
7802 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7803 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7804
938f0e2f
AB
78052014-05-30 Andrew Burgess <aburgess@broadcom.com>
7806
7807 * frame.c (remove_prev_frame): New function.
7808 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7809 remove_prev_frame.
7810
a09dd441
PA
78112014-05-29 Pedro Alves <palves@redhat.com>
7812
7813 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7814 and make it const. When a single-step decays to a continue,
7815 clear 'step', not 'hw_step'. Pass whether the caller wanted
7816 to step to user_visible_resume_ptid, not what we ask the
7817 target to do.
7818
bdc36728
PA
78192014-05-29 Pedro Alves <palves@redhat.com>
7820
7821 * infrun.c (process_event_stop_test, handle_step_into_function)
7822 (handle_step_into_function_backward): Adjust.
7823 Don't set the even thread's stop_step and call stop_waiting before
7824 calling end_stepping_range. Instead do that ...
7825 (end_stepping_range): ... here. Take an ecs pointer parameter.
7826
22bcd14b
PA
78272014-05-29 Pedro Alves <palves@redhat.com>
7828
7829 * infrun.c (stop_stepping): Rename to ...
7830 (stop_waiting): ... this.
7831 (proceed): Update comment.
7832 (process_event_stop_test, handle_inferior_event)
7833 (handle_signal_stop, handle_step_into_function)
7834 (handle_step_into_function_backward): Update.
7835
4ae57c05
PA
78362014-05-29 Pedro Alves <palves@redhat.com>
7837
7838 * infcall.c (run_inferior_call): Don't check whether the current
7839 thread is running after the proceed call.
7840
329ea579
PA
78412014-05-29 Pedro Alves <palves@redhat.com>
7842 Tom Tromey <tromey@redhat.com>
7843
7844 * NEWS: Mention "maint set target-async", "set mi-async", and that
7845 background execution commands are now always available.
7846 * target.h (target_async_permitted): Update comment.
7847 * target.c (target_async_permitted, target_async_permitted_1):
7848 Default to 1.
7849 (set_target_async_command): Rename to ...
7850 (maint_set_target_async_command): ... this.
7851 (show_target_async_command): Rename to ...
7852 (maint_show_target_async_command): ... this.
7853 (_initialize_target): Adjust.
7854 * infcmd.c (prepare_execution_command): Make extern.
7855 * inferior.h (prepare_execution_command): Declare.
7856 * infrun.c (set_observer_mode): Leave target async alone.
7857 * mi/mi-interp.c (mi_interpreter_init): Install
7858 mi_on_sync_execution_done as sync_execution_done observer.
7859 (mi_on_sync_execution_done): New function.
7860 (mi_execute_command_input_handler): Don't print the prompt if we
7861 just started a synchronous command with an async target.
7862 (mi_on_resume): Check sync_execution before printing prompt.
7863 * mi/mi-main.h (mi_async_p): Declare.
7864 * mi/mi-main.c: Include gdbcmd.h.
7865 (mi_async_p): New function.
7866 (mi_async, mi_async_1): New globals.
7867 (set_mi_async_command, show_mi_async_command, mi_async): New
7868 functions.
7869 (exec_continue): Call prepare_execution_command.
7870 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7871 (mi_execute_async_cli_command): Use mi_async_p.
7872 (_initialize_mi_main): Install "set mi-async". Make
7873 "target-async" a deprecated alias.
7874
92bcb5f9
PA
78752014-05-29 Pedro Alves <palves@redhat.com>
7876
7877 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7878 (_initialize_cli_interp): Adjust.
7879 * event-loop.c: Include "observer.h".
7880 (start_event_loop): Notify 'command_error' observers instead of
7881 calling display_gdb_prompt. Remove FIXME comment.
7882 * event-top.c (display_gdb_prompt): Remove call into the
7883 interpreters.
7884 * inf-loop.c: Include "observer.h".
7885 (inferior_event_handler): Notify 'command_error' observers instead
7886 of calling display_gdb_prompt.
7887 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7888 observers instead of calling display_gdb_prompt.
7889 * interps.c (interp_set): Don't call display_gdb_prompt.
7890 (current_interp_display_prompt_p): Delete.
7891 * interps.h (interp_prompt_p): Delete declaration.
7892 (interp_prompt_p_ftype): Delete.
7893 (struct interp_procs) <prompt_proc_p>: Delete field.
7894 (current_interp_display_prompt_p): Delete declaration.
7895 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7896 (_initialize_mi_interp): Adjust.
7897 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7898 'command_error' observers.
7899 (tui_on_sync_execution_done, tui_on_command_error): New
7900 functions.
7901 (tui_display_prompt_p): Delete.
7902 (_initialize_tui_interp): Adjust.
7903
fd664c91
PA
79042014-05-29 Pedro Alves <palves@redhat.com>
7905
7906 PR gdb/13860
7907 * cli/cli-interp.c: Include infrun.h and observer.h.
7908 (cli_uiout, cli_interp): New globals.
7909 (cli_on_signal_received, cli_on_end_stepping_range)
7910 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7911 functions.
7912 (cli_interpreter_init): Install them as 'end_stepping_range',
7913 'signal_received' 'signal_exited', 'exited' and 'no_history'
7914 observers.
7915 (_initialize_cli_interp): Remove cli_interp local.
7916 * infrun.c (handle_inferior_event): Call the several stop reason
7917 observers instead of printing the stop reason directly.
7918 (end_stepping_range): New function.
7919 (print_end_stepping_range_reason, print_signal_exited_reason)
7920 (print_exited_reason, print_signal_received_reason)
7921 (print_no_history_reason): Make static, and add an uiout
7922 parameter. Print to that instead of to CURRENT_UIOUT.
7923 * infrun.h (print_end_stepping_range_reason)
7924 (print_signal_exited_reason, print_exited_reason)
7925 (print_signal_received_reason print_no_history_reason): New
7926 declarations.
7927 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7928 'mi_uiout'.
7929 <cli_uiout>: New field.
7930 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7931 uiout for CLI output. Install 'signal_received',
7932 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7933 observers.
7934 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7935 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7936 (mi_on_no_history): New functions.
7937 (ui_out_free_cleanup): Delete function.
7938 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7939 instead use the one already stored in the MI interpreter data.
7940 (mi_ui_out): Adjust.
7941 * tui/tui-interp.c: Include infrun.h and observer.h.
7942 (tui_interp): New global.
7943 (tui_on_signal_received, tui_on_end_stepping_range)
7944 (tui_on_signal_exited, tui_on_exited)
7945 (tui_on_no_history): New functions.
7946 (tui_init): Install them as 'end_stepping_range',
7947 'signal_received' 'signal_exited', 'exited' and 'no_history'
7948 observers.
7949 (_initialize_tui_interp): Delete tui_interp local.
7950
8817a6f2
PA
79512014-05-29 Pedro Alves <palves@redhat.com>
7952
7953 PR gdb/15713
7954 * linux-nat.c (linux_nat_resume_callback): Rename the second
7955 parameter to 'except'. Skip LP if it points to EXCEPT.
7956 (linux_nat_resume): Don't mark the event lwp as not stopped
7957 before resuming sibling lwps. Instead ask
7958 linux_nat_resume_callback to skip the event lwp. Mark it as not
7959 stopped after actually resuming it.
7960 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7961 resuming it.
7962 (wait_lwp): Mark the lwp as stopped here.
7963 (stop_wait_callback): Mark the lwp as not stopped right after
7964 resuming it. Don't mark lwps as stopped here.
7965 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7966 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7967
251bde03
PA
79682014-05-29 Pedro Alves <palves@redhat.com>
7969
7970 PR PR15693
7971 * infrun.c (resume): Determine how much to resume depending on
7972 whether the caller wanted a step, not whether we can hardware step
7973 the target. Mark all threads that we intend to run as running,
7974 unless we're calling an inferior function.
7975 (normal_stop): If the thread is running an infcall, don't finish
7976 thread state.
7977 * target.c (target_resume): Don't mark threads as running here.
7978
7f3c0343
JB
79792014-05-28 Joel Brobecker <brobecker@adacore.com>
7980
7981 * serial.c (_initialize_serial): Remove support for
7982 the "set remotebaud" and "show remotebaud" commands.
7983 * NEWS: Add entry documenting the removal of that command.
7984
ee34b3f9
YQ
79852014-05-28 Yao Qi <yao@codesourcery.com>
7986
7987 * charset.c: Fix typo in comments.
7988
add6c04d
GB
79892014-05-27 Gary Benson <gbenson@redhat.com>
7990
7991 * utils.c (internal_vproblem): Prompt for a bug report.
7992
92c48fc5
AW
79932014-05-26 Andy Wingo <wingo@igalia.com>
7994
7995 * guile/scm-arch.c (arscm_mark_arch_smob):
7996 * guile/scm-block.c (bkscm_mark_block_smob)
7997 (bkscm_mark_block_syms_progress_smob):
7998 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7999 * guile/scm-exception.c (exscm_mark_exception_smob):
8000 * guile/scm-frame.c (frscm_mark_frame_smob):
8001 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8002 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8003 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8004 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8005 (ppscm_mark_pretty_printer_worker_smob):
8006 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8007 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8008 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8009 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8010 mark functions.
8011 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8012 function.
8013
b2715b27
AW
80142014-05-26 Andy Wingo <wingo@igalia.com>
8015 Doug Evans <xdje42@gmail.com>
8016
8017 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8018 empty_base_class. All uses updated.
8019 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8020 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8021 Adapt all callers.
8022 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8023 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8024 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8025 (gdbscm_gsmob_has_property_p, add_property_name)
8026 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8027 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8028 (gdb-object-has-property?, gdb-object-properties): Remove.
8029 (gdb-object-kind): Renamed from gsmob-kind.
8030
214ab2da
AW
80312014-05-26 Andy Wingo <wingo@igalia.com>
8032
8033 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8034 * configure: Regenerate.
8035
589fdceb
MM
80362014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8037
8038 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8039
67b5c0c1
MM
80402014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8041
8042 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8043 (replay_memory_access_read_only, replay_memory_access_read_write)
8044 (replay_memory_access_types, replay_memory_access)
8045 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8046 (cmd_set_record_btrace, cmd_show_record_btrace)
8047 (cmd_show_replay_memory_access): New.
8048 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8049 (record_btrace_remove_breakpoint): Replace
8050 record_btrace_allow_memory_access with replay_memory_access.
8051 (_initialize_record_btrace): Add commands.
8052 * NEWS: Announce it.
8053
036cd381
RR
80542014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8055
8056 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8057
c77c1e42
RR
80582014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8059
8060 * MAINTAINERS (Write After Approval): Move self back from
8061 paper trail.
8062
45741a9c
PA
80632014-05-22 Pedro Alves <palves@redhat.com>
8064
8065 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8066 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8067 (disable_randomization, enum exec_direction_kind)
8068 (execution_direction, stop_registers, start_remote)
8069 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8070 (wait_for_inferior, normal_stop, get_last_target_status)
8071 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8072 (insert_step_resume_breakpoint_at_sal)
8073 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8074 (set_step_info, print_stop_event, signal_stop_state)
8075 (signal_print_state, signal_pass_state, signal_stop_update)
8076 (signal_print_update, signal_pass_update)
8077 (update_signals_program_target, clear_exit_convenience_vars)
8078 (displaced_step_dump_bytes, update_observer_mode)
8079 (signal_catch_update, gdb_signal_from_command): Move
8080 declarations ...
8081 * infrun.h: ... to this new file.
8082 * amd64-tdep.c: Include infrun.h.
8083 * annotate.c: Include infrun.h.
8084 * arch-utils.c: Include infrun.h.
8085 * arm-linux-tdep.c: Include infrun.h.
8086 * arm-tdep.c: Include infrun.h.
8087 * break-catch-sig.c: Include infrun.h.
8088 * breakpoint.c: Include infrun.h.
8089 * common/agent.c: Include infrun.h instead of inferior.h.
8090 * corelow.c: Include infrun.h.
8091 * event-top.c: Include infrun.h.
8092 * go32-nat.c: Include infrun.h.
8093 * i386-tdep.c: Include infrun.h.
8094 * inf-loop.c: Include infrun.h.
8095 * infcall.c: Include infrun.h.
8096 * infcmd.c: Include infrun.h.
8097 * infrun.c: Include infrun.h.
8098 * linux-fork.c: Include infrun.h.
8099 * linux-nat.c: Include infrun.h.
8100 * linux-thread-db.c: Include infrun.h.
8101 * monitor.c: Include infrun.h.
8102 * nto-tdep.c: Include infrun.h.
8103 * procfs.c: Include infrun.h.
8104 * record-btrace.c: Include infrun.h.
8105 * record-full.c: Include infrun.h.
8106 * remote-m32r-sdi.c: Include infrun.h.
8107 * remote-mips.c: Include infrun.h.
8108 * remote-notif.c: Include infrun.h.
8109 * remote-sim.c: Include infrun.h.
8110 * remote.c: Include infrun.h.
8111 * reverse.c: Include infrun.h.
8112 * rs6000-tdep.c: Include infrun.h.
8113 * s390-linux-tdep.c: Include infrun.h.
8114 * solib-irix.c: Include infrun.h.
8115 * solib-osf.c: Include infrun.h.
8116 * solib-svr4.c: Include infrun.h.
8117 * target.c: Include infrun.h.
8118 * top.c: Include infrun.h.
8119 * windows-nat.c: Include infrun.h.
8120 * mi/mi-interp.c: Include infrun.h.
8121 * mi/mi-main.c: Include infrun.h.
8122 * python/py-threadevent.c: Include infrun.h.
8123
98eb56a4
PA
81242014-05-22 Pedro Alves <palves@redhat.com>
8125
8126 * infrun.c (handle_inferior_event): Store the exit code for
8127 --return-child-result here, instead of ...
8128 (print_exited_reason): ... here.
8129
17b2616c
PA
81302014-05-21 Pedro Alves <palves@redhat.com>
8131
8132 PR gdb/13860
8133 * gdbthread.h (struct thread_control_state): New field
8134 `command_interp'.
8135 * infrun.c (follow_fork): Copy the new thread control field to the
8136 child fork thread.
8137 (clear_proceed_status_thread): Clear the new thread control field.
8138 (proceed): Set the new thread control field.
8139 * interps.h (command_interp): Declare.
8140 * interps.c (command_interpreter): New global.
8141 (command_interp): New function.
8142 (interp_exec): Set `command_interpreter' while here.
8143 * cli-out.c (cli_uiout_dtor): New function.
8144 (cli_ui_out_impl): Install it.
8145 * mi/mi-interp.c: Include cli-out.h.
8146 (mi_cmd_interpreter_exec): Add comment.
8147 (restore_current_uiout_cleanup): New function.
8148 (ui_out_free_cleanup): New function.
8149 (mi_on_normal_stop): If finishing an execution command started by
8150 a CLI command, or any kind of breakpoint-like event triggered,
8151 print the stop event to the output (CLI) stream.
8152 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8153
5166082f
PA
81542014-05-21 Pedro Alves <palves@redhat.com>
8155
8156 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8157 current source line having changed.
8158 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8159 * infrun.c (normal_stop): Adjust call to
8160 set_current_sal_from_frame.
8161 * source.c (clear_lines_listed_range): New function.
8162 (set_current_source_symtab_and_line, identify_source_line): Clear
8163 the lines listed range.
8164 (line_info): Handle the first "info line" after the current source
8165 line having changed.
8166 * stack.c (print_stack_frame): Remove center handling.
8167 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8168 center sal.line.
8169
c1ee2fb3
PA
81702014-05-21 Pedro Alves <palves@redhat.com>
8171
8172 * inf-child.c (inf_child_mourn_inferior): New function.
8173 * inf-child.h (inf_child_mourn_inferior): New declaration.
8174 * darwin-nat.c (darwin_mourn_inferior): Use
8175 inf_child_mourn_inferior.
8176 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8177 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8178 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8179 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8180 * windows-nat.c (windows_mourn_inferior): Likewise.
8181
5c6d4fb2
DE
81822014-05-21 Doug Evans <xdje42@gmail.com>
8183
250748cb 8184 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8185
4a2722c5
DE
81862014-05-21 Doug Evans <xdje42@gmail.com>
8187
17292b30 8188 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8189 (gdbscm_out_of_range_error): Ditto.
8190 (gdbscm_memory_error): Ditto.
250748cb
DE
8191 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8192 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8193 (gdbscm_out_of_range_error): Update.
8194 (gdbscm_memory_error): Update.
8195 (gdbscm_scm_to_target_string_unsafe): Delete.
8196
6a3cb8e8
PA
81972014-05-21 Pedro Alves <palves@redhat.com>
8198
8199 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8200 globals.
8201 (inf_child_open_target): New function.
8202 (inf_child_open): Use inf_child_open_target to push the target
8203 instead of erroring out.
8204 (inf_child_disconnect, inf_child_close)
8205 (inf_child_maybe_unpush_target): New functions.
8206 (inf_child_target): Install inf_child_disconnect and
8207 inf_child_close. Store a pointer to the returned object.
8208 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8209 declarations.
8210 * target.c (auto_connect_native_target): New global.
8211 (show_default_run_target): New function.
8212 (find_default_run_target): Return NULL if automatically connecting
8213 to the native target is disabled.
8214 (_initialize_target): Install set/show auto-connect-native-target.
8215 * NEWS: Mention "set auto-connect-native-target", and "target
8216 native".
8217 * linux-nat.c (super_close): New global.
8218 (linux_nat_close): Call super_close.
8219 (linux_nat_add_target): Store a pointer to the base class's
8220 to_close method.
8221 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8222 inf_child_maybe_unpush.
8223 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8224 already pushed.
8225 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8226 the inferior. Use inf_child_maybe_unpush_target.
8227 (inf_ttrace_attach): Don't push the target if it is already
8228 pushed.
8229 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8230 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8231 after mourning the inferior. Use inf_child_maybe_unpush_target.
8232 (darwin_attach_pid): Don't push the target if it is already
8233 pushed.
8234 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8235 mourning the inferior. Use inf_child_maybe_unpush_target.
8236 (gnu_detach): Use inf_child_maybe_unpush_target.
8237 * go32-nat.c (go32_create_inferior): Don't push the target if it
8238 is already pushed.
8239 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8240 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8241 (procfs_open): Rename to ...
8242 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8243 comments. Can target_preopen before changing node. Call
8244 inf_child_open_target to push the target explicitly.
8245 (procfs_attach): Don't push the target if it is already pushed.
8246 (procfs_detach): Use inf_child_maybe_unpush_target.
8247 (procfs_create_inferior): Don't push the target if it is already
8248 pushed.
8249 (nto_native_ops): New global.
8250 (procfs_open): Reimplement.
8251 (procfs_native_open): New function.
8252 (init_procfs_targets): Install procfs_native_open as to_open of
8253 "target native". Store a pointer to the "native" target in
8254 nto_native_ops.
8255 * procfs.c (procfs_attach): Don't push the target if it is already
8256 pushed.
8257 (procfs_detach): Use inf_child_maybe_unpush_target.
8258 (procfs_mourn_inferior): Only unpush the target after mourning the
8259 inferior. Use inf_child_maybe_unpush_target.
8260 (procfs_init_inferior): Don't push the target if it is already
8261 pushed.
8262 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8263 if it is already pushed.
8264
930ee1b1
PA
82652014-05-21 Pedro Alves <palves@redhat.com>
8266
8267 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8268 and "procfs" targets are now called "native" instead.
8269
1f5d1b13
PA
82702014-05-21 Pedro Alves <palves@redhat.com>
8271
8272 * go32-nat.c (go32_open): Delete.
8273 (go32_target): Don't override the to_open method.
8274
132f8e03
PA
82752014-05-21 Pedro Alves <palves@redhat.com>
8276
8277 * nto-procfs.c (procfs_can_run): New function.
8278 (nto_procfs_ops): New global.
8279 (init_procfs_targets): New, based on procfs_target. Install
8280 "target native" in addition to "target procfs".
8281 (_initialize_procfs): Call init_procfs_targets instead of adding
8282 the target here.
8283
03c136c3
PA
82842014-05-21 Pedro Alves <palves@redhat.com>
8285
8286 * windows-nat.c (windows_target): Don't override to_shortname,
8287 to_longname or to_doc.
8288
a635d0f3
PA
82892014-05-21 Pedro Alves <palves@redhat.com>
8290
8291 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8292 to_doc.
8293
4f9b5133
PA
82942014-05-21 Pedro Alves <palves@redhat.com>
8295
8296 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8297 to_shortname, to_longname or to_doc.
8298
bc85afde
PA
82992014-05-21 Pedro Alves <palves@redhat.com>
8300
8301 * go32-nat.c (go32_target): Don't override to_shortname,
8302 to_longname or to_doc.
8303
4ebfc96e
PA
83042014-05-21 Pedro Alves <palves@redhat.com>
8305
8306 * inf-child.c (inf_child_open): Remove mention of "child".
8307 (inf_child_target): Rename target to "native" instead of "child".
8308
2648dfed
AA
83092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8310
8311 * Makefile.in (SFILES): Delete "regset.c".
8312 (COMMON_OBS): Delete "regset.o".
8313 * regset.c: Remove.
8314 * regset.h (regset_alloc): Delete prototype.
8315
b13feb94
AA
83162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8317
8318 * sparc-linux-tdep.c (sparc32_linux_gregset)
8319 (sparc32_linux_fpregset): New static regset structures.
8320 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8321 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8322 'fpregset' fields.
8323 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8324 (sparc64_linux_fpregset): New static regset structures.
8325 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8326 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8327 New static regset structures.
8328 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8329 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8330 New static regset structures.
8331 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8332 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8333 New static regset structures.
8334 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8335 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8336 New static regset structures.
8337 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8338
b4fd25c9
AA
83392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8340
8341 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8342 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8343 register maps ("regmaps") from "*regset" to "*regmap". Do this
8344 for all regmap types and variables.
8345 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8346 (sparc32_linux_supply_core_gregset)
8347 (sparc32_linux_collect_core_gregset)
8348 (sparc32_linux_supply_core_fpregset)
8349 (sparc32_linux_collect_core_fpregset): Likewise.
8350 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8351 (sparc_gregmap, sparc_fpregmap): ... these.
8352 (sparc_supply_gregset, sparc_collect_gregset)
8353 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8354 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8355 (_initialize_sparc_nat): Rename regmaps.
8356 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8357 (sparc_gregmap, sparc_fpregmap): ... these.
8358 (sparc_supply_gregset, sparc_collect_gregset)
8359 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8360 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8361 Rename macros to...
8362 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8363 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8364 Likewise.
8365 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8366 Rename to...
8367 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8368 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8369 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8370 regmaps.
8371 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8372 (sparc32_bsd_fpregset): Rename to...
8373 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8374 (sparc32_bsd_fpregmap): ... these.
8375 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8376 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8377 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8378 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8379 (struct sparc_gregmap, struct sparc_fpregmap)
8380 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8381 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8382 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8383 (sparc32_supply_regset, sparc32_collect_gregset)
8384 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8385 prototypes.
8386 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8387 (sparc64_linux_ptrace_gregmap): ... this.
8388 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8389 (_initialize_sparc64_linux_nat): Rename regmaps.
8390 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8391 (sparc64_linux_core_gregmap): ... this.
8392 (sparc64_linux_supply_core_gregset)
8393 (sparc64_linux_collect_core_gregset)
8394 (sparc64_linux_supply_core_fpregset)
8395 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8396 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8397 (sparc64_sol2_fpregset): Rename to...
8398 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8399 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8400 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8401 regmaps.
8402 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8403 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8404 (sparc64_bsd_fpregset): Rename to...
8405 (struct sparc_gregmap, sparc64_sol2_gregmap)
8406 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8407 (sparc64_bsd_fpregmap): ... these.
8408 (sparc64_supply_gregset, sparc64_collect_gregset)
8409 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8410 prototypes.
8411 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8412 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8413 (sparc64fbsd_gregmap): ... this.
8414 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8415 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8416 Rename regmaps.
8417 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8418 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8419 (sparc64nbsd_collect_fpregset): Likewise.
8420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8421 (sparc64nbsd_gregmap): ... this.
8422 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8423 regmaps.
8424 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8425 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8426 (sparc64obsd_gregmap): ... this.
8427 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8428 regmaps.
8429 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8430 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8431 (sparc32nbsd_gregmap): ... this.
8432 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8433 regmaps.
8434
8fea3224
AA
84352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8436
8437 * score-tdep.c (score7_linux_gregset): New static regset
8438 structure.
8439 (score7_linux_regset_from_core_section): Remove dynamic regset
8440 allocation.
8441 (score_gdbarch_init): Drop allocation of tdep structure.
8442 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8443
24534243
AA
84442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8445
8446 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8447 regset structures.
8448 (am33_regset_from_core_section): Remove dynamic regset
8449 allocations.
8450
b7195f27
AA
84512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8452
8453 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8454 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8455 structures.
8456 (mips_linux_regset_from_core_section): Remove dynamic regset
8457 allocations.
8458 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8459 'gregset64', 'fpregset', and 'fpregset64'.
8460 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8461 deleted tdep fields.
8462
ecc37a5a
AA
84632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8464
8465 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8466 regset structures.
8467 (amd64_regset_from_core_section): Remove dynamic regset
8468 allocations.
8469 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8470 structure.
8471 (amd64obsd_regset_from_core_section): Remove dynamic regset
8472 allocation.
8473 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8474 Likewise.
8475 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8476 x86-common regset supply function.
8477 * i386-tdep.c (i386_collect_gregset): Make static.
8478 (i386_gregset): New global regset structure.
8479 (i386_fpregset, i386_xstateregset): New static regset structures.
8480 (i386_regset_from_core_section): Remove dynamic regset
8481 allocations.
8482 (i386_gdbarch_init): Remove initialization of tdep fields
8483 'gregset', 'fpregset', and 'xstateregset'.
8484 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8485 'fpregset', and 'xstateregset'.
8486 (i386_collect_gregset): Remove prototype.
8487 (i386_gregset): New declaration.
8488 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8489 structure.
8490 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8491 allocation.
8492
b7611c43
AA
84932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8494
8495 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8496 (arm_linux_vfpregset): New static regset structures.
8497 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8498 regset structures.
8499 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8500 and 'vfpregset' fields.
8501
a069a2bd
AA
85022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8503
8504 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8505 (aarch64_linux_fpregset): New static regset structures.
8506 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8507 of regset structures.
8508 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8509 'fpregset' fields.
8510
09424cff
AA
85112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8512
8513 * regset.h (struct regset): Remove gdbarch field.
8514 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8515 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8516 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8517 Likewise.
8518 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8519 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8520 (ppc32_linux_vsxregset): Likewise.
8521 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8522 via the regcache instead of the regset.
8523 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8524 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8525 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8526 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8527 Likewise.
8528
3ca7dae4
AA
85292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8530
8531 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8532 Constify structures.
8533 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8534 (alphanbsd_aout_gregset): Likewise.
8535 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8536 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8537 Likewise.
8538 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8539 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8540 Likewise.
8541 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8542 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8543 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8544 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8545 * m88k-tdep.c (m88k_gregset): Likewise.
8546 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8547 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8548 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8549 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8550 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8551 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8552 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8553 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8554 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8555 Likewise.
8556 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8557 * sh-tdep.h (sh_corefile_gregset): Likewise.
8558 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8559 * vax-tdep.c (vax_gregset): Likewise.
8560
5876f503
JK
85612014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8562
8563 Fix TLS access for -static -pthread.
8564 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8565 (try_thread_db_load_1): Initialize it.
8566 (thread_db_get_thread_local_address): Call it if LM is zero.
8567 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8568 * target.h (struct target_ops) (to_get_thread_local_address): Add
8569 load_module_addr comment.
8570
0256a6ac
PA
85712014-05-21 Pedro Alves <palves@redhat.com>
8572
8573 * dcache.c (dcache_read_memory_partial): If reading the cache line
8574 fails, fallback to reading just the memory the caller wanted.
8575
227533ac
DE
85762014-05-20 Doug Evans <dje@google.com>
8577
8578 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8579 instead of get_current_arch.
8580
936d2992
PA
85812014-05-20 Pedro Alves <palves@redhat.com>
8582
8583 * NEWS: Mention that compare-sections now works with all targets.
8584
8585 * remote.c (PACKET_qCRC): New enum value.
8586 (remote_verify_memory): Don't send qCRC if the target has no
8587 execution. Use packet_support/packet_ok. If the target doesn't
8588 support the qCRC packet, fallback to a deep memory copy.
8589 (compare_sections_command): Say "target image" instead of "remote
8590 executable".
8591 (_initialize_remote): Add PACKET_qCRC to the list of config
8592 packets that have no associated command. Extend comment.
8593 * target.c (simple_verify_memory, default_verify_memory): New
8594 function.
8595 * target.h (struct target_ops) <to_verify_memory>: Default to
8596 default_verify_memory.
8597 (simple_verify_memory): New declaration.
8598 * target-delegates.c: Regenerate.
8599
e59fa00f
MM
86002014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8601
8602 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8603
f2205de0
HZ
86042014-05-20 Hui Zhu <hui@codesourcery.com>
8605 Yao Qi <yao@codesourcery.com>
8606
8607 PR backtrace/16558
8608 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8609 and change address of sp and pc.
8610
c4e54771
TT
86112014-05-19 Tom Tromey <tromey@redhat.com>
8612
8613 * gdbtypes.c (rank_function): Use XNEWVEC.
8614 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8615
73051182
DE
86162014-05-19 Doug Evans <dje@google.com>
8617
8618 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8619 build_type_unit_groups and moved closer to only caller. Remove
8620 arguments. All references updated. Remove outdated .gdb_index
8621 comment.
8622 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8623 build_type_psymtabs_1.
8624
8832e7e3
DE
86252014-05-19 Doug Evans <dje@google.com>
8626
8627 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8628 n_type_unit_groups, all_type_unit_groups. All uses removed.
8629 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8630 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8631 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8632 (add_type_unit_group_to_table): Delete.
8633
cd8ae15e
DE
86342014-05-19 Doug Evans <dje@google.com>
8635
8636 * eval.c (evaluate_subexp_standard): Add some comments.
8637
08f4850b
DE
86382014-05-17 Doug Evans <xdje42@gmail.com>
8639
8640 * progspace.c (remove_program_space): Delete, unused.
8641 * progspace.h (remove_program_space): Ditto.
8642
bed8455c
DE
86432014-05-17 Doug Evans <xdje42@gmail.com>
8644
8645 * inferior.c (prune_inferiors): Fix comment.
8646 (remove_inferior_command): Call prune_program_spaces.
8647
8d551b02
DE
86482014-05-16 Doug Evans <dje@google.com>
8649
8650 New command line option -D.
8651 * NEWS: Mention it.
8652 * main.c (set_gdb_data_directory): New function.
8653 (captured_main): Recognize -D. Flag error for --data-directory "".
8654 Call set_gdb_data_directory.
8655 (print_gdb_help): Print --data-directory, -D.
8656 * main.h (set_gdb_data_directory): Declare.
8657 * top.c (staged_gdb_datadir): New static global.
8658 (set_gdb_datadir): Call set_gdb_data_directory
8659 (show_gdb_datadir): New function.
8660 (init_main): Update init of data-directory parameter.
8661
18848e28
GF
86622014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8663
8664 Import the "dirfd" gnulib module.
8665 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8666 * gnulib/aclocal.m4: Update.
8667 * gnulib/config.in: Update.
8668 * gnulib/configure: Update.
8669 * gnulib/import/Makefile.am: Update.
8670 * gnulib/import/Makefile.in: Update.
8671 * gnulib/import/dirfd.c: New.
8672 * gnulib/import/m4/dirfd.m4: New.
8673 * gnulib/import/m4/gnulib-cache.m4: Update.
8674 * gnulib/import/m4/gnulib-comp.m4: Update.
8675
95c64f92
YQ
86762014-05-16 Pierre Muller <muller@sourceware.org>
8677 Yao Qi <yao@codesourcery.com>
8678
8679 * valprint.c (print_wchar): Move the code on checking whether
8680 W is a printable wide char to the default branch of switch
8681 statement below. Call wchar_printable instead of gdb_iswprint.
8682
cac395ea
TM
86832014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8684
19679eca 8685 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8686 ldr.w and ldrd instructions.
8687
83655187
DE
86882014-05-15 Doug Evans <dje@google.com>
8689
8690 * dwarf2read.c (read_structure_type): Delete outdated comments.
8691
dd756689
TT
86922014-05-14 Tom Tromey <tromey@redhat.com>
8693
8694 * macrocmd.c (print_macro_definition): Reindent.
8695
75ddda77
DE
86962014-05-13 Doug Evans <xdje42@gmail.com>
8697
8698 * python/py-cmd.c (cmdpy_completer): Add comment.
8699 (completers): Make const.
8700
b0f16a3e
SM
87012014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8702
8703 * infrun.c (resume): Remove should_resume (unused). Move up
8704 declaration of resume_ptid.
8705
033c3379
TT
87062014-05-13 Tom Tromey <tromey@redhat.com>
8707
8708 * language.h (unop_type_check): Remove.
8709 (binop_type_check): Don't declare.
8710
9b44a3a5
AA
87112014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8712
8713 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8714 call to regcache_raw_collect.
8715
303a33fa
SM
87162014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8717
8718 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8719 mi_console->quote as the quoting character.
8720
196100a0
SM
87212014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8722
8723 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8724
f989a1c8
TT
87252014-04-29 Tom Tromey <tromey@redhat.com>
8726
8727 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8728 "show debug varobj".
8729
9404b58f
KM
87302014-05-07 Kyle McMartin <kyle@redhat.com>
8731
8732 Pushed by Joel Brobecker <brobecker@adacore.com>.
8733 * aarch64-tdep.c (aarch64_software_single_step): New function.
8734 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8735 with aarch64_software_single_step.
8736
5e49ba57
JB
87372014-05-05 Joel Brobecker <brobecker@adacore.com>
8738
8739 GDB 7.7.1 released.
8740
c888a17d
KS
87412014-05-05 Keith Seitz <keiths@redhat.com>
8742
8743 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8744 variable or history value is successfully parsed.
8745
290a839c
YQ
87462014-05-05 Yao Qi <yao@codesourcery.com>
8747 Pedro Alves <palves@redhat.com>
8748
8749 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8750 address of blocks that intersects the requested range. Trim
8751 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8752 sections.
8753 * ctf.c (ctf_xfer_partial): Likewise.
8754
91256dc2
YQ
87552014-05-05 Yao Qi <yao@codesourcery.com>
8756
8757 * printcmd.c (display_command): Remove the check to
8758 target_has_execution.
8759
07284463
MK
87602014-05-03 Mark Kettenis <kettenis@gnu.org>
8761
8762 * ppcobsd-nat.c: Include "obsd-nat.h".
8763 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8764 add_target.
8765 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8766
30a1e6cc
SDJ
87672014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8768
8769 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8770 and 16-bit signed and unsigned arguments. Update comment.
8771 (stap_parse_probe_arguments): Extend code to handle such
8772 arguments. Use warning instead of complaint to notify about
8773 unrecognized bitness.
8774
f33da99a
SDJ
87752014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8776
8777 PR breakpoints/16889
8778 * stap-probe.c (stap_parse_probe_arguments): Simplify
8779 check for non-prefixed probes (i.e., probes whose
8780 arguments do not start with "N@"). Always set the
8781 argument type to a sane value.
8782
95cf3b38
DT
87832014-05-01 David Taylor <dtaylor@emc.com>
8784
8785 * remote.c (compare_sections_command): Add -r option to compare
8786 all loadable read-only sections.
8787
1cfdf534
SC
87882014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8789
8790 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8791 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8792 Update all callers.
8793 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8794 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8795 Remove unused CORE_ADDR argument. Update all callers.
8796
ca4f7f8b
PA
87972014-04-29 Pedro Alves <palves@redhat.com>
8798
8799 * remote.c (struct packet_config) <detect>: Extend comment.
8800 (add_packet_config_cmd): Don't set the config's detect or support
8801 fields here.
8802 (init_all_packet_configs): Also initialize the config's 'detect'
8803 field.
8804 (reset_all_packet_configs_support): New function.
8805 (remote_open_1): Call reset_all_packet_configs_support instead of
8806 init_all_packet_configs.
8807 (_initialize_remote): Initialize all packet configs. Assert that
8808 all packets have an associated command, except a few known
8809 outliers.
8810
11c1ba78
JB
88112014-04-28 Joel Brobecker <brobecker@adacore.com>
8812
8813 * dwarf2read.c (read_subrange_type): Handle dynamic
8814 DW_AT_lower_bound attributes.
8815
8739bc53
JB
88162014-04-28 Joel Brobecker <brobecker@adacore.com>
8817
8818 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8819 dynamic bounds before computing its upper bound.
8820 (ada_discrete_type_low_bound): Same as above with the lower bound.
8821
6f8a3220
JB
88222014-04-28 Joel Brobecker <brobecker@adacore.com>
8823
8824 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8825 range types. Adjust the array handling implementation to
8826 take advantage of this change.
8827 (resolve_dynamic_range): New function, mostly extracted from
8828 resolve_dynamic_bounds.
8829 (resolve_dynamic_array): New function, mostly extracted from
8830 resolve_dynamic_bounds.
8831 (resolve_dynamic_bounds): Delete.
8832 (resolve_dynamic_type): Reimplement. Add handling of
8833 TYPE_CODE_RANGE types.
8834
4d072ce4
JB
88352014-04-28 Joel Brobecker <brobecker@adacore.com>
8836
8837 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8838 handling of parallel ___XA types.
8839
52865325
JB
88402014-04-28 Joel Brobecker <brobecker@adacore.com>
8841
8842 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8843 unnecessary second call to static_unwrap_type.
8844
433e77fa
HZ
88452014-04-27 Hui Zhu <hui@codesourcery.com>
8846
8847 * stack.c (print_frame_info): Call do_gdb_disassembly with
8848 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8849
b51a69ee
DE
88502014-04-26 Doug Evans <xdje42@gmail.com>
8851
8852 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8853
7ae1a6a6
PA
88542014-04-25 Pedro Alves <palves@redhat.com>
8855
8856 PR server/16255
8857 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8858 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8859 and newline from built string.
8860 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8861 (linux_ptrace_attach_fail_reason): ... this.
8862 * linux-nat.c (linux_nat_attach): Adjust to use
8863 linux_ptrace_attach_fail_reason.
8864
4082afcc
PA
88652014-04-25 Pedro Alves <palves@redhat.com>
8866
8867 * remote.c (struct remote_state): Remove multi_process_aware,
8868 non_stop_aware, cond_tracepoints, cond_breakpoints,
8869 breakpoint_commands, fast_tracepoints, static_tracepoints,
8870 install_in_trace, disconnected_tracing,
8871 enable_disable_tracepoints, string_tracing, and
8872 augmented_libraries_svr4_read fields.
8873 (remote_multi_process_p): Move further below in the file.
8874 (struct packet_config): Add comments.
8875 (update_packet_config): Delete function.
8876 (show_packet_config_cmd): Use packet_config_support.
8877 (add_packet_config_cmd): Use NULL as set callback.
8878 (packet_ok): "set remote foo-packet"-style commands no longer
8879 change config->supported -- adjust.
8880 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8881 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8882 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8883 (PACKET_QNonStop, PACKET_multiprocess_feature)
8884 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8885 (PACKET_DisconnectedTracing_feature)
8886 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8887 (set_remote_protocol_packet_cmd): Delete function.
8888 (packet_config_support, packet_support): New functions.
8889 (set_remote_protocol_Z_packet_cmd): Don't call
8890 update_packet_config.
8891 (remote_query_attached, remote_pass_signals)
8892 (remote_program_signals, remote_threads_info)
8893 (remote_threads_extra_info, remote_start_remote): Use
8894 packet_support.
8895 (remote_start_remote): Use packet_config_support and
8896 packet_support.
8897 (init_all_packet_configs): Set all packets to unknown support,
8898 instead of calling update_packet_config.
8899 (remote_check_symbols): Use packet_support.
8900 (remote_supported_packet): Unconditionally set the packet config's
8901 support status.
8902 (remote_multi_process_feature, remote_non_stop_feature)
8903 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8904 (remote_breakpoint_commands_feature)
8905 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8906 (remote_install_in_trace_feature)
8907 (remote_disconnected_tracing_feature)
8908 (remote_enable_disable_tracepoint_feature)
8909 (remote_string_tracing_feature)
8910 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8911 (remote_protocol_features): Adjust to use remote_supported_packet
8912 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8913 "ConditionalTracepoints", "ConditionalBreakpoints",
8914 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8915 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8916 "EnableDisableTracepoints", and "tracenz".
8917 (remote_query_supported): Use packet_support.
8918 (remote_open_1): Adjust.
8919 (extended_remote_attach_1): Use packet_support. Switch on the
8920 result of packet_ok instead of checking whether the packet ended
8921 up disabled.
8922 (remote_vcont_resume): Use packet_support.
8923 (remote_resume, remote_stop_ns, fetch_register_using_p)
8924 (remote_prepare_to_store, store_register_using_P)
8925 (check_binary_download, remote_write_bytes): Use packet_support.
8926 (remote_vkill): Use packet_support. Switch on the result of
8927 packet_ok instead of checking whether the packet ended up
8928 disabled.
8929 (extended_remote_supports_disable_randomization): Use
8930 packet_support.
8931 (extended_remote_run): Switch on the result of packet_ok instead
8932 of checking whether the packet ended up disabled.
8933 (remote_insert_breakpoint, remote_remove_breakpoint)
8934 (remote_insert_watchpoint, remote_remove_watchpoint)
8935 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8936 packet_support.
8937 (remote_search_memory): Use packet_config_support.
8938 (remote_get_thread_local_address, remote_get_tib_address)
8939 (remote_hostio_send_command, remote_can_execute_reverse): Use
8940 packet_support.
8941 (remote_supports_cond_tracepoints)
8942 (remote_supports_cond_breakpoints)
8943 (remote_supports_fast_tracepoints)
8944 (remote_supports_static_tracepoints)
8945 (remote_supports_install_in_trace)
8946 (remote_supports_enable_disable_tracepoint)
8947 (remote_supports_string_tracing)
8948 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8949 the packet config says the feature is enabled or disabled.
8950 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8951 (remote_get_trace_status): Use packet_support.
8952 (remote_set_disconnected_tracing): Adjust to check whether the
8953 feature is enabled with packet_support.
8954 (remote_set_trace_buffer_size, remote_use_agent)
8955 (remote_can_use_agent, remote_supports_btrace): Use
8956 packet_support.
8957 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8958 Use packet_config_support.
8959 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8960 the packet config says the feature is enabled or disabled.
8961 (set_range_stepping): Use packet_support.
8962
bdb52a22
TT
89632014-04-25 Tom Tromey <tromey@redhat.com>
8964
8965 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8966 argument.
8967
e9475ead
SA
89682014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8969
8970 * NEWS: Mention support for C99 variable length arrays.
8971
82eacd52
JB
89722014-04-24 Joel Brobecker <brobecker@adacore.com>
8973
8974 * ada-lang.c (standard_exc): Expand introductory comment.
8975
01f9f808
MS
89762014-04-24 Michael Sturm <michael.sturm@mintel.com>
8977 Walfred Tedeschi <walfred.tedeschi@intel.com>
8978
8979 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8980 AVX512 registers.
8981 (amd64_linux_read_description): Add code to handle AVX512 xstate
8982 mask and return respective tdesc.
8983 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8984 and features/i386/x32-avx512-linux.c.
8985 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8986 (amd64_linux_core_read_description): Add code to handle AVX512
8987 xstate mask and return respective tdesc.
8988 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8989 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8990 calculation.
8991 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8992 (tdesc_amd64_avx512_linux): New prototype.
8993 (tdesc_x32_avx512_linux): Likewise.
8994 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8995 features/i386/x32-avx512.c.
8996 (amd64_ymm_avx512_names): New register names for pseudo
8997 registers YMM16-31.
8998 (amd64_ymmh_avx512_names): New register names for raw registers
8999 YMMH16-31.
9000 (amd64_k_names): New register names for K registers.
9001 (amd64_zmmh_names): New register names for ZMM raw registers.
9002 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9003 (amd64_xmm_avx512_names): New register names for XMM16-31
9004 registers.
9005 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9006 registers.
9007 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9008 if feature is present.
9009 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9010 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9011 (AMD64_NUM_REGS): Adjust to new number of registers.
9012 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9013 registers supplied via XSTATE by AVX512 registers.
9014 (i386_linux_read_description): Add case for AVX512.
9015 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9016 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9017 (i386_linux_core_read_description): Add case for AVX512.
9018 (i386_linux_init_abi): Install supported register note section
9019 for AVX512.
9020 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9021 AVX512.
9022 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9023 registers to be number of zmm7h + 1.
9024 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9025 * i386-tdep.c: Include features/i386/i386-avx512.c.
9026 (i386_zmm_names): Add ZMM pseudo register names array.
9027 (i386_zmmh_names): Add ZMM raw register names array.
9028 (i386_k_names): Add K raw register names array.
9029 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9030 registers. AVX512 has 16 more ZMM registers than there are YMM
9031 registers.
9032 (i386_zmmh_regnum_p): Add function to look up register number of
9033 ZMM raw registers.
9034 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9035 (i386_k_regnum_p): Likewise for K raw registers.
9036 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9037 registers added by AVX512.
9038 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9039 registers added by AVX512.
9040 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9041 added by AVX512.
9042 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9043 (i386_pseudo_register_name): Add ZMM pseudo registers.
9044 (i386_zmm_type): Construct and return vector registers type for ZMM
9045 registers.
9046 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9047 ZMM0-31 pseudo registers and K registers.
9048 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9049 and YMM16-31 registers from register cache.
9050 (i386_pseudo_register_write): Add code to write K, ZMM and
9051 YMM16-31 registers.
9052 (i386_register_reggroup_p): Add code to include/exclude AVX512
9053 registers in/from respective register groups.
9054 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9055 registers if feature is present in xcr0.
9056 (i386_gdbarch_init): Add code to initialize AVX512 feature
9057 variables in tdep structure, wire in pseudo registers and call
9058 initialize_tdesc_i386_avx512.
9059 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9060 variables.
9061 (i386_regnum): Add AVX512 registers.
9062 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9063 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9064 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9065 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9066 512 bits wide.
9067 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9068 (i386_ymm_avx512_regnum_p): Likewise.
9069 (i386_k_regnum_p): Likewise.
9070 (i386_zmm_regnum_p): Likewise.
9071 (i386_zmmh_regnum_p): Likewise.
9072 * i387-tdep.c : Update year in copyright notice.
9073 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9074 XSAVE buffer.
9075 (XSAVE_YMM_AVX512_ADDR): New macro.
9076 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9077 XSAVE buffer.
9078 (XSAVE_XMM_AVX512_ADDR): New macro.
9079 (xsave_avx512_k_offset): New table for K register offsets in
9080 XSAVE buffer.
9081 (XSAVE_AVX512_K_ADDR): New macro.
9082 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9083 in XSAVE buffer.
9084 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9085 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9086 buffer.
9087 (i387_collect_xsave): Add code to collect AVX512 registers from
9088 XSAVE buffer.
9089 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9090 of XMM16-31 registers.
9091 (I387_NUM_K_REGS): New define for number of K registers.
9092 (I387_K0_REGNUM): New define for K0 register number.
9093 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9094 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9095 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9096 registers.
9097 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9098 (I387_XMM16_REGNUM): New define for XMM16 register number.
9099 (I387_YMM0_REGNUM): New define for YMM0 register number.
9100 (I387_KEND_REGNUM): New define for last K register number.
9101 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9102 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9103 number.
9104 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9105 number.
9106 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9107 size.
9108 * features/Makefile: Add AVX512 related files.
9109 * features/i386/32bit-avx512.xml: New file.
9110 * features/i386/64bit-avx512.xml: Likewise.
9111 * features/i386/amd64-avx512-linux.c: Likewise.
9112 * features/i386/amd64-avx512-linux.xml: Likewise.
9113 * features/i386/amd64-avx512.c: Likewise.
9114 * features/i386/amd64-avx512.xml: Likewise.
9115 * features/i386/i386-avx512-linux.c: Likewise.
9116 * features/i386/i386-avx512-linux.xml: Likewise.
9117 * features/i386/i386-avx512.c: Likewise.
9118 * features/i386/i386-avx512.xml: Likewise.
9119 * features/i386/x32-avx512-linux.c: Likewise.
9120 * features/i386/x32-avx512-linux.xml: Likewise.
9121 * features/i386/x32-avx512.c: Likewise.
9122 * features/i386/x32-avx512.xml: Likewise.
9123 * regformats/i386/amd64-avx512-linux.dat: New file.
9124 * regformats/i386/amd64-avx512.dat: Likewise.
9125 * regformats/i386/i386-avx512-linux.dat: Likewise.
9126 * regformats/i386/i386-avx512.dat: Likewise.
9127 * regformats/i386/x32-avx512-linux.dat: Likewise.
9128 * regformats/i386/x32-avx512.dat: Likewise.
9129 * NEWS: Add note about new support for AVX512.
9130
9131
08351840
PA
91322014-04-23 Pedro Alves <palves@redhat.com>
9133
9134 * breakpoint.c (insert_bp_location): Tolerate errors if the
9135 breakpoint is set in a user-loaded objfile.
9136 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9137 location is marked shlib_disabled. If the breakpoint is set in a
9138 user-loaded objfile is a GDB-side memory breakpoint, validate it
9139 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9140 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9141 flag.
9142 * mem-break.c (memory_validate_breakpoint): New function.
9143 * objfiles.c (userloaded_objfile_contains_address_p): New
9144 function.
9145 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9146 * target.h (memory_validate_breakpoint): New declaration.
9147
076855f9
PA
91482014-04-23 Pedro Alves <palves@redhat.com>
9149
9150 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9151 the breakpoint is set in a shared library, only suppress
9152 errors for software breakpoints, not hardware breakpoints.
9153
483805cf
PA
91542014-04-22 Pedro Alves <palves@redhat.com>
9155
9156 * infrun.c (schedlock_applies): New function, factored out from
9157 find_thread_needs_step_over.
9158 (find_thread_needs_step_over): Use it.
9159 (switch_back_to_stepped_thread): Always clear trap_expected if the
9160 step over is finished. Return early if scheduler locking applies.
9161 Look for the stepping thread and a potential step-over thread with
9162 a single loop.
9163 (currently_stepping_or_nexting_callback): Delete.
9164
a75fef0e
NC
91652014-04-22 Nick Clifton <nickc@redhat.com>
9166
9167 * NEWS: Mention that ARM sim now supports tracing.
9168
48b6e87e
YQ
91692014-04-22 Yao Qi <yao@codesourcery.com>
9170
9171 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9172 to ...
9173 * tracefile.c (tracefile_fetch_registers): ... it. New
9174 function.
9175 * tracefile.h (tracefile_fetch_registers): Declare.
9176 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9177 tracefile_fetch_registers.
9178
17617f2d
EZ
91792014-04-19 Eli Zaretskii <eliz@gnu.org>
9180
9181 PR gdb/14018
9182 * windows-nat.c (thread_rec): Don't display a warning when
9183 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9184 fails for any reason, set th->suspended to -1, so that we don't
9185 try to resume such a thread. Also, don't return NULL in these
9186 cases, to avoid completely ruin the session due to "PC register is
9187 not available" error.
9188 (do_windows_fetch_inferior_registers): Check errors in
9189 GetThreadContext call.
9190 (windows_continue): Accept an additional argument KILLED; if not
9191 zero, ignore errors in the SetThreadContext call, since the
9192 inferior was killed and is shutting down.
9193 (windows_resume, get_windows_debug_event)
9194 (windows_create_inferior, windows_mourn_inferior)
9195 (windows_kill_inferior): All callers of windows_continue changed
9196 to adjust to its new calling sequence.
9197
5723a6fd
YQ
91982014-04-19 Yao Qi <yao@codesourcery.com>
9199
9200 * ctf.c (ctf_open): Call post_create_inferior.
9201
614d5099
YQ
92022014-04-19 Yao Qi <yao@codesourcery.com>
9203
9204 * ctf.c (handle_id): New static variable.
9205 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9206 value. Get the declaration of event "register" and get length
9207 of field "contents".
9208
dac3e710
YQ
92092014-04-19 Yao Qi <yao@codesourcery.com>
9210
9211 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9212
2bca57ba
SC
92132014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9214
9215 * valops.c (oload_method_static): Remove unnecessary argument
9216 METHOD. Update all callers.
9217
51d48146
PA
92182014-04-18 Pedro alves <palves@redhat.com>
9219 Tom Tromey <tromey@redhat.com>
9220
9221 PR backtrace/15558
9222 * frame.c (get_prev_frame_1): Rename to ...
9223 (get_prev_frame_always): ... this, and make extern. Adjust.
9224 (skip_artificial_frames): Use get_prev_frame_always.
9225 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9226 (get_frame_unwind_stop_reason): Adjust to rename.
9227 * frame.h (get_prev_frame_always): Declare.
9228 * inline-frame.c: Include frame.h.
9229 (inline_frame_this_id): Use get_prev_frame_always.
9230
1bdad2e0
TG
92312014-04-18 Tristan Gingold <gingold@adacore.com>
9232
9233 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9234 code by using bfd_mach_o_get_base_address.
9235
7ce16bd4
UW
92362014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9237
9238 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9239 (spu_ax_pseudo_register_collect): New function.
9240 (spu_ax_pseudo_register_push_stack): Likewise.
9241 (spu_dwarf_reg_to_regnum): Likewise.
9242 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9243
2ed3c037
UW
92442014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9245
9246 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9247 Replace FRAME argument with FRAME_ID.
9248 * gdbarch.c, gdbarch.h: Regenerate.
9249 * findvar.c (default_value_from_register): Add GDBARCH argument;
9250 replace FRAME by FRAME_ID. No longer call get_frame_id.
9251 (value_from_register): Update call to gdbarch_value_from_register.
9252 * value.h (default_value_from_register): Update prototype.
9253 * s390-linux-tdep.c (s390_value_from_register): Update interface
9254 and call to default_value_from_register.
9255 * spu-tdep.c (spu_value_from_register): Likewise.
9256
9257 * findvar.c (address_from_register): Remove TYPE argument.
9258 Do not call value_from_register; use gdbarch_value_from_register
9259 with null_frame_id instead.
9260 * value.h (address_from_register): Update prototype.
9261 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9262 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9263 address_from_register interface change.
9264
71e50e83
YQ
92652014-04-17 Yao Qi <yao@codesourcery.com>
9266
9267 * gdbtypes.h: Update comments to link to types and macros'
9268 definitions.
9269
7a23c549
SC
92702014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9271
9272 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9273
22869d73
KS
92742014-04-16 Keith Seitz <keiths@redhat.com>
9275
9276 PR gdb/15827
9277 * dwarf2read.c (skip_one_die): Check that all relative-offset
9278 sibling DIEs fall within range of the current reader's buffer.
9279 (read_partial_die): Likewise.
9280
c4f87ca6
KS
92812014-04-16 Keith Seitz <keiths@redhat.com>
9282
9283 PR c++/16597
9284 * cp-namespace.c (lookup_symbol_file): If the type name of
9285 `this' is NULL, return immediately.
9286
b50c8614
KS
92872014-04-14 Keith Seitz <keiths@redhat.com>
9288
9289 PR c++/16253
9290 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9291 from symbol_matches_domain in symtab.c. All local callers
9292 of symbol_matches_domain updated.
9293 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9294 search STRUCT_DOMAIN.
9295 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9296 independently. standard_lookup will do that automatically.
9297 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9298 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9299 (cp_lookup_symbol_in_namespace): Likewise.
9300 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9301 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9302 may return a STRUCT_DOMAIN match.
9303 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9304 * cp-support.c: Include language.h.
9305 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9306 VAR_DOMAIN.
9307 * psymtab.c (match_partial_symbol): Compare the requested
9308 domain with the symbol's domain directly.
9309 (lookup_partial_symbol): Likewise.
9310 * symtab.c (lookup_symbol_in_language): Explain when/why
9311 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9312 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9313 appropriate languages.
9314 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9315 and moved to ada-lang.c
9316 (lookup_block_symbol): Explain that this function only returns
9317 symbol matching the requested DOMAIN.
9318 Compare the requested domain with the symbol's domain directly.
9319 (iterate_over_symbols): Compare the requested domain with the
9320 symbol's domain directly.
9321 * symtab.h (symbol_matches_domain): Remove.
9322
3d567982
TT
93232014-04-14 Tom Tromey <tromey@redhat.com>
9324
9325 PR c++/15246:
9326 * c-exp.y (type_aggregate_p): New function.
9327 (qualified_name, classify_inner_name): Use it.
9328 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9329 and TYPE_TARGET_TYPE of an enum type.
9330 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9331 an enum type.
9332 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9333 handle TYPE_DECLARED_CLASS.
9334 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9335 types.
9336 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9337 * valops.c (enum_constant_from_type): New function.
9338 (value_aggregate_elt): Use it.
9339 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9340 TYPE_CODE_ENUM.
9341
c848d642
TT
93422014-04-14 Tom Tromey <tromey@redhat.com>
9343
9344 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9345 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9346 const.
9347 * value.h (value_aggregate_elt): Update.
9348
0626fc76
TT
93492014-04-14 Tom Tromey <tromey@redhat.com>
9350
9351 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9352
5ecaaa66
SA
93532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9354
9355 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9356 (evaluate_subexp_standard): Pass noside argument.
9357 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9358 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9359 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9360 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9361 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9362
1612e0c0
SA
93632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9364
9365 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9366 points to a constant blob.
9367
c451ebe5
SA
93682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9369
9370 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9371 property and store it as the high bound and flag the range accordingly.
9372 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9373 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9374 * gdbtypes.h (enum range_flags): New enum.
9375 (struct range_bounds): Add flags member.
9376
1d42e4c4
SA
93772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9378
9379 * c-typeprint.c (c_type_print_varspec_suffix): Added
9380 check for not yet resolved high bound. If unresolved, print
9381 "variable length" string to the console instead of random
9382 length.
9383
9f1f738a
SA
93842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9385
9386 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9387 value.
9388 (ada_template_to_fixed_record_type_1): Likewise.
9389 (ada_to_fixed_type_1): Likewise.
9390 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9391 (cp_print_value): Likewise.
9392 * d-valprint.c (dynamic_array_type): Likewise.
9393 * findvar.c (address_of_variable): Likewise.
9394 * jv-valprint.c (java_value_print): Likewise.
9395 * valops.c (value_ind): Likewise.
9396 * value.c (coerce_ref): Likewise.
9397
3c8452d4
SA
93982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9399
9400 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9401 value and retrieve the dynamic type size.
9402
4ad88275
SA
94032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9404
9405 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9406 passed to sizeof is dynamic evaluate the argument to compute the length.
9407
80180f79
SA
94082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9409 Joel Brobecker <brobecker@adacore.com>
9410
9411 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9412 (dwarf2_evaluate_property): New function.
9413 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9414 * dwarf2read.c (attr_to_dynamic_prop): New function.
9415 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9416 attribute.
9417 * gdbtypes.c: Include dwarf2loc.h.
9418 (is_dynamic_type): New function.
9419 (resolve_dynamic_type): New function.
9420 (resolve_dynamic_bounds): New function.
9421 (get_type_length): New function.
9422 (check_typedef): Use get_type_length to compute type length.
9423 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9424 (TYPE_LOW_BOUND_KIND): New macro.
9425 (is_dynamic_type): New function prototype.
9426 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9427 to resolve dynamic properties of the type. Update comment.
9428 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9429
a1556843
RH
94302014-04-14 Richard Henderson <rth@redhat.com>
9431
9432 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9433
0be03e84
DE
94342014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9435 Doug Evans <xdje42@gmail.com>
9436
9437 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9438 dereference TYPE_CODE_REF values.
9439
6b662e19
JB
94402014-04-11 Joel Brobecker <brobecker@adacore.com>
9441
9442 Revert the following changes due to regressions:
9443
9444 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9445 (dwarf2_evaluate_property): New function.
9446 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9447 * dwarf2read.c (attr_to_dynamic_prop): New function.
9448 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9449 attribute.
9450 * gdbtypes.c: Include dwarf2loc.h.
9451 (is_dynamic_type): New function.
9452 (resolve_dynamic_type): New function.
9453 (resolve_dynamic_bounds): New function.
9454 (get_type_length): New function.
9455 (check_typedef): Use get_type_length to compute type length.
9456 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9457 (TYPE_LOW_BOUND_KIND): New macro.
9458 (is_dynamic_type): New function prototype.
9459 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9460 to resolve dynamic properties of the type. Update comment.
9461 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9462
9463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9464 passed to sizeof is dynamic evaluate the argument to compute the length.
9465
9466 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9467 value and retrieve the dynamic type size.
9468
9469 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9470 (ada_template_to_fixed_record_type_1): Likewise.
9471 (ada_to_fixed_type_1): Likewise.
9472 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9473 (cp_print_value): Likewise.
9474 * d-valprint.c (dynamic_array_type): Likewise.
9475 * eval.c (evaluate_subexp_with_coercion): Likewise.
9476 * findvar.c (address_of_variable): Likewise.
9477 * jv-valprint.c (java_value_print): Likewise.
9478 * valops.c (value_ind): Likewise.
9479 * value.c (coerce_ref): Likewise.
9480
9481 * c-typeprint.c (c_type_print_varspec_suffix): Added
9482 check for not yet resolved high bound. If unresolved, print
9483 "variable length" string to the console instead of random
9484 length.
9485
9486 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9487 property and store it as the high bound and flag the range accordingly.
9488 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9489 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9490 * gdbtypes.h (enum range_flags): New enum.
9491 (struct range_bounds): Add flags member.
9492
9493 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9494 points to a constant blob.
9495
9496 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9497 (evaluate_subexp_standard): Pass noside argument.
9498 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9499 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9500 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9501 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9502 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9503
245a5f0b
KS
95042014-04-11 Keith Seitz <keiths@redhat.com>
9505
9506 PR c++/16675
9507 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9508 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9509 reference types.
9510
3bce8237
SA
95112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9512
9513 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9514 (evaluate_subexp_standard): Pass noside argument.
9515 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9516 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9517 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9518 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9519 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9520
92b09522
SA
95212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9522
9523 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9524 points to a constant blob.
9525
e1969afb
SA
95262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9527
9528 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9529 property and store it as the high bound and flag the range accordingly.
9530 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9531 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9532 * gdbtypes.h (enum range_flags): New enum.
9533 (struct range_bounds): Add flags member.
9534
b86138fb
SA
95352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9536
9537 * c-typeprint.c (c_type_print_varspec_suffix): Added
9538 check for not yet resolved high bound. If unresolved, print
9539 "variable length" string to the console instead of random
9540 length.
9541
bcd629a4
SA
95422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9543
9544 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9545 (ada_template_to_fixed_record_type_1): Likewise.
9546 (ada_to_fixed_type_1): Likewise.
9547 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9548 (cp_print_value): Likewise.
9549 * d-valprint.c (dynamic_array_type): Likewise.
9550 * eval.c (evaluate_subexp_with_coercion): Likewise.
9551 * findvar.c (address_of_variable): Likewise.
9552 * jv-valprint.c (java_value_print): Likewise.
9553 * valops.c (value_ind): Likewise.
9554 * value.c (coerce_ref): Likewise.
9555
04b19544
SA
95562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9557
9558 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9559 value and retrieve the dynamic type size.
9560
26cb189f
SA
95612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9562
9563 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9564 passed to sizeof is dynamic evaluate the argument to compute the length.
9565
37c1ab67
SA
95662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9567
9568 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9569 (dwarf2_evaluate_property): New function.
9570 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9571 * dwarf2read.c (attr_to_dynamic_prop): New function.
9572 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9573 attribute.
9574 * gdbtypes.c: Include dwarf2loc.h.
9575 (is_dynamic_type): New function.
9576 (resolve_dynamic_type): New function.
9577 (resolve_dynamic_bounds): New function.
9578 (get_type_length): New function.
9579 (check_typedef): Use get_type_length to compute type length.
9580 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9581 (TYPE_LOW_BOUND_KIND): New macro.
9582 (is_dynamic_type): New function prototype.
9583 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9584 to resolve dynamic properties of the type. Update comment.
9585 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9586
729efb13
SA
95872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9588
9589 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9590 declaring high/low bounds and change uses accordingly. Call
9591 create_range_type instead of create_static_range_type.
9592 * gdbtypes.c (create_range_type): New function.
9593 (create_range_type): Convert bounds into struct bound_prop and pass
9594 them to create_range_type.
9595 * gdbtypes.h (struct bound_prop): New struct.
9596 (create_range_type): New function prototype.
9597 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9598 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9599 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9600 part of the bound.
9601 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9602
0c9c3474
SA
96032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9604
9605 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9606 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9607 * ada-lang.c: All uses of create_range_type updated.
9608 * coffread.c: All uses of create_range_type updated.
9609 * dwarf2read.c: All uses of create_range_type updated.
9610 * f-exp.y: All uses of create_range_type updated.
9611 * m2-valprint.c: All uses of create_range_type updated.
9612 * mdebugread.c: All uses of create_range_type updated.
9613 * stabsread.c: All uses of create_range_type updated.
9614 * valops.c: All uses of create_range_type updated.
9615 * valprint.c: All uses of create_range_type updated.
9616
9d497a19
PA
96172014-04-10 Pedro Alves <palves@redhat.com>
9618
9619 * breakpoint.c (single_step_breakpoints)
9620 (single_step_gdbarch): Move up in the file.
9621 (one_breakpoint_xfer_memory): New function, factored out from ...
9622 (breakpoint_xfer_memory): ... here. Also process single-step
9623 breakpoints.
9624
15a9128a
TG
96252014-04-09 Tristan Gingold <gingold@adacore.com>
9626
9627 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9628 comments.
9629 (darwin_decode_exception_message): Free port only after use.
9630
9c97a070
PL
96312014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9632
9633 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9634 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9635 when setting the size of call_length.
9636
7af389b8
SC
96372014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9638
9639 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9640 dereference TYPE_CODE_REF values.
9641
86ad98c3
JB
96422014-04-07 Joel Brobecker <brobecker@adacore.com>
9643
9644 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9645 end of warning message.
9646
b0aeadb3
DE
96472014-04-03 Doug Evans <dje@google.com>
9648
9649 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9650 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9651
5979d6b6
AM
96522014-04-02 Alan Modra <amodra@gmail.com>
9653
9654 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9655 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9656 (struct symbol_file_add_from_memory_args): Add size field.
9657 (find_vdso_size): New function.
9658 (add_vsyscall_page): Attempt to find vdso size.
9659
0d60c288
DE
96602014-04-01 Doug Evans <dje@google.com>
9661
9662 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9663
a41f2563
TG
96642014-04-01 Tristan Gingold <gingold@adacore.com>
9665
9666 * darwin-nat.c (darwin_encode_reply): Add prototype.
9667 (darwin_decode_exception_message): Reply to unknown inferiors.
9668 (darwin_decode_message): Handle message by id. Ignore message
9669 to unknown inferior.
9670 (darwin_wait): Discard unknown messages, add debug trace.
9671
11a865c8
DE
96722014-03-31 Doug Evans <dje@google.com>
9673
9674 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9675 comp_dir_string.
9676
770e7fc7
DE
96772014-03-31 Doug Evans <dje@google.com>
9678
9679 New option "set print symbol-loading".
9680 * NEWS: Mention it.
9681 * solib.c (solib_read_symbols): Only print symbol loading messages
9682 if requested.
9683 (solib_add): If symbol loading is in "brief" mode, notify user
9684 symbols are being loaded.
9685 (reload_shared_libraries_1): Ditto.
9686 * symfile.c (print_symbol_loading_off): New static global.
9687 (print_symbol_loading_brief): New static global.
9688 (print_symbol_loading_full): New static global.
9689 (print_symbol_loading_enums): New static global.
9690 (print_symbol_loading): New static global.
9691 (print_symbol_loading_p): New function.
9692 (symbol_file_add_with_addrs): Only print symbol loading messages
9693 if requested.
9694 (_initialize_symfile): Register "print symbol-loading" set/show
9695 command.
9696 * symfile.h (print_symbol_loading_p): Declare.
9697
c32c64b7
DE
96982014-03-30 Doug Evans <xdje42@gmail.com>
9699
9700 * infrun.c (set_last_target_status): New function.
9701 (handle_inferior_event): Call it.
9702
7c0bc051
DE
97032014-03-30 Doug Evans <xdje42@gmail.com>
9704
9705 * inferior.h (enum stop_kind): Improve comment.
9706
8776cfe9
JB
97072014-03-28 Joel Brobecker <brobecker@adacore.com>
9708
9709 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9710 a reference, strip the reference layer before calling
9711 the lang_ops value_has_mutated callback.
9712
410a0ff2
SDJ
97132014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9714
9715 Remove some globals from our parser.
9716 * language.c (unk_lang_parser): Add "struct parser_state"
9717 argument.
9718 * language.h (struct language_defn) <la_parser>: Likewise.
9719 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9720 (initialize_expout): Add "struct parser_state" argument.
9721 Rewrite function to use the parser state.
9722 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9723 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9724 write_exp_elt_longcst, write_exp_elt_dblcst,
9725 write_exp_elt_decfloatcst, write_exp_elt_type,
9726 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9727 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9728 write_dollar_variable): Likewise.
9729 (parse_exp_in_context_1): Use parser state.
9730 (insert_type_address_space): Add "struct parser_state" argument.
9731 Use parser state.
9732 (increase_expout_size): New function.
9733 * parser-defs.h: Forward declare "struct language_defn" and
9734 "struct parser_state".
9735 (expout, expout_size, expout_ptr): Remove extern declarations.
9736 (parse_gdbarch, parse_language): Rewrite macro declarations to
9737 accept the parser state.
9738 (struct parser_state): New struct.
9739 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9740 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9741 write_exp_elt_decfloatcst, write_exp_elt_type,
9742 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9743 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9744 write_exp_msymbol, write_dollar_variable,
9745 mark_struct_expression, insert_type_address_space): Add "struct
9746 parser_state" argument.
9747 (increase_expout_size): New function.
9748 * utils.c (do_clear_parser_state): New function.
9749 (make_cleanup_clear_parser_state): Likewise.
9750 * utils.h (make_cleanup_clear_parser_state): New function
9751 prototype.
9752 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9753 Update calls to write_exp* in order to pass the parser state.
9754 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9755 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9756 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9757 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9758 * stap-probe.c (stap_parse_register_operand): Likewise.
9759 (stap_parse_single_operand): Likewise.
9760 (stap_parse_argument_1): Likewise.
9761 (stap_parse_argument): Use parser state.
9762 * stap-probe.h: Include "parser-defs.h".
9763 (struct stap_parse_info) <pstate>: New field.
9764 * c-exp.y (parse_type): Rewrite to use parser state.
9765 (yyparse): Redefine to c_parse_internal.
9766 (pstate): New global variable.
9767 (parse_number): Add "struct parser_state" argument.
9768 (write_destructor_name): Likewise.
9769 (type_exp): Update calls to write_exp* and similars in order to
9770 use parser state.
9771 (exp1, exp, variable, qualified_name, space_identifier,
9772 typename, typebase): Likewise.
9773 (write_destructor_name, parse_number, lex_one_token,
9774 classify_name, classify_inner_name, c_parse): Add "struct
9775 parser_state" argument. Update function to use parser state.
9776 * c-lang.h: Forward declare "struct parser_state".
9777 (c_parse): Add "struct parser_state" argument.
9778 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9779 (yyparse): Redefine macro to ada_parse_internal.
9780 (pstate): New variable.
9781 (write_int, write_object_renaming, write_var_or_type,
9782 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9783 type_int, type_long, type_long_long, type_float, type_double,
9784 type_long_double, type_char, type_boolean, type_system_address):
9785 Add "struct parser_state" argument.
9786 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9787 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9788 var_or_type, aggregate, aggregate_component_list,
9789 positional_list, others, component_group,
9790 component_associations): Update calls to write_exp* and similar
9791 functions in order to use parser state.
9792 (ada_parse, write_var_from_sym, write_int,
9793 write_exp_op_with_string, write_object_renaming,
9794 find_primitive_type, write_selectors, write_ambiguous_var,
9795 write_var_or_type, write_name_assoc, type_int, type_long,
9796 type_long_long, type_float, type_double, type_long_double,
9797 type_char, type_boolean, type_system_address): Add "struct
9798 parser_state" argument. Adjust function to use parser state.
9799 * ada-lang.c (parse): Likewise.
9800 * ada-lang.h: Forward declare "struct parser_state".
9801 (ada_parse): Add "struct parser_state" argument.
9802 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9803 calls to both functions.
9804 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9805 parser state.
9806 (yyparse): Redefine macro to f_parse_internal.
9807 (pstate): New variable.
9808 (parse_number): Add "struct parser_state" argument.
9809 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9810 and similars in order to use parser state.
9811 (parse_number): Adjust code to use parser state.
9812 (yylex): Likewise.
9813 (f_parse): New function.
9814 * f-lang.h: Forward declare "struct parser_state".
9815 (f_parse): Add "struct parser_state" argument.
9816 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9817 parser state.
9818 (yyparse): Redefine macro for java_parse_internal.
9819 (pstate): New variable.
9820 (push_expression_name, push_expression_name, insert_exp): Add
9821 "struct parser_state" argument.
9822 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9823 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9824 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9825 PostIncrementExpression, PostDecrementExpression,
9826 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9827 UnaryExpressionNotPlusMinus, CastExpression,
9828 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9829 RelationalExpression, EqualityExpression, AndExpression,
9830 ExclusiveOrExpression, InclusiveOrExpression,
9831 ConditionalAndExpression, ConditionalOrExpression,
9832 ConditionalExpression, Assignment, LeftHandSide): Update
9833 calls to write_exp* and similars in order to use parser state.
9834 (parse_number): Ajust code to use parser state.
9835 (yylex): Likewise.
9836 (java_parse): New function.
9837 (push_variable): Add "struct parser_state" argument. Adjust
9838 code to user parser state.
9839 (push_fieldnames, push_qualified_expression_name,
9840 push_expression_name, insert_exp): Likewise.
9841 * jv-lang.h: Forward declare "struct parser_state".
9842 (java_parse): Add "struct parser_state" argument.
9843 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9844 parser state.
9845 (yyparse): Redefine macro to m2_parse_internal.
9846 (pstate): New variable.
9847 (type_exp, exp, fblock, variable, type): Update calls to
9848 write_exp* and similars to use parser state.
9849 (yylex): Likewise.
9850 (m2_parse): New function.
9851 * m2-lang.h: Forward declare "struct parser_state".
9852 (m2_parse): Add "struct parser_state" argument.
9853 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9854 * objc-lang.h: Forward declare "struct parser_state".
9855 (end_msglist): Add "struct parser_state" argument.
9856 * p-exp.y (parse_type): Rewrite macro to use parser state.
9857 (yyparse): Redefine macro to pascal_parse_internal.
9858 (pstate): New variable.
9859 (parse_number): Add "struct parser_state" argument.
9860 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9861 write_exp* and similars in order to use parser state.
9862 (parse_number, yylex): Adjust code to use parser state.
9863 (pascal_parse): New function.
9864 * p-lang.h: Forward declare "struct parser_state".
9865 (pascal_parse): Add "struct parser_state" argument.
9866 * go-exp.y (parse_type): Rewrite macro to use parser state.
9867 (yyparse): Redefine macro to go_parse_internal.
9868 (pstate): New variable.
9869 (parse_number): Add "struct parser_state" argument.
9870 (type_exp, exp1, exp, variable, type): Update calls to
9871 write_exp* and similars in order to use parser state.
9872 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9873 to use parser state.
9874 (go_parse): Likewise.
9875 * go-lang.h: Forward declare "struct parser_state".
9876 (go_parse): Add "struct parser_state" argument.
9877
342587c4
DE
98782014-03-27 Doug Evans <dje@google.com>
9879
9880 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9881
33e80786
DE
98822014-03-27 Doug Evans <dje@google.com>
9883
9884 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9885 Remove argument abbrev_section. All callers updated.
9886
1dbab08b
DE
98872014-03-27 Doug Evans <dje@google.com>
9888
9889 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9890 addr_base, ranges_base.
9891
318d3177
KS
98922014-03-26 Keith Seitz <keiths@redhat.com>
9893
9894 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9895 types, not VAR_DOMAIN.
9896
1e54db15
SL
98972014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9898
9899 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9900 "ra" registers.
9901 * features/nios2-linux.c: Regenerated.
9902 * features/nios2.c: Regenerated.
9903
d3839ede
PA
99042014-03-25 Pedro Alves <palves@redhat.com>
9905
9906 * cli/cli-script.c (script_from_file): Force the interpreter to
9907 sync mode.
9908
7588d2ec
PL
99092014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9910
9911 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9912 small stack allocation.
9913
a6290449
TG
99142014-03-24 Tristan Gingold <gingold@adacore.com>
9915
9916 * darwin-nat.c (exc_server): Remove unused prototype.
9917 (darwin_dump_message): Correctly display data on x86_64.
9918 (darwin_encode_reply): Fix style.
9919 Add comments and fix indentation.
9920
31ae9d24 99212014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9922
9923 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9924
6339bfc4
DE
99252014-03-22 Doug Evans <xdje42@gmail.com>
9926
9927 * infcmd.c: Whitespace fixes.
9928 (interrupt_command): Merge two function comments into one.
9929
0a07590b
DE
99302014-03-22 Doug Evans <xdje42@gmail.com>
9931
9932 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9933 All uses updated.
9934
b55fbac4
YQ
99352014-03-22 Yao Qi <yao@codesourcery.com>
9936
9937 * remote.c (target_read_live_memory): Remove.
9938 (memory_xfer_live_readonly_partial): Rename it to
9939 remote_xfer_live_readonly_partial. Remove argument 'object'.
9940 All callers updated. Call remote_read_bytes_1
9941 instead of target_read_live_memory.
9942 * tracepoint.c (set_traceframe_number): Remove.
9943 (make_cleanup_restore_traceframe_number): Likewise .
9944 * tracepoint.h (set_traceframe_number): Remove declaration.
9945 (make_cleanup_restore_traceframe_number): Likewise.
9946
9217e74e
YQ
99472014-03-22 Yao Qi <yao@codesourcery.com>
9948
9949 * remote.c (remote_read_bytes): Move code on reading from the
9950 remote stub to ...
9951 (remote_read_bytes_1): ... here. New function.
9952
8acf9577
YQ
99532014-03-22 Yao Qi <yao@codesourcery.com>
9954
9955 * ctf.c (ctf_xfer_partial): Check the return value of
9956 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9957 return TARGET_XFER_UNAVAILABLE.
9958 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9959 * target.c (target_read_live_memory): Move it to remote.c.
9960 (memory_xfer_live_readonly_partial): Likewise.
9961 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9962 * remote.c (target_read_live_memory): Moved from target.c.
9963 (memory_xfer_live_readonly_partial): Likewise.
9964 (remote_read_bytes): Factored out from
9965 memory_xfer_partial_1.
9966
feef67ab
DE
99672014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9968
9969 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9970 NULL pointer.
9971
b65dc60b
PA
99722014-03-21 Pedro Alves <palves@redhat.com>
9973
9974 * infrun.c (normal_stop): Extend comment.
9975
b4ab256d
HZ
99762014-03-21 Hui Zhu <hui@codesourcery.com>
9977 Pedro Alves <palves@redhat.com>
9978
9979 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9980 static buffer.
9981 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9982 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9983 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9984
deba7593
MR
99852014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9986
9987 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9988 `z' formatted output modifier.
9989
1bff71c3
SDJ
99902014-03-20 Tom Tromey <tromey@redhat.com>
9991 Sergio Durigan Junior <sergiodj@redhat.com>
9992
9993 * probe.c (parse_probes): Turn assert into an ordinary error.
9994 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9995 exceptions when parsing probes. Rearrange the code for clarity.
9996
90e28950
TT
99972014-03-20 Tom Tromey <tromey@redhat.com>
9998
9999 PR gdb/14135
10000 * top.c (execute_command): Only dispatch events if the command
10001 started the target.
10002
beb460e8
PA
100032014-03-20 Tom Tromey <tromey@redhat.com>
10004
10005 PR cli/15718
10006 * infcall.c: Include event-top.h.
10007 (run_inferior_call): Call async_disable_stdin if needed.
10008
99619bea
PA
100092014-03-20 Pedro Alves <palves@redhat.com>
10010
10011 * infrun.c (prepare_to_proceed): Delete.
10012 (thread_still_needs_step_over): New function.
10013 (find_thread_needs_step_over): New function.
10014 (proceed): If the current thread needs a step-over, set its
10015 steping_over_breakpoint flag. Adjust to use
10016 find_thread_needs_step_over instead of prepare_to_proceed.
10017 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10018 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10019 breakpoint.
10020 (switch_back_to_stepped_thread): Step over breakpoints of all
10021 threads not the stepping thread, before switching back to the
10022 stepping thread.
10023
2adfaa28
PA
100242014-03-20 Pedro Alves <palves@redhat.com>
10025
10026 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10027 extern.
10028 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10029 * infrun.c (saved_singlestep_ptid)
10030 (stepping_past_singlestep_breakpoint): Delete.
10031 (resume): Remove stepping_past_singlestep_breakpoint handling.
10032 (proceed): Store the prev_pc of the stepping thread too.
10033 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10034 singlestep_pc.
10035 (enum infwait_states): Delete infwait_thread_hop_state.
10036 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10037 field.
10038 (handle_inferior_event): Adjust.
10039 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10040 handling and the thread-hop code. Before removing single-step
10041 breakpoints, check whether the thread hit a single-step breakpoint
10042 of another thread. If it did, the trap is not a random signal.
10043 (switch_back_to_stepped_thread): If the event thread hit a
10044 single-step breakpoint, unblock it before switching to the
10045 stepping thread. Handle the case of the stepped thread having
10046 advanced already.
10047 (keep_going): Handle the case of the current thread moving past a
10048 single-step breakpoint.
10049
31e77af2
PA
100502014-03-20 Pedro Alves <palves@redhat.com>
10051
10052 PR breakpoints/7143
10053 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10054 are being stepped over.
10055 (breakpoint_address_match): Make extern.
10056 * breakpoint.h (breakpoint_address_match): New declaration.
10057 * inferior.h (stepping_past_instruction_at): New declaration.
10058 * infrun.c (struct step_over_info): New type.
10059 (step_over_info): New global.
10060 (set_step_over_info, clear_step_over_info)
10061 (stepping_past_instruction_at): New functions.
10062 (handle_inferior_event): Clear the step-over info when
10063 trap_expected is cleared.
10064 (resume): Remove now stale comment.
10065 (clear_proceed_status): Clear step-over info.
10066 (proceed): Adjust step-over handling to set or clear the step-over
10067 info instead of removing all breakpoints.
10068 (handle_signal_stop): When setting up a thread-hop, don't remove
10069 breakpoints here.
10070 (stop_stepping): Clear step-over info.
10071 (keep_going): Adjust step-over handling to set or clear step-over
10072 info and then always inserting breakpoints, instead of removing
10073 all breakpoints when stepping over one.
10074
b9f437de
PA
100752014-03-20 Pedro Alves <palves@redhat.com>
10076
10077 * infrun.c (previous_inferior_ptid): Adjust comment.
10078 (deferred_step_ptid): Delete.
10079 (infrun_thread_ptid_changed, prepare_to_proceed)
10080 (init_wait_for_inferior): Adjust.
10081 (handle_signal_stop): Delete deferred_step_ptid handling.
10082
06c868a8
JK
100832014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10084
10085 PR gdb/15358
10086 * defs.h (sync_quit_force_run): New declaration.
10087 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10088 * event-top.c (async_sigterm_handler): New declaration.
10089 (async_sigterm_token): New variable.
10090 (async_init_signals): Create also async_sigterm_token.
10091 (async_sigterm_handler): New function.
10092 (sync_quit_force_run): New variable.
10093 (handle_sigterm): Replace quit_force call by other calls.
10094 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10095
dea80df0
MR
100962014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10097
10098 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10099 offset into SPE pseudo registers.
10100
0c7e1a46
PA
101012014-03-18 Pedro Alves <palves@redhat.com>
10102
10103 PR gdb/13860
10104 * inferior.h (print_stop_event): Declare.
10105 * infrun.c (print_stop_event): New, factored out from ...
10106 (normal_stop): ... this.
10107 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10108 of bpstat_print/print_stack_frame.
10109
9c1fcd01
TT
101102014-03-17 Tom Tromey <tromey@redhat.com>
10111
10112 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10113
11aa919a
PMR
101142014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10115
10116 * ada-lang.c (decode_constrained_packed_array): Perform a
10117 minimal coercion for reference with coerce_ref instead of
10118 ada_coerce_ref.
10119
d4ccb5e0
TG
101202014-03-17 Tristan Gingold <gingold@adacore.com>
10121
10122 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10123 (darwin_solib_create_inferior_hook): Emit a warning if version
10124 is unhandled.
10125
49840f2a
UW
101262014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10127
10128 * python/py-value.c (get_field_flag): Cast flag_name argument to
10129 PyObject_GetAttrString to support Python 2.4.
10130
ed4123e5
JK
101312014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10132
10133 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10134 (Global Maintainers): Remove Jan Kratochvil.
10135
d6b64346
PA
101362014-03-14 Pedro Alves <palves@redhat.com>
10137
10138 * inferior.h (terminal_ours_for_output): Rename to ...
10139 (child_terminal_ours_for_output): ... this.
10140 (terminal_save_ours): Rename to ...
10141 (child_terminal_save_ours): ... this.
10142 (terminal_ours): Rename to ...
10143 (child_terminal_ours): ... this.
10144 (terminal_inferior): Rename to ...
10145 (child_terminal_inferior): ... this.
10146 (terminal_init_inferior): Rename to ...
10147 (child_terminal_init_inferior): ... this.
10148 (terminal_init_inferior_with_pgrp): Rename to ...
10149 (child_terminal_init_inferior_with_pgrp): ... this.
10150 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10151 (child_terminal_init_with_pgrp): ... this.
10152 (terminal_save_ours): Rename to ...
10153 (child_terminal_save_ours): ... this.
10154 (terminal_init_inferior): Rename to ...
10155 (child_terminal_init): ... this. Adjust.
10156 (terminal_inferior): Rename to ...
10157 (child_terminal_inferior): ... this.
10158 (terminal_ours_for_output): Rename to ...
10159 (child_terminal_ours_for_output): ... this. Adjust.
10160 (terminal_ours): Rename to ...
10161 (child_terminal_ours): ... this.
10162 (terminal_ours_1): Rename to ...
10163 (child_terminal_ours_1): ... this. Adjust.
10164 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10165 * windows-nat.c (do_initial_windows_stuff): Adjust.
10166 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10167 (gnu_terminal_init): ... this. Adjust.
10168 (gnu_target): Adjust.
10169 * inf-child.c (inf_child_target): Adjust.
10170
5a1e8c7a
DE
101712014-03-13 Doug Evans <xdje42@gmail.com>
10172
10173 PR guile/16612
10174 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10175 new eq?-hashtab.
10176
350e1a76
DE
101772014-03-13 Doug Evans <xdje42@gmail.com>
10178
10179 * value.c (record_latest_value): Call release_value_or_incref
10180 instead of release_value.
10181
a69900ae
PA
101822014-03-13 Pedro Alves <palves@redhat.com>
10183
10184 * procfs.c (procfs_target): Don't override to_shortname,
10185 to_longname or to_doc.
10186
5db9f0bd
PA
101872014-03-13 Pedro Alves <palves@redhat.com>
10188
10189 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10190 Unix in user visible strings.
10191
5e3a2c38
SS
101922014-03-12 Stan Shebs <stan@codesourcery.com>
10193
10194 * gdbtypes.h: Annotate comments for Doxygen, add a page
10195 block comment with some general info.
10196
8bc2fe48
PA
101972014-03-12 Pedro Alves <palves@redhat.com>
10198
10199 * infcmd.c (prepare_execution_command): New function, factored out
10200 from several execution commands.
10201 (run_command_1, continue_command, step_1, jump_command)
10202 (signal_command, until_command, advance_command, finish_command)
10203 (attach_command): Use prepare_execution_command.
10204
638c5f49
OJ
102052014-03-12 Omair Javaid <omair.javaid@linaro.org>
10206
10207 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10208 (MAX_BPTS): Define.
10209 (MAX_WPTS): Define.
10210 (struct arm_linux_thread_points): Removed.
10211 (struct arm_linux_process_info): New.
10212 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10213 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10214 (arm_linux_find_breakpoints_by_tid): Removed.
10215 (struct arch_lwp_info): New.
10216 (arm_linux_find_process_pid): New functions.
10217 (arm_linux_add_process): New functions.
10218 (arm_linux_process_info_get): New functions.
10219 (arm_linux_forget_process): New function.
10220 (arm_linux_get_debug_reg_state): New function.
10221 (struct update_registers_data): New.
10222 (update_registers_callback): New function.
10223 (arm_linux_insert_hw_breakpoint1): Updated.
10224 (arm_linux_remove_hw_breakpoint1): Updated.
10225 (arm_linux_insert_hw_breakpoint): Updated.
10226 (arm_linux_remove_hw_breakpoint): Updated.
10227 (arm_linux_insert_watchpoint): Updated.
10228 (arm_linux_remove_watchpoint): Updated.
10229 (arm_linux_new_thread): Updated.
10230 (arm_linux_prepare_to_resume): New function.
10231 (arm_linux_new_fork): New function.
10232 (_initialize_arm_linux_nat): Updated.
10233
6d03af93
PA
102342014-03-12 Pedro Alves <palves@redhat.com>
10235
10236 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10237
b3ccfe11
TT
102382014-03-12 Tom Tromey <tromey@redhat.com>
10239
10240 * inf-child.c (return_zero): New function.
10241 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10242 * aix-thread.c (aix_thread_inferior_created): New function.
10243 (aix_thread_attach): Remove.
10244 (init_aix_thread_ops): Don't set to_attach.
10245 (_initialize_aix_thread): Register inferior_created observer.
10246 * corelow.c (init_core_ops): Don't set to_attach or
10247 to_create_inferior.
10248 * exec.c (init_exec_ops): Don't set to_attach or
10249 to_create_inferior.
10250 * infcmd.c (run_command_1): Use find_run_target. Make direct
10251 target calls.
10252 (attach_command): Use find_attach_target. Make direct target
10253 calls.
10254 * record-btrace.c (init_record_btrace_ops): Don't set
10255 to_create_inferior.
10256 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10257 Remove.
10258 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10259 set to_create_inferior.
10260 * target.c (complete_target_initialization): Add assertion.
10261 (target_create_inferior): Remove.
10262 (find_default_attach, find_default_create_inferior): Remove.
10263 (find_attach_target, find_run_target): New functions.
10264 (find_default_is_async_p, find_default_can_async_p)
10265 (target_supports_non_stop, target_attach): Remove.
10266 (init_dummy_target): Don't set to_create_inferior or
10267 to_supports_non_stop.
10268 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10269 TARGET_DEFAULT_FUNC.
10270 <to_create_inferior>: Add comment.
10271 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10272 TARGET_DEFAULT_RETURN.
10273 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10274 (find_attach_target, find_run_target): Declare.
10275 (target_create_inferior): Remove.
10276 (target_has_execution_1): Update comment.
10277 (target_supports_non_stop): Remove.
10278 * target-delegates.c: Rebuild.
10279
91f83b02
PA
102802014-03-12 Pedro Alves <palves@redhat.com>
10281
10282 * inf-child.h: Update comment to not mention Unix.
10283
f1aea813
PA
102842014-03-12 Pedro Alves <palves@redhat.com>
10285
10286 * inf-child.c: Update top comment to not mention Unix. Add
10287 generic comment describing how this target is meant to be used.
10288 (inf_child_post_attach, inf_child_post_startup_inferior)
10289 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10290 Unix in comment.
10291
ee8e9165
PA
102922014-03-12 Pedro Alves <palves@redhat.com>
10293
10294 * nto-procfs.c: Include inf-child.h.
10295 (procfs_ops): Delete global.
10296 (procfs_can_run): Delete method.
10297 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10298 target pointer instead of referencing procfs_ops.
10299 (procfs_prepare_to_store): Delete.
10300 (init_procfs_ops): Delete function.
10301 (procfs_target): New function, based on init_procfs_ops, but
10302 inherit inf_child_target.
10303 (_initialize_procfs): Use procfs_target.
10304
51a9c8c5
PA
103052014-03-12 Pedro Alves <palves@redhat.com>
10306
10307 * windows-nat.c: Include inf-child.h.
10308 (windows_ops): Delete global.
10309 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10310 methods.
10311 (init_windows_ops): Delete function.
10312 (windows_target): New function, based on init_windows_ops, but
10313 inherit inf_child_target.
10314 (_initialize_windows_nat): Use windows_target. Install x86
10315 specific target methods here.
10316
c1966e26
DE
103172014-03-10 Doug Evans <xdje42@gmail.com>
10318
10319 * guile/guile.c (call_initialize_gdb_module): New function.
10320 (initialize_guile): Replace call to scm_init_guile with call to
10321 scm_with_guile.
10322
023db19c
JB
103232014-03-10 Joel Brobecker <brobecker@adacore.com>
10324
10325 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10326 in call to TYPE_CODE macro.
10327
5ec18f2b
JG
103282014-03-10 Jerome Guitton <guitton@adacore.com>
10329
8668be63
JB
10330 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10331 Resolve tagged types to full view.
5ec18f2b 10332
7d03f2eb
HZ
103332014-03-10 Hui Zhu <hui@codesourcery.com>
10334
10335 * target.h (target_insert_breakpoint): Remove "hardware" from its
10336 comments.
10337
c5164cbc
DE
103382014-03-07 Doug Evans <dje@google.com>
10339
10340 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10341
c4a3fee2
DE
103422014-03-07 Doug Evans <dje@google.com>
10343
10344 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10345 Remove unused local comp_dir_attr. Assert exactly one of
10346 stub_comp_unit_die, stub_comp_dir is non-NULL.
10347
3156469c
JB
103482014-03-07 Joel Brobecker <brobecker@adacore.com>
10349
10350 * target.h (complete_target_initialization, add_target):
10351 Add comment.
10352
c1a7b7c6
PA
103532014-03-07 Pedro Alves <palves@redhat.com>
10354
10355 * go32-nat.c: Include inf-child.h.
10356 (go32_ops): Delete global.
10357 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10358 Delete methods.
10359 (go32_create_inferior): Push the passed in target pointer instead
10360 of referencing go32_ops.
10361 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10362 (go32_target): New function, based on init_go32_ops, but inherit
10363 inf_child_target.
10364 (_initialize_go32_nat): Use go32_target. Move parts of
10365 init_go32_ops here.
10366
d3c1a85f
JB
103672014-03-06 Joel Brobecker <brobecker@adacore.com>
10368
10369 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10370 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10371 SYMBOL_VALUE_ADDRESS.
10372 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10373
5fa1d40e
YQ
103742014-03-06 Yao Qi <yao@codesourcery.com>
10375
10376 * breakpoint.c (get_tracepoint_by_number): Remove argument
10377 optional_p. All callers updated. Adjust comments. Update
10378 output message.
10379 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10380
0c13193f
YQ
103812014-03-06 Yao Qi <yao@codesourcery.com>
10382
10383 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10384 early if get_number returns zero. Use 'p' instead of 'args'.
10385
2217da06
YQ
103862014-03-06 Yao Qi <yao@codesourcery.com>
10387
10388 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10389 message.
10390
cc3da688
YQ
103912014-03-06 Yao Qi <yao@codesourcery.com>
10392
10393 PR breakpoints/16508
10394 * tracepoint.c (check_trace_running): New function.
10395 (trace_find_command): Move code to check_trace_running and
10396 call check_trace_running.
10397 (trace_find_pc_command): Likewise.
10398 (trace_find_tracepoint_command): Likewise.
10399 (trace_find_line_command): Likewise.
10400 (trace_find_range_command): Likewise.
10401 * tracepoint.h (check_trace_running): Likewise.
10402 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10403
6a5f844b
YQ
104042014-03-06 Yao Qi <yao@codesourcery.com>
10405
10406 * target.h (struct target_ops) <to_traceframe_info>: Use
10407 TARGET_DEFAULT_NORETURN (tcomplain ()).
10408 * target-delegates.c: Regenerated.
10409
0f26cec1
PA
104102014-03-05 Pedro Alves <palves@redhat.com>
10411
10412 PR gdb/16575
10413 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10414 void. Update comment.
10415 (dcache_xfer_memory): Delete.
10416 (dcache_read_memory_partial): New, based on the read bits of
10417 dcache_xfer_memory.
10418 (dcache_update): Add status parameter. Use ULONGEST for len, and
10419 adjust. Discard cache lines if the reason for the update was
10420 error.
10421 * dcache.h (dcache_xfer_memory): Delete declaration.
10422 (dcache_read_memory_partial): New declaration.
10423 (dcache_update): Update prototype.
10424 * target.c (raw_memory_xfer_partial): Update the dcache here.
10425 (memory_xfer_partial_1): Don't handle dcache writes here.
10426
b2b255bd
MF
104272014-03-05 Mike Frysinger <vapier@gentoo.org>
10428
10429 * remote-sim.c (gdbsim_load): Add const to prog.
10430
5d9cf8a4
TT
104312014-03-03 Tom Tromey <tromey@redhat.com>
10432
10433 * elfread.c (probe_key): Change to bfd_data.
10434 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10435 now per-BFD, not per-objfile.
10436 * stap-probe.c (stap_probe_destroy): Update comment.
10437 (handle_stap_probe): Allocate on the per-BFD obstack.
10438
729662a5
TT
104392014-03-03 Tom Tromey <tromey@redhat.com>
10440
10441 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10442 * breakpoint.c (create_longjmp_master_breakpoint): Use
10443 get_probe_address.
10444 (add_location_to_breakpoint, bkpt_probe_insert_location)
10445 (bkpt_probe_remove_location): Update.
10446 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10447 * elfread.c (elf_symfile_relocate_probe): Remove.
10448 (elf_probe_fns): Update.
10449 (insert_exception_resume_breakpoint): Change type of "probe"
10450 parameter to bound_probe.
10451 (check_exception_resume): Update.
10452 * objfiles.c (objfile_relocate1): Don't relocate probes.
10453 * probe.c (bound_probe_s): New typedef.
10454 (parse_probes): Use get_probe_address. Set sal's objfile.
10455 (find_probe_by_pc): Return a bound_probe.
10456 (collect_probes): Return a VEC(bound_probe_s).
10457 (compare_probes): Update.
10458 (gen_ui_out_table_header_info): Change type of "probes"
10459 parameter. Update.
10460 (info_probes_for_ops): Update.
10461 (get_probe_address): New function.
10462 (probe_safe_evaluate_at_pc): Update.
10463 * probe.h (struct probe_ops) <get_probe_address>: New field.
10464 <set_semaphore, clear_semaphore>: Add objfile parameter.
10465 (struct probe) <objfile>: Remove field.
10466 <arch>: New field.
10467 <address>: Update comment.
10468 (struct bound_probe): New.
10469 (find_probe_by_pc): Return a bound_probe.
10470 (get_probe_address): Declare.
10471 * solib-svr4.c (struct probe_and_action) <address>: New field.
10472 (hash_probe_and_action, equal_probe_and_action): Update.
10473 (register_solib_event_probe): Add address parameter.
10474 (solib_event_probe_at): Update.
10475 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10476 get_probe_address.
10477 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10478 (stap_get_probe_address): New function.
10479 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10480 (compile_probe_arg): Update.
10481 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10482 address.
10483 (handle_stap_probe): Don't relocate the probe.
10484 (stap_relocate): Remove.
10485 (stap_gen_info_probes_table_values): Update.
10486 (stap_probe_ops): Remove stap_relocate.
10487 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10488 (debug_sym_probe_fns): Update.
10489 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10490 * symtab.c (init_sal): Use memset.
10491 * symtab.h (struct symtab_and_line) <objfile>: New field.
10492 * tracepoint.c (start_tracing, stop_tracing): Update.
10493
ff887920
TT
104942014-03-03 Tom Tromey <tromey@redhat.com>
10495
10496 * probe.h (parse_probes, find_probe_by_pc)
10497 (find_probes_in_objfile): Fix comments.
10498
f0407826
DE
104992014-03-02 Doug Evans <xdje42@gmail.com>
10500
10501 * infrun.c (handle_signal_stop): Replace test for
10502 TARGET_WAITKIND_STOPPED with an assert.
10503
35e6a711
DE
105042014-03-02 Doug Evans <xdje42@gmail.com>
10505
10506 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10507
667f9d0b
DE
105082014-03-02 Doug Evans <xdje42@gmail.com>
10509
10510 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10511
dc92ace0
MK
105122014-03-01 Mark Kettenis <kettenis@gnu.org>
10513
10514 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10515
a900370f
MK
105162014-03-01 Mark Kettenis <kettenis@gnu.org>
10517
10518 * i386obsd-nat.c: Include "obsd-nat.h".
10519 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10520 add_target.
10521 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10522
b72a7981
MK
105232014-03-01 Mark Kettenis <kettenis@gnu.org>
10524
10525 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10526
96c70aba
MK
105272014-03-01 Mark Kettenis <kettenis@gnu.org>
10528
10529 * mips64obsd-nat.c: Include "obsd-nath".
10530 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10531 add_target
10532 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10533
874a80af
MK
105342014-03-01 Mark Kettenis <kettenis@gnu.org>
10535
8fd408f1
MK
10536 * amd64obsd-nat.c: Include "obsd-nat,h.
10537 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10538 add_target.
874a80af
MK
10539 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10540
9cf95373
SC
105412014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10542
10543 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10544 (find_overload_match): Update call to find_oload_champ.
10545 (find_oload_champ_namespace_loop): Likewise
10546
863e4da4
MK
105472014-02-28 Mark Kettenis <kettenis@gnu.org>
10548
025cac40
MK
10549 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10550
1ed586ce
MK
10551 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10552 * config/sparc/obsd64.mh: New file.
10553 * sparc64obsd-nat.c: New file.
10554
863e4da4
MK
10555 * obsd-nat.h: New file.
10556 * obsd-nat.c: New file.
10557 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10558 (ALLDEPFILES): Add obsd-nat.c.
10559
89de4da4
TT
105602014-02-28 Tom Tromey <tromey@redhat.com>
10561
10562 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10563 * cli-out.h (cli_ui_out_impl): Now const.
10564 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10565 * ui-out.c (struct ui_out) <impl>: Now const.
10566 (default_ui_out_impl): Now const.
10567 (ui_out_new): Make 'impl' parameter const.
10568 * ui-out.h (ui_out_new): Update.
10569
c725e7b6
MK
105702014-02-27 Mark Kettenis <kettenis@gnu.org>
10571
10572 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10573
670b46b3
MK
105742014-02-27 Mark Kettenis <kettenis@gnu.org>
10575
10576 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10577
c91550fc
JK
105782014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10579
10580 Additional PR 8882 fix.
10581 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10582
2fa0369e
PA
105832014-02-27 Pedro Alves <palves@redhat.com>
10584
10585 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10586 isn't set.
10587
d632a097
PA
105882014-02-27 Pedro Alves <palves@redhat.com>
10589
10590 PR 12702
10591 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10592 * nat/linux-waitpid.c: Include string.h.
10593 (status_to_str): Moved here and made extern.
10594 * nat/linux-waitpid.h (status_to_str): New declaration.
10595
2ebd5a35
HZ
105962014-02-27 Hui Zhu <hui@codesourcery.com>
10597
10598 PR 12702
10599 * infrun.c (ptid_match): Move ...
10600 * common/ptid.c (ptid_match): ... here.
10601 * inferior.h (ptid_match): Move ...
10602 * common/ptid.h (ptid_match): ... here.
10603
3cdd631f
MK
106042014-02-27 Mark Kettenis <kettenis@gnu.org>
10605
10606 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10607 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10608 gdb_target_obs.
10609
bee30a64
MK
106102014-02-27 Mark Kettenis <kettenis@gnu.org>
10611
10612 * obsd-tdep.c (obsd_auxv_parse): New function.
10613 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10614
10615 * gdbarch.sh (auxv_parse): New.
10616 * gdbarch.h: Regenerated.
10617 * gdbarch.c: Regenerated.
10618 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10619
7a5a839f
LC
106202014-02-26 Ludovic Courtès <ludo@gnu.org>
10621
10622 * guile/scm-value.c (gdbscm_history_append_x): New function.
10623 (value_functions): Add it.
10624
31aa7e4e
JB
106252014-02-27 Joel Brobecker <brobecker@adacore.com>
10626
10627 * dwarf2read.c (attr_value_as_address): New function.
10628 (dwarf2_find_base_address, read_call_site_scope): Use
10629 attr_value_as_address in place of DW_ADDR.
10630 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10631 the low and high addresses. Slight rework of the handling
10632 of the high pc being a constant form, and limit it to
10633 DWARF verson 4 or higher.
10634 (dwarf2_record_block_ranges): Likewise.
10635 (read_partial_die): Likewise.
10636 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10637
9b333ba3
TT
106382014-02-26 Tom Tromey <tromey@redhat.com>
10639
10640 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10641
5f6cac40
TT
106422014-02-26 Tom Tromey <tromey@redhat.com>
10643
10644 * elfread.c (elf_read_minimal_symbols): Return early if
10645 minimal symbols have already been read. Add "ei" parameter.
10646 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10647 * minsyms.c (prim_record_minimal_symbol_full): Update.
10648 * objfiles.h (struct objstats) <n_minsyms>: Move...
10649 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10650 * symmisc.c (print_objfile_statistics): Update.
10651
2750ef27
TT
106522014-02-26 Tom Tromey <tromey@redhat.com>
10653
10654 * elfread.c (elf_read_minimal_symbols): New function, from
10655 elf_symfile_read.
10656 (elf_symfile_read): Call it.
10657
34643a32
TT
106582014-02-26 Tom Tromey <tromey@redhat.com>
10659
10660 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10661 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10662 (lookup_minimal_symbol_solib_trampoline)
10663 (lookup_minimal_symbol_by_pc_section_1)
10664 (lookup_minimal_symbol_and_objfile): Update.
10665 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10666 Don't allocate a minimal symbol if minsyms have already been read.
10667 (build_minimal_symbol_hash_tables): Update.
10668 (install_minimal_symbols): Do nothing if minsyms already read.
10669 Use the per-BFD obstack.
10670 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10671 * objfiles.c (allocate_objfile): Call
10672 terminate_minimal_symbol_table later.
10673 (have_minimal_symbols): Update.
10674 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10675 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10676 Move from struct objfile.
10677 <minsyms_read>: New field.
10678 (struct objfile) <msymbols, minimal_symbol_count,
10679 msymbol_hash, msymbol_demangled_hash>: Move.
10680 (ALL_OBJFILE_MSYMBOLS): Update.
10681 * symfile.c (read_symbols): Set minsyms_read.
10682 (reread_symbols): Update.
10683 * symmisc.c (dump_objfile, dump_msymbols): Update.
10684
2273f0ac
TT
106852014-02-26 Tom Tromey <tromey@redhat.com>
10686
10687 * minsyms.c (msymbols_sort): Remove.
10688 * minsyms.h (msymbols_sort): Remove.
10689 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10690 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10691 * elfread.c (elf_symtab_read): Don't add section offsets.
10692 * xcoffread.c (record_minimal_symbol): Don't add section offset
10693 to minimal symbol address.
10694 * somread.c (text_offset, data_offset): Remove.
10695 (som_symtab_read): Don't add section offsets to minimal symbol
10696 addresses.
10697 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10698 Don't add section offsets to minimal symbols.
10699 * coffread.c (coff_symtab_read): Don't add section offsets
10700 to minimal symbol addresses.
10701 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10702 to minimal symbol addresses.
10703 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10704 section offset to minimal symbol addresses.
10705 * mdebugread.c (parse_partial_symbols): Don't add section
10706 offset to minimal symbol addresses.
10707 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10708 offset to minimal symbol addresses.
10709
77e371c0
TT
107102014-02-26 Tom Tromey <tromey@redhat.com>
10711
10712 * ada-lang.c (ada_main_name): Update.
10713 (ada_add_standard_exceptions): Update.
10714 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10716 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10717 * auxv.c (ld_so_xfer_auxv): Update.
10718 * avr-tdep.c (avr_scan_prologue): Update.
10719 * ax-gdb.c (gen_var_ref): Update.
10720 * blockframe.c (get_pc_function_start)
10721 (find_pc_partial_function_gnu_ifunc): Update.
10722 * breakpoint.c (create_overlay_event_breakpoint)
10723 (create_longjmp_master_breakpoint)
10724 (create_std_terminate_master_breakpoint)
10725 (create_exception_master_breakpoint): Update.
10726 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10727 * c-valprint.c (c_val_print): Update.
10728 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10729 * common/agent.c (agent_look_up_symbols): Update.
10730 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10731 * dwarf2loc.c (call_site_to_target_addr): Update.
10732 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10733 * elfread.c (elf_gnu_ifunc_record_cache)
10734 (elf_gnu_ifunc_resolve_by_got): Update.
10735 * findvar.c (default_read_var_value): Update.
10736 * frame.c (inside_main_func): Update.
10737 * frv-tdep.c (frv_frame_this_id): Update.
10738 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10739 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10740 Update.
10741 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10742 (hppa_hpux_find_dummy_bpaddr): Update.
10743 * hppa-tdep.c (hppa_symbol_address): Update.
10744 * infcmd.c (until_next_command): Update.
10745 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10746 Update.
10747 * linespec.c (minsym_found, add_minsym): Update.
10748 * linux-nat.c (get_signo): Update.
10749 * linux-thread-db.c (inferior_has_bug): Update.
10750 * m32c-tdep.c (m32c_return_value)
10751 (m32c_m16c_address_to_pointer): Update.
10752 * m32r-tdep.c (m32r_frame_this_id): Update.
10753 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10754 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10755 * maint.c (maintenance_translate_address): Update.
10756 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10757 (frob_address): New function.
10758 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10759 frob_address. Rename parameter to "pc_in".
10760 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10761 addresses.
10762 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10763 Update.
10764 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10765 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10766 * objc-lang.c (find_objc_msgsend): Update.
10767 * objfiles.c (objfile_relocate1): Update.
10768 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10769 * p-valprint.c (pascal_val_print): Update.
10770 * parse.c (write_exp_msymbol): Update.
10771 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10772 (ppc_elfv2_skip_entrypoint): Update.
10773 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10774 * printcmd.c (build_address_symbolic, msym_info)
10775 (address_info): Update.
10776 * proc-service.c (ps_pglobal_lookup): Update.
10777 * psymtab.c (find_pc_sect_psymtab_closer)
10778 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10779 Change msymbol parameter to bound_minimal_symbol.
10780 * ravenscar-thread.c (get_running_thread_id): Update.
10781 * remote.c (remote_check_symbols): Update.
10782 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10783 address.
10784 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10785 * solib-dsbt.c (lm_base): Update.
10786 * solib-frv.c (lm_base, main_got): Update.
10787 * solib-irix.c (locate_base): Update.
10788 * solib-som.c (som_solib_create_inferior_hook)
10789 (link_map_start): Update.
10790 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10791 * solib-svr4.c (elf_locate_base, enable_break): Update.
10792 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10793 (flush_ea_cache): Update.
10794 * stabsread.c (define_symbol, scan_file_globals): Update.
10795 * stack.c (find_frame_funname): Update.
10796 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10797 (debug_qf_find_pc_sect_symtab): Update.
10798 * symfile.c (simple_read_overlay_table)
10799 (simple_overlay_update): Update.
10800 * symfile.h (struct quick_symbol_functions)
10801 <find_pc_sect_symtab>: Change type of msymbol to
10802 bound_minimal_symbol.
10803 * symmisc.c (dump_msymbols): Update.
10804 * symtab.c (find_pc_sect_symtab_via_partial)
10805 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10806 (search_symbols, print_msymbol_info): Update.
10807 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10808 (MSYMBOL_VALUE_ADDRESS): Redefine.
10809 (BMSYMBOL_VALUE_ADDRESS): New macro.
10810 * tracepoint.c (scope_info): Update.
10811 * tui/tui-disasm.c (tui_find_disassembly_address)
10812 (tui_get_begin_asm_address): Update.
10813 * valops.c (find_function_in_inferior): Update.
10814 * value.c (value_static_field, value_fn_field): Update.
10815
3b7344d5
TT
108162014-02-26 Tom Tromey <tromey@redhat.com>
10817
10818 * ada-lang.c (ada_update_initial_language): Update.
10819 (ada_main_name, ada_has_this_exception_support): Update.
10820 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10821 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10822 * arm-tdep.c (arm_skip_stub): Update.
10823 * auxv.c (ld_so_xfer_auxv): Update.
10824 * avr-tdep.c (avr_scan_prologue): Update.
10825 * ax-gdb.c (gen_var_ref): Update.
10826 * breakpoint.c (struct breakpoint_objfile_data)
10827 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10828 type to bound_minimal_symbol.
10829 (create_overlay_event_breakpoint)
10830 (create_longjmp_master_breakpoint)
10831 (create_std_terminate_master_breakpoint)
10832 (create_exception_master_breakpoint): Update.
10833 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10834 * c-exp.y (classify_name): Update.
10835 * coffread.c (coff_symfile_read): Update.
10836 * common/agent.c (agent_look_up_symbols): Update.
10837 * d-lang.c (d_main_name): Update.
10838 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10839 * dec-thread.c (enable_dec_thread): Update.
10840 * dwarf2loc.c (call_site_to_target_addr): Update.
10841 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10842 * eval.c (evaluate_subexp_standard): Update.
10843 * findvar.c (struct minsym_lookup_data) <result>: Change type
10844 to bound_minimal_symbol.
10845 <objfile>: Remove.
10846 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10847 * frame.c (inside_main_func): Update.
10848 * frv-tdep.c (frv_frame_this_id): Update.
10849 * gcore.c (call_target_sbrk): Update.
10850 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10851 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10852 Update.
10853 * go-lang.c (go_main_name): Update.
10854 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10855 (hppa_hpux_find_import_stub_for_addr): Update.
10856 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10857 Update. Change return type.
10858 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10859 type.
10860 * jit.c (jit_breakpoint_re_set_internal): Update.
10861 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10862 Update.
10863 * linux-nat.c (get_signo): Update.
10864 * linux-thread-db.c (inferior_has_bug): Update
10865 * m32c-tdep.c (m32c_return_value)
10866 (m32c_m16c_address_to_pointer): Update.
10867 * m32r-tdep.c (m32r_frame_this_id): Update.
10868 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10869 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10870 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10871 lookup_minimal_symbol. Change return type.
10872 (lookup_minimal_symbol): Remove.
10873 (lookup_bound_minimal_symbol): Update.
10874 (lookup_minimal_symbol_text): Change return type.
10875 (lookup_minimal_symbol_solib_trampoline): Change return type.
10876 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10877 (lookup_minimal_symbol_solib_trampoline): Change return type.
10878 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10879 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10880 (value_nsstring, find_imps): Update.
10881 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10882 * p-lang.c (pascal_main_name): Update.
10883 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10884 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10885 * proc-service.c (ps_pglobal_lookup): Update.
10886 * ravenscar-thread.c (get_running_thread_msymbol): Change
10887 return type.
10888 (has_ravenscar_runtime, get_running_thread_id): Update.
10889 * remote.c (remote_check_symbols): Update.
10890 * sol-thread.c (ps_pglobal_lookup): Update.
10891 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10892 * solib-dsbt.c (lm_base): Update.
10893 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10894 Update.
10895 * solib-irix.c (locate_base): Update.
10896 * solib-som.c (som_solib_create_inferior_hook)
10897 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10898 Update.
10899 * solib-spu.c (spu_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): Update.
10904 * symfile.c (simple_read_overlay_table): Update.
10905 * symtab.c (find_pc_sect_line): Update.
10906 * tracepoint.c (scope_info): Update.
10907 * tui-disasm.c (tui_get_begin_asm_address): Update.
10908 * value.c (value_static_field): Update.
10909
40c1a007
TT
109102014-02-26 Tom Tromey <tromey@redhat.com>
10911
10912 * minsyms.c (prim_record_minimal_symbol_full): Use
10913 SET_MSYMBOL_VALUE_ADDRESS.
10914 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10915 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10916 SET_MSYMBOL_VALUE_ADDRESS.
10917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10918 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10919
efd66ac6
TT
109202014-02-26 Tom Tromey <tromey@redhat.com>
10921
10922 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10923 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10924 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10925 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10926 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10927 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10928 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10929 * ada-lang.c (ada_main_name): Update.
10930 (ada_lookup_simple_minsym): Update.
10931 (ada_make_symbol_completion_list): Update.
10932 (ada_add_standard_exceptions): Update.
10933 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10934 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10935 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10936 * arm-tdep.c (skip_prologue_function): Update.
10937 (arm_skip_stack_protector, arm_skip_stub): Update.
10938 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10939 (arm_wince_skip_main_prologue): Update.
10940 * auxv.c (ld_so_xfer_auxv): Update.
10941 * avr-tdep.c (avr_scan_prologue): Update.
10942 * ax-gdb.c (gen_var_ref): Update.
10943 * block.c (call_site_for_pc): Update.
10944 * blockframe.c (get_pc_function_start): Update.
10945 (find_pc_partial_function_gnu_ifunc): Update.
10946 * breakpoint.c (create_overlay_event_breakpoint): Update.
10947 (create_longjmp_master_breakpoint): Update.
10948 (create_std_terminate_master_breakpoint): Update.
10949 (create_exception_master_breakpoint): Update.
10950 (resolve_sal_pc): Update.
10951 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10952 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10953 Update.
10954 * c-valprint.c (c_val_print): Update.
10955 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10956 * coffread.c (coff_symfile_read): Update.
10957 * common/agent.c (agent_look_up_symbols): Update.
10958 * dbxread.c (find_stab_function_addr): Update.
10959 (end_psymtab): Update.
10960 * dwarf2loc.c (call_site_to_target_addr): Update.
10961 (func_verify_no_selftailcall): Update.
10962 (tailcall_dump): Update.
10963 (call_site_find_chain_1): Update.
10964 (dwarf_expr_reg_to_entry_parameter): Update.
10965 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10966 (elf_gnu_ifunc_resolve_by_got): Update.
10967 * f-valprint.c (info_common_command): Update.
10968 * findvar.c (read_var_value): Update.
10969 * frame.c (get_prev_frame_1): Update.
10970 (inside_main_func): Update.
10971 * frv-tdep.c (frv_skip_main_prologue): Update.
10972 (frv_frame_this_id): Update.
10973 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10974 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10975 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10976 (gnuv3_skip_trampoline): Update.
10977 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10978 (hppa64_hpux_in_solib_call_trampoline): Update.
10979 (hppa_hpux_skip_trampoline_code): Update.
10980 (hppa64_hpux_search_dummy_call_sequence): Update.
10981 (hppa_hpux_find_import_stub_for_addr): Update.
10982 (hppa_hpux_find_dummy_bpaddr): Update.
10983 * hppa-tdep.c (hppa_symbol_address)
10984 (hppa_lookup_stub_minimal_symbol): Update.
10985 * i386-tdep.c (i386_skip_main_prologue): Update.
10986 (i386_pe_skip_trampoline_code): Update.
10987 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10988 * infcall.c (get_function_name): Update.
10989 * infcmd.c (until_next_command): Update.
10990 * jit.c (jit_breakpoint_re_set_internal): Update.
10991 (jit_inferior_init): Update.
10992 * linespec.c (minsym_found): Update.
10993 (add_minsym): Update.
10994 * linux-fork.c (info_checkpoints_command): Update.
10995 * linux-nat.c (get_signo): Update.
10996 * linux-thread-db.c (inferior_has_bug): Update.
10997 * m32c-tdep.c (m32c_return_value): Update.
10998 (m32c_m16c_address_to_pointer): Update.
10999 (m32c_m16c_pointer_to_address): Update.
11000 * m32r-tdep.c (m32r_frame_this_id): Update.
11001 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11002 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11003 * maint.c (maintenance_translate_address): Update.
11004 * minsyms.c (add_minsym_to_hash_table): Update.
11005 (add_minsym_to_demangled_hash_table): Update.
11006 (msymbol_objfile): Update.
11007 (lookup_minimal_symbol): Update.
11008 (iterate_over_minimal_symbols): Update.
11009 (lookup_minimal_symbol_text): Update.
11010 (lookup_minimal_symbol_by_pc_name): Update.
11011 (lookup_minimal_symbol_solib_trampoline): Update.
11012 (lookup_minimal_symbol_by_pc_section_1): Update.
11013 (lookup_minimal_symbol_and_objfile): Update.
11014 (prim_record_minimal_symbol_full): Update.
11015 (compare_minimal_symbols): Update.
11016 (compact_minimal_symbols): Update.
11017 (build_minimal_symbol_hash_tables): Update.
11018 (install_minimal_symbols): Update.
11019 (terminate_minimal_symbol_table): Update.
11020 (find_solib_trampoline_target): Update.
11021 (minimal_symbol_upper_bound): Update.
11022 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11023 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11024 (mips_skip_pic_trampoline_code): Update.
11025 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11026 * objc-lang.c (selectors_info): Update.
11027 (classes_info): Update.
11028 (find_methods): Update.
11029 (find_imps): Update.
11030 (find_objc_msgsend): Update.
11031 * objfiles.c (objfile_relocate1): Update.
11032 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11033 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11034 * p-valprint.c (pascal_val_print): Update.
11035 * parse.c (write_exp_msymbol): Update.
11036 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11037 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11039 * printcmd.c (build_address_symbolic): Update.
11040 (sym_info): Update.
11041 (address_info): Update.
11042 * proc-service.c (ps_pglobal_lookup): Update.
11043 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11044 (find_pc_sect_psymtab): Update.
11045 * python/py-framefilter.c (py_print_frame): Update.
11046 * ravenscar-thread.c (get_running_thread_id): Update.
11047 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11048 Update.
11049 * remote.c (remote_check_symbols): Update.
11050 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11051 (rs6000_skip_trampoline_code): Update.
11052 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11053 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11054 * solib-dsbt.c (lm_base): Update.
11055 * solib-frv.c (lm_base): Update.
11056 (main_got): Update.
11057 * solib-irix.c (locate_base): Update.
11058 * solib-som.c (som_solib_create_inferior_hook): Update.
11059 (som_solib_desire_dynamic_linker_symbols): Update.
11060 (link_map_start): Update.
11061 * solib-spu.c (spu_enable_break): Update.
11062 (ocl_enable_break): Update.
11063 * solib-svr4.c (elf_locate_base): Update.
11064 (enable_break): Update.
11065 * spu-tdep.c (spu_get_overlay_table): Update.
11066 (spu_catch_start): Update.
11067 (flush_ea_cache): Update.
11068 * stabsread.c (define_symbol): Update.
11069 (scan_file_globals): Update.
11070 * stack.c (find_frame_funname): Update.
11071 (frame_info): Update.
11072 * symfile.c (simple_read_overlay_table): Update.
11073 (simple_overlay_update): Update.
11074 * symmisc.c (dump_msymbols): Update.
11075 * symtab.c (fixup_section): Update.
11076 (find_pc_sect_line): Update.
11077 (skip_prologue_sal): Update.
11078 (search_symbols): Update.
11079 (print_msymbol_info): Update.
11080 (rbreak_command): Update.
11081 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11082 (completion_list_objc_symbol): Update.
11083 (default_make_symbol_completion_list_break_on): Update.
11084 * tracepoint.c (scope_info): Update.
11085 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11086 (tui_get_begin_asm_address): Update.
11087 * valops.c (find_function_in_inferior): Update.
11088 * value.c (value_static_field): Update.
11089 (value_fn_field): Update.
11090
50e65b17
TT
110912014-02-26 Tom Tromey <tromey@redhat.com>
11092
11093 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11094 bound minimal symbols. Move code that knows about minsym
11095 table layout...
11096 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11097 function.
11098 * minsyms.h (minimal_symbol_upper_bound): Declare.
11099 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11100 minimal_symbol_upper_bound.
11101
1b588015
JB
111022014-02-27 Joel Brobecker <brobecker@adacore.com>
11103
11104 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11105 Use the type's name if its basic type does not have a tag.
11106
dbb9c2b1
JB
111072014-02-27 Joel Brobecker <brobecker@adacore.com>
11108
11109 * dwarf2read.c (read_subrange_type): Add comment.
11110
55426c9d
JB
111112014-02-27 Joel Brobecker <brobecker@adacore.com>
11112
11113 * dwarf2read.c (update_enumeration_type_from_children): New
11114 function, mostly extracted from process_structure_scope.
11115 (read_enumeration_type): Call update_enumeration_type_from_children.
11116 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11117 and flag_flag_enum fields.
11118
f2fce0ca
PA
111192014-02-26 Pedro Alves <palves@redhat.com>
11120
11121 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11122 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11123 to_xfer_partial method.
11124
7a44e40e
PA
111252014-02-26 Pedro Alves <palves@redhat.com>
11126
11127 * target.c (complete_target_initialization): Don't install
11128 default_xfer_partial as to_xfer_partial hook.
11129 (nomemory): Delete.
11130 (update_current_target): Don't INHERIT nor de_fault
11131 deprecated_xfer_memory. Delete de_fault macro.
11132 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11133 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11134 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11135 field.
11136
bd265cd0
PA
111372014-02-26 Pedro Alves <palves@redhat.com>
11138
11139 * go32-nat.c (my_write_child): New function.
11140 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11141 (go32_xfer_partial): New function.
11142 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11143 Instead install a to_xfer_partial hook.
11144
9d46c4e5
PA
111452014-02-26 Pedro Alves <palves@redhat.com>
11146
11147 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11148 to_xfer_partial helper. Rewrite.
11149 (procfs_xfer_partial): New function.
11150 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11151 Install a to_xfer_partial hook.
11152
a1583b1f
PA
111532014-02-26 Pedro Alves <palves@redhat.com>
11154
11155 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11156 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11157 (m32r_xfer_partial): New function.
11158 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11159 Install a to_xfer_partial hook.
11160
6df1b29f
PA
111612014-02-26 Pedro Alves <palves@redhat.com>
11162
11163 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11164 helper.
11165 (mips_xfer_partial): New function.
11166 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11167 hook. Install a to_xfer_partial hook.
11168
dc53a7ad
JB
111692014-02-26 Joel Brobecker <brobecker@adacore.com>
11170
11171 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11172 * gdbtypes.c (create_array_type_with_stride): New function,
11173 renaming create_array_type, but with an added parameter
11174 called "bit_stride".
11175 (create_array_type): Re-implement using
11176 create_array_type_with_stride.
11177 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11178 and DW_AT_bit_stride attributes.
11179
12ab52e9
PA
111802014-02-26 Pedro Alves <palves@redhat.com>
11181
11182 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11183 task-specific breakpoints.
11184
d16461ae
PA
111852014-02-25 Pedro Alves <palves@redhat.com>
11186
11187 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11188 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11189
a8b16220
SS
111902014-02-25 Stan Shebs <stan@codesourcery.com>
11191
11192 * defs.h: Annotate comments for Doxygen.
11193
b9e795ee
TT
111942014-02-25 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (target_ignore): Don't declare.
11197 * target.c (target_ignore): Remove.
11198
849c862e
JK
111992014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11200
11201 PR gdb/16626
11202 * auto-load.c (auto_load_objfile_script_1): Change filename to
11203 debugfile.
11204
475109d8
JB
112052014-02-25 Joel Brobecker <brobecker@adacore.com>
11206
11207 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11208 documentation. Adjust prototype to match the target_ops
11209 to_xfer_partial method. Adjust implementation accordingly.
11210
e186c3bd
HZ
112112014-02-25 Hui Zhu <hui@codesourcery.com>
11212
11213 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11214 to_traceframe_info.
11215
6d451942
KB
112162014-02-25 Kevin Buettner <kevinb@redhat.com>
11217
041ab8b4 11218 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11219 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11220 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11221 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11222 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11223 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11224 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11225 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11226 New constants.
11227 (rl78_register_type): Use a data pointer type for SP and
11228 new pseudo registers mentioned above. Use a 16 bit integer
11229 type for all other register pairs.
11230 (rl78_register_name, rl78_g10_register_name): Update for
11231 new pseudo registers.
11232 (rl78_pseudo_register_read): Likewise.
11233 (rl78_pseudo_register_write): Likewise.
11234 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11235 to the newly added pseudo registers.
11236
eddf0bae
DE
112372014-02-24 Doug Evans <dje@google.com>
11238
11239 * value.c (record_latest_value): Fix comment.
11240 * printcmd.c (print_command_1): Remove code to handle -1 return from
11241 record_latest_value.
11242
e96027e0
PA
112432014-02-24 Pedro Alves <palves@redhat.com>
11244
11245 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11246 deprecated_xfer_memory hook.
11247 (procfs_xfer_partial): Call procfs_xfer_memory instead
11248 of the deprecated_xfer_memory target hook.
11249 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11250 helper.
11251
0837c976
YZ
112522014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11253
11254 * windows-nat.c (windows_xfer_shared_libraries): Return
11255 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11256 requested object is TARGET_OBJECT_LIBRARIES.
11257
bc113b4e
YQ
112582014-02-24 Yao Qi <yao@codesourcery.com>
11259
11260 * target.h (enum target_xfer_status)
11261 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11262 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11263 explicitly. New.
11264 * corefile.c (memory_error_message): User updated.
11265 * exec.c (section_table_read_available_memory): Likewise.
11266 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11267 * target.c (target_xfer_status_to_string): Likewise.
11268 (raw_memory_xfer_partial): Likewise.
11269 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11270 * valops.c (read_value_memory): Likewise.
11271 * exec.h: Update comments.
11272
01cb8804
YQ
112732014-02-24 Yao Qi <yao@codesourcery.com>
11274
11275 * target.c (target_xfer_status_to_string): Rename argument err
11276 to status.
11277 * target.h (target_xfer_status_to_string): Update declaration.
11278 Replace target_xfer_error_to_string with
11279 target_xfer_status_to_string in comment.
11280
93063aa6
YQ
112812014-02-24 Yao Qi <yao@codesourcery.com>
11282
11283 * mips-linux-nat.c (super_close): Update its type.
11284 (mips_linux_close): Pass 'self' to super_close.
11285
5c328c05
YQ
112862014-02-24 Yao Qi <yao@codesourcery.com>
11287
11288 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11289 * corefile.c (read_memory): Adjusted.
11290 * target.c (target_write_with_progress): Adjusted.
11291
f73023dd
YQ
112922014-02-23 Yao Qi <yao@codesourcery.com>
11293
11294 Revert two patches:
11295
11296 2013-10-25 Yao Qi <yao@codesourcery.com>
11297
11298 * remote.c (remote_traceframe_info): Return early if
11299 traceframe is not selected.
11300
11301 2013-07-19 Yao Qi <yao@codesourcery.com>
11302
11303 * target.c (update_current_target): Change the default action
11304 of 'to_traceframe_info' from tcomplain to return_zero.
11305 * target.h (struct target_ops) <to_traceframe_info>: Add more
11306 comments.
11307
5a2eb0ef
YQ
113082014-02-23 Yao Qi <yao@codesourcery.com>
11309
11310 * valops.c (read_value_memory): Rewrite it. Call
11311 target_xfer_partial in a loop.
11312 * exec.h (section_table_available_memory): Remove declaration.
11313 Move comments to ...
11314 * exec.c (section_table_available_memory): ... here. Make it
11315 static.
11316
1ee79381
YQ
113172014-02-23 Yao Qi <yao@codesourcery.com>
11318
11319 * exec.c (section_table_read_available_memory): New function.
11320 * exec.h (section_table_read_available_memory): Declare.
11321 * ctf.c (ctf_xfer_partial): Call
11322 section_table_read_available_memory.
11323 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11324
1ca49d37
YQ
113252014-02-23 Yao Qi <yao@codesourcery.com>
11326
11327 * ctf.c (ctf_xfer_partial): Move code to ...
11328 * exec.c (exec_read_partial_read_only): ... it. New function.
11329 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11330 * tracefile.c: Include "exec.h".
11331 * exec.h (exec_read_partial_read_only): Declare.
11332
a283690e
YQ
113332014-02-23 Yao Qi <yao@codesourcery.com>
11334
11335 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11336 (tfile_has_memory): Remove.
11337 (init_tfile_ops): Don't set fields to_has_all_memory and
11338 to_has_memory of tfile_ops.
11339 * tracefile.c (tracefile_has_all_memory): New function.
11340 (tracefile_has_memory): New function.
11341 (init_tracefile_ops): Initialize fields to_has_all_memory and
11342 to_has_memory of 'ops'.
11343
12e03cd0
YQ
113442014-02-23 Yao Qi <yao@codesourcery.com>
11345
11346 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11347 (ctf_thread_alive, ctf_get_trace_status): Remove.
11348 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11349 init_tracefile_ops.
11350 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11351 (tfile_has_stack, tfile_has_registers): Remove.
11352 (tfile_thread_alive): Remove.
11353 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11354 init_tracefile_ops.
11355 * tracefile.c (tracefile_has_stack): New function.
11356 (tracefile_has_registers): New function.
11357 (tracefile_thread_alive): New function.
11358 (tracefile_get_trace_status): New function.
11359 (init_tracefile_ops): New function.
11360 * tracefile.h (init_tracefile_ops): Declare.
11361
11395323
YQ
113622014-02-23 Yao Qi <yao@codesourcery.com>
11363
11364 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11365 (O_LARGEFILE): Likewise.
11366 (tfile_ops): Likewise.
11367 (TRACE_HEADER_SIZE): Likewise.
11368 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11369 (cur_data_size): Likewise.
11370 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11371 (tfile_close, tfile_files_info): Likewise.
11372 (tfile_get_trace_status): Likewise.
11373 (tfile_get_tracepoint_status): Likewise.
11374 (tfile_get_traceframe_address): Likewise.
11375 (tfile_trace_find, match_blocktype): Likewise.
11376 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11377 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11378 (tfile_get_trace_state_variable_value): Likewise.
11379 (tfile_has_all_memory, tfile_has_memory): Likewise.
11380 (tfile_has_stack, tfile_has_registers): Likewise.
11381 (tfile_thread_alive, build_traceframe_info): Likewise.
11382 (tfile_traceframe_info, init_tfile_ops): Likewise.
11383 (_initialize_tracepoint): Don't call init_tfile_ops
11384 and add_target_with_completer.
11385 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11386 exec.h, completer.h and filenames.h.
11387 (_initialize_tracefile_tfile): New function.
11388
7951c4eb
YQ
113892014-02-23 Yao Qi <yao@codesourcery.com>
11390
11391 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11392 tracefile-tfile.o.
11393 (HFILES_NO_SRCDIR): Add tracefile.h.
11394 * ctf.c: Include "tracefile.h".
11395 * tracefile.h: New file.
11396 * tracefile.c: New file
11397 * tracefile-tfile.c: New file.
11398 * tracepoint.c: Include "tracefile.h".
11399 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11400 (stop_reason_names): Add const.
11401 (trace_file_writer_xfree): Move it to tracefile.c.
11402 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11403 (trace_save_ctf): Likewise.
11404 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11405 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11406 (tfile_write_header, tfile_write_regblock_type): Likewise.
11407 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11408 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11409 (tfile_write_raw_data, tfile_end): Likewise.
11410 (tfile_trace_file_writer_new): Likewise.
11411 (free_uploaded_tp): Make it extern.
11412 (free_uploaded_tsv): Make it extern.
11413 (_initialize_tracepoint): Move code to register command 'tsave'
11414 to tracefile.c.
11415 * tracepoint.h (stop_reason_names): Declare.
11416 (struct trace_frame_write_ops): Move it to tracefile.h.
11417 (struct trace_file_write_ops): Likewise.
11418 (struct trace_file_writer): Likewise.
11419 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11420
184cd072
JK
114212014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11422
11423 PR gdb/16594
11424 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11425 process name.
11426 (get_cores_used_by_process): New parameter num_cores, use it.
11427 (linux_xfer_osdata_processes): Pass num_cores to it.
11428 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11429 process name.
11430
c63528fc
AK
114312014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11432
11433 * target.c (memory_xfer_partial): Fix length arg in call to
11434 breakpoint_xfer_memory.
11435
d7b30f67
SDJ
114362014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11437
11438 PR tdep/16397
11439 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11440 number comes after the + or - signs. Adjust length of register
11441 name to be extracted.
11442
8838afaf
TT
114432014-02-20 Tom Tromey <tromey@redhat.com>
11444
11445 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11446 (ada_varobj_ops): Mark "extern".
11447
05227d14
TT
114482014-02-20 Tom Tromey <tromey@redhat.com>
11449
11450 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11451
1254eefc
DE
114522014-02-20 Doug Evans <xdje42@gmail.com>
11453
11454 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11455 All callers updated.
11456 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11457 All callers updated.
11458 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11459 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11460
adde2bff
DE
114612014-02-20 lin zuojian <manjian2006@gmail.com>
11462 Joel Brobecker <brobecker@adacore.com>
11463 Doug Evans <xdje42@gmail.com>
11464
11465 PR symtab/16581
11466 * dwarf2read.c (struct die_info): New member in_process.
11467 (reset_die_in_process): New function.
11468 (process_die): Set it at the start, reset when returning.
11469 (inherit_abstract_dies): Only call process_die if origin_child_die
11470 not already being processed.
11471
3be75f87
JB
114722014-02-20 Joel Brobecker <brobecker@adacore.com>
11473
11474 * windows-nat.c (handle_unload_dll): Add function documentation.
11475 (do_initial_windows_stuff): Add comment explaining why we wait
11476 until after inferior initialization has finished before
11477 processing all DLLs.
11478
47f7ffdb
JB
114792014-02-20 Joel Brobecker <brobecker@adacore.com>
11480
11481 * windows-nat.c (get_module_name): Delete.
11482 (windows_get_exec_module_filename): New function, mostly
11483 inspired from get_module_name.
11484 (windows_pid_to_exec_file): Replace call to get_module_name
11485 by call to windows_get_exec_module_filename.
11486
1cd9feab
JB
114872014-02-20 Joel Brobecker <brobecker@adacore.com>
11488
11489 * windows-nat.c (handle_load_dll): Rewrite this function's
11490 introductory comment. Remove code using get_module_name
11491 to get the DLL's name.
11492
ea39ad35
JB
114932014-02-20 Joel Brobecker <brobecker@adacore.com>
11494
11495 * windows-nat.c (get_windows_debug_event): Ignore
11496 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11497 if windows_initialization_done == 0.
11498 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11499 Adjust implementation to always load all DLLs.
11500 (do_initial_windows_stuff): Replace call to
11501 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11502
95060284
JB
115032014-02-20 Joel Brobecker <brobecker@adacore.com>
11504
11505 * windows-nat.c (_initialize_windows_nat): Deprecate the
11506 "dll-symbols" command. Turn the "add-shared-symbol-files"
11507 and "assf" aliases into commands, and deprecate them as well.
11508 * NEWS: Add entry explaining that "dll-symbols" and its two
11509 aliases are now deprecated.
11510
8d4fdb12
JB
115112014-02-20 Joel Brobecker <brobecker@adacore.com>
11512
11513 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11514 new-line in debug string. Remove trailing spaces.
11515
1b281443
SS
115162014-02-19 Stan Shebs <stan@codesourcery.com>
11517
11518 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11519
f7bd0f78
SC
115202014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11521
11522 * NEWS: Add entry for the new feature
11523 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11524 and class values.
11525
399ebc3d
SS
115262014-02-19 Stan Shebs <stan@codesourcery.com>
11527
11528 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11529
c658158d
PA
115302014-02-19 Pedro Alves <palves@redhat.com>
11531
11532 * common/ptid.h (struct ptid): Mention that process_stratum
11533 targets should prefer ptid.lwp.
11534
ba348170
PA
115352014-02-19 Pedro Alves <palves@redhat.com>
11536
11537 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11538 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11539 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11540 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11541 store remote thread ids rather than ptid.tid.
11542 (_initialize_remote): Adjust.
11543
ac01945b
TT
115442014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target.c (target_get_unwinder): Rewrite.
11547 (target_get_tailcall_unwinder): Rewrite.
11548 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11549 (record_btrace_to_get_tailcall_unwinder): New function.
11550 (init_record_btrace_ops): Update.
11551 * target.h (struct target_ops) <to_get_unwinder,
11552 to_get_tailcall_unwinder>: Now function pointers. Use
11553 TARGET_DEFAULT_RETURN.
11554
8476dc92
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11558 argument.
11559 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11560
c0eca49f
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11564 directly.
11565 * target-delegates.c: Rebuild.
11566 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11567 TARGET_DEFAULT_FUNC.
11568 * target.c (default_target_decr_pc_after_break): Rename from
11569 forward_target_decr_pc_after_break. Simplify.
11570 (target_decr_pc_after_break): Rely on delegation.
11571
596b6b39
TT
115722014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target.c (update_current_target): Do not INHERIT to_doc or
11575 to_magic. Do not de_fault to_open or to_close.
11576
b427c1bc
TT
115772014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * gcore.h (objfile_find_memory_regions): Declare.
11580 * gcore.c (objfile_find_memory_regions): No longer static. Add
11581 "self" argument.
11582 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11583 * exec.c: Include gcore.h.
11584 (exec_set_find_memory_regions): Remove.
11585 (exec_find_memory_regions): Remove.
11586 (exec_do_find_memory_regions): Remove.
11587 (init_exec_ops): Update.
11588 * defs.h (exec_set_find_memory_regions): Remove.
11589
9b144037
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target-delegates.c: Rebuild.
11593 * target.h (struct target_ops) <to_extra_thread_info,
11594 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11595 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11596 not 0, in TARGET_DEFAULT_RETURN.
11597
555bbdeb
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.c (complete_target_initialization): Remove casts. Use
11601 return_zero_has_execution.
11602 (return_zero): Add "ignore" argument.
11603 (return_zero_has_execution): New function.
11604 (init_dummy_target): Remove casts. Use
11605 return_zero_has_execution.
11606
be4ddd36
TT
116072014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target.c (update_current_target): Update comments. Do not
11610 INHERIT to_stratum.
11611
2117c711
TT
116122014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11615 needed.
11616 * corelow.c (core_read_description): Delegate when needed.
11617 * remote.c (remote_read_description): Delegate when needed.
11618 * target-delegates.c: Rebuild.
11619 * target.c (target_read_description): Rewrite.
11620 * target.h (struct target_ops) <to_read_description>: Update
11621 comment. Use TARGET_DEFAULT_RETURN.
11622
e88ef65c
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11627 to_can_run.
11628 (find_default_run_target): Check against delegate_can_run.
11629 * target.h (struct target_ops) <to_can_run>: Use
11630 TARGET_DEFAULT_RETURN.
11631
86a0854a
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (target_disconnect): Unconditionally delegate.
11636 * target.h (struct target_ops) <to_disconnect>: Use
11637 TARGET_DEFAULT_NORETURN.
11638
ee97f592
TT
116392014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * record.c (record_stop): Unconditionally delegate.
11642 * target-delegates.c: Rebuild.
11643 * target.c (target_stop_recording): Unconditionally delegate.
11644 * target.h (struct target_ops) <to_stop_recording>: Use
11645 TARGET_DEFAULT_IGNORE.
11646
6dc7fcf4
TT
116472014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target-delegates.c: Rebuild.
11650 * target.c (target_enable_btrace): Unconditionally delegate.
11651 * target.h (struct target_ops) <to_enable_btrace>: Use
11652 TARGET_DEFAULT_NORETURN.
11653
eb5b20d4
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (target_read_btrace): Unconditionally delegate.
11658 * target.h (struct target_ops) <to_read_btrace>: Use
11659 TARGET_DEFAULT_NORETURN.
11660
9ace480d
TT
116612014-02-19 Tom Tromey <tromey@redhat.com>
11662
11663 * target-delegates.c: Rebuild.
11664 * target.c (target_teardown_btrace): Unconditionally delegate.
11665 * target.h (struct target_ops) <to_teardown_btrace>: Use
11666 TARGET_DEFAULT_NORETURN.
11667
8dc292d3
TT
116682014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target-delegates.c: Rebuild.
11671 * target.c (target_disable_btrace): Unconditionally delegate.
11672 * target.h (struct target_ops) <to_disable_btrace>: Use
11673 TARGET_DEFAULT_NORETURN.
11674
58a5184e
TT
116752014-02-19 Tom Tromey <tromey@redhat.com>
11676
11677 * target-delegates.c: Rebuild.
11678 * target.c (default_search_memory): New function.
11679 (simple_search_memory): Update comment.
11680 (target_search_memory): Unconditionally delegate.
11681 * target.h (struct target_ops) <to_search_memory>: Use
11682 TARGET_DEFAULT_FUNC.
11683
8de71aab
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * auxv.c (default_auxv_parse): No longer static.
11687 (target_auxv_parse): Unconditionally delegate.
11688 * auxv.h (default_auxv_parse): Declare.
11689 * target-delegates.c: Rebuild.
11690 * target.c: Include auxv.h.
11691 * target.h (struct target_ops) <to_auxv_parse>: Use
11692 TARGET_DEFAULT_FUNC.
11693
6b2c5a57
TT
116942014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target-delegates.c: Rebuild.
11697 * target.c (target_memory_map): Unconditionally delegate.
11698 * target.h (struct target_ops) <to_memory_map>: Use
11699 TARGET_DEFAULT_RETURN.
11700
cbffc065
TT
117012014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * target-delegates.c: Rebuild.
11704 * target.c (target_thread_alive): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_thread_alive>: Use
11706 TARGET_DEFAULT_RETURN.
11707
f09e2107
TT
117082014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target-delegates.c: Rebuild.
11711 * target.c (target_save_record): Unconditionally delegate.
11712 * target.h (struct target_ops) <to_save_record>: Use
11713 TARGET_DEFAULT_NORETURN.
11714
07366925
TT
117152014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (target_delete_record): Unconditionally delegate.
11719 * target.h (struct target_ops) <to_delete_record>: Use
11720 TARGET_DEFAULT_NORETURN.
11721
dd2e9d25
TT
117222014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target-delegates.c: Rebuild.
11725 * target.c (target_record_is_replaying): Unconditionally
11726 delegate.
11727 * target.h (struct target_ops) <to_record_is_replaying>: Use
11728 TARGET_DEFAULT_RETURN.
11729
671e76cc
TT
117302014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target-delegates.c: Rebuild.
11733 * target.c (target_goto_record_begin): Unconditionally delegate.
11734 * target.h (struct target_ops) <to_goto_record_begin>: Use
11735 TARGET_DEFAULT_NORETURN.
11736
e9179bb3
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (target_goto_record_end): Unconditionally delegate.
11741 * target.h (struct target_ops) <to_goto_record_end>: Use
11742 TARGET_DEFAULT_NORETURN.
11743
05969c84
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * target-delegates.c: Rebuild.
11747 * target.c (target_goto_record): Unconditionally delegate.
11748 * target.h (struct target_ops) <to_goto_record>: Use
11749 TARGET_DEFAULT_NORETURN.
11750
3679abfa
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target-delegates.c: Rebuild.
11754 * target.c (target_insn_history): Unconditionally delegate.
11755 * target.h (struct target_ops) <to_insn_history>: Use
11756 TARGET_DEFAULT_NORETURN.
11757
8444ab58
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target-delegates.c: Rebuild.
11761 * target.c (target_insn_history_from): Unconditionally delegate.
11762 * target.h (struct target_ops) <to_insn_history_from>: Use
11763 TARGET_DEFAULT_NORETURN.
11764
c29302cc
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (target_insn_history_range): Unconditionally delegate.
11769 * target.h (struct target_ops) <to_insn_history_range>: Use
11770 TARGET_DEFAULT_NORETURN.
11771
170049d4
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target-delegates.c: Rebuild.
11775 * target.c (target_call_history): Unconditionally delegate.
11776 * target.h (struct target_ops) <to_call_history>: Use
11777 TARGET_DEFAULT_NORETURN.
11778
16fc27d6
TT
117792014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target-delegates.c: Rebuild.
11782 * target.c (target_call_history_from): Unconditionally delegate.
11783 * target.h (struct target_ops) <to_call_history_from>: Use
11784 TARGET_DEFAULT_NORETURN.
11785
115d9817
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (target_call_history_range): Unconditionally delegate.
11790 * target.h (struct target_ops) <to_call_history_range>: Use
11791 TARGET_DEFAULT_NORETURN.
11792
eb276a6b
TT
117932014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target-delegates.c: Rebuild.
11796 * target.c (target_verify_memory): Unconditionally delegate.
11797 * target.h (struct target_ops) <to_verify_memory>: Use
11798 TARGET_DEFAULT_NORETURN.
11799
9e538d0d
TT
118002014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target-delegates.c: Rebuild.
11803 * target.c (target_core_of_thread): Unconditionally delegate.
11804 * target.h (struct target_ops) <to_core_of_thread>: Use
11805 TARGET_DEFAULT_RETURN.
11806
f6fb2925
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target-delegates.c: Rebuild.
11810 * target.c (target_flash_done): Unconditionally delegate.
11811 * target.h (struct target_ops) <to_flash_done>: Use
11812 TARGET_DEFAULT_NORETURN.
11813
e8a6c6ac
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_flash_erase): Unconditionally delegate.
11818 * target.h (struct target_ops) <to_flash_erase>: Use
11819 TARGET_DEFAULT_NORETURN.
11820
7e35c012
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (target_get_section_table): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_get_section_table>: Use
11826 TARGET_DEFAULT_RETURN.
11827
770234d3
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target-delegates.c: Rebuild.
11831 * target.c (target_pid_to_str): Unconditionally delegate.
11832 (init_dummy_target): Don't initialize to_pid_to_str.
11833 (default_pid_to_str): Rename from dummy_pid_to_str.
11834 * target.h (struct target_ops) <to_pid_to_str>: Use
11835 TARGET_DEFAULT_FUNC.
11836
09b0dc2b
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (target_find_new_threads): Unconditionally delegate.
11841 * target.h (struct target_ops) <to_find_new_threads>: Use
11842 TARGET_DEFAULT_RETURN.
11843
7d4f8efa
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target-delegates.c: Rebuild.
11847 * target.c (target_program_signals): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_program_signals>: Use
11849 TARGET_DEFAULT_IGNORE.
11850
035cad7f
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (target_pass_signals): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_pass_signals>: Use
11856 TARGET_DEFAULT_IGNORE.
11857
8d657035
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (default_mourn_inferior): New function.
11862 (target_mourn_inferior): Unconditionally delegate.
11863 * target.h (struct target_ops) <to_mourn_inferior>: Use
11864 TARGET_DEFAULT_FUNC.
11865
098dba18
TT
118662014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (default_follow_fork): New function.
11870 (target_follow_fork): Unconditionally delegate.
11871 * target.h (struct target_ops) <to_follow_fork>: Use
11872 TARGET_DEFAULT_FUNC.
11873
423a4807
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (target_kill): Unconditionally delegate.
11878 * target.h (struct target_ops) <to_kill>: Use
11879 TARGET_DEFAULT_NORETURN.
11880
6c7e5e5c
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (target_masked_watch_num_registers): Unconditionally
11885 delegate.
11886 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11887 Use TARGET_DEFAULT_RETURN.
11888
8b1c364c
TT
118892014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_remove_mask_watchpoint): Unconditionally
11893 delegate.
11894 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11895 TARGET_DEFAULT_RETURN.
11896
cd4ae029
TT
118972014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target-delegates.c: Rebuild.
11900 * target.c (target_insert_mask_watchpoint): Unconditionally
11901 delegate.
11902 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11903 TARGET_DEFAULT_RETURN.
11904
a134316b
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * target-delegates.c: Rebuild.
11908 * target.c (target_ranged_break_num_registers): Unconditionally
11909 delegate.
11910 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11911 Use TARGET_DEFAULT_RETURN.
11912
ad5989bd
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target-delegates.c: Rebuild.
11916 * target.c (target_fetch_registers): Unconditionally delegate.
11917 * target.h (struct target_ops) <to_fetch_registers>: Use
11918 TARGET_DEFAULT_NORETURN.
11919
46ee7e8d
TT
119202014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_stop.
11925 * target.h (struct target_ops) <to_stop>: Use
11926 TARGET_DEFAULT_IGNORE.
11927
843f59ed
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_can_run_breakpoint_commands.
11933 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11934 Use TARGET_DEFAULT_RETURN.
11935
ccfde2a0
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_supports_evaluation_of_breakpoint_conditions.
11941 * target.h (struct target_ops)
11942 <to_supports_evaluation_of_breakpoint_conditions>: Use
11943 TARGET_DEFAULT_RETURN.
11944
0de91722
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target-delegates.c: Rebuild.
11948 * target.c (update_current_target): Don't inherit or default
11949 to_augmented_libraries_svr4_read.
11950 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11951 Use TARGET_DEFAULT_RETURN.
11952
9a7d8b48
TT
119532014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * target-delegates.c: Rebuild.
11956 * target.c (update_current_target): Don't inherit or default
11957 to_can_use_agent.
11958 * target.h (struct target_ops) <to_can_use_agent>: Use
11959 TARGET_DEFAULT_RETURN.
11960
d9db5b21
TT
119612014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11965 to_use_agent.
11966 * target.h (struct target_ops) <to_use_agent>: Use
11967 TARGET_DEFAULT_NORETURN.
11968
92155eeb
TT
119692014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target-delegates.c: Rebuild.
11972 * target.c (update_current_target): Don't inherit or default
11973 to_traceframe_info.
11974 (return_null): Remove.
11975 * target.h (struct target_ops) <to_traceframe_info>: Use
11976 TARGET_DEFAULT_RETURN.
11977
d6522a22
TT
119782014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_static_tracepoint_markers_by_strid.
11983 * target.h (struct target_ops)
11984 <to_static_tracepoint_markers_by_strid>: Use
11985 TARGET_DEFAULT_NORETURN.
11986
4c3e4425
TT
119872014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_static_tracepoint_marker_at.
11992 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11993 Use TARGET_DEFAULT_RETURN.
11994
dcd6917f
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
11999 to_set_permissions.
12000 * target.h (struct target_ops) <to_set_permissions>: Use
12001 TARGET_DEFAULT_IGNORE.
12002
22bcceee
TT
120032014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_get_tib_address.
12008 * target.h (struct target_ops) <to_get_tib_address>: Use
12009 TARGET_DEFAULT_NORETURN.
12010
8586ccaa
TT
120112014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target-delegates.c: Rebuild.
12014 * target.c (update_current_target): Don't inherit or default
12015 to_set_trace_notes.
12016 * target.h (struct target_ops) <to_set_trace_notes>: Use
12017 TARGET_DEFAULT_RETURN.
12018
91df8d1d
TT
120192014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't initialize
12023 to_set_trace_buffer_size.
12024 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12025 TARGET_DEFAULT_IGNORE.
12026
8d526939
TT
120272014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12031 to_set_circular_trace_buffer.
12032 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12033 TARGET_DEFAULT_IGNORE.
12034
0bcfeddf
TT
120352014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_set_disconnected_tracing.
12040 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12041 TARGET_DEFAULT_IGNORE.
12042
9249843f
TT
120432014-02-19 Tom Tromey <tromey@redhat.com>
12044
12045 * target-delegates.c: Rebuild.
12046 * target.c (update_current_target): Don't inherit or default
12047 to_get_min_fast_tracepoint_insn_len.
12048 (return_minus_one): Remove.
12049 * target.h (struct target_ops)
12050 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12051
ace92e7d
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_get_raw_trace_data.
12057 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12058 TARGET_DEFAULT_NORETURN.
12059
08120467
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_upload_trace_state_variables.
12065 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12066 Use TARGET_DEFAULT_RETURN.
12067
1e949b00
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_upload_tracepoints.
12073 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12074 TARGET_DEFAULT_RETURN.
12075
a2e6c147
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_save_trace_data.
12081 * target.h (struct target_ops) <to_save_trace_data>: Use
12082 TARGET_DEFAULT_NORETURN.
12083
959bcd0b
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_get_trace_state_variable_value.
12089 * target.h (struct target_ops)
12090 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12091
afc94e66
TT
120922014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_trace_find.
12097 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12098
e51c07ea
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target-delegates.c: Rebuild.
12102 * target.c (update_current_target): Don't inherit or default
12103 to_trace_stop.
12104 * target.h (struct target_ops) <to_trace_stop>: Use
12105 TARGET_DEFAULT_NORETURN.
12106
6fea14cd
TT
121072014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target-delegates.c: Rebuild.
12110 * target.c (update_current_target): Don't inherit or default
12111 to_get_tracepoint_status.
12112 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12113 TARGET_DEFAULT_NORETURN.
12114
4072d4ff
TT
121152014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target-delegates.c: Rebuild.
12118 * target.c (update_current_target): Don't inherit or default
12119 to_get_trace_status.
12120 * target.h (struct target_ops) <to_get_trace_status>: Use
12121 TARGET_DEFAULT_RETURN.
12122
25da2e80
TT
121232014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12127 to_trace_start.
12128 * target.h (struct target_ops) <to_trace_start>: Use
12129 TARGET_DEFAULT_NORETURN.
12130
86dd181d
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_trace_set_readonly_regions.
12136 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12137 Use TARGET_DEFAULT_NORETURN.
12138
05c41993
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12143 to_disable_tracepoint.
12144 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12145 TARGET_DEFAULT_NORETURN.
12146
151f70f1
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_enable_tracepoint.
12152 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12153 TARGET_DEFAULT_NORETURN.
12154
94eb98b9
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_download_trace_state_variable.
12160 * target.h (struct target_ops) <to_download_trace_state_variable>:
12161 Use TARGET_DEFAULT_NORETURN.
12162
719acc4a
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_can_download_tracepoint.
12168 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12169 TARGET_DEFAULT_RETURN.
12170
9a980a22
TT
121712014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_download_tracepoint.
12176 * target.h (struct target_ops) <to_download_tracepoint>: Use
12177 TARGET_DEFAULT_NORETURN.
12178
5536135b
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_trace_init.
12184 * target.h (struct target_ops) <to_trace_init>: Use
12185 TARGET_DEFAULT_RETURN.
12186
9409d39e
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_supports_string_tracing.
12192 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12193 TARGET_DEFAULT_RETURN.
12194
aab1b22d
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target-delegates.c: Rebuild.
12198 * target.c (update_current_target): Don't inherit or default
12199 to_supports_enable_disable_tracepoint.
12200 * target.h (struct target_ops)
12201 <to_supports_enable_disable_tracepoint>: Use
12202 TARGET_DEFAULT_RETURN.
12203
a7304748
TT
122042014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_supports_multi_process.
12209 * target.h (struct target_ops) <to_supports_multi_process>: Use
12210 TARGET_DEFAULT_RETURN.
12211
4229b31d
TT
122122014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12216 to_get_ada_task_ptid.
12217 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12218 TARGET_DEFAULT_FUNC.
12219
43eba180
TT
122202014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12224 to_thread_architecture.
12225 * target.h (struct target_ops) <to_thread_architecture>: Use
12226 TARGET_DEFAULT_FUNC.
12227
fe31bf5b
TT
122282014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_execution_direction.
12233 * target.h (struct target_ops) <to_execution_direction>: Use
12234 TARGET_DEFAULT_FUNC.
12235
53e1cfc7
TT
122362014-02-19 Tom Tromey <tromey@redhat.com>
12237
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12240 to_can_execute_reverse.
12241 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12242 TARGET_DEFAULT_RETURN.
12243 (target_can_execute_reverse): Unconditionally delegate.
12244
9bb9d61d
TT
122452014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target-delegates.c: Rebuild.
12248 * target.c (update_current_target): Don't inherit or default
12249 to_goto_bookmark.
12250 (dummy_goto_bookmark): Remove.
12251 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12252 * target.h (struct target_ops) <to_goto_bookmark>: Use
12253 TARGET_DEFAULT_NORETURN.
12254
3dbafbbb
TT
122552014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_get_bookmark.
12260 (dummy_get_bookmark): Remove.
12261 (init_dummy_target): Don't inherit or default to_get_bookmark.
12262 * target.h (struct target_ops) <to_get_bookmark>: Use
12263 TARGET_DEFAULT_NORETURN
12264
16f796b1
TT
122652014-02-19 Tom Tromey <tromey@redhat.com>
12266
12267 * target-delegates.c: Rebuild.
12268 * target.c (update_current_target): Don't inherit or default
12269 to_make_corefile_notes.
12270 (init_dummy_target): Don't initialize to_make_corefile_notes.
12271 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12272 TARGET_DEFAULT_FUNC.
12273
0b5a2719
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target-delegates.c: Rebuild.
12277 * target.c (update_current_target): Don't inherit or default
12278 to_find_memory_regions.
12279 (init_dummy_target): Don't initialize to_find_memory_regions.
12280 * target.h (struct target_ops) <to_find_memory_regions>: Use
12281 TARGET_DEFAULT_FUNC.
12282
d9cb0195
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12287 to_log_command.
12288 * target.h (struct target_ops) <to_log_command>: Use
12289 TARGET_DEFAULT_IGNORE.
12290 (target_log_command): Unconditionally delegate.
12291
830ca330
TT
122922014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target-delegates.c: Rebuild.
12295 * target.c (update_current_target): Don't inherit or default
12296 to_pid_to_exec_file.
12297 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12298 TARGET_DEFAULT_RETURN.
12299
825828fc
TT
123002014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target-delegates.c: Rebuild.
12303 * target.c (update_current_target): Don't inherit or default
12304 to_thread_name.
12305 (target_thread_name): Unconditionally delegate.
12306 * target.h (struct target_ops) <to_thread_name>: Use
12307 TARGET_DEFAULT_RETURN.
12308
4a7e6dda
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_extra_thread_info.
12314 * target.h (struct target_ops) <to_extra_thread_info>: Use
12315 TARGET_DEFAULT_RETURN.
12316
0db88c1d
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_has_exited.
12322 * target.h (struct target_ops) <to_has_exited>: Use
12323 TARGET_DEFAULT_RETURN..
12324
6a9fa051
TT
123252014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_set_syscall_catchpoint.
12330 (return_one): Remove.
12331 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12332 TARGET_DEFAULT_RETURN.
12333
62f64d7a
TT
123342014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target-delegates.c: Rebuild.
12337 * target.c (update_current_target): Don't inherit or default
12338 to_insert_exec_catchpoint.
12339 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12340 TARGET_DEFAULT_RETURN.
12341
cda0f38c
TT
123422014-01-08 Tom Tromey <tromey@redhat.com>
12343
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12346 to_insert_exec_catchpoint.
12347 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12348 TARGET_DEFAULT_RETURN.
12349
95c3375e
TT
123502014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_remove_vfork_catchpoint.
12355 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12356 TARGET_DEFAULT_RETURN.
12357
7e18a8dc
TT
123582014-02-19 Tom Tromey <tromey@redhat.com>
12359
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_insert_vfork_catchpoint.
12363 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12364 TARGET_DEFAULT_RETURN.
12365
e1a21fb7
TT
123662014-02-19 Tom Tromey <tromey@redhat.com>
12367
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_remove_fork_catchpoint.
12371 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12372 TARGET_DEFAULT_RETURN.
12373
5958ebeb
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_insert_fork_catchpoint.
12379 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12380 TARGET_DEFAULT_RETURN.
12381
340ba4bf
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_post_startup_inferior.
12387 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12388 TARGET_DEFAULT_IGNORE.
12389
7634da87
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_load.
12395 * target.h (struct target_ops) <to_load>: Use
12396 TARGET_DEFAULT_NORETURN.
12397
e19e919f
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12402 to_terminal_info.
12403 * target.h (struct target_ops) <to_terminal_info>: Use
12404 TARGET_DEFAULT_FUNC.
12405
c6ea8f79
TT
124062014-02-19 Tom Tromey <tromey@redhat.com>
12407
12408 * target-delegates.c: Rebuild.
12409 * target.c (update_current_target): Don't inherit or default
12410 to_terminal_save_ours.
12411 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12412 TARGET_DEFAULT_IGNORE.
12413
e4a733f1
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12418 to_terminal_ours.
12419 * target.h (struct target_ops) <to_terminal_ours>: Use
12420 TARGET_DEFAULT_IGNORE.
12421
74fcbef9
TT
124222014-02-19 Tom Tromey <tromey@redhat.com>
12423
12424 * target-delegates.c: Rebuild.
12425 * target.c (update_current_target): Don't inherit or default
12426 to_terminal_ours_for_output.
12427 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12428 TARGET_DEFAULT_IGNORE.
12429
ddeaacc9
TT
124302014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target-delegates.c: Rebuild.
12433 * target.c (update_current_target): Don't inherit or default
12434 to_terminal_inferior.
12435 * target.h (struct target_ops) <to_terminal_inferior>: Use
12436 TARGET_DEFAULT_IGNORE.
12437
0343661d
TT
124382014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target-delegates.c: Rebuild.
12441 * target.c (update_current_target): Don't inherit or default
12442 to_terminal_init.
12443 * target.h (struct target_ops) <to_terminal_init>: Use
12444 TARGET_DEFAULT_IGNORE.
12445
77cdffe9
TT
124462014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target-delegates.c: Rebuild.
12449 * target.c (update_current_target): Don't inherit or default
12450 to_can_accel_watchpoint_condition.
12451 * target.h (struct target_ops)
12452 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12453
d03655e4
TT
124542014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * target-delegates.c: Rebuild.
12457 * target.c (update_current_target): Don't inherit or default
12458 to_region_ok_for_hw_watchpoint.
12459 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12460 Use TARGET_DEFAULT_FUNC.
12461
65f160a9
TT
124622014-02-19 Tom Tromey <tromey@redhat.com>
12463
12464 * target-delegates.c: Rebuild.
12465 * target.c (update_current_target): Don't inherit or default
12466 to_watchpoint_addr_within_range.
12467 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12468 Use TARGET_DEFAULT_FUNC.
12469
61dd109f
TT
124702014-02-19 Tom Tromey <tromey@redhat.com>
12471
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_remove_watchpoint.
12475 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12476 TARGET_DEFAULT_NORETURN.
12477
016facd4
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12482 to_insert_watchpoint.
12483 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12484 TARGET_DEFAULT_RETURN.
12485
418dabac
TT
124862014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target-delegates.c: Rebuild.
12489 * target.c (update_current_target): Don't inherit or default
12490 to_remove_hw_breakpoint.
12491 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12492 TARGET_DEFAULT_RETURN.
12493
61b371f9
TT
124942014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target-delegates.c: Rebuild.
12497 * target.c (update_current_target): Don't inherit or default
12498 to_insert_hw_breakpoint.
12499 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12500 TARGET_DEFAULT_RETURN.
12501
52b51d06
TT
125022014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_can_use_hw_breakpoint.
12507 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12508 TARGET_DEFAULT_RETURN.
12509
f86e59b2
TT
125102014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_files_info.
12515 * target.h (struct target_ops) <to_files_info>: Use
12516 TARGET_DEFAULT_IGNORE.
12517
6c628163
TT
125182014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_store.
12523 * target.h (struct target_ops) <to_store>: Use
12524 TARGET_DEFAULT_NORETURN.
12525
bebd3233
TT
125262014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12530 to_post_attach.
12531 * target.h (struct target_ops) <to_post_attach>: Use
12532 TARGET_DEFAULT_IGNORE.
12533
a53f3625
TT
125342014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12538 to_rcmd.
12539 (default_rcmd): New function.
12540 (do_monitor_command): Unconditionally delegate.
12541 * target.h (struct target_ops) <to_rmcd>: Use
12542 TARGET_DEFAULT_FUNC.
12543
e9a29200
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target-delegates.c: Rebuild.
12547 * target.c (init_dummy_target): Don't initialize to_attach.
12548 (target_attach): Unconditionally delegate.
12549 * target.h (struct target_ops) <to_attach>: Use
12550 TARGET_DEFAULT_FUNC.
12551
09da0d0a
TT
125522014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * target-delegates.c: Rebuild.
12555 * target.c (target_detach): Unconditionally delegate.
12556 (init_dummy_target): Don't initialize to_detach.
12557 * target.h (struct target_ops) <to_detach>: Use
12558 TARGET_DEFAULT_IGNORE.
12559
5436ff03
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12563 Add argument.
12564 (target_augmented_libraries_svr4_read): Add argument.
12565 * target.c (update_current_target): Update.
12566 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12567 argument.
12568
f0d960ea
TT
125692014-02-19 Tom Tromey <tromey@redhat.com>
12570
12571 * target.h (struct target_ops) <to_call_history_range>: Add
12572 argument.
12573 * target.c (target_call_history_range): Add argument.
12574 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12575 argument.
12576 (record_btrace_call_history_from): Update.
12577
ec0aea04
TT
125782014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_call_history_from>: Add
12581 argument.
12582 * target.c (target_call_history_from): Add argument.
12583 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12584 argument.
12585
5df2fcba
TT
125862014-02-19 Tom Tromey <tromey@redhat.com>
12587
12588 * target.h (struct target_ops) <to_call_history>: Add argument.
12589 * target.c (target_call_history): Add argument.
12590 * record-btrace.c (record_btrace_call_history): Add 'self'
12591 argument.
12592
4e99c6b7
TT
125932014-02-19 Tom Tromey <tromey@redhat.com>
12594
12595 * target.h (struct target_ops) <to_insn_history_range>: Add
12596 argument.
12597 * target.c (target_insn_history_range): Add argument.
12598 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12599 argument.
12600 (record_btrace_insn_history_from): Update.
12601
9abc3ff3
TT
126022014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_insn_history_from>: Add
12605 argument.
12606 * target.c (target_insn_history_from): Add argument.
12607 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12608 argument.
12609
7a6c5609
TT
126102014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target.h (struct target_ops) <to_insn_history>: Add argument.
12613 * target.c (target_insn_history): Add argument.
12614 * record-btrace.c (record_btrace_insn_history): Add 'self'
12615 argument.
12616
606183ac
TT
126172014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target.h (struct target_ops) <to_goto_record>: Add argument.
12620 * target.c (target_goto_record): Add argument.
12621 * record-full.c (record_full_goto): Add 'self' argument.
12622 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12623
307a1b91
TT
126242014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12627 * target.c (target_goto_record_end): Add argument.
12628 * record-full.c (record_full_goto_end): Add 'self' argument.
12629 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12630
08475817
TT
126312014-02-19 Tom Tromey <tromey@redhat.com>
12632
12633 * target.h (struct target_ops) <to_goto_record_begin>: Add
12634 argument.
12635 * target.c (target_goto_record_begin): Add argument.
12636 * record-full.c (record_full_goto_begin): Add 'self' argument.
12637 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12638 argument.
12639
1c63c994
TT
126402014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target.h (struct target_ops) <to_record_is_replaying>: Add
12643 argument.
12644 * target.c (target_record_is_replaying): Add argument.
12645 * record-full.c (record_full_is_replaying): Add 'self' argument.
12646 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12647 argument.
12648 (record_btrace_xfer_partial, record_btrace_store_registers)
12649 (record_btrace_prepare_to_store, record_btrace_resume)
12650 (record_btrace_wait, record_btrace_decr_pc_after_break)
12651 (record_btrace_find_new_threads, record_btrace_thread_alive):
12652 Update.
12653
d1b55219
TT
126542014-02-19 Tom Tromey <tromey@redhat.com>
12655
12656 * target.h (struct target_ops) <to_delete_record>: Add argument.
12657 * target.c (target_delete_record): Add argument.
12658 * record-full.c (record_full_delete): Add 'self' argument.
12659
1390f529
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_save_record>: Add argument.
12663 * target.c (target_save_record): Add argument.
12664 * record-full.c (record_full_save): Add 'self' argument.
12665 (record_full_save): Add 'self' argument.
12666
630d6a4a
TT
126672014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_info_record>: Add argument.
12670 * target.c (target_info_record): Add argument.
12671 * record.c (info_record_command): Add argument.
12672 * record-full.c (record_full_info): Add 'self' argument.
12673 * record-btrace.c (record_btrace_info): Add 'self' argument.
12674
c6cd7c02
TT
126752014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12678 * target.c (target_stop_recording): Add argument.
12679 * record.c (record_stop): Add argument.
12680 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12681 argument.
12682
39c49f83
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12686 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12687 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12688 argument.
12689 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12690 (_initialize_amd64_linux_nat): Use it.
12691 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12692 (_initialize_i386_linux_nat): Use it.
12693
1777056d
TT
126942014-02-19 Tom Tromey <tromey@redhat.com>
12695
12696 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12697 * target.c (target_teardown_btrace): Add argument.
12698 * remote.c (remote_teardown_btrace): Add 'self' argument.
12699 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12700 argument.
12701 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12702 argument.
12703
25e95349
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12707 * target.c (target_disable_btrace): Add argument.
12708 * remote.c (remote_disable_btrace): Add 'self' argument.
12709 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12710 argument.
12711 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12712 argument.
12713
e3c49f88
TT
127142014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12717 * target.c (target_enable_btrace): Add argument.
12718 * remote.c (remote_enable_btrace): Add 'self' argument.
12719 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12720 argument.
12721 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12722 argument.
12723
fe38f897
TT
127242014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12727 (target_can_use_agent): Add argument.
12728 * target.c (update_current_target): Update.
12729 * remote.c (remote_can_use_agent): Add 'self' argument.
12730 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12731
2c152180
TT
127322014-02-19 Tom Tromey <tromey@redhat.com>
12733
12734 * target.h (struct target_ops) <to_use_agent>: Add argument.
12735 (target_use_agent): Add argument.
12736 * target.c (update_current_target): Update.
12737 * remote.c (remote_use_agent): Add 'self' argument.
12738 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12739
a893e81f
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12743 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12744 (target_traceframe_info): Add argument.
12745 * target.c (update_current_target): Update.
12746 * remote.c (remote_traceframe_info): Add 'self' argument.
12747 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12748
c686c57f
TT
127492014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * target.h (target_static_tracepoint_markers_by_strid): Add
12752 argument.
12753 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12754 'self' argument.
12755 * target.c (update_current_target): Update.
12756 * remote.c (struct target_ops)
12757 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12758 * linux-nat.c (struct target_ops)
12759 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12760
61fc905d
TT
127612014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12764 Add argument.
12765 (target_static_tracepoint_marker_at): Add argument.
12766 * target.c (update_current_target): Update.
12767 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12768 argument.
12769
c378d69d
TT
127702014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12773 (target_set_permissions): Add argument.
12774 * target.c (update_current_target): Update.
12775 * remote.c (remote_set_permissions): Add 'self' argument.
12776 (remote_start_remote): Update.
12777
bd7ae0f5
TT
127782014-02-19 Tom Tromey <tromey@redhat.com>
12779
12780 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12781 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12782 (target_get_tib_address): Add argument.
12783 * target.c (update_current_target): Update.
12784 * remote.c (remote_get_tib_address): Add 'self' argument.
12785
d9e68a2c
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12789 (target_set_trace_notes): Add argument.
12790 * target.c (update_current_target): Update.
12791 * remote.c (remote_set_trace_notes): Add 'self' argument.
12792
4da384be
TT
127932014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12796 argument.
12797 (target_set_trace_buffer_size): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12800
736d5b1f
TT
128012014-02-19 Tom Tromey <tromey@redhat.com>
12802
12803 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12804 argument.
12805 (target_set_circular_trace_buffer): Add argument.
12806 * target.c (update_current_target): Update.
12807 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12808 argument.
12809
37b25738
TT
128102014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12813 argument.
12814 (target_set_disconnected_tracing): Add argument.
12815 * target.c (update_current_target): Update.
12816 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12817
0e67620a
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops)
12821 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12822 (target_get_min_fast_tracepoint_insn_len): Add argument.
12823 * target.c (update_current_target): Update.
12824 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12825 argument.
12826
88ee6f45
TT
128272014-02-19 Tom Tromey <tromey@redhat.com>
12828
12829 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12830 argument.
12831 (target_get_raw_trace_data): Add argument.
12832 * target.c (update_current_target): Update.
12833 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12834
181e3713
TT
128352014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12838 Add argument.
12839 (target_upload_trace_state_variables): Add argument.
12840 * target.c (update_current_target): Update.
12841 * remote.c (remote_upload_trace_state_variables): Add 'self'
12842 argument.
12843 (remote_start_remote): Update.
12844
ab6617cc
TT
128452014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12848 argument.
12849 (target_upload_tracepoints): Add argument.
12850 * target.c (update_current_target): Update.
12851 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12852 (remote_start_remote): Update.
12853
dc3decaf
TT
128542014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12857 (target_save_trace_data): Add argument.
12858 * target.c (update_current_target): Update.
12859 * remote.c (remote_save_trace_data): Add 'self' argument.
12860
4011015b
TT
128612014-02-19 Tom Tromey <tromey@redhat.com>
12862
12863 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12864 argument.
12865 * target.h (struct target_ops)
12866 <to_get_trace_state_variable_value>: Add argument.
12867 (target_get_trace_state_variable_value): Add argument.
12868 * target.c (update_current_target): Update.
12869 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12870 argument.
12871 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12872
bd4c6793
TT
128732014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12876 * target.h (struct target_ops) <to_trace_find>: Add argument.
12877 (target_trace_find): Add argument.
12878 * target.c (update_current_target): Update.
12879 * remote.c (remote_trace_find): Add 'self' argument.
12880 * ctf.c (ctf_trace_find): Add 'self' argument.
12881
74499f1b
TT
128822014-02-19 Tom Tromey <tromey@redhat.com>
12883
12884 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12885 (target_trace_stop): Add argument.
12886 * target.c (update_current_target): Update.
12887 * remote.c (remote_trace_stop): Add 'self' argument.
12888
db90e85c
TT
128892014-02-19 Tom Tromey <tromey@redhat.com>
12890
12891 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12892 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12893 argument.
12894 (target_get_tracepoint_status): Add argument.
12895 * target.c (update_current_target): Update.
12896 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12897
8bd200f1
TT
128982014-02-19 Tom Tromey <tromey@redhat.com>
12899
12900 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12901 * target.h (struct target_ops) <to_get_trace_status>: Add
12902 argument.
12903 (target_get_trace_status): Add argument.
12904 * target.c (update_current_target): Update.
12905 * remote.c (remote_get_trace_status): Add 'self' argument.
12906 (remote_start_remote, remote_can_download_tracepoint): Update.
12907 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12908
e2d1aae3
TT
129092014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops) <to_trace_start>: Add argument.
12912 (target_trace_start): Add argument.
12913 * target.c (update_current_target): Update.
12914 * remote.c (remote_trace_start): Add 'self' argument.
12915
583f9a86
TT
129162014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12919 Add argument.
12920 (target_trace_set_readonly_regions): Add argument.
12921 * target.c (update_current_target): Update.
12922 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12923 argument.
12924
780b049c
TT
129252014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12928 argument.
12929 (target_disable_tracepoint): Add argument.
12930 * target.c (update_current_target): Update.
12931 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12932
46670d57
TT
129332014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12936 argument.
12937 (target_enable_tracepoint): Add argument.
12938 * target.c (update_current_target): Update.
12939 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12940
559d2b81
TT
129412014-02-19 Tom Tromey <tromey@redhat.com>
12942
12943 * target.h (struct target_ops) <to_download_trace_state_variable>:
12944 Add argument.
12945 (target_download_trace_state_variable): Add argument.
12946 * target.c (update_current_target): Update.
12947 * remote.c (remote_download_trace_state_variable): Add 'self'
12948 argument.
12949
a52a8357
TT
129502014-02-19 Tom Tromey <tromey@redhat.com>
12951
12952 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12953 argument.
12954 (target_can_download_tracepoint): Add argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12957
548f7808
TT
129582014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * target.h (struct target_ops) <to_download_tracepoint>: Add
12961 argument.
12962 (target_download_tracepoint): Add argument.
12963 * target.c (update_current_target): Update.
12964 * remote.c (remote_download_tracepoint): Add 'self' argument.
12965
ecae04e1
TT
129662014-02-19 Tom Tromey <tromey@redhat.com>
12967
12968 * target.h (struct target_ops) <to_trace_init>: Add argument.
12969 (target_trace_init): Add argument.
12970 * target.c (update_current_target): Update.
12971 * remote.c (remote_trace_init): Add 'self' argument.
12972
fab5aa7c
TT
129732014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12976 * target.c (target_fileio_readlink): Add argument.
12977 * remote.c (remote_hostio_readlink): Add 'self' argument.
12978 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12979
dbbca37d
TT
129802014-02-19 Tom Tromey <tromey@redhat.com>
12981
12982 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12983 * target.c (target_fileio_unlink): Add argument.
12984 * remote.c (remote_hostio_unlink): Add 'self' argument.
12985 (remote_file_delete): Update.
12986 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12987
df39ea25
TT
129882014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12991 * target.c (target_fileio_close): Add argument.
12992 * remote.c (remote_hostio_close): Add 'self' argument.
12993 (remote_hostio_close_cleanup): Update.
12994 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12995 Update.
12996 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12997
a3be983c
TT
129982014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13001 * target.c (target_fileio_pread): Add argument.
13002 * remote.c (remote_hostio_pread): Add 'self' argument.
13003 (remote_bfd_iovec_pread, remote_file_get): Update.
13004 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13005
0d866f62
TT
130062014-02-19 Tom Tromey <tromey@redhat.com>
13007
13008 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13009 * target.c (target_fileio_pwrite): Add argument.
13010 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13011 (remote_file_put): Update.
13012 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13013
cd897586
TT
130142014-02-19 Tom Tromey <tromey@redhat.com>
13015
13016 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13017 * target.c (target_fileio_open): Add argument.
13018 * remote.c (remote_hostio_open): Add 'self' argument.
13019 (remote_bfd_iovec_open): Add 'self' argument.
13020 (remote_file_put): Add 'self' argument.
13021 (remote_file_get): Add 'self' argument.
13022 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13023
78eff0ec
TT
130242014-02-19 Tom Tromey <tromey@redhat.com>
13025
13026 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13027 Add argument.
13028 (target_can_run_breakpoint_commands): Add argument.
13029 * target.c (update_current_target): Update.
13030 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13031 argument.
13032 (remote_insert_breakpoint): Add 'self' argument.
13033 (remote_insert_hw_breakpoint): Add 'self' argument.
13034 (remote_can_run_breakpoint_commands): Add 'self' argument.
13035
efcc2da7
TT
130362014-02-19 Tom Tromey <tromey@redhat.com>
13037
13038 * target.h (struct target_ops)
13039 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13040 (target_supports_evaluation_of_breakpoint_conditions): Add
13041 argument.
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13044 argument.
13045 (remote_insert_breakpoint): Add 'self' argument.
13046 (remote_insert_hw_breakpoint): Add 'self' argument.
13047 (remote_supports_cond_breakpoints): Add 'self' argument.
13048
6de37a3a
TT
130492014-02-19 Tom Tromey <tromey@redhat.com>
13050
13051 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13052 argument.
13053 (target_supports_string_tracing): Add argument.
13054 * target.c (update_current_target): Update.
13055 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13056
2bfc0540
TT
130572014-02-19 Tom Tromey <tromey@redhat.com>
13058
13059 * target.h (struct target_ops)
13060 <to_supports_disable_randomization>: Add argument.
13061 * target.c (find_default_supports_disable_randomization): Add
13062 argument.
13063 (target_supports_disable_randomization): Add argument.
13064 (find_default_supports_disable_randomization): Add 'self'
13065 argument.
13066 * remote.c (extended_remote_supports_disable_randomization): Add
13067 'self' argument.
13068 (remote_supports_disable_randomization): Add 'self' argument.
13069 (extended_remote_create_inferior): Update.
13070 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13071 'self' argument.
13072
7d178d6a
TT
130732014-02-19 Tom Tromey <tromey@redhat.com>
13074
13075 * target.h (struct target_ops)
13076 <to_supports_enable_disable_tracepoint>: Add argument.
13077 (target_supports_enable_disable_tracepoint): Add argument.
13078 * target.c (update_current_target): Update.
13079 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13080 argument.
13081
86ce2668
TT
130822014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_supports_multi_process>: Add
13085 argument.
13086 (target_supports_multi_process): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_supports_multi_process): Add 'self' argument.
13089 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13090 argument.
13091 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13092 argument.
13093
4c612759
TT
130942014-02-19 Tom Tromey <tromey@redhat.com>
13095
13096 * target.h (struct target_ops) <to_execution_direction>: Add
13097 argument.
13098 (target_execution_direction): Add argument.
13099 * target.c (default_execution_direction): Add 'self' argument.
13100 * record-full.c (record_full_execution_direction): Add 'self'
13101 argument.
13102
19db3e69
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13106 argument.
13107 (target_can_execute_reverse): Add argument.
13108 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13109 * record-full.c (record_full_can_execute_reverse): Add 'self'
13110 argument.
13111 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13112 argument.
13113
1e6b91a4
TT
131142014-02-19 Tom Tromey <tromey@redhat.com>
13115
13116 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13117 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13118 argument.
13119 (target_get_ada_task_ptid): Add argument.
13120 * target.c (update_current_target): Update.
13121 (default_get_ada_task_ptid): Add 'self' argument.
13122 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13123 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13124 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13125 argument.
13126 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13127 argument.
13128 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13129 argument.
13130 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13131 argument.
13132 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13133 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13134 argument.
13135
3c80fb48
TT
131362014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13139 (target_goto_bookmark): Add argument.
13140 * target.c (dummy_goto_bookmark): Add 'self' argument.
13141 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13142
dd0e2830
TT
131432014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13146 (target_get_bookmark): Add argument.
13147 * target.c (dummy_get_bookmark): Add 'self' argument.
13148 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13149
fc6691b2
TT
131502014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13153 argument.
13154 (target_make_corefile_notes): Add argument.
13155 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13156 * procfs.c (procfs_make_note_section): Add 'self' argument.
13157 (procfs_make_note_section): Add 'self' argument.
13158 (procfs_make_note_section): Add 'self' argument.
13159 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13160 argument.
13161 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13162 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13163 * exec.c (exec_make_note_section): Add 'self' argument.
13164 (exec_make_note_section): Add 'self' argument.
13165
2e73927c
TT
131662014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops) <to_find_memory_regions>: Add
13169 argument.
13170 (target_find_memory_regions): Add argument.
13171 * target.c (dummy_find_memory_regions): Add 'self' argument.
13172 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13173 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13174 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13175 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13176 * exec. (exec_do_find_memory_regions): New global.
13177 (exec_set_find_memory_regions): Rewrite.
13178 (exec_find_memory_regions): New function.
13179 (init_exec_ops): Use exec_find_memory_regions.
13180
2a9a2795
TT
131812014-02-19 Tom Tromey <tromey@redhat.com>
13182
13183 * target.h (struct target_ops) <to_supports_non_stop>: Add
13184 argument.
13185 * target.c (find_default_supports_non_stop): Add argument.
13186 (target_supports_non_stop): Add argument.
13187 (find_default_supports_non_stop): Add 'self' argument.
13188 * remote.c (remote_supports_non_stop): Add 'self' argument.
13189 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13190
4ab76ea3
TT
131912014-02-19 Tom Tromey <tromey@redhat.com>
13192
13193 * target.h (struct target_ops) <to_log_command>: Add argument.
13194 (target_log_command): Add argument.
13195 * serial.h (serial_log_command): Add 'self' argument.
13196 * serial.c (serial_log_command): Add 'self' argument.
13197
8dd27370
TT
131982014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13201 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13202 argument.
13203 (target_pid_to_exec_file): Add argument.
13204 * target.c (debug_to_pid_to_exec_file): Add argument.
13205 (update_current_target): Update.
13206 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13207 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13208 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13209 (linux_handle_extended_wait): Update.
13210 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13211 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13212 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13213 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13214
1aac633b
TT
132152014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * target.h (struct target_ops) <to_rcmd>: Add argument.
13218 (target_rcmd): Add argument.
13219 * target.c (debug_to_rcmd): Add argument.
13220 (update_current_target, do_monitor_command): Update.
13221 * remote.c (remote_rcmd): Add 'self' argument.
13222 * monitor.c (monitor_rcmd): Add 'self' argument.
13223
1eab8a48
TT
132242014-02-19 Tom Tromey <tromey@redhat.com>
13225
13226 * windows-nat.c (windows_stop): Add 'self' argument.
13227 * target.h (struct target_ops) <to_stop>: Add argument.
13228 * target.c (target_stop): Add argument.
13229 (debug_to_stop): Add argument.
13230 (update_current_target): Update.
13231 * remote.c (remote_stop): Add 'self' argument.
13232 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13233 (gdbsim_cntrl_c): Update.
13234 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13235 * procfs.c (procfs_stop): Add 'self' argument.
13236 * nto-procfs.c (procfs_stop): Add 'self' argument.
13237 * monitor.c (monitor_stop): Add 'self' argument.
13238 (monitor_open): Update.
13239 * linux-nat.c (linux_nat_stop): Add argument.
13240 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13241 * gnu-nat.c (gnu_stop): Add 'self' argument.
13242 * darwin-nat.c (darwin_stop): Add 'self' argument.
13243
503a628d
TT
132442014-02-19 Tom Tromey <tromey@redhat.com>
13245
13246 * target.h (struct target_ops) <to_thread_name>: Add argument.
13247 * target.c (target_thread_name): Add argument.
13248 (update_current_target): Update.
13249 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13250
c15906d8
TT
132512014-02-19 Tom Tromey <tromey@redhat.com>
13252
13253 * target.h (struct target_ops) <to_extra_thread_info>: Add
13254 argument.
13255 (target_extra_thread_info): Add argument.
13256 * target.c (update_current_target): Update.
13257 * remote.c (remote_threads_extra_info): Add 'self' argument.
13258 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13259 argument.
13260 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13261 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13262 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13263 argument.
13264 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13265 argument.
13266 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13267 argument.
13268 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13269 argument.
13270
daf5e9b6
TT
132712014-02-19 Tom Tromey <tromey@redhat.com>
13272
13273 * target.h (struct target_ops) <to_program_signals>: Add argument.
13274 * target.c (target_program_signals): Add argument.
13275 * remote.c (remote_program_signals): Add 'self' argument.
13276
94bedb42
TT
132772014-02-19 Tom Tromey <tromey@redhat.com>
13278
13279 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13280 * target.c (target_pass_signals): Add argument.
13281 * remote.c (remote_pass_signals): Add 'self' argument.
13282 (remote_start_remote): Update.
13283 * procfs.c (procfs_pass_signals): Add 'self' argument.
13284 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13285 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13286 (linux_nat_create_inferior, linux_nat_attach): Update.
13287
da82bd6b
TT
132882014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * windows-nat.c (windows_can_run): Add 'self' argument.
13291 * target.h (struct target_ops) <to_can_run>: Add argument.
13292 (target_can_run): Add argument.
13293 * target.c (debug_to_can_run): Add argument.
13294 (update_current_target): Update.
13295 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13296 * inf-child.c (inf_child_can_run): Add 'self' argument.
13297 * go32-nat.c (go32_can_run): Add 'self' argument.
13298
d796e1d6
TT
132992014-02-19 Tom Tromey <tromey@redhat.com>
13300
13301 * target.h (struct target_ops) <to_has_exited>: Add argument.
13302 (target_has_exited): Add argument.
13303 * target.c (debug_to_has_exited): Add argument.
13304 (update_current_target): Update.
13305
ff214e67
TT
133062014-02-19 Tom Tromey <tromey@redhat.com>
13307
13308 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13309 argument.
13310 (target_set_syscall_catchpoint): Add argument.
13311 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13312 argument.
13313 * target.c (update_current_target): Update.
13314
758e29d2
TT
133152014-02-19 Tom Tromey <tromey@redhat.com>
13316
13317 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13318 argument.
13319 (target_remove_exec_catchpoint): Add argument.
13320 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13321 (update_current_target): Update.
13322 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13323 argument.
13324
ba025e51
TT
133252014-02-19 Tom Tromey <tromey@redhat.com>
13326
13327 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13328 argument.
13329 (target_insert_exec_catchpoint): Add argument.
13330 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13331 (update_current_target): Update.
13332 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13333 argument.
13334
e98cf0cd
TT
133352014-02-19 Tom Tromey <tromey@redhat.com>
13336
13337 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13338 argument.
13339 (target_remove_vfork_catchpoint): Add argument.
13340 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13341 (update_current_target): Update.
13342 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13343 argument.
13344
3ecc7da0
TT
133452014-02-19 Tom Tromey <tromey@redhat.com>
13346
13347 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13348 argument.
13349 (target_insert_vfork_catchpoint): Add argument.
13350 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13351 (update_current_target): Update.
13352 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13353 argument.
13354
973fc227
TT
133552014-02-19 Tom Tromey <tromey@redhat.com>
13356
13357 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13358 argument.
13359 (target_remove_fork_catchpoint): Add argument.
13360 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13361 (update_current_target): Update.
13362 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13363 argument.
13364
a863b201
TT
133652014-02-19 Tom Tromey <tromey@redhat.com>
13366
13367 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13368 argument.
13369 (target_insert_fork_catchpoint): Add argument.
13370 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13371 (update_current_target): Update.
13372 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13373 argument.
13374
2e97a79e
TT
133752014-02-19 Tom Tromey <tromey@redhat.com>
13376
13377 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13378 argument.
13379 (target_post_startup_inferior): Add argument.
13380 * target.c (debug_to_post_startup_inferior): Add argument.
13381 (update_current_target): Update.
13382 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13383 argument.
13384 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13385 argument.
13386 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13387 argument.
13388 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13389 argument.
13390 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13391 'self' argument.
13392 (super_post_startup_inferior): Likewise.
13393 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13394 'self' argument.
13395 (super_post_startup_inferior): Likewise.
13396 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13397 Add 'self' argument.
13398 (super_post_startup_inferior): Likewise.
13399
71a9f134
TT
134002014-02-19 Tom Tromey <tromey@redhat.com>
13401
13402 * target.h (struct target_ops) <to_load>: Add argument.
13403 * target.c (target_load): Add argument.
13404 (debug_to_load): Add argument.
13405 (update_current_target): Update.
13406 * remote.c (remote_load): Add 'self' argument.
13407 * remote-sim.c (gdbsim_load): Add 'self' argument.
13408 * remote-mips.c (mips_load): Add 'self' argument.
13409 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13410 * monitor.c (monitor_load): Add 'self' argument.
13411 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13412
0a4f40a2
TT
134132014-02-19 Tom Tromey <tromey@redhat.com>
13414
13415 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13416 (target_terminal_info): Add argument.
13417 * target.c (debug_to_terminal_info): Add argument.
13418 (default_terminal_info): Likewise.
13419 * inflow.c (child_terminal_info): Add 'self' argument.
13420 * inferior.h (child_terminal_info): Add 'self' argument.
13421 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13422
ae3bd431
TT
134232014-02-19 Tom Tromey <tromey@redhat.com>
13424
13425 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13426 argument.
13427 (target_terminal_save_ours): Add argument.
13428 * target.c (debug_to_terminal_save_ours): Add argument.
13429 (update_current_target): Update.
13430 * inflow.c (terminal_save_ours): Add 'self' argument.
13431 * inferior.h (terminal_save_ours): Add 'self' argument.
13432
e3594fd1
TT
134332014-02-19 Tom Tromey <tromey@redhat.com>
13434
13435 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13436 (target_terminal_ours): Add argument.
13437 * target.c (debug_to_terminal_ours): Add argument.
13438 (update_current_target): Update.
13439 * remote.c (remote_terminal_ours): Add 'self' argument.
13440 (remote_close): Update.
13441 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13442 * inflow.c (terminal_ours): Add 'self' argument.
13443 * inferior.h (terminal_ours): Add 'self' argument.
13444 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13445
2e1e1a19
TT
134462014-02-19 Pedro Alves <palves@redhat.com>
13447 Tom Tromey <tromey@redhat.com>
13448
13449 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13450 argument.
13451 (target_terminal_ours_for_output): Add argument.
13452 * target.c (debug_to_terminal_ours_for_output): Add argument.
13453 (update_current_target): Update.
13454 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13455 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13456 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13457
d2f640d4
TT
134582014-02-19 Tom Tromey <tromey@redhat.com>
13459
13460 * target.h (struct target_ops) <to_terminal_inferior>: Add
13461 argument.
13462 * target.c (target_terminal_inferior): Add argument.
13463 (update_current_target): Update.
13464 * remote.c (remote_terminal_inferior): Add 'self' argument.
13465 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13466 * inflow.c (terminal_inferior): Add 'self' argument.
13467 * inferior.h (terminal_inferior): Add 'self' argument.
13468 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13469 (go32_terminal_inferior): Add 'self' argument.
13470
c42bf286
TT
134712014-02-19 Tom Tromey <tromey@redhat.com>
13472
13473 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13474 (target_terminal_init): Add argument.
13475 * target.c (debug_to_terminal_init): Add argument.
13476 (update_current_target): Update.
13477 * inflow.c (terminal_init_inferior): Add 'self' argument.
13478 * inferior.h (terminal_init_inferior): Add 'self' argument.
13479 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13480 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13481
c3a5ff89
TT
134822014-02-19 Tom Tromey <tromey@redhat.com>
13483
13484 * target.h (struct target_ops)
13485 <to_can_accel_watchpoint_condition>: Add argument.
13486 (target_can_accel_watchpoint_condition): Add argument.
13487 * target.c (debug_to_can_accel_watchpoint_condition): Add
13488 argument.
13489 (update_current_target): Update.
13490 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13491 'self' argument.
13492
31568a15
TT
134932014-02-19 Tom Tromey <tromey@redhat.com>
13494
13495 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13496 Add argument.
13497 (target_region_ok_for_hw_watchpoint): Add argument.
13498 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13499 (default_region_ok_for_hw_watchpoint): Add argument.
13500 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13501 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13502 argument.
13503 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13504 argument.
13505 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13506 argument.
13507 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13508 'self' argument.
13509 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13510 'self' argument.
13511 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13512 'self' argument.
13513 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13514 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13515 'self' argument.
13516 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13517 Add 'self' argument.
13518
7bb99c53
TT
135192014-02-19 Tom Tromey <tromey@redhat.com>
13520
13521 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13522 argument.
13523 (target_insert_watchpoint): Add argument.
13524 * target.c (debug_to_insert_watchpoint): Add argument.
13525 (update_current_target): Update.
13526 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13527 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13528 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13529 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13530 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13531 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13532 argument.
13533 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13534 (procfs_insert_hw_watchpoint): Add 'self' argument.
13535 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13536 argument.
13537 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13538 argument.
13539 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13540 argument.
13541 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13542 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13543 argument.
13544 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13545 'self' argument.
13546
11b5219a
TT
135472014-02-19 Tom Tromey <tromey@redhat.com>
13548
13549 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13550 argument.
13551 (target_remove_watchpoint): Add argument.
13552 * target.c (debug_to_remove_watchpoint): Add argument.
13553 (update_current_target): Update.
13554 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13555 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13556 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13557 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13558 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13559 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13560 argument.
13561 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13562 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13563 argument.
13564 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13565 argument.
13566 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13567 argument.
13568 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13569 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13570 argument.
13571 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13572 'self' argument.
13573
a64dc96c
TT
135742014-02-19 Tom Tromey <tromey@redhat.com>
13575
13576 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13577 argument.
13578 (target_remove_hw_breakpoint): Add argument.
13579 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13580 (update_current_target): Update.
13581 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13582 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13583 argument.
13584 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13585 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13586 argument.
13587 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13588 'self' argument.
13589
23a26771
TT
135902014-02-19 Tom Tromey <tromey@redhat.com>
13591
13592 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13593 argument.
13594 (target_insert_hw_breakpoint): Add argument.
13595 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13596 (update_current_target): Update.
13597 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13598 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13599 argument.
13600 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13601 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13602 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13603 argument.
13604 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13605 'self' argument.
13606
5461485a
TT
136072014-02-19 Tom Tromey <tromey@redhat.com>
13608
13609 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13610 argument.
13611 (target_can_use_hardware_watchpoint): Add argument.
13612 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13613 (update_current_target): Update.
13614 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13615 argument.
13616 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13617 argument.
13618 * remote.c (remote_check_watch_resources): Add 'self' argument.
13619 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13620 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13621 argument.
13622 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13623 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13624 argument.
13625 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13626 argument.
13627 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13628 argument.
13629 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13630 argument.
13631 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13632 argument.
13633 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13634 argument.
13635 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13636 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13637 argument.
13638 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13639 'self' argument.
13640
f045800c
TT
136412014-02-19 Tom Tromey <tromey@redhat.com>
13642
13643 * target.h (struct target_ops) <to_post_attach>: Add argument.
13644 (target_post_attach): Add argument.
13645 * target.c (debug_to_post_attach): Add argument.
13646 (update_current_target): Update.
13647 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13648 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13649 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13650 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13651 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13652
de90e03d
TT
136532014-02-19 Tom Tromey <tromey@redhat.com>
13654
13655 * windows-nat.c (windows_close): Add 'self' argument.
13656 * tracepoint.c (tfile_close): Add 'self' argument.
13657 * target.h (struct target_ops) <to_close>: Add argument.
13658 * target.c (target_close): Add argument.
13659 (update_current_target): Update.
13660 * remote.c (remote_close): Add 'self' argument.
13661 * remote-sim.c (gdbsim_close): Add 'self' argument.
13662 * remote-mips.c (mips_close): Add 'self' argument.
13663 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13664 * record-full.c (record_full_close): Add 'self' argument.
13665 * record-btrace.c (record_btrace_close): Add 'self' argument.
13666 * monitor.h (monitor_close): Add 'self' argument.
13667 * monitor.c (monitor_close): Add 'self' argument.
13668 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13669 * linux-nat.c (linux_nat_close): Add argument.
13670 * go32-nat.c (go32_close): Add 'self' argument.
13671 * exec.c (exec_close_1): Add 'self' argument.
13672 * ctf.c (ctf_close): Add 'self' argument.
13673 * corelow.c (core_close): Add 'self' argument.
13674 (core_close_cleanup): Update.
13675 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13676 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13677
9dd130a0
TT
136782014-02-19 Tom Tromey <tromey@redhat.com>
13679
13680 * remote.c (remote_load): New function.
13681 (init_remote_ops): Use it.
13682
46917d26
TT
136832014-02-19 Tom Tromey <tromey@redhat.com>
13684
13685 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13686 argument.
13687 * common/linux-btrace.h (linux_supports_btrace): Update.
13688 * remote.c (remote_supports_btrace): Add "self" argument.
13689 * target-delegates.c: Rebuild.
13690 * target.c (target_supports_btrace): Remove.
13691 * target.h (struct target_ops) <to_supports_btrace>: Add
13692 target_ops argument.
13693 (target_supports_btrace): New define.
13694
6b84065d
TT
136952014-02-19 Tom Tromey <tromey@redhat.com>
13696
13697 * record-full.c (record_full_beneath_to_resume_ops)
13698 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13699 (record_full_beneath_to_wait)
13700 (record_full_beneath_to_store_registers_ops)
13701 (record_full_beneath_to_store_registers)
13702 (record_full_beneath_to_xfer_partial_ops)
13703 (record_full_beneath_to_xfer_partial)
13704 (record_full_beneath_to_insert_breakpoint_ops)
13705 (record_full_beneath_to_insert_breakpoint)
13706 (record_full_beneath_to_remove_breakpoint_ops)
13707 (record_full_beneath_to_remove_breakpoint)
13708 (record_full_beneath_to_stopped_by_watchpoint)
13709 (record_full_beneath_to_stopped_data_address)
13710 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13711 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13712 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13713 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13714 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13715 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13716 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13717 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13718 (record_full_resume, record_full_wait_1)
13719 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13720 (record_full_store_registers, record_full_xfer_partial)
13721 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13722 (record_full_async, record_full_core_xfer_partial): Use target
13723 delegation.
13724 * target-delegates.c: Rebuild.
13725 * target.c (current_xfer_partial): Remove.
13726 (update_current_target): Do not INHERIT or de_fault
13727 to_insert_breakpoint, to_remove_breakpoint,
13728 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13729 to_is_async_p, to_async. Do not set to_xfer_partial field.
13730 (default_xfer_partial): Simplify.
13731 (current_xfer_partial): Remove.
13732 (target_wait, target_resume): Simplify.
13733 (find_default_can_async_p, find_default_is_async_p): Update.
13734 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13735 to_xfer_partial, to_stopped_by_watchpoint,
13736 to_stopped_data_address.
13737 (target_store_registers): Simplify.
13738 (forward_target_remove_breakpoint)
13739 (forward_target_insert_breakpoint): Remove.
13740 (target_remove_breakpoint, target_insert_breakpoint)
13741 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13742 * target.h (struct target_ops) <to_resume, to_wait,
13743 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13744 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13745 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13746 markup.
13747 (forward_target_remove_breakpoint)
13748 (forward_target_insert_breakpoint): Remove.
13749 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13750 directly.
13751 (record_btrace_insert_breakpoint): Delegate directly.
13752
1101cb7b
TT
137532014-02-19 Tom Tromey <tromey@redhat.com>
13754
13755 PR build/7701:
13756 * target-delegates.c: New file.
13757 * target.c: Include target-delegates.c.
13758 (init_dummy_target): Call install_dummy_methods.
13759 (complete_target_initialization): Call install_delegators.
13760 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13761 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13762 * make-target-delegates: New file.
13763
8b06beed
TT
137642014-02-19 Tom Tromey <tromey@redhat.com>
13765
13766 * record.c (find_record_target): Use find_target_at.
13767 * target.c (find_target_at): New function.
13768 * target.h (find_target_at): Declare.
13769
6a109b6b
TT
137702014-02-19 Tom Tromey <tromey@redhat.com>
13771
13772 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13773 Add 'ops' argument.
13774 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13775 'ops' argument.
13776 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13777 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13778 'ops' argument.
13779 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13780 argument.
13781 * linux-nat.c (save_sigtrap): Update.
13782 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13783 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13784 (linux_nat_close): Update.
13785 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13786 argument.
13787 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13788 argument.
13789 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13790 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13791 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13792 (tmp_to_async): Add 'ops' argument.
13793 (record_full_stopped_by_watchpoint, record_full_async)
13794 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13795 argument.
13796 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13797 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13798 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13799 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13800 (remote_is_async_p, remote_async): Add 'ops' argument.
13801 (remote_stopped_data_address): Update.
13802 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13803 * target.c (update_current_target)
13804 (find_default_can_async_p, find_default_is_async_p): Update.
13805 (init_dummy_target): Update.
13806 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13807 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13808 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13809 (target_can_async_p, target_is_async_p, target_async)
13810 (target_stopped_by_watchpoint): Update.
13811
e095146b
YQ
138122014-02-19 Yao Qi <yao@codesourcery.com>
13813
13814 PR gdb/16220
13815 * gdbarch.sh: Remove startup_gdbarch.
13816 * gdbarch.c: Regenerated.
13817 * gdbarch.h: Likewise.
13818
bc3c6b36
KB
138192014-02-17 Kevin Buettner <kevinb@redhat.com>
13820
13821 * rl78-tdep.c (rl78_g10_register_name): New function.
13822 (rl78_return_value): Add g10 support.
13823 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13824 g10.
13825
98dc0167 138262014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13827
13828 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13829 (SUBDIR_GUILE_SRCS): Ditto.
13830 (scm-gsmob.o): Ditto.
13831
842c05cd
YQ
138322014-02-17 Yao Qi <yao@codesourcery.com>
13833
13834 * gnu-nat.c (ILL_RPC): Declare defined function.
13835
25c0bd04
YQ
138362014-02-17 Yao Qi <yao@codesourcery.com>
13837
13838 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13839 mach_msg_type_number_t.
13840 (gnu_write_inferior): Likewise.
13841
a9a758e3
YQ
138422014-02-17 Yao Qi <yao@codesourcery.com>
13843
13844 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13845 in format string.
13846 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13847 (inf_validate_procs, inf_signal): Likewise.
13848 (S_exception_raise_request): Likewise.
13849 (do_mach_notify_dead_name): Likewise.
13850 (steal_exc_port): Likewise.
13851 (gnu_read_inferior): Change 'copy_count''s type to
13852 mach_msg_type_number_t.
13853 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13854 format string.
13855
bae8023e
TS
138562014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13857
c82f56d9
TS
13858 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13859 flag. Adjust all users; in particular...
13860 (gnu_wait): ..., don't decrement its value in here...
13861 (gnu_create_inferior): ..., and instead set the flag in here,
13862 around the startup_inferior call, and call that one with
13863 START_INFERIOR_TRAPS_EXPECTED.
13864
3398af6a
TS
13865 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13866 (ILL_RPC): ... new macro.
13867 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13868 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13869 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13870 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13871 functions with ILL_RPC macro.
13872 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13873 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13874 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13875 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13876 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13877 (S_proc_getlogin_reply, S_proc_getsid_reply)
13878 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13879 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13880 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13881 (S_proc_getnports_reply, S_proc_is_important_reply)
13882 (S_proc_get_code_reply): New stub functions, generated with
13883 ILL_RPC macro.
13884
d47642c9
TS
13885 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13886 collected the type check structures.
13887
bae8023e
TS
13888 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13889
8a55ffb0
DE
138902014-02-14 Doug Evans <dje@google.com>
13891
13892 * target.c (target_write_partial): Fix result type.
13893
c2853f3d
JM
138942014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13895
13896 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13897 the proper offsets to access fpregset_t.
13898
ac61d2db
SA
138992014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13900
13901 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13902 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13903 * h8300-tdep.c (setmachinelist): Remove global.
13904 * hppa-tdep.c (hppa_sigtramp): Remove global.
13905 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13906 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13907 * ravenscar-thread.c (update_target_observer): Remove global.
13908 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13909
9d2d0b8b
TT
139102014-02-12 Tom Tromey <tromey@redhat.com>
13911
13912 * common/rsp-low.c: Update comments.
13913 * common/rsp-low.h: Update comments.
13914
a7191e8b
TT
139152014-02-12 Tom Tromey <tromey@redhat.com>
13916
13917 * common/rsp-low.c (convert_ascii_to_int): Remove.
13918 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13919
ff0e980e
TT
139202014-02-12 Tom Tromey <tromey@redhat.com>
13921
13922 * common/rsp-low.h (unhexify): Don't declare.
13923 * common/rsp-low.c (unhexify): Remove.
13924
e9371aff
TT
139252014-02-12 Tom Tromey <tromey@redhat.com>
13926
13927 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13928 * common/rsp-low.c (convert_int_to_ascii): Remove.
13929
971dc0b8
TT
139302014-02-12 Tom Tromey <tromey@redhat.com>
13931
13932 * common/rsp-low.h (hexify): Don't declare.
13933 * common/rsp-low.c (hexify): Remove.
13934
0a822afb
TT
139352014-02-12 Tom Tromey <tromey@redhat.com>
13936
13937 * common/rsp-low.c (hexify): Never take strlen of argument.
13938
9f1b45b0
TT
139392014-02-12 Tom Tromey <tromey@redhat.com>
13940
13941 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13942 * remote.c (extended_remote_run, remote_rcmd)
13943 (remote_download_trace_state_variable, remote_save_trace_data)
13944 (remote_set_trace_notes): Update.
13945 * tracepoint.c (encode_source_string, tfile_write_status)
13946 (tfile_write_uploaded_tsv): Update.
13947
9c3d6531
TT
139482014-02-12 Tom Tromey <tromey@redhat.com>
13949
13950 * tracepoint.c: Include rsp-low.h.
13951 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13952 * remote.c: Include rsp-low.h.
13953 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13954 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13955 (remote_unescape_input): Move to common/rsp-low.c.
13956 * common/rsp-low.h: New file.
13957 * common/rsp-low.c: New file.
13958 * Makefile.in (SFILES): Add common/rsp-low.c.
13959 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13960 (COMMON_OBS): Add rsp-low.o.
13961 (rsp-low.o): New target.
13962
01fd3ea5
TT
139632014-02-12 Tom Tromey <tromey@redhat.com>
13964
13965 * utils.h: Include print-utils.h.
13966 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13967 (int_string, core_addr_to_string, core_addr_to_string_nz)
13968 (hex_string, hex_string_custom): Don't declare.
13969 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13970 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13971 (hex_string_custom, int_string, core_addr_to_string)
13972 (core_addr_to_string_nz, host_address_to_string): Move to
13973 common/print-utils.c.
13974 * common/print-utils.h: New file.
13975 * common/print-utils.c: New file
13976 * Makefile.in (SFILES): Add common/print-utils.c.
13977 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13978 (COMMON_OBS): Add print-utils.o.
13979 (print-utils.o): New target.
13980
9fb50108
TT
139812014-02-12 Tom Tromey <tromey@redhat.com>
13982
13983 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13984
0548b5db
MK
139852014-02-12 Mark Kettenis <kettenis@gnu.org>
13986
13987 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13988
493443a4
MK
139892014-02-12 Mark Kettenis <kettenis@gnu.org>
13990
13991 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13992 if a PT_IO ptrace request returns sucessfully but indicates that 0
13993 bytes were transferred.
13994
706d0883
PA
139952014-02-12 Pedro Alves <palves@redhat.com>
13996 Kevin Buettner <kevinb@redhat.com>
13997
13998 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13999 TYPE_INSTANCE_FLAG_CODE_SPACE.
14000
5caa2f0b
PA
140012014-02-12 Pedro Alves <palves@redhat.com>
14002
14003 * h8300-tdep.c (pseudo_from_raw_register)
14004 (raw_from_pseudo_register): New functions.
14005 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14006 them.
14007
76fd5f74
PA
140082014-02-12 Pedro Alves <palves@redhat.com>
14009
14010 * h8300-tdep.c (h8300_register_sim_regno): New function.
14011 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14012 gdbarch_register_sim_regno hook.
14013
8f008406
SA
140142014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14015
14016 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14017
195abc10
SA
140182014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14019
14020 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14021
93ffa5b9
MK
140222014-02-12 Mark Kettenis <kettenis@gnu.org>
14023
14024 * obsd-tdep.h (obsd_init_abi): New prototype.
14025 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14026 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14027 (obsd_init_abi): New functions.
14028 * i386obsd-tdep.c: Include "obsd-tdep.h".
14029 (i386obsd_init_abi): Call obsd_init_abi.
14030 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14031 (amd64obsd_init_abi): Call obsd_init_abi.
14032 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14033 obsd-tdep.c to gdb_target_obs.
14034
49caec94
JM
140352014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14036
14037 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14038 double float arguments to 16-byte in the argument slots.
14039
e1402065
DE
140402014-02-11 Doug Evans <xdje42@gmail.com>
14041
14042 * configure.ac: Don't crash if pkg-config is not found and guile
14043 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14044 in guile checks.
14045 * configure: Regenerate.
14046
edcc890f
YQ
140472014-02-11 Yao Qi <yao@codesourcery.com>
14048
14049 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14050 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14051 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14052 * gnu-nat.c (gnu_xfer_memory): Likewise.
14053 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14054 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14055 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14056 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14057
9b409511
YQ
140582014-02-11 Yao Qi <yao@codesourcery.com>
14059
14060 * target.h (enum target_xfer_error): Rename to ...
14061 (enum target_xfer_status): ... it. New. All users updated.
14062 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14063 New.
14064 (TARGET_XFER_STATUS_ERROR_P): New macro.
14065 (target_xfer_error_to_string): Remove declaration.
14066 (target_xfer_status_to_string): Declare.
14067 (target_xfer_partial_ftype): Adjust it.
14068 (struct target_ops) <to_xfer_partial>: Return
14069 target_xfer_status. Add argument xfered_len. Update
14070 comments.
14071 * target.c (target_xfer_error_to_string): Rename to ...
14072 (target_xfer_status_to_string): ... it. New. All callers
14073 updated.
14074 (target_read_live_memory): Likewise. Call target_xfer_partial
14075 instead of target_read.
14076 (memory_xfer_live_readonly_partial): Return
14077 target_xfer_status. Add argument xfered_len.
14078 (raw_memory_xfer_partial): Likewise.
14079 (memory_xfer_partial_1): Likewise.
14080 (memory_xfer_partial): Likewise.
14081 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14082 properly. Update debug message.
14083 (default_xfer_partial, current_xfer_partial): Likewise.
14084 (target_write_partial): Likewise.
14085 (target_read_partial): Likewise. All callers updated.
14086 (read_whatever_is_readable): Likewise.
14087 (target_write_with_progress): Likewise.
14088 (target_read_alloc_1): Likewise.
14089
14090 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14091 * auxv.c (procfs_xfer_auxv): Likewise.
14092 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14093 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14094 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14095 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14096 * corefile.c (read_memory): Adjust.
14097 * corelow.c (core_xfer_partial): Likewise.
14098 * ctf.c (ctf_xfer_partial): Likewise.
14099 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14100 updated.
14101 (darwin_xfer_partial): Likewise.
14102 * exec.c (section_table_xfer_memory_partial): Likewise. All
14103 callers updated.
14104 (exec_xfer_partial): Likewise.
14105 * exec.h (section_table_xfer_memory_partial): Update
14106 declaration.
14107 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14108 negative.
14109 (gnu_xfer_partial): Likewise.
14110 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14111 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14112 (ia64_hpux_xfer_solib_got): Likewise.
14113 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14114 type of 'partial_len' to ULONGEST.
14115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14116 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14117 (linux_nat_xfer_partial): Likewise.
14118 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14119 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14120 * monitor.c (monitor_xfer_memory): Likewise.
14121 (monitor_xfer_partial): Likewise.
14122 * procfs.c (procfs_xfer_partial): Likewise.
14123 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14124 * record-full.c (record_full_xfer_partial): Likewise.
14125 (record_full_core_xfer_partial): Likewise.
14126 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14127 (gdbsim_xfer_partial): Likewise.
14128 * remote.c (remote_write_bytes_aux): Likewise. All callers
14129 updated.
14130 (remote_write_bytes, remote_read_bytes): Likewise. All
14131 callers updated.
14132 (remote_flash_erase): Likewise. All callers updated.
14133 (remote_write_qxfer): Likewise. All callers updated.
14134 (remote_read_qxfer): Likewise. All callers updated.
14135 (remote_xfer_partial): Likewise.
14136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14137 (rs6000_xfer_shared_libraries): Likewise.
14138 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14139 (sol_thread_xfer_partial): Likewise.
14140 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14141 (sparc_xfer_partial): Likewise.
14142 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14143 updated.
14144 (spu_xfer_partial): Likewise.
14145 * spu-multiarch.c (spu_xfer_partial): Likewise.
14146 * tracepoint.c (tfile_xfer_partial): Likewise.
14147 * windows-nat.c (windows_xfer_memory): Likewise.
14148 (windows_xfer_shared_libraries): Likewise.
14149 (windows_xfer_partial): Likewise.
14150 * valprint.c: Replace 'target_xfer_error' with
14151 'target_xfer_status' in comments.
14152
a8e63083
JB
141532014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14154
14155 Checked in by Joel Brobecker <brobecker@adacore.com>.
14156 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14157
e86b67d3
JB
141582014-02-11 Joel Brobecker <brobecker@adacore.com>
14159
14160 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14161 function parameters.
14162
4b7d1f7f
WN
141632014-02-10 Will Newton <will.newton@linaro.org>
14164
14165 * elfread.c (elf_rel_plt_read): Look for a .got section if
14166 looking up .got.plt fails.
14167 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14168 on address passed to elf_gnu_ifunc_record_cache.
14169 (elf_gnu_ifunc_resolve_addr): Likewise.
14170 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14171
961842b2
JM
141722014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14173
14174 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14175 (X_RETTURN): New macro.
14176 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14177
14178 * sparc64-tdep.c (sparc64_init_abi): Hook
14179 sparc_in_function_epilogue_p.
14180
3f03e7b1
GB
141812014-02-10 Gary Benson <gbenson@redhat.com>
14182
14183 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14184 Rename name_matcher to symbol_matcher.
14185
96f861ef
GB
141862014-02-10 Gary Benson <gbenson@redhat.com>
14187
14188 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14189 Use expand_symtabs_file_matcher_ftype and
14190 expand_symtabs_symbol_matcher_ftype.
14191
ee01b665
JB
141922014-02-10 Joel Brobecker <brobecker@adacore.com>
14193
14194 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14195 (struct ada_symbol_cache): New.
14196 (ada_free_symbol_cache): Forward declare.
14197 (struct ada_pspace_data): New.
14198 (ada_pspace_data_handle): New static global.
14199 (get_ada_pspace_data, ada_pspace_data_cleanup)
14200 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14201 (cache_space, cache): Delete, now folded inside struct
14202 ada_pspace_data.
14203 (ada_get_symbol_cache): New function.
14204 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14205 implementation.
14206 (_initialize_ada_language): Remove initialization of cache_space.
14207 Move call to observer_attach_inferior_exit up, grouping it
14208 with the other observer registrations inside this function.
14209 Rename command to be more general. Add call to
14210 register_program_space_data_with_cleanup.
14211
143adbbf
JB
142122014-02-10 Joel Brobecker <brobecker@adacore.com>
14213
14214 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14215 ada_new_objfile_observer.
14216 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14217 (_initialize_tasks): Update uses of ada_new_objfile_observer
14218 and ada_tasks_normal_stop_observer.
14219
aa4fb036
JB
142202014-02-10 Joel Brobecker <brobecker@adacore.com>
14221
14222 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14223 returned by the 'Length attribute to integer.
14224
9dee8cc6
JB
142252014-02-10 Joel Brobecker <brobecker@adacore.com>
14226
14227 * ada-lang.c (_initialize_ada_language): Initialize
14228 cache_space obstack.
14229
3d9434b5
JB
142302014-02-10 Joel Brobecker <brobecker@adacore.com>
14231
14232 * ada-lang.c (HASH_SIZE): New macro.
14233 (struct cache_entry): New type.
14234 (cache_space, cache): New static globals.
14235 (ada_clear_symbol_cache, find_entry): New functions.
14236 (lookup_cached_symbol, cache_symbol): Implement.
14237 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14238 (_initialize_ada_language): Attach ada_new_objfile_observer
14239 and ada_free_objfile_observer.
14240
f0c5f9b2
JB
142412014-02-10 Joel Brobecker <brobecker@adacore.com>
14242
14243 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14244 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14245 struct block * parameter.
14246 (ada_lookup_symbol_list_worker): Constify local variable "block".
14247 Remove cast which is no longer necessary.
14248
ed3ef339
DE
142492014-02-10 Doug Evans <xdje42@gmail.com>
14250
14251 Add Guile as an extension language.
14252 * NEWS: Mention Guile scripting.
14253 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14254 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14255 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14256 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14257 (CLIBS): Add GUILE_LIBS.
14258 (install-guile): New rule.
14259 (guile.o): New rule.
14260 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14261 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14262 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14263 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14264 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14265 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14266 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14267 * configure.ac: New option --with-guile.
14268 * configure: Regenerate.
14269 * config.in: Regenerate.
14270 * auto-load.c: Remove #include "python/python.h". Add #include
14271 "gdb/section-scripts.h".
14272 (source_section_scripts): Handle Guile scripts.
14273 (_initialize_auto_load): Add name of Guile objfile script to
14274 scripts-directory help text.
14275 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14276 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14277 (struct breakpoint): New member scm_bp_object.
14278 * defs.h (enum command_control_type): New value guile_control.
14279 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14280 "extension.h".
14281 (show_user): Update comment.
14282 (_initialize_cli_cmds): Update help text for "show user". Update help
14283 text for max-user-call-depth.
14284 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14285 "extension.h".
14286 (multi_line_command_p): Add guile_control.
14287 (print_command_lines): Handle guile_control.
14288 (execute_control_command, recurse_read_control_structure): Ditto.
14289 (process_next_line): Recognize "guile" commands.
14290 * disasm.c (gdb_disassemble_info): Make non-static.
14291 * disasm.h: #include "dis-asm.h".
14292 (struct gdbarch): Add forward decl.
14293 (gdb_disassemble_info): Declare.
14294 * extension.c: #include "guile/guile.h".
14295 (extension_languages): Add guile.
14296 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14297 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14298 * gdbtypes.c (get_unsigned_type_max): New function.
14299 (get_signed_type_minmax): New function.
14300 * gdbtypes.h (get_unsigned_type_max): Declare.
14301 (get_signed_type_minmax): Declare.
14302 * guile/README: New file.
14303 * guile/guile-internal.h: New file.
14304 * guile/guile.c: New file.
14305 * guile/guile.h: New file.
14306 * guile/scm-arch.c: New file.
14307 * guile/scm-auto-load.c: New file.
14308 * guile/scm-block.c: New file.
14309 * guile/scm-breakpoint.c: New file.
14310 * guile/scm-disasm.c: New file.
14311 * guile/scm-exception.c: New file.
14312 * guile/scm-frame.c: New file.
14313 * guile/scm-gsmob.c: New file.
14314 * guile/scm-iterator.c: New file.
14315 * guile/scm-lazy-string.c: New file.
14316 * guile/scm-math.c: New file.
14317 * guile/scm-objfile.c: New file.
14318 * guile/scm-ports.c: New file.
14319 * guile/scm-pretty-print.c: New file.
14320 * guile/scm-safe-call.c: New file.
14321 * guile/scm-string.c: New file.
14322 * guile/scm-symbol.c: New file.
14323 * guile/scm-symtab.c: New file.
14324 * guile/scm-type.c: New file.
14325 * guile/scm-utils.c: New file.
14326 * guile/scm-value.c: New file.
14327 * guile/lib/gdb.scm: New file.
14328 * guile/lib/gdb/boot.scm: New file.
14329 * guile/lib/gdb/experimental.scm: New file.
14330 * guile/lib/gdb/init.scm: New file.
14331 * guile/lib/gdb/iterator.scm: New file.
14332 * guile/lib/gdb/printing.scm: New file.
14333 * guile/lib/gdb/types.scm: New file.
14334 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14335 (VPATH): Add $(GUILE_SRCDIR).
14336 (GUILE_DIR): New variable.
14337 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14338 (all): Add stamp-guile dependency.
14339 (stamp-guile): New rule.
14340 (clean-guile, install-guile, uninstall-guile): New rules.
14341 (install-only): Add install-guile dependency.
14342 (uninstall): Add uninstall-guile dependency.
14343 (clean): Add clean-guile dependency.
14344
ac020ec5
DE
143452014-02-09 Doug Evans <xdje42@gmail.com>
14346
14347 Revert this patch (which I approved, mea culpa).
14348
14349 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14350
14351 * Makefile.in (all-lib): Remove.
14352 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14353
2a081c59
JK
143542014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14355
14356 Fix Python stack corruption.
14357 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14358 gdb_py_longest.
14359
0a6bd22d
MK
143602014-02-08 Mark Kettenis <kettenis@gnu.org>
14361
14362 * Makefile.in (all-lib): Remove.
14363 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14364
1a860409
DE
143652014-02-07 Doug Evans <dje@google.com>
14366
14367 * extension-priv.h (extension_language_script_ops): Add comment.
14368 (extension_language_ops): Add comment.
caf5a491 14369 (active_ext_lang_state): Fix typo in comment.
1a860409 14370
d137e6dc
PA
143712014-02-07 Pedro Alves <palves@redhat.com>
14372
0dcb32c3 14373 PR breakpoints/16292
d137e6dc
PA
14374 * infrun.c (handle_signal_stop) <signal arrives while stepping
14375 over a breakpoint>: Switch back to the stepping thread.
14376
ce6d0892
YQ
143772014-02-07 Yao Qi <yao@codesourcery.com>
14378
14379 * target.c (target_xfer_partial): Return zero if LEN is zero.
14380
2ed4b548
YQ
143812014-02-07 Yao Qi <yao@codesourcery.com>
14382
14383 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14384 (ld_so_xfer_auxv): Likewise.
14385 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14386 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14387 * corelow.c (core_xfer_partial): Likewise.
14388 * ctf.c (ctf_xfer_partial): Likewise.
14389 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14390 (darwin_xfer_partial): Likewise.
14391 * exec.c (exec_xfer_partial): Likewise.
14392 * gnu-nat.c (gnu_xfer_partial): Likewise.
14393 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14394 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14395 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14396 * linux-nat.c (linux_xfer_siginfo): Likewise.
14397 (linux_proc_xfer_spu): Likewise.
14398 * procfs.c (procfs_xfer_partial): Likewise.
14399 * record-full.c (record_full_xfer_partial): Likewise.
14400 (record_full_core_xfer_partial): Likewise.
14401 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14402 * remote.c (remote_write_qxfer): Likewise.
14403 (remote_write_qxfer, remote_read_qxfer): Likewise.
14404 (remote_xfer_partial): Likewise.
14405 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14406 (rs6000_xfer_shared_libraries): Likewise.
14407 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14408 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14409 (spu_xfer_partial): Likewise.
14410 * target.c (memory_xfer_partial_1): Likewise.
14411 * tracepoint.c (tfile_xfer_partial): Likewise.
14412 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14413 (windows_xfer_partial): Likewise.
14414
c09f20e4
YQ
144152014-02-07 Yao Qi <yao@codesourcery.com>
14416
14417 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14418 comments.
14419 (core_xfer_shared_libraries_aix): Likewise.
14420 * gdbarch.c, gdbarch.h: Regenerated.
14421 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14422 ULONGEST. Change 'len_avail' type to ULONGEST.
14423 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14424 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14425 declaration.
14426 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14427
8635b3bf
YQ
144282014-02-07 Yao Qi <yao@codesourcery.com>
14429
14430 * corefile.c (memory_error): Get 'exception' from ERR and pass
14431 'exception' to throw_error.
14432
6dddc817
DE
144332014-02-06 Doug Evans <xdje42@gmail.com>
14434
14435 * configure.ac (libpython checking): Remove all but python.o from
14436 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14437 * configure: Regenerate.
14438
14439 * Makefile.in (SFILES): Add extension.c.
14440 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14441 (COMMON_OBS): Add extension.o.
14442 * extension.h: New file.
14443 * extension-priv.h: New file.
14444 * extension.c: New file.
14445
14446 * python/python-internal.h: #include "extension.h".
14447 (gdbpy_auto_load_enabled): Declare.
14448 (gdbpy_apply_val_pretty_printer): Declare.
14449 (gdbpy_apply_frame_filter): Declare.
14450 (gdbpy_preserve_values): Declare.
14451 (gdbpy_breakpoint_cond_says_stop): Declare.
14452 (gdbpy_breakpoint_has_cond): Declare.
14453 (void source_python_script_for_objfile): Delete.
14454 * python/python.c: #include "extension-priv.h".
14455 Delete inclusion of "observer.h".
14456 (extension_language_python): Moved here and renamed from
14457 script_language_python in py-auto-load.c.
14458 Redefined to be of type extension_language_defn.
14459 (python_extension_script_ops): New global.
14460 (python_extension_ops): New global.
14461 (struct python_env): New member previous_active.
14462 (restore_python_env): Call restore_active_ext_lang.
14463 (ensure_python_env): Call set_active_ext_lang.
14464 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14465 New arg extlang.
14466 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14467 New arg extlang.
14468 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14469 New arg extlang.
14470 (gdbpy_eval_from_control_command): Renamed from
14471 eval_python_from_control_command, made static. New arg extlang.
14472 (gdbpy_source_script) Renamed from source_python_script, made static.
14473 New arg extlang.
14474 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14475 result to int. New arg extlang.
14476 (gdbpy_source_objfile_script): Renamed from
14477 source_python_script_for_objfile, made static. New arg extlang.
14478 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14479 static. New args extlang, extlang_printers. Change result type to
14480 "void".
14481 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14482 static. New arg extlang. Rename arg printers to extlang_printers
14483 and change type to ext_lang_type_printers *.
14484 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14485 static. Replace argument arg with extlang, extlang_printers.
14486 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14487 (!HAVE_PYTHON, source_python_script): Delete.
14488 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14489 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14490 (!HAVE_PYTHON, start_type_printers): Delete.
14491 (!HAVE_PYTHON, apply_type_printers): Delete.
14492 (!HAVE_PYTHON, free_type_printers): Delete.
14493 (_initialize_python): Delete call to observer_attach_before_prompt.
14494 (finalize_python): Set/restore active extension language.
14495 (gdbpy_finish_initialization) Renamed from
14496 finish_python_initialization, made static. New arg extlang.
14497 (gdbpy_initialized): New function.
14498 * python/python.h: #include "extension.h". Delete #include
14499 "value.h", "mi/mi-cmds.h".
14500 (extension_language_python): Declare.
14501 (GDBPY_AUTO_FILE_NAME): Delete.
14502 (enum py_bt_status): Moved to extension.h and renamed to
14503 ext_lang_bt_status.
14504 (enum frame_filter_flags): Moved to extension.h.
14505 (enum py_frame_args): Moved to extension.h and renamed to
14506 ext_lang_frame_args.
14507 (finish_python_initialization): Delete.
14508 (eval_python_from_control_command): Delete.
14509 (source_python_script): Delete.
14510 (apply_val_pretty_printer): Delete.
14511 (apply_frame_filter): Delete.
14512 (preserve_python_values): Delete.
14513 (gdbpy_script_language_defn): Delete.
14514 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14515 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14516
14517 * auto-load.c: #include "extension.h".
14518 (GDB_AUTO_FILE_NAME): Delete.
14519 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14520 (script_language_gdb): Delete, moved to extension.c and renamed to
14521 extension_language_gdb.
14522 (source_gdb_script_for_objfile): Delete.
14523 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14524 (loaded_script): Change type of language member to
14525 struct extension_language_defn *.
14526 (init_loaded_scripts_info): Initialize
14527 unsupported_script_warning_printed.
14528 (maybe_add_script): Make static. Change type of language arg to
14529 struct extension_language_defn *.
14530 (clear_section_scripts): Reset unsupported_script_warning_printed.
14531 (auto_load_objfile_script_1): Rewrite to use extension language API.
14532 (auto_load_objfile_script): Make public. Remove support-compiled-in
14533 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14534 (source_section_scripts): Rewrite to use extension language API.
14535 (load_auto_scripts_for_objfile): Rewrite to use
14536 auto_load_scripts_for_objfile.
14537 (collect_matching_scripts_data): Change type of language member to
14538 struct extension_language_defn *.
14539 (auto_load_info_scripts): Change type of language arg to
14540 struct extension_language_defn *.
14541 (unsupported_script_warning_print): New function.
14542 (script_not_found_warning_print): Make static.
14543 (_initialize_auto_load): Rewrite construction of scripts-directory
14544 help.
14545 * auto-load.h (struct objfile): Add forward decl.
14546 (struct script_language): Delete.
14547 (struct auto_load_pspace_info): Add forward decl.
14548 (struct extension_language_defn): Add forward decl.
14549 (maybe_add_script): Delete.
14550 (auto_load_objfile_script): Declare.
14551 (script_not_found_warning_print): Delete.
14552 (auto_load_info_scripts): Update prototype.
14553 (auto_load_gdb_scripts_enabled): Declare.
14554 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14555 auto_load_python_scripts_enabled and made public.
14556 (script_language_python): Delete, moved to python.c.
14557 (gdbpy_script_language_defn): Delete.
14558 (info_auto_load_python_scripts): Update to use
14559 extension_language_python.
14560
14561 * breakpoint.c (condition_command): Replace call to
14562 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14563 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14564 with call to breakpoint_ext_lang_cond_says_stop.
14565 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14566 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14567 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14568 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14569 New arg slang.
14570 (local_setattro): Print name of extension language with existing
14571 stop condition.
14572
14573 * valprint.c (val_print, value_print): Update to call
14574 apply_ext_lang_val_pretty_printer.
14575 * cp-valprint.c (cp_print_value): Update call to
14576 apply_ext_lang_val_pretty_printer.
14577 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14578 (gdbpy_apply_val_pretty_printer): Renamed from
14579 apply_val_pretty_printer. New arg extlang.
14580 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14581
14582 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14583 extension language API.
14584 * cli/cli-script.c (execute_control_command): Update to call
14585 eval_ext_lang_from_control_command.
14586
14587 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14588 enum ext_lang_bt_status values. Update call to
14589 apply_ext_lang_frame_filter.
14590 (mi_cmd_stack_list_locals): Ditto.
14591 (mi_cmd_stack_list_args): Ditto.
14592 (mi_cmd_stack_list_variables): Ditto.
14593 * mi/mi-main.c: Delete #include "python/python-internal.h".
14594 Add #include "extension.h".
14595 (mi_cmd_list_features): Replace reference to python internal variable
14596 gdb_python_initialized with call to ext_lang_initialized_p.
14597
14598 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14599 Update to use enum ext_lang_frame_args. Update to call
14600 apply_ext_lang_frame_filter.
14601 * python/py-framefilter.c (extract_sym): Update to use enum
14602 ext_lang_bt_status.
14603 (extract_value, py_print_type, py_print_value): Ditto.
14604 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14605 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14606 (py_print_frame): Ditto.
14607 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14608 New arg extlang. Update to use enum ext_lang_bt_status.
14609
14610 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14611 finish_python_initialization. Replace with call to
14612 finish_ext_lang_initialization.
14613
14614 * typeprint.c (do_free_global_table): Update to call
14615 free_ext_lang_type_printers.
14616 (create_global_typedef_table): Update to call
14617 start_ext_lang_type_printers.
14618 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14619 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14620 (type_print_options): Change type of global_printers from "void *"
14621 to "struct ext_lang_type_printers *".
14622
14623 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14624 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14625 (gdbpy_preserve_values): Renamed from preserve_python_values.
14626 New arg extlang.
14627 (!HAVE_PYTHON, preserve_python_values): Delete.
14628
14629 * utils.c (quit_flag): Delete, moved to extension.c.
14630 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14631 extension.c.
14632
14633 * eval.c: Delete #include "python/python.h".
14634 * main.c: Delete #include "python/python.h".
14635
14636 * defs.h: Update comment.
14637
6af79985
JB
146382014-02-06 Joel Brobecker <brobecker@adacore.com>
14639
14640 GDB 7.7 released.
14641
12c5175d
MK
146422014-02-05 Mark Kettenis <kettenis@gnu.org>
14643
14644 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14645 defined.
14646
8dc5b319
YQ
146472014-02-05 Yao Qi <yao@codesourcery.com>
14648
14649 * remote.c (remote_pass_signals): Remove local 'buf' and use
14650 rs->buf.
14651 (remote_program_signals): Likewise.
14652
de7b2893
YQ
146532014-02-05 Yao Qi <yao@codesourcery.com>
14654
14655 * ctf.c: Include "inferior.h" and "gdbthread.h".
14656 (CTF_PID): A new macro.
14657 (ctf_open): Call inferior_appeared and add_thread_silent.
14658 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14659 (ctf_thread_alive): New function.
14660 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14661
66d032ac
YQ
146622014-02-05 Yao Qi <yao@codesourcery.com>
14663
14664 Revert this patch:
14665
14666 2013-05-24 Yao Qi <yao@codesourcery.com>
14667
14668 * tracepoint.c (TFILE_PID): Remove.
14669 (tfile_open): Don't add thread and inferior.
14670 (tfile_close): Don't set 'inferior_ptid'. Don't call
14671 exit_inferior_silent.
14672 (tfile_thread_alive): Remove.
14673 (init_tfile_ops): Don't set field 'to_thread_alive' of
14674 tfile_ops.
14675
f4ccffad
CE
146762014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14677
14678 * remote.c (remote_start_remote): Call remote_check_symbols even
14679 if only symbol-file (not file) has been given.
14680
591a12a1
UW
146812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14682
14683 * gdbarch.sh (skip_entrypoint): New callback.
14684 * gdbarch.c, gdbarch.h: Regenerate.
14685 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14686 * infrun.c (fill_in_stop_func): Likewise.
14687 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14688 (ppc_elfv2_elf_make_msymbol_special): New function.
14689 (ppc_elfv2_skip_entrypoint): Likewise.
14690 (ppc_linux_init_abi): Install them for ELFv2.
14691
cc0e89c5
UW
146922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14693
14694 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14695 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14696 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14697 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14698 structures returned in GPRs.
14699
52f548e4
UW
147002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14701
14702 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14703 offset to the stack parameter list for the ELFv2 ABI.
14704
d4094b6a
UW
147052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14706
14707 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14708 set_gdbarch_convert_from_func_ptr_addr and
14709 set_gdbarch_elf_make_msymbol_special for ELFv1.
14710 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14711 function descriptors on ELFv1.
14712 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14713 set up r12 at function entry.
14714
cd453cd0
UW
147152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14716
14717 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14718 (struct gdbarch_tdep): New member elf_abi.
14719
14720 * rs6000-tdep.c: Include "elf/ppc64.h".
14721 (rs6000_gdbarch_init): Detect ELF ABI version.
14722
0ff3e01f
UW
147232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14724
14725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14726 within a register pair holding a DFP 128-bit value on little-endian.
14727 (ppc64_sysv_abi_return_value_base): Likewise.
14728 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14729 (dfp_pseudo_register_write): Likewise.
14730
5b757e5d
UW
147312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14732
14733 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14734 offset on little-endian when passing _Decimal32.
14735 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14736
084ee545
UW
147372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14738
14739 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14740 of the overlapped FP register within the VSX register on little-
14741 endian platforms.
14742 (efpr_pseudo_register_write): Likewise.
14743
d63167af
UW
147442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14745
14746 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14747 offset on little-endian when passing small structures.
14748
e765b44c
UW
147492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14750
14751 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14752 (struct ppc64_sysv_argpos): New data structure.
14753 (ppc64_sysv_abi_push_float): Remove.
14754 (ppc64_sysv_abi_push_val): New function.
14755 (ppc64_sysv_abi_push_integer): Likewise.
14756 (ppc64_sysv_abi_push_freg): Likewise.
14757 (ppc64_sysv_abi_push_vreg): Likewise.
14758 (ppc64_sysv_abi_push_param): Likewise.
14759 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14760 (ppc64_sysv_abi_return_value_base): New function.
14761 (ppc64_sysv_abi_return_value): Refactor to use it.
14762
36c24d95
UW
147632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14764
14765 * NEWS: Document new target powerpc64le-*-linux*.
14766
26fd9228
MK
147672014-02-04 Mark Kettenis <kettenis@gnu.org>
14768
14769 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14770 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14771 core dumps.
14772 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14773 register set used in ELF core dumps. Add floating-point register set.
14774
c5bb7362
KB
147752014-02-03 Kevin Buettner <kevinb@redhat.com>
14776
74228e77 14777 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14778 dwarf2_to_gdb[] table using symbolic constants. Adjust
14779 penultimate entry from number representing the PC register
14780 to symbolic constant representing the MDR register. Add
14781 constant for the PC register to the end of the table.
14782
af09351e
MK
147832014-02-03 Mark Kettenis <kettenis@gnu.org>
14784
14785 * bsd-kvm.c: Include <sys/param.h>
14786
8507e05d
MK
147872014-02-03 Mark Kettenis <kettenis@gnu.org>
14788
14789 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14790
ae56bfb8
JB
147912014-01-31 Joel Brobecker <brobecker@adacore.com>
14792
14793 * ada-lang.h (clear_ada_sym_cache): Delete.
14794
718ee4dc
UW
147952014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14796
14797 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14798
401e27fd
JM
147992014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14800
14801 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14802 the sigreturn register save area only if the syscall is
14803 sigreturn.
14804
a7c88acd
JB
148052014-01-29 Joel Brobecker <brobecker@adacore.com>
14806
14807 * valops.c (value_slice): Minor reformatting.
14808
fa0079ea
UW
148092014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14810
14811 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14812
c6044dd1
JB
148132014-01-28 Joel Brobecker <brobecker@adacore.com>
14814
14815 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14816 New static globals.
14817 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14818 (ada_ignore_descriptive_types_p): New static global.
14819 (find_parallel_type_by_descriptive_type): Return immediately
14820 if ada_ignore_descriptive_types_p is set.
14821 (_initialize_ada_language): Register new commands "maintenance
14822 set ada", "maintenance show ada", "maintenance set ada
14823 ignore-descriptive-types" and "maintenance show ada
14824 ignore-descriptive-types".
14825 * NEWS: Add entry for new "maint ada set/show
14826 ignore-descriptive-types" commands.
14827
568e808b
MM
148282014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14829
14830 * record-btrace.c (record_btrace_close): Call btrace_teardown
14831 for all threads.
14832
467d141b
JB
148332014-01-27 Joel Brobecker <brobecker@adacore.com>
14834
14835 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14836 "ui-out.h".
14837
fb151210
JB
148382014-01-27 Joel Brobecker <brobecker@adacore.com>
14839
14840 * ada-typeprint (type_is_full_subrange_of_target_type):
14841 New function.
14842 (print_range): Add parameter bounds_prefered_p. If not set,
14843 try printing range types using the name of their base type.
14844 (print_range_type): Add parameter bounds_prefered_p.
14845 Use it in call to print_range.
14846 (print_array_type, ada_print_type): Update calls to print_range
14847 and print_range_type.
14848
aba02109
JB
148492014-01-27 Joel Brobecker <brobecker@adacore.com>
14850
14851 * ada-typeprint.c (print_array_type, print_choices, print_range)
14852 (print_range_bound, print_dynamic_range_bound, print_range_type):
14853 Remove declaration.
14854
e62e21fd
JB
148552014-01-27 Joel Brobecker <brobecker@adacore.com>
14856
14857 * ada-typeprint.c (print_range): Add missing empty line
14858 after local declaration.
14859
859cf5d1
JB
148602014-01-27 Joel Brobecker <brobecker@adacore.com>
14861
14862 * ada-valprint.c (print_optional_low_bound): Get index_type's
14863 target type for as long as it is a TYPE_CODE_RANGE.
14864
25790f6f
JB
148652014-01-27 Joel Brobecker <brobecker@adacore.com>
14866
14867 * procfs.c (procfs_make_note_section): Remove assertion and
14868 associated comment.
14869
6b6aa828
YQ
148702014-01-24 Yao Qi <yao@codesourcery.com>
14871
14872 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14873 * corelow.c (get_core_siginfo): Likewise.
14874
5d6df423
YQ
148752014-01-24 Yao Qi <yao@codesourcery.com>
14876
14877 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14878 ULONGEST. Don't check 'len' is negative.
14879 (remote_write_bytes): Change type of 'len' to ULONGEST.
14880
83b645b8
TT
148812014-01-23 Tom Tromey <tromey@redhat.com>
14882
14883 PR python/16485:
14884 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14885 Handle exception from frame.block.
14886 (FrameVars.fetch_frame_locals): Likewise.
14887
0740f8d8
TT
148882014-01-23 Tom Tromey <tromey@redhat.com>
14889
14890 PR python/16487:
14891 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14892 on a NULL pointer. Move "goto error" to correct place.
14893
21909fa1
TT
148942014-01-23 Tom Tromey <tromey@redhat.com>
14895
14896 PR python/16491:
14897 * python/py-framefilter.c (apply_frame_filter): Call
14898 ensure_python_env after computing gdbarch.
14899
17fde6d0
YQ
149002014-01-23 Yao Qi <yao@codesourcery.com>
14901
14902 * target.c (raw_memory_xfer_partial): Change argument type
14903 from void * to gdb_byte *.
14904 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14905
87ce2a04
DE
149062014-01-22 Doug Evans <dje@google.com>
14907
14908 New gdbserver option --debug-format=timestamp.
14909 * NEWS: Mention it.
14910
237b092b
AA
149112014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14912
14913 * syscalls/s390x-linux.xml: New file.
14914 * syscalls/s390-linux.xml: New file.
14915 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14916 (XML_SYSCALL_FILENAME_S390X): Likewise.
14917 (op_svc): New enum value for SVC opcode.
14918 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14919 (s390_linux_get_syscall_number): New function.
14920 (s390_gdbarch_init): Register '*get_syscall_number' and the
14921 syscall xml file name.
14922 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14923 "s390-linux.xml" and "s390x-linux.xml".
14924 * NEWS: Announce new feature.
14925
54bff650
BS
149262014-01-22 Baruch Siach <baruch@tkos.co.il>
14927
14928 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14929
14e361d7
PA
149302014-01-22 Pedro Alves <palves@redhat.com>
14931
14932 * xtensa-config.c: Include defs.h.
14933
46bbb3ed
JB
149342014-01-22 Joel Brobecker <brobecker@adacore.com>
14935
14936 * common/common-utils.h: Add "ARI:" comment beside __func__
14937 reference.
14938
3a80edfc
JB
149392014-01-22 Joel Brobecker <brobecker@adacore.com>
14940
14941 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14942 documentation a bit.
14943
4869db5e
RM
149442014-01-21 Roland McGrath <mcgrathr@google.com>
14945
14946 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14947 * configure: Regenerate.
14948 * aclocal.m4: Regenerate.
14949 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14950 New substituted variables.
14951 (install-strip): New target.
14952 (INSTALL_SCRIPT): New substituted variable.
14953 (FLAGS_TO_PASS): Add it.
14954 (install-only): Use $(INSTALL_SCRIPT) rather than
14955 $(INSTALL_PROGRAM) for gcore.
14956
9ea4267d
TT
149572014-01-20 Tom Tromey <tromey@redhat.com>
14958
14959 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14960 together.
14961
1f2bdf09
TT
149622014-01-20 Tom Tromey <tromey@redhat.com>
14963
14964 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14965 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14966 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14967 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14968 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14969 (struct cmd_list_element) <flags>: Remove.
14970 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14971 doc_allocated>: New fields.
14972 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14973 bitfields.
14974 * maint.c (maintenance_do_deprecate): Update.
14975 * top.c (execute_command): Update.
14976
e671835b
BS
149772014-01-20 Baruch Siach <baruch@tkos.co.il>
14978
14979 * xtensa-linux-nat.c: Include asm/ptrace.h.
14980
50367cd2
IB
149812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14982
14983 * Makefile.in (SFILES): Add d-support.c.
14984 (COMMON_OBS): Add d-support.o.
14985 * d-lang.h (d_parse_symbol): Add comment, now defined in
14986 d-support.c.
14987 * d-lang.c (parse_call_convention)
14988 (parse_attributes, parse_function_types)
14989 (parse_function_args, parse_type, parse_identifier)
14990 (call_convention_p, d_parse_symbol): Move functions to ...
14991 * d-support.c: ... New file.
14992
ec9f644a
IB
149932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14994
14995 * d-lang.h (d_parse_symbol): Add declaration.
14996 * d-lang.c (extract_identifiers)
14997 (extract_type_info): Remove functions.
14998 (parse_call_convention, parse_attributes)
14999 (parse_function_types, parse_function_args)
15000 (parse_type, parse_identifier, call_convention_p)
15001 (d_parse_symbol): New functions.
15002 (d_demangle): Use d_parse_symbol to demangle D symbols.
15003
94b1b47e
IB
150042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15005
15006 * d-lang.h (struct builtin_d_type): New data type.
15007 (builtin_d_type): Add declaration.
15008 * d-lang.c (d_language_arch_info, build_d_types)
15009 (builtin_d_type): New functions.
15010 (enum d_primitive_types): New data type.
15011 (d_language_defn): Change c_language_arch_info to
15012 d_language_arch_info.
15013 (d_type_data): New static variable.
15014 (_initialize_d_language): Initialize d_type_data.
15015
63778547
IB
150162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15017
15018 * d-lang.h (d_main_name): Add declaration.
15019 * d-lang.c (d_main_name): New function.
15020 * symtab.c (find_main_name): Add call to d_main_name.
15021
3271ba66
IB
150222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15023
15024 * d-lang.c (d_language_defn): Change macro_expansion_c to
15025 macro_expansion_no.
15026
d36b3012
IB
150272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15028
15029 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15030
c90a6fb7
SDJ
150312014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15032
15033 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15034 gdb_exception" declaration.
15035 * remote.c (getpkt_or_notif_sane): Likewise.
15036
749234e5
DE
150372014-01-17 Doug Evans <dje@google.com>
15038
15039 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15040 function, contents of dirnames_to_char_ptr_vec_append moved here.
15041 (delim_string_to_char_ptr_vec): New function.
15042 (dirnames_to_char_ptr_vec_append): Rewrite.
15043 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15044
df049a58
DE
150452014-01-17 Doug Evans <dje@google.com>
15046
15047 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15048 and moved here ...
15049 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15050 #include "common-utils.h".
15051 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15052 * common/vec.h (VEC_ASSERT_PASS): Update.
15053 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15054 (MACH_CHECK_ERROR): Update.
15055
69f97648
SM
150562014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15057
15058 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15059 comments.
15060 * gdbarch.h: Regenerate.
15061
98b1cfdc
TT
150622014-01-16 Tom Tromey <tromey@redhat.com>
15063
15064 * value.c (struct value) <regnum>: Move earlier.
15065
77a19445
TT
150662014-01-16 Tom Tromey <tromey@redhat.com>
15067
15068 * remote.c (extended_remote_create_inferior): Rename from
15069 extended_remote_create_inferior_1. Add "ops" argument. Remove
15070 old implementation.
15071
62261490
PA
150722014-01-16 Pedro Alves <palves@redhat.com>
15073
15074 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15075 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15076 the backchain.
15077
4d65956b
DE
150782014-01-16 Doug Evans <dje@google.com>
15079
15080 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15081
52834460
MM
150822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15083
15084 * btrace.h (btrace_thread_flag): New.
15085 (struct btrace_thread_info) <flags>: New.
15086 * record-btrace.c (record_btrace_resume_thread)
15087 (record_btrace_find_thread_to_move, btrace_step_no_history)
15088 (btrace_step_stopped, record_btrace_start_replaying)
15089 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15090 (record_btrace_find_resume_thread): New.
15091 (record_btrace_resume, record_btrace_wait): Extend.
15092 (record_btrace_can_execute_reverse): New.
15093 (record_btrace_open): Fail in non-stop mode.
15094 (record_btrace_set_replay): Split into this, ...
15095 (record_btrace_stop_replaying): ... this, ...
15096 (record_btrace_clear_histories): ... and this.
15097 (init_record_btrace_ops): Init to_can_execute_reverse.
15098 * NEWS: Announce it.
15099
118e6252
MM
151002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15101
15102 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15103 (forward_target_decr_pc_after_break)
15104 (target_decr_pc_after_break): New.
15105 * target.c (forward_target_decr_pc_after_break)
15106 (target_decr_pc_after_break): New.
15107 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15108 instead of gdbarch_decr_pc_after_break.
15109 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15110 instead of gdbarch_decr_pc_after_break.
15111 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15112 instead of gdbarch_decr_pc_after_break.
15113 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15114 instead of gdbarch_decr_pc_after_break.
15115 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15116 instead of gdbarch_decr_pc_after_break.
15117 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15118 instead of gdbarch_decr_pc_after_break.
15119
6e07b1d2
MM
151202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15121
15122 * btrace.c: Include regcache.h.
15123 (btrace_add_pc): New.
15124 (btrace_enable): Call btrace_add_pc.
15125 (btrace_is_empty): New.
15126 * btrace.h (btrace_is_empty): New.
15127 * record-btrace.c (require_btrace, record_btrace_info): Call
15128 btrace_is_empty.
15129
969c39fb
MM
151302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15131
15132 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15133 Support delta reads.
15134 (linux_disable_btrace): Change return type.
15135 * common/linux-btrace.h (linux_read_btrace): Change parameters
15136 and return type to allow error reporting. Update users.
15137 (linux_disable_btrace): Change return type. Update users.
15138 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15139 New.
15140 (btrace_error): New.
15141 (btrace_block) <begin>: Comment on BEGIN == 0.
15142 * btrace.c (btrace_compute_ftrace): Start from the end of
15143 the current trace.
15144 (btrace_stitch_trace, btrace_clear_history): New.
15145 (btrace_fetch): Read delta trace, return if replaying.
15146 (btrace_clear): Move clear history code to btrace_clear_history.
15147 (parse_xml_btrace): Throw an error if parsing failed.
15148 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15149 and return type to allow error reporting.
15150 (target_read_btrace): Change parameters and return type to allow
15151 error reporting.
15152 * target.c (target_read_btrace): Update.
15153 * remote.c (remote_read_btrace): Support delta reads. Pass
15154 errors on.
15155 * NEWS: Announce it.
15156
0b722aec
MM
151572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15158
15159 * record.h (record_btrace_frame_unwind)
15160 (record_btrace_tailcall_frame_unwind): New declarations.
15161 * dwarf2-frame: Include record.h
15162 (dwarf2_frame_cfa): Throw an error for btrace frames.
15163 * record-btrace.c: Include hashtab.h.
15164 (btrace_get_bfun_name): New.
15165 (btrace_call_history): Call btrace_get_bfun_name.
15166 (struct btrace_frame_cache): New.
15167 (bfcache): New.
15168 (bfcache_hash, bfcache_eq, bfcache_new): New.
15169 (btrace_get_frame_function): New.
15170 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15171 (record_btrace_frame_this_id): Compute own id.
15172 (record_btrace_frame_prev_register): Provide PC, throw_error
15173 for all other registers.
15174 (record_btrace_frame_sniffer): Detect btrace frames.
15175 (record_btrace_tailcall_frame_sniffer): New.
15176 (record_btrace_frame_dealloc_cache): New.
15177 (record_btrace_frame_unwind): Add new functions.
15178 (record_btrace_tailcall_frame_unwind): New.
15179 (_initialize_record_btrace): Allocate cache.
15180 * btrace.c (btrace_clear): Call reinit_frame_cache.
15181 * NEWS: Announce it.
15182
066ce621
MM
151832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15184
15185 * record-btrace.c (record_btrace_set_replay)
15186 (record_btrace_goto_begin, record_btrace_goto_end)
15187 (record_btrace_goto): New.
15188 (init_record_btrace_ops): Initialize them.
15189 * NEWS: Announce it.
15190
e2887aa3
MM
151912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15192
15193 * record-btrace.c (record_btrace_find_new_threads)
15194 (record_btrace_thread_alive): New.
15195 (init_record_btrace_ops): Initialize to_find_new_threads and
15196 to_thread_alive.
15197
b2f4cfde
MM
151982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15199
15200 * record-btrace.c (record_btrace_resume): New.
15201 (record_btrace_wait): New.
15202 (init_record_btrace_ops): Initialize to_wait and to_resume.
15203
633785ff
MM
152042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15205
15206 * record-btrace.c (record_btrace_xfer_partial)
15207 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15208 (record_btrace_allow_memory_access): New.
15209 (init_record_btrace_ops): Initialize new methods.
15210 * target.c (raw_memory_xfer_partial): Bail out if target reports
15211 that this memory is not available.
15212
3db08215
MM
152132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15214
15215 * target.h (target_ops) <to_insert_breakpoint>
15216 <to_remove_breakpoint>: Add target_ops parameter.
15217 (forward_target_insert_breakpoint): New.
15218 (forward_target_remove_breakpoint): New.
15219 (memory_remove_breakpoint, memory_insert_breakpoint):
15220 Add target_ops parameter.
15221 * target.c (target_insert_breakpoint): Split into this and ...
15222 (forward_target_insert_breakpoint): ... this.
15223 (target_remove_breakpoint): Split into this and ...
15224 (forward_target_remove_breakpoint): ... this.
15225 (debug_to_insert_breakpoint): Add target_ops parameter.
15226 Call forward_target_insert_breakpoint.
15227 (debug_to_remove_breakpoint): Add target_ops parameter.
15228 Call forward_target_remove_breakpoint.
15229 (update_current_target): Do not inherit or default to_insert_breakpoint
15230 and to_remove_breakpoint.
15231 * corelow.c (ignore): Add target_ops parameter.
15232 * exec.c (ignore): Add target_ops parameter.
15233 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15234 Add target_ops parameter.
15235 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15236 Add target_ops parameter.
15237 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15238 Add target_ops parameter.
15239 * record-full.c (record_full_beneath_to_insert_breakpoint)
15240 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15241 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15242 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15243 (record_full_core_remove_breakpoint): Add target_ops parameter.
15244 Update users.
15245 (record_full_beneath_to_insert_breakpoint_ops)
15246 (record_full_beneath_to_remove_breakpoint_ops)
15247 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15248 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15249 tmp_to_remove_breakpoint_ops,
15250 record_full_beneath_to_insert_breakpoint_ops, and
15251 record_full_beneath_to_remove_breakpoint_ops.
15252 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15253 (m32r_remove_breakpoint): Add target_ops parameter.
15254 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15255 Add target_ops parameter.
15256 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15257 Add target_ops parameter.
15258
cecac1ab
MM
152592014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15260 Markus Metzger <markus.t.metzger@intel.com>
15261
15262 * record-btrace.c: Include frame-unwind.h.
15263 (record_btrace_frame_unwind_stop_reason)
15264 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15265 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15266 New.
15267 (init_record_btrace_ops): Install it.
15268
824344ca
MM
152692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15270
15271 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15272 get_prev_frame_1.
15273
32261e52
MM
152742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15275
15276 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15277 earlier.
15278
ea001bdc
MM
152792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15280
15281 * frame-unwind.c: Include target.h.
15282 (frame_unwind_try_unwinder): New function with code from ...
15283 (frame_unwind_find_by_frame): ... here. New variable
15284 unwinder_from_target, call also target_get_unwinder)
15285 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15286 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15287 * target.h (struct target_ops): New fields to_get_unwinder and
15288 to_get_tailcall_unwinder.
15289 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15290
1f3ef581
MM
152912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15292
15293 * record-btrace.c (record_btrace_fetch_registers)
15294 (record_btrace_store_registers)
15295 (record_btrace_to_prepare_to_store): New.
15296 (init_record_btrace_ops): Add the above.
15297
f32dbf8c
MM
152982014-01-16 Tom Tromey <tromey@redhat.com>
15299
15300 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15301 * target.h (struct target_ops) <to_prepare_to_store>: Add
15302 argument.
15303 (target_prepare_to_store): Add argument.
15304 * target.c (debug_to_prepare_to_store): Add argument.
15305 (update_current_target): Update.
15306 * remote.c (remote_prepare_to_store): Add 'self' argument.
15307 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15308 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15309 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15310 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15311 argument.
15312 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15313 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15314 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15315 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15316 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15317
07bbe694
MM
153182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15319
15320 * btrace.h (replay) <replay>: New.
15321 (btrace_is_replaying): New.
15322 * btrace.c (btrace_clear): Free replay iterator.
15323 (btrace_is_replaying): New.
15324 * record-btrace.c (record_btrace_is_replaying): New.
15325 (record_btrace_info): Print insn number if replaying.
15326 (record_btrace_insn_history): Start at replay position.
15327 (record_btrace_call_history): Start at replay position.
15328 (init_record_btrace_ops): Init to_record_is_replaying.
15329
0688d04e
MM
153302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15331
15332 * record-btrace.c (record_btrace_insn_history_range): Include
15333 end.
15334 (record_btrace_insn_history_from): Adjust range.
15335 (record_btrace_call_history_range): Include
15336 end.
15337 (record_btrace_call_history_from): Adjust range.
15338 * NEWS: Announce changes.
15339
8710b709
MM
153402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15341
15342 * record.h (enum record_print_flag)
15343 <record_print_indent_calls>: New.
15344 * record.c (get_call_history_modifiers): Recognize /c modifier.
15345 (_initialize_record): Document /c modifier.
15346 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15347 Reorder fields. Optionally indent the function name. Update
15348 all users.
15349 * NEWS: Announce changes.
15350
d0fa7535
MM
153512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15352
15353 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15354
5de9129b
MM
153552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15356
15357 * btrace.c (ftrace_new_function): Start counting at one.
15358 * record-btrace.c (record_btrace_info): Adjust number of calls
15359 and insns.
15360 * NEWS: Announce it.
15361
7acbe133
MM
153622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15363
15364 * record-btrace.c (btrace_call_history_insn_range): Print
15365 insn range as [begin, end].
15366
23a7fe75
MM
153672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15368
15369 * btrace.h (struct btrace_func_link): New.
15370 (enum btrace_function_flag): New.
15371 (struct btrace_inst): Rename to ...
15372 (struct btrace_insn): ...this. Update all users.
15373 (struct btrace_func) <ibegin, iend>: Remove.
15374 (struct btrace_func_link): New.
15375 (struct btrace_func): Rename to ...
15376 (struct btrace_function): ...this. Update all users.
15377 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15378 (number, level, flags>: New.
15379 (struct btrace_insn_iterator): Rename to ...
15380 (struct btrace_insn_history): ...this.
15381 Update all users.
15382 (struct btrace_insn_iterator, btrace_call_iterator): New.
15383 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15384 (struct btrace_target_info) <begin, end, level>
15385 <insn_history, call_history>: New.
15386 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15387 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15388 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15389 (btrace_call_number, btrace_call_begin, btrace_call_end)
15390 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15391 (btrace_find_function_by_number, btrace_set_insn_history)
15392 (btrace_set_call_history): New.
15393 * btrace.c (btrace_init_insn_iterator)
15394 (btrace_init_func_iterator, compute_itrace): Remove.
15395 (ftrace_print_function_name, ftrace_print_filename)
15396 (ftrace_skip_file): Change
15397 parameter to const.
15398 (ftrace_init_func): Remove.
15399 (ftrace_debug): Use new btrace_function fields.
15400 (ftrace_function_switched): Also consider gaining and
15401 losing symbol information).
15402 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15403 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15404 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15405 New.
15406 (ftrace_new_function): Move. Remove debug print.
15407 (ftrace_update_lines, ftrace_update_insns): New.
15408 (ftrace_update_function): Check for call, ret, and jump.
15409 (compute_ftrace): Renamed to ...
15410 (btrace_compute_ftrace): ...this. Rewritten to compute call
15411 stack.
15412 (btrace_fetch, btrace_clear): Updated.
15413 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15414 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15415 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15416 (btrace_call_number, btrace_call_begin, btrace_call_end)
15417 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15418 (btrace_find_function_by_number, btrace_set_insn_history)
15419 (btrace_set_call_history): New.
15420 * record-btrace.c (require_btrace): Use new btrace thread
15421 info fields.
15422 (record_btrace_info, btrace_insn_history)
15423 (record_btrace_insn_history, record_btrace_insn_history_range):
15424 Use new btrace thread info fields and new iterator.
15425 (btrace_func_history_src_line): Rename to ...
15426 (btrace_call_history_src_line): ...this. Use new btrace
15427 thread info fields.
15428 (btrace_func_history): Rename to ...
15429 (btrace_call_history): ...this. Use new btrace thread info
15430 fields and new iterator.
15431 (record_btrace_call_history, record_btrace_call_history_range):
15432 Use new btrace thread info fields and new iterator.
15433
8372a7cb
MM
154342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15435
15436 * frame.h (frame_id_build_unavailable_stack_special): New.
15437 * frame.c (frame_id_build_unavailable_stack_special): New.
15438
c2170eef
MM
154392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15440
15441 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15442 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15443 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15444 to gdbarch.
15445 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15446 (i386_insn_is_jump, i386_jmp_p): New.
15447 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15448 insn_is_jump to gdbarch.
15449 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15450 * gdbarch.h: Regenerated.
15451 * gdbarch.c: Regenerated.
15452 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15453 (default_insn_is_jump): New.
15454 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15455 (default_insn_is_jump): New.
15456
864089d2
MM
154572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15458
15459 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15460 Change to ...
15461 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15462 (btrace_read_type) <btrace_read_new>: Change to ...
15463 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15464
ed9edfb5
MM
154652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15466
15467 * common/linux-btrace.c (linux_read_btrace): Free trace from
15468 previous iteration.
15469
fbcbc3fd
DE
154702014-01-15 Doug Evans <dje@google.com>
15471
15472 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15473 uint32_t.
15474
3d548a53
TT
154752014-01-15 Tom Tromey <tromey@redhat.com>
15476
15477 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15478 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15479 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15480 (set_objfile_main_name): New function.
15481 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15482 language_of_main>: New fields.
15483 (set_objfile_main_name): Declare.
15484 * symtab.c (find_main_name): Loop over objfiles to find the main
15485 name and language.
15486 (set_main_name): Now static.
15487 (get_main_info): Add comment.
15488 * symtab.h (set_main_name): Don't declare.
15489
32ac0d11
TT
154902014-01-15 Tom Tromey <tromey@redhat.com>
15491
15492 * symtab.c (main_progspace_key): New global.
15493 (struct main_info): New.
15494 (name_of_main, language_of_main): Remove.
15495 (get_main_info, main_info_cleanup): New function.
15496 (set_main_name, main_name, main_language): Use get_main_info.
15497 (_initialize_symtab): Initialize main_progspace_key.
15498
9e6c82ad
TT
154992014-01-15 Tom Tromey <tromey@redhat.com>
15500
15501 * dbxread.c (process_one_symbol): Update.
15502 * dwarf2read.c (read_partial_die): Update.
15503 * symfile.c (set_initial_language): Call main_language.
15504 * symtab.c (language_of_main): Now static.
15505 (set_main_name): Add 'lang' parameter.
15506 (find_main_name): Update.
15507 (main_language): New function.
15508 (symtab_observer_executable_changed): Update.
15509 * symtab.h (set_main_name): Update.
15510 (language_of_main): Remove.
15511 (main_language): Declare.
15512
6ef55de7
TT
155132014-01-15 Tom Tromey <tromey@redhat.com>
15514
15515 * symfile.c (init_entry_point_info): Use new "initialized" field.
15516 Update.
15517 * objfiles.h (struct entry_point) <initialized>: New field.
15518 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15519 (struct objfile) <ei>: ...here. Remove.
15520 * objfiles.c (entry_point_address_query): Update.
15521
53eddfa6
TT
155222014-01-15 Tom Tromey <tromey@redhat.com>
15523
15524 * objfiles.c (entry_point_address_query): Relocate entry point
15525 address.
15526 (objfile_relocate1): Do not relocate entry point address.
15527 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15528 <the_bfd_section_index>: New field.
15529 * symfile.c (init_entry_point_info): Find the entry point's
15530 section.
15531
d56e56aa
TT
155322014-01-15 Tom Tromey <tromey@redhat.com>
15533
15534 * solib-frv.c (enable_break): Use entry_point_address_query.
15535
33a97bbe
OJ
155362014-01-15 Omair Javaid <omair.javaid@linaro.org>
15537
15538 * NEWS: Add note on improved process record-replay on
15539 arm*-linux* targets.
15540
c6ec2b30
OJ
155412014-01-15 Omair Javaid <omair.javaid@linaro.org>
15542
15543 * arm-tdep.c (enum arm_record_result): New enum.
15544 (arm_record_unsupported_insn): New function.
15545 (arm_record_coproc_data_proc): Removed.
15546 (thumb2_record_ld_st_multiple): New function.
15547 (thumb2_record_ld_st_dual_ex_tbb): New function.
15548 (thumb2_record_data_proc_sreg_mimm): New function.
15549 (thumb2_record_ps_dest_generic): New function.
15550 (thumb2_record_branch_misc_cntrl): New function.
15551 (thumb2_record_str_single_data): New function.
15552 (thumb2_record_ld_mem_hints): New function.
15553 (thumb2_record_ld_word): New function.
15554 (thumb2_record_lmul_lmla_div): New function.
15555 (thumb2_record_decode_insn_handler): New function.
15556 (decode_insn): Add thumb32 instruction handlers.
15557
97dfe206
OJ
155582014-01-15 Omair Javaid <omair.javaid@linaro.org>
15559
15560 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15561 (struct arm_linux_record_tdep): Declare.
15562 (arm_canonicalize_syscall): New function.
15563 (arm_all_but_pc_registers_record): New function.
15564 (arm_linux_syscall_record): New function.
15565 (arm_linux_init_abi): Add syscall recording constructs.
15566 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15567 decoding. (arm_record_coproc_data_proc): Update arm syscall
15568 decoding.
15569 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15570 <arm_syscall_record>: New field.
15571 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15572 gdb_target_obs.
15573
9904a494
OJ
155742014-01-15 Omair Javaid <omair.javaid@linaro.org>
15575
15576 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15577 register for push instruction recording.
15578
f969241e
OJ
155792014-01-15 Omair Javaid <omair.javaid@linaro.org>
15580
15581 * arm-tdep.c (thumb_record_misc): Update to correct logical
15582 error while recording ldm, ldmia and pop instructions.
15583
bfbbec00
OJ
155842014-01-15 Omair Javaid <omair.javaid@linaro.org>
15585
15586 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15587
e40adcc9
PA
155882014-01-15 Pedro Alves <palves@redhat.com>
15589
15590 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15591 (go32_resume, go32_fetch_registers, store_register)
15592 (go32_store_registers, go32_prepare_to_store)
15593 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15594 (go32_create_inferior, go32_can_run, go32_terminal_init)
15595 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15596 declarations.
15597
b0a16e66
TT
155982014-01-15 Tom Tromey <tromey@redhat.com>
15599
15600 * target.h (async_callback_ftype): New typedef.
15601 (struct target_ops) <to_async>: Use it.
15602
bf7105a4
JB
156032014-01-15 Joel Brobecker <brobecker@adacore.com>
15604
15605 * python/py-value.c (get_field_type): Remove unnecessary curly
15606 braces for single-statement if block.
15607
a8f35c2e
JB
156082014-01-15 Joel Brobecker <brobecker@adacore.com>
15609
15610 * python/py-type.c (convert_field): Add missing empty line
15611 after declarations.
15612
bb4142cf
DE
156132014-01-14 Doug Evans <dje@google.com>
15614
15615 * symfile.h (expand_symtabs_matching): Renamed from
15616 expand_partial_symbol_names. Update prototype.
15617 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15618 * symfile.c (expand_symtabs_matching): Renamed from
15619 expand_partial_symbol_names. New args file_matcher, kind.
15620 Rename arg fun to symbol_matcher.
15621 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15622 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15623 ada_expand_partial_symbol_name.
15624 (ada_make_symbol_completion_list): Update to call
15625 expand_symtabs_matching.
15626 (ada_add_global_exceptions): Call expand_symtabs_matching.
15627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15628 call map_symbol_filenames.
15629 * symtab.c (sources_info): Update to call map_symbol_filenames.
15630 (search_symbols): Call expand_symtabs_matching.
15631 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15632 (default_make_symbol_completion_list_break_on): Update to call
15633 expand_symtabs_matching.
15634 (make_source_files_completion_list): Update to call
15635 map_symbol_filenames.
15636
206f2a57
DE
156372014-01-14 Doug Evans <dje@google.com>
15638
15639 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15640 (expand_symtabs_symbol_matcher_ftype): New typedef.
15641 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15642 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15643 * symfile.c (expand_partial_symbol_names): Update to use
15644 expand_symtabs_symbol_matcher_ftype.
15645 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15646 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15647 Arg name_matcher renamed to symbol_matcher.
15648 * psymtab.c (recursively_search_psymtabs): Update to use
15649 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15650 sym_matcher.
15651 (expand_symtabs_matching_via_partial): Update to use
15652 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15653 Arg name_matcher renamed to symbol_matcher.
15654
540c2971
DE
156552014-01-14 Doug Evans <dje@google.com>
15656
15657 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15658 (map_partial_symbol_filenames): Ditto.
15659 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15660 (map_partial_symbol_filenames): Ditto.
15661 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15662 (map_partial_symbol_filenames): Ditto.
15663 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15664 (map_partial_symbol_filenames): Ditto.
15665 * symtab.c: Delete #include "psymtab.h".
15666
8213266a
PA
156672014-01-14 Pedro Alves <palves@redhat.com>
15668 Tom Tromey <tromey@redhat.com>
15669
15670 * infrun.c (use_displaced_stepping): Use find_record_target
15671 instead of RECORD_IS_USED.
15672 (adjust_pc_after_break): Use record_full_is_used instead of
15673 RECORD_IS_USED.
15674 * record-btrace.c (record_btrace_open): Call record_preopen
15675 instead of checking RECORD_IS_USED.
15676 * record-full.c (record_full_shortname)
15677 (record_full_core_shortname): New globals.
15678 (record_full_is_used): New function.
15679 (find_full_open): Call record_preopen instead of checking
15680 RECORD_IS_USED.
15681 (init_record_full_ops): Set the target's shortname to
15682 record_full_shortname.
15683 (init_record_full_core_ops): Set the target's shortname to
15684 record_full_core_shortname.
15685 * record-full.h (record_full_is_used): Declare.
15686 * record.c (find_record_target): Make extern.
15687 (record_preopen): New function.
15688 * record.h (RECORD_IS_USED): Delete macro.
15689 (find_record_target, record_preopen): Declare functions.
15690
7ec1862d
YQ
156912014-01-14 Yao Qi <yao@codesourcery.com>
15692
15693 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15694 'len''s type to ULONGEST.
15695 (core_xfer_shared_libraries_aix): Likewise.
15696 * gdbarch.c, gdbarch.h: Regenerated.
15697 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15698 Change type of 'len' to ULONGEST.
15699 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15700 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15701
dea80a27
YQ
157022014-01-14 Yao Qi <yao@codesourcery.com>
15703
15704 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15705 type of 'len' to ULONGEST.
15706 (linux_xfer_osdata_processgroups): Likewise.
15707 (linux_xfer_osdata_threads): Likewise.
15708 (linux_xfer_osdata_fds): Likewise.
15709 (linux_xfer_osdata_isockets): Likewise.
15710 (linux_xfer_osdata_shm): Likewise.
15711 (linux_xfer_osdata_sem): Likewise.
15712 (linux_xfer_osdata_msg): Likewise.
15713 (linux_common_xfer_osdata): Likewise.
15714 (struct osdata_type) <getter>: Likewise.
15715 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15716 the declaration.
15717
b55e14c7
YQ
157182014-01-14 Yao Qi <yao@codesourcery.com>
15719
15720 * target.h (target_xfer_partial_ftype): Update.
15721 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15722 ULONGEST.
15723 * aix-thread.c (aix_thread_xfer_partial): Change type of
15724 argument 'len' to ULONGEST.
15725 * auxv.c (procfs_xfer_auxv): Likewise.
15726 (ld_so_xfer_auxv): Likewise.
15727 (memory_xfer_auxv): Likewise.
15728 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15729 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15730 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15731 * corelow.c (core_xfer_partial): Likewise.
15732 * ctf.c (ctf_xfer_partial): Likewise.
15733 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15734 '%u'.
15735 (darwin_read_dyld_info): Likewise.
15736 (darwin_xfer_partial): Likewise.
15737 * exec.c (section_table_xfer_memory_partial): Likewise.
15738 (exec_xfer_partial): Likewise.
15739 * exec.h (section_table_xfer_memory_partial): Update
15740 declaration.
15741 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15742 instead of plongest.
15743 (gnu_xfer_partial): Likewise.
15744 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15745 (ia64_hpux_xfer_solib_got): Likewise.
15746 (ia64_hpux_xfer_partial): Likewise.
15747 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15748 * inf-ptrace.c (inf_ptrace_xfer_partial):
15749 * inf-ttrace.c (inf_ttrace_xfer_partial):
15750 * linux-nat.c (linux_xfer_siginfo): Likewise.
15751 (linux_nat_xfer_partial): Likewise.
15752 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15753 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15754 * monitor.c (monitor_xfer_memory): Likewise.
15755 (monitor_xfer_partial): Likewise.
15756 * procfs.c (procfs_xfer_partial): Likewise.
15757 * record-full.c (record_full_xfer_partial): Likewise.
15758 (record_full_core_xfer_partial): Likewise.
15759 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15760 instead of plongest.
15761 (gdbsim_xfer_partial): Likewise.
15762 * remote.c (remote_xfer_partial): Likewise.
15763 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15764 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15765 declaration.
15766 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15767 (rs6000_xfer_shared_libraries): Likewise.
15768 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15769 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15770 (sparc_xfer_partial): Likewise.
15771 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15772 (spu_xfer_partial): Likewise.
15773 * spu-multiarch.c (spu_xfer_partial): Likewise.
15774 * target.c (target_read_live_memory): Likewise.
15775 (memory_xfer_live_readonly_partial): Likewise.
15776 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15777 (target_xfer_partial, default_xfer_partial): Likewise.
15778 (current_xfer_partial): Likewise.
15779 * tracepoint.c (tfile_xfer_partial): Likewise.
15780 * windows-nat.c (windows_xfer_memory): Likewise. Call
15781 pulongest instead of plongest.
15782 (windows_xfer_partial): Likewise.
15783 (windows_xfer_shared_libraries): Likewise.
15784
05804640
YQ
157852014-01-14 Yao Qi <yao@codesourcery.com>
15786
15787 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15788 target_xfer_partial_ftype.
15789
b5b08fb4
SC
157902014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15791
15792 PR python/15464
15793 PR python/16113
15794 * valops.c (value_struct_elt_bitpos): New function
15795 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15796 object to 'None' if the field name is an empty string ("").
15797 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15798 attribute to look for a field when 'name' is 'None'.
15799 (get_field_type): New function
15800
13aaf454
DE
158012014-01-13 Doug Evans <dje@google.com>
15802
15803 PR symtab/16426
15804 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15805 (try_open_dwop_file): Ditto.
15806 * gdb_bfd.c: #include "vec.h".
15807 (bfdp): New typedef.
15808 (struct gdb_bfd_data): New member included_bfds.
15809 (gdb_bfd_unref): Unref all included bfds.
15810 (gdb_bfd_record_inclusion): New function.
15811 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15812
c2cec97c
TT
158132014-01-13 Tom Tromey <tromey@redhat.com>
15814
15815 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15816
78e5999d
TT
158172014-01-13 Tom Tromey <tromey@redhat.com>
15818
15819 * defs.h (use_windows): Remove.
15820 * gdb.c (main): Update.
15821 * main.c (captured_main, gdb_main): Update.
15822 * main.h (struct captured_main_args) <use_windows>: Remove.
15823 * top.c (use_windows): Remove.
15824
f2052bbe
TT
158252014-01-13 Tom Tromey <tromey@redhat.com>
15826
15827 * defs.h (deprecated_flush_hook): Remove.
15828
fde4f8ed
JK
158292014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15830
15831 PR threads/16216
15832 * linux-thread-db.c (try_thread_db_load): Add parameter
15833 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15834 (try_thread_db_load_from_pdir_1): Move it there from here.
15835 (try_thread_db_load_from_sdir): Update caller.
15836 (try_thread_db_load_from_dir): Move it there from here.
15837
bdf61915
PP
158382014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15839
15840 * regformats/regdat.sh: Always rewrite the register file.
15841
f71e1a8d
PA
158422014-01-13 Pedro Alves <palves@redhat.com>
15843
15844 * Makefile.in (CHECK_HEADERS): New variable.
15845 (check-headers:): New rule.
15846
42c85435
TT
158472014-01-13 Tom Tromey <tromey@redhat.com>
15848
15849 * cli/cli-setshow.c (do_set_command): Update.
15850 * defs.h (deprecated_set_hook): Remove.
15851 * top.c (deprecated_set_hook): Remove.
15852
f8de5129
PA
158532014-01-13 Pedro Alves <palves@redhat.com>
15854
15855 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15856 the tracepoint if the PC is a pseudo-register.
15857
fc270c35
TT
158582014-01-13 Tom Tromey <tromey@redhat.com>
15859
15860 * defs.h (XCALLOC): Remove.
15861 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15862 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15863 * dwarf2loc.c (allocate_piece_closure): Likewise.
15864 * elfread.c (elf_symfile_segments): Likewise.
15865 (elf_symfile_segments): Likewise.
15866 * gdbtypes.c (copy_type_recursive): Likewise.
15867 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15868 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15869 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15870 XCALLOC.
15871 * mt-tdep.c (mt_gdbarch_init): Likewise.
15872 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15873 XCALLOC.
15874 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15875 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15876 * registry.c (registry_alloc_data): Likewise.
15877 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15878 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15879 * serial.c (serial_fdopen_ops): Likewise.
15880 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15881 XCALLOC.
15882 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15883 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15884 not XCALLOC.
15885
70ba0933
TT
158862014-01-13 Tom Tromey <tromey@redhat.com>
15887
15888 * defs.h (XMALLOC): Remove.
15889 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15890 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15891 * cli-out.c (struct ui_out *): Likewise.
15892 * cli/cli-dump.c (add_dump_command): Likewise.
15893 (add_dump_command): Likewise.
15894 * complaints.c (get_complaints): Likewise.
15895 (find_complaint): Likewise.
15896 * dwarf2-frame.c (execute_cfa_program): Likewise.
15897 * dwarf2read.c (abbrev_table_read_table): Likewise.
15898 * gdbarch.sh: Likewise.
15899 * gdbarch.c: Rebuild.
15900 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15901 * interps.c (interp_new): Likewise.
15902 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15903 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15904 * mi/mi-console.c (mi_console_file_new): Likewise.
15905 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15906 * mi/mi-out.c (mi_out_new): Likewise.
15907 * mi/mi-parse.c (mi_parse): Likewise.
15908 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15909 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15910 * observer.c (xalloc_observer_list_node): Likewise.
15911 * regcache.c (regcache_xmalloc_1): Likewise.
15912 * reggroups.c (reggroup_new): Likewise.
15913 (_initialize_reggroup): Likewise.
15914 * registry.c (register_data_with_cleanup): Likewise.
15915 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15916 * ser-base.c (serial_ttystate): Likewise.
15917 * ser-mingw.c (make_pipe_state): Likewise.
15918 * ser-pipe.c (pipe_open): Likewise.
15919 * serial.c (serial_open): Likewise.
15920 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15921 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15922 (tui_alloc_win_info): Likewise.
15923 (tui_add_content_elements): Likewise.
15924 * tui/tui-file.c (tui_file_new): Likewise.
15925 * tui/tui-out.c (tui_out_new): Likewise.
15926 * ui-file.c (mem_file_new): Likewise.
15927 * ui-out.c (push_level): Likewise.
15928 (make_cleanup_ui_out_end): Likewise.
15929 (append_header_to_list): Likewise.
15930 (ui_out_new): Likewise.
15931 * user-regs.c (user_reg_add_builtin): Likewise.
15932
41bf6aca
TT
159332014-01-13 Tom Tromey <tromey@redhat.com>
15934
15935 * defs.h (XZALLOC): Remove.
15936 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15937 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15938 (get_ada_tasks_inferior_data): Likewise.
15939 * auto-load.c (get_auto_load_pspace_data): Likewise.
15940 * auxv.c (get_auxv_inferior_data): Likewise.
15941 * bfd-target.c (target_bfd_reopen): Likewise.
15942 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15943 (deprecated_insert_raw_breakpoint): Likewise.
15944 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15945 * corelow.c (core_open): Likewise.
15946 * darwin-nat.c (darwin_check_new_threads): Likewise.
15947 (darwin_attach_pid): Likewise.
15948 * dummy-frame.c (dummy_frame_push): Likewise.
15949 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15950 * dwarf2loc.c (allocate_piece_closure): Likewise.
15951 * elfread.c (elf_symfile_segments): Likewise.
15952 * eval.c (ptrmath_type_p): Likewise.
15953 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15954 * gdbtypes.c (alloc_type_arch): Likewise.
15955 (alloc_type_instance): Likewise.
15956 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15957 * inf-child.c (inf_child_can_use_agent): Likewise.
15958 * inflow.c (get_inflow_inferior_data): Likewise.
15959 * infrun.c (save_infcall_suspend_state): Likewise.
15960 * jit.c (jit_reader_load): Likewise.
15961 (get_jit_objfile_data): Likewise.
15962 (get_jit_program_space_data): Likewise.
15963 (jit_object_open_impl): Likewise.
15964 (jit_symtab_open_impl): Likewise.
15965 (jit_block_open_impl): Likewise.
15966 (jit_frame_sniffer): Likewise.
15967 * linux-fork.c (add_fork): Likewise.
15968 * maint.c (make_command_stats_cleanup): Likewise.
15969 * objfiles.c (get_objfile_pspace_data): Likewise.
15970 * opencl-lang.c (struct lval_closure): Likewise.
15971 * osdata.c (osdata_start_osdata): Likewise.
15972 * progspace.c (new_address_space): Likewise.
15973 (add_program_space): Likewise.
15974 * remote-sim.c (get_sim_inferior_data): Likewise.
15975 * sh-tdep.c (sh_gdbarch_init): Likewise.
15976 * skip.c (Ignore): Likewise.
15977 (skip_delete_command): Likewise.
15978 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15979 (library_list_start_library): Likewise.
15980 (solib_aix_current_sos): Likewise.
15981 * solib-darwin.c (get_darwin_info): Likewise.
15982 (darwin_current_sos): Likewise.
15983 * solib-dsbt.c (get_dsbt_info): Likewise.
15984 * solib-ia64-hpux.c (new_so_list): Likewise.
15985 (ia64_hpux_get_solib_linkage_addr): Likewise.
15986 * solib-spu.c (append_ocl_sos): Likewise.
15987 (spu_current_sos): Likewise.
15988 * solib-svr4.c (get_svr4_info): Likewise.
15989 (svr4_keep_data_in_core): Likewise.
15990 (library_list_start_library): Likewise.
15991 (svr4_default_sos): Likewise.
15992 (svr4_read_so_list): Likewise.
15993 * solib-target.c (library_list_start_library): Likewise.
15994 (solib_target_current_sos): Likewise.
15995 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15996 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15997 * symfile.c (default_symfile_segments): Likewise.
15998 * target-descriptions.c (tdesc_data_init): Likewise.
15999 (tdesc_create_reg): Likewise.
16000 (struct tdesc_type *): Likewise.
16001 (tdesc_create_vector): Likewise.
16002 (tdesc_set_struct_size): Likewise.
16003 (struct tdesc_type *): Likewise.
16004 (tdesc_free_feature): Likewise.
16005 (tdesc_create_feature): Likewise.
16006 * windows-nat.c (windows_add_thread): Likewise.
16007 (windows_make_so): Likewise.
16008 * xml-support.c (gdb_xml_body_text): Likewise.
16009 (gdb_xml_create_parser_and_cleanup): Likewise.
16010 (xml_process_xincludes): Likewise.
16011 * xml-syscall.c (allocate_syscalls_info): Likewise.
16012 (syscall_create_syscall_desc): Likewise.
16013
5acfdbae
SDJ
160142014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16015
16016 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16017 function, with code from i386_stap_parse_special_token.
16018 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16019 (i386_stap_parse_special_token): Move code to the two functions
16020 above; simplify it.
16021
0000e5cc
PA
160222014-01-09 Pedro Alves <palves@redhat.com>
16023 Hui Zhu <hui@codesourcery.com>
16024
16025 PR gdb/16101
16026 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16027 bp_err_string. Don't mark the location shlib_disabled if the
16028 error thrown wasn't a generic or memory error. Catch errors
16029 thrown while inserting breakpoints in overlayed code. Output
16030 error message of software breakpoints.
16031 * remote.c (remote_insert_breakpoint): If this breakpoint has
16032 target-side commands but this stub doesn't support Z0 packets,
16033 throw NOT_SUPPORTED_ERROR error.
16034 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16035 * target.h (target_insert_breakpoint): Extend comment.
16036 (target_insert_hw_breakpoint): Add comment.
16037
b7ea362b
PA
160382014-01-08 Pedro Alves <palves@redhat.com>
16039
16040 * remote.c (remote_add_thread): Add threads silently if starting
16041 up.
16042 (remote_notice_new_inferior): If in all-stop, and starting up,
16043 don't call notice_new_inferior.
16044 (get_current_thread): New function, factored out from ...
16045 (add_current_inferior_and_thread): ... this. Adjust.
16046 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16047 found any thread, then select the remote's current thread as GDB's
16048 current thread too.
16049
b7bba001
JB
160502014-01-08 Joel Brobecker <brobecker@adacore.com>
16051
16052 * NEWS: Create a new section for the next release branch.
16053 Rename the section of the current branch, now that it has
16054 been cut.
16055
16dfbded
JB
160562014-01-08 Joel Brobecker <brobecker@adacore.com>
16057
16058 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16059 * version.in: Bump version to 7.7.50.DATE-cvs.
16060
22c90ac1
YQ
160612014-01-08 Yao Qi <yao@codesourcery.com>
16062
16063 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16064 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16065 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16066
d64ad97c
YQ
160672014-01-08 Yao Qi <yao@codesourcery.com>
16068
16069 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16070 return value of bfd_get_filename to symbol_file_add_from_bfd.
16071
f93ba80c
PM
160722014-01-08 Pierre Muller <muller@sourceware.org>
16073
16074 Fix PR16201.
16075 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16076 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16077 to prim_record_mininal_symbol_and_info.
16078 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16079 in call to prim_record_minimal_symbol_and_info.
16080 (read_pe_exported_syms): Set index field of section_data.
16081
a4d9ba85
AP
160822014-01-07 Andrew Pinski <apinski@cavium.com>
16083
16084 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16085 * features/aarch64.c: Regenerate.
16086
1b67eb02
AS
160872014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16088
16089 * target.c (return_null): Define.
16090 (update_current_target): Use it instead of return_zero for
16091 functions that return a pointer.
16092
5e3f4fab
EBM
160932014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16094
16095 * source.c (add_path): Fix check for duplicated paths in the previously
16096 included paths.
16097
e2616788
HK
160982014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16099
16100 * ada-lang.c: Remove duplicated include statements.
16101 * alphabsd-nat.c: Ditto.
16102 * amd64-darwin-tdep.c: Ditto.
16103 * amd64fbsd-nat.c: Ditto.
16104 * auto-load.c: Ditto.
16105 * ax-gdb.c: Ditto.
16106 * breakpoint.c: Ditto.
16107 * dbxread.c: Ditto.
16108 * fork-child.c: Ditto.
16109 * gdb_usleep.c: Ditto.
16110 * i386-darwin-tdep.c: Ditto.
16111 * i386fbsd-nat.c: Ditto.
16112 * infcmd.c: Ditto.
16113 * inferior.c: Ditto.
16114 * jv-lang.c: Ditto.
16115 * linux-nat.c: Ditto.
16116 * linux-tdep.c: Ditto.
16117 * m68kbsd-nat.c: Ditto.
16118 * m68klinux-nat.c: Ditto.
16119 * microblaze-tdep.c: Ditto.
16120 * mips-linux-tdep.c: Ditto.
16121 * mn10300-tdep.c: Ditto.
16122 * nto-tdep.c: Ditto.
16123 * opencl-lang.c: Ditto.
16124 * osdata.c: Ditto.
16125 * printcmd.c: Ditto.
16126 * regcache.c: Ditto.
16127 * remote-m32r-sdi.c: Ditto.
16128 * remote.c: Ditto.
16129 * symfile.c: Ditto.
16130 * symtab.c: Ditto.
16131 * tilegx-linux-nat.c: Ditto.
16132 * tilegx-tdep.c: Ditto.
16133 * tracepoint.c: Ditto.
16134 * valops.c: Ditto.
16135 * vaxbsd-nat.c: Ditto.
16136 * windows-nat.c: Ditto.
16137 * xtensa-tdep.c: Ditto.
16138
bd1f7788
YQ
161392014-01-07 Yao Qi <yao@codesourcery.com>
16140
16141 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16142
79301218
JB
161432014-01-07 Yao Qi <yao@codesourcery.com>
16144 Joel Brobecker <brobecker@adacore.com>
16145
16146 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16147 (pdc_write_regs): Likewise.
16148 (fetch_regs_kernel_thread): Likewise.
16149 (store_regs_kernel_thread): Likewise.
16150
161512014-01-07 Joel Brobecker <brobecker@adacore.com>
16152
16153 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16154 tagged type objects to their actual type.
16155
8e355c5d
JB
161562014-01-07 Joel Brobecker <brobecker@adacore.com>
16157
16158 * ada-valprint.c (print_field_values): Add "language" parameter.
16159 Update calls to print_field_values and print_variant_part.
16160 Pass new parameter "language" in call to val_print instead
16161 of "current_language". Replace call to ada_val_print by call
16162 to val_print.
16163 (print_variant_part): Add "language" parameter.
16164 (ada_val_print_struct_union): Update call to print_field_values.
16165
4fbf5aa5
JB
161662014-01-07 Joel Brobecker <brobecker@adacore.com>
16167
16168 * ada-valprint.c (ui_memcpy): Delete.
16169 (ada_print_floating): Update documentation. Add empty line
16170 between between function documentation and implementation.
16171 Delete variable "buffer". Use ui_file_xstrdup in place of
16172 ui_file_put. Minor adjustments following this change.
16173
71855601
JB
161742014-01-07 Joel Brobecker <brobecker@adacore.com>
16175
16176 * ada-valprint.c (ada_val_print_string): New function,
16177 extracted from ada_val_print_array.
16178 (ada_val_print_array): Replace extracted code by call
16179 to ada_val_print_string followed by a return. Move
16180 "else" branch to the function's top block.
16181
4eb27a30
JB
161822014-01-07 Joel Brobecker <brobecker@adacore.com>
16183
16184 * ada-valprint.c (ada_val_print_array): Move implementation
16185 down. Rename parameter "offset" and "val" into "offset_aligned"
16186 and "original_value" respectively. Add parameter "offset".
16187
34b27950
JB
161882014-01-07 Joel Brobecker <brobecker@adacore.com>
16189
16190 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16191 re-organizing the code. Change the "???" message printed
16192 when target type is a TYPE_CODE_UNDEF into
16193 "<ref to undefined type>".
16194
079e4591
JB
161952014-01-07 Joel Brobecker <brobecker@adacore.com>
16196
16197 * ada-valprint.c (print_record): Delete, implementation inlined...
16198 (ada_val_print_struct_union): ... here. Remove call to
16199 ada_check_typedef in inlined implementation.
16200
8004dfd1
JB
162012014-01-07 Joel Brobecker <brobecker@adacore.com>
16202
16203 * ada-valprint.c (ada_val_print_gnat_array): New function,
16204 extracted from ada_val_print_1;
16205 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16206 (ada_val_print_flt, ada_val_print_struct_union)
16207 (ada_val_print_ref): Likewise.
16208 (ada_val_print_1): Delete variables i and elttype.
16209 Replace extracted-out code by call to corresponding
16210 new functions.
16211
760a2db0
JB
162122014-01-07 Joel Brobecker <brobecker@adacore.com>
16213
16214 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16215
3a92c861
JB
162162014-01-07 Joel Brobecker <brobecker@adacore.com>
16217
16218 * ada-valprint.c (ada_val_print_1): Replace calls to
16219 ada_val_print_1 by calls to val_print.
16220
cd1630f9
JB
162212014-01-07 Joel Brobecker <brobecker@adacore.com>
16222
16223 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16224 Update calls to self accordingly. Replace calls to c_val_print
16225 by calls to val_print.
16226
bdf779a0
JB
162272014-01-07 Joel Brobecker <brobecker@adacore.com>
16228
16229 * ada-valprint.c (print_record): Delete declaration.
16230 (adjust_type_signedness, ada_val_print_1): Likewise.
16231 (ada_val_print): Move function implementation down.
16232 (print_variant_part, print_field_values, print_record):
16233 Move function implementation up.
16234
c0d48811
JB
162352014-01-07 Joel Brobecker <brobecker@adacore.com>
16236
16237 * python/py-type.c (typy_get_name): New function.
16238 (type_object_getset): Add entry for attribute "name".
16239 * NEWS: Add entry mentioning this new attribute.
16240
c26e9cbb
YQ
162412014-01-07 Yao Qi <yao@codesourcery.com>
16242
16243 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16244 statement.
16245
0cc6f43d
YQ
162462014-01-07 Yao Qi <yao@codesourcery.com>
16247
16248 * gnu-nat.c (info_port_rights): Add qualifier const to
16249 argument args.
16250
eec03155
YQ
162512014-01-07 Yao Qi <yao@codesourcery.com>
16252
16253 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16254
f04a82ef
YQ
162552014-01-07 Yao Qi <yao@codesourcery.com>
16256
16257 * gnu-nat.c (make_inf) Update declaration.
16258 (make_inf): Make it static.
16259 (inf_set_traced): Likewise.
16260 (inf_port_to_thread, inf_task_died_status): Likewise.
16261
d57dda0a
YQ
162622014-01-07 Yao Qi <yao@codesourcery.com>
16263
16264 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16265
3aa8c969
YQ
162662014-01-07 Yao Qi <yao@codesourcery.com>
16267
16268 * gnu-nat.c (_initialize_gnu_nat): Declare.
16269
94123b4f
YQ
162702014-01-07 Yao Qi <yao@codesourcery.com>
16271
16272 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16273 'enum bfd_endian'.
16274 (struct gdbarch_info) <byte_order>: Change type to
16275 'enum bfd_endian'.
16276 <byte_order_for_code>: Likewise.
16277 * gdbarch.c, gdbarch.h: Regenerated.
16278
dc81d70a
TT
162792014-01-06 Sasha Smundak <asmundak@google.com>
16280
16281 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16282
cc2f3c35
TT
162832014-01-06 Tom Tromey <tromey@redhat.com>
16284
16285 * doublest.c (convert_doublest_to_floatformat): Use const, not
16286 CONST.
16287 * somread.c (som_symtab_read): Likewise.
16288
adcf2eed
HZ
162892014-01-07 Hui Zhu <hui@codesourcery.com>
16290
16291 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16292 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16293 (gdb_bfd_fopen): Ditto.
16294 (gdb_bfd_openr): Ditto.
16295 (gdb_bfd_openw): Ditto.
16296 (gdb_bfd_openr_iovec): Ditto.
16297 (gdb_bfd_fdopenr): Ditto.
16298 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16299 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16300 with xstrdup.
16301 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16302 with xstrdup.
16303 * symfile-mem.c (symbol_file_add_from_memory): Removed
16304 gdb_bfd_stash_filename.
16305
50722198
DE
163062014-01-03 Doug Evans <dje@google.com>
16307
16308 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16309 output.
16310
2fa4b862
JB
163112014-01-01 Joel Brobecker <brobecker@adacore.com>
16312
16313 Update year range in copyright notice of all files.
16314
28498c42
JB
163152014-01-01 Joel Brobecker <brobecker@adacore.com>
16316
16317 * top.c (print_gdb_version): Set copyright year to 2014.
16318
7b6e1046
JB
163192014-01-01 Joel Brobecker <brobecker@adacore.com>
16320
16321 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16322
df96af55 16323For older changes see ChangeLog-2013.
c906108c
SS
16324\f
16325Local Variables:
16326mode: change-log
16327left-margin: 8
16328fill-column: 74
16329version-control: never
57da7796 16330coding: utf-8
c906108c 16331End:
This page took 2.413542 seconds and 4 git commands to generate.