Replace some symbol accessor macros with functions.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
08be3fe3
DE
12014-12-23 Doug Evans <xdje42@gmail.com>
2
3 * symtab.h (SYMBOL_SYMTAB): Delete
4 (SYMBOL_OBJFILE): Delete.
5 (symbol_symtab, symbol_set_symtab): Declare.
6 (symbol_objfile, symbol_arch): Declare.
7 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
8 All references to symbol->symtab redirected through here.
9 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
10 redirected through here.
11 (symbol_arch): New function.
12 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
13 All uses updated.
14 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
15 symbol_arch.
16 * findvar.c (default_read_var_value): Call symbol_arch.
17 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
18 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
19 * printcmd.c (address_info): Call symbol_arch.
20 * tracepoint.c (scope_info): Call symbol_arch.
21
f953163f
DE
222014-12-22 Doug Evans <xdje42@gmail.com>
23
24 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
25 (cp_lookup_symbol_namespace): Call it.
26 (cp_lookup_symbol_nonlocal): Ditto.
27
4bd0864e
DE
282014-12-22 Doug Evans <xdje42@gmail.com>
29
30 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
31 "search_scope_first". All callers updated.
32
6f27419a
DE
332014-12-22 Doug Evans <xdje42@gmail.com>
34
35 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
36 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
37 arg "search". All callers updated.
38 (cp_lookup_bare_symbol): New function.
39 (cp_search_static_and_baseclasses): New function.
40 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
41 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
42 (cp_lookup_nested_symbol): Ditto.
43
d2763117
DE
442014-12-22 Doug Evans <xdje42@gmail.com>
45
46 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
47
791244be
DE
482014-12-22 Doug Evans <xdje42@gmail.com>
49
50 * cp-namespace.c: Whitespace cleanup.
51
87186c6a
MMN
522014-12-20 Keith Seitz <keiths@redhat.com>
53 Mihail-Marian Nistor <mihail.nistor@freescale.com>
54
55 PR gdb/17394
56 * linespec.c (struct collect_minsyms): Add new member `symtab'.
57 (add_minsym): Handle cases where info.symtab is non-NULL.
58 (search_minsyms_for_name): Add new parameter `symtab'.
59 Handle limiting searches to a specific symtab.
60 (add_matching_symtabs_to_info): Search through minimal symbols
61 for language_asm files for which no new symbols are found.
62
bb7e3f4d
YQ
632014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
64 Nigel Stephens <nigel@mips.com>
65 Chris Dearman <chris@mips.com>
66 Luis Machado <lgustavo@codesourcery.com>
67
68 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
69 (ALLDEPFILES): Add mips-sde-tdep.c.
70 * mips-sde-tdep.c: New file containg SDE specific code.
71 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
72 gdb_target_obs.
73 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
74 * osabi.c (gdb_osabi_names): Add SDE.
75 * NEWS: Mention the change.
76
db7a9bcd
SM
772014-12-18 Simon Marchi <simon.marchi@ericsson.com>
78
79 * elfread.c (elf_symfile_init): Remove stale comment.
80 (elf_symfile_read): Same.
81 * symfile.h (struct sym_fns): Same.
82
1bab7383
YQ
832014-12-18 Nigel Stephens <nigel@mips.com>
84 Maciej W. Rozycki <macro@codesourcery.com>
85
86 * mips-tdep.c (print_fpu_flags): New function.
87 (mips_print_float_info): Likewise.
88 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
89 print_float_info routine.
90
cc86d1cb
YQ
912014-12-18 Yao Qi <yao@codesourcery.com>
92
93 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
94 * gdbarch.c: Re-generated.
95 * gdbarch.h: Likewise.
96 * infcmd.c (default_print_float_info): New function.
97 (print_float_info): Removed. Move code to
98 default_print_float_info.
99 (float_info): Adjust to call gdbarch_print_float_info.
100 * inferior.h (default_print_float_info): Declare it.
101
2ad47ec4
YQ
1022014-12-18 Yao Qi <yao@codesourcery.com>
103
104 * h8300-tdep.c (h8300_print_float_info): Remove.
105 (h8300_gdbarch_init): Remove the call to
106 set_gdbarch_print_float_info.
107
253342b8
DE
1082014-12-18 Doug Evans <xdje42@gmail.com>
109
110 * infcmd.c (jump_command): Minor simplification.
111
46b0da17
DE
1122014-12-18 Doug Evans <xdje42@gmail.com>
113
114 * language.c (language_lookup_primitive_type): Renamed from
115 language_lookup_primitive_type_by_name. All callers updated.
116
1bc1068a
JK
1172014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 Fix MinGW compilation.
120 * compile/compile.c (get_compile_file_tempdir): Call error if
121 !HAVE_MKDTEMP.
122 * config.in: Regenerate.
123 * configure: Regenerate.
124 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
125
5e3c72e6
DE
1262014-12-17 Doug Evans <xdje42@gmail.com>
127
128 * valops.c (value_maybe_namespace_elt): Remove redundant call to
129 lookup_static_symbol.
130
cc485e62
DE
1312014-12-17 Doug Evans <xdje42@gmail.com>
132
133 New parameter "debug symbol-lookup".
134 * NEWS: Mention it.
135 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
136 output.
137 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
138 (cp_lookup_nested_symbol): Ditto.
139 * language.c (language_lookup_primitive_type_by_name): Add debug
140 output.
141 * minsyms.c (lookup_minimal_symbol): Add debug output.
142 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
143 * symfile-debug.c (debug_objfile_name): ... from here. All callers
144 updated.
145 * objfiles.h (objfile_debug_name): Declare.
146 * symtab.h (symbol_lookup_debug): Declare.
147 * symtab.c (symbol_lookup_debug): New global.
148 (lookup_language_this): Add debug output.
149 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
150 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
151 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
152 (_initialize_symtab): Add new parameter "debug symbol-lookup".
153
0ab9ce85
DE
1542014-12-16 Doug Evans <xdje42@gmail.com>
155
156 * buildsym.c: Add comments describing how the buildsym machinery
157 is used by the various file formats.
158 (really_free_pendings): Enhance function comment.
159 See pending_macros to NULL. Simplify resetting pending_addrmap.
160 Call free_buildsym_compunit.
161 (free_buildsym_compunit): Set current_subfile to NULL.
162 (prepare_for_building): New function.
163 (start_symtab): Call it. Remove call to set_last_source_file.
164 (restart_symtab): New arg "cust". All callers updated.
165 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
166 (reset_symtab_globals): Enhance function comment.
167 Set local_symbols, file_symbols, global_symbols to NULL.
168 Set pending_macros to NULL. Simplify resetting pending_addrmap.
169 Call free_buildysym_compunit.
170 (end_symtab_without_blockvector): Delete. All callers updated.
171 (end_symtab_with_blockvector): Remove redundant call to
172 free_buildsym_compunit.
173 (augment_type_symtab): Remove arg "cust". All callers updated.
174 (buildsym_init): Remove resetting of free_pendings, file_symbols,
175 global_symbols, pending_blocks, pending_macros. Instead make
176 handling consistent with pending_addrmap: Assert value was reset
177 at end of previous symtab building. Initialize context_stack here.
178
55accf4a
DE
1792014-12-16 Doug Evans <xdje42@gmail.com>
180
181 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
182 cp_lookup_symbol_imports. All callers updated.
183
a07e3e18
DE
1842014-12-16 Doug Evans <xdje42@gmail.com>
185
186 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
187 find_type_baseclass_by_name. All callers updated.
188
d01060f0
DE
1892014-12-16 Doug Evans <xdje42@gmail.com>
190
191 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
192 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
193 (print_symbol_info): Delete arg symtab. All callers updated.
194 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
195
25dda427
AA
1962014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
197
198 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
199 "Name" columns. Assure that the output is always indented.
200
beed38b8
JB
2012014-12-16 Joel Brobecker <brobecker@adacore.com>
202
203 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
204 already defined.
205 (linux_enable_event_reporting): Add parameter "attached".
206 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
207 declaration. New function.
208 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
209 (linux_enable_event_reporting): Add new parameter "attached".
210 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
211 nonzero.
212 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
213 Use it. Update function description.
214 (linux_child_post_attach, linux_child_post_startup_inferior):
215 Update call to linux_enable_event_reporting.
216
8fda9068
YQ
2172014-12-16 Yao Qi <yao@codesourcery.com>
218
219 * NEWS: Move some entries to "Changes since GDB 7.8" section.
220
2a546367
YQ
2212014-12-16 Yao Qi <yao@codesourcery.com>
222
223 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
224 ARG_LAST.
225
c9657e70
SM
2262014-12-15 Simon Marchi <simon.marchi@ericsson.com>
227
228 * inferior.c (find_inferior_ptid): New function.
229 * inferior.h (find_inferior_ptid): New declaration.
230 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
231 * corelow.c (core_pid_to_str): Same.
232 * darwin-nat.c (darwin_resume): Same.
233 * infrun.c (fetch_inferior_event): Same.
234 (get_inferior_stop_soon): Same.
235 (handle_inferior_event): Same.
236 (handle_signal_stop): Same.
237 * linux-nat.c (resume_lwp): Same.
238 (stop_wait_callback): Same.
239 * mi/mi-interp.c (mi_new_thread): Same.
240 (mi_thread_exit): Same.
241 * proc-service.c (ps_pglobal_lookup): Same.
242 * record-btrace.c (record_btrace_step_thread): Same.
243 * remote-sim.c (gdbsim_close_inferior): Same.
244 (gdbsim_resume): Same.
245 (gdbsim_stop): Same.
246 * sol2-tdep.c (sol2_core_pid_to_str): Same.
247 * target.c (memory_xfer_partial_1): Same.
248 (default_thread_address_space): Same.
249 * thread.c (thread_change_ptid): Same.
250 (switch_to_thread): Same.
251 (do_restore_current_thread_cleanup): Same.
252
38bcc89d
SM
2532014-12-15 Simon Marchi <simon.marchi@ericsson.com>
254
255 * defs.h (gdb_readline): Constify argument.
256 (gdb_readline_wrapper): Same.
257 (command_line_input): Same.
258 (deprecated_readline_hook): Same.
259 * top.c (deprecated_readline_hook): Same.
260 (gdb_readline): Same.
261 (gdb_readline_wrapper): Same.
262 (command_line_input): Constify argument. Pass prompt_arg to called
263 functions instead of local_prompt, overwriting prompt_arg if necessary.
264 * event-top.h (display_gdb_prompt): Constify argument.
265 * event-top.c (display_gdb_prompt): Same.
266 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
267 if building with Python 3.4 and up.
268
89ed8ea1
SM
2692014-12-15 Simon Marchi <simon.marchi@ericsson.com>
270
271 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
272 os.getcwdu().
273
aacd3e8c
CU
2742014-12-15 Catalin Udma <catalin.udma@freescale.com>
275
276 PR gdb/15684
277 * memattr.c (mem_info_command): Remove "unsigned long" casts.
278
dc4d6886
DE
2792014-12-13 Doug Evans <xdje42@gmail.com>
280
281 * utils.c (make_hex_string): Fix off-by-one error.
282
c1b5a1a6
JB
2832014-12-13 Joel Brobecker <brobecker@adacore.com>
284
285 * ada-lang.h (ada_ensure_varsize_limit): Declare.
286 * ada-lang.c (check_size): Remove advance declaration.
287 (ada_ensure_varsize_limit): Renames check_size.
288 Replace calls to check_size by calls to ada_ensure_varsize_limit
289 throughout.
290 * ada-valprint.c (ada_val_print_ref): Add call to
291 ada_ensure_varsize_limit. Add comment explaining why.
292
3c46a02f
JB
2932014-12-13 Joel Brobecker <brobecker@adacore.com>
294
295 * utils.c (make_hex_string): Replace use of sprintf by use of
296 xsnprintf.
297
8e8347b8
JB
2982014-12-13 Joel Brobecker <brobecker@adacore.com>
299
300 * compile/compile-object-load.c (link_callbacks_multiple_definition)
301 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
302 newline at end of warning message.
303
f93b65a0
JB
3042014-12-13 Joel Brobecker <brobecker@adacore.com>
305
306 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
307 new "EXTRA-ARGS" parameter.
308 * configure.ac: If large-file support is disabled in GDB,
309 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
310 * configure: Regenerate.
311
5537b577
JK
3122014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
313
314 PR symtab/17642
315 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
316 TYPE if not TYPE_CODE_TYPEDEF.
317
e0782980
JB
3182014-12-13 Joel Brobecker <brobecker@adacore.com>
319
320 PR backtrace/16215:
321 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
322 the frame unwinder must either be the dwarf2_frame_unwind
323 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
324 stack_addr is valid before calling get_frame_base. Throw
325 an error if not valid.
326
ae6a105d
DE
3272014-12-12 Doug Evans <xdje42@gmail.com>
328
329 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
330 result != NULL.
331
59da4d04
DE
3322014-12-12 Doug Evans <xdje42@gmail.com>
333
334 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
335 All callers updated. Rename arg "namespace" to "symbol_name".
336
83827540
DE
3372014-12-12 Doug Evans <xdje42@gmail.com>
338
339 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
340 partial_map_symtabs_matching_filename. All uses updated.
341 (psym_find_pc_sect_compunit_symtab): Renamed from
342 find_pc_sect_compunit_symtab_from_partial. All uses updated.
343 Add function comment.
344 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
345 All uses updated. Add function comment.
346 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
347 Add function comment.
348 (psym_find_last_source_symtab): Renamed from
349 find_last_source_symtab_from_partial. All uses updated.
350 Add function comment.
351 (psym_forget_cached_source_info): Renamed from
352 forget_cached_source_info_partial. All uses updated.
353 Add function comment.
354 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
355 All uses updated. Add function comment.
356 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
357 updated. Add function comment.
358 (psym_expand_symtabs_for_function): Renamed from
359 read_symtabs_for_function. All uses updated. Update function comment.
360 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
361 All uses updated. Add function comment.
362 (psym_expand_symtabs_with_fullname): Renamed from
363 read_psymtabs_with_fullname. All uses updated. Add function comment.
364 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
365 All uses updated. Add function comment.
366 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
367 All uses updated.
368 (psym_expand_symtabs_matching): Renamed from
369 expand_symtabs_matching_via_partial. All uses updated.
370 Add function comment.
371 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
372 Add function comment.
373
bb2ec1b3
TT
3742014-12-12 Phil Muldoon <pmuldoon@redhat.com>
375 Jan Kratochvil <jan.kratochvil@redhat.com>
376 Tom Tromey <tromey@redhat.com>
377
378 * NEWS: Update.
379 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
380 field.
381 * p-lang.c (pascal_language_defn): Update.
382 * opencl-lang.c (opencl_language_defn): Update.
383 * objc-lang.c (objc_language_defn): Update.
384 * m2-lang.c (m2_language_defn): Update.
385 * language.h (struct language_defn) <la_get_compile_instance,
386 la_compute_program>: New fields.
387 * language.c (unknown_language_defn, auto_language_defn)
388 (local_language_defn): Update.
389 * jv-lang.c (java_language_defn): Update.
390 * go-lang.c (go_language_defn): Update.
391 * f-lang.c (f_language_defn): Update.
392 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
393 * dwarf2loc.c (dwarf2_compile_property_to_c)
394 (locexpr_generate_c_location, loclist_generate_c_location): New
395 functions.
396 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
397 * defs.h (enum compile_i_scope_types): New.
398 (enum command_control_type) <compile_control>: New constant.
399 (struct command_line) <control_u>: New field.
400 * d-lang.c (d_language_defn): Update.
401 * compile/compile.c: New file.
402 * compile/compile-c-support.c: New file.
403 * compile/compile-c-symbols.c: New file.
404 * compile/compile-c-types.c: New file.
405 * compile/compile.h: New file.
406 * compile/compile-internal.h: New file.
407 * compile/compile-loc2c.c: New file.
408 * compile/compile-object-load.c: New file.
409 * compile/compile-object-load.h: New file.
410 * compile/compile-object-run.c: New file.
411 * compile/compile-object-run.h: New file.
412 * cli/cli-script.c (multi_line_command_p, print_command_lines)
413 (execute_control_command, process_next_line)
414 (recurse_read_control_structure): Handle compile_control.
415 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
416 * c-lang.c (c_language_defn, cplus_language_defn)
417 (asm_language_defn, minimal_language_defn): Update.
418 * ada-lang.c (ada_language_defn): Update.
419 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
420 New variables.
421 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
422 (HFILES_NO_SRCDIR): Add compile.h.
423 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
424 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
425 (compile.o, compile-c-types.o, compile-c-symbols.o)
426 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
427 (compile-c-support.o): New targets.
428
a2658feb
JK
4292014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
430
431 * s390-linux-tdep.c (s390_gcc_target_options): New function.
432 (s390_gdbarch_init): Add it to gdbarch.
433
3bc3cebe
JK
4342014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
435
436 * linux-tdep.c: Include objfiles.h and infcall.h.
437 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
438 function.
439 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
440
d064d1be
JK
4412014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
442
443 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
444 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
445 translate_register. Now public.
446 (dwarf2_compile_expr_to_ax): Update.
447
af945b75
TT
4482014-12-12 Tom Tromey <tromey@redhat.com>
449 Jan Kratochvil <jan.kratochvil@redhat.com>
450
451 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
452 (dwarf_expr_frame_base): Update caller.
453 (dwarf_expr_frame_base_1): Rename to ...
454 (func_get_frame_base_dwarf_block): ... this and make it public.
455 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
456 callers.
457 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
458
a8fd5589
TT
4592014-12-12 Tom Tromey <tromey@redhat.com>
460
461 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
462 Update.
463 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
464 dwarf2_compile_cfa_to_ax.
465 (dwarf2_compile_cfa_to_ax): Remove.
466 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
467 (dwarf2_compile_cfa_to_ax): Remove.
468
ed12ef62
JK
4692014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
470
471 * infcall.h (call_function_by_hand_dummy): Declare.
472 * infcall.c (call_function_by_hand): Use
473 call_function_by_hand_dummy.
474 (call_function_by_hand_dummy): Rename from call_function_by_hand.
475 Add arguments. Register a destructor.
476
ac04f72b
TT
4772014-12-12 Tom Tromey <tromey@redhat.com>
478 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 * osabi.h (osabi_triplet_regexp): Declare.
481 * osabi.c (struct osabi_names): New.
482 (gdb_osabi_names): Change type to struct osabi_names. Update
483 values.
484 (gdbarch_osabi_name): Update.
485 (osabi_triplet_regexp): New function.
486 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
487 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
488 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
489 set_gdbarch_gnu_triplet_regexp.
490 * gdbarch.sh (gnu_triplet_regexp): New method.
491 * gdbarch.c, gdbarch.h: Rebuild.
492 * arch-utils.h (default_gnu_triplet_regexp): Declare.
493 * arch-utils.c (default_gnu_triplet_regexp): New function.
494
f208eee0
JK
4952014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
496
497 * arch-utils.c (default_infcall_mmap)
498 (default_gcc_target_options): New functions.
499 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
500 (GDB_MMAP_PROT_EXEC): Define.
501 (default_infcall_mmap, default_gcc_target_options): Declare.
502 * gdbarch.h: Rebuild.
503 * gdbarch.c: Rebuild.
504 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
505
233a8fb3
JK
5062014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
507
508 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
509 fields.
510 (pop_dummy_frame): Call the destructor if it exists.
511 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
512 functions.
513 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
514 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
515
f1660027
TT
5162014-12-12 Tom Tromey <tromey@redhat.com>
517
518 * gdbtypes.h (make_unqualified_type): Declare.
519 * gdbtypes.c (make_unqualified_type): New function.
520
de571fc5
TT
5212014-12-12 Tom Tromey <tromey@redhat.com>
522
523 * ui-file.h (ui_file_write_for_put): Declare.
524 * ui-file.c (ui_file_write_for_put): New function.
525 * mi/mi-out.c (do_write): Remove.
526 (mi_out_put): Use ui_file_write_for_put.
527
6dddd6a5
DE
5282014-12-12 Doug Evans <dje@google.com>
529
530 * NEWS: Mention gdb.lookup_objfile.
531 * python/python.c (GdbMethods): Add lookup_objfile.
532 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
533 * python/py-objfile.c: #include "symtab.h".
534 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
535 (objfpy_lookup_objfile_by_name): New function.
536 (objfpy_lookup_objfile_by_build_id): New function.
537 (gdbpy_lookup_objfile): New function.
538
f161c171
MR
5392014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
540
541 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
542 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
543 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
544 macros.
545 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
546 Likewise.
547
71c24708
AA
5482014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
549
550 * completer.c: Include "target.h", "reggroups.h", and
551 "user-regs.h".
552 (reg_or_group_completer): New.
553 * completer.h (reg_or_group_completer): Declare.
554 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
555 the "info registers" and "info all-registers" commands and the
556 dbx-mode "lr" command.
557
f5b95c01
AA
5582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
559
560 * user-regs.c: Include "arch-utils.h", "command.h", and
561 "cli/cli-cmds.h".
562 (maintenance_print_user_registers): New.
563 (_initialize_user_regs): Register new "maint print user-registers"
564 subcommand.
565 * NEWS: Mention new GDB command "maint print user-registers".
566
3e29f34a
MR
5672014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
568 Maciej W. Rozycki <macro@mips.com>
569 Pedro Alves <pedro@codesourcery.com>
570
571 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
572 remove `predefault' and `invalid_p' initializers.
573 (make_symbol_special): New architecture method.
574 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
575 (objfile, symbol): New declarations.
576 * arch-utils.h (default_elf_make_msymbol_special): Remove
577 prototype.
578 (default_make_symbol_special): New prototype.
579 (default_adjust_dwarf2_addr): Likewise.
580 (default_adjust_dwarf2_line): Likewise.
581 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
582 * arch-utils.c (default_elf_make_msymbol_special): Remove
583 function.
584 (default_make_symbol_special): New function.
585 (default_adjust_dwarf2_addr): Likewise.
586 (default_adjust_dwarf2_line): Likewise.
587 * dwarf2-frame.c (decode_frame_entry_1): Call
588 `gdbarch_adjust_dwarf2_addr'.
589 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
590 * dwarf2read.c (create_addrmap_from_index): Likewise.
591 (process_psymtab_comp_unit_reader): Likewise.
592 (add_partial_symbol): Likewise.
593 (add_partial_subprogram): Likewise.
594 (process_full_comp_unit): Likewise.
595 (read_file_scope): Likewise.
596 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
597 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
598 (read_call_site_scope): Likewise.
599 (dwarf2_ranges_read): Likewise.
600 (dwarf2_record_block_ranges): Likewise.
601 (read_attribute_value): Likewise.
602 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
603 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
604 * elfread.c (elf_symtab_read): Don't call
605 `gdbarch_elf_make_msymbol_special' if unset.
606 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
607 the ISA bit from the PC.
608 * mips-tdep.c (mips_unmake_compact_addr): New function.
609 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
610 address appropriately.
611 (mips_make_symbol_special): New function.
612 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
613 (mips_pc_is_mips16): Likewise.
614 (mips_pc_is_micromips): Likewise.
615 (mips_pc_isa): Likewise.
616 (mips_adjust_dwarf2_addr): New function.
617 (mips_adjust_dwarf2_line): Likewise.
618 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
619 (mips_addr_bits_remove): Likewise.
620 (mips_skip_trampoline_code): Likewise.
621 (mips_write_pc): Don't set the ISA bit.
622 (mips_eabi_push_dummy_call): Likewise.
623 (mips_o64_push_dummy_call): Likewise.
624 (mips_gdbarch_init): Install `mips_make_symbol_special',
625 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
626 handlers.
627 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
628 target-specific symbol address adjustments.
629 * gdbarch.h: Regenerate.
630 * gdbarch.c: Regenerate.
631
21daaaaf
YQ
6322014-12-12 Yao Qi <yao@codesourcery.com>
633
634 PR tdep/14261
635 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
636 'skip_pc'. Remove code skipping prologue instructions, use
637 arm_analyze_prologue instead.
638 (arm_analyze_prologue): Stop the scanning for unrecognized
639 instruction when skipping prologue.
640
f303bc3e
YQ
6412014-12-12 Yao Qi <yao@codesourcery.com>
642
643 * arm-tdep.c (arm_instruction_restores_sp): New function.
644 (arm_analyze_prologue): Call arm_instruction_restores_sp.
645 (arm_in_function_epilogue_p): Move code to
646 arm_instruction_restores_sp.
647
05a6c3c8
DE
6482014-12-11 Doug Evans <xdje42@gmail.com>
649
650 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
651
fe2a438d
DE
6522014-12-11 Doug Evans <xdje42@gmail.com>
653
654 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
655 (symbol *lookup_symbol_via_quick_fns): Ditto.
656 (lookup_symbol_in_objfile): Add forward decl.
657 (lookup_global_symbol_from_objfile): Simplify, call
658 lookup_symbol_in_objfile.
659
540feddf
DE
6602014-12-11 Doug Evans <xdje42@gmail.com>
661
662 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
663
fc126975
SM
6642014-12-10 Simon Marchi <simon.marchi@ericsson.com>
665
666 PR breakpoints/17012
667 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
668 it is marked as persistent.
669
56286edf
DE
6702014-12-10 Doug Evans <xdje42@gmail.com>
671
672 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
673 closer to its subroutines.
674
34ef8452
DE
6752014-12-10 Doug Evans <xdje42@gmail.com>
676
677 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
678
9a80057a
DE
6792014-12-10 Doug Evans <xdje42@gmail.com>
680
681 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 682 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 683
1abf3a14
SM
6842014-12-10 Simon Marchi <simon.marchi@ericsson.com>
685
686 PR gdb/17627
687 * target.c (cleanup_restore_target_terminal): New function.
688 (make_cleanup_restore_target_terminal): New function.
689 * target.h (make_cleanup_restore_target_terminal): New declaration.
690 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
691
d4d1e336
DE
6922014-12-08 Doug Evans <dje@google.com>
693
694 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
695
a0be3e44
DE
6962014-12-08 Doug Evans <dje@google.com>
697
698 * NEWS: Mention gdb.Objfile.owner.
699 * python/py-objfile.c (objfpy_get_owner): New function.
700 (objfile_getset): Add "owner".
701
6c1c7be3
JK
7022014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
703
704 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
705 (lookup_global_symbol_from_objfile): Call it.
706
efad9b6a
JK
7072014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
708
709 Remove const from struct objfile *.
710 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
711 symtab.c, symtab.h: In these files.
712
069bb7ec
AF
7132014-12-05 Andreas From <andreas.from@ericsson.com>
714
715 * MAINTAINERS (Write After Approval): Add "Andreas From"
716
642a8d80
DE
7172014-12-05 Doug Evans <xdje42@gmail.com>
718
719 Revert:
720 PR symtab/17602
721 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
722
86e4ed39
DE
7232014-12-04 Doug Evans <dje@google.com>
724
725 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
726 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
727 (objfile_getset): Add "add_separate_debug_file".
728
7c50a931
DE
7292014-12-04 Doug Evans <dje@google.com>
730
731 * NEWS: Mention gdb.Objfile.build_id.
732 * build-id.c (build_id_bfd_get): Make non-static.
733 * build-id.h (build_id_bfd_get): Add declaration.
734 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
735 (OBJFPY_REQUIRE_VALID): New macro.
736 (objfpy_get_build_id): New function.
737 (objfile_getset): Add "build_id".
738 * utils.c (make_hex_string): New function.
739 * utils.h (make_hex_string): Add declaration.
740
ba715d7f
JK
7412014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
742
743 * block.c (block_lookup_symbol_primary): New function.
744 * block.h (block_lookup_symbol_primary): New declaration.
745 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
746 Call block_lookup_symbol_primary.
747
858339f2
MR
7482014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
749
750 * tramp-frame.h (tramp_frame): Add `validate' member.
751 * tramp-frame.c (tramp_frame_start): Validate trampoline before
752 scanning.
753 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
754 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
755 (mips_linux_o32_sigframe): Initialize `validate' member.
756 (mips_linux_o32_rt_sigframe): Likewise.
757 (mips_linux_n32_rt_sigframe): Likewise.
758 (mips_linux_n64_rt_sigframe): Likewise.
759 (micromips_linux_o32_sigframe): New variable.
760 (micromips_linux_o32_rt_sigframe): Likewise.
761 (micromips_linux_n32_rt_sigframe): Likewise.
762 (micromips_linux_n64_rt_sigframe): Likewise.
763 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
764 (mips_linux_n32n64_sigframe_init): Likewise.
765 (mips_linux_sigframe_validate): New function.
766 (micromips_linux_sigframe_validate): Likewise.
767 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
768
ff1eb2b5
UW
7692014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
770
771 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
772 * sparc-sol2-tdep.c: Include "regset.h".
773 (sparc32_sol2_supply_core_gregset): New function.
774 (sparc32_sol2_collect_core_gregset): Likewise.
775 (sparc32_sol2_supply_core_fpregset): Likewise.
776 (sparc32_sol2_collect_core_fpregset): Likewise.
777 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
778 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
779 tdep->fpregset/sizeof_fpregset.
780 * sparc64-sol2-tdep.c: Include "regset.h".
781 (sparc64_sol2_supply_core_gregset): New function.
782 (sparc64_sol2_collect_core_gregset): Likewise.
783 (sparc64_sol2_supply_core_fpregset): Likewise.
784 (sparc64_sol2_collect_core_fpregset): Likewise.
785 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
786 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
787 tdep->fpregset/sizeof_fpregset.
788
75783939
SM
7892014-12-03 Simon Marchi <simon.marchi@ericsson.com>
790
791 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
792 type.
793
7c5fdd25
DE
7942014-12-02 Doug Evans <dje@google.com>
795
796 * symtab.c (symbol_init_cplus_specific): Delete.
797 (symbol_set_demangled_name): Remove special c++ support.
798 (symbol_get_demangled_name, symbol_set_language): Ditto.
799 * symtab.h (struct cplus_specific): Delete.
800 (struct general_symbol_info) <language_specific>: Remove
801 cplus_specific.
802
29f0c3b7
DE
8032014-12-02 Doug Evans <dje@google.com>
804
805 PR symtab/17602
806 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
807
72998fb3
DE
8082014-12-02 Doug Evans <dje@google.com>
809
810 PR symtab/17591
811 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
812 to strip parameters.
813
422b9917
DE
8142014-12-02 Doug Evans <dje@google.com>
815
816 * dwarf2read.c (peek_die_abbrev): Improve error message text.
817
47c6ee49
DE
8182014-12-02 Doug Evans <dje@google.com>
819
820 * valops.c (do_search_struct_field): Remove remnant of Chill support.
821 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
822
5da3ffc9
SM
8232014-12-02 Simon Marchi <simon.marchi@ericsson.com>
824
825 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
826
162078c8
NB
8272014-12-02 Nick Bull <nicholaspbull@gmail.com>
828
829 * NEWS: Mention new Python events.
830 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
831 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
832 (py-infevents.o): New rule.
833 * doc/observer.texi (inferior_call_pre, inferior_call_post)
834 (memory_changed, register_changed): New observers.
835 * infcall.c (call_function_by_hand): Notify observer before and
836 after inferior call.
837 * python/py-event.h (inferior_call_kind): New enum.
838 (emit_inferior_call_event): New prototype.
839 (emit_register_changed_event): New prototype.
840 (emit_memory_changed_event): New prototype.
841 * python/py-events.h (events_object): New registries
842 inferior_call, memory_changed and register_changed.
843 * python/py-evts.c (gdbpy_initialize_py_events): Add the
844 inferior_call, memory_changed and register_changed registries.
845 * python/py-infevents.c: New.
846 * python/py-inferior.c (python_on_inferior_call_pre)
847 (python_on_inferior_call_post, python_on_register_change)
848 (python_on_memory_change): New functions.
849 (gdbpy_initialize_inferior): Attach python handler to new
850 observers.
851 * python/py-infthread.c(gdbpy_create_ptid_object): New.
852 (thpy_get_ptid) Use gdbpy_create_ptid_object.
853 * python/python-internal.h:
854 (gdbpy_create_ptid_object)
855 (gdbpy_initialize_inferior_call_pre_event)
856 (gdbpy_initialize_inferior_call_post_event)
857 (gdbpy_initialize_register_changed_event)
858 (gdbpy_initialize_memory_changed_event): New prototypes.
859 * python/python.c (_initialize_python): Initialize new events.
860 * valops.c (value_assign): Notify register_changed observer.
861
007baf27
DE
8622014-12-02 Doug Evans <dje@google.com>
863
864 * python/py-infthread.c: Whitespace fixes.
865
d5552aab
AA
8662014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
867
868 * features/Makefile (s390-te-linux64-expedite): Replace
869 non-existant r14 and r15 by r14l and r15l, respectively.
870 * regformats/s390-te-linux64.dat: Regenerate.
871
30b5e341
SM
8722014-12-01 Simon Marchi <simon.marchi@ericsson.com>
873
874 * objfiles.c (allocate_objfile): Remove duplicate comment.
875
ac3d87c0
UW
8762014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
877
878 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
879 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
880 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
881 (supply_gregset, supply_fpregset): Remove.
882 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
883 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
884 and sizeof_gregset.
885
f10c5b19
JK
8862014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
887
888 Add add-auto-load-scripts-directory.
889 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
890 * auto-load.c (add_auto_load_dir): New function.
891 (_initialize_auto_load): Install it.
892
f0d4ba1f
MG
8932014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
894
895 Pushed by Joel Brobecker <brobecker@adacore.com>.
896 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
897
18ac6ffc
SC
8982014-11-29 Siva Chandra Reddy <sivachandra@google.com>
899
900 * eval.c (evaluate_subexp): Check that the thread stack temporaries
901 are not already enabled before enabling them.
902
4072f920
YQ
9032014-11-29 Yao Qi <yao@codesourcery.com>
904
905 * arm-tdep.c (arm_analyze_prologue): Move local variables
906 'framereg' and 'framesize' to inner block. Move code to
907 inner block too.
908
6c659fc2
SC
9092014-11-28 Siva Chandra Reddy <sivachandra@google.com>
910
911 * eval.c: Include gdbthread.h.
912 (evaluate_subexp): Enable thread stack temporaries before
913 evaluating a complete expression and clean them up after the
914 evaluation is complete.
915 * gdbthread.h: Include common/vec.h.
916 (value_ptr): New typedef.
917 (VEC (value_ptr)): New vector type.
918 (value_vec): New typedef.
919 (struct thread_info): Add new fields stack_temporaries_enabled
920 and stack_temporaries.
921 (enable_thread_stack_temporaries)
922 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
923 (get_last_thread_stack_temporary)
924 (value_in_thread_stack_temporaries): Declare.
925 * gdbtypes.c (class_or_union_p): New function.
926 * gdbtypes.h (class_or_union_p): Declare.
927 * infcall.c (call_function_by_hand): Store return values of class
928 type as temporaries on stack.
929 * thread.c (enable_thread_stack_temporaries): New function.
930 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
931 (get_last_thread_stack_temporary): Likewise.
932 (value_in_thread_stack_temporaries): Likewise.
933 * value.c (value_force_lval): New function.
934 * value.h (value_force_lval): Declare.
935
f7ca3fcf
PM
9362014-11-28 Pierre Muller <muller@sourceware.org>
937
938 Pushed by Joel Brobecker <brobecker@adacore.com>.
939 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
940 registers.
941
b2859a9a
UW
9422014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
943
944 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
945 * config/sparc/linux.mh (NATDEPFILES): Likewise.
946 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
947 * m68klinux-nat.c (fetch_core_registers): Remove.
948 (linux_elf_core_fns): Remove.
949 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
950
0fa9473f
JB
9512014-11-28 Joel Brobecker <brobecker@adacore.com>
952
953 * utils.c (gdb_realpath): Rework comment about handling on
954 Windows.
955
6a29c58e
YQ
9562014-11-28 Yao Qi <yao@codesourcery.com>
957
958 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
959 rename.
960 * gnulib/aclocal.m4: Re-generated.
961 * gnulib/config.in: Re-generated.
962 * gnulib/configure: Re-generated.
963 * gnulib/import/Makefile.am: Re-generated.
964 * gnulib/import/Makefile.in: Re-generated.
965 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
966 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
967 * import/basename-lgpl.c: New file.
968 * import/dirname-lgpl.c: New file.
969 * import/dirname.h: New file.
970 * import/m4/dirname.m4: New file.
971 * import/m4/malloc.m4: New file.
972 * import/m4/rename.m4: New file.
973 * import/m4/rmdir.m4: New file.
974 * import/m4/stdio_h.m4: New file.
975 * import/malloc.c: New file.
976 * import/rename.c: New file.
977 * import/rmdir.c: New file.
978 * import/same-inode.h: New file.
979 * import/stdio.c: New file.
980 * import/stdio.in.h: New file.
981 * import/stripslash.c: New file.
982
abbffc89
YQ
9832014-11-28 Yao Qi <yao@codesourcery.com>
984
985 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
986 and realpath.
987 * config.in: Re-generated.
988 * configure: Re-generated.
989 * utils.c (gdb_realpath): Remove code calling realpath,
990 canonicalize_file_name and pathconf.
991 [!_WIN32]: Call canonicalize_file_name.
992
98399780
YQ
9932014-11-28 Yao Qi <yao@codesourcery.com>
994
995 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
996 canonicalize-lgpl.
997 * aclocal.m4: Re-generated.
998 * config.in: Re-generated.
999 * configure: Re-generated.
1000 * import/Makefile.am: Re-generated.
1001 * import/Makefile.in: Re-generated.
1002 * import/m4/gnulib-cache.m4: Re-generated.
1003 * import/m4/gnulib-comp.m4: Re-generated.
1004 * import/canonicalize-lgpl.c: New file.
1005 * import/extra/snippet/_Noreturn.h: New file.
1006 * import/m4/canonicalize.m4: New file.
1007 * import/m4/double-slash-root.m4: New file.
1008 * import/m4/eealloc.m4: New file.
1009 * import/m4/malloca.m4: New file.
1010 * import/m4/nocrash.m4: New file.
1011 * import/m4/stdlib_h.m4: New file.
1012 * import/malloca.c: New file.
1013 * import/malloca.h: New file.
1014 * import/malloca.valgrind: New file.
1015
3332aaf2
YQ
10162014-11-28 Yao Qi <yao@codesourcery.com>
1017
1018 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1019 * config.in, configure: Regenerate.
1020 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1021 code checking HAVE_LSTAT is defined.
1022
f45c62c4
YQ
10232014-11-28 Yao Qi <yao@codesourcery.com>
1024
1025 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1026 lstat.
1027 * gnulib/aclocal.m4: Re-generated.
1028 * gnulib/config.in: Re-generated.
1029 * gnulib/configure: Re-generated.
1030 * gnulib/import/Makefile.am: Re-generated.
1031 * gnulib/import/Makefile.in: Re-generated.
1032 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1033 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1034 * gnulib/import/lstat.c: New file.
1035 * gnulib/import/m4/lstat.m4: New file.
1036
bdca27a2
YQ
10372014-11-28 Yao Qi <yao@codesourcery.com>
1038
1039 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1040 * config.in, configure: Re-generate.
1041 * inf-child.c (inf_child_fileio_readlink): Don't check
1042 HAVE_READLINK is defined.
1043
2196f55f
YQ
10442014-11-28 Yao Qi <yao@codesourcery.com>
1045
1046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1047 * gnulib/aclocal.m4: Re-generated.
1048 * gnulib/config.in: Likewise.
1049 * gnulib/configure: Likewise.
1050 * gnulib/import/Makefile.am: Likewise.
1051 * gnulib/import/Makefile.in: Likewise.
1052 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1053 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1054 * gnulib/import/dosname.h: New file
1055 * gnulib/import/m4/largefile.m4: New file.
1056 * gnulib/import/m4/readlink.m4: New file.
1057 * gnulib/import/m4/stat.m4: New file.
1058 * gnulib/import/readlink.c: New file.
1059 * gnulib/import/stat.c: New file.
1060
7014e923 10612014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1062
1063 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1064 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1065
aa489395
SL
10662014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1067
1068 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1069 that there can be only one stack adjustment in the prologue
1070 with tests to detect specific disallowed stack adjustments.
1071
7f1659b5
SL
10722014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1073
1074 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1075 adjustments.
1076
d53c26c7
SL
10772014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1078
1079 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1080 the instruction as well as reading it from memory.
1081 (nios2_match_add): New.
1082 (nios2_match_sub): New.
1083 (nios2_match_addi): New.
1084 (nios2_match_orhi): New.
1085 (nios2_match_stw): New.
1086 (nios2_match_ldw): New.
1087 (nios2_match_rdctl): New.
1088 (enum branch_condition): New.
1089 (nios2_match_branch): New.
1090 (nios2_match_jmpi): New.
1091 (nios2_match_calli): New.
1092 (nios2_match_jmpr): New.
1093 (nios2_match_callr): New.
1094 (nios2_match_break): New.
1095 (nios2_match_trap): New.
1096 (nios2_in_epilogue_p): Rewrite to use new functions.
1097 (nios2_analyze_prologue): Likewise.
1098 (nios2_skip_prologue): Delete unused local limit_pc.
1099 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1100 (nios2_get_next_pc): Rewrite to use new functions.
1101
cac9b138
JK
11022014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1105
a441dfbc
ST
11062014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1107
1108 Pushed by Joel Brobecker <brobecker@adacore.com>
1109 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1110 elements pi_len by the size of the elements before calling
1111 vm_deallocate.
1112 (inf_validate_task_sc): Likewise, and properly deallocate the
1113 noise array.
1114
4c9e8482
DE
11152014-11-23 Doug Evans <xdje42@gmail.com>
1116
1117 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1118 number and name if present. All callers updated.
1119 (dump_fn_fieldlists): Fix indentation of args.
1120
15ee0bbd
PP
11212014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1122
1123 * MAINTAINERS (Write After Approval): Add myself.
1124
e8af5d7a
JB
11252014-11-23 Joel Brobecker <brobecker@adacore.com>
1126
1127 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1128 to a bp_call_dummy breakpoint type.
1129
a344fc09
PP
11302014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1131
1132 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1133 registering the signal handler.
1134
d64e57fa
PP
11352014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1136
1137 * event-top.h (call_stdin_event_handler_again_p): Declare.
1138 * event-top.c (call_stdin_event_handler_again_p): Define.
1139 (stdin_event_handler): Use it.
1140 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1141 handler again if there is pending input following a
1142 start sequence.
1143
6f9d33d8
PP
11442014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1145
1146 Pushed by Joel Brobecker <brobecker@adacore.com>
1147 * linux-fork.c (checkpoint_command): Print index of new
1148 checkpoint in response message.
1149
88db67ef
YQ
11502014-11-23 Yao Qi <yao@codesourcery.com>
1151
1152 * valprint.c (read_string): Move local variables 'found_nul',
1153 'chunksize' and 'limit' to inner scope. Update comments.
1154
01465b56
DE
11552014-11-22 Doug Evans <xdje42@gmail.com>
1156
1157 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1158 function comment.
1159 (search_symbols): Fix comments and whitespace.
1160
07a1c2c3
DE
11612014-11-22 Doug Evans <xdje42@gmail.com>
1162
1163 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1164
b2a919a8
DE
11652014-11-21 Doug Evans <dje@google.com>
1166
1167 * psymtab.c (psymtab_search_name): Fix whitespace.
1168
278289d5
YQ
11692014-11-21 Yao Qi <yao@codesourcery.com>
1170
1171 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1172 errno.
1173 * gnulib/import/Makefile.am: Re-generated.
1174 * gnulib/import/Makefile.in: Likewise.
1175 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1176
e01e2baa
YQ
11772014-11-21 Yao Qi <yao@codesourcery.com>
1178
1179 * gdb_wchar.h: Include wchar.h and wctype.h.
1180 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1181 include wchar.h and wctype.h.
1182 Don't check HAVE_WCHAR_H.
1183
f0c00af8
YQ
11842014-11-21 Yao Qi <yao@codesourcery.com>
1185
1186 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1187 and wctype-h.
1188 * gnulib/import/Makefile.am: Re-generated.
1189 * gnulib/import/Makefile.in: Likewise.
1190 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1191
0cae13bb
YQ
11922014-11-21 Yao Qi <yao@codesourcery.com>
1193
1194 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1195 memchr.
1196 * gnulib/import/Makefile.am: Re-generated.
1197 * gnulib/import/Makefile.in: Likewise.
1198 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1199
9c232dda
YQ
12002014-11-21 Yao Qi <yao@codesourcery.com>
1201
1202 * common/common-defs.h: Include alloca.h
1203 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1204 * configure: Re-generated.
1205 * defs.h: Remove code handling alloca.
1206 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1207 or not.
1208
00d7f58f
YQ
12092014-11-21 Yao Qi <yao@codesourcery.com>
1210
1211 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1212 alloca.
1213 * gnulib/import/Makefile.am: Re-generated.
1214 * gnulib/import/Makefile.in: Likewise..
1215 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1216
6068ad5d
YQ
12172014-11-21 Yao Qi <yao@codesourcery.com>
1218
1219 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1220 alphabetical order.
1221
45e44d27
JB
12222014-11-21 Joel Brobecker <brobecker@adacore.com>
1223
1224 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1225 flag_unsigned if HIGH_BOUND is constant and negative.
1226
7e7cbeb3
SDJ
12272014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1228
1229 PR breakpoints/10737
1230 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1231 modifier from "struct gdbarch" when compiling without Expat (XML)
1232 support.
1233 (get_syscall_by_number): Likewise.
1234 (get_syscall_by_name): Likewise.
1235 (get_syscall_names): Likewise.
1236
458c8db8
SDJ
12372014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1238
1239 PR breakpoints/10737
1240 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1241 set_xml_syscall_file_name to provide gdbarch.
1242 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1243 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1244 * breakpoint.c (print_it_catch_syscall): Adjust call to
1245 get_syscall_by_number to provide gdbarch.
1246 (print_one_catch_syscall): Likewise.
1247 (print_mention_catch_syscall): Likewise.
1248 (print_recreate_catch_syscall): Likewise.
1249 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1250 and get_syscall_by_name to provide gdbarch.
1251 (catch_syscall_completer): Adjust call to get_syscall_names to
1252 provide gdbarch.
1253 * gdbarch.c: Regenerate.
1254 * gdbarch.h: Likewise.
1255 * gdbarch.sh: Forward declare "struct syscalls_info".
1256 (xml_syscall_file): New variable.
1257 (syscalls_info): Likewise.
1258 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1259 set_xml_syscall_file_name to provide gdbarch.
1260 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1261 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1262 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1263 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1264 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1265 * xml-syscall.c: Include gdbarch.h.
1266 (set_xml_syscall_file_name): Accept gdbarch parameter.
1267 (get_syscall_by_number): Likewise.
1268 (get_syscall_by_name): Likewise.
1269 (get_syscall_names): Likewise.
1270 (my_gdb_datadir): Delete global variable.
1271 (struct syscalls_info) <my_gdb_datadir>: New variable.
1272 (struct syscalls_info) <sysinfo>: Rename variable to
1273 "syscalls_info".
1274 (sysinfo): Delete global variable.
1275 (have_initialized_sysinfo): Likewise.
1276 (xml_syscall_file): Likewise.
1277 (sysinfo_free_syscalls_desc): Rename to...
1278 (syscalls_info_free_syscalls_desc): ... this.
1279 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1280 code to the new layout of "struct syscalls_info".
1281 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1282 "syscalls_info".
1283 (syscall_create_syscall_desc): Likewise.
1284 (syscall_start_syscall): Likewise.
1285 (syscall_parse_xml): Likewise.
1286 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1287 (init_sysinfo): Rename to...
1288 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1289 Adjust function to deal with gdbarch.
1290 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1291 gdbarch as a parameter. Adjust code.
1292 (xml_get_syscall_name): Likewise.
1293 (xml_list_of_syscalls): Likewise.
1294 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1295 (get_syscall_by_number): Likewise.
1296 (get_syscall_by_name): Likewise.
1297 (get_syscall_names): Likewise.
1298 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1299 (get_syscall_by_number): Likewise.
1300 (get_syscall_by_name): Likewise.
1301 (get_syscall_names): Likewise.
1302
43f3e411
DE
13032014-11-20 Doug Evans <xdje42@gmail.com>
1304
1305 Split struct symtab into two: struct symtab and compunit_symtab.
1306 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1307 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1308 to "struct compunit_symtab *". All callers updated.
1309 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1310 "struct symtab *" argument to "struct compunit_symtab *".
1311 All callers updated.
1312 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1313 result to "struct compunit_symtab *". All callers updated.
1314 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1315 Change result to "struct compunit_symtab *". All callers updated.
1316 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1317 hange type to "struct compunit_symtab *". All uses updated.
1318 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1319 Change type to "struct compunit_symtab *". All uses updated.
1320 * buildsym.c (struct buildsym_compunit): New struct.
1321 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1322 (buildsym_compunit): New static global.
1323 (finish_block_internal): Update to fetch objfile from
1324 buildsym_compunit.
1325 (make_blockvector): Delete objfile argument.
1326 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1327 debugformat, producer.
1328 (start_buildsym_compunit): New function.
1329 (free_buildsym_compunit): Renamed from free_subfiles_list.
1330 All callers updated.
1331 (patch_subfile_names): Rewrite to use buildsym_compunit.
1332 (get_compunit_symtab): New function.
1333 (get_macro_table): Delete argument comp_dir. All callers updated.
1334 (start_symtab): Change result to "struct compunit_symtab *".
1335 All callers updated. Create the subfile of the main source file.
1336 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1337 (reset_symtab_globals): Update.
1338 (end_symtab_get_static_block): Update to use buildsym_compunit.
1339 (end_symtab_without_blockvector): Rewrite.
1340 (end_symtab_with_blockvector): Change result to
1341 "struct compunit_symtab *". All callers updated.
1342 Update to use buildsym_compunit. Don't set symtab->dirname,
1343 instead set it in the compunit.
1344 Explicitly make sure main symtab is first in its list.
1345 Set debugformat, producer, blockvector, block_line_section, and
1346 macrotable in the compunit.
1347 (end_symtab_from_static_block): Change result to
1348 "struct compunit_symtab *". All callers updated.
1349 (end_symtab, end_expandable_symtab): Ditto.
1350 (set_missing_symtab): Change symtab argument to
1351 "struct compunit_symtab *". All callers updated.
1352 (augment_type_symtab): Ditto.
1353 (record_debugformat): Update to use buildsym_compunit.
1354 (record_producer): Update to use buildsym_compunit.
1355 * buildsym.h (struct subfile) <dirname>: Delete.
1356 <producer, debugformat>: Delete.
1357 <buildsym_compunit>: New member.
1358 (get_compunit_symtab): Declare.
1359 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1360 from primary_symtab. Change type to "struct compunit_symtab *".
1361 All uses updated.
1362 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1363 All callers updated.
1364 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1365 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1366 symtab. Change type to "struct compunit_symtab *". All uses updated.
1367 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1368 All callers updated.
1369 (dw2_find_last_source_symtab): Ditto.
1370 (dw2_lookup_symbol): Ditto.
1371 (recursively_find_pc_sect_compunit_symtab): Renamed from
1372 recursively_find_pc_sect_symtab. Change result to
1373 "struct compunit_symtab *". All callers updated.
1374 (dw2_find_pc_sect_compunit_symtab): Renamed from
1375 dw2_find_pc_sect_symtab. Change result to
1376 "struct compunit_symtab *". All callers updated.
1377 (get_compunit_symtab): Renamed from get_symtab. Change result to
1378 "struct compunit_symtab *". All callers updated.
1379 (recursively_compute_inclusions): Change type of immediate_parent
1380 argument to "struct compunit_symtab *". All callers updated.
1381 (compute_compunit_symtab_includes): Renamed from
1382 compute_symtab_includes. All callers updated. Rewrite to compute
1383 includes of compunit_symtabs and not symtabs.
1384 (process_full_comp_unit): Update to work with struct compunit_symtab.
1385 (process_full_type_unit): Ditto.
1386 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1387 (dwarf_decode_lines): Remove special case handling of main subfile.
1388 (macro_start_file): Delete argument comp_dir. All callers updated.
1389 (dwarf_decode_macro_bytes): Ditto.
1390 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1391 use struct compunit_symtab.
1392 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1393 * jit.c (finalize_symtab): Build compunit_symtab.
1394 * jv-lang.c (get_java_class_symtab): Change result to
1395 "struct compunit_symtab *". All callers updated.
1396 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1397 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1398 comp_dir. Change type to "struct compunit_symtab *".
1399 All uses updated.
1400 (new_macro_table): Change comp_dir argument to cust,
1401 "struct compunit_symtab *". All callers updated.
1402 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1403 nr_primary_symtabs. All uses updated.
1404 (count_symtabs_and_blocks): Update to handle compunits.
1405 (report_command_stats): Update output, "primary symtabs" renamed to
1406 "compunits".
1407 * mdebugread.c (new_symtab): Change result to
1408 "struct compunit_symtab *". All callers updated.
1409 (parse_procedure): Change type of search_symtab argument to
1410 "struct compunit_symtab *". All callers updated.
1411 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1412 separate loop.
1413 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1414 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1415 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1416 All uses updated.
1417 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1418 All uses updated.
1419 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1420 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1421 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1422 symtab. Change type to "struct compunit_symtab *". All uses updated.
1423 * psymtab.c (psymtab_to_symtab): Change result type to
1424 "struct compunit_symtab *". All callers updated.
1425 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1426 find_pc_sect_symtab_from_partial. Change result type to
1427 "struct compunit_symtab *". All callers updated.
1428 (lookup_symbol_aux_psymtabs): Change result type to
1429 "struct compunit_symtab *". All callers updated.
1430 (find_last_source_symtab_from_partial): Ditto.
1431 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1432 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1433 and macro_table from compunit.
1434 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1435 type to "struct compunit_symtab *". All callers updated.
1436 (debug_qf_lookup_symbol): Ditto.
1437 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1438 debug_qf_find_pc_sect_symtab, change result type to
1439 "struct compunit_symtab *". All callers updated.
1440 * symfile.c (allocate_symtab): Delete objfile argument.
1441 New argument cust.
1442 (allocate_compunit_symtab): New function.
1443 (add_compunit_symtab_to_objfile): New function.
1444 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1445 Change result type to "struct compunit_symtab *". All uses updated.
1446 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1447 Change result type to "struct compunit_symtab *". All uses updated.
1448 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1449 separate loop.
1450 (dump_symtab_1): Update test for primary source symtab.
1451 (maintenance_info_symtabs): Update to handle compunit symtabs.
1452 (maintenance_check_symtabs): Ditto.
1453 * symtab.c (set_primary_symtab): Delete.
1454 (compunit_primary_filetab): New function.
1455 (compunit_language): New function.
1456 (iterate_over_some_symtabs): Change type of arguments "first",
1457 "after_last" to "struct compunit_symtab *". All callers updated.
1458 Update to loop over symtabs in each compunit.
1459 (error_in_psymtab_expansion): Rename symtab argument to cust,
1460 and change type to "struct compunit_symtab *". All callers updated.
1461 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1462 Change result type to "struct compunit_symtab *". All callers updated.
1463 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1464 Change result type to "struct compunit_symtab *". All callers updated.
1465 (find_pc_sect_line): Only loop over symtabs within selected compunit
1466 instead of all symtabs in the objfile.
1467 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1468 <compunit_symtab> New member.
1469 <block_line_section>: Moved to compunit_symtab.
1470 <locations_valid>: Ditto.
1471 <epilogue_unwind_valid>: Ditto.
1472 <macro_table>: Ditto.
1473 <dirname>: Ditto.
1474 <debugformat>: Ditto.
1475 <producer>: Ditto.
1476 <objfile>: Ditto.
1477 <call_site_htab>: Ditto.
1478 <includes>: Ditto.
1479 <user>: Ditto.
1480 <primary>: Delete
1481 (SYMTAB_COMPUNIT): New macro.
1482 (SYMTAB_BLOCKVECTOR): Update definition.
1483 (SYMTAB_OBJFILE): Update definition.
1484 (SYMTAB_DIRNAME): Update definition.
1485 (struct compunit_symtab): New type. Common members among all source
1486 symtabs within a compilation unit moved here. All uses updated.
1487 (COMPUNIT_OBJFILE): New macro.
1488 (COMPUNIT_FILETABS): New macro.
1489 (COMPUNIT_DEBUGFORMAT): New macro.
1490 (COMPUNIT_PRODUCER): New macro.
1491 (COMPUNIT_DIRNAME): New macro.
1492 (COMPUNIT_BLOCKVECTOR): New macro.
1493 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1494 (COMPUNIT_LOCATIONS_VALID): New macro.
1495 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1496 (COMPUNIT_CALL_SITE_HTAB): New macro.
1497 (COMPUNIT_MACRO_TABLE): New macro.
1498 (ALL_COMPUNIT_FILETABS): New macro.
1499 (compunit_symtab_ptr): New typedef.
1500 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1501
005e2509
JB
15022014-11-20 Joel Brobecker <brobecker@adacore.com>
1503
1504 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1505 if the TYPE_CODE of range_type's base type does not match
1506 the TYPE_CODE of encoding_type's base type.
1507
2b0f535a
JB
15082014-11-19 Joel Brobecker <brobecker@adacore.com>
1509
1510 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1511 it starts with '<'.
1512
8908fca5
JB
15132014-11-19 Joel Brobecker <brobecker@adacore.com>
1514
1515 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1516 (ada_is_redundant_index_type_desc): New function.
1517 (to_fixed_array_type): Ignore parallel XA type if redundant.
1518
4a46959e
JB
15192014-11-19 Joel Brobecker <brobecker@adacore.com>
1520
1521 * ada-lang.c (constrained_packed_array_type): Set the length
1522 of the return array as if both bounds where zero if that
1523 returned array's index type is dynamic.
1524
2acf986b
YQ
15252014-11-19 Yao Qi <yao@codesourcery.com>
1526
1527 * config/i386/go32.mh (CC): Remove.
1528
439247b6
DE
15292014-11-18 Doug Evans <xdje42@gmail.com>
1530
1531 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1532 updated.
1533
4d663531
DE
15342014-11-18 Doug Evans <xdje42@gmail.com>
1535
1536 * buildsym.c (buildsym_objfile): New static global.
1537 (buildsym_comp_dir): New static global.
1538 (finish_block_internal): Delete arg objfile. All callers updated.
1539 (finish_block): Delete arg objfile. All callers updated.
1540 (start_subfile): Delete arg dirname. All callers updated.
1541 (patch_subfile_names): Update buildsym_comp_dir.
1542 (get_macro_table): Delete arg objfile. All callers updated.
1543 (start_symtab): New arg objfile. All callers updated.
1544 Rename arg dirname to comp_dir.
1545 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1546 (end_symtab_get_static_block): Delete arg objfile. All callers
1547 updated.
1548 (end_symtab_without_blockvector): Ditto.
1549 (end_symtab_with_blockvector): Ditto.
1550 (end_symtab_from_static_block): Ditto.
1551 (end_symtab): Ditto.
1552 (end_expandable_symtab): Ditto.
1553 (augment_type_symtab): Ditto.
1554 * coffread.c (coff_start_symtab): New arg objfile. All callers
1555 updated.
1556
8435453b
DE
15572014-11-18 Doug Evans <xdje42@gmail.com>
1558
1559 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1560 updated.
1561
ee6f8984
DE
15622014-11-18 Doug Evans <xdje42@gmail.com>
1563
1564 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1565 symtab.dirname updated to use it.
1566
eb822aa6
DE
15672014-11-18 Doug Evans <xdje42@gmail.com>
1568
1569 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1570 symtab.objfile updated to use it.
1571
98387a29
DE
15722014-11-18 Doug Evans <xdje42@gmail.com>
1573
1574 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1575
aff08958
DE
15762014-11-18 Doug Evans <xdje42@gmail.com>
1577
1578 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1579 SYMBOL_OBJFILE.
1580 * findvar.c (default_read_var_value): Ditto.
1581 * jv-lang.c (add_class_symtab_symbol): Ditto.
1582 * parse.c (operator_check_standard): Ditto.
1583 * printcmd.c (address_info): Ditto.
1584 * symtab.c (fixup_symbol_section): Ditto.
1585 (skip_prologue_sal): Ditto.
1586 * tracepoint.c (scope_info): Ditto.
1587 * valops.c (find_function_in_inferior): Ditto.
1588 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1589 * python/py-symbol.c (set_symbol): Ditto.
1590
7bab9b58
DE
15912014-11-18 Doug Evans <xdje42@gmail.com>
1592
1593 * buildsym.c (main_subfile): New static global.
1594 (free_subfiles_list): New function.
1595 (start_symtab): Set main_subfile.
1596 (restart_symtab): Replace init of subfiles, current_subfile with
1597 call to free_subfiles_list.
1598 (watch_main_source_file_lossage): Use main_subfile.
1599 (reset_symtab_globals): Replace init of current_subfile with call
1600 to free_subfiles_list.
1601 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1602 functions, split out from ...
1603 (end_symtab_from_static_block): ... here. Rewrite to call them.
1604
f194fefb
DE
16052014-11-18 Doug Evans <xdje42@gmail.com>
1606
1607 The result of symtab expansion is always a primary symtab.
1608 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1609 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1610 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1611 (psymtab_to_symtab): Add comment and assert.
1612 (map_matching_symbols_psymtab): Remove unnecessary test for
1613 non-primary symtab.
1614
34248c3a
DE
16152014-11-15 Doug Evans <xdje42@gmail.com>
1616
1617 PR symtab/17559
1618 * symtab.c (find_pc_line_symtab): New function.
1619 * symtab.h (find_pc_line_symtab): Declare.
1620 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1621 find_pc_symtab.
1622 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1623 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1624 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1625 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1626 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1627 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1628
2097ae25
DE
16292014-11-15 Doug Evans <xdje42@gmail.com>
1630
1631 * symtab.c (expand_symtab_containing_pc): Renamed from
1632 find_pc_sect_symtab_via_partial. All callers updated.
1633
1ada499f
YQ
16342014-11-15 Yao Qi <yao@codesourcery.com>
1635
1636 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1637
355e2102
JB
16382014-11-14 Joel Brobecker <brobecker@adacore.com>
1639
1640 * common/common-defs.h: Move <stdarg.h> #include ahead of
1641 <stdio.h> #include.
1642
83030110
PA
16432014-11-14 Pedro Alves <palves@redhat.com>
1644
1645 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1646 [!PHONY_ICONV] (gdb_iconv): New function.
1647 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1648
a8719064
DE
16492014-11-13 Doug Evans <dje@google.com>
1650
1651 PR symtab/17591
1652 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1653 "(anonymous namespace)".
1654
60f7655a
DE
16552014-11-13 Doug Evans <dje@google.com>
1656
1657 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1658 infinite loop.
1659
5784b3ca
JK
16602014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1661
1662 * NEWS (maint set target-async): Fix typo.
1663
6218dc4b
PA
16642014-11-12 Pedro Alves <palves@redhat.com>
1665
1666 * infrun.c (enum infwait_states, infwait_state): Delete.
1667
af48d08f
PA
16682014-11-12 Pedro Alves <palves@redhat.com>
1669
1670 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1671 Rewrite stepping over a permanent breakpoint.
1672 (thread_still_needs_step_over, proceed): Don't set
1673 stepping_over_breakpoint for permanent breakpoints.
1674 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1675 single-step breakpoints out of the target on hardware step
1676 targets.
1677 (process_event_stop_test): If stepping a permanent breakpoint
1678 doesn't hit the step-resume breakpoint, delete the step-resume
1679 breakpoint.
1680 (switch_back_to_stepped_thread): Also check if the stepped thread
1681 has advanced already on hardware step targets.
1682 (currently_stepping): Return true if the thread stepped a
1683 breakpoint.
1684
1a853c52
PA
16852014-11-12 Pedro Alves <palves@redhat.com>
1686
1687 Mark locations as permanent, not the whole breakpoint.
1688 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1689 (mark_breakpoints_out): Don't mark permanent breakpoints as
1690 uninserted.
1691 (breakpoint_init_inferior): Use mark_breakpoints_out.
1692 (breakpoint_here_p): Adjust.
1693 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1694 of permanent breakpoints.
1695 (make_breakpoint_permanent): Mark each location as permanent,
1696 instead of marking the breakpoint.
1697 (add_location_to_breakpoint): If the location is permanent, mark
1698 it as such, and as inserted.
1699 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1700 (bp_location_compare, update_global_location_list): Adjust.
1701 (update_breakpoint_locations): Don't make the breakpoint permanent
1702 here.
1703 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1704 breakpoints.
1705 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1706 (struct bp_location) <permanent>: New field.
1707 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1708 reference to bp_permanent.
1709
ae9bb220
PA
17102014-11-12 Pedro Alves <palves@redhat.com>
1711
1712 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1713 * arch-utils.h (default_skip_permanent_breakpoint): New
1714 declaration.
1715 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1716 Install default_skip_permanent_breakpoint as default method.
1717 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1718 (i386_gdbarch_init): Don't install it.
1719 * infrun.c (resume): Assume there's always a
1720 gdbarch_skip_permanent_breakpoint implementation.
1721 * gdbarch.h, gdbarch.c: Regenerate.
1722
015de688
DC
17232014-11-11 Daniel Colascione <dancol@dancol.org>
1724
1725 Warn about cross-PID-namespace debugging.
1726 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1727 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1728 * linux-thread-db.c (check_pid_namespace_match): New function.
1729 (thread_db_inferior_created): Call it.
1730
26a84859
DE
17312014-11-10 Doug Evans <xdje42@gmail.com>
1732
1733 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1734 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1735
712a2e6d
DE
17362014-11-10 Doug Evans <xdje42@gmail.com>
1737
1738 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1739
af3768e9
DE
17402014-11-10 Doug Evans <xdje42@gmail.com>
1741
1742 PR symtab/17564
1743 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1744 (lookup_static_symbol): Move definition to new location and rewrite.
1745 (lookup_symbol_in_objfile): New function.
1746 (lookup_symbol_global_iterator_cb): Call it.
1747
b1f28d99
UW
17482014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1749
1750 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1751
b7a084be
PA
17522014-11-07 Pedro Alves <palves@redhat.com>
1753
1754 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1755 check if we did a "nexti" inside a prologue.
1756 * symtab.c (in_prologue): Delete function.
1757 * symtab.h (in_prologue): Delete declaration.
1758
67be31e5
DE
17592014-11-06 Doug Evans <xdje42@gmail.com>
1760
1761 * symtab.h (lookup_global_symbol): Improve function comment.
1762
08724ab7
DE
17632014-11-06 Doug Evans <xdje42@gmail.com>
1764
1765 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1766 All callers updated.
1767 * symtab.h (lookup_global_symbol): Update decl.
1768 (lookup_static_symbol): Move decl to better location.
1769
d9060ba6
DE
17702014-11-06 Doug Evans <xdje42@gmail.com>
1771
1772 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1773
74016e12
DE
17742014-11-06 Doug Evans <xdje42@gmail.com>
1775
1776 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1777 All callers updated.
1778 (lookup_symbol_in_all_objfiles): Renamed from
1779 lookup_symbol_aux_symtabs. All callers updated.
1780 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1781 All callers updated.
1782 (lookup_symbol_in_objfile_symtabs): Renamed from
1783 lookup_symbol_aux_objfile. All callers updated.
1784
d1a2d36d
DE
17852014-11-06 Doug Evans <xdje42@gmail.com>
1786
1787 * symtab.c (lookup_symbol_in_block): Renamed from
1788 lookup_symbol_aux_block. All callers updated.
1789
24d864bb
DE
17902014-11-06 Doug Evans <xdje42@gmail.com>
1791
1792 * symtab.c (lookup_static_symbol): Renamed from
1793 lookup_static_symbol_aux. All callers updated.
1794 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1795 All callers updated.
1796
358d6ab3
DE
17972014-11-06 Doug Evans <xdje42@gmail.com>
1798
1799 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1800 * block.c (block_lookup_symbol): Use it.
1801 * cp-support.c (make_symbol_overload_list_block): Use it.
1802 * symtab.c (iterate_over_symbols): Use it.
1803
16b2eaa1
DE
18042014-11-06 Doug Evans <xdje42@gmail.com>
1805
1806 * symtab.c (lookup_block_symbol): Moved to ...
1807 * block.c (block_lookup_symbol): ... here and renamed.
1808 All callers updated.
1809 * block.h (block_lookup_symbol): Declare.
1810 * symtab.h (lookup_block_symbol): Delete.
1811
2dd2cd1c
DE
18122014-11-06 Doug Evans <xdje42@gmail.com>
1813
1814 * ada-lang.c (ada_make_symbol_completion_list): Use
1815 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1816 * symtab.c (lookup_objfile_from_block): Ditto.
1817
d4c58915
DE
18182014-11-06 Doug Evans <xdje42@gmail.com>
1819
1820 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1821 TYPE_CODE_STRUCT.
1822
9c1877ea
DE
18232014-11-06 Doug Evans <xdje42@gmail.com>
1824
1825 * objfiles.c (get_objfile_arch): Constify.
1826 * objfiles.h (get_objfile_arch): Update prototype.
1827 * solib.c (solib_global_lookup): Fetch arch from objfile,
1828 not target_gdbarch.
1829
426a4079
SL
18302014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1831
1832 * nios2-tdep.c (wild_insn): Delete.
1833 (profiler_insn, irqentry_insn): Delete.
1834 (nios2_match_sequence): Delete.
1835 (nios2_analyze_prologue): Update comments. Remove matching
1836 of obsolete profiler_insn and irqentry_insn sequences.
1837
ee11262d
AM
18382014-11-05 Alan Modra <amodra@gmail.com>
1839
1840 * charset.c (convert_between_encodings): Shrink obstack using
1841 obstack_blank_fast.
1842 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1843 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1844 to char* before doing pointer arithmetic.
ee11262d 1845
c87e6d00
SM
18462014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1847
1848 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1849
441ef17f
PA
18502014-11-04 Pedro Alves <palves@redhat.com>
1851
1852 * breakpoint.c (breakpoint_thread_match): Delete function.
1853 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1854
e0f52461
SC
18552014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1856
1857 PR c++/17494
1858 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1859 the method args also under EVAL_SKIP when evaluating method
1860 calls under EVAL_SKIP.
1861
a0b4d890
YQ
18622014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1863
1864 * dwarf2loc.c (read_pieced_value): Do big endian
1865 processing only if gdb_regnum is not -1.
1866 (write_pieced_value): Ditto.
1867
18682014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1869
1870 * arm-linux-tdep.c (arm_linux_init_abi): Use
1871 info.byte_order_for_code to choose endianity of breakpoint
1872 instructions snippets.
1873
18742014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1875
1876 * arm-tdep.c (extract_arm_insn): Use
1877 gdbarch_byte_order_for_code to read arm instruction.
1878
e82149ff
DE
18792014-11-02 Doug Evans <xdje42@gmail.com>
1880
1881 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1882
d7ee84f1
DE
18832014-11-02 Doug Evans <xdje42@gmail.com>
1884
1885 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1886 main_subfile before returning.
1887
4f072d17
DE
18882014-10-31 Doug Evans <xdje42@gmail.com>
1889
1890 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1891 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1892
8301c89e
DE
18932014-10-31 Doug Evans <xdje42@gmail.com>
1894
1895 * valops.c (value_cast_pointers): Fix whitespace.
1896 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1897 Ditto.
1898
02be9a71
DE
18992014-10-30 Doug Evans <dje@google.com>
1900
1901 * NEWS: Mention ability add attributes to gdb.Objfile and
1902 gdb.Progspace objects.
1903 * python/py-objfile.c (objfile_object): New member dict.
1904 (objfpy_dealloc): Py_XDECREF dict.
1905 (objfpy_initialize): Initialize dict.
1906 (objfile_getset): Add __dict__.
1907 (objfile_object_type): Set tp_dictoffset member.
1908 * python/py-progspace.c (progspace_object): New member dict.
1909 (pspy_dealloc): Py_XDECREF dict.
1910 (pspy_initialize): Initialize dict.
1911 (pspace_getset): Add __dict__.
1912 (pspace_object_type): Set tp_dictoffset member.
1913
6427bef6
YQ
19142014-10-30 Yao Qi <yao@codesourcery.com>
1915
1916 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1917 replace '\\' with '\\\\'.
1918
f60325be
JB
19192014-10-29 Joel Brobecker <brobecker@adacore.com>
1920
1921 GDB 7.8.1 released.
1922
ab917dfb
PA
19232014-10-29 Pedro Alves <palves@redhat.com>
1924
1925 PR gdb/17408
1926 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1927 instead of assuming a thread with a stepping range is always
1928 stepping.
1929
d3d4baed
PA
19302014-10-29 Pedro Alves <palves@redhat.com>
1931
1932 PR python/17372
1933 * event-top.c (change_line_handler): Call
1934 gdb_rl_callback_handler_remove instead of
1935 rl_callback_handler_remove.
1936 (callback_handler_installed): New global.
1937 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1938 (gdb_rl_callback_handler_reinstall): New functions.
1939 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1940 gdb_rl_callback_handler_install instead of
1941 rl_callback_handler_remove and rl_callback_handler_install.
1942 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1943 instead of rl_callback_handler_remove.
1944 * event-top.h (gdb_rl_callback_handler_remove)
1945 (gdb_rl_callback_handler_install)
1946 (gdb_rl_callback_handler_reinstall): New declarations.
1947 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1948 cleanup function.
1949 (fetch_inferior_event): Install it.
1950 * top.c (gdb_readline_wrapper_line) Call
1951 gdb_rl_callback_handler_remove instead of
1952 rl_callback_handler_remove.
1953 (gdb_readline_wrapper_cleanup): Don't call
1954 rl_callback_handler_install.
1955
6e5d7f39
PA
19562014-10-29 Pedro Alves <palves@redhat.com>
1957
1958 * event-top.c (command_line_handler): Clear the first byte of
1959 linebuffer, when it is first allocated.
1960
551cb6a5
PA
19612014-10-29 Pedro Alves <palves@redhat.com>
1962
1963 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1964 TRY_CATCH.
1965
1e1e619b
PA
19662014-10-29 Pedro Alves <palves@redhat.com>
1967
1968 PR tui/16138
1969 PR tui/17519
1970 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1971 (tui_allowed_p): Delete function.
1972 * tui/tui.c: Include "interps.h".
1973 (tui_enable): Don't use tui_allowed_p. Error out here with
1974 detailed error messages if the TUI is the top level interpreter,
1975 or if output is not a terminal. Use newterm instead of initscr,
1976 and error out if initializing the terminal fails. Also error out if
1977 the terminal doesn't support cursor addressing.
1978 * tui/tui.h (tui_allowed_p): Delete declaration.
1979
6041179a
JB
19802014-10-29 Joel Brobecker <brobecker@adacore.com>
1981
1982 * arm-tdep.c (arm_skip_stack_protector): Return early if
1983 address loaded by first "ldr" instruction does not have
1984 a corresponding minimal symbol. Update comment.
1985
6ae274b7
YQ
19862014-10-29 Yao Qi <yao@codesourcery.com>
1987
1988 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1989 loaded address correctly of ldr instruction.
1990
7f5ef605
PA
19912014-10-28 Pedro Alves <palves@redhat.com>
1992
1993 PR gdb/12623
1994 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1995 field.
1996 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1997 thread's stepped_breakpoint field. Skip if reverse debugging.
1998 Add comment.
1999 (init_thread_stepping_state, handle_signal_stop): Clear the
2000 thread's stepped_breakpoint field.
2001
7d1a114c
PA
20022014-10-27 Pedro Alves <palves@redhat.com>
2003
2004 * remote.c (remote_thread_alive): New, factored out from ...
2005 (remote_thread_alive): ... this.
2006 (remote_update_thread_list): Bail out before deleting threads if
2007 the target returned an empty list, and, the current thread has a
2008 magic/fake ptid.
2009
e5f8a7cc
PA
20102014-10-27 Pedro Alves <palves@redhat.com>
2011
2012 * infrun.c (handle_signal_stop): Also skip handlers when a random
2013 signal arrives while handling a "stepi" or a "nexti". Set the
2014 thread's 'step_after_step_resume_breakpoint' flag.
2015
71e396f9
LM
20162014-10-27 Luis Machado <lgustavo@codesourcery.com>
2017
2018 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2019 (arm_record_ld_st_imm_offset): Reimplement to cover all
2020 load/store cases for ARM opcode 010.
2021 (arm_record_ld_st_multiple): Reimplement to cover all
2022 load/store cases for ARM opcode 100.
2023
3aee438b
DE
20242014-10-26 Doug Evans <xdje42@gmail.com>
2025
2026 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2027
f88cb4b6
DE
20282014-10-26 Doug Evans <xdje42@gmail.com>
2029
2030 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2031 parameter "kind" to "block_index".
2032 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2033 "block_index".
2034 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2035
a023a30f
DE
20362014-10-26 Doug Evans <xdje42@gmail.com>
2037
2038 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2039
4c35218e
DE
20402014-10-26 Doug Evans <xdje42@gmail.com>
2041
2042 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2043 obstack_alloc.
2044
f08e8df3
DE
20452014-10-26 Doug Evans <xdje42@gmail.com>
2046
2047 * parser-defs.h (block_found): Move decl from here ...
2048 * symtab.h (block_found): ... to here.
2049
cf901d3b
DE
20502014-10-26 Doug Evans <xdje42@gmail.com>
2051
2052 * symtab.h (struct field_of_this_result): Fix typo in comment.
2053 (lookup_symbol_in_language): Move function comment here.
2054 (lookup_symbol): Improve function comment.
2055 (basic_lookup_symbol_nonlocal): Ditto.
2056 (lookup_symbol_static, lookup_symbol_global): Ditto.
2057 (lookup_symbol_aux_block): Ditto.
2058 (lookup_language_this): Add function comment.
2059 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2060 function comment.
2061 (lookup_block_symbol): Improve function comment.
2062 (lookup_struct): Fix capitalization in function comment.
2063 (lookup_transparent_type): Add function comment.
2064 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2065 Improve function comment.
2066 (lookup_objfile_from_block): Add function comment.
2067 * symtab.c (lookup_symbol_in_language): Update function comment.
2068 (lookup_symbol, lookup_language_this): Ditto.
2069 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2070 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2071 (basic_lookup_symbol_nonlocal): Ditto.
2072 (lookup_symbol_static, lookup_symbol_global): Ditto.
2073 (lookup_transparent_type, lookup_block_symbol): Ditto.
2074
ff6c39cf
DE
20752014-10-25 Doug Evans <xdje42@gmail.com>
2076
2077 * symtab.c (types_info): Delete forward decl.
2078 (functions_info, variables_info, sources_info): Ditto.
2079 (_initialize_symtab): Rewrite forward decl to use
2080 initialize_file_ftype.
2081
ec201f0c
DE
20822014-10-25 Doug Evans <xdje42@gmail.com>
2083
2084 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2085
ca040673
DE
20862014-10-25 Doug Evans <xdje42@gmail.com>
2087
2088 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2089 of local var child_die.
2090
6f259a23
DB
20912014-10-24 Don Breazeal <donb@codesourcery.com>
2092
2093 * infrun.c (follow_fork_inferior): Update fork message printing
2094 to use target_terminal_ours_for_output instead of
2095 target_terminal_ours, to use _() for all format strings, to print
2096 "vfork" instead of "fork" for vforks, and to add a detach message.
2097 (handle_vfork_child_exec_or_exit): Update message printing to use
2098 target_terminal_ours_for_output instead of target_terminal_ours, to
2099 use _() for all format strings, and to fix some formatting.
2100
09dd9a69
PA
21012014-10-24 Pedro Alves <palves@redhat.com>
2102
2103 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2104 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2105 * config/vax/vax.mh: Delete.
2106 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2107 obsolete configurations section.
2108 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2109 * vax-nat.c: Delete file.
2110
5ab806de
PA
21112014-10-24 Pedro Alves <palves@redhat.com>
2112
2113 * NEWS (Removed targets): Add OS/arch column.
2114
3433cfa5
SC
21152014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2116
2117 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2118 on the arg type of a constructor only if it is of reference type.
2119
96ba4233
SL
21202014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2121
2122 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2123 accessors and constants from nios2 opcodes update.
2124 (nios2_get_next_pc): Likewise.
2125
28153fd3
DE
21262014-10-19 Doug Evans <xdje42@gmail.com>
2127
2128 * gdbthread.h (set_running): Fix comment.
2129 (set_executing, finish_thread_state): Fix comment.
2130
fc9b8e47
DE
21312014-10-18 Doug Evans <xdje42@gmail.com>
2132
2133 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2134
4ffbba72
DE
21352014-10-17 Doug Evans <dje@google.com>
2136
2137 * NEWS: Mention new event gdb.clear_objfiles.
2138 * python/py-event.h (emit_clear_objfiles_event): Clear
2139 * python/py-events.h (events_object): New member clear_objfiles.
2140 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2141 event.
2142 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2143 emit clear_objfiles event.
2144 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2145 function.
2146 (emit_clear_objfiles_event): New function.
2147 (clear_objfiles): New event.
2148 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2149 Declare.
2150 * python/python.c (_initialize_python): Call
2151 gdbpy_initialize_clear_objfiles_event.
2152
d096d8c1
DE
21532014-10-17 Doug Evans <dje@google.com>
2154
2155 * NEWS: Mention new gdb.Objfile.progspace attribute.
2156 * python/py-objfile.c (objfpy_get_progspace): New function.
2157 (objfile_getset): New entry for "progspace".
2158
6c4486e6
PA
21592014-10-17 Pedro Alves <palves@redhat.com>
2160
2161 PR gdb/17471
2162 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2163 returns a copy of the input.
2164 (run_command_1, continue_command, step_1, jump_command)
2165 (signal_command, until_command, advance_command, finish_command)
2166 (attach_command): Adjust and install a cleanup to free the
2167 stripped args.
2168
0ff33695
PA
21692014-10-17 Pedro Alves <palves@redhat.com>
2170
2171 PR gdb/17300
2172 * infcmd.c (continue_1): If continuing all threads in the
2173 foreground, make sure the inferior's terminal settings are put in
2174 effect.
2175
6fdebc3d
PA
21762014-10-17 Pedro Alves <palves@redhat.com>
2177
2178 PR gdb/17472
2179 * annotate.c (annotate_breakpoints_invalid): Use
2180 target_terminal_our_for_output instead of target_terminal_ours.
2181 Give back the terminal to the target.
2182 (annotate_frames_invalid): Likewise.
2183
5842f62a
PA
21842014-10-17 Pedro Alves <palves@redhat.com>
2185
2186 * target.c (enum terminal_state): New enum.
2187 (terminal_state): New global.
2188 (target_terminal_init): New function.
2189 (target_terminal_inferior): Skip if inferior already owns the
2190 terminal.
2191 (target_terminal_ours, target_terminal_ours_for_output): New
2192 functions.
2193 * target.h (target_terminal_init): Convert to function prototype.
2194 (target_terminal_ours_for_output): Convert to function prototype
2195 and tweak comment.
2196 (target_terminal_ours): Convert to function prototype and tweak
2197 comment.
2198 * windows-nat.c (do_initial_windows_stuff): Call
2199 target_terminal_init instead of child_terminal_init_with_pgrp.
2200
32a8097b
PA
22012014-10-17 Pedro Alves <palves@redhat.com>
2202
2203 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2204 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2205 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2206 solib-osf.c.
2207 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2208 * ada-lang.h [__alpha__ && __osf__]
2209 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2210 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2211 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2212 GDB_OSABI_OSF1.
2213 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2214 files.
2215 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2216 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2217 * configure: Regenerate.
2218 * configure.ac: Remove references to osf.
2219 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2220 section. Remove all other references to osf.
2221 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2222 Remove all other references to osf.
2223 * dec-thread.c: Delete file.
2224 * defs.h (GDB_OSABI_OSF1): Delete.
2225 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2226 defined.
2227 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2228 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2229 Delete code.
2230 (unconditionally_kill_inferior)
2231 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2232 * solib-osf.c: Delete file.
2233
80134cf5
PA
22342014-10-17 Pedro Alves <palves@redhat.com>
2235
2236 * remote.c (clear_threads_listing_context): Move higher up, out of
2237 the HAVE_LIBEXPAT guard.
2238
89c7137f
TG
22392014-10-16 Tristan Gingold <gingold@adacore.com>
2240
2241 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2242 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2243 on amd64.
2244
44ee4a52
PA
22452014-10-15 Pedro Alves <palves@redhat.com>
2246
2247 * dec-thread.c (dec_thread_count_gdb_threads)
2248 (dec_thread_add_gdb_thread): Delete.
2249 (dec_thread_update_thread_list): Delete.
2250 (dec_thread_find_new_threads): Rename to ...
2251 (dec_thread_update_thread_list): ... this. Delete GDB-size
2252 threads that are no longer found in dec_thread_list.
2253 (resync_thread_list): Delete.
2254 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2255 resync_thread_list.
2256
ab970af1
PA
22572014-10-15 Pedro Alves <palves@redhat.com>
2258
2259 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2260 * remote.c (remote_update_thread_list): Skip calling prune_threads
2261 if any thread listing method is supported, and instead walk over
2262 the set of remote threads listed, deleting those that are not
2263 found in GDB's thread list.
2264
e8032dde
PA
22652014-10-15 Pedro Alves <palves@redhat.com>
2266
2267 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2268 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2269 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2270 (bsd_uthread_target): Adjust.
2271 * corelow.c (core_open): Adjust.
2272 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2273 (dec_thread_update_thread_list): New function.
2274 (init_dec_thread_ops): Adjust.
2275 * gdbthread.h (prune_threads): New declaration.
2276 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2277 (thread_db_update_thread_list): ... this. Call prune_threads.
2278 (init_thread_db_ops): Adjust.
2279 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2280 (procfs_update_thread_list): ... this. Call prune_threads.
2281 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2282 Adjust.
2283 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2284 (obsd_update_thread_list): ... this. Call prune_threads.
2285 (obsd_add_target): Adjust.
2286 * procfs.c (procfs_target): Adjust.
2287 (procfs_notice_thread): Update comment.
2288 (procfs_find_new_threads): Rename to ...
2289 (procfs_update_thread_list): ... this. Call prune_threads.
2290 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2291 comment.
2292 (ravenscar_wait): Adjust.
2293 (ravenscar_find_new_threads): Rename to ...
2294 (ravenscar_update_thread_list): ... this. Call prune_threads.
2295 (init_ravenscar_thread_ops): Adjust.
2296 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2297 (record_btrace_update_thread_list): ... this. Adjust comment.
2298 (init_record_btrace_ops): Adjust.
2299 * remote.c (remote_threads_info): Rename to ...
2300 (remote_update_thread_list): ... this. Call prune_threads.
2301 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2302 Adjust.
2303 * sol-thread.c (check_for_thread_db): Adjust.
2304 (sol_find_new_threads_callback): Rename to ...
2305 (sol_update_thread_list_callback): ... this.
2306 (sol_find_new_threads): Rename to ...
2307 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2308 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2309 * target-delegates.c: Regenerate.
2310 * target.c (target_find_new_threads): Rename to ...
2311 (target_update_thread_list): ... this.
2312 * target.h (struct target_ops): Rename to_find_new_threads field
2313 to to_update_thread_list.
2314 (target_find_new_threads): Rename to ...
2315 (target_update_thread_list): ... this.
2316 * thread.c (prune_threads): Make extern.
2317 (update_thread_list): Adjust.
2318
6dc54d91
PA
23192014-10-15 Pedro Alves <palves@redhat.com>
2320
2321 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2322 Add describing comment. Return -1 if the qL packet is not
2323 supported.
2324 (struct thread_item, thread_item_t): Move higher up in
2325 the file. Add comments.
2326 (struct threads_parsing_context): Move higher up in
2327 the file, add comments, and remote to ...
2328 (struct threads_listing_context): ... this.
2329 (remote_newthread_step): Don't add the thread to GDB's thread
2330 database here. Instead push it to the thread_listing_context
2331 list.
2332 (remote_find_new_threads): Rename to ...
2333 (remote_get_threads_with_ql): ... this. Add target_ops and
2334 targets_listing_context parameters. Pass down context.
2335 (start_thread): Adjust.
2336 (clear_threads_parsing_context): Rename to ...
2337 (clear_threads_listing_context): ... this.
2338 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2339 remote_threads_info.
2340 (remote_get_threads_with_qthreadinfo): Ditto.
2341 (remote_threads_info): Reimplement.
2342
36728e82
PA
23432014-10-15 Pedro Alves <palves@redhat.com>
2344
2345 * infrun.c (resume): Don't force displaced-stepping for all
2346 single-steps on software single-stepping archs.
2347
34b7e8a6
PA
23482014-10-15 Pedro Alves <palves@redhat.com>
2349
2350 * breakpoint.c (single_step_breakpoints): Delete global.
2351 (insert_single_step_breakpoint): Adjust to store the breakpoint
2352 pointer in the current thread.
2353 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2354 (cancel_single_step_breakpoints): Delete functions.
2355 (breakpoint_has_location_inserted_here): Make extern.
2356 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2357 breakpoint list.
2358 * breakpoint.h (breakpoint_has_location_inserted_here): New
2359 declaration.
2360 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2361 (cancel_single_step_breakpoints): Remove declarations.
2362 * gdbthread.h (struct thread_control_state)
2363 <single_step_breakpoints>: New field.
2364 (delete_single_step_breakpoints)
2365 (thread_has_single_step_breakpoints_set)
2366 (thread_has_single_step_breakpoint_here): New declarations.
2367 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2368 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2369 (singlestep_pc): Delete globals.
2370 (infrun_thread_ptid_changed): Remove references to removed
2371 globals.
2372 (resume_cleanups): Delete the current thread's single-step
2373 breakpoints.
2374 (maybe_software_singlestep): Remove references to removed globals.
2375 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2376 delete_single_step_breakpoints.
2377 (init_wait_for_inferior): Remove references to removed globals.
2378 (delete_thread_infrun_breakpoints): Delete the thread's
2379 single-step breakpoints too.
2380 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2381 single-step breakpoints here.
2382 (delete_stopped_threads_single_step_breakpoints): New function.
2383 (adjust_pc_after_break): Adjust to use
2384 thread_has_single_step_breakpoints_set.
2385 (handle_inferior_event): Remove references to removed globals.
2386 Use delete_stopped_threads_single_step_breakpoints.
2387 (handle_signal_stop): Adjust to per-thread single-step
2388 breakpoints. Swap test order to do cheaper tests first.
2389 (switch_back_to_stepped_thread): Extend debug output. Remove
2390 references to removed globals.
2391 * record-full.c (record_full_wait_1): Adjust to per-thread
2392 single-step breakpoints.
2393 * thread.c (delete_single_step_breakpoints)
2394 (thread_has_single_step_breakpoints_set)
2395 (thread_has_single_step_breakpoint_here): New functions.
2396 (clear_thread_inferior_resources): Also delete the thread's
2397 single-step breakpoints.
2398
5b834a0a
PA
23992014-10-15 Pedro Alves <palves@redhat.com>
2400
2401 * thread.c (delete_thread_breakpoint): New function.
2402 (delete_step_resume_breakpoint)
2403 (delete_exception_resume_breakpoint): Use it.
2404 (delete_at_next_stop): New function.
2405 (clear_thread_inferior_resources): Use delete_at_next_stop.
2406
a1fd2fa5
PA
24072014-10-15 Pedro Alves <palves@redhat.com>
2408
2409 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2410 (breakpoint_inserted_here_p): ... here. Remove special case for
2411 software single-step breakpoints.
2412 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2413 (software_breakpoint_inserted_here_p): ... here. Remove special
2414 case for software single-step breakpoints.
2415 (bp_target_info_copy_insertion_state)
2416 (deprecated_insert_raw_breakpoint)
2417 (deprecated_remove_raw_breakpoint): Delete functions.
2418 * breakpoint.h (deprecated_insert_raw_breakpoint)
2419 (deprecated_remove_raw_breakpoint): Remove declarations.
2420
7c16b83e
PA
24212014-10-15 Pedro Alves <palves@redhat.com>
2422
2423 PR breakpoints/9649
2424 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2425 Delete array globals.
2426 (single_step_breakpoints): New global.
2427 (breakpoint_xfer_memory): Remove special handling for single-step
2428 breakpoints.
2429 (update_breakpoints_after_exec): Delete bp_single_step
2430 breakpoints.
2431 (detach_breakpoints): Remove special handling for single-step
2432 breakpoints.
2433 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2434 (bpstat_stop_status): Add comment.
2435 (bpstat_what, bptype_string, print_one_breakpoint_location)
2436 (adjust_breakpoint_address, init_bp_location): Handle
2437 bp_single_step.
2438 (new_single_step_breakpoint): New function.
2439 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2440 handling for single-step breakpoints.
2441 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2442 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2443 Rewrite.
2444 (detach_single_step_breakpoints, find_single_step_breakpoint):
2445 Delete functions.
2446 (breakpoint_has_location_inserted_here): New function.
2447 (single_step_breakpoint_inserted_here_p): Rewrite.
2448 * breakpoint.h: Remove FIXME.
2449 (enum bptype) <bp_single_step>: New enum value.
2450 (insert_single_step_breakpoint): Update comment.
2451 * infrun.c (resume_cleanups)
2452 (delete_step_thread_step_resume_breakpoint): Remove single-step
2453 breakpoints.
2454 (fetch_inferior_event): Install a cleanup that removes infrun
2455 breakpoints.
2456 (switch_back_to_stepped_thread) <expect thread advanced also>:
2457 Clear step-over info.
2458
0cbcdb96
PA
24592014-10-15 Pedro Alves <palves@redhat.com>
2460
2461 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2462 (delete_thread_infrun_breakpoints): New function, with parts
2463 salvaged from delete_step_resume_breakpoint_callback.
2464 (delete_step_thread_step_resume_breakpoint): Delete.
2465 (for_each_just_stopped_thread_callback_func): New typedef.
2466 (for_each_just_stopped_thread): New function.
2467 (delete_just_stopped_threads_infrun_breakpoints): New function.
2468 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2469 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2470 ... this. Adjust.
2471 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2472
963f9c80
PA
24732014-10-15 Pedro Alves <palves@redhat.com>
2474
2475 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2476 trying to step past a non-steppable watchpoint.
2477 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2478 field.
2479 * infrun.c (struct step_over_info): Add new field
2480 'nonsteppable_watchpoint_p' and adjust comments.
2481 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2482 Adjust.
2483 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2484 (stepping_past_nonsteppable_watchpoint): New function.
2485 (step_over_info_valid_p): Also return true if stepping past a
2486 nonsteppable watchpoint.
2487 (proceed): Adjust call to set_step_over_info. Remove reference to
2488 init_infwait_state.
2489 (init_wait_for_inferior): Remove reference to init_infwait_state.
2490 (waiton_ptid): Delete global.
2491 (struct execution_control_state)
2492 <stepped_after_stopped_by_watchpoint>: Delete field.
2493 (wait_for_inferior, fetch_inferior_event): Always pass
2494 minus_one_ptid to target_wait.
2495 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2496 field.
2497 (init_infwait_state): Delete function.
2498 (handle_inferior_event): Remove infwait_state handling.
2499 (handle_signal_stop) <watchpoints handling>: Adjust after
2500 stepped_after_stopped_by_watchpoint removal. Don't remove
2501 breakpoints here nor set infwait_state. Set the thread's
2502 stepping_over_watchpoint flag, and call keep_going instead.
2503 (keep_going): Handle stepping_over_watchpoint. Adjust
2504 set_step_over_info calls.
2505 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2506 function.
2507
6cc83d2a
PA
25082014-10-15 Pedro Alves <palves@redhat.com>
2509
2510 * infrun.c (step_over_info_valid_p): New function.
2511 (resume): Use step_over_info_valid_p instead of checking the
2512 threads's trap_expected flag.
2513
6979730b
DE
25142014-10-15 Doug Evans <dje@google.com>
2515 Walfred Tedeschi <walfred.tedeschi@intel.com>
2516
2517 PR python/17364
2518 * python/lib/gdb/__init__.py (packages): Add "printer".
2519 * python/lib/gdb/command/bound_registers.py: Moved to ...
2520 * python/lib/gdb/printer/bound_registers.py: ... here.
2521 Add printer to global set of builtin printers. Rename printer from
2522 "bound" to "mpx_bound128".
2523 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2524 registered as global "builtin" printer.
2525 (add_builtin_pretty_printer): New function.
2526 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2527 gdb/printer/__init__.py.
2528
35a49624
IB
25292014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2530
2531 * Makefile.in (SFILES): Remove d-support.c.
2532 (COMMON_OBS): Remove d-support.o.
2533 * d-lang.h (d_parse_symbol): Remove declaration.
2534 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2535 * d-support.c: Remove file.
2536
8fa0c4f8
AA
25372014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538
2539 * gdb/infrun.c (process_event_stop_test): Apply
2540 gdbarch_addr_bits_remove to longjmp resume address.
2541
3666da81
PA
25422014-10-15 Pedro Alves <palves@redhat.com>
2543
2544 * regformats/microblaze.dat: Delete file.
2545
449aa9df
AKA
25462014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2547
2548 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2549 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2550
ebb8ece2
SC
25512014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2552
2553 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2554 as non-trivial.
2555
82c48ac7
SC
25562014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2557
2558 PR c++/13403
2559 PR c++/15154
2560 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2561 with qualified args.
2562
c40cc657
JB
25632014-10-14 Joel Brobecker <brobecker@adacore.com>
2564
2565 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2566 of the case where the second operand is a pointer.
2567 <BINOP_SUB>: Likewise.
2568
0ea5cda8
SDJ
25692014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2570
2571 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2572 only if it is not NULL.
2573 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2574 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2575 (struct probe_ops) <clear_semaphore>: Likewise.
2576 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2577 not NULL.
2578 (stop_tracing): Likewise, for clear_semaphore.
2579
f7088df3
SDJ
25802014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2581
2582 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2583 using language_c, instead of current_language.
2584
4e1bbde0
DE
25852014-10-13 Doug Evans <dje@google.com>
2586
6ff5a0f6 2587 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2588 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2589 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2590 (pspy_new, pspace_to_pspace_object): Call it.
2591
c780cc2f
JK
25922014-10-13 Miroslav Franc <mfranc@redhat.com>
2593 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 Fix "save breakpoints" for "catch" command.
2596 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2597 newline.
2598
99894e11
JK
25992014-10-12 Miroslav Franc <mfranc@redhat.com>
2600
2601 Fix "save breakpoints" for "disable $bpnum" command.
2602 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2603
3831839c
PA
26042014-10-10 Pedro Alves <palves@redhat.com>
2605
2606 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2607 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2608 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2609 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2610 and been removed.
2611 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2612 * configure.ac: Remove references to IRIX.
2613 * configure.host: Add *-*-irix* to the obsolete hosts section.
2614 Remove all other references to irix.
2615 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2616 Delete files.
2617
cc3afae2
AKA
26182014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2619
2620 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2621 isn't valid, release the tdesc arch data and return NULL.
2622
cdfa0b0a
PA
26232014-10-10 Pedro Alves <palves@redhat.com>
2624
2625 * linux-tdep.c: Include observer.h.
2626 (linux_inferior_data): New global.
2627 (struct linux_info): New structure.
2628 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2629 (get_linux_inferior_data): New functions.
2630 (linux_vsyscall_range): Rename to ...
2631 (linux_vsyscall_range_raw): ... this.
2632 (linux_vsyscall_range): New function; handles caching.
2633 (_initialize_linux_tdep): Register linux_inferior_data. Install
2634 inferior_exit and inferior_appeared observers.
2635
8b9a549d
PA
26362014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 Pedro Alves <palves@redhat.com>
2638
2639 PR symtab/14466
2640 * solib-svr4.c (svr4_read_so_list): Rename to ...
2641 (svr4_current_sos_1): ... this and change the function comment.
2642 (svr4_current_sos): New function.
2643
3437254d
PA
26442014-10-10 Pedro Alves <palves@redhat.com>
2645
2646 * arch-utils.c (default_vsyscall_range): New function.
2647 * arch-utils.h (default_vsyscall_range): New declaration.
2648 * gdbarch.sh (vsyscall_range): New hook.
2649 * gdbarch.h, gdbarch.c: Regenerate.
2650 * linux-tdep.c (linux_vsyscall_range): New function.
2651 (linux_init_abi): Install linux_vsyscall_range as
2652 vsyscall_range gdbarch hook.
2653 * memrange.c (address_in_mem_range): New function.
2654 * memrange.h (address_in_mem_range): New declaration.
2655 * symfile-mem.c (find_vdso_size): Delete function.
2656 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2657
31cc0b80
PA
26582014-10-10 Pedro Alves <palves@redhat.com>
2659
2660 * infrun.c (normal_stop): Fix typo in comment.
2661
3e3286a2
SDJ
26622014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2663
2664 PR tdep/9390
2665 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2666 typo when using logical AND to determine instruction type.
2667
fcbdedf8
YQ
26682014-10-09 Yao Qi <yao@codesourcery.com>
2669
2670 * infrun.c (handle_signal_stop): Remove local variable
2671 'printed'.
2672
db984616
SS
26732014-10-08 Stan Shebs <stan@codesourcery.com>
2674
2675 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2676
3ba37e6c
GB
26772014-10-08 Gary Benson <gbenson@redhat.com>
2678
2679 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2680
a442d071
GB
26812014-10-08 Gary Benson <gbenson@redhat.com>
2682
2683 * common/common-defs.h: Include common-exceptions.h.
2684 * exceptions.h: Do not include common-exceptions.h.
2685
6f1947e8
GB
26862014-10-08 Gary Benson <gbenson@redhat.com>
2687
2688 * common/common-defs.h: Include cleanups.h.
2689 * common/common-exceptions.c: Do not include cleanups.h.
2690 * utils.h: Likewise.
2691
c765fdb9
GB
26922014-10-08 Gary Benson <gbenson@redhat.com>
2693
2694 * ada-lang.c: Do not include exceptions.h.
2695 * ada-valprint.c: Likewise.
2696 * amd64-tdep.c: Likewise.
2697 * auto-load.c: Likewise.
2698 * block.c: Likewise.
2699 * break-catch-throw.c: Likewise.
2700 * breakpoint.c: Likewise.
2701 * btrace.c: Likewise.
2702 * c-lang.c: Likewise.
2703 * cli/cli-cmds.c: Likewise.
2704 * cli/cli-interp.c: Likewise.
2705 * cli/cli-script.c: Likewise.
2706 * completer.c: Likewise.
2707 * corefile.c: Likewise.
2708 * corelow.c: Likewise.
2709 * cp-abi.c: Likewise.
2710 * cp-support.c: Likewise.
2711 * cp-valprint.c: Likewise.
2712 * darwin-nat.c: Likewise.
2713 * dwarf2-frame-tailcall.c: Likewise.
2714 * dwarf2-frame.c: Likewise.
2715 * dwarf2loc.c: Likewise.
2716 * dwarf2read.c: Likewise.
2717 * eval.c: Likewise.
2718 * event-loop.c: Likewise.
2719 * event-top.c: Likewise.
2720 * f-valprint.c: Likewise.
2721 * frame-unwind.c: Likewise.
2722 * frame.c: Likewise.
2723 * gdbtypes.c: Likewise.
2724 * gnu-v2-abi.c: Likewise.
2725 * gnu-v3-abi.c: Likewise.
2726 * guile/scm-auto-load.c: Likewise.
2727 * guile/scm-breakpoint.c: Likewise.
2728 * guile/scm-cmd.c: Likewise.
2729 * guile/scm-frame.c: Likewise.
2730 * guile/scm-lazy-string.c: Likewise.
2731 * guile/scm-param.c: Likewise.
2732 * guile/scm-symbol.c: Likewise.
2733 * guile/scm-type.c: Likewise.
2734 * hppa-hpux-tdep.c: Likewise.
2735 * i386-tdep.c: Likewise.
2736 * inf-loop.c: Likewise.
2737 * infcall.c: Likewise.
2738 * infcmd.c: Likewise.
2739 * infrun.c: Likewise.
2740 * interps.c: Likewise.
2741 * interps.h: Likewise.
2742 * jit.c: Likewise.
2743 * linespec.c: Likewise.
2744 * linux-nat.c: Likewise.
2745 * linux-thread-db.c: Likewise.
2746 * m32r-rom.c: Likewise.
2747 * main.c: Likewise.
2748 * memory-map.c: Likewise.
2749 * mi/mi-cmd-break.c: Likewise.
2750 * mi/mi-cmd-stack.c: Likewise.
2751 * mi/mi-interp.c: Likewise.
2752 * mi/mi-main.c: Likewise.
2753 * monitor.c: Likewise.
2754 * nto-procfs.c: Likewise.
2755 * objc-lang.c: Likewise.
2756 * p-valprint.c: Likewise.
2757 * parse.c: Likewise.
2758 * ppc-linux-tdep.c: Likewise.
2759 * printcmd.c: Likewise.
2760 * probe.c: Likewise.
2761 * python/py-auto-load.c: Likewise.
2762 * python/py-breakpoint.c: Likewise.
2763 * python/py-cmd.c: Likewise.
2764 * python/py-finishbreakpoint.c: Likewise.
2765 * python/py-frame.c: Likewise.
2766 * python/py-framefilter.c: Likewise.
2767 * python/py-function.c: Likewise.
2768 * python/py-gdb-readline.c: Likewise.
2769 * python/py-inferior.c: Likewise.
2770 * python/py-infthread.c: Likewise.
2771 * python/py-lazy-string.c: Likewise.
2772 * python/py-linetable.c: Likewise.
2773 * python/py-param.c: Likewise.
2774 * python/py-prettyprint.c: Likewise.
2775 * python/py-symbol.c: Likewise.
2776 * python/py-type.c: Likewise.
2777 * python/py-value.c: Likewise.
2778 * python/python-internal.h: Likewise.
2779 * python/python.c: Likewise.
2780 * record-btrace.c: Likewise.
2781 * record-full.c: Likewise.
2782 * regcache.c: Likewise.
2783 * remote-fileio.c: Likewise.
2784 * remote-mips.c: Likewise.
2785 * remote.c: Likewise.
2786 * rs6000-aix-tdep.c: Likewise.
2787 * rs6000-nat.c: Likewise.
2788 * skip.c: Likewise.
2789 * solib-darwin.c: Likewise.
2790 * solib-dsbt.c: Likewise.
2791 * solib-frv.c: Likewise.
2792 * solib-ia64-hpux.c: Likewise.
2793 * solib-spu.c: Likewise.
2794 * solib-svr4.c: Likewise.
2795 * solib.c: Likewise.
2796 * spu-tdep.c: Likewise.
2797 * stack.c: Likewise.
2798 * stap-probe.c: Likewise.
2799 * symfile-mem.c: Likewise.
2800 * symmisc.c: Likewise.
2801 * target.c: Likewise.
2802 * thread.c: Likewise.
2803 * top.c: Likewise.
2804 * tracepoint.c: Likewise.
2805 * tui/tui-interp.c: Likewise.
2806 * typeprint.c: Likewise.
2807 * utils.c: Likewise.
2808 * valarith.c: Likewise.
2809 * valops.c: Likewise.
2810 * valprint.c: Likewise.
2811 * value.c: Likewise.
2812 * varobj.c: Likewise.
2813 * windows-nat.c: Likewise.
2814 * xml-support.c: Likewise.
2815
484933d1
MR
28162014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2817
2818 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2819 name implies.
2820 (extended_mips16_next_pc): Update accordingly.
2821
ab50adb6
MR
28222014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2823
2824 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2825 function.
2826 (micromips_instruction_is_compact_branch): Likewise.
2827 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2828 or a compact jump, reaching a jump delay slot, or seeing a
2829 second non-prologue instruction.
2830 (micromips_scan_prologue): Also terminate scanning upon seeing a
2831 compact branch or jump, or reaching a branch or jump delay slot.
2832 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2833 or jump delay slot, or seeing a second non-prologue instruction.
2834 (mips32_instruction_has_delay_slot): Retain instruction
2835 examination code only, update arguments accordingly and move
2836 instruction fetch pieces to...
2837 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2838 (micromips_instruction_has_delay_slot): Likewise and to...
2839 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2840 (mips16_instruction_has_delay_slot): Likewise and to...
2841 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2842 (mips_single_step_through_delay): Update accordingly.
2843 (mips_adjust_breakpoint_address): Likewise.
2844
ae790652
MR
28452014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2846
2847 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2848 !mustbe32 also return 1 for 32-bit instructions.
2849 (mips16_instruction_has_delay_slot): Likewise. Add an
2850 explanatory comment.
2851
9b807e7b
MR
28522014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2853
2854 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2855 symbols special.
2856
0d5ed153
MR
28572014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2858
2859 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2860 update comments.
2861 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2862 for the breakpoint's address. Don't preinitialize `placed_size'.
2863 (insert_bp_location): Set `reqstd_address' rather than
2864 `placed_address'.
2865 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2866 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2867 address.
2868 (bkpt_remove_location): Likewise.
2869 (deprecated_insert_raw_breakpoint): Likewise.
2870 (deprecated_remove_raw_breakpoint): Likewise.
2871 (find_single_step_breakpoint): Likewise.
2872 * mem-break.c (default_memory_insert_breakpoint): Use
2873 `reqstd_address' for the breakpoint's address. Don't set
2874 `placed_address' or `placed_size' if breakpoint contents couldn't
2875 have been determined.
2876 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2877 the breakpoint's address.
2878 (remote_insert_hw_breakpoint): Likewise. Don't set
2879 `placed_address' or `placed_size' if breakpoint couldn't have been
2880 set.
2881 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2882 `reqstd_address' for the breakpoint's address.
2883 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2884 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2885 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2886 * microblaze-linux-tdep.c
2887 (microblaze_linux_memory_remove_breakpoint): Likewise.
2888 * monitor.c (monitor_insert_breakpoint): Likewise.
2889 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2890 (procfs_insert_hw_breakpoint): Likewise.
2891 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2892 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2893 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2894 * remote-mips.c (mips_insert_breakpoint): Likewise.
2895 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2896
3e871532
LM
28972014-10-03 Luis Machado <lgustavo@codesourcery.com>
2898
2899 * valops.c (value_assign): Check for bit field assignments
2900 before calling architecture-specific register value
2901 conversion functions.
2902
ec48dc8b
PM
29032014-10-03 Pierre Muller <muller@sourceware.org>
2904
2905 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2906
b57bacec
PA
29072014-10-02 Pedro Alves <palves@redhat.com>
2908
2909 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2910 threads_are_executing.
2911 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2912 describing comment.
2913 * gdbthread.h (threads_are_executing): Declare.
2914 (handle_signal_stop) <random signals>: Don't print about the
2915 signal here if stopping.
2916 (end_stepping_range): Don't notify observers here.
2917 (normal_stop): Update the thread list. If stopped by a random
2918 signal or a stepping range ended, notify observers.
2919 * thread.c (threads_executing): New global.
2920 (init_thread_list): Clear 'threads_executing'.
2921 (set_executing): Set or clear 'threads_executing'.
2922 (threads_are_executing): New function.
2923 (update_threads_executing): New function.
2924 (update_thread_list): Use it.
2925
13fd3ff3
PA
29262014-10-02 Pedro Alves <palves@redhat.com>
2927
2928 PR breakpoints/17431
2929 * breakpoint.c (update_breakpoints_after_exec): Don't create
2930 overlay, longjmp, std terminate nor exception breakpoints here.
2931
32990ada
PA
29322014-10-02 Pedro Alves <palves@redhat.com>
2933
2934 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2935 Adjust comments.
2936 * inferior.c (find_inferior_for_program_space): Give preference to
2937 the current inferior.
2938 * inferior.h (find_inferior_for_program_space): Update comment.
2939 * progspace.c (switch_to_program_space_and_thread): Prefer the
2940 current inferior if it's bound to the program space requested. If
2941 the inferior found doesn't have a PID yet, don't bother looking up
2942 a thread.
2943 * progspace.h (switch_to_program_space_and_thread): Adjust
2944 comment.
2945 * thread.c (any_thread_of_process, any_live_thread_of_process):
2946 Give preference to the current thread.
2947
0fec99e8
PA
29482014-10-01 Pedro Alves <palves@redhat.com>
2949
2950 * breakpoint.c (insert_bp_location): Error out if inserting a
2951 software breakpoint at a read-only address.
2952 * target.c (memory_xfer_check_region): New function, factored out
2953 from ...
2954 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2955 ULONGEST.
2956 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2957 against the memory region attributes.
2958
2ddf4301
SM
29592014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2960
2961 * NEWS: Announce new exit-code field in -list-thread-groups
2962 output.
2963 * inferior.c (exit_inferior_1): Don't clear exit code.
2964 (inferior_appeared): Clear exit code.
2965 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2966 code.
2967
5fdeec1d
PA
29682014-10-01 Pedro Alves <palves@redhat.com>
2969
2970 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2971 GENERATED" along with emacs/vi read-only markers.
2972 * regformats/aarch64.dat: Regenerate.
2973 * regformats/arm-with-iwmmxt.dat: Regenerate.
2974 * regformats/arm-with-neon.dat: Regenerate.
2975 * regformats/arm-with-vfpv2.dat: Regenerate.
2976 * regformats/arm-with-vfpv3.dat: Regenerate.
2977 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2978 * regformats/i386/amd64-avx.dat: Regenerate.
2979 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2980 * regformats/i386/amd64-avx512.dat: Regenerate.
2981 * regformats/i386/amd64-linux.dat: Regenerate.
2982 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2983 * regformats/i386/amd64-mpx.dat: Regenerate.
2984 * regformats/i386/amd64.dat: Regenerate.
2985 * regformats/i386/i386-avx-linux.dat: Regenerate.
2986 * regformats/i386/i386-avx.dat: Regenerate.
2987 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2988 * regformats/i386/i386-avx512.dat: Regenerate.
2989 * regformats/i386/i386-linux.dat: Regenerate.
2990 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2991 * regformats/i386/i386-mmx.dat: Regenerate.
2992 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2993 * regformats/i386/i386-mpx.dat: Regenerate.
2994 * regformats/i386/i386.dat: Regenerate.
2995 * regformats/i386/x32-avx-linux.dat: Regenerate.
2996 * regformats/i386/x32-avx.dat: Regenerate.
2997 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2998 * regformats/i386/x32-avx512.dat: Regenerate.
2999 * regformats/i386/x32-linux.dat: Regenerate.
3000 * regformats/i386/x32.dat: Regenerate.
3001 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3002 * regformats/mips-dsp-linux.dat: Regenerate.
3003 * regformats/mips-linux.dat: Regenerate.
3004 * regformats/mips64-dsp-linux.dat: Regenerate.
3005 * regformats/mips64-linux.dat: Regenerate.
3006 * regformats/nios2-linux.dat: Regenerate.
3007 * regformats/rs6000/powerpc-32.dat: Regenerate.
3008 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3009 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3010 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3011 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3012 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3013 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3014 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3015 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3016 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3017 * regformats/s390-linux32.dat: Regenerate.
3018 * regformats/s390-linux32v1.dat: Regenerate.
3019 * regformats/s390-linux32v2.dat: Regenerate.
3020 * regformats/s390-linux64.dat: Regenerate.
3021 * regformats/s390-linux64v1.dat: Regenerate.
3022 * regformats/s390-linux64v2.dat: Regenerate.
3023 * regformats/s390-te-linux64.dat: Regenerate.
3024 * regformats/s390x-linux64.dat: Regenerate.
3025 * regformats/s390x-linux64v1.dat: Regenerate.
3026 * regformats/s390x-linux64v2.dat: Regenerate.
3027 * regformats/s390x-te-linux64.dat: Regenerate.
3028 * regformats/tic6x-c62x-linux.dat: Regenerate.
3029 * regformats/tic6x-c62x.dat: Regenerate.
3030 * regformats/tic6x-c64x-linux.dat: Regenerate.
3031 * regformats/tic6x-c64x.dat: Regenerate.
3032 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3033 * regformats/tic6x-c64xp.dat: Regenerate.
3034
db74e4ba
PA
30352014-10-01 Pedro Alves <palves@redhat.com>
3036
3037 * features/Makefile: Update comments.
3038 (XMLTOC): List all xml files we build C files from.
3039 (clean-cfiles): New rule.
3040
d63f2f84
PA
30412014-10-01 Pedro Alves <palves@redhat.com>
3042
3043 * features/i386/amd64-avx512-linux.c: Regenerate.
3044 * features/i386/amd64-avx512.c: Regenerate.
3045 * features/i386/x32-avx512-linux.c: Regenerate.
3046 * features/i386/x32-avx512.c: Regenerate.
3047
20ad026d
PA
30482014-10-01 Pedro Alves <palves@redhat.com>
3049
3050 * features/Makefile (WHICH): Remove arm-with-m,
3051 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3052
acc9fe45
PA
30532014-10-01 Pedro Alves <palves@redhat.com>
3054
3055 * features/Makefile (clean): New rule.
3056
e001e535
PA
30572014-10-01 Pedro Alves <palves@redhat.com>
3058
3059 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3060 (zmm14h): Add missing end quotes.
3061
bdc14417
PA
30622014-10-01 Pedro Alves <palves@redhat.com>
3063
3064 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3065 * features/aarch64.c: Regenerate.
3066
d83ad864
DB
30672014-09-30 Don Breazeal <donb@codesourcery.com>
3068
3069 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3070 code so as to work with follow_fork_inferior.
3071 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3072 (inf_ttrace_create_inferior): Remove reference to
3073 inf_ttrace_vfork_ppid.
3074 (inf_ttrace_attach): Ditto.
3075 (inf_ttrace_detach): Ditto.
3076 (inf_ttrace_kill): Use current_inferior instead of
3077 inf_ttrace_vfork_ppid.
3078 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3079 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3080 inferior away from the parent.
3081 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3082 target_follow_fork.
3083 (follow_fork_inferior): New function.
3084 (follow_inferior_reset_breakpoints): Make function static.
3085 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3086 * linux-nat.c (linux_child_follow_fork): Move target-independent
3087 code to infrun.c:follow_fork_inferior.
3088
29082443
AA
30892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3090
3091 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3092 * gdbarch.c: Regenerate.
3093 * gdbarch.h: Likewise.
3094 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3095 gdbarch method 'regset_from_core_section'.
3096 (get_core_register_section): Remove handling for the case that
3097 regset == NULL and regset_from_core_section is defined.
3098 (get_core_registers): Drop check for deleted method.
3099 * procfs.c (procfs_do_thread_registers): Adjust comment.
3100
f968fe80
AA
31012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3102
3103 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3104 (linux_nat_make_corefile_notes): Remove.
3105 (linux_target_install_ops): Do not set target method
3106 'make_corefile_notes'.
3107 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3108 Remove field.
3109 (linux_corefile_thread_callback): Instead of args->collect, call
3110 linux_collect_thread_registers.
3111 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3112 NULL unless there is a regset iterator.
3113 (linux_make_corefile_notes_1): Remove.
3114 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3115 by linux_make_corefile_notes.
3116 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3117
174ad59a
AA
31182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3119
3120 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3121 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3122 Remove.
3123 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3124
97094034
AA
31252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3126
3127 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3128 (xtensa_iterate_over_regset_sections): New.
3129 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3130
f73d3ce7
AA
31312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3132
3133 * vax-tdep.c (vax_regset_from_core_section): Remove.
3134 (vax_iterate_over_regset_sections): New.
3135 (vax_gdbarch_init): Adjust gdbarch initialization.
3136
cb24567a
AA
31372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3138
3139 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3140 (tilegx_regset_from_core_section): Remove.
3141 (tilegx_iterate_over_regset_sections): New.
3142 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3143
e5139de8
AA
31442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3145
3146 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3147 (sparc_iterate_over_regset_sections): New.
3148 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3149 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3150 targets.
3151 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3152 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3153 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3154 target method 'make_corefile_notes'.
3155
c6d41a6f
AA
31562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157
3158 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3159 'sizeof_gregset' and 'sizeof_fpregset'.
3160 * sh-tdep.c (sh_regset_from_core_section): Remove.
3161 (sh_iterate_over_regset_sections): New.
3162 (sh_gdbarch_init): Adjust gdbarch initialization.
3163 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3164 sizeof_fpregset.
3165 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3166 'sizeof_gregset'.
3167
9845a0b5
AA
31682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3169
3170 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3171 (score7_linux_iterate_over_regset_sections): New.
3172 (score_gdbarch_init): Adjust gdbarch initialization.
3173
23ea9aeb
AA
31742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3175
3176 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3177 FreeBSD targets.
3178 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3179 method 'make_corefile_notes'.
3180 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3181 (ppcfbsd_regset_from_core_section): Remove.
3182 (ppcfbsd_iterate_over_regset_sections): New.
3183 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3184 initialization.
3185 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3186 (ppcnbsd_iterate_over_regset_sections): New.
3187 (ppcnbsd_init_abi): Adjust.
3188 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3189 (ppcobsd_iterate_over_regset_sections): New.
3190 (ppcobsd_init_abi): Adjust.
3191 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3192 (rs6000_aix_iterate_over_regset_sections): New.
3193 (rs6000_aix_init_osabi): Adjust.
3194
c5b8d704
AA
31952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3196
3197 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3198 (nios2_regset_from_core_section): Remove.
3199 (nios2_iterate_over_regset_sections): New.
3200 (nios2_linux_init_abi): Adjust gdbarch initialization.
3201
3636e608
AA
32022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3203
3204 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3205 (am33_iterate_over_regset_sections): New.
3206 (am33_linux_init_osabi): Adjust gdbarch initialization.
3207
d4036235
AA
32082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209
3210 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3211 (mips_linux_iterate_over_regset_sections): New.
3212 (mips_linux_init_abi): Adjust gdbarch initialization.
3213 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3214 (mips64obsd_iterate_over_regset_sections): New.
3215 (mips64obsd_init_abi): Adjust.
3216 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3217 (mipsnbsd_iterate_over_regset_sections): New.
3218 (mipsnbsd_init_abi): Adjust.
3219
b61ddd6e
AA
32202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3221
3222 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3223 (m88k_iterate_over_regset_sections): New.
3224 (m88k_gdbarch_init): Adjust gdbarch initialization.
3225
55a2906a
AA
32262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3227
3228 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3229 (ia64_linux_iterate_over_regset_sections): New.
3230 (ia64_linux_init_abi): Adjust gdbarch initialization.
3231
022c98ab
AA
32322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3233
3234 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3235 (m68kbsd_iterate_over_regset_sections): New.
3236 (m68kbsd_init_abi): Adjust gdbarch initialization.
3237 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3238 (m68k_linux_iterate_over_regset_sections): New.
3239 (m68k_linux_init_abi): Adjust gdbarch initialization.
3240
5fac247f
AA
32412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242
3243 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3244 (m32r_linux_regset_from_core_section): Remove.
3245 (m32r_linux_iterate_over_regset_sections): New.
3246 (m32r_linux_init_abi): Adjust gdbarch initialization.
3247
490496c3
AA
32482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3249
3250 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3251 (amd64obsd_iterate_over_regset_sections): New.
3252 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3253 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3254 Remove.
3255 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3256 regset_from_core_section initialization.
3257 * i386-tdep.c (i386_regset_from_core_section): Remove.
3258 (i386_iterate_over_regset_sections): New.
3259 (i386_gdbarch_init): Adjust gdbarch initialization.
3260 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3261 (i386_iterate_over_regset_sections): New prototype.
3262 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3263 Remove.
3264 (i386obsd_aout_iterate_over_regset_sections): New.
3265 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3266 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3267 targets.
3268 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3269 (amd64fbsd_init_abi): Call fbsd_init_abi.
3270 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3271 (i386fbsd4_init_abi): Call fbsd_init_abi.
3272 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3273 target method 'make_corefile_notes'.
3274 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3275
50c5eb53
AA
32762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277
3278 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3279 (hppa_hpux_iterate_over_regset_sections): New.
3280 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3281 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3282 (hppa_linux_iterate_over_regset_sections): New.
3283 (hppa_linux_init_abi): Adjust.
3284 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3285 (hppanbsd_iterate_over_regset_sections): New.
3286 (hppanbsd_init_abi): Adjust.
3287 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3288 (hppaobsd_iterate_over_regset_sections): New.
3289 (hppaobsd_init_abi): Adjust.
3290
66afae4f
AA
32912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3292
3293 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3294 (frv_linux_iterate_over_regset_sections): New.
3295 (frv_linux_init_abi): Adjust gdbarch initialization.
3296
ed09174e
AA
32972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3298
3299 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3300 (armbsd_iterate_over_regset_sections): New prototype.
3301 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3302 (armbsd_iterate_over_regset_sections): New.
3303 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3304 initialization.
3305
dff2166e
AA
33062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3307
3308 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3309 (alpha_linux_iterate_over_regset_sections): New.
3310 (alpha_linux_init_abi): Adjust gdbarch initialization.
3311 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3312 prototype.
3313 (alphanbsd_iterate_over_regset_sections): New prototype.
3314
4108500a
AA
33152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3316
3317 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3318 Remove.
3319 (aarch64_linux_iterate_over_regset_sections): New.
3320 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3321
a904c024
AA
33222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3323
3324 * fbsd-tdep.c: New file.
3325 * fbsd-tdep.h: New file.
3326 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3327 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3328 (ALLDEPFILES): Add fbsd-tdep.c.
3329
8f0435f7
AA
33302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3331
3332 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3333 parameter.
3334 * gdbarch.h: Regenerate.
3335 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3336 iterator.
3337 (get_core_register_section): Add parameter 'regset' and use it, if
3338 set. Add parameter 'min_size' and verify the bfd section size
3339 against it.
3340 (get_core_registers_cb): Add parameter 'regset' and pass it to
3341 get_core_register section. For the "standard" register sections
3342 ".reg" and ".reg2", set an appropriate default for human_name.
3343 (get_core_registers): Don't abort when the gdbarch has an iterator
3344 but no regset_from_core_section. Add NULL/0 for parameters
3345 'regset'/'min_size' in calls to get_core_register_section.
3346 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3347 'regset' and use it instead of calling the
3348 regset_from_core_section gdbarch method.
3349 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3350 * i386-tdep.c (i386_supply_xstateregset)
3351 (i386_collect_xstateregset, i386_xstateregset): Moved to
3352 i386-linux-tdep.c.
3353 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3354 .reg-xstate.
3355 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3356 core file support only if the regset iterator hasn't been set.
3357 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3358 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3359 Moved from i386-tdep.c and renamed to *_linux*.
3360 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3361 each callback invocation. Allow any .reg-xstate size when reading
3362 from a core file.
3363 * amd64-tdep.c (amd64_supply_xstateregset)
3364 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3365 amd64-linux-tdep.c.
3366 (amd64_regset_from_core_section): Remove.
3367 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3368 install an amd64-specific regset_from_core_section gdbarch method.
3369 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3370 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3371 Moved from amd64-tdep.c and renamed to *_linux*.
3372 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3373 to each callback invocation. Allow any .reg-xstate size when
3374 reading from a core file.
3375 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3376 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3377 each callback invocation.
3378 (arm_linux_init_abi): No longer set the regset_from_core_section
3379 gdbarch method.
3380 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3381 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3382 each callback invocation.
3383 (ppc_linux_init_abi): No longer set the regset_from_core_section
3384 gdbarch method.
3385 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3386 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3387 (s390_regset_from_core_section): Remove.
3388 (s390_iterate_over_regset_sections): Add regset parameter to each
3389 callback invocation.
3390 (s390_gdbarch_init): No longer set the regset_from_core_section
3391 gdbarch method. Drop initialization of deleted tdep fields.
3392
5aa82d05
AA
33932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3394
3395 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3396 (amd64_linux_iterate_over_regset_sections): New.
3397 (amd64_linux_init_abi_common): Don't install the regset section
3398 list, but the new iterator in gdbarch.
3399 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3400 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3401 (arm_linux_iterate_over_regset_sections): ...here. New function.
3402 (arm_linux_init_abi): Set iterator instead of section list.
3403 * corelow.c (get_core_registers_cb): New function, logic moved
3404 from...
3405 (get_core_registers): ...loop body here. Use new iterator method
3406 instead of walking through the regset section list.
3407 * gdbarch.sh: Remove 'core_regset_sections'. New method
3408 'iterate_over_regset_sections'. New typedef
3409 'iterate_over_regset_sections_cb'.
3410 * gdbarch.c: Regenerate.
3411 * gdbarch.h: Likewise.
3412 * i386-linux-tdep.c (i386_linux_regset_sections)
3413 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3414 Remove.
3415 (i386_linux_iterate_over_regset_sections): New.
3416 (i386_linux_init_abi): Don't choose a regset section list, but
3417 install new iterator in gdbarch.
3418 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3419 (linux_collect_regset_section_cb): New function, logic moved
3420 from...
3421 (linux_collect_thread_registers): ...loop body here. Use iterator
3422 method instead of walking through list.
3423 (linux_make_corefile_notes_1): Check for presence of iterator
3424 method instead of regset section list.
3425 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3426 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3427 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3428 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3429 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3430 (ppc_linux_init_abi): Don't choose from above regset section
3431 lists, but install new iterator in gdbarch.
3432 * regset.h (struct core_regset_section): Remove.
3433 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3434 have_linux_v1, have_linux_v2, and have_tdb.
3435 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3436 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3437 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3438 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3439 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3440 (s390_iterate_over_regset_sections): ...here. New function. Use
3441 new tdep fields.
3442 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3443 regset section lists, but install new iterator.
3444
2eca4a8d
JK
34452014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3448
a73c2b56
SM
34492014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3450
3451 * progspace.c (print_program_space): Don't prune program spaces
3452 before printing them.
3453
03d46957
PA
34542014-09-25 Pedro Alves <palves@redhat.com>
3455
3456 * infrun.c (user_visible_resume_ptid): Don't check
3457 singlestep_breakpoints_inserted_p.
3458
e558d7c1
PA
34592014-09-25 Pedro Alves <palves@redhat.com>
3460
3461 * breakpoint.c (should_be_inserted): Add debug output.
3462
7f89fd65
PA
34632014-09-25 Pedro Alves <palves@redhat.com>
3464
3465 * infrun.c (stepping_past_instruction_at)
3466 (clear_exit_convenience_vars): Point at infrun.h instead of
3467 inferior.h.
3468 (handle_signal_stop): Fix typo.
3469
b7576e5c
YQ
34702014-09-24 Yao Qi <yao@codesourcery.com>
3471
3472 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3473 bitmask.
3474
9a6cf368
GB
34752014-09-22 Gary Benson <gbenson@redhat.com>
3476
3477 * target.c (target_stop): Updated comment.
3478
03f4463b
GB
34792014-09-22 Gary Benson <gbenson@redhat.com>
3480
3481 * target/target.h (target_stop_ptid): Renamed as...
3482 (target_stop_and_wait): New function. Updated comment.
3483 All uses updated.
3484 (target_continue_ptid): Renamed as...
3485 (target_continue_no_signal): New function. Updated comment.
3486 All uses updated.
3487
a25a5a45
PA
34882014-09-22 Pedro Alves <palves@redhat.com>
3489
3490 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3491 and "auto" merged.
3492 * breakpoint.c (enum ugll_insert_mode): New enum.
3493 (always_inserted_mode): Now a plain boolean.
3494 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3495 (breakpoints_always_inserted_mode): Delete.
3496 (breakpoints_should_be_inserted_now): New function.
3497 (insert_breakpoints): Pass UGLL_INSERT to
3498 update_global_location_list instead of calling
3499 insert_breakpoint_locations manually.
3500 (create_solib_event_breakpoint_1): New, factored out from ...
3501 (create_solib_event_breakpoint): ... this.
3502 (create_and_insert_solib_event_breakpoint): Use
3503 create_solib_event_breakpoint_1 instead of calling
3504 insert_breakpoint_locations manually.
3505 (update_global_location_list): Change parameter type from boolean
3506 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3507 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3508 (update_global_location_list_nothrow): Change parameter type from
3509 boolean to enum ugll_insert_mode.
3510 (_initialize_breakpoint): "breakpoint always-inserted" option is
3511 now a boolean command. Update help text.
3512 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3513 (breakpoints_should_be_inserted_now): New declaration.
3514 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3515 Remove breakpoints_always_inserted_mode check.
3516 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3517 * remote.c (remote_start_remote): Likewise.
3518
04086b45
PA
35192014-09-22 Pedro Alves <palves@redhat.com>
3520
3521 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3522 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3523 Instead, pass UGLL_INSERT to update_global_location_list.
3524 (update_global_location_list): Change parameter type from boolean
3525 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3526 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3527 (create_solib_event_breakpoint_1): New, factored out from ...
3528 (create_solib_event_breakpoint): ... this.
3529 (create_and_insert_solib_event_breakpoint): Use
3530 create_solib_event_breakpoint_1 instead of calling
3531 insert_breakpoint_locations manually.
3532 (update_global_location_list): Handle UGLL_INSERT.
3533
44702360
PA
35342014-09-22 Pedro Alves <palves@redhat.com>
3535
3536 * breakpoint.c (enum ugll_insert_mode): New enum.
3537 (update_global_location_list)
3538 (update_global_location_list_nothrow): Change parameter type from
3539 boolean to enum ugll_insert_mode. All callers adjusted.
3540
93c6145a
JB
35412014-09-19 Joel Brobecker <brobecker@adacore.com>
3542
3543 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3544 SystemTap support in GDB.
3545
89a5711c
DB
35462014-09-19 Don Breazeal <donb@codesourcery.com>
3547
3548 * linux-nat.c (linux_handle_extended_wait): Call
3549 linux_ptrace_get_extended_event.
3550 (wait_lwp): Call linux_is_extended_waitstatus.
3551 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3552 and linux_is_extended_waitstatus.
3553 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3554 linux_ptrace_get_extended_event.
3555 (linux_ptrace_get_extended_event): New function.
3556 (linux_is_extended_waitstatus): New function.
3557 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3558 (linux_is_extended_waitstatus): New declarations.
3559
c3b7b696
YQ
35602014-09-19 Yao Qi <yao@codesourcery.com>
3561
3562 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3563 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3564 comments. Callers update.
3565 (dwarf_decode_lines): Likewise.
3566 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3567 comments. Skip the line table if 'lowpc' is greater than
3568 'address'. Don't check
3569 dwarf2_per_objfile->has_section_at_zero.
3570
2b4fd423
DE
35712014-09-18 Doug Evans <dje@google.com>
3572
3573 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3574 * python/py-symtab.c (stpy_get_producer): New function.
3575 (symtab_object_getset): Add "producer" attribute.
3576
5e43d467
UW
35772014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3578
3579 PR gdb/17384
3580 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3581 (do_captured_read_memory_integer): Remove.
3582 (safe_read_memory_integer): Use target_read_memory directly instead
3583 of catching errors in do_captured_read_memory_integer.
3584
04e79979
MR
35852014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3586
3587 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3588 not gdb/doc.
3589
76aeec5b
SDJ
35902014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3591
3592 * objc-lang.c (find_implementation_from_class): Remove dead code.
3593
2f693f9d
SDJ
35942014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3595
3596 PR cli/7233
3597 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3598 "fprintf_unfiltered (gdb_stdlog...)".
3599
bb9d5f81
PP
36002014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3601
3602 PR breakpoints/12526
3603 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3604 val_bitsize.
3605 * breakpoint.c (watch_command_1): Use these fields to retain
3606 bitfield information.
3607 (extract_bitfield_from_watchpoint_value): New function.
3608 (watchpoint_check): Use it.
3609 (update_watchpoint): Use it. Optimize the address and length of a
3610 HW watchpoint pointing to a bitfield.
3611 * value.h (unpack_value_bitfield): New prototype.
3612 * value.c (unpack_value_bitfield): Make extern.
3613
05db5edd
ST
36142014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3615
3616 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3617 x86-dregs.o.
3618 * gnu-nat.c (inf_threads): New function.
3619 * gnu-nat.h (inf_threads_ftype): New typedef.
3620 (inf_threads): New declaration.
3621 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3622 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3623 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3624 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3625 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3626 (i386_gnu_dr_get_control): New functions.
3627 (reg_addr): New structure.
3628 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3629 i386 debugging register hooks.
3630 * NEWS: Mention this.
3631
5a578da5
OJ
36322014-08-13 Omair Javaid <omair.javaid@linaro.org>
3633
3634 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3635 vector data transfer instructions.
3636 (arm_record_coproc_data_proc): Updated.
3637
f20f80dd
OJ
36382014-08-13 Omair Javaid <omair.javaid@linaro.org>
3639
3640 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3641 arm_record_exreg_ld_st_insn.
3642 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3643 load/store insns.
3644
851f26ae
OJ
36452014-08-13 Omair Javaid <omair.javaid@linaro.org>
3646
3647 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3648 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3649 processing instructions.
3650
1e1b6563
OJ
36512014-08-13 Omair Javaid <omair.javaid@linaro.org>
3652
3653 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3654 for advance SIMD struct ld/st insn.
3655 (thumb2_record_decode_insn_handler): Replace stub handler with
3656 thumb2_record_asimd_struct_ld_st.
3657
60cc5e93
OJ
36582014-08-13 Omair Javaid <omair.javaid@linaro.org>
3659
3660 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3661 for asimd, vfp and coprocessor insns.
3662 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3663 and coprocessor insns.
3664 (thumb2_record_coproc_insn): New function.
3665 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3666 handlers.
3667 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3668 opcode 110 insns.
3669
81219e53
DE
36702014-09-13 Doug Evans <xdje42@gmail.com>
3671
3672 * NEWS: Mention new "queue-signal" command.
3673 * infcmd.c (queue_signal_command): New function.
3674 (_initialize_infcmd): Add new queue-signal command.
3675
d36bf488
DE
36762014-09-13 Doug Evans <xdje42@gmail.com>
3677
3678 * linux-nat.c (wait_lwp): Add debugging printf.
3679 (linux_nat_wait_1): Ditto.
3680
f37f681c
PA
36812014-09-12 Pedro Alves <palves@redhat.com>
3682
3683 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3684 (create_and_insert_solib_event_breakpoint): New functions.
3685 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3686 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3687 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3688 (remove_dbx_link_breakpoint): Delete function.
3689 (insert_dbx_link_bpt_in_file): Use
3690 create_and_insert_solib_event_breakpoint instead of
3691 deprecated_insert_raw_breakpoint.
3692 (procfs_wait): Don't check whether we hit __dbx_link here.
3693 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3694 here.
3695 * solib-irix.c (base_breakpoint): Delete global.
3696 (disable_break): Delete function.
3697 (enable_break): Use create_solib_event_breakpoint
3698 instead of deprecated_insert_raw_breakpoint.
3699 (irix_solib_handle_event): New function.
3700 (irix_solib_create_inferior_hook): Don't run the target or disable
3701 the mapping-complete breakpoint here.
3702 (_initialize_irix_solib): Install irix_solib_handle_event as
3703 so_ops->handle_event hook.
3704
9d9bf2df
EBM
37052014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3706 Ulrich Weigand  <uweigand@de.ibm.com>
3707
3708 PR tdep/17379
3709 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3710 instead of read_memory_unsigned_integer.
3711
b006a80e
GB
37122014-09-12 Gary Benson <gbenson@redhat.com>
3713
3714 * nat/linux-waitpid.c: Include common-defs.h.
3715 [GDBSERVER]: Add FIXME comment.
3716 [!GDBSERVER]: Don't include defs.h or signal.h.
3717 (linux_debug) [!GDBSERVER]: Remove empty block.
3718
296b1496
GB
37192014-09-12 Gary Benson <gbenson@redhat.com>
3720
3721 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3722 Don't include defs.h or server.h.
3723
53f81362
GB
37242014-09-12 Gary Benson <gbenson@redhat.com>
3725
3726 * nat/linux-btrace.c: Include common-defs.h.
3727 Don't include defs.h, server.h or gdbthread.h.
3728 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3729
727605ca
GB
37302014-09-12 Gary Benson <gbenson@redhat.com>
3731
3732 * common/agent.c: Include common-defs.h.
3733 Don't include defs.h or server.h.
3734 * common/buffer.c: Likewise.
3735 * common/common-debug.c: Likewise.
3736 * common/common-utils.c: Likewise.
3737 * common/errors.c: Likewise.
3738 * common/filestuff.c: Likewise.
3739 * common/format.c: Likewise.
3740 * common/gdb_vecs.c: Likewise.
3741 * common/print-utils.c: Likewise.
3742 * common/ptid.c: Likewise.
3743 * common/rsp-low.c: Likewise.
3744 * common/signals.c: Likewise.
3745 * common/vec.c: Likewise.
3746 * common/xml-utils.c: Likewise.
3747 * nat/linux-osdata.c: Likewise.
3748 * nat/linux-procfs.c: Likewise.
3749 * nat/linux-ptrace.c: Likewise.
3750 * nat/mips-linux-watch.c: Likewise.
3751 * target/waitstatus.c: Likewise.
3752
361c8ade
GB
37532014-09-12 Tom Tromey <tromey@redhat.com>
3754 Gary Benson <gbenson@redhat.com>
3755
3756 * common/common-regcache.h: New file.
3757 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3758 * regcache.h: Include common-regcache.h.
3759 (regcache_read_pc): Don't declare.
3760 * regcache.c (get_thread_regcache_for_ptid): New function.
3761 * nat/linux-btrace.c: Don't include regcache.h.
3762 Include common-regcache.h.
3763 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3764
a01cbb49
TS
37652014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3766
3767 * regcache.h (struct regset): Declare.
3768
98880d46
PA
37692014-09-11 Pedro Alves <palves@redhat.com>
3770
3771 PR gdb/17347
3772 * main.c: Include "infrun.h".
3773 (catch_command_errors, catch_command_errors_const): Wait for the
3774 foreground command to complete.
3775 * top.c (maybe_wait_sync_command_done): New function, factored out
3776 from ...
3777 (maybe_wait_sync_command_done): ... here.
3778 * top.h (maybe_wait_sync_command_done): New declaration.
3779
bd9269f7
GB
37802014-09-11 Tom Tromey <tromey@redhat.com>
3781 Gary Benson <gbenson@redhat.com>
3782
3783 * common/symbol.h: New file.
3784 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3785 * minsyms.c (find_minimal_symbol_address): New function.
3786 * common/agent.c: Include common/symbol.h.
3787 [!GDBSERVER]: Don't include objfiles.h.
3788 (agent_look_up_symbols): Use find_minimal_symbol_address.
3789
f8c1d06b
GB
37902014-09-11 Gary Benson <gbenson@redhat.com>
3791
3792 * target/target.h (target_stop_ptid, target_continue_ptid):
3793 Declare.
3794 * target.c (target_stop_ptid, target_continue_ptid): New
3795 functions.
3796 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3797 (agent_run_command): Always use target_stop_ptid and
3798 target_continue_ptid.
3799
721ec300
GB
38002014-09-11 Tom Tromey <tromey@redhat.com>
3801 Gary Benson <gbenson@redhat.com>
3802
3803 * target/target.h: New file.
3804 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3805 * target.h: Include target/target.h.
3806 (target_read_memory, target_write_memory): Don't declare.
3807 * target.c (target_read_uint32): New function.
3808 * common/agent.c: Include target/target.h.
3809 [!GDBSERVER]: Don't include target.h.
3810 (helper_thread_id): Type changed to uint32_t.
3811 (agent_get_helper_thread_id): Use target_read_uint32.
3812 (agent_run_command): Always use target_read_memory and
3813 target_write_memory.
3814 (agent_capability): Type changed to uint32_t.
3815 (agent_capability_check): Use target_read_uint32.
3816
c5e92cca
GB
38172014-09-11 Gary Benson <gbenson@redhat.com>
3818
3819 * common/common-debug.h (show_debug_regs): Declare.
3820 * common/common-debug.c (show_debug_regs): Define.
3821 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3822 all uses with show_debug_regs. Replace all uses that considered
3823 debug_hw_points as a multi-value integer with straight boolean
3824 uses.
3825 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3826 with show_debug_regs.
3827 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3828 all uses with show_debug_regs.
3829 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3830 uses with show_debug_regs.
3831
eeef931a
UW
38322014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3833
3834 * findvar.c (address_from_register): Handle targets requiring
3835 a special conversion routine even for plain pointer types.
3836
8efa9855
UW
38372014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3838
3839 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3840 (store_register): Do not call exec_one_dummy_insn.
3841
eb479039
JB
38422014-09-10 Joel Brobecker <brobecker@adacore.com>
3843
3844 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3845 dereference it first. Use value_enclosing_type instead of
3846 value_type.
3847 (ada_array_length): Likewise.
3848
deede10c
JB
38492014-09-10 Joel Brobecker <brobecker@adacore.com>
3850
3851 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3852 Adjust function implementation and documentation accordingly.
3853 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3854 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3855 Update call to ada_value_ptr_subscript.
3856
7828a5f5
JB
38572014-09-10 Joel Brobecker <brobecker@adacore.com>
3858
3859 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3860 instead of VAL's type.
3861
35782f14
JB
38622014-09-10 Joel Brobecker <brobecker@adacore.com>
3863
3864 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3865
d342a0da
DE
38662014-09-09 Doug Evans <xdje42@gmail.com>
3867
3868 PR guile/17367
3869 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3870 last parameter to pkg-config, not first.
3871 * configure.ac: Pass --with-guile provided pkg-config path to
3872 GDB_GUILE_PROGRAM_NAMES.
3873 * configure: Regenerate.
3874
b4a3d263
GKB
38752014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3876
3877 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3878 Bertazi".
3879
6e466374
MR
38802014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3881
3882 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3883 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3884 the list of sections determining GDB_OSABI_IRIX.
3885
a1ada89a
JH
38862014-09-09 James Hogan <james.hogan@imgtec.com>
3887
3888 * MAINTAINERS (Write After Approval): Add "James Hogan".
3889
86db008d
JH
38902014-09-09 James Hogan <james.hogan@imgtec.com>
3891
3892 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3893
72fde3df
JB
38942014-09-09 Joel Brobecker <brobecker@adacore.com>
3895
3896 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3897
92d8d229
DE
38982014-09-08 Doug Evans <xdje42@gmail.com>
3899
3900 PR 17247
3901 * guile.c: #include <signal.h>.
3902 (_initialize_guile): Block SIGCHLD while initializing Guile.
3903
3904 Replaces the following, which is reverted.
3905
3906 2014-07-26 Doug Evans <xdje42@gmail.com>
3907
3908 PR 17185
3909 * configure.ac: Add check for header gc/gc.h.
3910 Add check for function setenv.
3911 * configure: Regenerate.
3912 * config.in: Regenerate.
3913 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3914
d81412aa
DE
39152014-09-08 Doug Evans <xdje42@gmail.com>
3916
3917 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3918 with named constant. Fix style of pointer comparison.
3919 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3920
a9f116cb
GKB
39212014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3922
3923 PR gdb/17035
3924 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3925 decide whether we display the command on "show user".
3926 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3927 printing command name.
3928 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3929 * cli/cli-decode.c (cli_user_command_p): Create helper function
3930 to verify whether cmd_list_element is a user-defined command.
3931
c75bd3a2
JK
39322014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3933
3934 PR python/17355
3935 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3936 Fix goto out of TRY_CATCH.
3937
faa42425 39382014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3939 Tom Tromey <tromey@redhat.com>
faa42425
DE
3940
3941 PR 15276
3942 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3943 $_any_caller_matches.
3944 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3945 * python/lib/gdb/function/caller_is.py: New file.
3946
0d41ba00
DE
39472014-09-06 Doug Evans <xdje42@gmail.com>
3948
3949 * infcmd.c (program_info): Fix typo.
3950
474ca4f6
SDJ
39512014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3952
3953 PR gdb/17235
3954 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3955 'number'. New variable 'has_digit'. Rewrite code to deal with
3956 subexpressions on SDT probes.
3957
ebf13736
PA
39582014-09-04 Pedro Alves <palves@redhat.com>
3959
3960 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3961 the input is only one character long.
3962
eb0b0463
SDJ
39632014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3964
3965 PR fortran/17237
3966 * f-valprint.c (f_val_print): Specify the correct print option to
3967 use when printing integer values.
3968
5ee44bfa
GB
39692014-09-04 Gary Benson <gbenson@redhat.com>
3970
3971 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3972 Remove code to cope with LWPs wrapped as PIDs.
3973 Add assertions to ensure no wrapped LWPs are passed.
3974
4875ffdb
PA
39752014-09-04 Pedro Alves <palves@redhat.com>
3976
3977 * value.c (value_ranges_copy_adjusted): New function, factored out
3978 from ...
3979 (value_contents_copy_raw): ... here.
3980 (unpack_value_bits_as_long_1): Rename back to ...
3981 (unpack_bits_as_long): ... this. Remove 'original_value' and
3982 'result' parameters. Change return type to LONGEST.
3983 (unpack_value_bits_as_long): Delete.
3984 (unpack_value_field_as_long_1): Delete.
3985 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3986 (unpack_value_bitfield): New function.
3987 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3988 (value_fetch_lazy): Use unpack_value_bitfield.
3989 * value.h (unpack_value_bits_as_long): Delete declaration.
3990
5f3b99cf
SS
39912014-09-03 Sasha Smundak <asmundak@google.com>
3992
3993 * python/py-frame.c (frapy_read_register): New function.
3994
ac740bc7
JH
39952014-09-03 James Hogan <james.hogan@imgtec.com>
3996
3997 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3998 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3999
7d793aa9
SDJ
40002014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4001
4002 PR python/16699
4003 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4004 function.
4005 (add_cmd): Set "completer_handle_brkchars" to NULL.
4006 * cli/cli-decode.h (struct cmd_list_element)
4007 <completer_handle_brkchars>: New field.
4008 * command.h (completer_ftype_void): New typedef.
4009 (set_cmd_completer_handle_brkchars): New prototype.
4010 * completer.c (set_gdb_completion_word_break_characters): New
4011 function.
4012 (complete_line_internal): Call "completer_handle_brkchars"
4013 callback from command.
4014 * completer.h: Include "command.h".
4015 (set_gdb_completion_word_break_characters): New prototype.
4016 * python/py-cmd.c (cmdpy_completer_helper): New function.
4017 (cmdpy_completer_handle_brkchars): New function.
4018 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4019 (cmdpy_init): Set completer_handle_brkchars to
4020 cmdpy_completer_handle_brkchars.
4021
97ea6506
GB
40222014-09-03 Gary Benson <gbenson@redhat.com>
4023
4024 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4025 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4026 Loop conditions changed to equivalent form.
4027 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4028 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4029 ALL_DEBUG_ADDRESS_REGISTERS.
4030
d1437815
JB
40312014-09-03 Joel Brobecker <brobecker@adacore.com>
4032
4033 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4034 description fix.
4035
9b94fcf1
DE
40362014-09-02 Doug Evans <dje@google.com>
4037
4038 * typeprint.c (find_global_typedef): Fix comment.
4039
df7e5265
GB
40402014-09-02 Gary Benson <gbenson@redhat.com>
4041
4042 * i386-nat.h: Renamed as...
4043 * x86-nat.h: New file. All type, function and variable name
4044 prefixes changed from "i386_" to "x86_". All references updated.
4045 * i386-nat.c: Renamed as...
4046 * x86-nat.c: New file. All type, function and variable name
4047 prefixes changed from "i386_" to "x86_". All references updated.
4048 * common/i386-xstate.h: Renamed as...
4049 * common/x86-xstate.h: New file. All type, function and variable
4050 name prefixes changed from "i386_" to "x86_". All references
4051 updated.
4052 * nat/i386-cpuid.h: Renamed as...
4053 * nat/x86-cpuid.h: New file. All type, function and variable name
4054 prefixes changed from "i386_" to "x86_". All references updated.
4055 * nat/i386-gcc-cpuid.h: Renamed as...
4056 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4057 name prefixes changed from "i386_" to "x86_". All references
4058 updated.
4059 * nat/i386-dregs.h: Renamed as...
4060 * nat/x86-dregs.h: New file. All type, function and variable name
4061 prefixes changed from "i386_" to "x86_". All references updated.
4062 * nat/i386-dregs.c: Renamed as...
4063 * nat/x86-dregs.c: New file. All type, function and variable name
4064 prefixes changed from "i386_" to "x86_". All references updated.
4065
1c3569d4
MR
40662014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4067
4068 * varobj.c (_initialize_varobj): Move to the end of file.
4069
ff55e1b5
GB
40702014-08-29 Gary Benson <gbenson@redhat.com>
4071
4072 * common/common-exceptions.h: New file.
4073 * common/common-exceptions.c: Likewise.
4074 * Makefile.in (SFILES): Add common/common-exceptions.c.
4075 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4076 (COMMON_OBS): Add common-exceptions.o.
4077 (common-exceptions.o): New rule.
4078 * exceptions.h (common-exceptions.h): Include.
4079 (gdb_setjmp.h): Do not include.
4080 (return_reason): Moved to common-exceptions.h.
4081 (enum return_reason): Likewise.
4082 (RETURN_MASK): Likewise.
4083 (typedef return_mask): Likewise.
4084 (enum errors): Likewise.
4085 (struct gdb_exception): Likewise.
4086 (exceptions_state_mc_init): Likewise.
4087 (exceptions_state_mc_action_iter): Likewise.
4088 (exceptions_state_mc_action_iter_1): Likewise.
4089 (TRY_CATCH): Likewise.
4090 (throw_exception): Likewise.
4091 (throw_verror): Likewise.
4092 (throw_vquit): Likewise.
4093 (throw_error): Likewise.
4094 (throw_quit): Likewise.
4095 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4096 (enum catcher_action): Likewise.
4097 (struct catcher): Likewise.
4098 (current_catcher): Likewise.
4099 (catcher_list_size): Likewise.
4100 (exceptions_state_mc_init): Likewise.
4101 (catcher_pop): Likewise.
4102 (exceptions_state_mc): Likewise.
4103 (exceptions_state_mc_action_iter): Likewise.
4104 (exceptions_state_mc_action_iter_1): Likewise.
4105 (throw_exception): Likewise.
4106 (exception_messages): Likewise.
4107 (exception_messages_size): Likewise.
4108 (throw_it): Likewise.
4109 (throw_verror): Likewise.
4110 (throw_vquit): Likewise.
4111 (throw_error): Likewise.
4112 (throw_quit): Likewise.
4113 (prepare_to_throw_exception): New function.
4114
e9bcb658
GB
41152014-08-29 Gary Benson <gbenson@redhat.com>
4116
4117 * common/gdb_setjmp.h: New file.
4118 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4119 * configure.ac: Move sigsetjmp check...
4120 * common/common.m4: ...here.
4121 * configure: Regenerate.
4122 * cp-support.c (SIGJMP_BUF): Delete.
4123 (SIGSETJMP): Likewise.
4124 (SIGLONGJMP): Likewise.
4125 * exceptions.h (gdb_setjmp.h): Include.
4126 (setjmp.h): Do not include.
4127 (EXCEPTIONS_SIGJMP_BUF): Delete.
4128 (EXCEPTIONS_SIGSETJMP): Likewise.
4129 (EXCEPTIONS_SIGLONGJMP): Likewise.
4130 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4131 from gdb_setjmp.h.
4132 * exceptions.c: Likewise.
4133
e3180625
GB
41342014-08-29 Gary Benson <gbenson@redhat.com>
4135
4136 * cleanups.h: Moved to...
4137 * common/cleanups.h: New file.
4138 * cleanups.c: Moved to...
4139 * common/cleanups.c: New file. Include common-defs.h and
4140 cleanups.h. Do not include defs.h.
4141 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4142 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4143 (cleanups.o): New rule.
4144
e3d6ba5d
GB
41452014-08-29 Gary Benson <gbenson@redhat.com>
4146
4147 * common/errors.h (internal_warning): New declaration.
4148 (internal_vwarning): Likewise.
4149 * common/errors.c (internal_warning): New function.
4150 * utils.h (internal_warning): Don't declare.
4151 (internal_vwarning): Likewise.
4152 * utils.c (internal_warning): Removed.
4153
075c7033
GB
41542014-08-29 Gary Benson <gbenson@redhat.com>
4155
4156 * main.c (captured_main): Use warning during startup.
4157 Prefix startup warning messages with command name.
4158
91b35fd0
GB
41592014-08-29 Gary Benson <gbenson@redhat.com>
4160
4161 * main.c (captured_main): Handle usage errors with error.
4162
b1ec390e
GB
41632014-08-29 Gary Benson <gbenson@redhat.com>
4164
4165 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4166 exit pair with a call to error. Wrap the message with _().
4167
fd0ef3dd
GB
41682014-08-29 Gary Benson <gbenson@redhat.com>
4169
4170 * main.c (captured_main): Replace a fprintf/exit
4171 pair with a call to error. Wrap the message with _().
4172
e0e6bcab
GB
41732014-08-29 Gary Benson <gbenson@redhat.com>
4174
4175 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4176 pairs with calls to error. Wrap the message with _().
4177
0d2f5c07
GB
41782014-08-29 Gary Benson <gbenson@redhat.com>
4179
4180 * utils.c (vwarning): Protect calls to target_terminal_ours
4181 and wrap_here.
4182
5df43998
GB
41832014-08-29 Gary Benson <gbenson@redhat.com>
4184
4185 * exceptions.c (print_flush): Protect calls to
4186 target_terminal_ours and wrap_here.
4187
2437fd32
GB
41882014-08-29 Gary Benson <gbenson@redhat.com>
4189
4190 * utils.h (filtered_printing_initialized): New declaration.
4191 * utils.c (abort_with_message): New function.
4192 (internal_vproblem): Use abort_with_message for first level
4193 recursive internal problems, and if gdb_stderr is not set up.
4194 Protect calls to target_terminal_ours, begin_line and query.
4195
f1f58506
DE
41962014-08-28 Doug Evans <dje@google.com>
4197
4198 * symtab.c (in_prologue): Move definition to better spot.
4199 (skip_prologue_using_sal): Ditto.
4200
aab2f208
DE
42012014-08-28 Doug Evans <dje@google.com>
4202
4203 * symtab.c (find_function_start_sal): Move definition to better spot.
4204
6b65d1b6
YQ
42052014-08-28 Yao Qi <yao@codesourcery.com>
4206
4207 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4208 found_stack_adjust in forward scan. Remove condition check
4209 on found_stack_adjust which is always true. Indent the code.
4210
a1b34d15
YQ
42112014-08-28 Yao Qi <yao@codesourcery.com>
4212
4213 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4214 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4215 (dwarf_decode_lines): Remove argument
4216 want_line_info. Remove condition check on want_line_info.
4217 Callers update.
4218
d5962de5
DE
42192014-08-27 Doug Evans <dje@google.com>
4220
4221 * dwarf2read.c (dwarf_record_line): Fix typo.
4222
9b139002
SDJ
42232014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4224
4225 * target.h (struct target_ops::to_terminal_save_ours): Remove
4226 declaration.
4227 (target_terminal_save_ours): Remove macro.
4228 * target-delegates.c: Regenerate.
4229 * inf-child.c (inf_child_target): Don't set the nonexistent
4230 field to_terminal_save_ours.
4231 * inferior.h (child_terminal_save_ours): Remove declaration.
4232 * terminal.h (gdb_save_tty_state): New declaration.
4233 * inflow.c (child_terminal_save_ours): Rename to ...
4234 (gdb_save_tty_state): ... this.
4235 * tui/tui.c: Include terminal.h.
4236 (tui_enable): Use gdb_save_tty_state instead of
4237 target_terminal_save_ours.
4238 (tui_disable): Likewise.
4239
9debeba0
DE
42402014-08-25 Doug Evans <dje@google.com>
4241
4242 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4243 Pass NULL instead of 0 for context pointer.
4244
428fc5fc
YQ
42452014-08-25 Yao Qi <yao@codesourcery.com>
4246
4247 * dwarf2read.c: Fix grammatical error.
4248
cdc07690
YQ
42492014-08-24 Yao Qi <yao@codesourcery.com>
4250
4251 * dwarf2read.c (scan_partial_symbols): Update comments.
4252 Rename argument 'need_pc' with 'set_addrmap'.
4253 (add_partial_namespace): Rename argument 'need_pc' with
4254 'set_addrmap'.
4255 (add_partial_module): Likewise.
4256 (add_partial_subprogram): Likewise. Update comments.
4257 (dwarf2_name): Fix typo.
4258
a05a36a5
DE
42592014-08-22 Doug Evans <dje@google.com>
4260
4261 PR 17276
4262 * dwarf2read.c (dwarf_record_line_p): New function.
4263 (dwarf_decode_lines_1): Ignore subsequent line number entries
4264 for the same line if any entry had a non-zero discriminator.
4265
252a6764
DE
42662014-08-22 Doug Evans <dje@google.com>
4267
4268 * buildsym.h (record_line_ftype): New typedef.
4269 (record_line): Use it.
4270 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4271 (dwarf_decode_lines_1): Call them.
4272
510db052
YQ
42732014-08-22 Yao Qi <yao@codesourcery.com>
4274
4275 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4276 (ctf_end): Remove code.
4277
22fd09ae
JK
42782014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4279
4280 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4281 (linux_make_corefile_notes): call update_thread_list, protected against
4282 exceptions.
4283
656e8868
PA
42842014-08-21 Pedro Alves <palves@redhat.com>
4285
4286 * infcmd.c (attach_command): Remove comment.
4287
de589d04
WN
42882014-08-21 Bin Cheng <bin.cheng@arm.com>
4289
4290 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4291 unsigned LONGEST to ULONGEST.
4292
2a31c623
PA
42932014-08-20 Pedro Alves <palves@redhat.com>
4294
4295 * Makefile.in (check-read1): New rule.
4296
d36430db
JB
42972014-08-20 Joel Brobecker <brobecker@adacore.com>
4298
4299 * value.c (value_from_contents_and_address): Strip resolved_type's
4300 typedef layers before checking its TYPE_DATA_LOCATION.
4301
000339af
PA
43022014-08-20 Pedro Alves <palves@redhat.com>
4303
4304 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4305
5f52445b
YQ
43062014-08-20 Yao Qi <yao@codesourcery.com>
4307
4308 * amd64-tdep.c (amd64_classify): Add a blank line after the
4309 example. Move "*/" to a new line.
4310 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4311 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4312 * dwarf2read.c (psymtab_include_file_name): Likewise.
4313
9a0dc9e3
PA
43142014-08-19 Andrew Burgess <aburgess@broadcom.com>
4315 Pedro Alves <palves@redhat.com>
4316
4317 PR symtab/14604
4318 PR symtab/14605
4319 * ada-lang.c (coerce_unspec_val_to_type): Use
4320 value_contents_copy_raw.
4321 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4322 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4323 * cp-valprint.c (cp_print_value_fields): Let the common printing
4324 code handle optimized out values.
4325 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4326 * d-valprint.c (dynamic_array_type): Use
4327 value_bits_any_optimized_out.
4328 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4329 check_any_valid fields.
4330 (check_pieced_value_bits): Delete and inline ...
4331 (check_pieced_synthetic_pointer): ... here.
4332 (check_pieced_value_validity): Delete.
4333 (check_pieced_value_invalid): Delete.
4334 (pieced_value_funcs): Remove check_validity and check_any_valid
4335 fields.
4336 (read_pieced_value): Use mark_value_bits_optimized_out.
4337 (write_pieced_value): Switch to use
4338 mark_value_bytes_optimized_out.
4339 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4340 of assuming the whole value is optimized out.
4341 * findvar.c (read_frame_register_value): Remove special handling
4342 of optimized out registers.
4343 (value_from_register): Use mark_value_bytes_optimized_out.
4344 * frame-unwind.c (frame_unwind_got_optimized): Use
4345 mark_value_bytes_optimized_out.
4346 * jv-valprint.c (java_value_print): Adjust.
4347 (java_print_value_fields): Let the common printing code handle
4348 optimized out values.
4349 * mips-tdep.c (mips_print_register): Remove special handling of
4350 optimized out registers.
4351 * opencl-lang.c (lval_func_check_validity): Delete.
4352 (lval_func_check_any_valid): Delete.
4353 (opencl_value_funcs): Remove check_validity and check_any_valid
4354 fields.
4355 * p-valprint.c (pascal_object_print_value_fields): Let the common
4356 printing code handle optimized out values.
4357 * stack.c (read_frame_arg): Remove special handling of optimized
4358 out values. Fetch both VAL and ENTRYVAL before comparing
4359 contents. Adjust to value_available_contents_eq rename.
4360 * valprint.c (valprint_check_validity)
4361 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4362 (val_print_array_elements): Adjust.
4363 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4364 (value_bits_any_optimized_out): New function.
4365 (value_entirely_covered_by_range_vector): New function, factored
4366 out from value_entirely_unavailable.
4367 (value_entirely_unavailable): Reimplement.
4368 (value_entirely_optimized_out): New function.
4369 (insert_into_bit_range_vector): New function, factored out from
4370 mark_value_bits_unavailable.
4371 (mark_value_bits_unavailable): Reimplement.
4372 (struct ranges_and_idx): New struct.
4373 (find_first_range_overlap_and_match): New function, factored out
4374 from value_available_contents_bits_eq.
4375 (value_available_contents_bits_eq): Rename to ...
4376 (value_contents_bits_eq): ... this. Check both unavailable
4377 contents and optimized out contents.
4378 (value_available_contents_eq): Rename to ...
4379 (value_contents_eq): ... this.
4380 (allocate_value_lazy): Remove reference to the old optimized_out
4381 boolean.
4382 (allocate_optimized_out_value): Use
4383 mark_value_bytes_optimized_out.
4384 (require_not_optimized_out): Adjust to check whether the
4385 optimized_out vec is empty.
4386 (ranges_copy_adjusted): New function, factored out from
4387 value_contents_copy_raw.
4388 (value_contents_copy_raw): Also copy the optimized out ranges.
4389 Assert the destination ranges aren't optimized out.
4390 (value_contents_copy): Update comment, remove call to
4391 require_not_optimized_out.
4392 (value_contents_equal): Adjust to check whether the optimized_out
4393 vec is empty.
4394 (set_value_optimized_out, value_optimized_out_const): Delete.
4395 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4396 New functions.
4397 (value_entirely_optimized_out, value_bits_valid): Delete.
4398 (value_copy): Take a VEC copy of the 'optimized_out' field.
4399 (value_primitive_field): Remove special handling of optimized out.
4400 (value_fetch_lazy): Assert that lazy values have no unavailable
4401 regions. Use value_bits_any_optimized_out. Remove some special
4402 handling for optimized out values.
4403 * value.h: Add intro comment about <optimized out> and
4404 <unavailable>.
4405 (struct lval_funcs): Remove check_validity and check_any_valid
4406 fields.
4407 (set_value_optimized_out, value_optimized_out_const): Remove.
4408 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4409 New declarations.
4410 (value_bits_any_optimized_out): New declaration.
4411 (value_bits_valid): Delete declaration.
4412 (value_available_contents_eq): Rename to ...
4413 (value_contents_eq): ... this, and extend comments.
4414
6694c411
JK
44152014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4416
4417 Fix -fsanitize=address on unreadable inferior strings.
4418 * valprint.c (val_print_string): Fix access before BUFFER.
4419
89a1c21a
SM
44202014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4421
4422 * target.c (target_struct_size): Remove.
4423 (target_struct_allocsize): Remove.
4424 (DEFAULT_ALLOCSIZE): Remove.
4425 (target_ops_p): New typedef.
4426 (DEF_VEC_P (target_ops_p)): New vector type.
4427 (target_structs): Change type to VEC (target_ops_p).
4428 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4429 (find_default_run_target): Rewrite for loop following changes to
4430 target_structs.
4431
cb417230
JB
44322014-08-19 Joel Brobecker <brobecker@adacore.com>
4433
4434 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4435 Adjust code accordingly. Adjust function description comment.
4436
817e0957
YQ
44372014-08-19 Yao Qi <yao@codesourcery.com>
4438
4439 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4440 types.
4441
2974be62
AM
44422014-08-19 Alan Modra <amodra@gmail.com>
4443
4444 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4445 * config.in: Regenerate.
4446 * configure: Regenerate.
4447
34abf635
GB
44482014-08-19 Tom Tromey <tromey@redhat.com>
4449 Gary Benson <gbenson@redhat.com>
4450
4451 * common/common-debug.h: New file.
4452 * common/common-debug.c: Likewise.
4453 * debug.c: Likewise.
4454 * Makefile.in (SFILES): Add common/common-debug.c.
4455 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4456 (COMMON_OBS): Add common-debug.o and debug.o.
4457 (common-debug.o): New rule.
4458 * common/common-defs.h: Include common-debug.h.
4459 * common/agent.c (debug_agent_printf): New function.
4460 (DEBUG_AGENT): Redefine.
4461 * nat/i386-dregs.c (debug_printf): Undefine.
4462
f6e94d78
GB
44632014-08-19 Gary Benson <gbenson@redhat.com>
4464
4465 * common/common-defs.h: Include print-utils.h.
4466 * utils.h: Do not include print-utils.h.
4467
9239eeab
GB
44682014-08-19 Tom Tromey <tromey@redhat.com>
4469 Gary Benson <gbenson@redhat.com>
4470
4471 * common/common-types.h: New file.
4472 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4473 * common/common-defs.h: Include common-types.h.
4474 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4475 (ULONGEST): Remove.
4476
ef87c8bb
GB
44772014-08-19 Tom Tromey <tromey@redhat.com>
4478 Gary Benson <gbenson@redhat.com>
4479
4480 * common/errors.h: New file.
4481 * common/errors.c: Likewise.
4482 * Makefile.in (SFILES): Add common/errors.c.
4483 (HFILES_NO_SRCDIR): Add common/errors.h.
4484 (COMMON_OBS): Add errors.o.
4485 (errors.o): New rule.
4486 * common/common-defs.h: Include errors.h.
4487 * utils.h (perror_with_name, error, verror, warning, vwarning):
4488 Don't declare.
4489 * common/common-utils.h: (malloc_failure, internal_error):
4490 Likewise.
4491
196a707b
GB
44922014-08-19 Gary Benson <gbenson@redhat.com>
4493
4494 * utils.c (internal_vproblem): Always print the message.
4495
ded4fc8f
DE
44962014-08-18 Doug Evans <dje@google.com>
4497
4498 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4499
950c97d8
JB
45002014-08-18 Joel Brobecker <brobecker@adacore.com>
4501
4502 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4503 Return 0 if TYPE is dynamic.
4504 (print_range): Add handling of dynamic ranges.
4505
3cdcd0ce
JB
45062014-08-18 Keven Boell <keven.boell@intel.com>
4507 Joel Brobecker <brobecker@adacore.com>
4508
4509 * gdbtypes.h (struct main_type): Add field "data_location".
4510 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4511 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4512 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4513 a dynamic data location.
4514 (resolve_dynamic_type): Add DW_AT_data_location handling.
4515 (copy_recursive, copy_type): Copy the data_location information
4516 when present.
4517 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4518 * value.c (value_from_contents_and_address): Add
4519 DW_AT_data_location handling.
4520
08412b07
JB
45212014-08-18 Keven Boell <keven.boell@intel.com>
4522 Joel Brobecker <brobecker@adacore.com>
4523
4524 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4525 field "get_object_address".
4526 * dwarf2expr.c (execute_stack_op): Add handling for
4527 DW_OP_push_object_address.
4528 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4529 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4530 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4531 (dwarf_expr_get_obj_addr): New function.
4532 (dwarf_expr_ctx_funcs): Add get_object_address field.
4533 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4534 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4535 (dwarf2_evaluate_property): Add parameter "address". Use it.
4536 (needs_get_obj_addr): New function.
4537 (needs_frame_ctx_funcs): Add get_object_address field.
4538 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4539 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4540 (resolve_dynamic_array): Likewise.
4541
84754697
JB
45422014-08-18 Joel Brobecker <brobecker@adacore.com>
4543
4544 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4545 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4546 fixed value for records and unions for which some GNAT encodings
4547 are present.
4548
da5c522f
JB
45492014-08-18 Joel Brobecker <brobecker@adacore.com>
4550
4551 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4552 rewrite to avoid "else if" and "else" constructs. Should be
4553 a no-op in practice.
4554
0d72a7c3
JB
45552014-08-18 Joel Brobecker <brobecker@adacore.com>
4556
4557 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4558 of lexical block.
4559
e66d4446
SC
45602014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4561
4562 PR c++/17132
4563 * eval.c: Update all calls to find_overload_match.
4564 * valarith.c: Likewise.
4565 (value_user_defined_cpp_op, value_user_defined_op): New
4566 argument NOSIDE. Update all callers.
4567 * valops.c (find_overload_match): New argument NOSIDE.
4568 * value.h (find_overload_match): Update signature.
4569
940df408
SC
45702014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4571
4572 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4573 'items' methods instead of 'iteritems' method on dictionaries.
4574
699ca60a
DE
45752014-08-15 Doug Evans <dje@google.com>
4576
4577 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4578 closer to use.
4579
37780ee5
DE
45802014-08-15 Doug Evans <dje@google.com>
4581
4582 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4583
0ad93d4f
DE
45842014-08-15 Doug Evans <dje@google.com>
4585
4586 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4587
20d8c372
DE
45882014-08-15 Doug Evans <dje@google.com>
4589
4590 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4591 unused.
4592
cb039ba4
EZ
45932014-08-15 Eli Zaretskii <eliz@gnu.org>
4594
4595 * dcache.h: Include target.h, to avoid compile time warnings.
4596
eb7a547a
JB
45972014-08-15 Joel Brobecker <brobecker@adacore.com>
4598
4599 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4600 frame_info" partial declaration.
4601 * gdbarch.h: Regenerate.
4602
783cecc8
YQ
46032014-08-15 Yao Qi <yao@codesourcery.com>
4604
4605 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4606 Add parameter 'decode_for_pst_p'. Callers update.
4607
65c749e7
YQ
46082014-08-13 Yao Qi <yao@codesourcery.com>
4609
4610 PR build/17104
4611 * configure.ac: Use local variable 'pos'.
4612 * configure: Regenerated.
4613
d769e349
DE
46142014-08-11 Doug Evans <dje@google.com>
4615
4616 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4617 message, it is redundant with "Reading symbols from ..." message.
4618
24f1235e
DE
46192014-08-10 Doug Evans <xdje42@gmail.com>
4620
4621 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4622
dcd2e6ef
YQ
46232014-08-09 Yao Qi <yao@codesourcery.com>
4624
4625 PR remote/9053
4626 * remote.c (remote_xfer_partial): Remove dead code.
4627
070bdf0b
AA
46282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4629
4630 * ia64-linux-tdep.c: Include "regset.h".
4631 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4632 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4633 (ia64_linux_supply_fpregset): New function.
4634 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4635 (ia64_linux_regset_from_core_section): New function.
4636 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4637 method.
4638
08f9f542
AA
46392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640
4641 * m68klinux-tdep.c: Include "regset.h".
4642 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4643 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4644 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4645 (m68k_linux_regset_from_core_section): New function.
4646 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4647 method.
4648
8f1cee41
AA
46492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4650
4651 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4652 function. Move logic to...
4653 (tilegx_linux_regmap): ... this new register map.
4654 (tilegx_linux_regset): Refer to register map, replace supply
4655 method by regcache_supply_regset, and add collect method.
4656 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4657 TILEGX_FIRST_EASY_REGNUM.
4658
c5741217
AA
46592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4660
4661 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4662 that calls regcache_supply_regset and handles the EPC register
4663 separately. Move main logic to...
4664 (score7_linux_gregmap): ... this new register map.
4665 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4666 (score7_linux_gregset): Refer to register map. Add collect method.
4667 (score7_linux_regset_from_core_section): Replace
4668 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4669 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4670 (struct regset): Delete unused forward declaraction.
4671 (struct pt_regs): Delete structure definition.
4672 (elf_gregset_t): Delete typedef.
4673
81580573
AA
46742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4675
4676 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4677 (nios2_core_regset): Add collect method.
4678
ba199d7d
AA
46792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4680
4681 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4682 platform-independent and don't write to read-only input buffer.
4683 (m32r_linux_collect_gregset): New function.
4684 (m32r_linux_gregset): Add collect method.
4685
0006a9da
AA
46862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4687
4688 * hppa-linux-tdep.c (greg_map): Rename to...
4689 (hppa_linux_gregmap): ... this. Also convert to
4690 regcache_map_entry format.
4691 (hppa_linux_supply_regset): Delete function.
4692 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4693 (hppa_linux_fpregmap): ... this new register map.
4694 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4695 register map, replace supply method by regcache_supply_regset, and
4696 add collect method regcache_collect_regset.
4697
901e1b23
AA
46982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699
4700 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4701 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4702 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4703 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4704 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4705 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4706 (frv_linux_supply_gregset): Replace main logic by call to
4707 regcache_supply_regset, but keep clearing gr32-gr63.
4708 (frv_linux_supply_fpregset): Delete function.
4709 (frv_linux_gregset): Refer to appropriate register map and add
4710 regcache_collect_regset as the collect method.
4711 (frv_linux_fpregset): Likewise. Also exchange the supply method
4712 by regcache_supply_regset.
4713
1d6e7555
AA
47142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4715
4716 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4717 by call to alpha_supply_int_regs.
4718 (alpha_linux_collect_gregset): New function.
4719 (alpha_linux_supply_fpregset): Replace logic by call to
4720 alpha_supply_fp_regs.
4721 (alpha_linux_collect_fpregset): New function.
4722 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4723
d4d793bf
AA
47242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4725
4726 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4727 by call to regcache_collect_regset.
4728 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4729 instead of aarch64_linux_supply_gregset/_fpregset.
4730 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4731 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4732 header file instead.
4733 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4734 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4735 functions. Move logic to ...
4736 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4737 register maps.
4738 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4739 refer to new register maps, replace *_regset_from_core by
4740 regcache_supply_regset, and also use regcache_collect_regset.
4741 * aarch64-linux-tdep.h: Include "regset.h".
4742 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4743 Delete prototypes.
4744 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4745 macros, moved from C source file.
4746 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4747 variable declarations.
4748
99b7da5d
AA
47492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750
4751 * s390-linux-nat.c: Include "regset.h".
4752 (regmap_gregset): Delete macro.
4753 (s390_64_regmap_gregset): New register map for
4754 regcache_supply/_collect_regset.
4755 (s390_64_gregset): New regset.
4756 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4757 (regmap_fpregset): Delete macro.
4758 (s390_native_supply, s390_native_collect): Delete functions.
4759 (supply_gregset, fill_gregset): Replace s390-specific regmap
4760 handling by a call to regcache_supply/_collect_regset.
4761 (supply_fpregset, fill_fpregset): Call regcache_supply/
4762 _collect_regset instead of s390_native_supply/_collect.
4763 (fetch_regset, store_regset): Likewise. Also change the last
4764 parameter to a regset instead of a regmap.
4765 (s390_linux_fetch_inferior_registers)
4766 (390_linux_store_inferior_registers): Adjust last parameter in
4767 calls to fetch_regset and store_regset.
4768 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4769 (s390_gregmap): ... this. Also make static const and convert to
4770 regcache_map_entry format.
4771 (s390x_regmap_gregset): Delete.
4772 (s390_regmap_fpregset): Rename to...
4773 (s390_fpregmap): ... this. Make static const and convert to
4774 regcache_map_entry format.
4775 (s390_regmap_upper, s390_regmap_last_break)
4776 (s390x_regmap_last_break, s390_regmap_system_call)
4777 (s390_regmap_tdb): Likewise.
4778 (s390_supply_regset, s390_collect_regset): Remove functions.
4779 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4780 s390_supply_regset.
4781 (s390_gregset, s390_fpregset, s390_upper_regset)
4782 (s390_last_break_regset, s390x_last_break_regset)
4783 (s390_system_call_regset, s390_tdb_regset): Make global and
4784 replace s390_supply/_collect_regset by regcache_supply/
4785 _collect_regset.
4786 (s390x_gregset): Delete.
4787 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4788 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4789 (s390_regmap_fpregset, s390_regmap_last_break)
4790 (s390x_regmap_last_break, s390_regmap_system_call)
4791 (s390_regmap_tdb): Delete global variable declarations.
4792 (s390_gregset, s390_fpregset, s390_last_break_regset)
4793 (s390x_last_break_regset, s390_system_call_regset)
4794 (s390_tdb_regset): New global variable declarations.
4795
0b309272
AA
47962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4797
4798 * regcache.c: Include "regset.h".
4799 (regcache_transfer_regset): New local function.
4800 (regcache_supply_regset, regcache_collect_regset): New functions.
4801 * regcache.h (struct regcache_map_entry): New structure.
4802 (REGCACHE_MAP_SKIP): New enum value.
4803 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4804
7fefa8d7
AA
48052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4806
4807 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4808 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4809 (ppc_linux_collect_gregset ): Likewise.
4810 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4811 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4812 (ppc_collect_vrregset): Likewise.
4813 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4814 Likewise.
4815
96c4f946
YQ
48162014-08-07 Yao Qi <yao@codesourcery.com>
4817
4818 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4819 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4820 * remote.c (remote_read_bytes): Likewise.
4821
fffbe6a8
YQ
48222014-08-07 Yao Qi <yao@codesourcery.com>
4823
4824 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4825
5ee8a82c
YQ
48262014-08-07 Yao Qi <yao@codesourcery.com>
4827
4828 PR remote/17230
4829 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4830 TARGET_XFER_OK instead of 0.
4831
bb974a24
GB
48322014-08-07 Gary Benson <gbenson@redhat.com>
4833
4834 * common/common-defs.h: Include errno.h.
4835 * defs.h: Do not include errno.h.
4836 * ada-typeprint.c: Likewise.
4837 * c-typeprint.c: Likewise.
4838 * core-regset.c: Likewise.
4839 * corefile.c: Likewise.
4840 * corelow.c: Likewise.
4841 * event-loop.c: Likewise.
4842 * f-typeprint.c: Likewise.
4843 * gnu-nat.c: Likewise.
4844 * go32-nat.c: Likewise.
4845 * i386gnu-nat.c: Likewise.
4846 * m2-typeprint.c: Likewise.
4847 * nat/linux-btrace.c: Likewise.
4848 * p-typeprint.c: Likewise.
4849 * procfs.c: Likewise.
4850 * remote-sim.c: Likewise.
4851 * rs6000-nat.c: Likewise.
4852 * target.c: Likewise.
4853 * typeprint.c: Likewise.
4854 * ui-file.c: Likewise.
4855 * valops.c: Likewise.
4856 * valprint.c: Likewise.
4857
6d3d12eb
GB
48582014-08-07 Gary Benson <gbenson@redhat.com>
4859
4860 * common/common-defs.h: Include string.h.
4861 * aarch64-tdep.c: Do not include string.h.
4862 * ada-exp.y: Likewise.
4863 * ada-lang.c: Likewise.
4864 * ada-lex.l: Likewise.
4865 * ada-typeprint.c: Likewise.
4866 * ada-valprint.c: Likewise.
4867 * aix-thread.c: Likewise.
4868 * alpha-linux-tdep.c: Likewise.
4869 * alpha-mdebug-tdep.c: Likewise.
4870 * alpha-nat.c: Likewise.
4871 * alpha-osf1-tdep.c: Likewise.
4872 * alpha-tdep.c: Likewise.
4873 * alphanbsd-tdep.c: Likewise.
4874 * amd64-dicos-tdep.c: Likewise.
4875 * amd64-linux-tdep.c: Likewise.
4876 * amd64-nat.c: Likewise.
4877 * amd64-sol2-tdep.c: Likewise.
4878 * amd64fbsd-tdep.c: Likewise.
4879 * amd64obsd-tdep.c: Likewise.
4880 * arch-utils.c: Likewise.
4881 * arm-linux-nat.c: Likewise.
4882 * arm-linux-tdep.c: Likewise.
4883 * arm-tdep.c: Likewise.
4884 * arm-wince-tdep.c: Likewise.
4885 * armbsd-tdep.c: Likewise.
4886 * armnbsd-nat.c: Likewise.
4887 * armnbsd-tdep.c: Likewise.
4888 * armobsd-tdep.c: Likewise.
4889 * avr-tdep.c: Likewise.
4890 * ax-gdb.c: Likewise.
4891 * ax-general.c: Likewise.
4892 * bcache.c: Likewise.
4893 * bfin-tdep.c: Likewise.
4894 * breakpoint.c: Likewise.
4895 * build-id.c: Likewise.
4896 * buildsym.c: Likewise.
4897 * c-exp.y: Likewise.
4898 * c-lang.c: Likewise.
4899 * c-typeprint.c: Likewise.
4900 * c-valprint.c: Likewise.
4901 * charset.c: Likewise.
4902 * cli-out.c: Likewise.
4903 * cli/cli-cmds.c: Likewise.
4904 * cli/cli-decode.c: Likewise.
4905 * cli/cli-dump.c: Likewise.
4906 * cli/cli-interp.c: Likewise.
4907 * cli/cli-logging.c: Likewise.
4908 * cli/cli-script.c: Likewise.
4909 * cli/cli-setshow.c: Likewise.
4910 * cli/cli-utils.c: Likewise.
4911 * coffread.c: Likewise.
4912 * common/agent.c: Likewise.
4913 * common/buffer.c: Likewise.
4914 * common/buffer.h: Likewise.
4915 * common/common-utils.c: Likewise.
4916 * common/filestuff.c: Likewise.
4917 * common/filestuff.c: Likewise.
4918 * common/format.c: Likewise.
4919 * common/print-utils.c: Likewise.
4920 * common/rsp-low.c: Likewise.
4921 * common/signals.c: Likewise.
4922 * common/vec.h: Likewise.
4923 * common/xml-utils.c: Likewise.
4924 * core-regset.c: Likewise.
4925 * corefile.c: Likewise.
4926 * corelow.c: Likewise.
4927 * cp-abi.c: Likewise.
4928 * cp-name-parser.y: Likewise.
4929 * cp-support.c: Likewise.
4930 * cp-valprint.c: Likewise.
4931 * cris-tdep.c: Likewise.
4932 * d-exp.y: Likewise.
4933 * darwin-nat.c: Likewise.
4934 * dbxread.c: Likewise.
4935 * dcache.c: Likewise.
4936 * demangle.c: Likewise.
4937 * dicos-tdep.c: Likewise.
4938 * disasm.c: Likewise.
4939 * doublest.c: Likewise.
4940 * dsrec.c: Likewise.
4941 * dummy-frame.c: Likewise.
4942 * dwarf2-frame.c: Likewise.
4943 * dwarf2loc.c: Likewise.
4944 * dwarf2read.c: Likewise.
4945 * elfread.c: Likewise.
4946 * environ.c: Likewise.
4947 * eval.c: Likewise.
4948 * event-loop.c: Likewise.
4949 * exceptions.c: Likewise.
4950 * exec.c: Likewise.
4951 * expprint.c: Likewise.
4952 * f-exp.y: Likewise.
4953 * f-lang.c: Likewise.
4954 * f-typeprint.c: Likewise.
4955 * f-valprint.c: Likewise.
4956 * fbsd-nat.c: Likewise.
4957 * findcmd.c: Likewise.
4958 * findvar.c: Likewise.
4959 * fork-child.c: Likewise.
4960 * frame.c: Likewise.
4961 * frv-linux-tdep.c: Likewise.
4962 * frv-tdep.c: Likewise.
4963 * gdb.c: Likewise.
4964 * gdb_bfd.c: Likewise.
4965 * gdbarch.c: Likewise.
4966 * gdbarch.sh: Likewise.
4967 * gdbtypes.c: Likewise.
4968 * gnu-nat.c: Likewise.
4969 * gnu-v2-abi.c: Likewise.
4970 * gnu-v3-abi.c: Likewise.
4971 * go-exp.y: Likewise.
4972 * go-lang.c: Likewise.
4973 * go32-nat.c: Likewise.
4974 * guile/guile.c: Likewise.
4975 * guile/scm-auto-load.c: Likewise.
4976 * hppa-hpux-tdep.c: Likewise.
4977 * hppa-linux-nat.c: Likewise.
4978 * hppanbsd-tdep.c: Likewise.
4979 * hppaobsd-tdep.c: Likewise.
4980 * i386-cygwin-tdep.c: Likewise.
4981 * i386-dicos-tdep.c: Likewise.
4982 * i386-linux-tdep.c: Likewise.
4983 * i386-nto-tdep.c: Likewise.
4984 * i386-sol2-tdep.c: Likewise.
4985 * i386-tdep.c: Likewise.
4986 * i386bsd-tdep.c: Likewise.
4987 * i386gnu-nat.c: Likewise.
4988 * i386nbsd-tdep.c: Likewise.
4989 * i386obsd-tdep.c: Likewise.
4990 * i387-tdep.c: Likewise.
4991 * ia64-libunwind-tdep.c: Likewise.
4992 * ia64-linux-nat.c: Likewise.
4993 * inf-child.c: Likewise.
4994 * inf-ptrace.c: Likewise.
4995 * inf-ttrace.c: Likewise.
4996 * infcall.c: Likewise.
4997 * infcmd.c: Likewise.
4998 * inflow.c: Likewise.
4999 * infrun.c: Likewise.
5000 * interps.c: Likewise.
5001 * iq2000-tdep.c: Likewise.
5002 * irix5-nat.c: Likewise.
5003 * jv-exp.y: Likewise.
5004 * jv-lang.c: Likewise.
5005 * jv-typeprint.c: Likewise.
5006 * jv-valprint.c: Likewise.
5007 * language.c: Likewise.
5008 * linux-fork.c: Likewise.
5009 * linux-nat.c: Likewise.
5010 * lm32-tdep.c: Likewise.
5011 * m2-exp.y: Likewise.
5012 * m2-typeprint.c: Likewise.
5013 * m32c-tdep.c: Likewise.
5014 * m32r-linux-nat.c: Likewise.
5015 * m32r-linux-tdep.c: Likewise.
5016 * m32r-rom.c: Likewise.
5017 * m32r-tdep.c: Likewise.
5018 * m68hc11-tdep.c: Likewise.
5019 * m68k-tdep.c: Likewise.
5020 * m68kbsd-tdep.c: Likewise.
5021 * m68klinux-nat.c: Likewise.
5022 * m68klinux-tdep.c: Likewise.
5023 * m88k-tdep.c: Likewise.
5024 * machoread.c: Likewise.
5025 * macrocmd.c: Likewise.
5026 * main.c: Likewise.
5027 * mdebugread.c: Likewise.
5028 * mem-break.c: Likewise.
5029 * memattr.c: Likewise.
5030 * memory-map.c: Likewise.
5031 * mep-tdep.c: Likewise.
5032 * mi/mi-cmd-break.c: Likewise.
5033 * mi/mi-cmd-disas.c: Likewise.
5034 * mi/mi-cmd-env.c: Likewise.
5035 * mi/mi-cmd-stack.c: Likewise.
5036 * mi/mi-cmd-var.c: Likewise.
5037 * mi/mi-cmds.c: Likewise.
5038 * mi/mi-console.c: Likewise.
5039 * mi/mi-getopt.c: Likewise.
5040 * mi/mi-interp.c: Likewise.
5041 * mi/mi-main.c: Likewise.
5042 * mi/mi-parse.c: Likewise.
5043 * microblaze-rom.c: Likewise.
5044 * microblaze-tdep.c: Likewise.
5045 * mingw-hdep.c: Likewise.
5046 * minidebug.c: Likewise.
5047 * minsyms.c: Likewise.
5048 * mips-irix-tdep.c: Likewise.
5049 * mips-linux-tdep.c: Likewise.
5050 * mips-tdep.c: Likewise.
5051 * mips64obsd-tdep.c: Likewise.
5052 * mipsnbsd-tdep.c: Likewise.
5053 * mipsread.c: Likewise.
5054 * mn10300-linux-tdep.c: Likewise.
5055 * mn10300-tdep.c: Likewise.
5056 * monitor.c: Likewise.
5057 * moxie-tdep.c: Likewise.
5058 * mt-tdep.c: Likewise.
5059 * nat/linux-btrace.c: Likewise.
5060 * nat/linux-osdata.c: Likewise.
5061 * nat/linux-procfs.c: Likewise.
5062 * nat/linux-ptrace.c: Likewise.
5063 * nat/linux-waitpid.c: Likewise.
5064 * nbsd-tdep.c: Likewise.
5065 * nios2-linux-tdep.c: Likewise.
5066 * nto-procfs.c: Likewise.
5067 * nto-tdep.c: Likewise.
5068 * objc-lang.c: Likewise.
5069 * objfiles.c: Likewise.
5070 * opencl-lang.c: Likewise.
5071 * osabi.c: Likewise.
5072 * osdata.c: Likewise.
5073 * p-exp.y: Likewise.
5074 * p-lang.c: Likewise.
5075 * p-typeprint.c: Likewise.
5076 * parse.c: Likewise.
5077 * posix-hdep.c: Likewise.
5078 * ppc-linux-nat.c: Likewise.
5079 * ppc-sysv-tdep.c: Likewise.
5080 * ppcfbsd-tdep.c: Likewise.
5081 * ppcnbsd-tdep.c: Likewise.
5082 * ppcobsd-tdep.c: Likewise.
5083 * printcmd.c: Likewise.
5084 * procfs.c: Likewise.
5085 * prologue-value.c: Likewise.
5086 * python/py-auto-load.c: Likewise.
5087 * python/py-gdb-readline.c: Likewise.
5088 * ravenscar-thread.c: Likewise.
5089 * regcache.c: Likewise.
5090 * registry.c: Likewise.
5091 * remote-fileio.c: Likewise.
5092 * remote-m32r-sdi.c: Likewise.
5093 * remote-mips.c: Likewise.
5094 * remote-notif.c: Likewise.
5095 * remote-sim.c: Likewise.
5096 * remote.c: Likewise.
5097 * reverse.c: Likewise.
5098 * rs6000-aix-tdep.c: Likewise.
5099 * ser-base.c: Likewise.
5100 * ser-go32.c: Likewise.
5101 * ser-mingw.c: Likewise.
5102 * ser-pipe.c: Likewise.
5103 * ser-tcp.c: Likewise.
5104 * ser-unix.c: Likewise.
5105 * serial.c: Likewise.
5106 * sh-tdep.c: Likewise.
5107 * sh64-tdep.c: Likewise.
5108 * shnbsd-tdep.c: Likewise.
5109 * skip.c: Likewise.
5110 * sol-thread.c: Likewise.
5111 * solib-dsbt.c: Likewise.
5112 * solib-frv.c: Likewise.
5113 * solib-osf.c: Likewise.
5114 * solib-som.c: Likewise.
5115 * solib-spu.c: Likewise.
5116 * solib-target.c: Likewise.
5117 * solib.c: Likewise.
5118 * somread.c: Likewise.
5119 * source.c: Likewise.
5120 * sparc-nat.c: Likewise.
5121 * sparc-sol2-tdep.c: Likewise.
5122 * sparc-tdep.c: Likewise.
5123 * sparc64-tdep.c: Likewise.
5124 * sparc64fbsd-tdep.c: Likewise.
5125 * sparc64nbsd-tdep.c: Likewise.
5126 * sparcnbsd-tdep.c: Likewise.
5127 * spu-linux-nat.c: Likewise.
5128 * spu-multiarch.c: Likewise.
5129 * spu-tdep.c: Likewise.
5130 * stabsread.c: Likewise.
5131 * stack.c: Likewise.
5132 * std-regs.c: Likewise.
5133 * symfile.c: Likewise.
5134 * symmisc.c: Likewise.
5135 * symtab.c: Likewise.
5136 * target.c: Likewise.
5137 * thread.c: Likewise.
5138 * tilegx-linux-nat.c: Likewise.
5139 * tilegx-tdep.c: Likewise.
5140 * top.c: Likewise.
5141 * tracepoint.c: Likewise.
5142 * tui/tui-command.c: Likewise.
5143 * tui/tui-data.c: Likewise.
5144 * tui/tui-disasm.c: Likewise.
5145 * tui/tui-file.c: Likewise.
5146 * tui/tui-layout.c: Likewise.
5147 * tui/tui-out.c: Likewise.
5148 * tui/tui-regs.c: Likewise.
5149 * tui/tui-source.c: Likewise.
5150 * tui/tui-stack.c: Likewise.
5151 * tui/tui-win.c: Likewise.
5152 * tui/tui-windata.c: Likewise.
5153 * tui/tui-winsource.c: Likewise.
5154 * typeprint.c: Likewise.
5155 * ui-file.c: Likewise.
5156 * ui-out.c: Likewise.
5157 * user-regs.c: Likewise.
5158 * utils.c: Likewise.
5159 * v850-tdep.c: Likewise.
5160 * valarith.c: Likewise.
5161 * valops.c: Likewise.
5162 * valprint.c: Likewise.
5163 * value.c: Likewise.
5164 * varobj.c: Likewise.
5165 * vax-tdep.c: Likewise.
5166 * vaxnbsd-tdep.c: Likewise.
5167 * vaxobsd-tdep.c: Likewise.
5168 * windows-nat.c: Likewise.
5169 * xcoffread.c: Likewise.
5170 * xml-support.c: Likewise.
5171 * xstormy16-tdep.c: Likewise.
5172 * xtensa-linux-nat.c: Likewise.
5173
dccbb609
GB
51742014-08-07 Gary Benson <gbenson@redhat.com>
5175
5176 * common/common-defs.h: Include gdb_assert.h.
5177 * aarch64-tdep.c: Do not include gdb_assert.h.
5178 * addrmap.c: Likewise.
5179 * aix-thread.c: Likewise.
5180 * alpha-linux-tdep.c: Likewise.
5181 * alpha-mdebug-tdep.c: Likewise.
5182 * alphanbsd-tdep.c: Likewise.
5183 * amd64-nat.c: Likewise.
5184 * amd64-tdep.c: Likewise.
5185 * amd64bsd-nat.c: Likewise.
5186 * amd64fbsd-nat.c: Likewise.
5187 * amd64fbsd-tdep.c: Likewise.
5188 * amd64nbsd-nat.c: Likewise.
5189 * amd64nbsd-tdep.c: Likewise.
5190 * amd64obsd-nat.c: Likewise.
5191 * amd64obsd-tdep.c: Likewise.
5192 * arch-utils.c: Likewise.
5193 * arm-tdep.c: Likewise.
5194 * armbsd-tdep.c: Likewise.
5195 * auxv.c: Likewise.
5196 * bcache.c: Likewise.
5197 * bfin-tdep.c: Likewise.
5198 * blockframe.c: Likewise.
5199 * breakpoint.c: Likewise.
5200 * bsd-kvm.c: Likewise.
5201 * bsd-uthread.c: Likewise.
5202 * buildsym.c: Likewise.
5203 * c-exp.y: Likewise.
5204 * c-lang.c: Likewise.
5205 * charset.c: Likewise.
5206 * cleanups.c: Likewise.
5207 * cli-out.c: Likewise.
5208 * cli/cli-decode.c: Likewise.
5209 * cli/cli-dump.c: Likewise.
5210 * cli/cli-logging.c: Likewise.
5211 * cli/cli-script.c: Likewise.
5212 * cli/cli-utils.c: Likewise.
5213 * coffread.c: Likewise.
5214 * common/common-utils.c: Likewise.
5215 * common/queue.h: Likewise.
5216 * common/signals.c: Likewise.
5217 * common/vec.h: Likewise.
5218 * complaints.c: Likewise.
5219 * completer.c: Likewise.
5220 * corelow.c: Likewise.
5221 * cp-abi.c: Likewise.
5222 * cp-name-parser.y: Likewise.
5223 * cp-namespace.c: Likewise.
5224 * cp-support.c: Likewise.
5225 * cris-tdep.c: Likewise.
5226 * dbxread.c: Likewise.
5227 * dictionary.c: Likewise.
5228 * doublest.c: Likewise.
5229 * dsrec.c: Likewise.
5230 * dummy-frame.c: Likewise.
5231 * dwarf2-frame-tailcall.c: Likewise.
5232 * dwarf2-frame.c: Likewise.
5233 * dwarf2expr.c: Likewise.
5234 * dwarf2loc.c: Likewise.
5235 * dwarf2read.c: Likewise.
5236 * eval.c: Likewise.
5237 * event-loop.c: Likewise.
5238 * exceptions.c: Likewise.
5239 * expprint.c: Likewise.
5240 * f-valprint.c: Likewise.
5241 * fbsd-nat.c: Likewise.
5242 * findvar.c: Likewise.
5243 * frame-unwind.c: Likewise.
5244 * frame.c: Likewise.
5245 * frv-tdep.c: Likewise.
5246 * gcore.c: Likewise.
5247 * gdb-dlfcn.c: Likewise.
5248 * gdb_bfd.c: Likewise.
5249 * gdbarch.c: Likewise.
5250 * gdbarch.sh: Likewise.
5251 * gdbtypes.c: Likewise.
5252 * gnu-nat.c: Likewise.
5253 * gnu-v3-abi.c: Likewise.
5254 * go-lang.c: Likewise.
5255 * guile/scm-exception.c: Likewise.
5256 * guile/scm-gsmob.c: Likewise.
5257 * guile/scm-lazy-string.c: Likewise.
5258 * guile/scm-math.c: Likewise.
5259 * guile/scm-pretty-print.c: Likewise.
5260 * guile/scm-safe-call.c: Likewise.
5261 * guile/scm-utils.c: Likewise.
5262 * guile/scm-value.c: Likewise.
5263 * h8300-tdep.c: Likewise.
5264 * hppa-hpux-nat.c: Likewise.
5265 * hppa-tdep.c: Likewise.
5266 * hppanbsd-tdep.c: Likewise.
5267 * hppaobsd-tdep.c: Likewise.
5268 * i386-darwin-nat.c: Likewise.
5269 * i386-darwin-tdep.c: Likewise.
5270 * i386-nto-tdep.c: Likewise.
5271 * i386-tdep.c: Likewise.
5272 * i386bsd-nat.c: Likewise.
5273 * i386fbsd-tdep.c: Likewise.
5274 * i386gnu-nat.c: Likewise.
5275 * i386nbsd-tdep.c: Likewise.
5276 * i386obsd-tdep.c: Likewise.
5277 * i387-tdep.c: Likewise.
5278 * ia64-libunwind-tdep.c: Likewise.
5279 * ia64-tdep.c: Likewise.
5280 * inf-ptrace.c: Likewise.
5281 * inf-ttrace.c: Likewise.
5282 * infcall.c: Likewise.
5283 * infcmd.c: Likewise.
5284 * infrun.c: Likewise.
5285 * inline-frame.c: Likewise.
5286 * interps.c: Likewise.
5287 * jv-lang.c: Likewise.
5288 * jv-typeprint.c: Likewise.
5289 * linux-fork.c: Likewise.
5290 * linux-nat.c: Likewise.
5291 * linux-thread-db.c: Likewise.
5292 * m32c-tdep.c: Likewise.
5293 * m32r-linux-nat.c: Likewise.
5294 * m32r-tdep.c: Likewise.
5295 * m68k-tdep.c: Likewise.
5296 * m68kbsd-nat.c: Likewise.
5297 * m68kbsd-tdep.c: Likewise.
5298 * m88k-tdep.c: Likewise.
5299 * machoread.c: Likewise.
5300 * macroexp.c: Likewise.
5301 * macrotab.c: Likewise.
5302 * maint.c: Likewise.
5303 * mdebugread.c: Likewise.
5304 * memory-map.c: Likewise.
5305 * mep-tdep.c: Likewise.
5306 * mi/mi-common.c: Likewise.
5307 * microblaze-tdep.c: Likewise.
5308 * mingw-hdep.c: Likewise.
5309 * mips-linux-nat.c: Likewise.
5310 * mips-linux-tdep.c: Likewise.
5311 * mips-tdep.c: Likewise.
5312 * mips64obsd-tdep.c: Likewise.
5313 * mipsnbsd-tdep.c: Likewise.
5314 * mn10300-linux-tdep.c: Likewise.
5315 * mn10300-tdep.c: Likewise.
5316 * moxie-tdep.c: Likewise.
5317 * mt-tdep.c: Likewise.
5318 * nat/linux-btrace.c: Likewise.
5319 * nat/linux-osdata.c: Likewise.
5320 * nat/linux-ptrace.c: Likewise.
5321 * nat/mips-linux-watch.c: Likewise.
5322 * nios2-linux-tdep.c: Likewise.
5323 * nios2-tdep.c: Likewise.
5324 * objc-lang.c: Likewise.
5325 * objfiles.c: Likewise.
5326 * obsd-nat.c: Likewise.
5327 * opencl-lang.c: Likewise.
5328 * osabi.c: Likewise.
5329 * parse.c: Likewise.
5330 * ppc-linux-nat.c: Likewise.
5331 * ppc-sysv-tdep.c: Likewise.
5332 * ppcfbsd-nat.c: Likewise.
5333 * ppcfbsd-tdep.c: Likewise.
5334 * ppcnbsd-nat.c: Likewise.
5335 * ppcnbsd-tdep.c: Likewise.
5336 * ppcobsd-nat.c: Likewise.
5337 * ppcobsd-tdep.c: Likewise.
5338 * printcmd.c: Likewise.
5339 * procfs.c: Likewise.
5340 * prologue-value.c: Likewise.
5341 * psymtab.c: Likewise.
5342 * python/py-lazy-string.c: Likewise.
5343 * python/py-value.c: Likewise.
5344 * regcache.c: Likewise.
5345 * reggroups.c: Likewise.
5346 * registry.c: Likewise.
5347 * remote-sim.c: Likewise.
5348 * remote.c: Likewise.
5349 * rs6000-aix-tdep.c: Likewise.
5350 * rs6000-tdep.c: Likewise.
5351 * s390-linux-tdep.c: Likewise.
5352 * score-tdep.c: Likewise.
5353 * ser-base.c: Likewise.
5354 * ser-mingw.c: Likewise.
5355 * sh-tdep.c: Likewise.
5356 * sh64-tdep.c: Likewise.
5357 * solib-darwin.c: Likewise.
5358 * solib-spu.c: Likewise.
5359 * solib-svr4.c: Likewise.
5360 * source.c: Likewise.
5361 * sparc-nat.c: Likewise.
5362 * sparc-sol2-tdep.c: Likewise.
5363 * sparc-tdep.c: Likewise.
5364 * sparc64-sol2-tdep.c: Likewise.
5365 * sparc64-tdep.c: Likewise.
5366 * sparc64fbsd-tdep.c: Likewise.
5367 * sparc64nbsd-tdep.c: Likewise.
5368 * sparc64obsd-tdep.c: Likewise.
5369 * sparcnbsd-tdep.c: Likewise.
5370 * sparcobsd-tdep.c: Likewise.
5371 * spu-multiarch.c: Likewise.
5372 * spu-tdep.c: Likewise.
5373 * stabsread.c: Likewise.
5374 * stack.c: Likewise.
5375 * symfile.c: Likewise.
5376 * symtab.c: Likewise.
5377 * target-descriptions.c: Likewise.
5378 * target-memory.c: Likewise.
5379 * target.c: Likewise.
5380 * tic6x-linux-tdep.c: Likewise.
5381 * tic6x-tdep.c: Likewise.
5382 * tilegx-linux-nat.c: Likewise.
5383 * tilegx-tdep.c: Likewise.
5384 * top.c: Likewise.
5385 * tramp-frame.c: Likewise.
5386 * tui/tui-out.c: Likewise.
5387 * tui/tui-winsource.c: Likewise.
5388 * ui-out.c: Likewise.
5389 * user-regs.c: Likewise.
5390 * utils.c: Likewise.
5391 * v850-tdep.c: Likewise.
5392 * valops.c: Likewise.
5393 * value.c: Likewise.
5394 * varobj.c: Likewise.
5395 * vax-nat.c: Likewise.
5396 * xml-syscall.c: Likewise.
5397 * xml-tdesc.c: Likewise.
5398 * xstormy16-tdep.c: Likewise.
5399 * xtensa-linux-nat.c: Likewise.
5400 * xtensa-tdep.c: Likewise.
5401
e76df0d0
GB
54022014-08-07 Gary Benson <gbenson@redhat.com>
5403
5404 * common/common-defs.h: Include common-utils.h.
5405 * defs.h: Do not include common-utils.h.
5406 * common/gdb_assert.h: Likewise.
5407 * darwin-nat.h: Likewise.
5408 * nat/linux-btrace.c: Likewise.
5409 * target/waitstatus.h: Likewise.
5410
4cb9c816
GB
54112014-08-07 Gary Benson <gbenson@redhat.com>
5412
5413 * common/common-defs.h: Include ptid.h.
5414 * defs.h: Do not include ptid.h.
5415 * inferior.h: Likewise.
5416 * infrun.h: Likewise.
5417 * nat/linux-btrace.h: Likewise.
5418 * nat/linux-osdata.h: Likewise.
5419 * target/waitstatus.h: Likewise.
5420
3995eeee
GB
54212014-08-07 Gary Benson <gbenson@redhat.com>
5422
5423 * common/common-defs.h: Include gdb_locale.h.
5424 * defs.h: Do not include gdb_locale.h.
5425
cb9f1a9b
GB
54262014-08-07 Gary Benson <gbenson@redhat.com>
5427
5428 * common/common-defs.h: Include gdb/signals.h.
5429 * defs.h: Do not include gdb/signals.h.
5430
a5fceff8
GB
54312014-08-07 Gary Benson <gbenson@redhat.com>
5432
5433 * common/common-defs.h: Include pathmax.h.
5434 * defs.h: Do not include pathmax.h.
5435
b9391142
GB
54362014-08-07 Gary Benson <gbenson@redhat.com>
5437
5438 * common/common-defs.h: Include libiberty.h.
5439 * defs.h: Do not include libiberty.h.
5440 * common/queue.h: Likewise.
5441 * cp-name-parser.y: Likewise.
5442 * mi/mi-cmd-catch.c: Likewise.
5443 * python/python.c: Likewise.
5444
0e443c87
GB
54452014-08-07 Gary Benson <gbenson@redhat.com>
5446
5447 * common/common-defs.h: Include ansidecl.h.
5448 * defs.h: Do not include ansidecl.h.
5449 * common/buffer.h: Likewise.
5450 * common/common-utils.h: Likewise.
5451
8ebb3f56
GB
54522014-08-07 Gary Benson <gbenson@redhat.com>
5453
5454 * common/common-defs.h: Include stddef.h.
5455 * defs.h: Do not include stddef.h.
5456 * common/common-utils.h: Likewise.
5457 * amd64fbsd-nat.c: Likewise.
5458 * bcache.c: Likewise.
5459 * charset.c: Likewise.
5460 * common/buffer.h: Likewise.
5461 * common/vec.h: Likewise.
5462 * i386bsd-nat.c: Likewise.
5463 * nat/linux-btrace.h: Likewise.
5464 * ppcfbsd-nat.c: Likewise.
5465 * ppcnbsd-tdep.h: Likewise.
5466 * ppcobsd-nat.c: Likewise.
5467 * ppcobsd-tdep.h: Likewise.
5468 * python/py-gdb-readline.c: Likewise.
5469
8980bdf6
GB
54702014-08-07 Gary Benson <gbenson@redhat.com>
5471
5472 * common/common-defs.h: Include stdarg.h.
5473 * defs.h: Do not include stdarg.h.
5474 * ada-lang.c: Likewise.
5475 * common/common-utils.h: Likewise.
5476 * guile/scm-string.c: Likewise.
5477 * guile/scm-utils.c: Likewise.
5478 * m32c-tdep.c: Likewise.
5479
d7096f71
GB
54802014-08-07 Gary Benson <gbenson@redhat.com>
5481
5482 * common/common-defs.h: Include stdlib.h.
5483 * defs.h: Do not include stdlib.h.
5484 * addrmap.c: Likewise.
5485 * bcache.c: Likewise.
5486 * common/buffer.c: Likewise.
5487 * common/common-utils.c: Likewise.
5488 * cp-name-parser.y: Likewise.
5489 * go32-nat.c: Likewise.
5490 * mn10300-linux-tdep.c: Likewise.
5491 * nat/linux-osdata.c: Likewise.
5492 * tui/tui.c: Likewise.
5493 * windows-nat.c: Likewise.
5494
d02f550d
GB
54952014-08-07 Gary Benson <gbenson@redhat.com>
5496
5497 * common/common-defs.h: Include stdio.h.
5498 * defs.h: Do not include stdio.h.
5499 * ada-lang.c: Likewise.
5500 * common/buffer.c: Likewise.
5501 * common/common-utils.c: Likewise.
5502 * cp-name-parser.y: Likewise.
5503 * gnu-nat.c: Likewise.
5504 * go32-nat.c: Likewise.
5505 * i386gnu-nat.c: Likewise.
5506 * proc-api.c: Likewise.
5507 * proc-events.c: Likewise.
5508 * proc-flags.c: Likewise.
5509 * proc-why.c: Likewise.
5510 * python/python-internal.h: Likewise.
5511 * target-memory.c: Likewise.
5512 * tui/tui-io.c: Likewise.
5513 * tui/tui.c: Likewise.
5514
b6d7a4bf
SM
55152014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5518 (scan_dyntag_auxv): Same.
5519
af19829b
YQ
55202014-08-06 Yao Qi <yao@codesourcery.com>
5521
5522 * amd64-linux-nat.c: Remove duplicated include
5523 "x86-linux-nat.h".
5524 * i386-linux-nat.c: Likewise.
5525
8e07a239
YQ
55262014-08-06 Yao Qi <yao@codesourcery.com>
5527
5528 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5529 operand" with "Special opcode" in comments.
5530
7bfe8241
GB
55312014-08-05 Gary Benson <gbenson@redhat.com>
5532
5533 * interps.c (initialize_interps): Remove prototype.
5534 (interpreter_initialized): Remove static global.
5535 (interp_add): Do not call initialize_interps.
5536 (initialize_interps): Remove function.
5537
d6c95504
GB
55382014-08-05 Gary Benson <gbenson@redhat.com>
5539
5540 * utils.c (vwarning): Remove spurious va_end.
5541
241fd515
AM
55422014-08-05 Alan Modra <amodra@gmail.com>
5543
5544 * charset.c (convert_between_encodings): Cast result of obstack_base.
5545 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5546 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5547 (read_unwind_info): Use size_t for some locals.
5548 * jit.c (finalize_symtab): Likewise.
5549 * utils.c (hashtab_obstack_allocate): Likewise.
5550 * symmisc.c (print_objfile_statistics): Update format strings.
5551
dc304a94
JK
55522014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5553
5554 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5555 (Changes in GDB 7.8): ... here.
5556
3cecbbbe
TT
55572014-08-04 Tom Tromey <tromey@redhat.com>
5558
5559 * target.c (set_targetdebug): New function.
5560 (initialize_targets): Pass set_targetdebug when creating "set
5561 debug target".
5562
6908c509
JB
55632014-08-01 Joel Brobecker <brobecker@adacore.com>
5564
5565 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5566 if detecting a variable-sized field that is not the last field.
5567 Fix struct type length computation.
5568
53e8f97d
JB
55692014-08-01 Joel Brobecker <brobecker@adacore.com>
5570
5571 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5572 Add debug trace.
5573
e068c55d
JB
55742014-08-01 Joel Brobecker <brobecker@adacore.com>
5575
5576 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5577 Remove "+ 8" offset in computation of CHAIN_VMA.
5578
4d4ca2a1
DE
55792014-07-31 Doug Evans <dje@google.com>
5580
5581 * inflow.c (child_terminal_inferior): Add comment.
5582 (child_terminal_ours_for_output): Add comment.
5583 (child_terminal_ours): Add comment.
5584 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5585 (linux_nat_terminal_ours): Add comment.
5586
462f517e
GB
55872014-07-31 Gary Benson <gbenson@redhat.com>
5588
5589 * common/btrace-common.h: Do not include defs.h or server.h.
5590 * nat/mips-linux-watch.h: Likewise.
5591 * gdb-dlfcn.h: Do not include defs.h.
5592 * tracefile.h: Likewise.
5593
74228e77
RM
55942014-07-30 Roland McGrath <mcgrathr@google.com>
5595
5596 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5597
014f9477
TT
55982014-07-30 Tom Tromey <tromey@redhat.com>
5599
5600 * bsd-kvm.c (bsd_kvm_open): Constify.
5601 * corelow.c (core_open): Constify.
5602 * ctf.c (ctf_open): Constify.
5603 * dbug-rom.c (dbug_open): Constify.
5604 * exec.c (exec_open): Constify.
5605 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5606 * microblaze-rom.c (picobug_open): Constify.
5607 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5608 Constify.
5609 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5610 * record-btrace.c (record_btrace_open): Constify.
5611 * record-full.c (record_full_core_open_1, record_full_open_1)
5612 (record_full_open): Constify.
5613 * remote-m32r-sdi.c (m32r_open): Constify.
5614 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5615 (rockhopper_open, lsi_open): Constify.
5616 * remote-sim.c (gdbsim_open): Constify.
5617 * remote.c (remote_open, extended_remote_open, remote_open_1):
5618 Constify.
5619 * target.h (struct target_ops) <to_open>: Make "arg" const.
5620 * tracefile-tfile.c (tfile_open): Constify.
5621
e799154c
TT
56222014-07-30 Tom Tromey <tromey@redhat.com>
5623
5624 * breakpoint.c (map_breakpoint_numbers): Update.
5625 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5626 (get_number_const): New function.
5627 (get_number): Rewrite using get_number_const.
5628 (init_number_or_range): Make "string" const.
5629 (number_is_in_list): Make "list" const.
5630 * cli/cli-utils.h (get_number_const): Declare.
5631 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5632 (init_number_or_range, number_is_in_list): Update.
5633 * printcmd.c (map_display_numbers): Update.
5634 * value.c (value_from_history_ref): Constify.
5635 * value.h (value_from_history_ref): Update.
5636
5f08566b
TT
56372014-07-30 Tom Tromey <tromey@redhat.com>
5638
5639 * corefile.c (hook_type, call_extra_exec_file_hooks)
5640 (specify_exec_file_hook): Constify.
5641 * exec.c (exec_file_attach): Make "filename" const.
5642 * gdbcore.h (deprecated_exec_file_display_hook)
5643 (specify_exec_file_hook, exec_file_attach): Constify.
5644 * main.c (captured_main): Use catch_command_errors_const.
5645
8981c758
TT
56462014-07-30 Tom Tromey <tromey@redhat.com>
5647
5648 * target.c (open_target): New function.
5649 (add_target_with_completer, add_deprecated_target_alias): Use
5650 set_cmd_sfunc, set_cmd_context.
5651 (debug_to_open): Remove.
5652 (setup_target_debug): Update.
5653
a1c7835a
YQ
56542014-07-30 Yao Qi <yao@codesourcery.com>
5655
5656 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5657 comments.
5658 * parse.c (exp_iterate): Update comments.
5659
976411d6
GB
56602014-07-30 Gary Benson <gbenson@redhat.com>
5661
5662 * common/common-defs.h: New file.
5663 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5664 * defs.h: Include common-defs.h.
5665 Do not include config.h or build-gnulib/config.h.
5666
5d4848a4
GB
56672014-07-30 Gary Benson <gbenson@redhat.com>
5668
5669 * common/common-utils.h: Do not include config.h.
5670 * nat/linux-btrace.h: Likewise.
5671
d41f6d8e
GB
56722014-07-30 Gary Benson <gbenson@redhat.com>
5673
5674 * btrace.c: Include defs.h.
5675 * common/ptid.c: Include defs.h or server.h as appropriate.
5676 * nat/mips-linux-watch.c: Likewise.
5677
84202f9c
TT
56782014-07-29 Tom Tromey <tromey@redhat.com>
5679
5680 * target.c (target_is_pushed): Simplify.
5681
2530441c
JB
56822014-07-29 Joel Brobecker <brobecker@adacore.com>
5683
5684 GDB 7.8 released.
5685
7e09a223
YQ
56862014-07-29 Yao Qi <yao@codesourcery.com>
5687
5688 PR gdb/17206
5689 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5690
7ebdbe92
DE
56912014-07-28 Doug Evans <xdje42@gmail.com>
5692
5693 PR guile/17203
5694 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5695 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5696 parameters.
5697
f347ffc9
WN
56982014-07-28 Will Newton <will.newton@linaro.org>
5699
5700 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5701 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5702 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5703 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5704 (THUMB2_EABI_SYSCALL): Likewise.
5705 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5706 struct tramp_frame.
5707 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5708 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5709
37c5f1f7
DE
57102014-07-27 Doug Evans <xdje42@gmail.com>
5711
5712 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5713
0c3abbc7
DE
57142014-07-27 Doug Evans <xdje42@gmail.com>
5715
5716 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5717
e76c5d17
DE
57182014-07-26 Ludovic Courtès <ludo@gnu.org>
5719 Doug Evans <xdje42@gmail.com>
5720
5721 PR guile/17146
5722 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5723 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5724 * configure.ac: Try to use guild to compile an scm file, if it fails
5725 then disable guile support.
5726 * configure: Regenerate.
5727 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5728 GUILE_FILE_LIST.
5729 (GUILE_COMPILED_FILES): New variable.
5730 (GUILE_FILES) Update.
5731 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5732 (stamp-guile): Compile scm files.
5733 * guile/guile.c (boot_guile_support): New function.
5734 (standard_throw_args_p): New function.
5735 (print_standard_throw_error, print_throw_error): New functions.
5736 (handle_boot_error): New function.
5737 (initialize_scheme_side): Rewrite to call boot_guile_support.
5738 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5739 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5740
186fcde0
DE
57412014-07-26 Ludovic Courtès <ludo@gnu.org>
5742 Doug Evans <xdje42@gmail.com>
5743
5744 PR guile/17146
5745 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5746 * guile/lib/gdb/support.scm: New file.
5747 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5748 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5749 All uses updated.
5750 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5751 All uses updated.
5752 (%assert-type): Ditto, and renamed to assert-type.
5753 (%exception-print-style): Delete.
5754
4df42755
DE
57552014-07-26 Doug Evans <xdje42@gmail.com>
5756
5757 PR build/17105
5758 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5759 * configure: Regenerate.
5760 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5761 PYTHON_FILES.
5762 (PYTHON_FILES): New variable.
5763 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5764 (GUILE_FILES): New variable.
5765 (stamp-python, install-python, uninstall-python): Handle empty
5766 file list.
5767 (stamp-guile, install-guile, uninstall-guile): Ditto.
5768
ee7333ae
DE
57692014-07-26 Doug Evans <xdje42@gmail.com>
5770
5771 PR guile/17177
5772 * guile/lib/gdb.scm (pretty-printers): Export.
5773 (set-pretty-printers!): Export.
5774 * guile/lib/gdb/printing.scm (gdb module): Update.
5775 (prepend-pretty-printer!, append-pretty-printer!): Update.
5776 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5777 (pretty_printer_list_var): Delete.
5778 (pretty_printer_list): New static global.
5779 (gdbscm_pretty_printers): New function.
5780 (gdbscm_set_pretty_printers_x): New function.
5781 (ppscm_find_pretty_printer_from_gdb): Update.
5782 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5783 (gdbscm_initialize_pretty_printers): Update.
5784
74edf516
DE
57852014-07-26 Doug Evans <xdje42@gmail.com>
5786
5787 PR 17185
5788 * configure.ac: Add check for header gc/gc.h.
5789 Add check for function setenv.
5790 * configure: Regenerate.
5791 * config.in: Regenerate.
5792 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5793
d54398a7
MR
57942014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5795
5796 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5797 variation in gdbarch matching.
5798
ab16fce8
TT
57992014-07-25 Tom Tromey <tromey@redhat.com>
5800
5801 * exec.c (using_exec_ops): Remove.
5802 (exec_close_1): Update. Remove extraneous block, reindent.
5803 (add_target_sections): Use target_is_pushed.
5804
88056fbb
PA
58052014-07-25 Pedro Alves <palves@redhat.com>
5806
5807 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5808 * monitor.c (monitor_create_inferior): Likewise.
5809 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5810 * remote-sim.c (gdbsim_create_inferior): Likewise.
5811 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5812 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5813 * windows-nat.c (do_initial_windows_stuff): Likewise.
5814
70509625
PA
58152014-07-25 Pedro Alves <palves@redhat.com>
5816
5817 * NEWS: Mention signal passing and "signal" command changes.
5818 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5819 comment.
5820 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5821 call.
5822 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5823 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5824 (jump_command): Adjust clear_proceed_status call.
5825 (signal_command): Warn if other thread that are resumed have
5826 signals that will be delivered. Adjust clear_proceed_status call.
5827 (until_next_command, finish_command)
5828 (proceed_after_attach_callback, attach_command_post_wait)
5829 (attach_command): Adjust clear_proceed_status call.
5830 * infrun.c (proceed_after_vfork_done): Likewise.
5831 (proceed_after_attach_callback): Adjust comment.
5832 (clear_proceed_status_thread): Clear stop_signal if not in pass
5833 state.
5834 (clear_proceed_status_callback): Delete.
5835 (clear_proceed_status): New 'step' parameter. Only clear the
5836 proceed status of threads the command being prepared is about to
5837 resume.
5838 (proceed): If passed in an explicit signal, override stop_signal
5839 with it. Don't pass the last stop signal to the thread we're
5840 resuming.
5841 (init_wait_for_inferior): Adjust clear_proceed_status call.
5842 (switch_back_to_stepped_thread): Clear the signal if it should not
5843 be passed.
5844 * infrun.h (clear_proceed_status): New 'step' parameter.
5845 (user_visible_resume_ptid): Add comment.
5846 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5847 signal is in pass state.
5848 * remote.c (append_pending_thread_resumptions): Likewise.
5849 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5850
d8be2939
TT
58512014-07-25 Tom Tromey <tromey@redhat.com>
5852
5853 * target.h (target_stopped_data_address)
5854 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5855 parentheses.
5856
7d0d9d2b
PL
58572014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5858
5859 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5860 comments.
5861 (avr_pointer_to_address): Likewise.
5862
e9e7f724
TT
58632014-07-24 Tom Tromey <tromey@redhat.com>
5864
5865 * monitor.c (compile_pattern): Update.
5866 * target.h (struct target_ops) <to_shortname, to_longname,
5867 to_doc>: Now const.
5868
1947513d
TT
58692014-07-24 Tom Tromey <tromey@redhat.com>
5870
5871 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5872 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5873 (add_info_alias, add_com): Make "doc" const.
5874 (print_doc_line): Make "str" const.
5875 (delete_cmd): Update.
5876 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5877 (print_doc_line): Update.
5878 * cli/cli-script.c (document_command): Update.
5879 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5880 (add_com, add_info, add_info_alias): Update.
5881 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5882 * python/py-cmd.c (cmdpy_destroyer): Update.
5883
64e61d29
TT
58842014-07-24 Tom Tromey <tromey@redhat.com>
5885
5886 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5887 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5888 (help_cmd_list): Constify.
5889 (lookup_cmd): Update.
5890 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5891 const.
5892 (help_cmd_list, apropos_cmd): Update.
5893 * cli/cli-script.c (show_user): Update.
5894 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5895 * cli/cli-setshow.h (cmd_show_list): Update.
5896 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5897 (cmd_show_list): Update.
5898 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5899 * python/py-cmd.c (cmdpy_destroyer): Update.
5900
429e55ea
TT
59012014-07-24 Tom Tromey <tromey@redhat.com>
5902
5903 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5904 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5905 const.
5906 * command.h (deprecate_cmd): Update.
5907 * maint.c (maintenance_do_deprecate): Add casts.
5908
64669f3b
TT
59092014-07-24 Tom Tromey <tromey@redhat.com>
5910
5911 * cli/cli-decode.c (help_cmd): Make parameter "const".
5912 * cli/cli-decode.h (help_cmd): Update.
5913
d3d3328b
TT
59142014-07-24 Tom Tromey <tromey@redhat.com>
5915
5916 * stack.c (up_silently_base, down_silently_base): Make argument
5917 const.
5918
414842dc
TT
59192014-07-24 Tom Tromey <tromey@redhat.com>
5920
5921 * solib.c (solib_add): Make "pattern" const.
5922 * solib.h (solib_add): Update.
5923
baa336ce
TT
59242014-07-24 Tom Tromey <tromey@redhat.com>
5925
5926 * remote.c (remote_serial_open, print_packet, putpkt)
5927 (putpkt_binary): Constify.
5928 * remote.h (putpkt): Update.
5929
5a19e2d0
TT
59302014-07-24 Tom Tromey <tromey@redhat.com>
5931
5932 * monitor.c (monitor_open): Make "args" const.
5933 * monitor.h (monitor_open): Update.
5934
fc4baa5e
TT
59352014-07-24 Tom Tromey <tromey@redhat.com>
5936
5937 * maint.c (match_bfd_flags): Make "string" const.
5938 (print_bfd_section_info): Remove casts.
5939 (print_objfile_section_info): Make "string" const.
5940
0d5f0dbe
TT
59412014-07-24 Tom Tromey <tromey@redhat.com>
5942
5943 * inf-child.c (inf_child_open_target): Make "arg" const.
5944 * inf-child.h (inf_child_open_target): Update.
5945
41c77899
TT
59462014-07-24 Tom Tromey <tromey@redhat.com>
5947
5948 * environ.c (unset_in_environ): Make "var" const.
5949 * environ.h (unset_in_environ): Update.
5950
93db0d79
TT
59512014-07-24 Tom Tromey <tromey@redhat.com>
5952
5953 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5954 Make "cmd" const.
5955 (scan_filename_with_cleanup): Likewise.
5956 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5957 Make arguments const.
5958 (restore_command): Update.
5959
36d6eb95
PA
59602014-07-24 Pedro Alves <palves@redhat.com>
5961
5962 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5963
8009206a
TT
59642014-07-24 Tom Tromey <tromey@redhat.com>
5965 Gary Benson <gbenson@redhat.com>
5966
5967 * nat/linux-ptrace.c (additional_flags): New global.
5968 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5969 additional_flags; don't check GDBSERVER.
5970 (linux_ptrace_set_additional_flags): New function.
5971 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5972 Declare.
5973 * linux-nat.c (_initialize_linux_nat): Call
5974 linux_ptrace_set_additional_flags.
5975
a7068b60
TT
59762014-07-24 Tom Tromey <tromey@redhat.com>
5977
5978 * make-target-delegates (munge_type, write_debugmethod): New
5979 functions.
5980 (debug_names): New global.
5981 ($TARGET_DEBUG_PRINTER): New global.
5982 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5983 name.
5984 Write debug methods. Generate init_debug_target.
5985 * target-debug.h: New file.
5986 * target-delegates.c: Rebuild.
5987 * target.c: Include target-debug.h.
5988 (debug_target): Hoist definition.
5989 (target_kill, target_get_section_table, target_memory_map)
5990 (target_flash_erase, target_flash_done, target_detach)
5991 (target_disconnect, target_wait, target_resume)
5992 (target_pass_signals, target_program_signals, target_follow_fork)
5993 (target_mourn_inferior, target_search_memory)
5994 (target_thread_address_space, target_close)
5995 (target_find_new_threads, target_core_of_thread)
5996 (target_verify_memory, target_insert_mask_watchpoint)
5997 (target_remove_mask_watchpoint): Remove targetdebug code.
5998 (debug_to_post_attach, debug_to_prepare_to_store)
5999 (debug_to_files_info, debug_to_insert_breakpoint)
6000 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6001 (debug_to_region_ok_for_hw_watchpoint)
6002 (debug_to_can_accel_watchpoint_condition)
6003 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6004 (debug_to_watchpoint_addr_within_range)
6005 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6006 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6007 (debug_to_terminal_init, debug_to_terminal_inferior)
6008 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6009 (debug_to_terminal_save_ours, debug_to_terminal_info)
6010 (debug_to_load, debug_to_post_startup_inferior)
6011 (debug_to_insert_fork_catchpoint)
6012 (debug_to_remove_fork_catchpoint)
6013 (debug_to_insert_vfork_catchpoint)
6014 (debug_to_remove_vfork_catchpoint)
6015 (debug_to_insert_exec_catchpoint)
6016 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6017 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6018 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6019 (setup_target_debug): Call init_debug_target.
6020 * target.h (TARGET_DEBUG_PRINTER): New macro.
6021 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6022 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6023
2c51604d
GB
60242014-07-24 Gary Benson <gbenson@redhat.com>
6025
6026 * exceptions.h (throw_vfatal): Renamed to...
6027 (throw_vquit): New declaration.
6028 (throw_quit): Likewise.
6029 * exceptions.c (throw_vfatal): Renamed to...
6030 (throw_vquit): New function.
6031 (throw_quit): Likewise.
6032 (throw_error): Call throw_verror rather than throw_it.
6033 * utils.h (vfatal): Removed.
6034 (fatal): Likewise.
6035 * utils.c (vfatal): Removed.
6036 (fatal): Likewise.
6037 (internal_verror): Replaced call to fatal with call to throw_quit.
6038 (quit): Replaced calls to fatal with calls to throw_quit.
6039
34211963
ME
60402014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6041
6042 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6043 target_read_code.
6044
a52b4d3e
ME
60452014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6046
6047 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6048 less than zero in conditional expression.
6049
a8bdc56b
TT
60502014-07-23 Tom Tromey <tromey@redhat.com>
6051
6052 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6053 ($INTRO_PART): Don't match whitespace.
6054 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6055 argument matching.
6056 ($METHOD): Add $METHOD_TRAILER.
6057 (trim): Rewrite.
6058 (scan_target_h): New sub.
6059 Change main loop not to collect state.
6060 * target-delegates.c: Rebuild.
6061
91b52240
GB
60622014-07-23 Gary Benson <gbenson@redhat.com>
6063
6064 * cp-support.c (gdb_demangle): Fix build on systems without
6065 sigaltstack.
6066
45326f6f
JK
60672014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6070 for reference entry value target data value.
6071
e214cf6c
JK
60722014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6075 value_available_contents_eq.
6076
bddbbedd
PA
60772014-07-22 Pedro Alves <palves@redhat.com>
6078
6079 * value.c (allocate_optimized_out_value): Don't mark value as
6080 non-lazy.
6081
45c71484
JW
60822014-07-22 Jiong Wang <jiong.wang@arm.com>
6083
6084 * MAINTAINERS (Write After Approval): Update my email address.
6085
9597b22a
DE
60862014-07-20 Doug Evans <dje@google.com>
6087
6088 PR server/17147
6089 * remote.c (putpkt_binary): Add text to error message.
6090
91101fe5
YQ
60912014-07-20 Yao Qi <yao@codesourcery.com>
6092
6093 * eval.c: Remove "Chill" from comments.
6094 * gdbtypes.h: Likewise.
6095 * symtab.h: Likewise.
6096
c9402c95
YQ
60972014-07-20 Yao Qi <yao@codesourcery.com>
6098
6099 * std-operator.def: Update comments to TERNOP_SLICE.
6100
ae8fddda
YQ
61012014-07-20 Yao Qi <yao@codesourcery.com>
6102
6103 * std-operator.def: Remove BINOP_RANGE.
6104 * breakpoint.c (watchpoint_exp_is_const): Update.
6105 * expprint.c (dump_subexp_body_standard): Likewise.
6106 * eval.c (init_array_element): Remove dead code.
6107 (evaluate_subexp_standard): Likewise.
6108
9c816640
YQ
61092014-07-20 Yao Qi <yao@codesourcery.com>
6110
6111 * std-operator.def: Remove BINOP_IN.
6112 * breakpoint.c (watchpoint_exp_is_const): Update.
6113 * eval.c (evaluate_subexp_standard): Likewise.
6114 * expprint.c (dump_subexp_body_standard): Likewise.
6115
164224e9
ME
61162014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6117
6118 * microblaze-tdep.c (microblaze_register_names): Add
6119 the rshr and rslr register names.
6120 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6121 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6122 Use of tdesc_numbered_register. Use of
6123 microblaze_register_g_packet_guesses. Use of
6124 tdesc_use_registers. Use of set_gdbarch_register_type.
6125 (microblaze_register_g_packet_guesses): New.
6126 * microblaze-tdep.h (microblaze_reg_num): Add
6127 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6128 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6129 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6130 * features/microblaze-core.xml: New file.
6131 * features/microblaze-stack-protect.xml: New file.
6132 * features/microblaze-with-stack-protect.c: New file.
6133 * features/microblaze-with-stack-protect.xml: New file.
6134 * features/microblaze.xml: New file.
6135 * features/microblaze.c: New file.
6136 * features/Makefile (microblaze-with-stack-protect): Add
6137 microblaze-with-stack-protect microblaze and microblaze-expedite.
6138 * regformats/microblaze-with-stack-protect.dat: New file.
6139 * regformats/microblaze.dat: New file.
6140 * doc/gdb.texinfo (MicroBlaze Features): Added.
6141
e8b2341c
TT
61422014-07-18 Tom Tromey <tromey@redhat.com>
6143
6144 * exec.c (exec_ops): Now static.
6145 * exec.h (exec_ops): Don't declare.
6146
44e89118
TT
61472014-07-18 Tom Tromey <tromey@redhat.com>
6148
6149 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6150 to find_target_beneath.
6151 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6152 find_target_beneath.
6153 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6154
b0ed115f
TT
61552014-07-18 Tom Tromey <tromey@redhat.com>
6156
6157 PR gdb/17130:
6158 * utils.c (quit): Use target_supports_terminal_ours.
6159 * target.h (target_supports_terminal_ours): Declare.
6160 * target.c (target_supports_delete_record): Don't check
6161 to_delete_record against NULL.
6162 (target_supports_terminal_ours): New function.
6163
e75fdfca
TT
61642014-07-18 Tom Tromey <tromey@redhat.com>
6165
6166 PR gdb/17130:
6167 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6168 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6169 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6170 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6171 * windows-nat.c (windows_xfer_partial): Always delegate.
6172 * record-btrace.c (record_btrace_xfer_partial): Simplify
6173 delegation.
6174 (record_btrace_fetch_registers, record_btrace_store_registers)
6175 (record_btrace_prepare_to_store, record_btrace_resume)
6176 (record_btrace_wait, record_btrace_find_new_threads)
6177 (record_btrace_thread_alive): Likewise.
6178 * procfs.c (procfs_xfer_partial): Always delegate.
6179 * corelow.c (core_xfer_partial): Always delegate.
6180 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6181
83814951
TT
61822014-07-18 Tom Tromey <tromey@redhat.com>
6183
6184 * exec.c (exec_make_note_section): Move earlier.
6185
b8b8facf
DE
61862014-07-17 Doug Evans <dje@google.com>
6187
74b49205 6188 PR gdb/17170
b8b8facf
DE
6189 * maint.c (count_symtabs_and_blocks): Handle NULL
6190 current_program_space.
6191 (report_command_stats): Check global enabled flag in addition to
6192 recorded enabled flag.
6193 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6194
69ff6be5
PA
61952014-07-16 Pedro Alves <palves@redhat.com>
6196
6197 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6198
252db1b5
TT
61992014-07-16 Tom Tromey <tromey@redhat.com>
6200
6201 * target.h (struct target_ops) <to_delete_record>: Reformat
6202 comment.
6203
a432721e
TT
62042014-07-16 Tom Tromey <tromey@redhat.com>
6205
6206 * target-delegates.c: Rebuild.
6207
487d9753
PL
62082014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6209
6210 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6211 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6212 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6213 (avr_pointer_to_address): Likewise.
6214 (avr_address_class_type_flags): New function.
6215 (avr_address_class_type_flags_to_name): Likewise.
6216 (avr_address_class_name_to_type_flags): Likewise.
6217 (avr_gdbarch_init): Set address_class_type_flags,
6218 address_class_type_flags_to_name and
6219 address_class_name_to_type_flags.
6220
57745c90
PA
62212014-07-15 Pedro Alves <palves@redhat.com>
6222
6223 * linux-nat.c (kill_callback): Save errno and work with saved
6224 copy.
6225
2d40be18
SM
62262014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6227
6228 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6229
572f6555
EBM
62302014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6231
6232 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6233 breakpoint support correctly.
6234
cc1c52ad
PA
62352014-07-14 Pedro Alves <palves@redhat.com>
6236
6237 * utils.c (prompt_for_continue): Call target_terminal_ours.
6238
1e973570
PA
62392014-07-14 Pedro Alves <palves@redhat.com>
6240
6241 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6242 catch_errors. Don't re-enable stdin or notify observers where,
6243 and rethrow error.
6244 (fetch_inferior_event_wrapper): Delete.
6245
93d6eb10
PA
62462014-07-14 Pedro Alves <palves@redhat.com>
6247
6248 PR gdb/17072
6249 * top.c: Include "inf-loop.h".
6250 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6251 field.
6252 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6253 was async before.
6254 (gdb_readline_wrapper): Store whether the target is async, and
6255 make it sync.
6256
0017922d
PA
62572014-07-14 Pedro Alves <palves@redhat.com>
6258
6259 PR gdb/17072
6260 * top.c (gdb_readline_wrapper_line): Tweak comment.
6261 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6262 the input handler callback.
6263
94696ad3
PA
62642014-07-14 Pedro Alves <palves@redhat.com>
6265
6266 PR gdb/17072
6267 * main.c: Include event-top.h.
6268 (handle_command_errors): New function.
6269 (catch_command_errors, catch_command_errors_const): Use it.
6270
9d1e69a2
PA
62712014-07-14 Pedro Alves <palves@redhat.com>
6272
6273 * exceptions.c (catch_command_errors, catch_command_errors_const):
6274 Moved to main.c.
6275 * exceptions.h (catch_command_errors_ftype)
6276 (catch_command_errors_const_ftype): Moved to main.c.
6277 (catch_command_errors, catch_command_errors_const): Delete
6278 declarations.
6279 * main.c (catch_command_errors_ftype)
6280 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6281 (catch_command_errors, catch_command_errors_const)): Moved here
6282 from exceptions.c and make static.
6283
feefc97b
PA
62842014-07-14 Pedro Alves <palves@redhat.com>
6285
6286 * exceptions.c (print_any_exception): Delete.
6287 (catch_exceptions_with_msg): Use exception_print instead of
6288 print_any_exception.
6289 (catch_errors): Use exception_fprintf instead of
6290 print_any_exception.
6291 (catch_command_errors, catch_command_errors_const): Use
6292 exception_print instead of print_any_exception.
6293
c933f875
PA
62942014-07-14 Pedro Alves <palves@redhat.com>
6295
6296 * infcall.c (run_inferior_call): Set 'sync_execution' while
6297 running the inferior call.
6298
feb6f816
PA
62992014-07-14 Pedro Alves <palves@redhat.com>
6300
6301 * value.c (value_contents_equal): Delete function.
6302 * value.h (value_contents_equal): Delete declaration.
6303
d98b7a16
TT
63042014-07-14 Tom Tromey <tromey@redhat.com>
6305
6306 PR exp/17106:
6307 * gdbtypes.c (is_dynamic_type_internal): New function, from
6308 is_dynamic_type.
6309 (is_dynamic_type): Rewrite.
6310 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6311 (resolve_dynamic_struct): Likewise.
6312 (resolve_dynamic_type_internal): New function, from
6313 resolve_dynamic_type.
6314 (resolve_dynamic_type): Rewrite.
6315
548740d6
TT
63162014-07-14 Tom Tromey <tromey@redhat.com>
6317
6318 * target.c (target_require_runnable): Also check record_stratum.
6319 Update comment.
6320
808f7ab1
YQ
63212014-07-11 Yao Qi <yao@codesourcery.com>
6322
6323 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6324 thumb_instruction_restores_sp return true.
6325
540314bd
YQ
63262014-07-11 Yao Qi <yao@codesourcery.com>
6327
6328 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6329 (thumb_in_function_epilogue_p): Call
6330 thumb_instruction_restores_sp.
6331
1db01f22
YQ
63322014-07-11 Yao Qi <yao@codesourcery.com>
6333
6334 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6335 'add sp, #imm'.
6336 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6337
3116063b
GB
63382014-07-11 Gary Benson <gbenson@redhat.com>
6339
6340 * amd64-linux-nat.c (gdbcore.h): Remove include.
6341 (regset.h): Likewise.
6342 (nat/linux-btrace.h): Likewise.
6343 (btrace.h): Likewise.
6344 (gdb_assert.h): Likewise.
6345 (string.h): Likewise.
6346 (sys/uio.h): Likewise.
6347 (sys/debugreg.h): Likewise.
6348 (sys/syscall.h): Likewise.
6349 (sys/procfs.h): Likewise.
6350 (sys/user.h): Likewise.
6351 (asm/ptrace.h): Likewise.
6352 (i386-nat.h): Likewise.
6353 * i386-linux-nat.c (i386-nat.h): Likewise.
6354 (regset.h): Likewise.
6355 (target.h): Likewise.
6356 (linux-nat.h): Likewise.
6357 (nat/linux-btrace.h): Likewise.
6358 (btrace.h): Likewise.
6359 (gdb_assert.h): Likewise.
6360 (string.h): Likewise.
6361 (sys/uio.h): Likewise.
6362 (sys/user.h): Likewise.
6363 (sys/procfs.h): Likewise.
6364 (sys/reg.h): Likewise.
6365 (sys/debugreg.h): Likewise.
6366 (ORIG_EAX): Remove definition.
6367
040baaf6
GB
63682014-07-11 Gary Benson <gbenson@redhat.com>
6369
6370 * i386-linux-nat.h: New file.
6371 * x86-linux-nat.h: Likewise.
6372 * x86-linux-nat.c: Likewise.
6373 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6374 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6375 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6376 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6377 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6378 (PTRACE_SETREGSET): Likewise.
6379 (arch_lwp_info): Now in x86-linux-nat.c.
6380 (have_ptrace_getregset): Now in x86-linux-nat.h.
6381 (x86_linux_dr_get): Now in x86-linux-nat.c.
6382 (x86_linux_dr_set): Likewise.
6383 (x86_linux_dr_get_addr): Likewise.
6384 (x86_linux_dr_get_control): Likewise.
6385 (x86_linux_dr_get_status): Likewise.
6386 (update_debug_registers_callback): Likewise.
6387 (x86_linux_dr_set_control): Likewise.
6388 (x86_linux_dr_set_addr): Likewise.
6389 (x86_linux_prepare_to_resume): Likewise.
6390 (x86_linux_new_thread): Likewise.
6391 (x86_linux_new_fork): Likewise.
6392 (x86_linux_get_thread_area): Likewise.
6393 (super_post_startup_inferior): Likewise.
6394 (x86_linux_child_post_startup_inferior): Likewise.
6395 (AMD64_LINUX_USER64_CS): Likewise.
6396 (AMD64_LINUX_X32_DS): Likewise.
6397 (x86_linux_read_description): Likewise.
6398 (x86_linux_enable_btrace): Likewise.
6399 (x86_linux_disable_btrace): Likewise.
6400 (x86_linux_teardown_btrace): Likewise.
6401 (x86_linux_read_btrace): Likewise.
6402 (x86_linux_create_target): Likewise.
6403 (x86_linux_add_target): Likewise.
6404 * i386-linux-nat.c (x86-linux-nat.h): New include.
6405 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6406 (PTRACE_SETREGSET): Likewise.
6407 (arch_lwp_info): Now in x86-linux-nat.c.
6408 (have_ptrace_getregset): Now in x86-linux-nat.h.
6409 (x86_linux_dr_get): Now in x86-linux-nat.c.
6410 (x86_linux_dr_set): Likewise.
6411 (x86_linux_dr_get_addr): Likewise.
6412 (x86_linux_dr_get_control): Likewise.
6413 (x86_linux_dr_get_status): Likewise.
6414 (update_debug_registers_callback): Likewise.
6415 (x86_linux_dr_set_control): Likewise.
6416 (x86_linux_dr_set_addr): Likewise.
6417 (x86_linux_prepare_to_resume): Likewise.
6418 (x86_linux_new_thread): Likewise.
6419 (x86_linux_new_fork): Likewise.
6420 (x86_linux_get_thread_area): Likewise.
6421 (super_post_startup_inferior): Likewise.
6422 (x86_linux_child_post_startup_inferior): Likewise.
6423 (AMD64_LINUX_USER64_CS): Likewise.
6424 (AMD64_LINUX_X32_DS): Likewise.
6425 (x86_linux_read_description): Likewise.
6426 (x86_linux_enable_btrace): Likewise.
6427 (x86_linux_disable_btrace): Likewise.
6428 (x86_linux_teardown_btrace): Likewise.
6429 (x86_linux_read_btrace): Likewise.
6430 (x86_linux_create_target): Likewise.
6431 (x86_linux_add_target): Likewise.
6432
1aa7e42c
GB
64332014-07-11 Gary Benson <gbenson@redhat.com>
6434
6435 * amd64-linux-nat.c: Comment and whitespace changes.
6436 * i386-linux-nat.c: Comment and whitespace changes.
6437
c1e246a0
GB
64382014-07-11 Gary Benson <gbenson@redhat.com>
6439
6440 * amd64-linux-nat.c (x86_linux_create_target): New function.
6441 (x86_linux_add_target): Likewise.
6442 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6443 * i386-linux-nat.c (x86_linux_create_target): New function.
6444 (x86_linux_add_target): Likewise.
6445 (_initialize_i386_linux_nat): Delegate to the above new functions.
6446
8c420b8d
GB
64472014-07-11 Gary Benson <gbenson@redhat.com>
6448
6449 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6450 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6451 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6452 (ps_get_thread_area): Delegate to the above.
6453
cb1da100
GB
64542014-07-11 Gary Benson <gbenson@redhat.com>
6455
6456 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6457 x86_linux_read_description. All uses updated. amd64-specific
6458 code conditionalized. Conditionalized i386-specific code added.
6459 Redundant cast removed.
6460 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6461 x86_linux_read_description. All uses updated. i386-specific
6462 code conditionalized. Conditionalized amd64-specific code added.
6463 One sizeof replaced with the actual type it is describing.
6464
2acf3cd0
GB
64652014-07-11 Gary Benson <gbenson@redhat.com>
6466
6467 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6468 x86_linux_dr_get. All uses updated.
6469 (amd64_linux_dr_set): Renamed to
6470 x86_linux_dr_set. All uses updated.
6471 (amd64_linux_dr_get_addr): Renamed to
6472 x86_linux_dr_get_addr. All uses updated.
6473 (amd64_linux_dr_get_control): Renamed to
6474 x86_linux_dr_get_control. All uses updated.
6475 (amd64_linux_dr_get_status): Renamed to
6476 x86_linux_dr_get_status. All uses updated.
6477 (amd64_linux_dr_set_control): Renamed to
6478 x86_linux_dr_set_control. All uses updated.
6479 (amd64_linux_dr_set_addr): Renamed to
6480 x86_linux_dr_set_addr. All uses updated.
6481 (amd64_linux_prepare_to_resume): Renamed to
6482 x86_linux_prepare_to_resume. All uses updated.
6483 (amd64_linux_new_thread): Renamed to
6484 x86_linux_new_thread. All uses updated.
6485 (amd64_linux_new_fork): Renamed to
6486 x86_linux_new_fork. All uses updated.
6487 (amd64_linux_child_post_startup_inferior): Renamed to
6488 x86_linux_child_post_startup_inferior. All uses updated.
6489 (amd64_linux_enable_btrace): Renamed to
6490 x86_linux_enable_btrace. All uses updated.
6491 (amd64_linux_disable_btrace): Renamed to
6492 x86_linux_disable_btrace. All uses updated.
6493 (amd64_linux_teardown_btrace): Renamed to
6494 x86_linux_teardown_btrace. All uses updated.
6495 (amd64_linux_read_btrace): Renamed to
6496 x86_linux_read_btrace. All uses updated.
6497 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6498 x86_linux_dr_get. All uses updated.
6499 (i386_linux_dr_set): Renamed to
6500 x86_linux_dr_set. All uses updated.
6501 (i386_linux_dr_get_addr): Renamed to
6502 x86_linux_dr_get_addr. All uses updated.
6503 (i386_linux_dr_get_control): Renamed to
6504 x86_linux_dr_get_control. All uses updated.
6505 (i386_linux_dr_get_status): Renamed to
6506 x86_linux_dr_get_status. All uses updated.
6507 (i386_linux_dr_set_control): Renamed to
6508 x86_linux_dr_set_control. All uses updated.
6509 (i386_linux_dr_set_addr): Renamed to
6510 x86_linux_dr_set_addr. All uses updated.
6511 (i386_linux_prepare_to_resume): Renamed to
6512 x86_linux_prepare_to_resume. All uses updated.
6513 (i386_linux_new_thread): Renamed to
6514 x86_linux_new_thread. All uses updated.
6515 (i386_linux_new_fork): Renamed to
6516 x86_linux_new_fork. All uses updated.
6517 (i386_linux_child_post_startup_inferior): Renamed to
6518 x86_linux_child_post_startup_inferior. All uses updated.
6519 (i386_linux_enable_btrace): Renamed to
6520 x86_linux_enable_btrace. All uses updated.
6521 (i386_linux_disable_btrace): Renamed to
6522 x86_linux_disable_btrace. All uses updated.
6523 (i386_linux_teardown_btrace): Renamed to
6524 x86_linux_teardown_btrace. All uses updated.
6525 (i386_linux_read_btrace): Renamed to
6526 x86_linux_read_btrace. All uses updated.
6527
b9c1d481
AS
65282014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6529
6530 * remote.c (extended_remote_post_attach): New function.
6531 (init_extended_remote_ops): Install it as to_post_attach method.
6532
7180e04a
PA
65332014-07-09 Pedro Alves <palves@redhat.com>
6534
6535 * infcmd.c (attach_command_post_wait): Don't call
6536 target_terminal_inferior here.
6537 (attach_command): Call it here instead.
6538
9a9a7608
AB
65392014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6542 field.
6543 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6544 from varobj.c, with additional checks.
6545 (c_varobj_ops): Fill in is_path_expr_parent field.
6546 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6547 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6548 field.
6549 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6550 ops method.
6551 (varobj_default_is_path_expr_parent): New function.
6552 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6553 (varobj_default_is_path_expr_parent): Declare new function.
6554
1f267ae3
MM
65552014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6556
6557 * infcmd.c (finish_backward): Turn internal error into normal error.
6558
b2ee242b
PA
65592014-07-07 Pedro Alves <palves@redhat.com>
6560
8a869bca 6561 PR gdb/17096
b2ee242b
PA
6562 * remote.c (async_handle_remote_sigint)
6563 (async_handle_remote_sigint_twice): Call
6564 gdb_call_async_signal_handler instead of
6565 mark_async_signal_handler.
6566
38e229b2
TT
65672014-07-07 Tom Tromey <tromey@redhat.com>
6568
6569 * target-delegates.c: Rebuild.
6570 * target.c (target_info_record): Remove.
6571 * record.c (info_record_command): Unconditionally call
6572 to_info_record.
6573 * target.h (struct target_ops) <to_info_record>: Use
6574 TARGET_DEFAULT_IGNORE.
6575 (target_info_record): Remove.
6576
f0f9ff95
TT
65772014-07-07 Tom Tromey <tromey@redhat.com>
6578
6579 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6580 TARGET_DEFAULT_NORETURN.
6581 * target.c (generic_tls_error): New function.
6582 (target_translate_tls_address): Don't search target stack.
6583 * target-delegates.c: Rebuild.
6584 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6585 stack.
6586 * linux-thread-db.c (thread_db_get_thread_local_address):
6587 Unconditionally call beneath target.
6588
4a5be5ee
MK
65892014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6590
6591 * cli/cli-logging.c (pop_output_files): Assign targerr to
6592 gdb_stdtargerr.
6593
92c3b204
AB
65942014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * MAINTAINERS (Write After Approval): Update my email address.
6597
9b11e3a7
GB
65982014-07-02 Gary Benson <gbenson@redhat.com>
6599
6600 * proc-service.c (ps_xfer_memory): Update comment.
6601 (ps_pstop): Remove unused function.
6602 (ps_pcontinue): Likewise.
6603 (ps_lstop): Likewise.
6604 (ps_lcontinue): Likewise.
6605 (ps_lgetxregsize): Likewise.
6606 (ps_lgetxregs): Likewise.
6607 (ps_lsetxregs): Likewise.
6608 (ps_plog): Likewise.
6609 (ps_ptread): Likewise.
6610 (ps_ptwrite): Likewise.
6611
cf363f18
MW
66122014-07-01 Mark Wielaard <mjw@redhat.com>
6613
6614 * dwarf2read.c (add_array_cv_type): New function.
6615 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6616 (read_tag_volatile_type): Likewise.
6617
82ae6c8d
TT
66182014-07-01 Tom Tromey <tromey@redhat.com>
6619
6620 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6621 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6622 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6623 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6624 * command.h (cmd_cfunc_ftype): Move earlier.
6625 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6626 (add_com, add_info): Use cmd_cfunc_ftype.
6627
96142726
TT
66282014-06-30 Tom Tromey <tromey@redhat.com>
6629
6630 * symtab.c (operator_chars): Make parameters and return type
6631 const.
6632 (file_matches): Make "files" const.
6633 (struct search_symbols_data) <files>: Now const.
6634 (search_symbols): Make "regexp" and "files" parameters const.
6635 Update.
6636 (symtab_symbol_info): Remove cast.
6637 (rbreak_command): Update.
6638 * symtab.h (search_symbols): Update.
6639
b67a2c6f
YQ
66402014-06-27 Yao Qi <yao@codesourcery.com>
6641
6642 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6643 Change parameter type to 'struct thread_info *'. Caller
6644 updated.
6645 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6646 Update declaration.
6647 * dummy-frame.c (struct dummy_frame_id): New.
6648 (dummy_frame_id_eq): New function.
6649 (struct dummy_frame) <id>: Change its type to 'struct
6650 dummy_frame_id'.
6651 (dummy_frame_push): Add parameter ptid and save it in
6652 dummy_frame_id.
6653 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6654 inferior_ptid.
6655 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6656 to inferior_ptid.
6657 (lookup_dummy_frame): Change parameter type to 'struct
6658 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6659 instead of frame_id_eq.
6660 (dummy_frame_pop): Add parameter ptid. Callers updated.
6661 Update comments. Compose dummy_frame_id and pass it to
6662 lookup_dummy_frame.
6663 (dummy_frame_discard): Add parameter ptid.
6664 (dummy_frame_sniffer): Compose dummy_frame_id and call
6665 dummy_frame_id_eq instead of frame_id_eq.
6666 (fprint_dummy_frames): Print ptid.
6667 * dummy-frame.h: Remove comments.
6668 (dummy_frame_push): Add ptid in declaration.
6669 (dummy_frame_pop, dummy_frame_discard): Likewise.
6670
5b10184c
TT
66712014-06-26 Tom Tromey <tromey@redhat.com>
6672
6673 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6674 * command.h (error_no_arg): Update.
6675
06900326
TT
66762014-06-26 Tom Tromey <tromey@redhat.com>
6677
6678 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6679 (do_show_command): Make "arg" const.
6680 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6681
c2bcbb1d
TT
66822014-06-26 Tom Tromey <tromey@redhat.com>
6683
6684 * record-full.c (record_full_get_bookmark): Make "args" const.
6685 (record_full_goto_bookmark): Make "raw_bookmark" const.
6686 * record.c (record_goto): New function.
6687 (cmd_record_goto): Use it. Now static.
6688 * record.h (record_goto): Declare.
6689 (cmd_record_goto): Remove declaration.
6690 * target-delegates.c: Rebuild.
6691 * target.h (struct target_ops) <to_get_bookmark,
6692 to_goto_bookmark>: Make parameter const.
6693
9cbe5fff
TT
66942014-06-26 Tom Tromey <tromey@redhat.com>
6695
6696 * defs.h (generic_load): Update.
6697 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6698 * monitor.c (monitor_load): Make "args" const.
6699 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6700 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6701 const.
6702 (mips_load): Make "file" const.
6703 * remote-sim.c (gdbsim_load): Make "args" const.
6704 * remote.c (remote_load): Make "name" const.
6705 * symfile.c (generic_load): Make "args" const.
6706 * target-delegates.c: Rebuild.
6707 * target.c (target_load): Make "arg" const.
6708 (debug_to_load): Make "args" const.
6709 * target.h (struct target_ops) <to_load>: Make parameter const.
6710 (target_load): Update.
6711
34a68019
TT
67122014-06-26 Tom Tromey <tromey@redhat.com>
6713
6714 PR symtab/16902:
6715 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6716 (dwarf2_physname, read_partial_die)
6717 (guess_partial_die_structure_name, fixup_partial_die)
6718 (guess_full_die_structure_name, anonymous_struct_prefix)
6719 (dwarf2_name): Use per-BFD obstack.
6720
efc889c1
YQ
67212014-06-26 Yao Qi <yao@codesourcery.com>
6722
6723 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6724 dummyframe and this_id into inner block below.
6725
4395285e
YQ
67262014-06-26 Yao Qi <yao@codesourcery.com>
6727
6728 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6729 with "signal_pass[0]" in the initialization of signal_pass.
6730
aef92902
MM
67312014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6732
6733 * record-btrace.c (record_btrace_generating_corefile)
6734 (record_btrace_prepare_to_generate_core)
6735 (record_btrace_done_generating_core): New.
6736 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6737 (record_btrace_store_registers, record_btrace_prepare_to_store):
6738 Forward request when generating a core file.
6739 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6740 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6741 to_done_generating_core.
6742
5fff78c4
MM
67432014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6744
6745 * target.h (target_ops) <to_prepare_to_generate_core>
6746 <to_done_generating_core>: New.
6747 (target_prepare_to_generate_core, target_done_generating_core): New.
6748 * target.c (target_prepare_to_generate_core)
6749 (target_done_generating_core): New.
6750 * target-delegates.c: Regenerate.
6751 * gcore.c: (write_gcore_file): Rename to ...
6752 (write_gcore_file_1): ...this.
6753 (write_gcore_file): Call target_prepare_to_generate_core
6754 and target_done_generating_core.
6755
1d1f1ccb
MM
67562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6757
6758 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6759 * gcore.c (write_gcore_file): Free memory returned from
6760 make_corefile_notes.
6761 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6762 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6763
3343ef86
YQ
67642014-06-24 Yao Qi <yao@codesourcery.com>
6765
6766 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6767 (arm_linux_init_abi): Set skip_trampoline_code with
6768 gdbarch_skip_trampoline_code instead of
6769 find_solib_trampoline_target.
6770
18d18ac8
YQ
67712014-06-24 Yao Qi <yao@codesourcery.com>
6772
6773 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6774 arm_skip_bx_reg returns non-zero.
6775
80d8d390
YQ
67762014-06-24 Yao Qi <yao@codesourcery.com>
6777
6778 * arm-tdep.c (arm_skip_bx_reg): New function.
6779 (arm_skip_stub): Call arm_skip_bx_reg.
6780
6a18a01c
DB
67812014-06-23 Don Breazeal <donb@codesourcery.com>
6782
6783 * MAINTAINERS: Add myself as write-after-approval maintainer.
6784
8e9db26e
PA
67852014-06-23 Pedro Alves <palves@redhat.com>
6786
6787 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6788 DR_CONTROL before setting DR0..DR3.
6789 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6790 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6791 bits of DR_CONTROL related to the debug register slot being
6792 disabled. If all slots are vacant, clear local slowdown as well,
6793 and assert DR_CONTROL is 0.
6794
70afc5b7
SC
67952014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6796
6797 * python/lib/gdb/command/xmethods.py
6798 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6799 current progspace only if the string "progspace" matches LOCUS_RE.
6800
840ed64d
JK
68012014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 Fix --with-system-readline with readline-6.3 patch 5.
6804 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6805 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6806 types.
6807
26f2dc30
TT
68082014-06-20 Tom Tromey <tromey@redhat.com>
6809
6810 * dwarf2read.c (dw2_get_real_path): Use correct type in
6811 OBSTACK_CALLOC.
6812 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6813
125f8a3d
GB
68142014-06-20 Gary Benson <gbenson@redhat.com>
6815
6816 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6817 * common/glibc_thread_db.h: Likewise.
6818 * common/i386-cpuid.h: Likewise.
6819 * common/i386-gcc-cpuid.h: Likewise.
6820 * common/linux-btrace.h: Likewise.
6821 * common/linux-osdata.h: Likewise.
6822 * common/linux-procfs.h: Likewise.
6823 * common/linux-ptrace.h: Likewise.
6824 * common/mips-linux-watch.h: Likewise.
6825 * common/linux-btrace.c: Moved to nat.
6826 * common/linux-osdata.c: Likewise.
6827 * common/linux-procfs.c: Likewise.
6828 * common/linux-ptrace.c: Likewise.
6829 * common/mips-linux-watch.c: Likewise.
6830 * nat/gdb_thread_db.h: Moved from common.
6831 * nat/glibc_thread_db.h: Likewise.
6832 * nat/i386-cpuid.h: Likewise.
6833 * nat/i386-gcc-cpuid.h: Likewise.
6834 * nat/linux-btrace.c: Likewise.
6835 * nat/linux-btrace.h: Likewise.
6836 * nat/linux-osdata.c: Likewise.
6837 * nat/linux-osdata.h: Likewise.
6838 * nat/linux-procfs.c: Likewise.
6839 * nat/linux-procfs.h: Likewise.
6840 * nat/linux-ptrace.c: Likewise.
6841 * nat/linux-ptrace.h: Likewise.
6842 * nat/mips-linux-watch.c: Likewise.
6843 * nat/mips-linux-watch.h: Likewise.
6844 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6845 (object file files): Reordered.
6846 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6847 of glibc_thread_db.h.
6848
42995dbd
GB
68492014-06-20 Gary Benson <gbenson@redhat.com>
6850
6851 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6852 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6853 (i386_dr_low): Likewise.
6854 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6855 (i386_dr_low_set_addr): Likewise.
6856 (i386_dr_low_get_addr): Likewise.
6857 (i386_dr_low_can_set_control): Likewise.
6858 (i386_dr_low_set_control): Likewise.
6859 (i386_dr_low_get_control): Likewise.
6860 (i386_dr_low_get_status): Likewise.
6861 (i386_get_debug_register_length): Likewise.
6862 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6863 (i386_dr_low): Likewise.
6864 * nat/i386-dregs.c (i386-low.h): Remove include.
6865 (i386-nat.h): Likewise.
6866 (nat/i386-dregs.h): New include.
6867 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6868 (i386_dr_low_set_addr): Likewise.
6869 (i386_dr_low_get_addr): Likewise.
6870 (i386_dr_low_can_set_control): Likewise.
6871 (i386_dr_low_set_control): Likewise.
6872 (i386_dr_low_get_control): Likewise.
6873 (i386_dr_low_get_status): Likewise.
6874 (i386_get_debug_register_length): Likewise.
6875 (debug_hw_points): Likewise.
6876
3ed9baed
IB
68772014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6878
6879 * Makefile.in (SFILES): Add d-exp.y.
6880 (YYFILES): Add d-exp.c.
6881 (YYOBJ): Add d-exp.o.
6882 (local-maintainer-clean): Delete d-exp.c.
6883 * d-exp.y: New file.
6884 * d-lang.h (d_parse): New declaration.
6885 (d_error): New declaration.
6886 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6887 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6888 PREC_ORDER operators.
6889 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6890
78c164b0
YQ
68912014-06-19 Yao Qi <yao@codesourcery.com>
6892
6893 * gdbthread.h (any_running): Remove the declaration.
6894 * thread.c (any_running): Remove.
6895
f6e29b6e
YQ
68962014-06-19 Yao Qi <yao@codesourcery.com>
6897
6898 * gdbthread.h (struct thread_info) <state>: Change its type to
6899 'enum thread_state'. Update comments.
6900
034f788c
PA
69012014-06-19 Pedro Alves <palves@redhat.com>
6902
6903 * gdbthread.h (ALL_THREADS): Delete.
6904 (ALL_NON_EXITED_THREADS): New macro.
6905 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6906 instead of ALL_THREADS.
6907 * infrun.c (find_thread_needs_step_over)
6908 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6909 instead of ALL_THREADS.
6910 * record-btrace.c (record_btrace_open)
6911 (record_btrace_stop_recording, record_btrace_close)
6912 (record_btrace_is_replaying, record_btrace_resume)
6913 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6914 * remote.c (append_pending_thread_resumptions): Likewise.
6915 * thread.c (thread_apply_all_command): Likewise.
6916
46e33252
GB
69172014-06-19 Gary Benson <gbenson@redhat.com>
6918
6919 * i386-nat.c (i386_stopped_by_watchpoint):
6920 Use i386_dr_stopped_by_watchpoint.
6921 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6922 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6923
3a8ee006
GB
69242014-06-19 Gary Benson <gbenson@redhat.com>
6925
6926 * nat/i386-dregs.c: New file.
6927 * Makefile.in (i386-dregs.o): New rule.
6928 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6929 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6930 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6931 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6932 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6933 * config/i386/go32.mh (NATDEPFILES): Likewise.
6934 * config/i386/linux.mh (NATDEPFILES): Likewise.
6935 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6936 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6937 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6938 * i386-nat.h (debug_hw_points): New declaration.
6939 * i386-nat.c (breakpoint.h): Remove include.
6940 (command.h): Likewise.
6941 (target.h): Likewise.
6942 (gdb_assert.h): Likewise.
6943 (debug_hw_points): Made nonstatic.
6944 (debug_printf): Now in i386-dregs.c.
6945 (TARGET_HAS_DR_LEN_8): Likewise.
6946 (DR_CONTROL_SHIFT): Likewise.
6947 (DR_CONTROL_SIZE): Likewise.
6948 (DR_RW_EXECUTE): Likewise.
6949 (DR_RW_WRITE): Likewise.
6950 (DR_RW_READ): Likewise.
6951 (DR_RW_IORW): Likewise.
6952 (DR_LEN_1): Likewise.
6953 (DR_LEN_2): Likewise.
6954 (DR_LEN_4): Likewise.
6955 (DR_LEN_8): Likewise.
6956 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6957 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6958 (DR_ENABLE_SIZE): Likewise.
6959 (DR_LOCAL_SLOWDOWN): Likewise.
6960 (DR_GLOBAL_SLOWDOWN): Likewise.
6961 (DR_CONTROL_RESERVED): Likewise.
6962 (I386_DR_CONTROL_MASK): Likewise.
6963 (I386_DR_VACANT): Likewise.
6964 (I386_DR_LOCAL_ENABLE): Likewise.
6965 (I386_DR_GLOBAL_ENABLE): Likewise.
6966 (I386_DR_DISABLE): Likewise.
6967 (I386_DR_SET_RW_LEN): Likewise.
6968 (I386_DR_GET_RW_LEN): Likewise.
6969 (I386_DR_WATCH_HIT): Likewise.
6970 (i386_wp_op_t): Likewise.
6971 (i386_show_dr): Likewise.
6972 (i386_length_and_rw_bits): Likewise.
6973 (i386_insert_aligned_watchpoint): Likewise.
6974 (i386_remove_aligned_watchpoint): Likewise.
6975 (i386_handle_nonaligned_watchpoint): Likewise.
6976 (i386_update_inferior_debug_regs): Likewise.
6977 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6978 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6979 (i386_region_ok_for_watchpoint):
6980 Use i386_dr_region_ok_for_watchpoint.
6981 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6982
322a8e06
GB
69832014-06-19 Gary Benson <gbenson@redhat.com>
6984
6985 * i386-nat.c (i386_insert_hw_breakpoint): Use
6986 i386_insert_watchpoint.
6987 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6988
8f26655c
GB
69892014-06-19 Gary Benson <gbenson@redhat.com>
6990
6991 * i386-nat.c (i386_dr_show): Renamed to
6992 i386_show_dr and made static. All uses updated.
6993 (i386_dr_length_and_rw_bits): Renamed to
6994 i386_length_and_rw_bits and made static.
6995 All uses updated.
6996 (i386_dr_insert_aligned_watchpoint): Renamed to
6997 i386_insert_aligned_watchpoint and made static.
6998 All uses updated.
6999 (i386_dr_remove_aligned_watchpoint): Renamed to
7000 i386_remove_aligned_watchpoint and made static.
7001 All uses updated.
7002 (i386_dr_update_inferior_debug_regs): Renamed to
7003 i386_update_inferior_debug_regs and made static.
7004 All uses updated.
7005 * nat/i386-dregs.h (i386_dr_show): Removed.
7006 (i386_dr_length_and_rw_bits): Likewise.
7007 (i386_dr_insert_aligned_watchpoint): Likewise.
7008 (i386_dr_remove_aligned_watchpoint): Likewise.
7009 (i386_dr_update_inferior_debug_regs): Likewise.
7010
992c7d70
GB
70112014-06-19 Gary Benson <gbenson@redhat.com>
7012
7013 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7014 * configure: Regenerate.
7015 * config.in: Likewise.
7016 * main.c (signal.h): New include.
7017 (setup_alternate_signal_stack): New function.
7018 (captured_main): Call the above.
7019 * cp-support.c (signal.h): New include.
7020 (catch_demangler_crashes): New flag.
7021 (SIGJMP_BUF): New define.
7022 (SIGSETJMP): Likewise.
7023 (SIGLONGJMP): Likewise.
7024 (gdb_demangle_jmp_buf): New static global.
7025 (gdb_demangle_attempt_core_dump): Likewise.
7026 (gdb_demangle_signal_handler): New function.
7027 (gdb_demangle): If catch_demangler_crashes is set, install the
7028 above signal handler before calling bfd_demangle, and restore
7029 the original signal handler afterwards. Display the offending
7030 symbol and call demangler_warning the first time a segmentation
7031 fault is caught.
7032 (_initialize_cp_support): New maint set/show command.
7033
eae7090b
GB
70342014-06-19 Gary Benson <gbenson@redhat.com>
7035
7036 * utils.h (resource_limit_kind): New enum.
7037 (can_dump_core): New declaration.
7038 (warn_cant_dump_core): Likewise.
7039 (dump_core): Likewise.
7040 * utils.c (dump_core): Made nonstatic. Added new
7041 parameter "limit_kind".
7042 (can_dump_core): Made nonstatic. Moved printing code to...
7043 (warn_cant_dump_core): New function.
7044 (can_dump_core_warn): Likewise.
7045 (internal_vproblem): Replace calls to can_dump_core with
7046 calls to can_dump_core_warn. Supply new argument to each.
7047
57fcfb1b
GB
70482014-06-19 Gary Benson <gbenson@redhat.com>
7049
7050 * utils.h (demangler_vwarning): New declaration.
7051 (demangler_warning): Likewise.
7052 * utils.c (struct internal_problem)
7053 <user_settable_should_quit>: New field.
7054 <user_settable_should_dump_core>: Likewise
7055 (internal_error_problem): Add values for above new fields.
7056 (internal_warning_problem): Likewise.
7057 (demangler_warning_problem): New static global.
7058 (demangler_vwarning): New function.
7059 (demangler_warning): Likewise.
7060 (add_internal_problem_command): Selectively add commands.
7061 (_initialize_utils): New internal problem command.
7062 * maint.c (maintenance_demangler_warning): New function.
7063 (_initialize_maint_cmds): New command.
7064
17a40b44
TT
70652014-06-18 Tom Tromey <tromey@redhat.com>
7066
7067 * f-valprint.c (info_common_command_for_block): Update.
7068 * symtab.h (struct general_symbol_info) <common_block>: Now
7069 const.
7070
346d1dfe
TT
70712014-06-18 Tom Tromey <tromey@redhat.com>
7072
7073 * symtab.h (struct symtab) <blockvector>: Now const.
7074 * ada-lang.c (ada_add_global_exceptions): Update.
7075 * buildsym.c (augment_type_symtab): Update.
7076 * dwarf2read.c (dw2_lookup_symbol): Update.
7077 * jit.c (finalize_symtab): Update.
7078 * jv-lang.c (add_class_symtab_symbol): Update.
7079 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7080 Update.
7081 * objfiles.c (objfile_relocate1): Update.
7082 * psymtab.c (lookup_symbol_aux_psymtabs)
7083 (maintenance_check_psymtabs): Update.
7084 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7085 Update.
7086 * spu-tdep.c (spu_catch_start): Update.
7087 * symmisc.c (dump_symtab_1): Update.
7088 * symtab.c (lookup_global_symbol_from_objfile)
7089 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7090 (basic_lookup_transparent_type_quick)
7091 (basic_lookup_transparent_type, find_pc_sect_symtab)
7092 (find_pc_sect_line, search_symbols): Update.
7093 * block.c (find_block_in_blockvector): Make "bl" const.
7094 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7095 const.
7096 (blockvector_contains_pc): Make "bv" const.
7097 (block_for_pc_sect): Update.
7098 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7099 (blockvector_contains_pc): Update.
7100 * breakpoint.c (resolve_sal_pc): Update.
7101 * inline-frame.c (block_starting_point_at): Update.
7102
1834676b
TT
71032014-06-18 Tom Tromey <tromey@redhat.com>
7104
7105 * completer.c (complete_line): Make "line_buffer" const.
7106 * completer.h (complete_line): Update.
7107
ac1a991b
TT
71082014-06-18 Tom Tromey <tromey@redhat.com>
7109
7110 * symtab.c (add_macro_name): Remove unneeded cast.
7111
5bc98e52
TT
71122014-06-18 Tom Tromey <tromey@redhat.com>
7113
7114 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7115 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7116
8236def8
TT
71172014-06-18 Tom Tromey <tromey@redhat.com>
7118
7119 * probe.c (info_probes_for_ops): Make "arg" const.
7120 * probe.h (info_probes_for_ops): Update.
7121
3977b71f
TT
71222014-06-18 Tom Tromey <tromey@redhat.com>
7123
7124 * varobj.c (varobj_create): Update.
7125 * valops.c (value_of_this): Update.
7126 * tracepoint.c (add_local_symbols, scope_info): Update.
7127 * symtab.h (struct general_symbol_info) <block>: Now const.
7128 * symtab.c (skip_prologue_sal)
7129 (default_make_symbol_completion_list_break_on)
7130 (skip_prologue_using_sal): Update.
7131 * stack.h (iterate_over_block_locals)
7132 (iterate_over_block_local_vars): Update.
7133 * stack.c (print_frame_args): Update.
7134 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7135 parameter const.
7136 (get_selected_block): Make return type const.
7137 * python/py-frame.c (frapy_block): Update.
7138 * python/py-block.c (gdbpy_block_for_pc): Update.
7139 * p-exp.y (%union) <bval>: Now const.
7140 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7141 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7142 * m2-exp.y (%union) <bval>: Now const.
7143 * linespec.c (get_current_search_block): Make return type const.
7144 (create_sals_line_offset, find_label_symbols): Update.
7145 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7146 Update.
7147 (block_starting_point_at): Make "block" const.
7148 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7149 (check_exception_resume): Update.
7150 * guile/scm-frame.c (gdbscm_frame_block): Update.
7151 * guile/scm-block.c (gdbscm_lookup_block): Update.
7152 * frame.h (get_frame_block): Update.
7153 (get_selected_block): Make return type const.
7154 * frame.c (frame_id_inner): Update.
7155 * f-valprint.c (info_common_command_for_block)
7156 (info_common_command): Update.
7157 * dwarf2loc.c (dwarf2_find_location_expression)
7158 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7159 (locexpr_describe_location_piece): Update.
7160 * c-exp.y (%union) <bval>: Now const.
7161 * breakpoint.c (resolve_sal_pc): Update.
7162 * blockframe.c (get_frame_block):Make return type const.
7163 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7164 (block_innermost_frame): Update.
7165 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7166 (block_for_pc, block_for_pc_sect): Update.
7167 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7168 'pblock' const.
7169 (block_for_pc_sect, block_for_pc): Make return type const.
7170 * ax-gdb.c (gen_expr): Update.
7171 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7172 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7173 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7174 (ada_read_var_value): Update.
7175 * ada-exp.y (struct name_info) <block>: Now const.
7176 (%union): Likewise.
7177 (block_lookup): Constify.
7178
b9228891
GB
71792014-06-18 Gary Benson <gbenson@redhat.com>
7180
7181 * nat/i386-dregs.h: New file.
7182 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7183 * i386-nat.h (i386-dregs.h): New include.
7184 (DR_FIRSTADDR): Now in i386-dregs.h.
7185 (DR_LASTADDR): Likewise.
7186 (DR_NADDR): Likewise.
7187 (DR_STATUS): Likewise.
7188 (DR_CONTROL): Likewise.
7189 (i386_debug_reg_state): Likewise.
7190 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7191
a1aa2221
LM
71922014-06-18 Don Breazeal <donb@codesourcery.com>
7193
7194 * breakpoint.c (set_longjmp_breakpoint): Call
7195 momentary_breakpoint_from_master with additional argument.
7196 (set_longjmp_breakpoint_for_call_dummy): Call
7197 momentary_breakpoint_from_master with additional argument.
7198 (set_std_terminate_breakpoint): Call
7199 momentary_breakpoint_from_master with additional argument.
7200 (momentary_breakpoint_from_master): Add argument to function
7201 definition and use it to initialize structure member flag.
74228e77 7202 (clone_momentary_breakpoint): Call
a1aa2221
LM
7203 momentary_breakpoint_from_master with additional argument.
7204 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7205 member flags set in momentary_breakpoint_from_master.
7206
4be83cc2
GB
72072014-06-18 Gary Benson <gbenson@redhat.com>
7208
7209 * i386-nat.c (i386_show_dr): Renamed to
7210 i386_dr_show and made nonstatic. All uses updated.
7211 (i386_length_and_rw_bits): Renamed to
7212 i386_dr_length_and_rw_bits and made nonstatic.
7213 All uses updated.
7214 (i386_insert_aligned_watchpoint): Renamed to
7215 i386_dr_insert_aligned_watchpoint and made nonstatic.
7216 All uses updated.
7217 (i386_remove_aligned_watchpoint): Renamed to
7218 i386_dr_remove_aligned_watchpoint and made nonstatic.
7219 All uses updated.
7220 (i386_update_inferior_debug_regs): Renamed to
7221 i386_dr_update_inferior_debug_regs and made nonstatic.
7222 All uses updated.
7223
131aa0d4
GB
72242014-06-18 Gary Benson <gbenson@redhat.com>
7225
7226 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7227 (i386_dr_low_can_set_control): Likewise.
7228 (i386_dr_low_set_addr): Likewise.
7229 (i386_dr_low_set_control): Likewise.
7230 (i386_dr_low_get_addr): Likewise.
7231 (i386_dr_low_get_status): Likewise.
7232 (i386_dr_low_get_control): Likewise.
7233 (i386_insert_aligned_watchpoint): Use new macros.
7234 (i386_update_inferior_debug_regs): Likewise.
7235 (i386_stopped_data_address): Likewise.
7236
d9305f7f
GB
72372014-06-18 Gary Benson <gbenson@redhat.com>
7238
7239 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7240 New parameter. All uses updated.
7241
ea008da4
GB
72422014-06-18 Gary Benson <gbenson@redhat.com>
7243
7244 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7245 All uses updated.
7246
1b6d4134
GB
72472014-06-18 Gary Benson <gbenson@redhat.com>
7248
7249 * i386-nat.c (debug_printf): New macro.
7250 (i386_get_debug_register_length): Likewise.
7251 (TARGET_HAS_DR_LEN_8): Use above macro.
7252 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7253 and printf_unfiltered. Use phex to format values.
7254
9b4550ef
GB
72552014-06-18 Gary Benson <gbenson@redhat.com>
7256
7257 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7258 Make const.
7259
6e62758f
GB
72602014-06-18 Gary Benson <gbenson@redhat.com>
7261
7262 * i386-nat.c: Comment changes.
7263
51c79e94
GB
72642014-06-18 Gary Benson <gbenson@redhat.com>
7265
7266 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7267
3e11889a
GB
72682014-06-18 Gary Benson <gbenson@redhat.com>
7269
7270 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7271 (i386_insert_aligned_watchpoint): Likewise.
7272 (i386_remove_aligned_watchpoint): Likewise.
7273 (i386_handle_nonaligned_watchpoint): Likewise.
7274
fc6e2f03
GB
72752014-06-18 Gary Benson <gbenson@redhat.com>
7276
7277 * i386-nat.c: Whitespace changes.
7278
2afe7d50
SB
72792014-06-17 Samuel Bronson <naesten@gmail.com>
7280
7281 * MAINTAINERS: Update Roland McGrath's email address.
7282 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7283 Red Hat a while ago, and giving me a current address.
2afe7d50 7284
3bca49ee
TT
72852014-06-17 Tom Tromey <tromey@redhat.com>
7286
7287 * utils.h (savestring): Remove declaration.
7288
6e366df1
TT
72892014-06-17 Tom Tromey <tromey@redhat.com>
7290
7291 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7292
6be47f0c
KS
72932014-06-16 Keith Seitz <keiths@redhat.com>
7294
7295 PR mi/15863
7296 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7297 to update the varobj if inferior_ptid is null_ptid.
7298
7bc112c1
TT
72992014-06-16 Tom Tromey <tromey@redhat.com>
7300
7301 * target.h (struct target_ops) <to_info_proc>: Make parameter
7302 const.
7303 (target_info_proc): Update.
7304 * target.c (target_info_proc): Make "args" const.
7305 * procfs.c (procfs_info_proc): Update.
7306 * linux-tdep.c (linux_info_proc): Update.
7307 (linux_core_info_proc_mappings): Make "args" const.
7308 (linux_core_info_proc): Update.
7309 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7310 * gdbarch.c: Rebuild.
7311 * gdbarch.h: Rebuild.
7312 * corelow.c (core_info_proc): Update.
7313
fee354ee
TT
73142014-06-16 Tom Tromey <tromey@redhat.com>
7315
7316 * target.h (struct target_ops) <to_disconnect>: Make parameter
7317 const.
7318 (target_disconnect): Update.
7319 * target.c (target_disconnect): Make "args" const.
7320 * target-delegates.c: Rebuild.
7321 * remote.c (remote_disconnect): Update.
7322 * record.h (record_disconnect): Update.
7323 * record.c (record_disconnect): Update.
7324 * inf-child.c (inf_child_disconnect): Update.
7325
a30bf1f1
TT
73262014-06-16 Tom Tromey <tromey@redhat.com>
7327
7328 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7329 * target.c (debug_to_rcmd, default_rcmd): Update.
7330 * target-delegates.c: Rebuild.
7331 * remote.c (remote_rcmd): Update.
7332 * monitor.c (monitor_rcmd): Update.
7333
d03de421
PA
73342014-06-16 Pedro Alves <palves@redhat.com>
7335
7336 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7337 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7338 have OBJF_SHARED set.
7339 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7340 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7341 instead of OBJF_USERLOADED.
7342 * objfiles.h (OBJF_SHARED): Update comment.
7343 (userloaded_objfile_contains_address_p): Rename to ...
7344 (shared_objfile_contains_address_p): ... this, and update
7345 comments.
7346 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7347 new objfile.
7348 (remove_symbol_file_command): Skip objfiles that don't have
7349 OBJF_SHARED set.
7350
99f4262f
TT
73512014-06-16 Tom Tromey <tromey@redhat.com>
7352
7353 * minsyms.h (prim_record_minimal_symbol)
7354 (prim_record_minimal_symbol_and_info): Update comments.
7355
97d66cc6
EZ
73562014-06-14 Eli Zaretskii <eliz@gnu.org>
7357
7358 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7359 or --without-guile, according to how GDB was built.
7360
635c7e8a
TT
73612014-06-13 Tom Tromey <tromey@redhat.com>
7362
7363 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7364 to help_list.
7365 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7366 to help_list.
7367 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7368 help_list.
7369 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7370 help_list.Pass all_commands, not -1, to help_list.
7371 * cli/cli-dump.c (dump_command, append_command)
7372 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7373 (binary_dump_command, binary_append_command): Pass all_commands,
7374 not -1, to help_list.
7375 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7376 -1, to help_list.
7377 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7378 -1, to help_list.
7379 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7380 help_list.
7381 * top.c (set_history): Pass all_commands, not -1, to help_list.
7382 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7383 all_commands, not -1, to help_list.
7384 * symfile.c (overlay_command): Pass all_commands, not -1, to
7385 help_list.
7386 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7387 help_list.
7388 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7389 help_list.
7390 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7391 -1, to help_list.
7392 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7393 not -1, to help_list.
7394 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7395 not -1, to help_list.
7396 * maint.c (maintenance_command, maintenance_info_command)
7397 (maintenance_print_command, maintenance_set_cmd): Pass
7398 all_commands, not -1, to help_list.
7399 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7400 help_list.
7401 * language.c (set_check): Pass all_commands, not -1, to help_list.
7402 * infcmd.c (unset_command): Pass all_commands, not -1, to
7403 help_list.
7404 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7405 help_list.
7406 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7407 help_list.
7408 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7409 help_list.
7410 * breakpoint.c (save_command): Pass all_commands, not -1, to
7411 help_list.
7412 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7413 all_commands, not -1, to help_list.
7414
b94ade42
PL
74152014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7416
7417 * regcache.c (struct register_to_invalidate): New structure.
7418 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7419 functions.
7420 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7421
31f628ae
YQ
74222014-06-12 Yao Qi <yao@codesourcery.com>
7423
7424 * varobj.c (varobj_get_num_children): Call
7425 varobj_is_dynamic_p.
7426 (varobj_list_children): Likewise.
7427 (varobj_update): Likewise. Update comments.
7428
cde5ef40
YQ
74292014-06-12 Yao Qi <yao@codesourcery.com>
7430
7431 * varobj.c (varobj_pretty_printed_p): Rename to ...
7432 (varobj_is_dynamic_p): ... this. New function.
7433 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7434 (varobj_is_dynamic_p): Declare.
7435 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7436 (mi_print_value_p, varobj_update_one): Likewise.
7437
576ea091
YQ
74382014-06-12 Pedro Alves <pedro@codesourcery.com>
7439 Yao Qi <yao@codesourcery.com>
7440
7441 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7442 (varobj_get_iterator): Wrap up code for pretty-printer by
7443 "#if HAVE_PYTHON" and "#endif".
7444 (update_dynamic_varobj_children): Likewise.
7445
827f100c
YQ
74462014-06-12 Pedro Alves <pedro@codesourcery.com>
7447 Yao Qi <yao@codesourcery.com>
7448
7449 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7450 gdb_python_initialized is false. Move some code from varobj.c.
7451 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7452 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7453 (struct varobj_item): Moved to varobj-iter.h".
7454 (varobj_clear_saved_item): New function.
7455 (update_dynamic_varobj_children): Move python-related code to
7456 py-varobj.c.
7457 (free_variable): Call varobj_clear_saved_item and
7458 varobj_iter_delete.
7459
e5250216
YQ
74602014-06-12 Pedro Alves <pedro@codesourcery.com>
7461 Yao Qi <yao@codesourcery.com>
7462
7463 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7464 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7465 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7466 (py-varobj.o): New rule.
7467 * python/py-varobj.c: New file.
7468 * python/python-internal.h (py_varobj_get_iterator): Declare.
7469 * varobj-iter.h: New file.
7470 * varobj.c: Include "varobj-iter.h"
7471 (struct varobj) <child_iter>: Change its type from "PyObject *"
7472 to "struct varobj_iter *".
7473 <saved_item>: Likewise.
7474 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7475 [HAVE_PYTHON] (varobj_get_iterator): New function.
7476 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7477 python-specific code to python/py-varobj.c.
7478 (install_visualizer): Call varobj_iter_delete instead of
7479 Py_XDECREF.
7480 * varobj.h (varobj_ensure_python_env): Declare.
7481
5a2e0d6e
YQ
74822014-06-12 Yao Qi <yao@codesourcery.com>
7483
7484 * varobj.c (struct varobj_item): New structure.
7485 (create_child_with_value): Update declaration.
7486 (varobj_add_child): Replace arguments 'name' and 'value' with
7487 'item'. All callers updated.
7488 (install_dynamic_child): Likewise.
7489 (update_dynamic_varobj_children): Likewise.
7490 (varobj_add_child): Likewise.
7491 (create_child_with_value): Likewise.
7492
919b9a93
JB
74932014-06-11 Joel Brobecker <brobecker@adacore.com>
7494
7495 * NEWS: Create a new section for the next release branch.
7496 Rename the section of the current branch, now that it has
7497 been cut.
7498
71a55bdf
JB
74992014-06-11 Joel Brobecker <brobecker@adacore.com>
7500
7501 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7502 * version.in: Bump version to 7.8.50.DATE-cvs.
7503
364fe1f7
PA
75042014-06-11 Pedro Alves <palves@redhat.com>
7505
7506 PR remote/17028
7507 * ser-mingw.c (net_windows_socket_check_pending): New function.
7508 (net_windows_select_thread): Ignore spurious wakeups. Use
7509 net_windows_socket_check_pending.
7510 (net_windows_wait_handle): Check for pending events with
7511 ioctlsocket, through net_windows_socket_check_pending, instead of
7512 checking the socket's event.
7513
5a6c7709
SC
75142014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7515
7516 * python/python-internal.h (gdb_PyObject_GetAttrString)
7517 (gdb_PyObject_HasAttrString): New inline function definitions.
7518 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7519 char * of the second argument to PyObject_GetAttrString.
74228e77 7520
0e58ee40
JB
75212014-06-10 Joel Brobecker <brobecker@adacore.com>
7522
7523 * serial.c (serial_write): Fix index of character to be printed
7524 in call to serial_logchar when serial debug traces are enabled.
7525
d190df30
JB
75262014-06-10 Joel Brobecker <brobecker@adacore.com>
7527
7528 * gdbtypes (resolve_dynamic_range): Add function description.
7529
b4b01d36
PA
75302014-06-09 Pedro Alves <palves@redhat.com>
7531
7532 * linux-nat.c (linux_child_follow_fork): Initialize status with
7533 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7534 inner block. Only pass the signal to PTRACE_DETACH if in pass
7535 state.
7536
3657956b
GB
75372014-06-09 Gary Benson <gbenson@redhat.com>
7538
7539 * common/signals.c (gdb_signal_from_host): Reorder to separate
7540 the always-available ANSI-standard signals from the signals that
7541 require checking.
7542 (do_gdb_signal_to_host): Likewise.
7543 * proc-events.c (signal_table): Likewise.
7544
c077881a
HZ
75452014-06-08 Hui Zhu <hui@codesourcery.com>
7546
7547 * common/linux-ptrace.c (linux_disable_event_reporting): New
7548 function.
7549 * common/linux-ptrace.h (linux_disable_event_reporting): New
7550 declaration.
7551 * linux-nat.c (linux_child_follow_fork): Do a single step before
7552 detach.
7553
4186eb54
KS
75542014-06-07 Keith Seitz <keiths@redhat.com>
7555
7556 Revert:
7557 PR c++/16253
7558 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7559 from symbol_matches_domain in symtab.c. All local callers
7560 of symbol_matches_domain updated.
7561 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7562 search STRUCT_DOMAIN.
7563 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7564 independently. standard_lookup will do that automatically.
7565 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7566 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7567 (cp_lookup_symbol_in_namespace): Likewise.
7568 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7569 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7570 may return a STRUCT_DOMAIN match.
7571 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7572 * cp-support.c: Include language.h.
7573 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7574 VAR_DOMAIN.
7575 * psymtab.c (match_partial_symbol): Compare the requested
7576 domain with the symbol's domain directly.
7577 (lookup_partial_symbol): Likewise.
7578 * symtab.c (lookup_symbol_in_language): Explain when/why
7579 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7580 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7581 appropriate languages.
7582 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7583 and moved to ada-lang.c
7584 (lookup_block_symbol): Explain that this function only returns
7585 symbol matching the requested DOMAIN.
7586 Compare the requested domain with the symbol's domain directly.
7587 (iterate_over_symbols): Compare the requested domain with the
7588 symbol's domain directly.
7589 * symtab.h (symbol_matches_domain): Remove.
7590
25326a28 75912014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7592
7593 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7594 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7595 (gdbscm_guile_version_is_at_least): Declare.
7596 (gdbscm_scm_string_to_int): Declare.
7597 * guile/guile.c (gdbscm_guile_major_version): New global.
7598 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7599 (guile_datadir): New static global.
7600 (gdbscm_guile_data_directory): New function.
7601 (initialize_scheme_side): Update.
7602 (misc_guile_functions): Add guile-data-directory.
7603 (initialize_gdb_module): Fetch guile version number.
7604 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7605 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7606 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7607 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7608 comments.
7609 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7610 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7611 * guile/scm-value.c (gdbscm_value_to_string): Only call
7612 scm_port_conversion_strategy if Guile version >= 2.0.6.
7613
0a770bb2 76142014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7615
7616 * main.c (print_gdb_help): Add -q and --silent.
7617
73ba372c
GB
76182014-06-06 Gary Benson <gbenson@redhat.com>
7619
7620 * common/signals.c: Remove preprocessor conditionals for
7621 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7622 SIGSEGV and SIGTERM.
7623 * proc-events.c: Likewise.
7624
c33b2f12
MM
76252014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7626
7627 * symfile.c (symfile_free_objfile): Remove restriction to
7628 OBJF_USERLOADED.
7629 * symfile-mem.c (symbol_file_add_from_memory): Call
7630 add_target_sections_of_objfile.
7631
fb934770
LC
76322014-06-05 Ludovic Courtès <ludo@gnu.org>
7633
7634 * guile/scm-value.c (gdbscm_history_append_x): Use
7635 'vlscm_get_value_smob_arg_unsafe' instead of
7636 'vlscm_scm_to_value'.
7637
6ef284bd
SM
76382014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7639
7640 PR mi/15806
7641 * utils.c (printchar): Don't escape at all if quoter is NUL.
7642 Update function documentation to clarify effect of parameter
7643 QUOTER.
7644 * remote.c (escape_buffer): Pass '\\' as the quoter to
7645 fputstrn_unfiltered.
7646 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7647 generate the output.
7648 (mi_solib_unloaded): Same.
7649
270c9937
JB
76502014-06-05 Joel Brobecker <brobecker@adacore.com>
7651
7652 * development.sh: Delete.
7653 * Makefile.in (config.status): Adjust dependency on development.sh.
7654 * configure.ac: Adjust development.sh source call.
7655 * configure: Regenerate.
7656
16f691fb
DE
76572014-06-04 Doug Evans <xdje42@gmail.com>
7658
7659 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7660 is_scheme_bkpt, spec.
7661 (bpscm_make_breakpoint_smob): Initialize new members.
7662 (gdbscm_create_breakpoint_x): Split into two ...
7663 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7664 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7665 (scheme_function breakpoint_functions): Update.
7666 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7667 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7668 register-breakpoint!.
7669
ef7cab6b
JB
76702014-06-04 Joel Brobecker <brobecker@adacorer.com>
7671
7672 PR server/17023
7673 * mem-break.c (z_type_supported): Return zero if
7674 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7675
012370f6
TT
76762014-06-04 Tom Tromey <tromey@redhat.com>
7677
7678 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7679 value_from_contents_and_address_unresolved.
7680 (ada_template_to_fixed_record_type_1): Likewise.
7681 (ada_which_variant_applies): Likewise.
7682 * value.h (value_from_contents_and_address_unresolved): Declare.
7683 * value.c (value_from_contents_and_address_unresolved): New
7684 function.
7685 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7686 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7687 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7688
92e2a17f
TT
76892014-06-04 Tom Tromey <tromey@redhat.com>
7690
7691 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7692
c0939df1
TT
76932014-06-04 Tom Tromey <tromey@redhat.com>
7694
7695 * procfs.c (procfs_attach): Make "args" const.
7696 * windows-nat.c (windows_attach): Make "args" const.
7697 * nto-procfs.c (procfs_attach): Make "args" const.
7698 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7699 * go32-nat.c (go32_attach): Make "args" const.
7700 * gnu-nat.c (gnu_attach): Make "args" const.
7701 * darwin-nat.c (darwin_attach): Make "args" const.
7702 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7703 * linux-nat.c (linux_nat_attach): Make "args" const.
7704 * remote.c (extended_remote_attach_1, extended_remote_attach):
7705 Make "args" const.
7706 * target.h (struct target_ops) <to_attach>: Make "args" const.
7707 (find_default_attach): Likewise.
7708 * utils.c (parse_pid_to_attach): Make "args" const.
7709 * utils.h (parse_pid_to_attach): Update.
7710
8eaff7cd
TT
77112014-06-04 Tom Tromey <tromey@redhat.com>
7712
7713 * target-delegates.c: Rebuild.
7714 * target.c (default_thread_address_space): New function.
7715 (target_thread_address_space): Simplify.
7716 * target.h (struct target_ops) <to_thread_address_space>: Add
7717 TARGET_DEFAULT_FUNC.
7718
1913f160
DE
77192014-06-04 Doug Evans <xdje42@gmail.com>
7720
7721 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7722
70ad5bff
MM
77232014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7724
7725 * record-btrace.c: Include event-loop.h and inf-loop.h.
7726 (record_btrace_resume_exec_dir)
7727 (record_btrace_async_inferior_event_handler)
7728 (record_btrace_handle_async_inferior_event): New.
7729 (record_btrace_open): Create async event handler.
7730 (record_btrace_close): Delete async event handler.
7731 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7732 Mark async event handler.
7733 (record_btrace_execution_direction): New.
7734 (init_record_btrace_ops): Initialize to_execution_direction.
7735
b6210538
DE
77362014-06-03 Doug Evans <xdje42@gmail.com>
7737
7738 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7739 (gdbscm_make_parameter): Ditto.
7740
a5b1fd27
DE
77412014-06-03 Doug Evans <dje@google.com>
7742
7743 * exec.c (exec_close_1): Call clear_section_table instead of
7744 resize_section_table.
7745 (clear_section_table): New function.
7746 (resize_section_table): Make static. Rename arg num_added to
7747 adjustment.
7748 * exec.h (clear_section_table): Declare.
7749 (resize_section_table): Delete.
7750 * progspace.c (release_program_space): Call clear_section_table
7751 instead of resize_section_table.
7752
0c6e92a5
SC
77532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7754
7755 * NEWS (Python Scripting): Add entry about the new xmethods
7756 feature.
7757
883964a7
SC
77582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7759
7760 * python/py-xmethods.c: New file.
7761 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7762 (objfpy_dealloc): XDECREF on the new xmethods field.
7763 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7764 field.
7765 (objfpy_get_xmethods): New function.
7766 (objfile_getset): New entry 'xmethods'.
7767 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7768 (pspy_dealloc): XDECREF on the new xmethods field.
7769 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7770 field.
7771 (pspy_get_xmethods): New function.
7772 (pspace_getset): New entry 'xmethods'.
7773 * python/python-internal.h: Add declarations for new functions.
7774 * python/python.c (_initialize_python): Invoke
7775 gdbpy_initialize_xmethods.
7776 * python/lib/gdb/__init__.py (xmethods): New
7777 attribute.
7778 * python/lib/gdb/xmethod.py: New file.
7779 * python/lib/gdb/command/xmethods.py: New file.
7780
58992dc5
SC
77812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7782
7783 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7784 best match method returned by find_overload_match is an xmethod.
7785 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7786 the best matching operator returned by find_overload_match is an
7787 xmethod.
7788 * valops.c: #include "extension.h".
7789 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7790 Return void. The list of matching source methods is returned in
7791 "fn_list" and a vector of matching debug method workers is
7792 returned in "xm_worker_vec". Update all callers.
7793 (value_find_oload_method_list): Likewise.
7794 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7795 non-NULL, then the index of the best matching method in this
7796 vector is returned. Update all callers.
7797 (find_overload_match): Include xmethods while performing overload
7798 resolution.
7799
e81e7f5e
SC
78002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7801
7802 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7803 * extension-priv.h (struct extension_language_ops): Add the
7804 xmethod interface.
7805 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7806 get_matching_xmethod_workers, get_xmethod_argtypes,
7807 invoke_xmethod, free_xmethod_worker,
7808 free_xmethod_worker_vec): New functions.
7809 * extension.h: #include "common/vec.h".
7810 New function declarations.
7811 (struct xmethod_worker): New struct.
7812 (VEC (xmethod_worker_ptr)): New vector type.
7813 (xmethod_worker_ptr): New typedef.
7814 (xmethod_worker_vec): Likewise.
7815 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7816 builtin_type.
7817 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7818 (struct builtin_type): New field "xmethod".
7819 * valarith.c (value_ptradd): Assert that the value argument is not
7820 lval_xcallable.
7821 * valops.c (value_must_coerce_to_target): Return 0 for
7822 lval_xcallable values.
7823 * value.c (struct value): New field XM_WORKER in the field
7824 LOCATION.
7825 (value_address, value_raw_address): Return 0 for lval_xcallable
7826 values.
7827 (set_value_address): Assert that the value is not an
7828 lval_xcallable.
7829 (value_free): Free the associated xmethod worker when freeing
7830 lval_xcallable values.
7831 (set_value_component_location): Assert that the WHOLE value is not
7832 lval_xcallable.
7833 (value_of_xmethod, call_xmethod): New functions.
7834 * value.h: Declare "struct xmethod_worker".
7835 Declare new functions value_of_xmethod, call_xmethod.
7836
ef370185
JB
78372014-06-03 Joel Brobecker <brobecker@adacore.com>
7838 Pedro Alves <palves@redhat.com>
7839
7840 PR breakpoints/17000
7841 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7842 New function, extracted from software_breakpoint_inserted_here_p.
7843 (software_breakpoint_inserted_here_p): Replace factored out code
7844 by call to find_non_raw_software_breakpoint_inserted_here.
7845 (bp_target_info_copy_insertion_state): New function.
7846 (bkpt_insert_location): Handle the case of a single-step
7847 breakpoint already inserted at the same address.
7848 (bkpt_remove_location): Handle the case of a single-step
7849 breakpoint still inserted at the same address.
7850 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7851 breakpoint already inserted at the same address.
7852 (deprecated_remove_raw_breakpoint): Handle the case of a
7853 non-raw breakpoint still inserted at the same address.
7854 (find_single_step_breakpoint): New function, extracted from
7855 single_step_breakpoint_inserted_here_p.
7856 (find_single_step_breakpoint): New function,
7857 factored out from single_step_breakpoint_inserted_here_p.
7858 (single_step_breakpoint_inserted_here_p): Reimplement.
7859
1e2ccb61
BM
78602014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7861
7862 Pushed by Joel Brobecker <brobecker@adacore.com>
7863 * source.c (show_substitute_path_command): Fix display of matching
7864 substitution rules.
7865
d3448d85
GB
78662014-06-03 Gary Benson <gbenson@redhat.com>
7867
7868 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7869
06eb1586
DE
78702014-06-02 Doug Evans <xdje42@gmail.com>
7871
7872 Add parameter support for Guile.
7873 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7874 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7875 (scm-param.o): New rule.
7876 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7877 (gdbscm_misc_error): Declare.
7878 (gdbscm_canonicalize_command_name): Declare.
7879 (gdbscm_scm_to_host_string): Declare.
7880 (gdbscm_scm_from_host_string): Declare.
7881 (gdbscm_initialize_parameters): Declare.
7882 * guile/guile.c (initialize_gdb_module): Call
7883 gdbscm_initialize_parameters.
7884 * guile/lib/gdb.scm: Export parameter symbols.
7885 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7886 cmdscm_canonicalize_name and made public. All callers updated.
7887 * guile/scm-exception.c (gdbscm_misc_error): New function.
7888 * guile/scm-param.c: New file.
7889 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7890 (gdbscm_scm_to_host_string): New function.
7891 (gdbscm_scm_from_host_string): New function.
7892 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7893
e698b8c4
DE
78942014-06-02 Doug Evans <xdje42@gmail.com>
7895
7896 Add command support for Guile.
7897 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7898 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7899 (scm-cmd.o): New rule.
7900 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7901 (gdbscm_user_error_p): Declare.
7902 (gdbscm_parse_command_name): Declare.
7903 (gdbscm_valid_command_class_p): Declare.
7904 (gdbscm_initialize_commands): Declare.
7905 * guile/guile.c (initialize_gdb_module): Call
7906 gdbscm_initialize_commands.
7907 * guile/lib/gdb.scm: Export command symbols.
7908 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7909 (throw-user-error): New function.
7910 * guile/scm-cmd.c: New file.
7911 * guile/scm-exception.c (user_error_symbol): New static global.
7912 (gdbscm_user_error_p): New function.
7913 (gdbscm_initialize_exceptions): Set user_error_symbol.
7914 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7915
fb1f94b0
PM
79162014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7917
7918 * top.c (command_loop): Handle comments here...
7919 (command_line_input): ... not here.
7920
ded03782
DE
79212014-06-02 Doug Evans <xdje42@gmail.com>
7922
7923 Add progspace support for Guile.
7924 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7925 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7926 (scm-progspace.o): New rule.
7927 * guile/guile-internal.h (pspace_smob): New typedef.
7928 (psscm_pspace_smob_pretty_printers): Declare.
7929 (psscm_pspace_smob_from_pspace): Declare.
7930 (psscm_scm_from_pspace): Declare.
7931 * guile/guile.c (initialize_gdb_module): Call
7932 gdbscm_initialize_pspaces.
7933 * guile/lib/gdb.scm: Export progspace symbols.
7934 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7935 support.
7936 (append-pretty-printer!): Ditto.
7937 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7938 Implement.
7939 * guile/scm-progspace.c: New file.
7940
397998fc
AM
79412014-06-03 Alan Modra <amodra@gmail.com>
7942
7943 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7944 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7945
6aa5f3a6
DE
79462014-06-02 Doug Evans <dje@google.com>
7947
7948 Add support for skeletonless type units.
7949 * dwarf2read.c (struct dwarf2_per_objfile): New member
7950 n_allocated_type_units.
7951 (struct dwarf2_per_objfile) <tu_stats>: New member
7952 nr_all_type_units_reallocs.
7953 (create_signatured_type_table_from_index): Initialize
7954 n_allocated_type_units
7955 (create_all_type_units): Ditto.
7956 (add_type_unit): Move up in file. New arg slot.
7957 All callers updated. Increase space for all_type_units more
7958 efficiently.
7959 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7960 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7961 (lookup_dwp_signatured_type): Ditto.
7962 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7963 All callers updated.
7964 (build_type_psymtabs_1): Leave type_unit_groups as
7965 NULL if no TUs present.
7966 (print_tu_stats): New function.
7967 (process_skeletonless_type_unit): New function.
7968 (process_dwo_file_for_skeletonless_type_units): New
7969 function.
7970 (process_skeletonless_type_units): New function.
7971 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7972 Call print tu_stats if debugging enabled.
7973
41fac0cf
PA
79742014-06-02 Pedro Alves <palves@redhat.com>
7975
7976 * breakpoint.c (build_target_command_list): Don't build a command
7977 list if we have any duplicate location that isn't a dprintf.
7978
cd1608cc
PA
79792014-06-02 Pedro Alves <palves@redhat.com>
7980
7981 * breakpoint.c (dprintf_breakpoint_hit): New function.
7982 (initialize_breakpoint_ops): Install it as dprintf's
7983 breakpoint_hit method.
7984
486ef3b9
JB
79852014-06-02 Joel Brobecker <brobecker@adacore.com>
7986
7987 * source.c (substitute_path_rule_matches): Simplify using
7988 filename_ncmp instead of FILENAME_CMP.
7989
230cd560
JB
79902014-06-02 Joel Brobecker <brobecker@adacore.com>
7991
7992 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7993
16954d5d
LC
79942014-06-01 Ludovic Courtès <ludo@gnu.org>
7995
7996 * configure.ac: When Guile is available, check for the
7997 availability of 'scm_new_smob'.
7998 * configure, config.h.in: Regenerate.
7999 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8000 function.
8001
53e8a631
AB
80022014-05-30 Andrew Burgess <aburgess@broadcom.com>
8003
8004 * frame.c (struct frame_info): Add stop_string field.
8005 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8006 (get_prev_frame_always): Old content moved into
8007 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8008 TRY_CATCH, handle MEMORY_ERROR exceptions.
8009 (frame_stop_reason_string): New function definition.
8010 * frame.h (unwind_stop_reason_to_string): Extend comment to
8011 mention frame_stop_reason_string.
8012 (frame_stop_reason_string): New function declaration.
8013 * stack.c (frame_info): Switch to frame_stop_reason_string.
8014 (backtrace_command_1): Switch to frame_stop_reason_string.
8015 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8016 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8017 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8018
70e38b8e
AB
80192014-05-30 Andrew Burgess <aburgess@broadcom.com>
8020
8021 * frame.c (frame_stop_reason_string): Rename to ...
8022 (unwind_stop_reason_to_string): this.
8023 * frame.h (frame_stop_reason_string): Rename to ...
8024 (unwind_stop_reason_to_string): this.
8025 * stack.c (frame_info): Update call to frame_stop_reason_string.
8026 (backtrace_command_1): Likewise.
8027 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8028 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8029
938f0e2f
AB
80302014-05-30 Andrew Burgess <aburgess@broadcom.com>
8031
8032 * frame.c (remove_prev_frame): New function.
8033 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8034 remove_prev_frame.
8035
a09dd441
PA
80362014-05-29 Pedro Alves <palves@redhat.com>
8037
8038 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8039 and make it const. When a single-step decays to a continue,
8040 clear 'step', not 'hw_step'. Pass whether the caller wanted
8041 to step to user_visible_resume_ptid, not what we ask the
8042 target to do.
8043
bdc36728
PA
80442014-05-29 Pedro Alves <palves@redhat.com>
8045
8046 * infrun.c (process_event_stop_test, handle_step_into_function)
8047 (handle_step_into_function_backward): Adjust.
8048 Don't set the even thread's stop_step and call stop_waiting before
8049 calling end_stepping_range. Instead do that ...
8050 (end_stepping_range): ... here. Take an ecs pointer parameter.
8051
22bcd14b
PA
80522014-05-29 Pedro Alves <palves@redhat.com>
8053
8054 * infrun.c (stop_stepping): Rename to ...
8055 (stop_waiting): ... this.
8056 (proceed): Update comment.
8057 (process_event_stop_test, handle_inferior_event)
8058 (handle_signal_stop, handle_step_into_function)
8059 (handle_step_into_function_backward): Update.
8060
4ae57c05
PA
80612014-05-29 Pedro Alves <palves@redhat.com>
8062
8063 * infcall.c (run_inferior_call): Don't check whether the current
8064 thread is running after the proceed call.
8065
329ea579
PA
80662014-05-29 Pedro Alves <palves@redhat.com>
8067 Tom Tromey <tromey@redhat.com>
8068
8069 * NEWS: Mention "maint set target-async", "set mi-async", and that
8070 background execution commands are now always available.
8071 * target.h (target_async_permitted): Update comment.
8072 * target.c (target_async_permitted, target_async_permitted_1):
8073 Default to 1.
8074 (set_target_async_command): Rename to ...
8075 (maint_set_target_async_command): ... this.
8076 (show_target_async_command): Rename to ...
8077 (maint_show_target_async_command): ... this.
8078 (_initialize_target): Adjust.
8079 * infcmd.c (prepare_execution_command): Make extern.
8080 * inferior.h (prepare_execution_command): Declare.
8081 * infrun.c (set_observer_mode): Leave target async alone.
8082 * mi/mi-interp.c (mi_interpreter_init): Install
8083 mi_on_sync_execution_done as sync_execution_done observer.
8084 (mi_on_sync_execution_done): New function.
8085 (mi_execute_command_input_handler): Don't print the prompt if we
8086 just started a synchronous command with an async target.
8087 (mi_on_resume): Check sync_execution before printing prompt.
8088 * mi/mi-main.h (mi_async_p): Declare.
8089 * mi/mi-main.c: Include gdbcmd.h.
8090 (mi_async_p): New function.
8091 (mi_async, mi_async_1): New globals.
8092 (set_mi_async_command, show_mi_async_command, mi_async): New
8093 functions.
8094 (exec_continue): Call prepare_execution_command.
8095 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8096 (mi_execute_async_cli_command): Use mi_async_p.
8097 (_initialize_mi_main): Install "set mi-async". Make
8098 "target-async" a deprecated alias.
8099
92bcb5f9
PA
81002014-05-29 Pedro Alves <palves@redhat.com>
8101
8102 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8103 (_initialize_cli_interp): Adjust.
8104 * event-loop.c: Include "observer.h".
8105 (start_event_loop): Notify 'command_error' observers instead of
8106 calling display_gdb_prompt. Remove FIXME comment.
8107 * event-top.c (display_gdb_prompt): Remove call into the
8108 interpreters.
8109 * inf-loop.c: Include "observer.h".
8110 (inferior_event_handler): Notify 'command_error' observers instead
8111 of calling display_gdb_prompt.
8112 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8113 observers instead of calling display_gdb_prompt.
8114 * interps.c (interp_set): Don't call display_gdb_prompt.
8115 (current_interp_display_prompt_p): Delete.
8116 * interps.h (interp_prompt_p): Delete declaration.
8117 (interp_prompt_p_ftype): Delete.
8118 (struct interp_procs) <prompt_proc_p>: Delete field.
8119 (current_interp_display_prompt_p): Delete declaration.
8120 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8121 (_initialize_mi_interp): Adjust.
8122 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8123 'command_error' observers.
8124 (tui_on_sync_execution_done, tui_on_command_error): New
8125 functions.
8126 (tui_display_prompt_p): Delete.
8127 (_initialize_tui_interp): Adjust.
8128
fd664c91
PA
81292014-05-29 Pedro Alves <palves@redhat.com>
8130
8131 PR gdb/13860
8132 * cli/cli-interp.c: Include infrun.h and observer.h.
8133 (cli_uiout, cli_interp): New globals.
8134 (cli_on_signal_received, cli_on_end_stepping_range)
8135 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8136 functions.
8137 (cli_interpreter_init): Install them as 'end_stepping_range',
8138 'signal_received' 'signal_exited', 'exited' and 'no_history'
8139 observers.
8140 (_initialize_cli_interp): Remove cli_interp local.
8141 * infrun.c (handle_inferior_event): Call the several stop reason
8142 observers instead of printing the stop reason directly.
8143 (end_stepping_range): New function.
8144 (print_end_stepping_range_reason, print_signal_exited_reason)
8145 (print_exited_reason, print_signal_received_reason)
8146 (print_no_history_reason): Make static, and add an uiout
8147 parameter. Print to that instead of to CURRENT_UIOUT.
8148 * infrun.h (print_end_stepping_range_reason)
8149 (print_signal_exited_reason, print_exited_reason)
8150 (print_signal_received_reason print_no_history_reason): New
8151 declarations.
8152 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8153 'mi_uiout'.
8154 <cli_uiout>: New field.
8155 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8156 uiout for CLI output. Install 'signal_received',
8157 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8158 observers.
8159 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8160 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8161 (mi_on_no_history): New functions.
8162 (ui_out_free_cleanup): Delete function.
8163 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8164 instead use the one already stored in the MI interpreter data.
8165 (mi_ui_out): Adjust.
8166 * tui/tui-interp.c: Include infrun.h and observer.h.
8167 (tui_interp): New global.
8168 (tui_on_signal_received, tui_on_end_stepping_range)
8169 (tui_on_signal_exited, tui_on_exited)
8170 (tui_on_no_history): New functions.
8171 (tui_init): Install them as 'end_stepping_range',
8172 'signal_received' 'signal_exited', 'exited' and 'no_history'
8173 observers.
8174 (_initialize_tui_interp): Delete tui_interp local.
8175
8817a6f2
PA
81762014-05-29 Pedro Alves <palves@redhat.com>
8177
8178 PR gdb/15713
8179 * linux-nat.c (linux_nat_resume_callback): Rename the second
8180 parameter to 'except'. Skip LP if it points to EXCEPT.
8181 (linux_nat_resume): Don't mark the event lwp as not stopped
8182 before resuming sibling lwps. Instead ask
8183 linux_nat_resume_callback to skip the event lwp. Mark it as not
8184 stopped after actually resuming it.
8185 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8186 resuming it.
8187 (wait_lwp): Mark the lwp as stopped here.
8188 (stop_wait_callback): Mark the lwp as not stopped right after
8189 resuming it. Don't mark lwps as stopped here.
8190 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8191 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8192
251bde03
PA
81932014-05-29 Pedro Alves <palves@redhat.com>
8194
8195 PR PR15693
8196 * infrun.c (resume): Determine how much to resume depending on
8197 whether the caller wanted a step, not whether we can hardware step
8198 the target. Mark all threads that we intend to run as running,
8199 unless we're calling an inferior function.
8200 (normal_stop): If the thread is running an infcall, don't finish
8201 thread state.
8202 * target.c (target_resume): Don't mark threads as running here.
8203
7f3c0343
JB
82042014-05-28 Joel Brobecker <brobecker@adacore.com>
8205
8206 * serial.c (_initialize_serial): Remove support for
8207 the "set remotebaud" and "show remotebaud" commands.
8208 * NEWS: Add entry documenting the removal of that command.
8209
ee34b3f9
YQ
82102014-05-28 Yao Qi <yao@codesourcery.com>
8211
8212 * charset.c: Fix typo in comments.
8213
add6c04d
GB
82142014-05-27 Gary Benson <gbenson@redhat.com>
8215
8216 * utils.c (internal_vproblem): Prompt for a bug report.
8217
92c48fc5
AW
82182014-05-26 Andy Wingo <wingo@igalia.com>
8219
8220 * guile/scm-arch.c (arscm_mark_arch_smob):
8221 * guile/scm-block.c (bkscm_mark_block_smob)
8222 (bkscm_mark_block_syms_progress_smob):
8223 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8224 * guile/scm-exception.c (exscm_mark_exception_smob):
8225 * guile/scm-frame.c (frscm_mark_frame_smob):
8226 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8227 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8228 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8229 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8230 (ppscm_mark_pretty_printer_worker_smob):
8231 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8232 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8233 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8234 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8235 mark functions.
8236 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8237 function.
8238
b2715b27
AW
82392014-05-26 Andy Wingo <wingo@igalia.com>
8240 Doug Evans <xdje42@gmail.com>
8241
8242 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8243 empty_base_class. All uses updated.
8244 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8245 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8246 Adapt all callers.
8247 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8248 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8249 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8250 (gdbscm_gsmob_has_property_p, add_property_name)
8251 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8252 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8253 (gdb-object-has-property?, gdb-object-properties): Remove.
8254 (gdb-object-kind): Renamed from gsmob-kind.
8255
214ab2da
AW
82562014-05-26 Andy Wingo <wingo@igalia.com>
8257
8258 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8259 * configure: Regenerate.
8260
589fdceb
MM
82612014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8262
8263 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8264
67b5c0c1
MM
82652014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8266
8267 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8268 (replay_memory_access_read_only, replay_memory_access_read_write)
8269 (replay_memory_access_types, replay_memory_access)
8270 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8271 (cmd_set_record_btrace, cmd_show_record_btrace)
8272 (cmd_show_replay_memory_access): New.
8273 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8274 (record_btrace_remove_breakpoint): Replace
8275 record_btrace_allow_memory_access with replay_memory_access.
8276 (_initialize_record_btrace): Add commands.
8277 * NEWS: Announce it.
8278
036cd381
RR
82792014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8280
8281 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8282
c77c1e42
RR
82832014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8284
8285 * MAINTAINERS (Write After Approval): Move self back from
8286 paper trail.
8287
45741a9c
PA
82882014-05-22 Pedro Alves <palves@redhat.com>
8289
8290 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8291 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8292 (disable_randomization, enum exec_direction_kind)
8293 (execution_direction, stop_registers, start_remote)
8294 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8295 (wait_for_inferior, normal_stop, get_last_target_status)
8296 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8297 (insert_step_resume_breakpoint_at_sal)
8298 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8299 (set_step_info, print_stop_event, signal_stop_state)
8300 (signal_print_state, signal_pass_state, signal_stop_update)
8301 (signal_print_update, signal_pass_update)
8302 (update_signals_program_target, clear_exit_convenience_vars)
8303 (displaced_step_dump_bytes, update_observer_mode)
8304 (signal_catch_update, gdb_signal_from_command): Move
8305 declarations ...
8306 * infrun.h: ... to this new file.
8307 * amd64-tdep.c: Include infrun.h.
8308 * annotate.c: Include infrun.h.
8309 * arch-utils.c: Include infrun.h.
8310 * arm-linux-tdep.c: Include infrun.h.
8311 * arm-tdep.c: Include infrun.h.
8312 * break-catch-sig.c: Include infrun.h.
8313 * breakpoint.c: Include infrun.h.
8314 * common/agent.c: Include infrun.h instead of inferior.h.
8315 * corelow.c: Include infrun.h.
8316 * event-top.c: Include infrun.h.
8317 * go32-nat.c: Include infrun.h.
8318 * i386-tdep.c: Include infrun.h.
8319 * inf-loop.c: Include infrun.h.
8320 * infcall.c: Include infrun.h.
8321 * infcmd.c: Include infrun.h.
8322 * infrun.c: Include infrun.h.
8323 * linux-fork.c: Include infrun.h.
8324 * linux-nat.c: Include infrun.h.
8325 * linux-thread-db.c: Include infrun.h.
8326 * monitor.c: Include infrun.h.
8327 * nto-tdep.c: Include infrun.h.
8328 * procfs.c: Include infrun.h.
8329 * record-btrace.c: Include infrun.h.
8330 * record-full.c: Include infrun.h.
8331 * remote-m32r-sdi.c: Include infrun.h.
8332 * remote-mips.c: Include infrun.h.
8333 * remote-notif.c: Include infrun.h.
8334 * remote-sim.c: Include infrun.h.
8335 * remote.c: Include infrun.h.
8336 * reverse.c: Include infrun.h.
8337 * rs6000-tdep.c: Include infrun.h.
8338 * s390-linux-tdep.c: Include infrun.h.
8339 * solib-irix.c: Include infrun.h.
8340 * solib-osf.c: Include infrun.h.
8341 * solib-svr4.c: Include infrun.h.
8342 * target.c: Include infrun.h.
8343 * top.c: Include infrun.h.
8344 * windows-nat.c: Include infrun.h.
8345 * mi/mi-interp.c: Include infrun.h.
8346 * mi/mi-main.c: Include infrun.h.
8347 * python/py-threadevent.c: Include infrun.h.
8348
98eb56a4
PA
83492014-05-22 Pedro Alves <palves@redhat.com>
8350
8351 * infrun.c (handle_inferior_event): Store the exit code for
8352 --return-child-result here, instead of ...
8353 (print_exited_reason): ... here.
8354
17b2616c
PA
83552014-05-21 Pedro Alves <palves@redhat.com>
8356
8357 PR gdb/13860
8358 * gdbthread.h (struct thread_control_state): New field
8359 `command_interp'.
8360 * infrun.c (follow_fork): Copy the new thread control field to the
8361 child fork thread.
8362 (clear_proceed_status_thread): Clear the new thread control field.
8363 (proceed): Set the new thread control field.
8364 * interps.h (command_interp): Declare.
8365 * interps.c (command_interpreter): New global.
8366 (command_interp): New function.
8367 (interp_exec): Set `command_interpreter' while here.
8368 * cli-out.c (cli_uiout_dtor): New function.
8369 (cli_ui_out_impl): Install it.
8370 * mi/mi-interp.c: Include cli-out.h.
8371 (mi_cmd_interpreter_exec): Add comment.
8372 (restore_current_uiout_cleanup): New function.
8373 (ui_out_free_cleanup): New function.
8374 (mi_on_normal_stop): If finishing an execution command started by
8375 a CLI command, or any kind of breakpoint-like event triggered,
8376 print the stop event to the output (CLI) stream.
8377 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8378
5166082f
PA
83792014-05-21 Pedro Alves <palves@redhat.com>
8380
8381 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8382 current source line having changed.
8383 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8384 * infrun.c (normal_stop): Adjust call to
8385 set_current_sal_from_frame.
8386 * source.c (clear_lines_listed_range): New function.
8387 (set_current_source_symtab_and_line, identify_source_line): Clear
8388 the lines listed range.
8389 (line_info): Handle the first "info line" after the current source
8390 line having changed.
8391 * stack.c (print_stack_frame): Remove center handling.
8392 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8393 center sal.line.
8394
c1ee2fb3
PA
83952014-05-21 Pedro Alves <palves@redhat.com>
8396
8397 * inf-child.c (inf_child_mourn_inferior): New function.
8398 * inf-child.h (inf_child_mourn_inferior): New declaration.
8399 * darwin-nat.c (darwin_mourn_inferior): Use
8400 inf_child_mourn_inferior.
8401 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8402 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8403 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8404 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8405 * windows-nat.c (windows_mourn_inferior): Likewise.
8406
5c6d4fb2
DE
84072014-05-21 Doug Evans <xdje42@gmail.com>
8408
250748cb 8409 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8410
4a2722c5
DE
84112014-05-21 Doug Evans <xdje42@gmail.com>
8412
17292b30 8413 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8414 (gdbscm_out_of_range_error): Ditto.
8415 (gdbscm_memory_error): Ditto.
250748cb
DE
8416 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8417 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8418 (gdbscm_out_of_range_error): Update.
8419 (gdbscm_memory_error): Update.
8420 (gdbscm_scm_to_target_string_unsafe): Delete.
8421
6a3cb8e8
PA
84222014-05-21 Pedro Alves <palves@redhat.com>
8423
8424 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8425 globals.
8426 (inf_child_open_target): New function.
8427 (inf_child_open): Use inf_child_open_target to push the target
8428 instead of erroring out.
8429 (inf_child_disconnect, inf_child_close)
8430 (inf_child_maybe_unpush_target): New functions.
8431 (inf_child_target): Install inf_child_disconnect and
8432 inf_child_close. Store a pointer to the returned object.
8433 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8434 declarations.
8435 * target.c (auto_connect_native_target): New global.
8436 (show_default_run_target): New function.
8437 (find_default_run_target): Return NULL if automatically connecting
8438 to the native target is disabled.
8439 (_initialize_target): Install set/show auto-connect-native-target.
8440 * NEWS: Mention "set auto-connect-native-target", and "target
8441 native".
8442 * linux-nat.c (super_close): New global.
8443 (linux_nat_close): Call super_close.
8444 (linux_nat_add_target): Store a pointer to the base class's
8445 to_close method.
8446 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8447 inf_child_maybe_unpush.
8448 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8449 already pushed.
8450 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8451 the inferior. Use inf_child_maybe_unpush_target.
8452 (inf_ttrace_attach): Don't push the target if it is already
8453 pushed.
8454 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8455 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8456 after mourning the inferior. Use inf_child_maybe_unpush_target.
8457 (darwin_attach_pid): Don't push the target if it is already
8458 pushed.
8459 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8460 mourning the inferior. Use inf_child_maybe_unpush_target.
8461 (gnu_detach): Use inf_child_maybe_unpush_target.
8462 * go32-nat.c (go32_create_inferior): Don't push the target if it
8463 is already pushed.
8464 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8465 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8466 (procfs_open): Rename to ...
8467 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8468 comments. Can target_preopen before changing node. Call
8469 inf_child_open_target to push the target explicitly.
8470 (procfs_attach): Don't push the target if it is already pushed.
8471 (procfs_detach): Use inf_child_maybe_unpush_target.
8472 (procfs_create_inferior): Don't push the target if it is already
8473 pushed.
8474 (nto_native_ops): New global.
8475 (procfs_open): Reimplement.
8476 (procfs_native_open): New function.
8477 (init_procfs_targets): Install procfs_native_open as to_open of
8478 "target native". Store a pointer to the "native" target in
8479 nto_native_ops.
8480 * procfs.c (procfs_attach): Don't push the target if it is already
8481 pushed.
8482 (procfs_detach): Use inf_child_maybe_unpush_target.
8483 (procfs_mourn_inferior): Only unpush the target after mourning the
8484 inferior. Use inf_child_maybe_unpush_target.
8485 (procfs_init_inferior): Don't push the target if it is already
8486 pushed.
8487 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8488 if it is already pushed.
8489
930ee1b1
PA
84902014-05-21 Pedro Alves <palves@redhat.com>
8491
8492 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8493 and "procfs" targets are now called "native" instead.
8494
1f5d1b13
PA
84952014-05-21 Pedro Alves <palves@redhat.com>
8496
8497 * go32-nat.c (go32_open): Delete.
8498 (go32_target): Don't override the to_open method.
8499
132f8e03
PA
85002014-05-21 Pedro Alves <palves@redhat.com>
8501
8502 * nto-procfs.c (procfs_can_run): New function.
8503 (nto_procfs_ops): New global.
8504 (init_procfs_targets): New, based on procfs_target. Install
8505 "target native" in addition to "target procfs".
8506 (_initialize_procfs): Call init_procfs_targets instead of adding
8507 the target here.
8508
03c136c3
PA
85092014-05-21 Pedro Alves <palves@redhat.com>
8510
8511 * windows-nat.c (windows_target): Don't override to_shortname,
8512 to_longname or to_doc.
8513
a635d0f3
PA
85142014-05-21 Pedro Alves <palves@redhat.com>
8515
8516 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8517 to_doc.
8518
4f9b5133
PA
85192014-05-21 Pedro Alves <palves@redhat.com>
8520
8521 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8522 to_shortname, to_longname or to_doc.
8523
bc85afde
PA
85242014-05-21 Pedro Alves <palves@redhat.com>
8525
8526 * go32-nat.c (go32_target): Don't override to_shortname,
8527 to_longname or to_doc.
8528
4ebfc96e
PA
85292014-05-21 Pedro Alves <palves@redhat.com>
8530
8531 * inf-child.c (inf_child_open): Remove mention of "child".
8532 (inf_child_target): Rename target to "native" instead of "child".
8533
2648dfed
AA
85342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8535
8536 * Makefile.in (SFILES): Delete "regset.c".
8537 (COMMON_OBS): Delete "regset.o".
8538 * regset.c: Remove.
8539 * regset.h (regset_alloc): Delete prototype.
8540
b13feb94
AA
85412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8542
8543 * sparc-linux-tdep.c (sparc32_linux_gregset)
8544 (sparc32_linux_fpregset): New static regset structures.
8545 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8546 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8547 'fpregset' fields.
8548 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8549 (sparc64_linux_fpregset): New static regset structures.
8550 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8551 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8552 New static regset structures.
8553 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8554 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8555 New static regset structures.
8556 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8557 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8558 New static regset structures.
8559 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8560 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8561 New static regset structures.
8562 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8563
b4fd25c9
AA
85642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8565
8566 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8567 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8568 register maps ("regmaps") from "*regset" to "*regmap". Do this
8569 for all regmap types and variables.
8570 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8571 (sparc32_linux_supply_core_gregset)
8572 (sparc32_linux_collect_core_gregset)
8573 (sparc32_linux_supply_core_fpregset)
8574 (sparc32_linux_collect_core_fpregset): Likewise.
8575 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8576 (sparc_gregmap, sparc_fpregmap): ... these.
8577 (sparc_supply_gregset, sparc_collect_gregset)
8578 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8579 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8580 (_initialize_sparc_nat): Rename regmaps.
8581 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8582 (sparc_gregmap, sparc_fpregmap): ... these.
8583 (sparc_supply_gregset, sparc_collect_gregset)
8584 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8585 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8586 Rename macros to...
8587 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8588 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8589 Likewise.
8590 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8591 Rename to...
8592 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8593 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8594 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8595 regmaps.
8596 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8597 (sparc32_bsd_fpregset): Rename to...
8598 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8599 (sparc32_bsd_fpregmap): ... these.
8600 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8601 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8602 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8603 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8604 (struct sparc_gregmap, struct sparc_fpregmap)
8605 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8606 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8607 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8608 (sparc32_supply_regset, sparc32_collect_gregset)
8609 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8610 prototypes.
8611 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8612 (sparc64_linux_ptrace_gregmap): ... this.
8613 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8614 (_initialize_sparc64_linux_nat): Rename regmaps.
8615 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8616 (sparc64_linux_core_gregmap): ... this.
8617 (sparc64_linux_supply_core_gregset)
8618 (sparc64_linux_collect_core_gregset)
8619 (sparc64_linux_supply_core_fpregset)
8620 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8621 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8622 (sparc64_sol2_fpregset): Rename to...
8623 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8624 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8625 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8626 regmaps.
8627 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8628 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8629 (sparc64_bsd_fpregset): Rename to...
8630 (struct sparc_gregmap, sparc64_sol2_gregmap)
8631 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8632 (sparc64_bsd_fpregmap): ... these.
8633 (sparc64_supply_gregset, sparc64_collect_gregset)
8634 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8635 prototypes.
8636 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8637 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8638 (sparc64fbsd_gregmap): ... this.
8639 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8640 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8641 Rename regmaps.
8642 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8643 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8644 (sparc64nbsd_collect_fpregset): Likewise.
8645 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8646 (sparc64nbsd_gregmap): ... this.
8647 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8648 regmaps.
8649 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8650 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8651 (sparc64obsd_gregmap): ... this.
8652 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8653 regmaps.
8654 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8655 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8656 (sparc32nbsd_gregmap): ... this.
8657 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8658 regmaps.
8659
8fea3224
AA
86602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8661
8662 * score-tdep.c (score7_linux_gregset): New static regset
8663 structure.
8664 (score7_linux_regset_from_core_section): Remove dynamic regset
8665 allocation.
8666 (score_gdbarch_init): Drop allocation of tdep structure.
8667 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8668
24534243
AA
86692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8670
8671 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8672 regset structures.
8673 (am33_regset_from_core_section): Remove dynamic regset
8674 allocations.
8675
b7195f27
AA
86762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8677
8678 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8679 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8680 structures.
8681 (mips_linux_regset_from_core_section): Remove dynamic regset
8682 allocations.
8683 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8684 'gregset64', 'fpregset', and 'fpregset64'.
8685 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8686 deleted tdep fields.
8687
ecc37a5a
AA
86882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8689
8690 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8691 regset structures.
8692 (amd64_regset_from_core_section): Remove dynamic regset
8693 allocations.
8694 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8695 structure.
8696 (amd64obsd_regset_from_core_section): Remove dynamic regset
8697 allocation.
8698 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8699 Likewise.
8700 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8701 x86-common regset supply function.
8702 * i386-tdep.c (i386_collect_gregset): Make static.
8703 (i386_gregset): New global regset structure.
8704 (i386_fpregset, i386_xstateregset): New static regset structures.
8705 (i386_regset_from_core_section): Remove dynamic regset
8706 allocations.
8707 (i386_gdbarch_init): Remove initialization of tdep fields
8708 'gregset', 'fpregset', and 'xstateregset'.
8709 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8710 'fpregset', and 'xstateregset'.
8711 (i386_collect_gregset): Remove prototype.
8712 (i386_gregset): New declaration.
8713 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8714 structure.
8715 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8716 allocation.
8717
b7611c43
AA
87182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8719
8720 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8721 (arm_linux_vfpregset): New static regset structures.
8722 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8723 regset structures.
8724 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8725 and 'vfpregset' fields.
8726
a069a2bd
AA
87272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8728
8729 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8730 (aarch64_linux_fpregset): New static regset structures.
8731 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8732 of regset structures.
8733 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8734 'fpregset' fields.
8735
09424cff
AA
87362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8737
8738 * regset.h (struct regset): Remove gdbarch field.
8739 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8740 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8741 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8742 Likewise.
8743 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8744 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8745 (ppc32_linux_vsxregset): Likewise.
8746 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8747 via the regcache instead of the regset.
8748 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8749 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8750 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8751 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8752 Likewise.
8753
3ca7dae4
AA
87542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8755
8756 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8757 Constify structures.
8758 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8759 (alphanbsd_aout_gregset): Likewise.
8760 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8761 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8762 Likewise.
8763 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8764 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8765 Likewise.
8766 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8767 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8768 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8769 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8770 * m88k-tdep.c (m88k_gregset): Likewise.
8771 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8772 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8773 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8774 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8775 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8776 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8777 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8778 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8779 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8780 Likewise.
8781 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8782 * sh-tdep.h (sh_corefile_gregset): Likewise.
8783 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8784 * vax-tdep.c (vax_gregset): Likewise.
8785
5876f503
JK
87862014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8787
8788 Fix TLS access for -static -pthread.
8789 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8790 (try_thread_db_load_1): Initialize it.
8791 (thread_db_get_thread_local_address): Call it if LM is zero.
8792 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8793 * target.h (struct target_ops) (to_get_thread_local_address): Add
8794 load_module_addr comment.
8795
0256a6ac
PA
87962014-05-21 Pedro Alves <palves@redhat.com>
8797
8798 * dcache.c (dcache_read_memory_partial): If reading the cache line
8799 fails, fallback to reading just the memory the caller wanted.
8800
227533ac
DE
88012014-05-20 Doug Evans <dje@google.com>
8802
8803 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8804 instead of get_current_arch.
8805
936d2992
PA
88062014-05-20 Pedro Alves <palves@redhat.com>
8807
8808 * NEWS: Mention that compare-sections now works with all targets.
8809
8810 * remote.c (PACKET_qCRC): New enum value.
8811 (remote_verify_memory): Don't send qCRC if the target has no
8812 execution. Use packet_support/packet_ok. If the target doesn't
8813 support the qCRC packet, fallback to a deep memory copy.
8814 (compare_sections_command): Say "target image" instead of "remote
8815 executable".
8816 (_initialize_remote): Add PACKET_qCRC to the list of config
8817 packets that have no associated command. Extend comment.
8818 * target.c (simple_verify_memory, default_verify_memory): New
8819 function.
8820 * target.h (struct target_ops) <to_verify_memory>: Default to
8821 default_verify_memory.
8822 (simple_verify_memory): New declaration.
8823 * target-delegates.c: Regenerate.
8824
e59fa00f
MM
88252014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8826
8827 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8828
f2205de0
HZ
88292014-05-20 Hui Zhu <hui@codesourcery.com>
8830 Yao Qi <yao@codesourcery.com>
8831
8832 PR backtrace/16558
8833 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8834 and change address of sp and pc.
8835
c4e54771
TT
88362014-05-19 Tom Tromey <tromey@redhat.com>
8837
8838 * gdbtypes.c (rank_function): Use XNEWVEC.
8839 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8840
73051182
DE
88412014-05-19 Doug Evans <dje@google.com>
8842
8843 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8844 build_type_unit_groups and moved closer to only caller. Remove
8845 arguments. All references updated. Remove outdated .gdb_index
8846 comment.
8847 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8848 build_type_psymtabs_1.
8849
8832e7e3
DE
88502014-05-19 Doug Evans <dje@google.com>
8851
8852 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8853 n_type_unit_groups, all_type_unit_groups. All uses removed.
8854 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8855 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8856 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8857 (add_type_unit_group_to_table): Delete.
8858
cd8ae15e
DE
88592014-05-19 Doug Evans <dje@google.com>
8860
8861 * eval.c (evaluate_subexp_standard): Add some comments.
8862
08f4850b
DE
88632014-05-17 Doug Evans <xdje42@gmail.com>
8864
8865 * progspace.c (remove_program_space): Delete, unused.
8866 * progspace.h (remove_program_space): Ditto.
8867
bed8455c
DE
88682014-05-17 Doug Evans <xdje42@gmail.com>
8869
8870 * inferior.c (prune_inferiors): Fix comment.
8871 (remove_inferior_command): Call prune_program_spaces.
8872
8d551b02
DE
88732014-05-16 Doug Evans <dje@google.com>
8874
8875 New command line option -D.
8876 * NEWS: Mention it.
8877 * main.c (set_gdb_data_directory): New function.
8878 (captured_main): Recognize -D. Flag error for --data-directory "".
8879 Call set_gdb_data_directory.
8880 (print_gdb_help): Print --data-directory, -D.
8881 * main.h (set_gdb_data_directory): Declare.
8882 * top.c (staged_gdb_datadir): New static global.
8883 (set_gdb_datadir): Call set_gdb_data_directory
8884 (show_gdb_datadir): New function.
8885 (init_main): Update init of data-directory parameter.
8886
18848e28
GF
88872014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8888
8889 Import the "dirfd" gnulib module.
8890 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8891 * gnulib/aclocal.m4: Update.
8892 * gnulib/config.in: Update.
8893 * gnulib/configure: Update.
8894 * gnulib/import/Makefile.am: Update.
8895 * gnulib/import/Makefile.in: Update.
8896 * gnulib/import/dirfd.c: New.
8897 * gnulib/import/m4/dirfd.m4: New.
8898 * gnulib/import/m4/gnulib-cache.m4: Update.
8899 * gnulib/import/m4/gnulib-comp.m4: Update.
8900
95c64f92
YQ
89012014-05-16 Pierre Muller <muller@sourceware.org>
8902 Yao Qi <yao@codesourcery.com>
8903
8904 * valprint.c (print_wchar): Move the code on checking whether
8905 W is a printable wide char to the default branch of switch
8906 statement below. Call wchar_printable instead of gdb_iswprint.
8907
cac395ea
TM
89082014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8909
19679eca 8910 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8911 ldr.w and ldrd instructions.
8912
83655187
DE
89132014-05-15 Doug Evans <dje@google.com>
8914
8915 * dwarf2read.c (read_structure_type): Delete outdated comments.
8916
dd756689
TT
89172014-05-14 Tom Tromey <tromey@redhat.com>
8918
8919 * macrocmd.c (print_macro_definition): Reindent.
8920
75ddda77
DE
89212014-05-13 Doug Evans <xdje42@gmail.com>
8922
8923 * python/py-cmd.c (cmdpy_completer): Add comment.
8924 (completers): Make const.
8925
b0f16a3e
SM
89262014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8927
8928 * infrun.c (resume): Remove should_resume (unused). Move up
8929 declaration of resume_ptid.
8930
033c3379
TT
89312014-05-13 Tom Tromey <tromey@redhat.com>
8932
8933 * language.h (unop_type_check): Remove.
8934 (binop_type_check): Don't declare.
8935
9b44a3a5
AA
89362014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8937
8938 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8939 call to regcache_raw_collect.
8940
303a33fa
SM
89412014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8942
8943 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8944 mi_console->quote as the quoting character.
8945
196100a0
SM
89462014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8947
8948 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8949
f989a1c8
TT
89502014-04-29 Tom Tromey <tromey@redhat.com>
8951
8952 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8953 "show debug varobj".
8954
9404b58f
KM
89552014-05-07 Kyle McMartin <kyle@redhat.com>
8956
8957 Pushed by Joel Brobecker <brobecker@adacore.com>.
8958 * aarch64-tdep.c (aarch64_software_single_step): New function.
8959 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8960 with aarch64_software_single_step.
8961
5e49ba57
JB
89622014-05-05 Joel Brobecker <brobecker@adacore.com>
8963
8964 GDB 7.7.1 released.
8965
c888a17d
KS
89662014-05-05 Keith Seitz <keiths@redhat.com>
8967
8968 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8969 variable or history value is successfully parsed.
8970
290a839c
YQ
89712014-05-05 Yao Qi <yao@codesourcery.com>
8972 Pedro Alves <palves@redhat.com>
8973
8974 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8975 address of blocks that intersects the requested range. Trim
8976 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8977 sections.
8978 * ctf.c (ctf_xfer_partial): Likewise.
8979
91256dc2
YQ
89802014-05-05 Yao Qi <yao@codesourcery.com>
8981
8982 * printcmd.c (display_command): Remove the check to
8983 target_has_execution.
8984
07284463
MK
89852014-05-03 Mark Kettenis <kettenis@gnu.org>
8986
8987 * ppcobsd-nat.c: Include "obsd-nat.h".
8988 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8989 add_target.
8990 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8991
30a1e6cc
SDJ
89922014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8993
8994 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8995 and 16-bit signed and unsigned arguments. Update comment.
8996 (stap_parse_probe_arguments): Extend code to handle such
8997 arguments. Use warning instead of complaint to notify about
8998 unrecognized bitness.
8999
f33da99a
SDJ
90002014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9001
9002 PR breakpoints/16889
9003 * stap-probe.c (stap_parse_probe_arguments): Simplify
9004 check for non-prefixed probes (i.e., probes whose
9005 arguments do not start with "N@"). Always set the
9006 argument type to a sane value.
9007
95cf3b38
DT
90082014-05-01 David Taylor <dtaylor@emc.com>
9009
9010 * remote.c (compare_sections_command): Add -r option to compare
9011 all loadable read-only sections.
9012
1cfdf534
SC
90132014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9014
9015 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9016 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9017 Update all callers.
9018 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9019 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9020 Remove unused CORE_ADDR argument. Update all callers.
9021
ca4f7f8b
PA
90222014-04-29 Pedro Alves <palves@redhat.com>
9023
9024 * remote.c (struct packet_config) <detect>: Extend comment.
9025 (add_packet_config_cmd): Don't set the config's detect or support
9026 fields here.
9027 (init_all_packet_configs): Also initialize the config's 'detect'
9028 field.
9029 (reset_all_packet_configs_support): New function.
9030 (remote_open_1): Call reset_all_packet_configs_support instead of
9031 init_all_packet_configs.
9032 (_initialize_remote): Initialize all packet configs. Assert that
9033 all packets have an associated command, except a few known
9034 outliers.
9035
11c1ba78
JB
90362014-04-28 Joel Brobecker <brobecker@adacore.com>
9037
9038 * dwarf2read.c (read_subrange_type): Handle dynamic
9039 DW_AT_lower_bound attributes.
9040
8739bc53
JB
90412014-04-28 Joel Brobecker <brobecker@adacore.com>
9042
9043 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9044 dynamic bounds before computing its upper bound.
9045 (ada_discrete_type_low_bound): Same as above with the lower bound.
9046
6f8a3220
JB
90472014-04-28 Joel Brobecker <brobecker@adacore.com>
9048
9049 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9050 range types. Adjust the array handling implementation to
9051 take advantage of this change.
9052 (resolve_dynamic_range): New function, mostly extracted from
9053 resolve_dynamic_bounds.
9054 (resolve_dynamic_array): New function, mostly extracted from
9055 resolve_dynamic_bounds.
9056 (resolve_dynamic_bounds): Delete.
9057 (resolve_dynamic_type): Reimplement. Add handling of
9058 TYPE_CODE_RANGE types.
9059
4d072ce4
JB
90602014-04-28 Joel Brobecker <brobecker@adacore.com>
9061
9062 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9063 handling of parallel ___XA types.
9064
52865325
JB
90652014-04-28 Joel Brobecker <brobecker@adacore.com>
9066
9067 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9068 unnecessary second call to static_unwrap_type.
9069
433e77fa
HZ
90702014-04-27 Hui Zhu <hui@codesourcery.com>
9071
9072 * stack.c (print_frame_info): Call do_gdb_disassembly with
9073 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9074
b51a69ee
DE
90752014-04-26 Doug Evans <xdje42@gmail.com>
9076
9077 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9078
7ae1a6a6
PA
90792014-04-25 Pedro Alves <palves@redhat.com>
9080
9081 PR server/16255
9082 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9083 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9084 and newline from built string.
9085 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9086 (linux_ptrace_attach_fail_reason): ... this.
9087 * linux-nat.c (linux_nat_attach): Adjust to use
9088 linux_ptrace_attach_fail_reason.
9089
4082afcc
PA
90902014-04-25 Pedro Alves <palves@redhat.com>
9091
9092 * remote.c (struct remote_state): Remove multi_process_aware,
9093 non_stop_aware, cond_tracepoints, cond_breakpoints,
9094 breakpoint_commands, fast_tracepoints, static_tracepoints,
9095 install_in_trace, disconnected_tracing,
9096 enable_disable_tracepoints, string_tracing, and
9097 augmented_libraries_svr4_read fields.
9098 (remote_multi_process_p): Move further below in the file.
9099 (struct packet_config): Add comments.
9100 (update_packet_config): Delete function.
9101 (show_packet_config_cmd): Use packet_config_support.
9102 (add_packet_config_cmd): Use NULL as set callback.
9103 (packet_ok): "set remote foo-packet"-style commands no longer
9104 change config->supported -- adjust.
9105 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9106 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9107 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9108 (PACKET_QNonStop, PACKET_multiprocess_feature)
9109 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9110 (PACKET_DisconnectedTracing_feature)
9111 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9112 (set_remote_protocol_packet_cmd): Delete function.
9113 (packet_config_support, packet_support): New functions.
9114 (set_remote_protocol_Z_packet_cmd): Don't call
9115 update_packet_config.
9116 (remote_query_attached, remote_pass_signals)
9117 (remote_program_signals, remote_threads_info)
9118 (remote_threads_extra_info, remote_start_remote): Use
9119 packet_support.
9120 (remote_start_remote): Use packet_config_support and
9121 packet_support.
9122 (init_all_packet_configs): Set all packets to unknown support,
9123 instead of calling update_packet_config.
9124 (remote_check_symbols): Use packet_support.
9125 (remote_supported_packet): Unconditionally set the packet config's
9126 support status.
9127 (remote_multi_process_feature, remote_non_stop_feature)
9128 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9129 (remote_breakpoint_commands_feature)
9130 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9131 (remote_install_in_trace_feature)
9132 (remote_disconnected_tracing_feature)
9133 (remote_enable_disable_tracepoint_feature)
9134 (remote_string_tracing_feature)
9135 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9136 (remote_protocol_features): Adjust to use remote_supported_packet
9137 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9138 "ConditionalTracepoints", "ConditionalBreakpoints",
9139 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9140 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9141 "EnableDisableTracepoints", and "tracenz".
9142 (remote_query_supported): Use packet_support.
9143 (remote_open_1): Adjust.
9144 (extended_remote_attach_1): Use packet_support. Switch on the
9145 result of packet_ok instead of checking whether the packet ended
9146 up disabled.
9147 (remote_vcont_resume): Use packet_support.
9148 (remote_resume, remote_stop_ns, fetch_register_using_p)
9149 (remote_prepare_to_store, store_register_using_P)
9150 (check_binary_download, remote_write_bytes): Use packet_support.
9151 (remote_vkill): Use packet_support. Switch on the result of
9152 packet_ok instead of checking whether the packet ended up
9153 disabled.
9154 (extended_remote_supports_disable_randomization): Use
9155 packet_support.
9156 (extended_remote_run): Switch on the result of packet_ok instead
9157 of checking whether the packet ended up disabled.
9158 (remote_insert_breakpoint, remote_remove_breakpoint)
9159 (remote_insert_watchpoint, remote_remove_watchpoint)
9160 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9161 packet_support.
9162 (remote_search_memory): Use packet_config_support.
9163 (remote_get_thread_local_address, remote_get_tib_address)
9164 (remote_hostio_send_command, remote_can_execute_reverse): Use
9165 packet_support.
9166 (remote_supports_cond_tracepoints)
9167 (remote_supports_cond_breakpoints)
9168 (remote_supports_fast_tracepoints)
9169 (remote_supports_static_tracepoints)
9170 (remote_supports_install_in_trace)
9171 (remote_supports_enable_disable_tracepoint)
9172 (remote_supports_string_tracing)
9173 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9174 the packet config says the feature is enabled or disabled.
9175 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9176 (remote_get_trace_status): Use packet_support.
9177 (remote_set_disconnected_tracing): Adjust to check whether the
9178 feature is enabled with packet_support.
9179 (remote_set_trace_buffer_size, remote_use_agent)
9180 (remote_can_use_agent, remote_supports_btrace): Use
9181 packet_support.
9182 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9183 Use packet_config_support.
9184 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9185 the packet config says the feature is enabled or disabled.
9186 (set_range_stepping): Use packet_support.
9187
bdb52a22
TT
91882014-04-25 Tom Tromey <tromey@redhat.com>
9189
9190 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9191 argument.
9192
e9475ead
SA
91932014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9194
9195 * NEWS: Mention support for C99 variable length arrays.
9196
82eacd52
JB
91972014-04-24 Joel Brobecker <brobecker@adacore.com>
9198
9199 * ada-lang.c (standard_exc): Expand introductory comment.
9200
01f9f808
MS
92012014-04-24 Michael Sturm <michael.sturm@mintel.com>
9202 Walfred Tedeschi <walfred.tedeschi@intel.com>
9203
9204 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9205 AVX512 registers.
9206 (amd64_linux_read_description): Add code to handle AVX512 xstate
9207 mask and return respective tdesc.
9208 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9209 and features/i386/x32-avx512-linux.c.
9210 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9211 (amd64_linux_core_read_description): Add code to handle AVX512
9212 xstate mask and return respective tdesc.
9213 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9214 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9215 calculation.
9216 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9217 (tdesc_amd64_avx512_linux): New prototype.
9218 (tdesc_x32_avx512_linux): Likewise.
9219 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9220 features/i386/x32-avx512.c.
9221 (amd64_ymm_avx512_names): New register names for pseudo
9222 registers YMM16-31.
9223 (amd64_ymmh_avx512_names): New register names for raw registers
9224 YMMH16-31.
9225 (amd64_k_names): New register names for K registers.
9226 (amd64_zmmh_names): New register names for ZMM raw registers.
9227 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9228 (amd64_xmm_avx512_names): New register names for XMM16-31
9229 registers.
9230 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9231 registers.
9232 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9233 if feature is present.
9234 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9235 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9236 (AMD64_NUM_REGS): Adjust to new number of registers.
9237 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9238 registers supplied via XSTATE by AVX512 registers.
9239 (i386_linux_read_description): Add case for AVX512.
9240 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9241 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9242 (i386_linux_core_read_description): Add case for AVX512.
9243 (i386_linux_init_abi): Install supported register note section
9244 for AVX512.
9245 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9246 AVX512.
9247 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9248 registers to be number of zmm7h + 1.
9249 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9250 * i386-tdep.c: Include features/i386/i386-avx512.c.
9251 (i386_zmm_names): Add ZMM pseudo register names array.
9252 (i386_zmmh_names): Add ZMM raw register names array.
9253 (i386_k_names): Add K raw register names array.
9254 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9255 registers. AVX512 has 16 more ZMM registers than there are YMM
9256 registers.
9257 (i386_zmmh_regnum_p): Add function to look up register number of
9258 ZMM raw registers.
9259 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9260 (i386_k_regnum_p): Likewise for K raw registers.
9261 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9262 registers added by AVX512.
9263 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9264 registers added by AVX512.
9265 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9266 added by AVX512.
9267 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9268 (i386_pseudo_register_name): Add ZMM pseudo registers.
9269 (i386_zmm_type): Construct and return vector registers type for ZMM
9270 registers.
9271 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9272 ZMM0-31 pseudo registers and K registers.
9273 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9274 and YMM16-31 registers from register cache.
9275 (i386_pseudo_register_write): Add code to write K, ZMM and
9276 YMM16-31 registers.
9277 (i386_register_reggroup_p): Add code to include/exclude AVX512
9278 registers in/from respective register groups.
9279 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9280 registers if feature is present in xcr0.
9281 (i386_gdbarch_init): Add code to initialize AVX512 feature
9282 variables in tdep structure, wire in pseudo registers and call
9283 initialize_tdesc_i386_avx512.
9284 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9285 variables.
9286 (i386_regnum): Add AVX512 registers.
9287 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9288 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9289 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9290 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9291 512 bits wide.
9292 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9293 (i386_ymm_avx512_regnum_p): Likewise.
9294 (i386_k_regnum_p): Likewise.
9295 (i386_zmm_regnum_p): Likewise.
9296 (i386_zmmh_regnum_p): Likewise.
9297 * i387-tdep.c : Update year in copyright notice.
9298 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9299 XSAVE buffer.
9300 (XSAVE_YMM_AVX512_ADDR): New macro.
9301 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9302 XSAVE buffer.
9303 (XSAVE_XMM_AVX512_ADDR): New macro.
9304 (xsave_avx512_k_offset): New table for K register offsets in
9305 XSAVE buffer.
9306 (XSAVE_AVX512_K_ADDR): New macro.
9307 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9308 in XSAVE buffer.
9309 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9310 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9311 buffer.
9312 (i387_collect_xsave): Add code to collect AVX512 registers from
9313 XSAVE buffer.
9314 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9315 of XMM16-31 registers.
9316 (I387_NUM_K_REGS): New define for number of K registers.
9317 (I387_K0_REGNUM): New define for K0 register number.
9318 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9319 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9320 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9321 registers.
9322 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9323 (I387_XMM16_REGNUM): New define for XMM16 register number.
9324 (I387_YMM0_REGNUM): New define for YMM0 register number.
9325 (I387_KEND_REGNUM): New define for last K register number.
9326 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9327 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9328 number.
9329 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9330 number.
9331 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9332 size.
9333 * features/Makefile: Add AVX512 related files.
9334 * features/i386/32bit-avx512.xml: New file.
9335 * features/i386/64bit-avx512.xml: Likewise.
9336 * features/i386/amd64-avx512-linux.c: Likewise.
9337 * features/i386/amd64-avx512-linux.xml: Likewise.
9338 * features/i386/amd64-avx512.c: Likewise.
9339 * features/i386/amd64-avx512.xml: Likewise.
9340 * features/i386/i386-avx512-linux.c: Likewise.
9341 * features/i386/i386-avx512-linux.xml: Likewise.
9342 * features/i386/i386-avx512.c: Likewise.
9343 * features/i386/i386-avx512.xml: Likewise.
9344 * features/i386/x32-avx512-linux.c: Likewise.
9345 * features/i386/x32-avx512-linux.xml: Likewise.
9346 * features/i386/x32-avx512.c: Likewise.
9347 * features/i386/x32-avx512.xml: Likewise.
9348 * regformats/i386/amd64-avx512-linux.dat: New file.
9349 * regformats/i386/amd64-avx512.dat: Likewise.
9350 * regformats/i386/i386-avx512-linux.dat: Likewise.
9351 * regformats/i386/i386-avx512.dat: Likewise.
9352 * regformats/i386/x32-avx512-linux.dat: Likewise.
9353 * regformats/i386/x32-avx512.dat: Likewise.
9354 * NEWS: Add note about new support for AVX512.
9355
9356
08351840
PA
93572014-04-23 Pedro Alves <palves@redhat.com>
9358
9359 * breakpoint.c (insert_bp_location): Tolerate errors if the
9360 breakpoint is set in a user-loaded objfile.
9361 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9362 location is marked shlib_disabled. If the breakpoint is set in a
9363 user-loaded objfile is a GDB-side memory breakpoint, validate it
9364 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9365 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9366 flag.
9367 * mem-break.c (memory_validate_breakpoint): New function.
9368 * objfiles.c (userloaded_objfile_contains_address_p): New
9369 function.
9370 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9371 * target.h (memory_validate_breakpoint): New declaration.
9372
076855f9
PA
93732014-04-23 Pedro Alves <palves@redhat.com>
9374
9375 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9376 the breakpoint is set in a shared library, only suppress
9377 errors for software breakpoints, not hardware breakpoints.
9378
483805cf
PA
93792014-04-22 Pedro Alves <palves@redhat.com>
9380
9381 * infrun.c (schedlock_applies): New function, factored out from
9382 find_thread_needs_step_over.
9383 (find_thread_needs_step_over): Use it.
9384 (switch_back_to_stepped_thread): Always clear trap_expected if the
9385 step over is finished. Return early if scheduler locking applies.
9386 Look for the stepping thread and a potential step-over thread with
9387 a single loop.
9388 (currently_stepping_or_nexting_callback): Delete.
9389
a75fef0e
NC
93902014-04-22 Nick Clifton <nickc@redhat.com>
9391
9392 * NEWS: Mention that ARM sim now supports tracing.
9393
48b6e87e
YQ
93942014-04-22 Yao Qi <yao@codesourcery.com>
9395
9396 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9397 to ...
9398 * tracefile.c (tracefile_fetch_registers): ... it. New
9399 function.
9400 * tracefile.h (tracefile_fetch_registers): Declare.
9401 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9402 tracefile_fetch_registers.
9403
17617f2d
EZ
94042014-04-19 Eli Zaretskii <eliz@gnu.org>
9405
9406 PR gdb/14018
9407 * windows-nat.c (thread_rec): Don't display a warning when
9408 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9409 fails for any reason, set th->suspended to -1, so that we don't
9410 try to resume such a thread. Also, don't return NULL in these
9411 cases, to avoid completely ruin the session due to "PC register is
9412 not available" error.
9413 (do_windows_fetch_inferior_registers): Check errors in
9414 GetThreadContext call.
9415 (windows_continue): Accept an additional argument KILLED; if not
9416 zero, ignore errors in the SetThreadContext call, since the
9417 inferior was killed and is shutting down.
9418 (windows_resume, get_windows_debug_event)
9419 (windows_create_inferior, windows_mourn_inferior)
9420 (windows_kill_inferior): All callers of windows_continue changed
9421 to adjust to its new calling sequence.
9422
5723a6fd
YQ
94232014-04-19 Yao Qi <yao@codesourcery.com>
9424
9425 * ctf.c (ctf_open): Call post_create_inferior.
9426
614d5099
YQ
94272014-04-19 Yao Qi <yao@codesourcery.com>
9428
9429 * ctf.c (handle_id): New static variable.
9430 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9431 value. Get the declaration of event "register" and get length
9432 of field "contents".
9433
dac3e710
YQ
94342014-04-19 Yao Qi <yao@codesourcery.com>
9435
9436 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9437
2bca57ba
SC
94382014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9439
9440 * valops.c (oload_method_static): Remove unnecessary argument
9441 METHOD. Update all callers.
9442
51d48146
PA
94432014-04-18 Pedro alves <palves@redhat.com>
9444 Tom Tromey <tromey@redhat.com>
9445
9446 PR backtrace/15558
9447 * frame.c (get_prev_frame_1): Rename to ...
9448 (get_prev_frame_always): ... this, and make extern. Adjust.
9449 (skip_artificial_frames): Use get_prev_frame_always.
9450 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9451 (get_frame_unwind_stop_reason): Adjust to rename.
9452 * frame.h (get_prev_frame_always): Declare.
9453 * inline-frame.c: Include frame.h.
9454 (inline_frame_this_id): Use get_prev_frame_always.
9455
1bdad2e0
TG
94562014-04-18 Tristan Gingold <gingold@adacore.com>
9457
9458 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9459 code by using bfd_mach_o_get_base_address.
9460
7ce16bd4
UW
94612014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9462
9463 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9464 (spu_ax_pseudo_register_collect): New function.
9465 (spu_ax_pseudo_register_push_stack): Likewise.
9466 (spu_dwarf_reg_to_regnum): Likewise.
9467 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9468
2ed3c037
UW
94692014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9470
9471 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9472 Replace FRAME argument with FRAME_ID.
9473 * gdbarch.c, gdbarch.h: Regenerate.
9474 * findvar.c (default_value_from_register): Add GDBARCH argument;
9475 replace FRAME by FRAME_ID. No longer call get_frame_id.
9476 (value_from_register): Update call to gdbarch_value_from_register.
9477 * value.h (default_value_from_register): Update prototype.
9478 * s390-linux-tdep.c (s390_value_from_register): Update interface
9479 and call to default_value_from_register.
9480 * spu-tdep.c (spu_value_from_register): Likewise.
9481
9482 * findvar.c (address_from_register): Remove TYPE argument.
9483 Do not call value_from_register; use gdbarch_value_from_register
9484 with null_frame_id instead.
9485 * value.h (address_from_register): Update prototype.
9486 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9487 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9488 address_from_register interface change.
9489
71e50e83
YQ
94902014-04-17 Yao Qi <yao@codesourcery.com>
9491
9492 * gdbtypes.h: Update comments to link to types and macros'
9493 definitions.
9494
7a23c549
SC
94952014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9496
9497 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9498
22869d73
KS
94992014-04-16 Keith Seitz <keiths@redhat.com>
9500
9501 PR gdb/15827
9502 * dwarf2read.c (skip_one_die): Check that all relative-offset
9503 sibling DIEs fall within range of the current reader's buffer.
9504 (read_partial_die): Likewise.
9505
c4f87ca6
KS
95062014-04-16 Keith Seitz <keiths@redhat.com>
9507
9508 PR c++/16597
9509 * cp-namespace.c (lookup_symbol_file): If the type name of
9510 `this' is NULL, return immediately.
9511
b50c8614
KS
95122014-04-14 Keith Seitz <keiths@redhat.com>
9513
9514 PR c++/16253
9515 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9516 from symbol_matches_domain in symtab.c. All local callers
9517 of symbol_matches_domain updated.
9518 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9519 search STRUCT_DOMAIN.
9520 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9521 independently. standard_lookup will do that automatically.
9522 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9523 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9524 (cp_lookup_symbol_in_namespace): Likewise.
9525 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9526 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9527 may return a STRUCT_DOMAIN match.
9528 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9529 * cp-support.c: Include language.h.
9530 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9531 VAR_DOMAIN.
9532 * psymtab.c (match_partial_symbol): Compare the requested
9533 domain with the symbol's domain directly.
9534 (lookup_partial_symbol): Likewise.
9535 * symtab.c (lookup_symbol_in_language): Explain when/why
9536 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9537 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9538 appropriate languages.
9539 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9540 and moved to ada-lang.c
9541 (lookup_block_symbol): Explain that this function only returns
9542 symbol matching the requested DOMAIN.
9543 Compare the requested domain with the symbol's domain directly.
9544 (iterate_over_symbols): Compare the requested domain with the
9545 symbol's domain directly.
9546 * symtab.h (symbol_matches_domain): Remove.
9547
3d567982
TT
95482014-04-14 Tom Tromey <tromey@redhat.com>
9549
9550 PR c++/15246:
9551 * c-exp.y (type_aggregate_p): New function.
9552 (qualified_name, classify_inner_name): Use it.
9553 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9554 and TYPE_TARGET_TYPE of an enum type.
9555 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9556 an enum type.
9557 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9558 handle TYPE_DECLARED_CLASS.
9559 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9560 types.
9561 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9562 * valops.c (enum_constant_from_type): New function.
9563 (value_aggregate_elt): Use it.
9564 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9565 TYPE_CODE_ENUM.
9566
c848d642
TT
95672014-04-14 Tom Tromey <tromey@redhat.com>
9568
9569 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9570 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9571 const.
9572 * value.h (value_aggregate_elt): Update.
9573
0626fc76
TT
95742014-04-14 Tom Tromey <tromey@redhat.com>
9575
9576 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9577
5ecaaa66
SA
95782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9579
9580 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9581 (evaluate_subexp_standard): Pass noside argument.
9582 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9583 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9584 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9585 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9586 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9587
1612e0c0
SA
95882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9589
9590 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9591 points to a constant blob.
9592
c451ebe5
SA
95932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9594
9595 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9596 property and store it as the high bound and flag the range accordingly.
9597 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9598 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9599 * gdbtypes.h (enum range_flags): New enum.
9600 (struct range_bounds): Add flags member.
9601
1d42e4c4
SA
96022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9603
9604 * c-typeprint.c (c_type_print_varspec_suffix): Added
9605 check for not yet resolved high bound. If unresolved, print
9606 "variable length" string to the console instead of random
9607 length.
9608
9f1f738a
SA
96092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9610
9611 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9612 value.
9613 (ada_template_to_fixed_record_type_1): Likewise.
9614 (ada_to_fixed_type_1): Likewise.
9615 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9616 (cp_print_value): Likewise.
9617 * d-valprint.c (dynamic_array_type): Likewise.
9618 * findvar.c (address_of_variable): Likewise.
9619 * jv-valprint.c (java_value_print): Likewise.
9620 * valops.c (value_ind): Likewise.
9621 * value.c (coerce_ref): Likewise.
9622
3c8452d4
SA
96232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9624
9625 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9626 value and retrieve the dynamic type size.
9627
4ad88275
SA
96282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9629
9630 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9631 passed to sizeof is dynamic evaluate the argument to compute the length.
9632
80180f79
SA
96332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9634 Joel Brobecker <brobecker@adacore.com>
9635
9636 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9637 (dwarf2_evaluate_property): New function.
9638 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9639 * dwarf2read.c (attr_to_dynamic_prop): New function.
9640 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9641 attribute.
9642 * gdbtypes.c: Include dwarf2loc.h.
9643 (is_dynamic_type): New function.
9644 (resolve_dynamic_type): New function.
9645 (resolve_dynamic_bounds): New function.
9646 (get_type_length): New function.
9647 (check_typedef): Use get_type_length to compute type length.
9648 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9649 (TYPE_LOW_BOUND_KIND): New macro.
9650 (is_dynamic_type): New function prototype.
9651 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9652 to resolve dynamic properties of the type. Update comment.
9653 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9654
a1556843
RH
96552014-04-14 Richard Henderson <rth@redhat.com>
9656
9657 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9658
0be03e84
DE
96592014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9660 Doug Evans <xdje42@gmail.com>
9661
9662 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9663 dereference TYPE_CODE_REF values.
9664
6b662e19
JB
96652014-04-11 Joel Brobecker <brobecker@adacore.com>
9666
9667 Revert the following changes due to regressions:
9668
9669 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9670 (dwarf2_evaluate_property): New function.
9671 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9672 * dwarf2read.c (attr_to_dynamic_prop): New function.
9673 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9674 attribute.
9675 * gdbtypes.c: Include dwarf2loc.h.
9676 (is_dynamic_type): New function.
9677 (resolve_dynamic_type): New function.
9678 (resolve_dynamic_bounds): New function.
9679 (get_type_length): New function.
9680 (check_typedef): Use get_type_length to compute type length.
9681 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9682 (TYPE_LOW_BOUND_KIND): New macro.
9683 (is_dynamic_type): New function prototype.
9684 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9685 to resolve dynamic properties of the type. Update comment.
9686 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9687
9688 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9689 passed to sizeof is dynamic evaluate the argument to compute the length.
9690
9691 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9692 value and retrieve the dynamic type size.
9693
9694 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9695 (ada_template_to_fixed_record_type_1): Likewise.
9696 (ada_to_fixed_type_1): Likewise.
9697 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9698 (cp_print_value): Likewise.
9699 * d-valprint.c (dynamic_array_type): Likewise.
9700 * eval.c (evaluate_subexp_with_coercion): Likewise.
9701 * findvar.c (address_of_variable): Likewise.
9702 * jv-valprint.c (java_value_print): Likewise.
9703 * valops.c (value_ind): Likewise.
9704 * value.c (coerce_ref): Likewise.
9705
9706 * c-typeprint.c (c_type_print_varspec_suffix): Added
9707 check for not yet resolved high bound. If unresolved, print
9708 "variable length" string to the console instead of random
9709 length.
9710
9711 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9712 property and store it as the high bound and flag the range accordingly.
9713 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9714 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9715 * gdbtypes.h (enum range_flags): New enum.
9716 (struct range_bounds): Add flags member.
9717
9718 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9719 points to a constant blob.
9720
9721 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9722 (evaluate_subexp_standard): Pass noside argument.
9723 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9724 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9725 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9726 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9727 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9728
245a5f0b
KS
97292014-04-11 Keith Seitz <keiths@redhat.com>
9730
9731 PR c++/16675
9732 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9733 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9734 reference types.
9735
3bce8237
SA
97362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9737
9738 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9739 (evaluate_subexp_standard): Pass noside argument.
9740 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9741 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9742 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9743 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9744 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9745
92b09522
SA
97462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9747
9748 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9749 points to a constant blob.
9750
e1969afb
SA
97512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9752
9753 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9754 property and store it as the high bound and flag the range accordingly.
9755 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9756 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9757 * gdbtypes.h (enum range_flags): New enum.
9758 (struct range_bounds): Add flags member.
9759
b86138fb
SA
97602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9761
9762 * c-typeprint.c (c_type_print_varspec_suffix): Added
9763 check for not yet resolved high bound. If unresolved, print
9764 "variable length" string to the console instead of random
9765 length.
9766
bcd629a4
SA
97672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9768
9769 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9770 (ada_template_to_fixed_record_type_1): Likewise.
9771 (ada_to_fixed_type_1): Likewise.
9772 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9773 (cp_print_value): Likewise.
9774 * d-valprint.c (dynamic_array_type): Likewise.
9775 * eval.c (evaluate_subexp_with_coercion): Likewise.
9776 * findvar.c (address_of_variable): Likewise.
9777 * jv-valprint.c (java_value_print): Likewise.
9778 * valops.c (value_ind): Likewise.
9779 * value.c (coerce_ref): Likewise.
9780
04b19544
SA
97812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9782
9783 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9784 value and retrieve the dynamic type size.
9785
26cb189f
SA
97862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9787
9788 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9789 passed to sizeof is dynamic evaluate the argument to compute the length.
9790
37c1ab67
SA
97912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9792
9793 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9794 (dwarf2_evaluate_property): New function.
9795 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9796 * dwarf2read.c (attr_to_dynamic_prop): New function.
9797 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9798 attribute.
9799 * gdbtypes.c: Include dwarf2loc.h.
9800 (is_dynamic_type): New function.
9801 (resolve_dynamic_type): New function.
9802 (resolve_dynamic_bounds): New function.
9803 (get_type_length): New function.
9804 (check_typedef): Use get_type_length to compute type length.
9805 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9806 (TYPE_LOW_BOUND_KIND): New macro.
9807 (is_dynamic_type): New function prototype.
9808 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9809 to resolve dynamic properties of the type. Update comment.
9810 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9811
729efb13
SA
98122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9813
9814 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9815 declaring high/low bounds and change uses accordingly. Call
9816 create_range_type instead of create_static_range_type.
9817 * gdbtypes.c (create_range_type): New function.
9818 (create_range_type): Convert bounds into struct bound_prop and pass
9819 them to create_range_type.
9820 * gdbtypes.h (struct bound_prop): New struct.
9821 (create_range_type): New function prototype.
9822 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9823 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9824 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9825 part of the bound.
9826 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9827
0c9c3474
SA
98282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9829
9830 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9831 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9832 * ada-lang.c: All uses of create_range_type updated.
9833 * coffread.c: All uses of create_range_type updated.
9834 * dwarf2read.c: All uses of create_range_type updated.
9835 * f-exp.y: All uses of create_range_type updated.
9836 * m2-valprint.c: All uses of create_range_type updated.
9837 * mdebugread.c: All uses of create_range_type updated.
9838 * stabsread.c: All uses of create_range_type updated.
9839 * valops.c: All uses of create_range_type updated.
9840 * valprint.c: All uses of create_range_type updated.
9841
9d497a19
PA
98422014-04-10 Pedro Alves <palves@redhat.com>
9843
9844 * breakpoint.c (single_step_breakpoints)
9845 (single_step_gdbarch): Move up in the file.
9846 (one_breakpoint_xfer_memory): New function, factored out from ...
9847 (breakpoint_xfer_memory): ... here. Also process single-step
9848 breakpoints.
9849
15a9128a
TG
98502014-04-09 Tristan Gingold <gingold@adacore.com>
9851
9852 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9853 comments.
9854 (darwin_decode_exception_message): Free port only after use.
9855
9c97a070
PL
98562014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9857
9858 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9859 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9860 when setting the size of call_length.
9861
7af389b8
SC
98622014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9863
9864 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9865 dereference TYPE_CODE_REF values.
9866
86ad98c3
JB
98672014-04-07 Joel Brobecker <brobecker@adacore.com>
9868
9869 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9870 end of warning message.
9871
b0aeadb3
DE
98722014-04-03 Doug Evans <dje@google.com>
9873
9874 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9875 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9876
5979d6b6
AM
98772014-04-02 Alan Modra <amodra@gmail.com>
9878
9879 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9880 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9881 (struct symbol_file_add_from_memory_args): Add size field.
9882 (find_vdso_size): New function.
9883 (add_vsyscall_page): Attempt to find vdso size.
9884
0d60c288
DE
98852014-04-01 Doug Evans <dje@google.com>
9886
9887 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9888
a41f2563
TG
98892014-04-01 Tristan Gingold <gingold@adacore.com>
9890
9891 * darwin-nat.c (darwin_encode_reply): Add prototype.
9892 (darwin_decode_exception_message): Reply to unknown inferiors.
9893 (darwin_decode_message): Handle message by id. Ignore message
9894 to unknown inferior.
9895 (darwin_wait): Discard unknown messages, add debug trace.
9896
11a865c8
DE
98972014-03-31 Doug Evans <dje@google.com>
9898
9899 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9900 comp_dir_string.
9901
770e7fc7
DE
99022014-03-31 Doug Evans <dje@google.com>
9903
9904 New option "set print symbol-loading".
9905 * NEWS: Mention it.
9906 * solib.c (solib_read_symbols): Only print symbol loading messages
9907 if requested.
9908 (solib_add): If symbol loading is in "brief" mode, notify user
9909 symbols are being loaded.
9910 (reload_shared_libraries_1): Ditto.
9911 * symfile.c (print_symbol_loading_off): New static global.
9912 (print_symbol_loading_brief): New static global.
9913 (print_symbol_loading_full): New static global.
9914 (print_symbol_loading_enums): New static global.
9915 (print_symbol_loading): New static global.
9916 (print_symbol_loading_p): New function.
9917 (symbol_file_add_with_addrs): Only print symbol loading messages
9918 if requested.
9919 (_initialize_symfile): Register "print symbol-loading" set/show
9920 command.
9921 * symfile.h (print_symbol_loading_p): Declare.
9922
c32c64b7
DE
99232014-03-30 Doug Evans <xdje42@gmail.com>
9924
9925 * infrun.c (set_last_target_status): New function.
9926 (handle_inferior_event): Call it.
9927
7c0bc051
DE
99282014-03-30 Doug Evans <xdje42@gmail.com>
9929
9930 * inferior.h (enum stop_kind): Improve comment.
9931
8776cfe9
JB
99322014-03-28 Joel Brobecker <brobecker@adacore.com>
9933
9934 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9935 a reference, strip the reference layer before calling
9936 the lang_ops value_has_mutated callback.
9937
410a0ff2
SDJ
99382014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9939
9940 Remove some globals from our parser.
9941 * language.c (unk_lang_parser): Add "struct parser_state"
9942 argument.
9943 * language.h (struct language_defn) <la_parser>: Likewise.
9944 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9945 (initialize_expout): Add "struct parser_state" argument.
9946 Rewrite function to use the parser state.
9947 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9948 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9949 write_exp_elt_longcst, write_exp_elt_dblcst,
9950 write_exp_elt_decfloatcst, write_exp_elt_type,
9951 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9952 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9953 write_dollar_variable): Likewise.
9954 (parse_exp_in_context_1): Use parser state.
9955 (insert_type_address_space): Add "struct parser_state" argument.
9956 Use parser state.
9957 (increase_expout_size): New function.
9958 * parser-defs.h: Forward declare "struct language_defn" and
9959 "struct parser_state".
9960 (expout, expout_size, expout_ptr): Remove extern declarations.
9961 (parse_gdbarch, parse_language): Rewrite macro declarations to
9962 accept the parser state.
9963 (struct parser_state): New struct.
9964 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9965 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9966 write_exp_elt_decfloatcst, write_exp_elt_type,
9967 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9968 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9969 write_exp_msymbol, write_dollar_variable,
9970 mark_struct_expression, insert_type_address_space): Add "struct
9971 parser_state" argument.
9972 (increase_expout_size): New function.
9973 * utils.c (do_clear_parser_state): New function.
9974 (make_cleanup_clear_parser_state): Likewise.
9975 * utils.h (make_cleanup_clear_parser_state): New function
9976 prototype.
9977 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9978 Update calls to write_exp* in order to pass the parser state.
9979 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9980 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9981 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9982 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9983 * stap-probe.c (stap_parse_register_operand): Likewise.
9984 (stap_parse_single_operand): Likewise.
9985 (stap_parse_argument_1): Likewise.
9986 (stap_parse_argument): Use parser state.
9987 * stap-probe.h: Include "parser-defs.h".
9988 (struct stap_parse_info) <pstate>: New field.
9989 * c-exp.y (parse_type): Rewrite to use parser state.
9990 (yyparse): Redefine to c_parse_internal.
9991 (pstate): New global variable.
9992 (parse_number): Add "struct parser_state" argument.
9993 (write_destructor_name): Likewise.
9994 (type_exp): Update calls to write_exp* and similars in order to
9995 use parser state.
9996 (exp1, exp, variable, qualified_name, space_identifier,
9997 typename, typebase): Likewise.
9998 (write_destructor_name, parse_number, lex_one_token,
9999 classify_name, classify_inner_name, c_parse): Add "struct
10000 parser_state" argument. Update function to use parser state.
10001 * c-lang.h: Forward declare "struct parser_state".
10002 (c_parse): Add "struct parser_state" argument.
10003 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10004 (yyparse): Redefine macro to ada_parse_internal.
10005 (pstate): New variable.
10006 (write_int, write_object_renaming, write_var_or_type,
10007 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10008 type_int, type_long, type_long_long, type_float, type_double,
10009 type_long_double, type_char, type_boolean, type_system_address):
10010 Add "struct parser_state" argument.
10011 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10012 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10013 var_or_type, aggregate, aggregate_component_list,
10014 positional_list, others, component_group,
10015 component_associations): Update calls to write_exp* and similar
10016 functions in order to use parser state.
10017 (ada_parse, write_var_from_sym, write_int,
10018 write_exp_op_with_string, write_object_renaming,
10019 find_primitive_type, write_selectors, write_ambiguous_var,
10020 write_var_or_type, write_name_assoc, type_int, type_long,
10021 type_long_long, type_float, type_double, type_long_double,
10022 type_char, type_boolean, type_system_address): Add "struct
10023 parser_state" argument. Adjust function to use parser state.
10024 * ada-lang.c (parse): Likewise.
10025 * ada-lang.h: Forward declare "struct parser_state".
10026 (ada_parse): Add "struct parser_state" argument.
10027 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10028 calls to both functions.
10029 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10030 parser state.
10031 (yyparse): Redefine macro to f_parse_internal.
10032 (pstate): New variable.
10033 (parse_number): Add "struct parser_state" argument.
10034 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10035 and similars in order to use parser state.
10036 (parse_number): Adjust code to use parser state.
10037 (yylex): Likewise.
10038 (f_parse): New function.
10039 * f-lang.h: Forward declare "struct parser_state".
10040 (f_parse): Add "struct parser_state" argument.
10041 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10042 parser state.
10043 (yyparse): Redefine macro for java_parse_internal.
10044 (pstate): New variable.
10045 (push_expression_name, push_expression_name, insert_exp): Add
10046 "struct parser_state" argument.
10047 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10048 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10049 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10050 PostIncrementExpression, PostDecrementExpression,
10051 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10052 UnaryExpressionNotPlusMinus, CastExpression,
10053 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10054 RelationalExpression, EqualityExpression, AndExpression,
10055 ExclusiveOrExpression, InclusiveOrExpression,
10056 ConditionalAndExpression, ConditionalOrExpression,
10057 ConditionalExpression, Assignment, LeftHandSide): Update
10058 calls to write_exp* and similars in order to use parser state.
10059 (parse_number): Ajust code to use parser state.
10060 (yylex): Likewise.
10061 (java_parse): New function.
10062 (push_variable): Add "struct parser_state" argument. Adjust
10063 code to user parser state.
10064 (push_fieldnames, push_qualified_expression_name,
10065 push_expression_name, insert_exp): Likewise.
10066 * jv-lang.h: Forward declare "struct parser_state".
10067 (java_parse): Add "struct parser_state" argument.
10068 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10069 parser state.
10070 (yyparse): Redefine macro to m2_parse_internal.
10071 (pstate): New variable.
10072 (type_exp, exp, fblock, variable, type): Update calls to
10073 write_exp* and similars to use parser state.
10074 (yylex): Likewise.
10075 (m2_parse): New function.
10076 * m2-lang.h: Forward declare "struct parser_state".
10077 (m2_parse): Add "struct parser_state" argument.
10078 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10079 * objc-lang.h: Forward declare "struct parser_state".
10080 (end_msglist): Add "struct parser_state" argument.
10081 * p-exp.y (parse_type): Rewrite macro to use parser state.
10082 (yyparse): Redefine macro to pascal_parse_internal.
10083 (pstate): New variable.
10084 (parse_number): Add "struct parser_state" argument.
10085 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10086 write_exp* and similars in order to use parser state.
10087 (parse_number, yylex): Adjust code to use parser state.
10088 (pascal_parse): New function.
10089 * p-lang.h: Forward declare "struct parser_state".
10090 (pascal_parse): Add "struct parser_state" argument.
10091 * go-exp.y (parse_type): Rewrite macro to use parser state.
10092 (yyparse): Redefine macro to go_parse_internal.
10093 (pstate): New variable.
10094 (parse_number): Add "struct parser_state" argument.
10095 (type_exp, exp1, exp, variable, type): Update calls to
10096 write_exp* and similars in order to use parser state.
10097 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10098 to use parser state.
10099 (go_parse): Likewise.
10100 * go-lang.h: Forward declare "struct parser_state".
10101 (go_parse): Add "struct parser_state" argument.
10102
342587c4
DE
101032014-03-27 Doug Evans <dje@google.com>
10104
10105 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10106
33e80786
DE
101072014-03-27 Doug Evans <dje@google.com>
10108
10109 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10110 Remove argument abbrev_section. All callers updated.
10111
1dbab08b
DE
101122014-03-27 Doug Evans <dje@google.com>
10113
10114 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10115 addr_base, ranges_base.
10116
318d3177
KS
101172014-03-26 Keith Seitz <keiths@redhat.com>
10118
10119 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10120 types, not VAR_DOMAIN.
10121
1e54db15
SL
101222014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10123
10124 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10125 "ra" registers.
10126 * features/nios2-linux.c: Regenerated.
10127 * features/nios2.c: Regenerated.
10128
d3839ede
PA
101292014-03-25 Pedro Alves <palves@redhat.com>
10130
10131 * cli/cli-script.c (script_from_file): Force the interpreter to
10132 sync mode.
10133
7588d2ec
PL
101342014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10135
10136 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10137 small stack allocation.
10138
a6290449
TG
101392014-03-24 Tristan Gingold <gingold@adacore.com>
10140
10141 * darwin-nat.c (exc_server): Remove unused prototype.
10142 (darwin_dump_message): Correctly display data on x86_64.
10143 (darwin_encode_reply): Fix style.
10144 Add comments and fix indentation.
10145
31ae9d24 101462014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10147
10148 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10149
6339bfc4
DE
101502014-03-22 Doug Evans <xdje42@gmail.com>
10151
10152 * infcmd.c: Whitespace fixes.
10153 (interrupt_command): Merge two function comments into one.
10154
0a07590b
DE
101552014-03-22 Doug Evans <xdje42@gmail.com>
10156
10157 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10158 All uses updated.
10159
b55fbac4
YQ
101602014-03-22 Yao Qi <yao@codesourcery.com>
10161
10162 * remote.c (target_read_live_memory): Remove.
10163 (memory_xfer_live_readonly_partial): Rename it to
10164 remote_xfer_live_readonly_partial. Remove argument 'object'.
10165 All callers updated. Call remote_read_bytes_1
10166 instead of target_read_live_memory.
10167 * tracepoint.c (set_traceframe_number): Remove.
10168 (make_cleanup_restore_traceframe_number): Likewise .
10169 * tracepoint.h (set_traceframe_number): Remove declaration.
10170 (make_cleanup_restore_traceframe_number): Likewise.
10171
9217e74e
YQ
101722014-03-22 Yao Qi <yao@codesourcery.com>
10173
10174 * remote.c (remote_read_bytes): Move code on reading from the
10175 remote stub to ...
10176 (remote_read_bytes_1): ... here. New function.
10177
8acf9577
YQ
101782014-03-22 Yao Qi <yao@codesourcery.com>
10179
10180 * ctf.c (ctf_xfer_partial): Check the return value of
10181 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10182 return TARGET_XFER_UNAVAILABLE.
10183 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10184 * target.c (target_read_live_memory): Move it to remote.c.
10185 (memory_xfer_live_readonly_partial): Likewise.
10186 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10187 * remote.c (target_read_live_memory): Moved from target.c.
10188 (memory_xfer_live_readonly_partial): Likewise.
10189 (remote_read_bytes): Factored out from
10190 memory_xfer_partial_1.
10191
feef67ab
DE
101922014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10193
10194 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10195 NULL pointer.
10196
b65dc60b
PA
101972014-03-21 Pedro Alves <palves@redhat.com>
10198
10199 * infrun.c (normal_stop): Extend comment.
10200
b4ab256d
HZ
102012014-03-21 Hui Zhu <hui@codesourcery.com>
10202 Pedro Alves <palves@redhat.com>
10203
10204 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10205 static buffer.
10206 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10207 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10208 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10209
deba7593
MR
102102014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10211
10212 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10213 `z' formatted output modifier.
10214
1bff71c3
SDJ
102152014-03-20 Tom Tromey <tromey@redhat.com>
10216 Sergio Durigan Junior <sergiodj@redhat.com>
10217
10218 * probe.c (parse_probes): Turn assert into an ordinary error.
10219 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10220 exceptions when parsing probes. Rearrange the code for clarity.
10221
90e28950
TT
102222014-03-20 Tom Tromey <tromey@redhat.com>
10223
10224 PR gdb/14135
10225 * top.c (execute_command): Only dispatch events if the command
10226 started the target.
10227
beb460e8
PA
102282014-03-20 Tom Tromey <tromey@redhat.com>
10229
10230 PR cli/15718
10231 * infcall.c: Include event-top.h.
10232 (run_inferior_call): Call async_disable_stdin if needed.
10233
99619bea
PA
102342014-03-20 Pedro Alves <palves@redhat.com>
10235
10236 * infrun.c (prepare_to_proceed): Delete.
10237 (thread_still_needs_step_over): New function.
10238 (find_thread_needs_step_over): New function.
10239 (proceed): If the current thread needs a step-over, set its
10240 steping_over_breakpoint flag. Adjust to use
10241 find_thread_needs_step_over instead of prepare_to_proceed.
10242 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10243 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10244 breakpoint.
10245 (switch_back_to_stepped_thread): Step over breakpoints of all
10246 threads not the stepping thread, before switching back to the
10247 stepping thread.
10248
2adfaa28
PA
102492014-03-20 Pedro Alves <palves@redhat.com>
10250
10251 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10252 extern.
10253 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10254 * infrun.c (saved_singlestep_ptid)
10255 (stepping_past_singlestep_breakpoint): Delete.
10256 (resume): Remove stepping_past_singlestep_breakpoint handling.
10257 (proceed): Store the prev_pc of the stepping thread too.
10258 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10259 singlestep_pc.
10260 (enum infwait_states): Delete infwait_thread_hop_state.
10261 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10262 field.
10263 (handle_inferior_event): Adjust.
10264 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10265 handling and the thread-hop code. Before removing single-step
10266 breakpoints, check whether the thread hit a single-step breakpoint
10267 of another thread. If it did, the trap is not a random signal.
10268 (switch_back_to_stepped_thread): If the event thread hit a
10269 single-step breakpoint, unblock it before switching to the
10270 stepping thread. Handle the case of the stepped thread having
10271 advanced already.
10272 (keep_going): Handle the case of the current thread moving past a
10273 single-step breakpoint.
10274
31e77af2
PA
102752014-03-20 Pedro Alves <palves@redhat.com>
10276
10277 PR breakpoints/7143
10278 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10279 are being stepped over.
10280 (breakpoint_address_match): Make extern.
10281 * breakpoint.h (breakpoint_address_match): New declaration.
10282 * inferior.h (stepping_past_instruction_at): New declaration.
10283 * infrun.c (struct step_over_info): New type.
10284 (step_over_info): New global.
10285 (set_step_over_info, clear_step_over_info)
10286 (stepping_past_instruction_at): New functions.
10287 (handle_inferior_event): Clear the step-over info when
10288 trap_expected is cleared.
10289 (resume): Remove now stale comment.
10290 (clear_proceed_status): Clear step-over info.
10291 (proceed): Adjust step-over handling to set or clear the step-over
10292 info instead of removing all breakpoints.
10293 (handle_signal_stop): When setting up a thread-hop, don't remove
10294 breakpoints here.
10295 (stop_stepping): Clear step-over info.
10296 (keep_going): Adjust step-over handling to set or clear step-over
10297 info and then always inserting breakpoints, instead of removing
10298 all breakpoints when stepping over one.
10299
b9f437de
PA
103002014-03-20 Pedro Alves <palves@redhat.com>
10301
10302 * infrun.c (previous_inferior_ptid): Adjust comment.
10303 (deferred_step_ptid): Delete.
10304 (infrun_thread_ptid_changed, prepare_to_proceed)
10305 (init_wait_for_inferior): Adjust.
10306 (handle_signal_stop): Delete deferred_step_ptid handling.
10307
06c868a8
JK
103082014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 PR gdb/15358
10311 * defs.h (sync_quit_force_run): New declaration.
10312 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10313 * event-top.c (async_sigterm_handler): New declaration.
10314 (async_sigterm_token): New variable.
10315 (async_init_signals): Create also async_sigterm_token.
10316 (async_sigterm_handler): New function.
10317 (sync_quit_force_run): New variable.
10318 (handle_sigterm): Replace quit_force call by other calls.
10319 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10320
dea80df0
MR
103212014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10322
10323 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10324 offset into SPE pseudo registers.
10325
0c7e1a46
PA
103262014-03-18 Pedro Alves <palves@redhat.com>
10327
10328 PR gdb/13860
10329 * inferior.h (print_stop_event): Declare.
10330 * infrun.c (print_stop_event): New, factored out from ...
10331 (normal_stop): ... this.
10332 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10333 of bpstat_print/print_stack_frame.
10334
9c1fcd01
TT
103352014-03-17 Tom Tromey <tromey@redhat.com>
10336
10337 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10338
11aa919a
PMR
103392014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10340
10341 * ada-lang.c (decode_constrained_packed_array): Perform a
10342 minimal coercion for reference with coerce_ref instead of
10343 ada_coerce_ref.
10344
d4ccb5e0
TG
103452014-03-17 Tristan Gingold <gingold@adacore.com>
10346
10347 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10348 (darwin_solib_create_inferior_hook): Emit a warning if version
10349 is unhandled.
10350
49840f2a
UW
103512014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10352
10353 * python/py-value.c (get_field_flag): Cast flag_name argument to
10354 PyObject_GetAttrString to support Python 2.4.
10355
ed4123e5
JK
103562014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10357
10358 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10359 (Global Maintainers): Remove Jan Kratochvil.
10360
d6b64346
PA
103612014-03-14 Pedro Alves <palves@redhat.com>
10362
10363 * inferior.h (terminal_ours_for_output): Rename to ...
10364 (child_terminal_ours_for_output): ... this.
10365 (terminal_save_ours): Rename to ...
10366 (child_terminal_save_ours): ... this.
10367 (terminal_ours): Rename to ...
10368 (child_terminal_ours): ... this.
10369 (terminal_inferior): Rename to ...
10370 (child_terminal_inferior): ... this.
10371 (terminal_init_inferior): Rename to ...
10372 (child_terminal_init_inferior): ... this.
10373 (terminal_init_inferior_with_pgrp): Rename to ...
10374 (child_terminal_init_inferior_with_pgrp): ... this.
10375 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10376 (child_terminal_init_with_pgrp): ... this.
10377 (terminal_save_ours): Rename to ...
10378 (child_terminal_save_ours): ... this.
10379 (terminal_init_inferior): Rename to ...
10380 (child_terminal_init): ... this. Adjust.
10381 (terminal_inferior): Rename to ...
10382 (child_terminal_inferior): ... this.
10383 (terminal_ours_for_output): Rename to ...
10384 (child_terminal_ours_for_output): ... this. Adjust.
10385 (terminal_ours): Rename to ...
10386 (child_terminal_ours): ... this.
10387 (terminal_ours_1): Rename to ...
10388 (child_terminal_ours_1): ... this. Adjust.
10389 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10390 * windows-nat.c (do_initial_windows_stuff): Adjust.
10391 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10392 (gnu_terminal_init): ... this. Adjust.
10393 (gnu_target): Adjust.
10394 * inf-child.c (inf_child_target): Adjust.
10395
5a1e8c7a
DE
103962014-03-13 Doug Evans <xdje42@gmail.com>
10397
10398 PR guile/16612
10399 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10400 new eq?-hashtab.
10401
350e1a76
DE
104022014-03-13 Doug Evans <xdje42@gmail.com>
10403
10404 * value.c (record_latest_value): Call release_value_or_incref
10405 instead of release_value.
10406
a69900ae
PA
104072014-03-13 Pedro Alves <palves@redhat.com>
10408
10409 * procfs.c (procfs_target): Don't override to_shortname,
10410 to_longname or to_doc.
10411
5db9f0bd
PA
104122014-03-13 Pedro Alves <palves@redhat.com>
10413
10414 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10415 Unix in user visible strings.
10416
5e3a2c38
SS
104172014-03-12 Stan Shebs <stan@codesourcery.com>
10418
10419 * gdbtypes.h: Annotate comments for Doxygen, add a page
10420 block comment with some general info.
10421
8bc2fe48
PA
104222014-03-12 Pedro Alves <palves@redhat.com>
10423
10424 * infcmd.c (prepare_execution_command): New function, factored out
10425 from several execution commands.
10426 (run_command_1, continue_command, step_1, jump_command)
10427 (signal_command, until_command, advance_command, finish_command)
10428 (attach_command): Use prepare_execution_command.
10429
638c5f49
OJ
104302014-03-12 Omair Javaid <omair.javaid@linaro.org>
10431
10432 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10433 (MAX_BPTS): Define.
10434 (MAX_WPTS): Define.
10435 (struct arm_linux_thread_points): Removed.
10436 (struct arm_linux_process_info): New.
10437 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10438 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10439 (arm_linux_find_breakpoints_by_tid): Removed.
10440 (struct arch_lwp_info): New.
10441 (arm_linux_find_process_pid): New functions.
10442 (arm_linux_add_process): New functions.
10443 (arm_linux_process_info_get): New functions.
10444 (arm_linux_forget_process): New function.
10445 (arm_linux_get_debug_reg_state): New function.
10446 (struct update_registers_data): New.
10447 (update_registers_callback): New function.
10448 (arm_linux_insert_hw_breakpoint1): Updated.
10449 (arm_linux_remove_hw_breakpoint1): Updated.
10450 (arm_linux_insert_hw_breakpoint): Updated.
10451 (arm_linux_remove_hw_breakpoint): Updated.
10452 (arm_linux_insert_watchpoint): Updated.
10453 (arm_linux_remove_watchpoint): Updated.
10454 (arm_linux_new_thread): Updated.
10455 (arm_linux_prepare_to_resume): New function.
10456 (arm_linux_new_fork): New function.
10457 (_initialize_arm_linux_nat): Updated.
10458
6d03af93
PA
104592014-03-12 Pedro Alves <palves@redhat.com>
10460
10461 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10462
b3ccfe11
TT
104632014-03-12 Tom Tromey <tromey@redhat.com>
10464
10465 * inf-child.c (return_zero): New function.
10466 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10467 * aix-thread.c (aix_thread_inferior_created): New function.
10468 (aix_thread_attach): Remove.
10469 (init_aix_thread_ops): Don't set to_attach.
10470 (_initialize_aix_thread): Register inferior_created observer.
10471 * corelow.c (init_core_ops): Don't set to_attach or
10472 to_create_inferior.
10473 * exec.c (init_exec_ops): Don't set to_attach or
10474 to_create_inferior.
10475 * infcmd.c (run_command_1): Use find_run_target. Make direct
10476 target calls.
10477 (attach_command): Use find_attach_target. Make direct target
10478 calls.
10479 * record-btrace.c (init_record_btrace_ops): Don't set
10480 to_create_inferior.
10481 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10482 Remove.
10483 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10484 set to_create_inferior.
10485 * target.c (complete_target_initialization): Add assertion.
10486 (target_create_inferior): Remove.
10487 (find_default_attach, find_default_create_inferior): Remove.
10488 (find_attach_target, find_run_target): New functions.
10489 (find_default_is_async_p, find_default_can_async_p)
10490 (target_supports_non_stop, target_attach): Remove.
10491 (init_dummy_target): Don't set to_create_inferior or
10492 to_supports_non_stop.
10493 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10494 TARGET_DEFAULT_FUNC.
10495 <to_create_inferior>: Add comment.
10496 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10497 TARGET_DEFAULT_RETURN.
10498 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10499 (find_attach_target, find_run_target): Declare.
10500 (target_create_inferior): Remove.
10501 (target_has_execution_1): Update comment.
10502 (target_supports_non_stop): Remove.
10503 * target-delegates.c: Rebuild.
10504
91f83b02
PA
105052014-03-12 Pedro Alves <palves@redhat.com>
10506
10507 * inf-child.h: Update comment to not mention Unix.
10508
f1aea813
PA
105092014-03-12 Pedro Alves <palves@redhat.com>
10510
10511 * inf-child.c: Update top comment to not mention Unix. Add
10512 generic comment describing how this target is meant to be used.
10513 (inf_child_post_attach, inf_child_post_startup_inferior)
10514 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10515 Unix in comment.
10516
ee8e9165
PA
105172014-03-12 Pedro Alves <palves@redhat.com>
10518
10519 * nto-procfs.c: Include inf-child.h.
10520 (procfs_ops): Delete global.
10521 (procfs_can_run): Delete method.
10522 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10523 target pointer instead of referencing procfs_ops.
10524 (procfs_prepare_to_store): Delete.
10525 (init_procfs_ops): Delete function.
10526 (procfs_target): New function, based on init_procfs_ops, but
10527 inherit inf_child_target.
10528 (_initialize_procfs): Use procfs_target.
10529
51a9c8c5
PA
105302014-03-12 Pedro Alves <palves@redhat.com>
10531
10532 * windows-nat.c: Include inf-child.h.
10533 (windows_ops): Delete global.
10534 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10535 methods.
10536 (init_windows_ops): Delete function.
10537 (windows_target): New function, based on init_windows_ops, but
10538 inherit inf_child_target.
10539 (_initialize_windows_nat): Use windows_target. Install x86
10540 specific target methods here.
10541
c1966e26
DE
105422014-03-10 Doug Evans <xdje42@gmail.com>
10543
10544 * guile/guile.c (call_initialize_gdb_module): New function.
10545 (initialize_guile): Replace call to scm_init_guile with call to
10546 scm_with_guile.
10547
023db19c
JB
105482014-03-10 Joel Brobecker <brobecker@adacore.com>
10549
10550 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10551 in call to TYPE_CODE macro.
10552
5ec18f2b
JG
105532014-03-10 Jerome Guitton <guitton@adacore.com>
10554
8668be63
JB
10555 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10556 Resolve tagged types to full view.
5ec18f2b 10557
7d03f2eb
HZ
105582014-03-10 Hui Zhu <hui@codesourcery.com>
10559
10560 * target.h (target_insert_breakpoint): Remove "hardware" from its
10561 comments.
10562
c5164cbc
DE
105632014-03-07 Doug Evans <dje@google.com>
10564
10565 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10566
c4a3fee2
DE
105672014-03-07 Doug Evans <dje@google.com>
10568
10569 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10570 Remove unused local comp_dir_attr. Assert exactly one of
10571 stub_comp_unit_die, stub_comp_dir is non-NULL.
10572
3156469c
JB
105732014-03-07 Joel Brobecker <brobecker@adacore.com>
10574
10575 * target.h (complete_target_initialization, add_target):
10576 Add comment.
10577
c1a7b7c6
PA
105782014-03-07 Pedro Alves <palves@redhat.com>
10579
10580 * go32-nat.c: Include inf-child.h.
10581 (go32_ops): Delete global.
10582 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10583 Delete methods.
10584 (go32_create_inferior): Push the passed in target pointer instead
10585 of referencing go32_ops.
10586 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10587 (go32_target): New function, based on init_go32_ops, but inherit
10588 inf_child_target.
10589 (_initialize_go32_nat): Use go32_target. Move parts of
10590 init_go32_ops here.
10591
d3c1a85f
JB
105922014-03-06 Joel Brobecker <brobecker@adacore.com>
10593
10594 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10595 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10596 SYMBOL_VALUE_ADDRESS.
10597 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10598
5fa1d40e
YQ
105992014-03-06 Yao Qi <yao@codesourcery.com>
10600
10601 * breakpoint.c (get_tracepoint_by_number): Remove argument
10602 optional_p. All callers updated. Adjust comments. Update
10603 output message.
10604 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10605
0c13193f
YQ
106062014-03-06 Yao Qi <yao@codesourcery.com>
10607
10608 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10609 early if get_number returns zero. Use 'p' instead of 'args'.
10610
2217da06
YQ
106112014-03-06 Yao Qi <yao@codesourcery.com>
10612
10613 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10614 message.
10615
cc3da688
YQ
106162014-03-06 Yao Qi <yao@codesourcery.com>
10617
10618 PR breakpoints/16508
10619 * tracepoint.c (check_trace_running): New function.
10620 (trace_find_command): Move code to check_trace_running and
10621 call check_trace_running.
10622 (trace_find_pc_command): Likewise.
10623 (trace_find_tracepoint_command): Likewise.
10624 (trace_find_line_command): Likewise.
10625 (trace_find_range_command): Likewise.
10626 * tracepoint.h (check_trace_running): Likewise.
10627 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10628
6a5f844b
YQ
106292014-03-06 Yao Qi <yao@codesourcery.com>
10630
10631 * target.h (struct target_ops) <to_traceframe_info>: Use
10632 TARGET_DEFAULT_NORETURN (tcomplain ()).
10633 * target-delegates.c: Regenerated.
10634
0f26cec1
PA
106352014-03-05 Pedro Alves <palves@redhat.com>
10636
10637 PR gdb/16575
10638 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10639 void. Update comment.
10640 (dcache_xfer_memory): Delete.
10641 (dcache_read_memory_partial): New, based on the read bits of
10642 dcache_xfer_memory.
10643 (dcache_update): Add status parameter. Use ULONGEST for len, and
10644 adjust. Discard cache lines if the reason for the update was
10645 error.
10646 * dcache.h (dcache_xfer_memory): Delete declaration.
10647 (dcache_read_memory_partial): New declaration.
10648 (dcache_update): Update prototype.
10649 * target.c (raw_memory_xfer_partial): Update the dcache here.
10650 (memory_xfer_partial_1): Don't handle dcache writes here.
10651
b2b255bd
MF
106522014-03-05 Mike Frysinger <vapier@gentoo.org>
10653
10654 * remote-sim.c (gdbsim_load): Add const to prog.
10655
5d9cf8a4
TT
106562014-03-03 Tom Tromey <tromey@redhat.com>
10657
10658 * elfread.c (probe_key): Change to bfd_data.
10659 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10660 now per-BFD, not per-objfile.
10661 * stap-probe.c (stap_probe_destroy): Update comment.
10662 (handle_stap_probe): Allocate on the per-BFD obstack.
10663
729662a5
TT
106642014-03-03 Tom Tromey <tromey@redhat.com>
10665
10666 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10667 * breakpoint.c (create_longjmp_master_breakpoint): Use
10668 get_probe_address.
10669 (add_location_to_breakpoint, bkpt_probe_insert_location)
10670 (bkpt_probe_remove_location): Update.
10671 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10672 * elfread.c (elf_symfile_relocate_probe): Remove.
10673 (elf_probe_fns): Update.
10674 (insert_exception_resume_breakpoint): Change type of "probe"
10675 parameter to bound_probe.
10676 (check_exception_resume): Update.
10677 * objfiles.c (objfile_relocate1): Don't relocate probes.
10678 * probe.c (bound_probe_s): New typedef.
10679 (parse_probes): Use get_probe_address. Set sal's objfile.
10680 (find_probe_by_pc): Return a bound_probe.
10681 (collect_probes): Return a VEC(bound_probe_s).
10682 (compare_probes): Update.
10683 (gen_ui_out_table_header_info): Change type of "probes"
10684 parameter. Update.
10685 (info_probes_for_ops): Update.
10686 (get_probe_address): New function.
10687 (probe_safe_evaluate_at_pc): Update.
10688 * probe.h (struct probe_ops) <get_probe_address>: New field.
10689 <set_semaphore, clear_semaphore>: Add objfile parameter.
10690 (struct probe) <objfile>: Remove field.
10691 <arch>: New field.
10692 <address>: Update comment.
10693 (struct bound_probe): New.
10694 (find_probe_by_pc): Return a bound_probe.
10695 (get_probe_address): Declare.
10696 * solib-svr4.c (struct probe_and_action) <address>: New field.
10697 (hash_probe_and_action, equal_probe_and_action): Update.
10698 (register_solib_event_probe): Add address parameter.
10699 (solib_event_probe_at): Update.
10700 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10701 get_probe_address.
10702 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10703 (stap_get_probe_address): New function.
10704 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10705 (compile_probe_arg): Update.
10706 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10707 address.
10708 (handle_stap_probe): Don't relocate the probe.
10709 (stap_relocate): Remove.
10710 (stap_gen_info_probes_table_values): Update.
10711 (stap_probe_ops): Remove stap_relocate.
10712 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10713 (debug_sym_probe_fns): Update.
10714 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10715 * symtab.c (init_sal): Use memset.
10716 * symtab.h (struct symtab_and_line) <objfile>: New field.
10717 * tracepoint.c (start_tracing, stop_tracing): Update.
10718
ff887920
TT
107192014-03-03 Tom Tromey <tromey@redhat.com>
10720
10721 * probe.h (parse_probes, find_probe_by_pc)
10722 (find_probes_in_objfile): Fix comments.
10723
f0407826
DE
107242014-03-02 Doug Evans <xdje42@gmail.com>
10725
10726 * infrun.c (handle_signal_stop): Replace test for
10727 TARGET_WAITKIND_STOPPED with an assert.
10728
35e6a711
DE
107292014-03-02 Doug Evans <xdje42@gmail.com>
10730
10731 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10732
667f9d0b
DE
107332014-03-02 Doug Evans <xdje42@gmail.com>
10734
10735 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10736
dc92ace0
MK
107372014-03-01 Mark Kettenis <kettenis@gnu.org>
10738
10739 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10740
a900370f
MK
107412014-03-01 Mark Kettenis <kettenis@gnu.org>
10742
10743 * i386obsd-nat.c: Include "obsd-nat.h".
10744 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10745 add_target.
10746 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10747
b72a7981
MK
107482014-03-01 Mark Kettenis <kettenis@gnu.org>
10749
10750 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10751
96c70aba
MK
107522014-03-01 Mark Kettenis <kettenis@gnu.org>
10753
10754 * mips64obsd-nat.c: Include "obsd-nath".
10755 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10756 add_target
10757 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10758
874a80af
MK
107592014-03-01 Mark Kettenis <kettenis@gnu.org>
10760
8fd408f1
MK
10761 * amd64obsd-nat.c: Include "obsd-nat,h.
10762 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10763 add_target.
874a80af
MK
10764 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10765
9cf95373
SC
107662014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10767
10768 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10769 (find_overload_match): Update call to find_oload_champ.
10770 (find_oload_champ_namespace_loop): Likewise
10771
863e4da4
MK
107722014-02-28 Mark Kettenis <kettenis@gnu.org>
10773
025cac40
MK
10774 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10775
1ed586ce
MK
10776 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10777 * config/sparc/obsd64.mh: New file.
10778 * sparc64obsd-nat.c: New file.
10779
863e4da4
MK
10780 * obsd-nat.h: New file.
10781 * obsd-nat.c: New file.
10782 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10783 (ALLDEPFILES): Add obsd-nat.c.
10784
89de4da4
TT
107852014-02-28 Tom Tromey <tromey@redhat.com>
10786
10787 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10788 * cli-out.h (cli_ui_out_impl): Now const.
10789 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10790 * ui-out.c (struct ui_out) <impl>: Now const.
10791 (default_ui_out_impl): Now const.
10792 (ui_out_new): Make 'impl' parameter const.
10793 * ui-out.h (ui_out_new): Update.
10794
c725e7b6
MK
107952014-02-27 Mark Kettenis <kettenis@gnu.org>
10796
10797 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10798
670b46b3
MK
107992014-02-27 Mark Kettenis <kettenis@gnu.org>
10800
10801 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10802
c91550fc
JK
108032014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 Additional PR 8882 fix.
10806 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10807
2fa0369e
PA
108082014-02-27 Pedro Alves <palves@redhat.com>
10809
10810 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10811 isn't set.
10812
d632a097
PA
108132014-02-27 Pedro Alves <palves@redhat.com>
10814
10815 PR 12702
10816 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10817 * nat/linux-waitpid.c: Include string.h.
10818 (status_to_str): Moved here and made extern.
10819 * nat/linux-waitpid.h (status_to_str): New declaration.
10820
2ebd5a35
HZ
108212014-02-27 Hui Zhu <hui@codesourcery.com>
10822
10823 PR 12702
10824 * infrun.c (ptid_match): Move ...
10825 * common/ptid.c (ptid_match): ... here.
10826 * inferior.h (ptid_match): Move ...
10827 * common/ptid.h (ptid_match): ... here.
10828
3cdd631f
MK
108292014-02-27 Mark Kettenis <kettenis@gnu.org>
10830
10831 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10832 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10833 gdb_target_obs.
10834
bee30a64
MK
108352014-02-27 Mark Kettenis <kettenis@gnu.org>
10836
10837 * obsd-tdep.c (obsd_auxv_parse): New function.
10838 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10839
10840 * gdbarch.sh (auxv_parse): New.
10841 * gdbarch.h: Regenerated.
10842 * gdbarch.c: Regenerated.
10843 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10844
7a5a839f
LC
108452014-02-26 Ludovic Courtès <ludo@gnu.org>
10846
10847 * guile/scm-value.c (gdbscm_history_append_x): New function.
10848 (value_functions): Add it.
10849
31aa7e4e
JB
108502014-02-27 Joel Brobecker <brobecker@adacore.com>
10851
10852 * dwarf2read.c (attr_value_as_address): New function.
10853 (dwarf2_find_base_address, read_call_site_scope): Use
10854 attr_value_as_address in place of DW_ADDR.
10855 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10856 the low and high addresses. Slight rework of the handling
10857 of the high pc being a constant form, and limit it to
10858 DWARF verson 4 or higher.
10859 (dwarf2_record_block_ranges): Likewise.
10860 (read_partial_die): Likewise.
10861 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10862
9b333ba3
TT
108632014-02-26 Tom Tromey <tromey@redhat.com>
10864
10865 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10866
5f6cac40
TT
108672014-02-26 Tom Tromey <tromey@redhat.com>
10868
10869 * elfread.c (elf_read_minimal_symbols): Return early if
10870 minimal symbols have already been read. Add "ei" parameter.
10871 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10872 * minsyms.c (prim_record_minimal_symbol_full): Update.
10873 * objfiles.h (struct objstats) <n_minsyms>: Move...
10874 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10875 * symmisc.c (print_objfile_statistics): Update.
10876
2750ef27
TT
108772014-02-26 Tom Tromey <tromey@redhat.com>
10878
10879 * elfread.c (elf_read_minimal_symbols): New function, from
10880 elf_symfile_read.
10881 (elf_symfile_read): Call it.
10882
34643a32
TT
108832014-02-26 Tom Tromey <tromey@redhat.com>
10884
10885 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10886 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10887 (lookup_minimal_symbol_solib_trampoline)
10888 (lookup_minimal_symbol_by_pc_section_1)
10889 (lookup_minimal_symbol_and_objfile): Update.
10890 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10891 Don't allocate a minimal symbol if minsyms have already been read.
10892 (build_minimal_symbol_hash_tables): Update.
10893 (install_minimal_symbols): Do nothing if minsyms already read.
10894 Use the per-BFD obstack.
10895 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10896 * objfiles.c (allocate_objfile): Call
10897 terminate_minimal_symbol_table later.
10898 (have_minimal_symbols): Update.
10899 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10900 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10901 Move from struct objfile.
10902 <minsyms_read>: New field.
10903 (struct objfile) <msymbols, minimal_symbol_count,
10904 msymbol_hash, msymbol_demangled_hash>: Move.
10905 (ALL_OBJFILE_MSYMBOLS): Update.
10906 * symfile.c (read_symbols): Set minsyms_read.
10907 (reread_symbols): Update.
10908 * symmisc.c (dump_objfile, dump_msymbols): Update.
10909
2273f0ac
TT
109102014-02-26 Tom Tromey <tromey@redhat.com>
10911
10912 * minsyms.c (msymbols_sort): Remove.
10913 * minsyms.h (msymbols_sort): Remove.
10914 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10915 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10916 * elfread.c (elf_symtab_read): Don't add section offsets.
10917 * xcoffread.c (record_minimal_symbol): Don't add section offset
10918 to minimal symbol address.
10919 * somread.c (text_offset, data_offset): Remove.
10920 (som_symtab_read): Don't add section offsets to minimal symbol
10921 addresses.
10922 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10923 Don't add section offsets to minimal symbols.
10924 * coffread.c (coff_symtab_read): Don't add section offsets
10925 to minimal symbol addresses.
10926 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10927 to minimal symbol addresses.
10928 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10929 section offset to minimal symbol addresses.
10930 * mdebugread.c (parse_partial_symbols): Don't add section
10931 offset to minimal symbol addresses.
10932 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10933 offset to minimal symbol addresses.
10934
77e371c0
TT
109352014-02-26 Tom Tromey <tromey@redhat.com>
10936
10937 * ada-lang.c (ada_main_name): Update.
10938 (ada_add_standard_exceptions): Update.
10939 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10940 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10941 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10942 * auxv.c (ld_so_xfer_auxv): Update.
10943 * avr-tdep.c (avr_scan_prologue): Update.
10944 * ax-gdb.c (gen_var_ref): Update.
10945 * blockframe.c (get_pc_function_start)
10946 (find_pc_partial_function_gnu_ifunc): Update.
10947 * breakpoint.c (create_overlay_event_breakpoint)
10948 (create_longjmp_master_breakpoint)
10949 (create_std_terminate_master_breakpoint)
10950 (create_exception_master_breakpoint): Update.
10951 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10952 * c-valprint.c (c_val_print): Update.
10953 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10954 * common/agent.c (agent_look_up_symbols): Update.
10955 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10956 * dwarf2loc.c (call_site_to_target_addr): Update.
10957 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10958 * elfread.c (elf_gnu_ifunc_record_cache)
10959 (elf_gnu_ifunc_resolve_by_got): Update.
10960 * findvar.c (default_read_var_value): Update.
10961 * frame.c (inside_main_func): Update.
10962 * frv-tdep.c (frv_frame_this_id): Update.
10963 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10964 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10965 Update.
10966 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10967 (hppa_hpux_find_dummy_bpaddr): Update.
10968 * hppa-tdep.c (hppa_symbol_address): Update.
10969 * infcmd.c (until_next_command): Update.
10970 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10971 Update.
10972 * linespec.c (minsym_found, add_minsym): Update.
10973 * linux-nat.c (get_signo): Update.
10974 * linux-thread-db.c (inferior_has_bug): Update.
10975 * m32c-tdep.c (m32c_return_value)
10976 (m32c_m16c_address_to_pointer): Update.
10977 * m32r-tdep.c (m32r_frame_this_id): Update.
10978 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10979 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10980 * maint.c (maintenance_translate_address): Update.
10981 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10982 (frob_address): New function.
10983 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10984 frob_address. Rename parameter to "pc_in".
10985 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10986 addresses.
10987 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10988 Update.
10989 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10990 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10991 * objc-lang.c (find_objc_msgsend): Update.
10992 * objfiles.c (objfile_relocate1): Update.
10993 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10994 * p-valprint.c (pascal_val_print): Update.
10995 * parse.c (write_exp_msymbol): Update.
10996 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10997 (ppc_elfv2_skip_entrypoint): Update.
10998 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10999 * printcmd.c (build_address_symbolic, msym_info)
11000 (address_info): Update.
11001 * proc-service.c (ps_pglobal_lookup): Update.
11002 * psymtab.c (find_pc_sect_psymtab_closer)
11003 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11004 Change msymbol parameter to bound_minimal_symbol.
11005 * ravenscar-thread.c (get_running_thread_id): Update.
11006 * remote.c (remote_check_symbols): Update.
11007 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11008 address.
11009 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11010 * solib-dsbt.c (lm_base): Update.
11011 * solib-frv.c (lm_base, main_got): Update.
11012 * solib-irix.c (locate_base): Update.
11013 * solib-som.c (som_solib_create_inferior_hook)
11014 (link_map_start): Update.
11015 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11016 * solib-svr4.c (elf_locate_base, enable_break): Update.
11017 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11018 (flush_ea_cache): Update.
11019 * stabsread.c (define_symbol, scan_file_globals): Update.
11020 * stack.c (find_frame_funname): Update.
11021 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11022 (debug_qf_find_pc_sect_symtab): Update.
11023 * symfile.c (simple_read_overlay_table)
11024 (simple_overlay_update): Update.
11025 * symfile.h (struct quick_symbol_functions)
11026 <find_pc_sect_symtab>: Change type of msymbol to
11027 bound_minimal_symbol.
11028 * symmisc.c (dump_msymbols): Update.
11029 * symtab.c (find_pc_sect_symtab_via_partial)
11030 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11031 (search_symbols, print_msymbol_info): Update.
11032 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11033 (MSYMBOL_VALUE_ADDRESS): Redefine.
11034 (BMSYMBOL_VALUE_ADDRESS): New macro.
11035 * tracepoint.c (scope_info): Update.
11036 * tui/tui-disasm.c (tui_find_disassembly_address)
11037 (tui_get_begin_asm_address): Update.
11038 * valops.c (find_function_in_inferior): Update.
11039 * value.c (value_static_field, value_fn_field): Update.
11040
3b7344d5
TT
110412014-02-26 Tom Tromey <tromey@redhat.com>
11042
11043 * ada-lang.c (ada_update_initial_language): Update.
11044 (ada_main_name, ada_has_this_exception_support): Update.
11045 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11046 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11047 * arm-tdep.c (arm_skip_stub): Update.
11048 * auxv.c (ld_so_xfer_auxv): Update.
11049 * avr-tdep.c (avr_scan_prologue): Update.
11050 * ax-gdb.c (gen_var_ref): Update.
11051 * breakpoint.c (struct breakpoint_objfile_data)
11052 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11053 type to bound_minimal_symbol.
11054 (create_overlay_event_breakpoint)
11055 (create_longjmp_master_breakpoint)
11056 (create_std_terminate_master_breakpoint)
11057 (create_exception_master_breakpoint): Update.
11058 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11059 * c-exp.y (classify_name): Update.
11060 * coffread.c (coff_symfile_read): Update.
11061 * common/agent.c (agent_look_up_symbols): Update.
11062 * d-lang.c (d_main_name): Update.
11063 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11064 * dec-thread.c (enable_dec_thread): Update.
11065 * dwarf2loc.c (call_site_to_target_addr): Update.
11066 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11067 * eval.c (evaluate_subexp_standard): Update.
11068 * findvar.c (struct minsym_lookup_data) <result>: Change type
11069 to bound_minimal_symbol.
11070 <objfile>: Remove.
11071 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11072 * frame.c (inside_main_func): Update.
11073 * frv-tdep.c (frv_frame_this_id): Update.
11074 * gcore.c (call_target_sbrk): Update.
11075 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11076 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11077 Update.
11078 * go-lang.c (go_main_name): Update.
11079 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11080 (hppa_hpux_find_import_stub_for_addr): Update.
11081 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11082 Update. Change return type.
11083 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11084 type.
11085 * jit.c (jit_breakpoint_re_set_internal): Update.
11086 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11087 Update.
11088 * linux-nat.c (get_signo): Update.
11089 * linux-thread-db.c (inferior_has_bug): Update
11090 * m32c-tdep.c (m32c_return_value)
11091 (m32c_m16c_address_to_pointer): Update.
11092 * m32r-tdep.c (m32r_frame_this_id): Update.
11093 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11094 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11095 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11096 lookup_minimal_symbol. Change return type.
11097 (lookup_minimal_symbol): Remove.
11098 (lookup_bound_minimal_symbol): Update.
11099 (lookup_minimal_symbol_text): Change return type.
11100 (lookup_minimal_symbol_solib_trampoline): Change return type.
11101 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11102 (lookup_minimal_symbol_solib_trampoline): Change return type.
11103 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11104 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11105 (value_nsstring, find_imps): Update.
11106 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11107 * p-lang.c (pascal_main_name): Update.
11108 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11109 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11110 * proc-service.c (ps_pglobal_lookup): Update.
11111 * ravenscar-thread.c (get_running_thread_msymbol): Change
11112 return type.
11113 (has_ravenscar_runtime, get_running_thread_id): Update.
11114 * remote.c (remote_check_symbols): Update.
11115 * sol-thread.c (ps_pglobal_lookup): Update.
11116 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11117 * solib-dsbt.c (lm_base): Update.
11118 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11119 Update.
11120 * solib-irix.c (locate_base): Update.
11121 * solib-som.c (som_solib_create_inferior_hook)
11122 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11123 Update.
11124 * solib-spu.c (spu_enable_break): Update.
11125 * solib-svr4.c (elf_locate_base, enable_break): Update.
11126 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11127 (flush_ea_cache): Update.
11128 * stabsread.c (define_symbol): Update.
11129 * symfile.c (simple_read_overlay_table): Update.
11130 * symtab.c (find_pc_sect_line): Update.
11131 * tracepoint.c (scope_info): Update.
11132 * tui-disasm.c (tui_get_begin_asm_address): Update.
11133 * value.c (value_static_field): Update.
11134
40c1a007
TT
111352014-02-26 Tom Tromey <tromey@redhat.com>
11136
11137 * minsyms.c (prim_record_minimal_symbol_full): Use
11138 SET_MSYMBOL_VALUE_ADDRESS.
11139 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11140 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11141 SET_MSYMBOL_VALUE_ADDRESS.
11142 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11143 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11144
efd66ac6
TT
111452014-02-26 Tom Tromey <tromey@redhat.com>
11146
11147 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11148 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11149 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11150 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11151 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11152 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11153 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11154 * ada-lang.c (ada_main_name): Update.
11155 (ada_lookup_simple_minsym): Update.
11156 (ada_make_symbol_completion_list): Update.
11157 (ada_add_standard_exceptions): Update.
11158 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11159 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11160 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11161 * arm-tdep.c (skip_prologue_function): Update.
11162 (arm_skip_stack_protector, arm_skip_stub): Update.
11163 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11164 (arm_wince_skip_main_prologue): Update.
11165 * auxv.c (ld_so_xfer_auxv): Update.
11166 * avr-tdep.c (avr_scan_prologue): Update.
11167 * ax-gdb.c (gen_var_ref): Update.
11168 * block.c (call_site_for_pc): Update.
11169 * blockframe.c (get_pc_function_start): Update.
11170 (find_pc_partial_function_gnu_ifunc): Update.
11171 * breakpoint.c (create_overlay_event_breakpoint): Update.
11172 (create_longjmp_master_breakpoint): Update.
11173 (create_std_terminate_master_breakpoint): Update.
11174 (create_exception_master_breakpoint): Update.
11175 (resolve_sal_pc): Update.
11176 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11177 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11178 Update.
11179 * c-valprint.c (c_val_print): Update.
11180 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11181 * coffread.c (coff_symfile_read): Update.
11182 * common/agent.c (agent_look_up_symbols): Update.
11183 * dbxread.c (find_stab_function_addr): Update.
11184 (end_psymtab): Update.
11185 * dwarf2loc.c (call_site_to_target_addr): Update.
11186 (func_verify_no_selftailcall): Update.
11187 (tailcall_dump): Update.
11188 (call_site_find_chain_1): Update.
11189 (dwarf_expr_reg_to_entry_parameter): Update.
11190 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11191 (elf_gnu_ifunc_resolve_by_got): Update.
11192 * f-valprint.c (info_common_command): Update.
11193 * findvar.c (read_var_value): Update.
11194 * frame.c (get_prev_frame_1): Update.
11195 (inside_main_func): Update.
11196 * frv-tdep.c (frv_skip_main_prologue): Update.
11197 (frv_frame_this_id): Update.
11198 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11199 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11200 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11201 (gnuv3_skip_trampoline): Update.
11202 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11203 (hppa64_hpux_in_solib_call_trampoline): Update.
11204 (hppa_hpux_skip_trampoline_code): Update.
11205 (hppa64_hpux_search_dummy_call_sequence): Update.
11206 (hppa_hpux_find_import_stub_for_addr): Update.
11207 (hppa_hpux_find_dummy_bpaddr): Update.
11208 * hppa-tdep.c (hppa_symbol_address)
11209 (hppa_lookup_stub_minimal_symbol): Update.
11210 * i386-tdep.c (i386_skip_main_prologue): Update.
11211 (i386_pe_skip_trampoline_code): Update.
11212 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11213 * infcall.c (get_function_name): Update.
11214 * infcmd.c (until_next_command): Update.
11215 * jit.c (jit_breakpoint_re_set_internal): Update.
11216 (jit_inferior_init): Update.
11217 * linespec.c (minsym_found): Update.
11218 (add_minsym): Update.
11219 * linux-fork.c (info_checkpoints_command): Update.
11220 * linux-nat.c (get_signo): Update.
11221 * linux-thread-db.c (inferior_has_bug): Update.
11222 * m32c-tdep.c (m32c_return_value): Update.
11223 (m32c_m16c_address_to_pointer): Update.
11224 (m32c_m16c_pointer_to_address): Update.
11225 * m32r-tdep.c (m32r_frame_this_id): Update.
11226 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11227 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11228 * maint.c (maintenance_translate_address): Update.
11229 * minsyms.c (add_minsym_to_hash_table): Update.
11230 (add_minsym_to_demangled_hash_table): Update.
11231 (msymbol_objfile): Update.
11232 (lookup_minimal_symbol): Update.
11233 (iterate_over_minimal_symbols): Update.
11234 (lookup_minimal_symbol_text): Update.
11235 (lookup_minimal_symbol_by_pc_name): Update.
11236 (lookup_minimal_symbol_solib_trampoline): Update.
11237 (lookup_minimal_symbol_by_pc_section_1): Update.
11238 (lookup_minimal_symbol_and_objfile): Update.
11239 (prim_record_minimal_symbol_full): Update.
11240 (compare_minimal_symbols): Update.
11241 (compact_minimal_symbols): Update.
11242 (build_minimal_symbol_hash_tables): Update.
11243 (install_minimal_symbols): Update.
11244 (terminate_minimal_symbol_table): Update.
11245 (find_solib_trampoline_target): Update.
11246 (minimal_symbol_upper_bound): Update.
11247 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11248 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11249 (mips_skip_pic_trampoline_code): Update.
11250 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11251 * objc-lang.c (selectors_info): Update.
11252 (classes_info): Update.
11253 (find_methods): Update.
11254 (find_imps): Update.
11255 (find_objc_msgsend): Update.
11256 * objfiles.c (objfile_relocate1): Update.
11257 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11259 * p-valprint.c (pascal_val_print): Update.
11260 * parse.c (write_exp_msymbol): Update.
11261 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11262 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11263 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11264 * printcmd.c (build_address_symbolic): Update.
11265 (sym_info): Update.
11266 (address_info): Update.
11267 * proc-service.c (ps_pglobal_lookup): Update.
11268 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11269 (find_pc_sect_psymtab): Update.
11270 * python/py-framefilter.c (py_print_frame): Update.
11271 * ravenscar-thread.c (get_running_thread_id): Update.
11272 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11273 Update.
11274 * remote.c (remote_check_symbols): Update.
11275 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11276 (rs6000_skip_trampoline_code): Update.
11277 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11278 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11279 * solib-dsbt.c (lm_base): Update.
11280 * solib-frv.c (lm_base): Update.
11281 (main_got): Update.
11282 * solib-irix.c (locate_base): Update.
11283 * solib-som.c (som_solib_create_inferior_hook): Update.
11284 (som_solib_desire_dynamic_linker_symbols): Update.
11285 (link_map_start): Update.
11286 * solib-spu.c (spu_enable_break): Update.
11287 (ocl_enable_break): Update.
11288 * solib-svr4.c (elf_locate_base): Update.
11289 (enable_break): Update.
11290 * spu-tdep.c (spu_get_overlay_table): Update.
11291 (spu_catch_start): Update.
11292 (flush_ea_cache): Update.
11293 * stabsread.c (define_symbol): Update.
11294 (scan_file_globals): Update.
11295 * stack.c (find_frame_funname): Update.
11296 (frame_info): Update.
11297 * symfile.c (simple_read_overlay_table): Update.
11298 (simple_overlay_update): Update.
11299 * symmisc.c (dump_msymbols): Update.
11300 * symtab.c (fixup_section): Update.
11301 (find_pc_sect_line): Update.
11302 (skip_prologue_sal): Update.
11303 (search_symbols): Update.
11304 (print_msymbol_info): Update.
11305 (rbreak_command): Update.
11306 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11307 (completion_list_objc_symbol): Update.
11308 (default_make_symbol_completion_list_break_on): Update.
11309 * tracepoint.c (scope_info): Update.
11310 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11311 (tui_get_begin_asm_address): Update.
11312 * valops.c (find_function_in_inferior): Update.
11313 * value.c (value_static_field): Update.
11314 (value_fn_field): Update.
11315
50e65b17
TT
113162014-02-26 Tom Tromey <tromey@redhat.com>
11317
11318 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11319 bound minimal symbols. Move code that knows about minsym
11320 table layout...
11321 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11322 function.
11323 * minsyms.h (minimal_symbol_upper_bound): Declare.
11324 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11325 minimal_symbol_upper_bound.
11326
1b588015
JB
113272014-02-27 Joel Brobecker <brobecker@adacore.com>
11328
11329 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11330 Use the type's name if its basic type does not have a tag.
11331
dbb9c2b1
JB
113322014-02-27 Joel Brobecker <brobecker@adacore.com>
11333
11334 * dwarf2read.c (read_subrange_type): Add comment.
11335
55426c9d
JB
113362014-02-27 Joel Brobecker <brobecker@adacore.com>
11337
11338 * dwarf2read.c (update_enumeration_type_from_children): New
11339 function, mostly extracted from process_structure_scope.
11340 (read_enumeration_type): Call update_enumeration_type_from_children.
11341 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11342 and flag_flag_enum fields.
11343
f2fce0ca
PA
113442014-02-26 Pedro Alves <palves@redhat.com>
11345
11346 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11347 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11348 to_xfer_partial method.
11349
7a44e40e
PA
113502014-02-26 Pedro Alves <palves@redhat.com>
11351
11352 * target.c (complete_target_initialization): Don't install
11353 default_xfer_partial as to_xfer_partial hook.
11354 (nomemory): Delete.
11355 (update_current_target): Don't INHERIT nor de_fault
11356 deprecated_xfer_memory. Delete de_fault macro.
11357 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11358 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11359 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11360 field.
11361
bd265cd0
PA
113622014-02-26 Pedro Alves <palves@redhat.com>
11363
11364 * go32-nat.c (my_write_child): New function.
11365 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11366 (go32_xfer_partial): New function.
11367 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11368 Instead install a to_xfer_partial hook.
11369
9d46c4e5
PA
113702014-02-26 Pedro Alves <palves@redhat.com>
11371
11372 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11373 to_xfer_partial helper. Rewrite.
11374 (procfs_xfer_partial): New function.
11375 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11376 Install a to_xfer_partial hook.
11377
a1583b1f
PA
113782014-02-26 Pedro Alves <palves@redhat.com>
11379
11380 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11381 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11382 (m32r_xfer_partial): New function.
11383 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11384 Install a to_xfer_partial hook.
11385
6df1b29f
PA
113862014-02-26 Pedro Alves <palves@redhat.com>
11387
11388 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11389 helper.
11390 (mips_xfer_partial): New function.
11391 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11392 hook. Install a to_xfer_partial hook.
11393
dc53a7ad
JB
113942014-02-26 Joel Brobecker <brobecker@adacore.com>
11395
11396 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11397 * gdbtypes.c (create_array_type_with_stride): New function,
11398 renaming create_array_type, but with an added parameter
11399 called "bit_stride".
11400 (create_array_type): Re-implement using
11401 create_array_type_with_stride.
11402 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11403 and DW_AT_bit_stride attributes.
11404
12ab52e9
PA
114052014-02-26 Pedro Alves <palves@redhat.com>
11406
11407 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11408 task-specific breakpoints.
11409
d16461ae
PA
114102014-02-25 Pedro Alves <palves@redhat.com>
11411
11412 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11413 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11414
a8b16220
SS
114152014-02-25 Stan Shebs <stan@codesourcery.com>
11416
11417 * defs.h: Annotate comments for Doxygen.
11418
b9e795ee
TT
114192014-02-25 Tom Tromey <tromey@redhat.com>
11420
11421 * target.h (target_ignore): Don't declare.
11422 * target.c (target_ignore): Remove.
11423
849c862e
JK
114242014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11425
11426 PR gdb/16626
11427 * auto-load.c (auto_load_objfile_script_1): Change filename to
11428 debugfile.
11429
475109d8
JB
114302014-02-25 Joel Brobecker <brobecker@adacore.com>
11431
11432 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11433 documentation. Adjust prototype to match the target_ops
11434 to_xfer_partial method. Adjust implementation accordingly.
11435
e186c3bd
HZ
114362014-02-25 Hui Zhu <hui@codesourcery.com>
11437
11438 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11439 to_traceframe_info.
11440
6d451942
KB
114412014-02-25 Kevin Buettner <kevinb@redhat.com>
11442
041ab8b4 11443 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11444 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11445 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11446 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11447 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11448 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11449 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11450 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11451 New constants.
11452 (rl78_register_type): Use a data pointer type for SP and
11453 new pseudo registers mentioned above. Use a 16 bit integer
11454 type for all other register pairs.
11455 (rl78_register_name, rl78_g10_register_name): Update for
11456 new pseudo registers.
11457 (rl78_pseudo_register_read): Likewise.
11458 (rl78_pseudo_register_write): Likewise.
11459 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11460 to the newly added pseudo registers.
11461
eddf0bae
DE
114622014-02-24 Doug Evans <dje@google.com>
11463
11464 * value.c (record_latest_value): Fix comment.
11465 * printcmd.c (print_command_1): Remove code to handle -1 return from
11466 record_latest_value.
11467
e96027e0
PA
114682014-02-24 Pedro Alves <palves@redhat.com>
11469
11470 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11471 deprecated_xfer_memory hook.
11472 (procfs_xfer_partial): Call procfs_xfer_memory instead
11473 of the deprecated_xfer_memory target hook.
11474 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11475 helper.
11476
0837c976
YZ
114772014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11478
11479 * windows-nat.c (windows_xfer_shared_libraries): Return
11480 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11481 requested object is TARGET_OBJECT_LIBRARIES.
11482
bc113b4e
YQ
114832014-02-24 Yao Qi <yao@codesourcery.com>
11484
11485 * target.h (enum target_xfer_status)
11486 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11487 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11488 explicitly. New.
11489 * corefile.c (memory_error_message): User updated.
11490 * exec.c (section_table_read_available_memory): Likewise.
11491 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11492 * target.c (target_xfer_status_to_string): Likewise.
11493 (raw_memory_xfer_partial): Likewise.
11494 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11495 * valops.c (read_value_memory): Likewise.
11496 * exec.h: Update comments.
11497
01cb8804
YQ
114982014-02-24 Yao Qi <yao@codesourcery.com>
11499
11500 * target.c (target_xfer_status_to_string): Rename argument err
11501 to status.
11502 * target.h (target_xfer_status_to_string): Update declaration.
11503 Replace target_xfer_error_to_string with
11504 target_xfer_status_to_string in comment.
11505
93063aa6
YQ
115062014-02-24 Yao Qi <yao@codesourcery.com>
11507
11508 * mips-linux-nat.c (super_close): Update its type.
11509 (mips_linux_close): Pass 'self' to super_close.
11510
5c328c05
YQ
115112014-02-24 Yao Qi <yao@codesourcery.com>
11512
11513 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11514 * corefile.c (read_memory): Adjusted.
11515 * target.c (target_write_with_progress): Adjusted.
11516
f73023dd
YQ
115172014-02-23 Yao Qi <yao@codesourcery.com>
11518
11519 Revert two patches:
11520
11521 2013-10-25 Yao Qi <yao@codesourcery.com>
11522
11523 * remote.c (remote_traceframe_info): Return early if
11524 traceframe is not selected.
11525
11526 2013-07-19 Yao Qi <yao@codesourcery.com>
11527
11528 * target.c (update_current_target): Change the default action
11529 of 'to_traceframe_info' from tcomplain to return_zero.
11530 * target.h (struct target_ops) <to_traceframe_info>: Add more
11531 comments.
11532
5a2eb0ef
YQ
115332014-02-23 Yao Qi <yao@codesourcery.com>
11534
11535 * valops.c (read_value_memory): Rewrite it. Call
11536 target_xfer_partial in a loop.
11537 * exec.h (section_table_available_memory): Remove declaration.
11538 Move comments to ...
11539 * exec.c (section_table_available_memory): ... here. Make it
11540 static.
11541
1ee79381
YQ
115422014-02-23 Yao Qi <yao@codesourcery.com>
11543
11544 * exec.c (section_table_read_available_memory): New function.
11545 * exec.h (section_table_read_available_memory): Declare.
11546 * ctf.c (ctf_xfer_partial): Call
11547 section_table_read_available_memory.
11548 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11549
1ca49d37
YQ
115502014-02-23 Yao Qi <yao@codesourcery.com>
11551
11552 * ctf.c (ctf_xfer_partial): Move code to ...
11553 * exec.c (exec_read_partial_read_only): ... it. New function.
11554 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11555 * tracefile.c: Include "exec.h".
11556 * exec.h (exec_read_partial_read_only): Declare.
11557
a283690e
YQ
115582014-02-23 Yao Qi <yao@codesourcery.com>
11559
11560 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11561 (tfile_has_memory): Remove.
11562 (init_tfile_ops): Don't set fields to_has_all_memory and
11563 to_has_memory of tfile_ops.
11564 * tracefile.c (tracefile_has_all_memory): New function.
11565 (tracefile_has_memory): New function.
11566 (init_tracefile_ops): Initialize fields to_has_all_memory and
11567 to_has_memory of 'ops'.
11568
12e03cd0
YQ
115692014-02-23 Yao Qi <yao@codesourcery.com>
11570
11571 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11572 (ctf_thread_alive, ctf_get_trace_status): Remove.
11573 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11574 init_tracefile_ops.
11575 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11576 (tfile_has_stack, tfile_has_registers): Remove.
11577 (tfile_thread_alive): Remove.
11578 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11579 init_tracefile_ops.
11580 * tracefile.c (tracefile_has_stack): New function.
11581 (tracefile_has_registers): New function.
11582 (tracefile_thread_alive): New function.
11583 (tracefile_get_trace_status): New function.
11584 (init_tracefile_ops): New function.
11585 * tracefile.h (init_tracefile_ops): Declare.
11586
11395323
YQ
115872014-02-23 Yao Qi <yao@codesourcery.com>
11588
11589 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11590 (O_LARGEFILE): Likewise.
11591 (tfile_ops): Likewise.
11592 (TRACE_HEADER_SIZE): Likewise.
11593 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11594 (cur_data_size): Likewise.
11595 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11596 (tfile_close, tfile_files_info): Likewise.
11597 (tfile_get_trace_status): Likewise.
11598 (tfile_get_tracepoint_status): Likewise.
11599 (tfile_get_traceframe_address): Likewise.
11600 (tfile_trace_find, match_blocktype): Likewise.
11601 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11602 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11603 (tfile_get_trace_state_variable_value): Likewise.
11604 (tfile_has_all_memory, tfile_has_memory): Likewise.
11605 (tfile_has_stack, tfile_has_registers): Likewise.
11606 (tfile_thread_alive, build_traceframe_info): Likewise.
11607 (tfile_traceframe_info, init_tfile_ops): Likewise.
11608 (_initialize_tracepoint): Don't call init_tfile_ops
11609 and add_target_with_completer.
11610 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11611 exec.h, completer.h and filenames.h.
11612 (_initialize_tracefile_tfile): New function.
11613
7951c4eb
YQ
116142014-02-23 Yao Qi <yao@codesourcery.com>
11615
11616 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11617 tracefile-tfile.o.
11618 (HFILES_NO_SRCDIR): Add tracefile.h.
11619 * ctf.c: Include "tracefile.h".
11620 * tracefile.h: New file.
11621 * tracefile.c: New file
11622 * tracefile-tfile.c: New file.
11623 * tracepoint.c: Include "tracefile.h".
11624 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11625 (stop_reason_names): Add const.
11626 (trace_file_writer_xfree): Move it to tracefile.c.
11627 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11628 (trace_save_ctf): Likewise.
11629 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11630 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11631 (tfile_write_header, tfile_write_regblock_type): Likewise.
11632 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11633 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11634 (tfile_write_raw_data, tfile_end): Likewise.
11635 (tfile_trace_file_writer_new): Likewise.
11636 (free_uploaded_tp): Make it extern.
11637 (free_uploaded_tsv): Make it extern.
11638 (_initialize_tracepoint): Move code to register command 'tsave'
11639 to tracefile.c.
11640 * tracepoint.h (stop_reason_names): Declare.
11641 (struct trace_frame_write_ops): Move it to tracefile.h.
11642 (struct trace_file_write_ops): Likewise.
11643 (struct trace_file_writer): Likewise.
11644 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11645
184cd072
JK
116462014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11647
11648 PR gdb/16594
11649 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11650 process name.
11651 (get_cores_used_by_process): New parameter num_cores, use it.
11652 (linux_xfer_osdata_processes): Pass num_cores to it.
11653 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11654 process name.
11655
c63528fc
AK
116562014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11657
11658 * target.c (memory_xfer_partial): Fix length arg in call to
11659 breakpoint_xfer_memory.
11660
d7b30f67
SDJ
116612014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11662
11663 PR tdep/16397
11664 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11665 number comes after the + or - signs. Adjust length of register
11666 name to be extracted.
11667
8838afaf
TT
116682014-02-20 Tom Tromey <tromey@redhat.com>
11669
11670 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11671 (ada_varobj_ops): Mark "extern".
11672
05227d14
TT
116732014-02-20 Tom Tromey <tromey@redhat.com>
11674
11675 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11676
1254eefc
DE
116772014-02-20 Doug Evans <xdje42@gmail.com>
11678
11679 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11680 All callers updated.
11681 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11682 All callers updated.
11683 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11684 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11685
adde2bff
DE
116862014-02-20 lin zuojian <manjian2006@gmail.com>
11687 Joel Brobecker <brobecker@adacore.com>
11688 Doug Evans <xdje42@gmail.com>
11689
11690 PR symtab/16581
11691 * dwarf2read.c (struct die_info): New member in_process.
11692 (reset_die_in_process): New function.
11693 (process_die): Set it at the start, reset when returning.
11694 (inherit_abstract_dies): Only call process_die if origin_child_die
11695 not already being processed.
11696
3be75f87
JB
116972014-02-20 Joel Brobecker <brobecker@adacore.com>
11698
11699 * windows-nat.c (handle_unload_dll): Add function documentation.
11700 (do_initial_windows_stuff): Add comment explaining why we wait
11701 until after inferior initialization has finished before
11702 processing all DLLs.
11703
47f7ffdb
JB
117042014-02-20 Joel Brobecker <brobecker@adacore.com>
11705
11706 * windows-nat.c (get_module_name): Delete.
11707 (windows_get_exec_module_filename): New function, mostly
11708 inspired from get_module_name.
11709 (windows_pid_to_exec_file): Replace call to get_module_name
11710 by call to windows_get_exec_module_filename.
11711
1cd9feab
JB
117122014-02-20 Joel Brobecker <brobecker@adacore.com>
11713
11714 * windows-nat.c (handle_load_dll): Rewrite this function's
11715 introductory comment. Remove code using get_module_name
11716 to get the DLL's name.
11717
ea39ad35
JB
117182014-02-20 Joel Brobecker <brobecker@adacore.com>
11719
11720 * windows-nat.c (get_windows_debug_event): Ignore
11721 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11722 if windows_initialization_done == 0.
11723 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11724 Adjust implementation to always load all DLLs.
11725 (do_initial_windows_stuff): Replace call to
11726 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11727
95060284
JB
117282014-02-20 Joel Brobecker <brobecker@adacore.com>
11729
11730 * windows-nat.c (_initialize_windows_nat): Deprecate the
11731 "dll-symbols" command. Turn the "add-shared-symbol-files"
11732 and "assf" aliases into commands, and deprecate them as well.
11733 * NEWS: Add entry explaining that "dll-symbols" and its two
11734 aliases are now deprecated.
11735
8d4fdb12
JB
117362014-02-20 Joel Brobecker <brobecker@adacore.com>
11737
11738 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11739 new-line in debug string. Remove trailing spaces.
11740
1b281443
SS
117412014-02-19 Stan Shebs <stan@codesourcery.com>
11742
11743 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11744
f7bd0f78
SC
117452014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11746
11747 * NEWS: Add entry for the new feature
11748 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11749 and class values.
11750
399ebc3d
SS
117512014-02-19 Stan Shebs <stan@codesourcery.com>
11752
11753 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11754
c658158d
PA
117552014-02-19 Pedro Alves <palves@redhat.com>
11756
11757 * common/ptid.h (struct ptid): Mention that process_stratum
11758 targets should prefer ptid.lwp.
11759
ba348170
PA
117602014-02-19 Pedro Alves <palves@redhat.com>
11761
11762 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11763 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11764 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11765 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11766 store remote thread ids rather than ptid.tid.
11767 (_initialize_remote): Adjust.
11768
ac01945b
TT
117692014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * target.c (target_get_unwinder): Rewrite.
11772 (target_get_tailcall_unwinder): Rewrite.
11773 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11774 (record_btrace_to_get_tailcall_unwinder): New function.
11775 (init_record_btrace_ops): Update.
11776 * target.h (struct target_ops) <to_get_unwinder,
11777 to_get_tailcall_unwinder>: Now function pointers. Use
11778 TARGET_DEFAULT_RETURN.
11779
8476dc92
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11783 argument.
11784 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11785
c0eca49f
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11789 directly.
11790 * target-delegates.c: Rebuild.
11791 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11792 TARGET_DEFAULT_FUNC.
11793 * target.c (default_target_decr_pc_after_break): Rename from
11794 forward_target_decr_pc_after_break. Simplify.
11795 (target_decr_pc_after_break): Rely on delegation.
11796
596b6b39
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target.c (update_current_target): Do not INHERIT to_doc or
11800 to_magic. Do not de_fault to_open or to_close.
11801
b427c1bc
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * gcore.h (objfile_find_memory_regions): Declare.
11805 * gcore.c (objfile_find_memory_regions): No longer static. Add
11806 "self" argument.
11807 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11808 * exec.c: Include gcore.h.
11809 (exec_set_find_memory_regions): Remove.
11810 (exec_find_memory_regions): Remove.
11811 (exec_do_find_memory_regions): Remove.
11812 (init_exec_ops): Update.
11813 * defs.h (exec_set_find_memory_regions): Remove.
11814
9b144037
TT
118152014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target-delegates.c: Rebuild.
11818 * target.h (struct target_ops) <to_extra_thread_info,
11819 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11820 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11821 not 0, in TARGET_DEFAULT_RETURN.
11822
555bbdeb
TT
118232014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target.c (complete_target_initialization): Remove casts. Use
11826 return_zero_has_execution.
11827 (return_zero): Add "ignore" argument.
11828 (return_zero_has_execution): New function.
11829 (init_dummy_target): Remove casts. Use
11830 return_zero_has_execution.
11831
be4ddd36
TT
118322014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target.c (update_current_target): Update comments. Do not
11835 INHERIT to_stratum.
11836
2117c711
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11840 needed.
11841 * corelow.c (core_read_description): Delegate when needed.
11842 * remote.c (remote_read_description): Delegate when needed.
11843 * target-delegates.c: Rebuild.
11844 * target.c (target_read_description): Rewrite.
11845 * target.h (struct target_ops) <to_read_description>: Update
11846 comment. Use TARGET_DEFAULT_RETURN.
11847
e88ef65c
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target-delegates.c: Rebuild.
11851 * target.c (update_current_target): Don't inherit or default
11852 to_can_run.
11853 (find_default_run_target): Check against delegate_can_run.
11854 * target.h (struct target_ops) <to_can_run>: Use
11855 TARGET_DEFAULT_RETURN.
11856
86a0854a
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (target_disconnect): Unconditionally delegate.
11861 * target.h (struct target_ops) <to_disconnect>: Use
11862 TARGET_DEFAULT_NORETURN.
11863
ee97f592
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * record.c (record_stop): Unconditionally delegate.
11867 * target-delegates.c: Rebuild.
11868 * target.c (target_stop_recording): Unconditionally delegate.
11869 * target.h (struct target_ops) <to_stop_recording>: Use
11870 TARGET_DEFAULT_IGNORE.
11871
6dc7fcf4
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (target_enable_btrace): Unconditionally delegate.
11876 * target.h (struct target_ops) <to_enable_btrace>: Use
11877 TARGET_DEFAULT_NORETURN.
11878
eb5b20d4
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_read_btrace): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_read_btrace>: Use
11884 TARGET_DEFAULT_NORETURN.
11885
9ace480d
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_teardown_btrace): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_teardown_btrace>: Use
11891 TARGET_DEFAULT_NORETURN.
11892
8dc292d3
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_disable_btrace): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_disable_btrace>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
58a5184e
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (default_search_memory): New function.
11904 (simple_search_memory): Update comment.
11905 (target_search_memory): Unconditionally delegate.
11906 * target.h (struct target_ops) <to_search_memory>: Use
11907 TARGET_DEFAULT_FUNC.
11908
8de71aab
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * auxv.c (default_auxv_parse): No longer static.
11912 (target_auxv_parse): Unconditionally delegate.
11913 * auxv.h (default_auxv_parse): Declare.
11914 * target-delegates.c: Rebuild.
11915 * target.c: Include auxv.h.
11916 * target.h (struct target_ops) <to_auxv_parse>: Use
11917 TARGET_DEFAULT_FUNC.
11918
6b2c5a57
TT
119192014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target-delegates.c: Rebuild.
11922 * target.c (target_memory_map): Unconditionally delegate.
11923 * target.h (struct target_ops) <to_memory_map>: Use
11924 TARGET_DEFAULT_RETURN.
11925
cbffc065
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target-delegates.c: Rebuild.
11929 * target.c (target_thread_alive): Unconditionally delegate.
11930 * target.h (struct target_ops) <to_thread_alive>: Use
11931 TARGET_DEFAULT_RETURN.
11932
f09e2107
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (target_save_record): Unconditionally delegate.
11937 * target.h (struct target_ops) <to_save_record>: Use
11938 TARGET_DEFAULT_NORETURN.
11939
07366925
TT
119402014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (target_delete_record): Unconditionally delegate.
11944 * target.h (struct target_ops) <to_delete_record>: Use
11945 TARGET_DEFAULT_NORETURN.
11946
dd2e9d25
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target-delegates.c: Rebuild.
11950 * target.c (target_record_is_replaying): Unconditionally
11951 delegate.
11952 * target.h (struct target_ops) <to_record_is_replaying>: Use
11953 TARGET_DEFAULT_RETURN.
11954
671e76cc
TT
119552014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target-delegates.c: Rebuild.
11958 * target.c (target_goto_record_begin): Unconditionally delegate.
11959 * target.h (struct target_ops) <to_goto_record_begin>: Use
11960 TARGET_DEFAULT_NORETURN.
11961
e9179bb3
TT
119622014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target-delegates.c: Rebuild.
11965 * target.c (target_goto_record_end): Unconditionally delegate.
11966 * target.h (struct target_ops) <to_goto_record_end>: Use
11967 TARGET_DEFAULT_NORETURN.
11968
05969c84
TT
119692014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target-delegates.c: Rebuild.
11972 * target.c (target_goto_record): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_goto_record>: Use
11974 TARGET_DEFAULT_NORETURN.
11975
3679abfa
TT
119762014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (target_insn_history): Unconditionally delegate.
11980 * target.h (struct target_ops) <to_insn_history>: Use
11981 TARGET_DEFAULT_NORETURN.
11982
8444ab58
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (target_insn_history_from): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_insn_history_from>: Use
11988 TARGET_DEFAULT_NORETURN.
11989
c29302cc
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target-delegates.c: Rebuild.
11993 * target.c (target_insn_history_range): Unconditionally delegate.
11994 * target.h (struct target_ops) <to_insn_history_range>: Use
11995 TARGET_DEFAULT_NORETURN.
11996
170049d4
TT
119972014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * target-delegates.c: Rebuild.
12000 * target.c (target_call_history): Unconditionally delegate.
12001 * target.h (struct target_ops) <to_call_history>: Use
12002 TARGET_DEFAULT_NORETURN.
12003
16fc27d6
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target-delegates.c: Rebuild.
12007 * target.c (target_call_history_from): Unconditionally delegate.
12008 * target.h (struct target_ops) <to_call_history_from>: Use
12009 TARGET_DEFAULT_NORETURN.
12010
115d9817
TT
120112014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target-delegates.c: Rebuild.
12014 * target.c (target_call_history_range): Unconditionally delegate.
12015 * target.h (struct target_ops) <to_call_history_range>: Use
12016 TARGET_DEFAULT_NORETURN.
12017
eb276a6b
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target-delegates.c: Rebuild.
12021 * target.c (target_verify_memory): Unconditionally delegate.
12022 * target.h (struct target_ops) <to_verify_memory>: Use
12023 TARGET_DEFAULT_NORETURN.
12024
9e538d0d
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_core_of_thread): Unconditionally delegate.
12029 * target.h (struct target_ops) <to_core_of_thread>: Use
12030 TARGET_DEFAULT_RETURN.
12031
f6fb2925
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target-delegates.c: Rebuild.
12035 * target.c (target_flash_done): Unconditionally delegate.
12036 * target.h (struct target_ops) <to_flash_done>: Use
12037 TARGET_DEFAULT_NORETURN.
12038
e8a6c6ac
TT
120392014-02-19 Tom Tromey <tromey@redhat.com>
12040
12041 * target-delegates.c: Rebuild.
12042 * target.c (target_flash_erase): Unconditionally delegate.
12043 * target.h (struct target_ops) <to_flash_erase>: Use
12044 TARGET_DEFAULT_NORETURN.
12045
7e35c012
TT
120462014-02-19 Tom Tromey <tromey@redhat.com>
12047
12048 * target-delegates.c: Rebuild.
12049 * target.c (target_get_section_table): Unconditionally delegate.
12050 * target.h (struct target_ops) <to_get_section_table>: Use
12051 TARGET_DEFAULT_RETURN.
12052
770234d3
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target-delegates.c: Rebuild.
12056 * target.c (target_pid_to_str): Unconditionally delegate.
12057 (init_dummy_target): Don't initialize to_pid_to_str.
12058 (default_pid_to_str): Rename from dummy_pid_to_str.
12059 * target.h (struct target_ops) <to_pid_to_str>: Use
12060 TARGET_DEFAULT_FUNC.
12061
09b0dc2b
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target-delegates.c: Rebuild.
12065 * target.c (target_find_new_threads): Unconditionally delegate.
12066 * target.h (struct target_ops) <to_find_new_threads>: Use
12067 TARGET_DEFAULT_RETURN.
12068
7d4f8efa
TT
120692014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target-delegates.c: Rebuild.
12072 * target.c (target_program_signals): Unconditionally delegate.
12073 * target.h (struct target_ops) <to_program_signals>: Use
12074 TARGET_DEFAULT_IGNORE.
12075
035cad7f
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (target_pass_signals): Unconditionally delegate.
12080 * target.h (struct target_ops) <to_pass_signals>: Use
12081 TARGET_DEFAULT_IGNORE.
12082
8d657035
TT
120832014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target-delegates.c: Rebuild.
12086 * target.c (default_mourn_inferior): New function.
12087 (target_mourn_inferior): Unconditionally delegate.
12088 * target.h (struct target_ops) <to_mourn_inferior>: Use
12089 TARGET_DEFAULT_FUNC.
12090
098dba18
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target-delegates.c: Rebuild.
12094 * target.c (default_follow_fork): New function.
12095 (target_follow_fork): Unconditionally delegate.
12096 * target.h (struct target_ops) <to_follow_fork>: Use
12097 TARGET_DEFAULT_FUNC.
12098
423a4807
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target-delegates.c: Rebuild.
12102 * target.c (target_kill): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_kill>: Use
12104 TARGET_DEFAULT_NORETURN.
12105
6c7e5e5c
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (target_masked_watch_num_registers): Unconditionally
12110 delegate.
12111 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12112 Use TARGET_DEFAULT_RETURN.
12113
8b1c364c
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (target_remove_mask_watchpoint): Unconditionally
12118 delegate.
12119 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12120 TARGET_DEFAULT_RETURN.
12121
cd4ae029
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (target_insert_mask_watchpoint): Unconditionally
12126 delegate.
12127 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12128 TARGET_DEFAULT_RETURN.
12129
a134316b
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target-delegates.c: Rebuild.
12133 * target.c (target_ranged_break_num_registers): Unconditionally
12134 delegate.
12135 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12136 Use TARGET_DEFAULT_RETURN.
12137
ad5989bd
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target-delegates.c: Rebuild.
12141 * target.c (target_fetch_registers): Unconditionally delegate.
12142 * target.h (struct target_ops) <to_fetch_registers>: Use
12143 TARGET_DEFAULT_NORETURN.
12144
46ee7e8d
TT
121452014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12149 to_stop.
12150 * target.h (struct target_ops) <to_stop>: Use
12151 TARGET_DEFAULT_IGNORE.
12152
843f59ed
TT
121532014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_can_run_breakpoint_commands.
12158 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12159 Use TARGET_DEFAULT_RETURN.
12160
ccfde2a0
TT
121612014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_supports_evaluation_of_breakpoint_conditions.
12166 * target.h (struct target_ops)
12167 <to_supports_evaluation_of_breakpoint_conditions>: Use
12168 TARGET_DEFAULT_RETURN.
12169
0de91722
TT
121702014-02-19 Tom Tromey <tromey@redhat.com>
12171
12172 * target-delegates.c: Rebuild.
12173 * target.c (update_current_target): Don't inherit or default
12174 to_augmented_libraries_svr4_read.
12175 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12176 Use TARGET_DEFAULT_RETURN.
12177
9a7d8b48
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target-delegates.c: Rebuild.
12181 * target.c (update_current_target): Don't inherit or default
12182 to_can_use_agent.
12183 * target.h (struct target_ops) <to_can_use_agent>: Use
12184 TARGET_DEFAULT_RETURN.
12185
d9db5b21
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * target-delegates.c: Rebuild.
12189 * target.c (update_current_target): Don't inherit or default
12190 to_use_agent.
12191 * target.h (struct target_ops) <to_use_agent>: Use
12192 TARGET_DEFAULT_NORETURN.
12193
92155eeb
TT
121942014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * target-delegates.c: Rebuild.
12197 * target.c (update_current_target): Don't inherit or default
12198 to_traceframe_info.
12199 (return_null): Remove.
12200 * target.h (struct target_ops) <to_traceframe_info>: Use
12201 TARGET_DEFAULT_RETURN.
12202
d6522a22
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (update_current_target): Don't inherit or default
12207 to_static_tracepoint_markers_by_strid.
12208 * target.h (struct target_ops)
12209 <to_static_tracepoint_markers_by_strid>: Use
12210 TARGET_DEFAULT_NORETURN.
12211
4c3e4425
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_static_tracepoint_marker_at.
12217 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12218 Use TARGET_DEFAULT_RETURN.
12219
dcd6917f
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_set_permissions.
12225 * target.h (struct target_ops) <to_set_permissions>: Use
12226 TARGET_DEFAULT_IGNORE.
12227
22bcceee
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_get_tib_address.
12233 * target.h (struct target_ops) <to_get_tib_address>: Use
12234 TARGET_DEFAULT_NORETURN.
12235
8586ccaa
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_set_trace_notes.
12241 * target.h (struct target_ops) <to_set_trace_notes>: Use
12242 TARGET_DEFAULT_RETURN.
12243
91df8d1d
TT
122442014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * target-delegates.c: Rebuild.
12247 * target.c (update_current_target): Don't initialize
12248 to_set_trace_buffer_size.
12249 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12250 TARGET_DEFAULT_IGNORE.
12251
8d526939
TT
122522014-02-19 Tom Tromey <tromey@redhat.com>
12253
12254 * target-delegates.c: Rebuild.
12255 * target.c (update_current_target): Don't inherit or default
12256 to_set_circular_trace_buffer.
12257 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12258 TARGET_DEFAULT_IGNORE.
12259
0bcfeddf
TT
122602014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target-delegates.c: Rebuild.
12263 * target.c (update_current_target): Don't inherit or default
12264 to_set_disconnected_tracing.
12265 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12266 TARGET_DEFAULT_IGNORE.
12267
9249843f
TT
122682014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target-delegates.c: Rebuild.
12271 * target.c (update_current_target): Don't inherit or default
12272 to_get_min_fast_tracepoint_insn_len.
12273 (return_minus_one): Remove.
12274 * target.h (struct target_ops)
12275 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12276
ace92e7d
TT
122772014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12281 to_get_raw_trace_data.
12282 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12283 TARGET_DEFAULT_NORETURN.
12284
08120467
TT
122852014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_upload_trace_state_variables.
12290 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12291 Use TARGET_DEFAULT_RETURN.
12292
1e949b00
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_upload_tracepoints.
12298 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12299 TARGET_DEFAULT_RETURN.
12300
a2e6c147
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_save_trace_data.
12306 * target.h (struct target_ops) <to_save_trace_data>: Use
12307 TARGET_DEFAULT_NORETURN.
12308
959bcd0b
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_get_trace_state_variable_value.
12314 * target.h (struct target_ops)
12315 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12316
afc94e66
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_trace_find.
12322 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12323
e51c07ea
TT
123242014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target-delegates.c: Rebuild.
12327 * target.c (update_current_target): Don't inherit or default
12328 to_trace_stop.
12329 * target.h (struct target_ops) <to_trace_stop>: Use
12330 TARGET_DEFAULT_NORETURN.
12331
6fea14cd
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target-delegates.c: Rebuild.
12335 * target.c (update_current_target): Don't inherit or default
12336 to_get_tracepoint_status.
12337 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12338 TARGET_DEFAULT_NORETURN.
12339
4072d4ff
TT
123402014-02-19 Tom Tromey <tromey@redhat.com>
12341
12342 * target-delegates.c: Rebuild.
12343 * target.c (update_current_target): Don't inherit or default
12344 to_get_trace_status.
12345 * target.h (struct target_ops) <to_get_trace_status>: Use
12346 TARGET_DEFAULT_RETURN.
12347
25da2e80
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target-delegates.c: Rebuild.
12351 * target.c (update_current_target): Don't inherit or default
12352 to_trace_start.
12353 * target.h (struct target_ops) <to_trace_start>: Use
12354 TARGET_DEFAULT_NORETURN.
12355
86dd181d
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * target-delegates.c: Rebuild.
12359 * target.c (update_current_target): Don't inherit or default
12360 to_trace_set_readonly_regions.
12361 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12362 Use TARGET_DEFAULT_NORETURN.
12363
05c41993
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target-delegates.c: Rebuild.
12367 * target.c (update_current_target): Don't inherit or default
12368 to_disable_tracepoint.
12369 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12370 TARGET_DEFAULT_NORETURN.
12371
151f70f1
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target-delegates.c: Rebuild.
12375 * target.c (update_current_target): Don't inherit or default
12376 to_enable_tracepoint.
12377 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12378 TARGET_DEFAULT_NORETURN.
12379
94eb98b9
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target-delegates.c: Rebuild.
12383 * target.c (update_current_target): Don't inherit or default
12384 to_download_trace_state_variable.
12385 * target.h (struct target_ops) <to_download_trace_state_variable>:
12386 Use TARGET_DEFAULT_NORETURN.
12387
719acc4a
TT
123882014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target-delegates.c: Rebuild.
12391 * target.c (update_current_target): Don't inherit or default
12392 to_can_download_tracepoint.
12393 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12394 TARGET_DEFAULT_RETURN.
12395
9a980a22
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target-delegates.c: Rebuild.
12399 * target.c (update_current_target): Don't inherit or default
12400 to_download_tracepoint.
12401 * target.h (struct target_ops) <to_download_tracepoint>: Use
12402 TARGET_DEFAULT_NORETURN.
12403
5536135b
TT
124042014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target-delegates.c: Rebuild.
12407 * target.c (update_current_target): Don't inherit or default
12408 to_trace_init.
12409 * target.h (struct target_ops) <to_trace_init>: Use
12410 TARGET_DEFAULT_RETURN.
12411
9409d39e
TT
124122014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target-delegates.c: Rebuild.
12415 * target.c (update_current_target): Don't inherit or default
12416 to_supports_string_tracing.
12417 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12418 TARGET_DEFAULT_RETURN.
12419
aab1b22d
TT
124202014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target-delegates.c: Rebuild.
12423 * target.c (update_current_target): Don't inherit or default
12424 to_supports_enable_disable_tracepoint.
12425 * target.h (struct target_ops)
12426 <to_supports_enable_disable_tracepoint>: Use
12427 TARGET_DEFAULT_RETURN.
12428
a7304748
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_supports_multi_process.
12434 * target.h (struct target_ops) <to_supports_multi_process>: Use
12435 TARGET_DEFAULT_RETURN.
12436
4229b31d
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_get_ada_task_ptid.
12442 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12443 TARGET_DEFAULT_FUNC.
12444
43eba180
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_thread_architecture.
12450 * target.h (struct target_ops) <to_thread_architecture>: Use
12451 TARGET_DEFAULT_FUNC.
12452
fe31bf5b
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_execution_direction.
12458 * target.h (struct target_ops) <to_execution_direction>: Use
12459 TARGET_DEFAULT_FUNC.
12460
53e1cfc7
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_can_execute_reverse.
12466 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12467 TARGET_DEFAULT_RETURN.
12468 (target_can_execute_reverse): Unconditionally delegate.
12469
9bb9d61d
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_goto_bookmark.
12475 (dummy_goto_bookmark): Remove.
12476 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12477 * target.h (struct target_ops) <to_goto_bookmark>: Use
12478 TARGET_DEFAULT_NORETURN.
12479
3dbafbbb
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target-delegates.c: Rebuild.
12483 * target.c (update_current_target): Don't inherit or default
12484 to_get_bookmark.
12485 (dummy_get_bookmark): Remove.
12486 (init_dummy_target): Don't inherit or default to_get_bookmark.
12487 * target.h (struct target_ops) <to_get_bookmark>: Use
12488 TARGET_DEFAULT_NORETURN
12489
16f796b1
TT
124902014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target-delegates.c: Rebuild.
12493 * target.c (update_current_target): Don't inherit or default
12494 to_make_corefile_notes.
12495 (init_dummy_target): Don't initialize to_make_corefile_notes.
12496 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12497 TARGET_DEFAULT_FUNC.
12498
0b5a2719
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target-delegates.c: Rebuild.
12502 * target.c (update_current_target): Don't inherit or default
12503 to_find_memory_regions.
12504 (init_dummy_target): Don't initialize to_find_memory_regions.
12505 * target.h (struct target_ops) <to_find_memory_regions>: Use
12506 TARGET_DEFAULT_FUNC.
12507
d9cb0195
TT
125082014-02-19 Tom Tromey <tromey@redhat.com>
12509
12510 * target-delegates.c: Rebuild.
12511 * target.c (update_current_target): Don't inherit or default
12512 to_log_command.
12513 * target.h (struct target_ops) <to_log_command>: Use
12514 TARGET_DEFAULT_IGNORE.
12515 (target_log_command): Unconditionally delegate.
12516
830ca330
TT
125172014-02-19 Tom Tromey <tromey@redhat.com>
12518
12519 * target-delegates.c: Rebuild.
12520 * target.c (update_current_target): Don't inherit or default
12521 to_pid_to_exec_file.
12522 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12523 TARGET_DEFAULT_RETURN.
12524
825828fc
TT
125252014-02-19 Tom Tromey <tromey@redhat.com>
12526
12527 * target-delegates.c: Rebuild.
12528 * target.c (update_current_target): Don't inherit or default
12529 to_thread_name.
12530 (target_thread_name): Unconditionally delegate.
12531 * target.h (struct target_ops) <to_thread_name>: Use
12532 TARGET_DEFAULT_RETURN.
12533
4a7e6dda
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_extra_thread_info.
12539 * target.h (struct target_ops) <to_extra_thread_info>: Use
12540 TARGET_DEFAULT_RETURN.
12541
0db88c1d
TT
125422014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target-delegates.c: Rebuild.
12545 * target.c (update_current_target): Don't inherit or default
12546 to_has_exited.
12547 * target.h (struct target_ops) <to_has_exited>: Use
12548 TARGET_DEFAULT_RETURN..
12549
6a9fa051
TT
125502014-02-19 Tom Tromey <tromey@redhat.com>
12551
12552 * target-delegates.c: Rebuild.
12553 * target.c (update_current_target): Don't inherit or default
12554 to_set_syscall_catchpoint.
12555 (return_one): Remove.
12556 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12557 TARGET_DEFAULT_RETURN.
12558
62f64d7a
TT
125592014-02-19 Tom Tromey <tromey@redhat.com>
12560
12561 * target-delegates.c: Rebuild.
12562 * target.c (update_current_target): Don't inherit or default
12563 to_insert_exec_catchpoint.
12564 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12565 TARGET_DEFAULT_RETURN.
12566
cda0f38c
TT
125672014-01-08 Tom Tromey <tromey@redhat.com>
12568
12569 * target-delegates.c: Rebuild.
12570 * target.c (update_current_target): Don't inherit or default
12571 to_insert_exec_catchpoint.
12572 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12573 TARGET_DEFAULT_RETURN.
12574
95c3375e
TT
125752014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target-delegates.c: Rebuild.
12578 * target.c (update_current_target): Don't inherit or default
12579 to_remove_vfork_catchpoint.
12580 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12581 TARGET_DEFAULT_RETURN.
12582
7e18a8dc
TT
125832014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * target-delegates.c: Rebuild.
12586 * target.c (update_current_target): Don't inherit or default
12587 to_insert_vfork_catchpoint.
12588 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12589 TARGET_DEFAULT_RETURN.
12590
e1a21fb7
TT
125912014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target-delegates.c: Rebuild.
12594 * target.c (update_current_target): Don't inherit or default
12595 to_remove_fork_catchpoint.
12596 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12597 TARGET_DEFAULT_RETURN.
12598
5958ebeb
TT
125992014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * target-delegates.c: Rebuild.
12602 * target.c (update_current_target): Don't inherit or default
12603 to_insert_fork_catchpoint.
12604 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12605 TARGET_DEFAULT_RETURN.
12606
340ba4bf
TT
126072014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target-delegates.c: Rebuild.
12610 * target.c (update_current_target): Don't inherit or default
12611 to_post_startup_inferior.
12612 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12613 TARGET_DEFAULT_IGNORE.
12614
7634da87
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12619 to_load.
12620 * target.h (struct target_ops) <to_load>: Use
12621 TARGET_DEFAULT_NORETURN.
12622
e19e919f
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12627 to_terminal_info.
12628 * target.h (struct target_ops) <to_terminal_info>: Use
12629 TARGET_DEFAULT_FUNC.
12630
c6ea8f79
TT
126312014-02-19 Tom Tromey <tromey@redhat.com>
12632
12633 * target-delegates.c: Rebuild.
12634 * target.c (update_current_target): Don't inherit or default
12635 to_terminal_save_ours.
12636 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12637 TARGET_DEFAULT_IGNORE.
12638
e4a733f1
TT
126392014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target-delegates.c: Rebuild.
12642 * target.c (update_current_target): Don't inherit or default
12643 to_terminal_ours.
12644 * target.h (struct target_ops) <to_terminal_ours>: Use
12645 TARGET_DEFAULT_IGNORE.
12646
74fcbef9
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target-delegates.c: Rebuild.
12650 * target.c (update_current_target): Don't inherit or default
12651 to_terminal_ours_for_output.
12652 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12653 TARGET_DEFAULT_IGNORE.
12654
ddeaacc9
TT
126552014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * target-delegates.c: Rebuild.
12658 * target.c (update_current_target): Don't inherit or default
12659 to_terminal_inferior.
12660 * target.h (struct target_ops) <to_terminal_inferior>: Use
12661 TARGET_DEFAULT_IGNORE.
12662
0343661d
TT
126632014-02-19 Tom Tromey <tromey@redhat.com>
12664
12665 * target-delegates.c: Rebuild.
12666 * target.c (update_current_target): Don't inherit or default
12667 to_terminal_init.
12668 * target.h (struct target_ops) <to_terminal_init>: Use
12669 TARGET_DEFAULT_IGNORE.
12670
77cdffe9
TT
126712014-02-19 Tom Tromey <tromey@redhat.com>
12672
12673 * target-delegates.c: Rebuild.
12674 * target.c (update_current_target): Don't inherit or default
12675 to_can_accel_watchpoint_condition.
12676 * target.h (struct target_ops)
12677 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12678
d03655e4
TT
126792014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * target-delegates.c: Rebuild.
12682 * target.c (update_current_target): Don't inherit or default
12683 to_region_ok_for_hw_watchpoint.
12684 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12685 Use TARGET_DEFAULT_FUNC.
12686
65f160a9
TT
126872014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * target-delegates.c: Rebuild.
12690 * target.c (update_current_target): Don't inherit or default
12691 to_watchpoint_addr_within_range.
12692 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12693 Use TARGET_DEFAULT_FUNC.
12694
61dd109f
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target-delegates.c: Rebuild.
12698 * target.c (update_current_target): Don't inherit or default
12699 to_remove_watchpoint.
12700 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12701 TARGET_DEFAULT_NORETURN.
12702
016facd4
TT
127032014-02-19 Tom Tromey <tromey@redhat.com>
12704
12705 * target-delegates.c: Rebuild.
12706 * target.c (update_current_target): Don't inherit or default
12707 to_insert_watchpoint.
12708 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12709 TARGET_DEFAULT_RETURN.
12710
418dabac
TT
127112014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * target-delegates.c: Rebuild.
12714 * target.c (update_current_target): Don't inherit or default
12715 to_remove_hw_breakpoint.
12716 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12717 TARGET_DEFAULT_RETURN.
12718
61b371f9
TT
127192014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target-delegates.c: Rebuild.
12722 * target.c (update_current_target): Don't inherit or default
12723 to_insert_hw_breakpoint.
12724 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12725 TARGET_DEFAULT_RETURN.
12726
52b51d06
TT
127272014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * target-delegates.c: Rebuild.
12730 * target.c (update_current_target): Don't inherit or default
12731 to_can_use_hw_breakpoint.
12732 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12733 TARGET_DEFAULT_RETURN.
12734
f86e59b2
TT
127352014-02-19 Tom Tromey <tromey@redhat.com>
12736
12737 * target-delegates.c: Rebuild.
12738 * target.c (update_current_target): Don't inherit or default
12739 to_files_info.
12740 * target.h (struct target_ops) <to_files_info>: Use
12741 TARGET_DEFAULT_IGNORE.
12742
6c628163
TT
127432014-02-19 Tom Tromey <tromey@redhat.com>
12744
12745 * target-delegates.c: Rebuild.
12746 * target.c (update_current_target): Don't inherit or default
12747 to_store.
12748 * target.h (struct target_ops) <to_store>: Use
12749 TARGET_DEFAULT_NORETURN.
12750
bebd3233
TT
127512014-02-19 Tom Tromey <tromey@redhat.com>
12752
12753 * target-delegates.c: Rebuild.
12754 * target.c (update_current_target): Don't inherit or default
12755 to_post_attach.
12756 * target.h (struct target_ops) <to_post_attach>: Use
12757 TARGET_DEFAULT_IGNORE.
12758
a53f3625
TT
127592014-02-19 Tom Tromey <tromey@redhat.com>
12760
12761 * target-delegates.c: Rebuild.
12762 * target.c (update_current_target): Don't inherit or default
12763 to_rcmd.
12764 (default_rcmd): New function.
12765 (do_monitor_command): Unconditionally delegate.
12766 * target.h (struct target_ops) <to_rmcd>: Use
12767 TARGET_DEFAULT_FUNC.
12768
e9a29200
TT
127692014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target-delegates.c: Rebuild.
12772 * target.c (init_dummy_target): Don't initialize to_attach.
12773 (target_attach): Unconditionally delegate.
12774 * target.h (struct target_ops) <to_attach>: Use
12775 TARGET_DEFAULT_FUNC.
12776
09da0d0a
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target-delegates.c: Rebuild.
12780 * target.c (target_detach): Unconditionally delegate.
12781 (init_dummy_target): Don't initialize to_detach.
12782 * target.h (struct target_ops) <to_detach>: Use
12783 TARGET_DEFAULT_IGNORE.
12784
5436ff03
TT
127852014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12788 Add argument.
12789 (target_augmented_libraries_svr4_read): Add argument.
12790 * target.c (update_current_target): Update.
12791 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12792 argument.
12793
f0d960ea
TT
127942014-02-19 Tom Tromey <tromey@redhat.com>
12795
12796 * target.h (struct target_ops) <to_call_history_range>: Add
12797 argument.
12798 * target.c (target_call_history_range): Add argument.
12799 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12800 argument.
12801 (record_btrace_call_history_from): Update.
12802
ec0aea04
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_call_history_from>: Add
12806 argument.
12807 * target.c (target_call_history_from): Add argument.
12808 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12809 argument.
12810
5df2fcba
TT
128112014-02-19 Tom Tromey <tromey@redhat.com>
12812
12813 * target.h (struct target_ops) <to_call_history>: Add argument.
12814 * target.c (target_call_history): Add argument.
12815 * record-btrace.c (record_btrace_call_history): Add 'self'
12816 argument.
12817
4e99c6b7
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_insn_history_range>: Add
12821 argument.
12822 * target.c (target_insn_history_range): Add argument.
12823 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12824 argument.
12825 (record_btrace_insn_history_from): Update.
12826
9abc3ff3
TT
128272014-02-19 Tom Tromey <tromey@redhat.com>
12828
12829 * target.h (struct target_ops) <to_insn_history_from>: Add
12830 argument.
12831 * target.c (target_insn_history_from): Add argument.
12832 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12833 argument.
12834
7a6c5609
TT
128352014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 * target.h (struct target_ops) <to_insn_history>: Add argument.
12838 * target.c (target_insn_history): Add argument.
12839 * record-btrace.c (record_btrace_insn_history): Add 'self'
12840 argument.
12841
606183ac
TT
128422014-02-19 Tom Tromey <tromey@redhat.com>
12843
12844 * target.h (struct target_ops) <to_goto_record>: Add argument.
12845 * target.c (target_goto_record): Add argument.
12846 * record-full.c (record_full_goto): Add 'self' argument.
12847 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12848
307a1b91
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12852 * target.c (target_goto_record_end): Add argument.
12853 * record-full.c (record_full_goto_end): Add 'self' argument.
12854 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12855
08475817
TT
128562014-02-19 Tom Tromey <tromey@redhat.com>
12857
12858 * target.h (struct target_ops) <to_goto_record_begin>: Add
12859 argument.
12860 * target.c (target_goto_record_begin): Add argument.
12861 * record-full.c (record_full_goto_begin): Add 'self' argument.
12862 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12863 argument.
12864
1c63c994
TT
128652014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_record_is_replaying>: Add
12868 argument.
12869 * target.c (target_record_is_replaying): Add argument.
12870 * record-full.c (record_full_is_replaying): Add 'self' argument.
12871 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12872 argument.
12873 (record_btrace_xfer_partial, record_btrace_store_registers)
12874 (record_btrace_prepare_to_store, record_btrace_resume)
12875 (record_btrace_wait, record_btrace_decr_pc_after_break)
12876 (record_btrace_find_new_threads, record_btrace_thread_alive):
12877 Update.
12878
d1b55219
TT
128792014-02-19 Tom Tromey <tromey@redhat.com>
12880
12881 * target.h (struct target_ops) <to_delete_record>: Add argument.
12882 * target.c (target_delete_record): Add argument.
12883 * record-full.c (record_full_delete): Add 'self' argument.
12884
1390f529
TT
128852014-02-19 Tom Tromey <tromey@redhat.com>
12886
12887 * target.h (struct target_ops) <to_save_record>: Add argument.
12888 * target.c (target_save_record): Add argument.
12889 * record-full.c (record_full_save): Add 'self' argument.
12890 (record_full_save): Add 'self' argument.
12891
630d6a4a
TT
128922014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * target.h (struct target_ops) <to_info_record>: Add argument.
12895 * target.c (target_info_record): Add argument.
12896 * record.c (info_record_command): Add argument.
12897 * record-full.c (record_full_info): Add 'self' argument.
12898 * record-btrace.c (record_btrace_info): Add 'self' argument.
12899
c6cd7c02
TT
129002014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12903 * target.c (target_stop_recording): Add argument.
12904 * record.c (record_stop): Add argument.
12905 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12906 argument.
12907
39c49f83
TT
129082014-02-19 Tom Tromey <tromey@redhat.com>
12909
12910 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12911 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12912 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12913 argument.
12914 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12915 (_initialize_amd64_linux_nat): Use it.
12916 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12917 (_initialize_i386_linux_nat): Use it.
12918
1777056d
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12922 * target.c (target_teardown_btrace): Add argument.
12923 * remote.c (remote_teardown_btrace): Add 'self' argument.
12924 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12925 argument.
12926 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12927 argument.
12928
25e95349
TT
129292014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12932 * target.c (target_disable_btrace): Add argument.
12933 * remote.c (remote_disable_btrace): Add 'self' argument.
12934 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12935 argument.
12936 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12937 argument.
12938
e3c49f88
TT
129392014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12942 * target.c (target_enable_btrace): Add argument.
12943 * remote.c (remote_enable_btrace): Add 'self' argument.
12944 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12945 argument.
12946 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12947 argument.
12948
fe38f897
TT
129492014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12952 (target_can_use_agent): Add argument.
12953 * target.c (update_current_target): Update.
12954 * remote.c (remote_can_use_agent): Add 'self' argument.
12955 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12956
2c152180
TT
129572014-02-19 Tom Tromey <tromey@redhat.com>
12958
12959 * target.h (struct target_ops) <to_use_agent>: Add argument.
12960 (target_use_agent): Add argument.
12961 * target.c (update_current_target): Update.
12962 * remote.c (remote_use_agent): Add 'self' argument.
12963 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12964
a893e81f
TT
129652014-02-19 Tom Tromey <tromey@redhat.com>
12966
12967 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12968 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12969 (target_traceframe_info): Add argument.
12970 * target.c (update_current_target): Update.
12971 * remote.c (remote_traceframe_info): Add 'self' argument.
12972 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12973
c686c57f
TT
129742014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (target_static_tracepoint_markers_by_strid): Add
12977 argument.
12978 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12979 'self' argument.
12980 * target.c (update_current_target): Update.
12981 * remote.c (struct target_ops)
12982 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12983 * linux-nat.c (struct target_ops)
12984 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12985
61fc905d
TT
129862014-02-19 Tom Tromey <tromey@redhat.com>
12987
12988 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12989 Add argument.
12990 (target_static_tracepoint_marker_at): Add argument.
12991 * target.c (update_current_target): Update.
12992 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12993 argument.
12994
c378d69d
TT
129952014-02-19 Tom Tromey <tromey@redhat.com>
12996
12997 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12998 (target_set_permissions): Add argument.
12999 * target.c (update_current_target): Update.
13000 * remote.c (remote_set_permissions): Add 'self' argument.
13001 (remote_start_remote): Update.
13002
bd7ae0f5
TT
130032014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13006 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13007 (target_get_tib_address): Add argument.
13008 * target.c (update_current_target): Update.
13009 * remote.c (remote_get_tib_address): Add 'self' argument.
13010
d9e68a2c
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13014 (target_set_trace_notes): Add argument.
13015 * target.c (update_current_target): Update.
13016 * remote.c (remote_set_trace_notes): Add 'self' argument.
13017
4da384be
TT
130182014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13021 argument.
13022 (target_set_trace_buffer_size): Add argument.
13023 * target.c (update_current_target): Update.
13024 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13025
736d5b1f
TT
130262014-02-19 Tom Tromey <tromey@redhat.com>
13027
13028 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13029 argument.
13030 (target_set_circular_trace_buffer): Add argument.
13031 * target.c (update_current_target): Update.
13032 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13033 argument.
13034
37b25738
TT
130352014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13038 argument.
13039 (target_set_disconnected_tracing): Add argument.
13040 * target.c (update_current_target): Update.
13041 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13042
0e67620a
TT
130432014-02-19 Tom Tromey <tromey@redhat.com>
13044
13045 * target.h (struct target_ops)
13046 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13047 (target_get_min_fast_tracepoint_insn_len): Add argument.
13048 * target.c (update_current_target): Update.
13049 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13050 argument.
13051
88ee6f45
TT
130522014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13055 argument.
13056 (target_get_raw_trace_data): Add argument.
13057 * target.c (update_current_target): Update.
13058 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13059
181e3713
TT
130602014-02-19 Tom Tromey <tromey@redhat.com>
13061
13062 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13063 Add argument.
13064 (target_upload_trace_state_variables): Add argument.
13065 * target.c (update_current_target): Update.
13066 * remote.c (remote_upload_trace_state_variables): Add 'self'
13067 argument.
13068 (remote_start_remote): Update.
13069
ab6617cc
TT
130702014-02-19 Tom Tromey <tromey@redhat.com>
13071
13072 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13073 argument.
13074 (target_upload_tracepoints): Add argument.
13075 * target.c (update_current_target): Update.
13076 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13077 (remote_start_remote): Update.
13078
dc3decaf
TT
130792014-02-19 Tom Tromey <tromey@redhat.com>
13080
13081 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13082 (target_save_trace_data): Add argument.
13083 * target.c (update_current_target): Update.
13084 * remote.c (remote_save_trace_data): Add 'self' argument.
13085
4011015b
TT
130862014-02-19 Tom Tromey <tromey@redhat.com>
13087
13088 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13089 argument.
13090 * target.h (struct target_ops)
13091 <to_get_trace_state_variable_value>: Add argument.
13092 (target_get_trace_state_variable_value): Add argument.
13093 * target.c (update_current_target): Update.
13094 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13095 argument.
13096 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13097
bd4c6793
TT
130982014-02-19 Tom Tromey <tromey@redhat.com>
13099
13100 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13101 * target.h (struct target_ops) <to_trace_find>: Add argument.
13102 (target_trace_find): Add argument.
13103 * target.c (update_current_target): Update.
13104 * remote.c (remote_trace_find): Add 'self' argument.
13105 * ctf.c (ctf_trace_find): Add 'self' argument.
13106
74499f1b
TT
131072014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13110 (target_trace_stop): Add argument.
13111 * target.c (update_current_target): Update.
13112 * remote.c (remote_trace_stop): Add 'self' argument.
13113
db90e85c
TT
131142014-02-19 Tom Tromey <tromey@redhat.com>
13115
13116 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13117 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13118 argument.
13119 (target_get_tracepoint_status): Add argument.
13120 * target.c (update_current_target): Update.
13121 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13122
8bd200f1
TT
131232014-02-19 Tom Tromey <tromey@redhat.com>
13124
13125 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13126 * target.h (struct target_ops) <to_get_trace_status>: Add
13127 argument.
13128 (target_get_trace_status): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_get_trace_status): Add 'self' argument.
13131 (remote_start_remote, remote_can_download_tracepoint): Update.
13132 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13133
e2d1aae3
TT
131342014-02-19 Tom Tromey <tromey@redhat.com>
13135
13136 * target.h (struct target_ops) <to_trace_start>: Add argument.
13137 (target_trace_start): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_trace_start): Add 'self' argument.
13140
583f9a86
TT
131412014-02-19 Tom Tromey <tromey@redhat.com>
13142
13143 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13144 Add argument.
13145 (target_trace_set_readonly_regions): Add argument.
13146 * target.c (update_current_target): Update.
13147 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13148 argument.
13149
780b049c
TT
131502014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13153 argument.
13154 (target_disable_tracepoint): Add argument.
13155 * target.c (update_current_target): Update.
13156 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13157
46670d57
TT
131582014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13161 argument.
13162 (target_enable_tracepoint): Add argument.
13163 * target.c (update_current_target): Update.
13164 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13165
559d2b81
TT
131662014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops) <to_download_trace_state_variable>:
13169 Add argument.
13170 (target_download_trace_state_variable): Add argument.
13171 * target.c (update_current_target): Update.
13172 * remote.c (remote_download_trace_state_variable): Add 'self'
13173 argument.
13174
a52a8357
TT
131752014-02-19 Tom Tromey <tromey@redhat.com>
13176
13177 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13178 argument.
13179 (target_can_download_tracepoint): Add argument.
13180 * target.c (update_current_target): Update.
13181 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13182
548f7808
TT
131832014-02-19 Tom Tromey <tromey@redhat.com>
13184
13185 * target.h (struct target_ops) <to_download_tracepoint>: Add
13186 argument.
13187 (target_download_tracepoint): Add argument.
13188 * target.c (update_current_target): Update.
13189 * remote.c (remote_download_tracepoint): Add 'self' argument.
13190
ecae04e1
TT
131912014-02-19 Tom Tromey <tromey@redhat.com>
13192
13193 * target.h (struct target_ops) <to_trace_init>: Add argument.
13194 (target_trace_init): Add argument.
13195 * target.c (update_current_target): Update.
13196 * remote.c (remote_trace_init): Add 'self' argument.
13197
fab5aa7c
TT
131982014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13201 * target.c (target_fileio_readlink): Add argument.
13202 * remote.c (remote_hostio_readlink): Add 'self' argument.
13203 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13204
dbbca37d
TT
132052014-02-19 Tom Tromey <tromey@redhat.com>
13206
13207 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13208 * target.c (target_fileio_unlink): Add argument.
13209 * remote.c (remote_hostio_unlink): Add 'self' argument.
13210 (remote_file_delete): Update.
13211 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13212
df39ea25
TT
132132014-02-19 Tom Tromey <tromey@redhat.com>
13214
13215 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13216 * target.c (target_fileio_close): Add argument.
13217 * remote.c (remote_hostio_close): Add 'self' argument.
13218 (remote_hostio_close_cleanup): Update.
13219 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13220 Update.
13221 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13222
a3be983c
TT
132232014-02-19 Tom Tromey <tromey@redhat.com>
13224
13225 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13226 * target.c (target_fileio_pread): Add argument.
13227 * remote.c (remote_hostio_pread): Add 'self' argument.
13228 (remote_bfd_iovec_pread, remote_file_get): Update.
13229 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13230
0d866f62
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13234 * target.c (target_fileio_pwrite): Add argument.
13235 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13236 (remote_file_put): Update.
13237 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13238
cd897586
TT
132392014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13242 * target.c (target_fileio_open): Add argument.
13243 * remote.c (remote_hostio_open): Add 'self' argument.
13244 (remote_bfd_iovec_open): Add 'self' argument.
13245 (remote_file_put): Add 'self' argument.
13246 (remote_file_get): Add 'self' argument.
13247 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13248
78eff0ec
TT
132492014-02-19 Tom Tromey <tromey@redhat.com>
13250
13251 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13252 Add argument.
13253 (target_can_run_breakpoint_commands): Add argument.
13254 * target.c (update_current_target): Update.
13255 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13256 argument.
13257 (remote_insert_breakpoint): Add 'self' argument.
13258 (remote_insert_hw_breakpoint): Add 'self' argument.
13259 (remote_can_run_breakpoint_commands): Add 'self' argument.
13260
efcc2da7
TT
132612014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * target.h (struct target_ops)
13264 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13265 (target_supports_evaluation_of_breakpoint_conditions): Add
13266 argument.
13267 * target.c (update_current_target): Update.
13268 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13269 argument.
13270 (remote_insert_breakpoint): Add 'self' argument.
13271 (remote_insert_hw_breakpoint): Add 'self' argument.
13272 (remote_supports_cond_breakpoints): Add 'self' argument.
13273
6de37a3a
TT
132742014-02-19 Tom Tromey <tromey@redhat.com>
13275
13276 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13277 argument.
13278 (target_supports_string_tracing): Add argument.
13279 * target.c (update_current_target): Update.
13280 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13281
2bfc0540
TT
132822014-02-19 Tom Tromey <tromey@redhat.com>
13283
13284 * target.h (struct target_ops)
13285 <to_supports_disable_randomization>: Add argument.
13286 * target.c (find_default_supports_disable_randomization): Add
13287 argument.
13288 (target_supports_disable_randomization): Add argument.
13289 (find_default_supports_disable_randomization): Add 'self'
13290 argument.
13291 * remote.c (extended_remote_supports_disable_randomization): Add
13292 'self' argument.
13293 (remote_supports_disable_randomization): Add 'self' argument.
13294 (extended_remote_create_inferior): Update.
13295 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13296 'self' argument.
13297
7d178d6a
TT
132982014-02-19 Tom Tromey <tromey@redhat.com>
13299
13300 * target.h (struct target_ops)
13301 <to_supports_enable_disable_tracepoint>: Add argument.
13302 (target_supports_enable_disable_tracepoint): Add argument.
13303 * target.c (update_current_target): Update.
13304 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13305 argument.
13306
86ce2668
TT
133072014-02-19 Tom Tromey <tromey@redhat.com>
13308
13309 * target.h (struct target_ops) <to_supports_multi_process>: Add
13310 argument.
13311 (target_supports_multi_process): Add argument.
13312 * target.c (update_current_target): Update.
13313 * remote.c (remote_supports_multi_process): Add 'self' argument.
13314 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13315 argument.
13316 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13317 argument.
13318
4c612759
TT
133192014-02-19 Tom Tromey <tromey@redhat.com>
13320
13321 * target.h (struct target_ops) <to_execution_direction>: Add
13322 argument.
13323 (target_execution_direction): Add argument.
13324 * target.c (default_execution_direction): Add 'self' argument.
13325 * record-full.c (record_full_execution_direction): Add 'self'
13326 argument.
13327
19db3e69
TT
133282014-02-19 Tom Tromey <tromey@redhat.com>
13329
13330 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13331 argument.
13332 (target_can_execute_reverse): Add argument.
13333 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13334 * record-full.c (record_full_can_execute_reverse): Add 'self'
13335 argument.
13336 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13337 argument.
13338
1e6b91a4
TT
133392014-02-19 Tom Tromey <tromey@redhat.com>
13340
13341 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13342 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13343 argument.
13344 (target_get_ada_task_ptid): Add argument.
13345 * target.c (update_current_target): Update.
13346 (default_get_ada_task_ptid): Add 'self' argument.
13347 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13348 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13349 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13350 argument.
13351 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13352 argument.
13353 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13354 argument.
13355 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13356 argument.
13357 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13358 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13359 argument.
13360
3c80fb48
TT
133612014-02-19 Tom Tromey <tromey@redhat.com>
13362
13363 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13364 (target_goto_bookmark): Add argument.
13365 * target.c (dummy_goto_bookmark): Add 'self' argument.
13366 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13367
dd0e2830
TT
133682014-02-19 Tom Tromey <tromey@redhat.com>
13369
13370 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13371 (target_get_bookmark): Add argument.
13372 * target.c (dummy_get_bookmark): Add 'self' argument.
13373 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13374
fc6691b2
TT
133752014-02-19 Tom Tromey <tromey@redhat.com>
13376
13377 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13378 argument.
13379 (target_make_corefile_notes): Add argument.
13380 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13381 * procfs.c (procfs_make_note_section): Add 'self' argument.
13382 (procfs_make_note_section): Add 'self' argument.
13383 (procfs_make_note_section): Add 'self' argument.
13384 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13385 argument.
13386 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13387 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13388 * exec.c (exec_make_note_section): Add 'self' argument.
13389 (exec_make_note_section): Add 'self' argument.
13390
2e73927c
TT
133912014-02-19 Tom Tromey <tromey@redhat.com>
13392
13393 * target.h (struct target_ops) <to_find_memory_regions>: Add
13394 argument.
13395 (target_find_memory_regions): Add argument.
13396 * target.c (dummy_find_memory_regions): Add 'self' argument.
13397 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13398 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13399 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13400 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13401 * exec. (exec_do_find_memory_regions): New global.
13402 (exec_set_find_memory_regions): Rewrite.
13403 (exec_find_memory_regions): New function.
13404 (init_exec_ops): Use exec_find_memory_regions.
13405
2a9a2795
TT
134062014-02-19 Tom Tromey <tromey@redhat.com>
13407
13408 * target.h (struct target_ops) <to_supports_non_stop>: Add
13409 argument.
13410 * target.c (find_default_supports_non_stop): Add argument.
13411 (target_supports_non_stop): Add argument.
13412 (find_default_supports_non_stop): Add 'self' argument.
13413 * remote.c (remote_supports_non_stop): Add 'self' argument.
13414 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13415
4ab76ea3
TT
134162014-02-19 Tom Tromey <tromey@redhat.com>
13417
13418 * target.h (struct target_ops) <to_log_command>: Add argument.
13419 (target_log_command): Add argument.
13420 * serial.h (serial_log_command): Add 'self' argument.
13421 * serial.c (serial_log_command): Add 'self' argument.
13422
8dd27370
TT
134232014-02-19 Tom Tromey <tromey@redhat.com>
13424
13425 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13426 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13427 argument.
13428 (target_pid_to_exec_file): Add argument.
13429 * target.c (debug_to_pid_to_exec_file): Add argument.
13430 (update_current_target): Update.
13431 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13432 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13433 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13434 (linux_handle_extended_wait): Update.
13435 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13436 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13437 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13438 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13439
1aac633b
TT
134402014-02-19 Tom Tromey <tromey@redhat.com>
13441
13442 * target.h (struct target_ops) <to_rcmd>: Add argument.
13443 (target_rcmd): Add argument.
13444 * target.c (debug_to_rcmd): Add argument.
13445 (update_current_target, do_monitor_command): Update.
13446 * remote.c (remote_rcmd): Add 'self' argument.
13447 * monitor.c (monitor_rcmd): Add 'self' argument.
13448
1eab8a48
TT
134492014-02-19 Tom Tromey <tromey@redhat.com>
13450
13451 * windows-nat.c (windows_stop): Add 'self' argument.
13452 * target.h (struct target_ops) <to_stop>: Add argument.
13453 * target.c (target_stop): Add argument.
13454 (debug_to_stop): Add argument.
13455 (update_current_target): Update.
13456 * remote.c (remote_stop): Add 'self' argument.
13457 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13458 (gdbsim_cntrl_c): Update.
13459 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13460 * procfs.c (procfs_stop): Add 'self' argument.
13461 * nto-procfs.c (procfs_stop): Add 'self' argument.
13462 * monitor.c (monitor_stop): Add 'self' argument.
13463 (monitor_open): Update.
13464 * linux-nat.c (linux_nat_stop): Add argument.
13465 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13466 * gnu-nat.c (gnu_stop): Add 'self' argument.
13467 * darwin-nat.c (darwin_stop): Add 'self' argument.
13468
503a628d
TT
134692014-02-19 Tom Tromey <tromey@redhat.com>
13470
13471 * target.h (struct target_ops) <to_thread_name>: Add argument.
13472 * target.c (target_thread_name): Add argument.
13473 (update_current_target): Update.
13474 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13475
c15906d8
TT
134762014-02-19 Tom Tromey <tromey@redhat.com>
13477
13478 * target.h (struct target_ops) <to_extra_thread_info>: Add
13479 argument.
13480 (target_extra_thread_info): Add argument.
13481 * target.c (update_current_target): Update.
13482 * remote.c (remote_threads_extra_info): Add 'self' argument.
13483 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13484 argument.
13485 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13486 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13487 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13488 argument.
13489 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13490 argument.
13491 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13492 argument.
13493 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13494 argument.
13495
daf5e9b6
TT
134962014-02-19 Tom Tromey <tromey@redhat.com>
13497
13498 * target.h (struct target_ops) <to_program_signals>: Add argument.
13499 * target.c (target_program_signals): Add argument.
13500 * remote.c (remote_program_signals): Add 'self' argument.
13501
94bedb42
TT
135022014-02-19 Tom Tromey <tromey@redhat.com>
13503
13504 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13505 * target.c (target_pass_signals): Add argument.
13506 * remote.c (remote_pass_signals): Add 'self' argument.
13507 (remote_start_remote): Update.
13508 * procfs.c (procfs_pass_signals): Add 'self' argument.
13509 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13510 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13511 (linux_nat_create_inferior, linux_nat_attach): Update.
13512
da82bd6b
TT
135132014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * windows-nat.c (windows_can_run): Add 'self' argument.
13516 * target.h (struct target_ops) <to_can_run>: Add argument.
13517 (target_can_run): Add argument.
13518 * target.c (debug_to_can_run): Add argument.
13519 (update_current_target): Update.
13520 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13521 * inf-child.c (inf_child_can_run): Add 'self' argument.
13522 * go32-nat.c (go32_can_run): Add 'self' argument.
13523
d796e1d6
TT
135242014-02-19 Tom Tromey <tromey@redhat.com>
13525
13526 * target.h (struct target_ops) <to_has_exited>: Add argument.
13527 (target_has_exited): Add argument.
13528 * target.c (debug_to_has_exited): Add argument.
13529 (update_current_target): Update.
13530
ff214e67
TT
135312014-02-19 Tom Tromey <tromey@redhat.com>
13532
13533 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13534 argument.
13535 (target_set_syscall_catchpoint): Add argument.
13536 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13537 argument.
13538 * target.c (update_current_target): Update.
13539
758e29d2
TT
135402014-02-19 Tom Tromey <tromey@redhat.com>
13541
13542 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13543 argument.
13544 (target_remove_exec_catchpoint): Add argument.
13545 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13546 (update_current_target): Update.
13547 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13548 argument.
13549
ba025e51
TT
135502014-02-19 Tom Tromey <tromey@redhat.com>
13551
13552 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13553 argument.
13554 (target_insert_exec_catchpoint): Add argument.
13555 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13556 (update_current_target): Update.
13557 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13558 argument.
13559
e98cf0cd
TT
135602014-02-19 Tom Tromey <tromey@redhat.com>
13561
13562 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13563 argument.
13564 (target_remove_vfork_catchpoint): Add argument.
13565 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13566 (update_current_target): Update.
13567 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13568 argument.
13569
3ecc7da0
TT
135702014-02-19 Tom Tromey <tromey@redhat.com>
13571
13572 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13573 argument.
13574 (target_insert_vfork_catchpoint): Add argument.
13575 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13576 (update_current_target): Update.
13577 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13578 argument.
13579
973fc227
TT
135802014-02-19 Tom Tromey <tromey@redhat.com>
13581
13582 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13583 argument.
13584 (target_remove_fork_catchpoint): Add argument.
13585 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13586 (update_current_target): Update.
13587 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13588 argument.
13589
a863b201
TT
135902014-02-19 Tom Tromey <tromey@redhat.com>
13591
13592 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13593 argument.
13594 (target_insert_fork_catchpoint): Add argument.
13595 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13596 (update_current_target): Update.
13597 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13598 argument.
13599
2e97a79e
TT
136002014-02-19 Tom Tromey <tromey@redhat.com>
13601
13602 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13603 argument.
13604 (target_post_startup_inferior): Add argument.
13605 * target.c (debug_to_post_startup_inferior): Add argument.
13606 (update_current_target): Update.
13607 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13608 argument.
13609 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13610 argument.
13611 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13612 argument.
13613 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13614 argument.
13615 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13616 'self' argument.
13617 (super_post_startup_inferior): Likewise.
13618 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13619 'self' argument.
13620 (super_post_startup_inferior): Likewise.
13621 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13622 Add 'self' argument.
13623 (super_post_startup_inferior): Likewise.
13624
71a9f134
TT
136252014-02-19 Tom Tromey <tromey@redhat.com>
13626
13627 * target.h (struct target_ops) <to_load>: Add argument.
13628 * target.c (target_load): Add argument.
13629 (debug_to_load): Add argument.
13630 (update_current_target): Update.
13631 * remote.c (remote_load): Add 'self' argument.
13632 * remote-sim.c (gdbsim_load): Add 'self' argument.
13633 * remote-mips.c (mips_load): Add 'self' argument.
13634 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13635 * monitor.c (monitor_load): Add 'self' argument.
13636 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13637
0a4f40a2
TT
136382014-02-19 Tom Tromey <tromey@redhat.com>
13639
13640 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13641 (target_terminal_info): Add argument.
13642 * target.c (debug_to_terminal_info): Add argument.
13643 (default_terminal_info): Likewise.
13644 * inflow.c (child_terminal_info): Add 'self' argument.
13645 * inferior.h (child_terminal_info): Add 'self' argument.
13646 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13647
ae3bd431
TT
136482014-02-19 Tom Tromey <tromey@redhat.com>
13649
13650 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13651 argument.
13652 (target_terminal_save_ours): Add argument.
13653 * target.c (debug_to_terminal_save_ours): Add argument.
13654 (update_current_target): Update.
13655 * inflow.c (terminal_save_ours): Add 'self' argument.
13656 * inferior.h (terminal_save_ours): Add 'self' argument.
13657
e3594fd1
TT
136582014-02-19 Tom Tromey <tromey@redhat.com>
13659
13660 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13661 (target_terminal_ours): Add argument.
13662 * target.c (debug_to_terminal_ours): Add argument.
13663 (update_current_target): Update.
13664 * remote.c (remote_terminal_ours): Add 'self' argument.
13665 (remote_close): Update.
13666 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13667 * inflow.c (terminal_ours): Add 'self' argument.
13668 * inferior.h (terminal_ours): Add 'self' argument.
13669 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13670
2e1e1a19
TT
136712014-02-19 Pedro Alves <palves@redhat.com>
13672 Tom Tromey <tromey@redhat.com>
13673
13674 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13675 argument.
13676 (target_terminal_ours_for_output): Add argument.
13677 * target.c (debug_to_terminal_ours_for_output): Add argument.
13678 (update_current_target): Update.
13679 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13680 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13681 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13682
d2f640d4
TT
136832014-02-19 Tom Tromey <tromey@redhat.com>
13684
13685 * target.h (struct target_ops) <to_terminal_inferior>: Add
13686 argument.
13687 * target.c (target_terminal_inferior): Add argument.
13688 (update_current_target): Update.
13689 * remote.c (remote_terminal_inferior): Add 'self' argument.
13690 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13691 * inflow.c (terminal_inferior): Add 'self' argument.
13692 * inferior.h (terminal_inferior): Add 'self' argument.
13693 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13694 (go32_terminal_inferior): Add 'self' argument.
13695
c42bf286
TT
136962014-02-19 Tom Tromey <tromey@redhat.com>
13697
13698 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13699 (target_terminal_init): Add argument.
13700 * target.c (debug_to_terminal_init): Add argument.
13701 (update_current_target): Update.
13702 * inflow.c (terminal_init_inferior): Add 'self' argument.
13703 * inferior.h (terminal_init_inferior): Add 'self' argument.
13704 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13705 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13706
c3a5ff89
TT
137072014-02-19 Tom Tromey <tromey@redhat.com>
13708
13709 * target.h (struct target_ops)
13710 <to_can_accel_watchpoint_condition>: Add argument.
13711 (target_can_accel_watchpoint_condition): Add argument.
13712 * target.c (debug_to_can_accel_watchpoint_condition): Add
13713 argument.
13714 (update_current_target): Update.
13715 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13716 'self' argument.
13717
31568a15
TT
137182014-02-19 Tom Tromey <tromey@redhat.com>
13719
13720 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13721 Add argument.
13722 (target_region_ok_for_hw_watchpoint): Add argument.
13723 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13724 (default_region_ok_for_hw_watchpoint): Add argument.
13725 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13726 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13727 argument.
13728 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13729 argument.
13730 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13731 argument.
13732 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13733 'self' argument.
13734 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13735 'self' argument.
13736 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13737 'self' argument.
13738 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13739 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13740 'self' argument.
13741 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13742 Add 'self' argument.
13743
7bb99c53
TT
137442014-02-19 Tom Tromey <tromey@redhat.com>
13745
13746 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13747 argument.
13748 (target_insert_watchpoint): Add argument.
13749 * target.c (debug_to_insert_watchpoint): Add argument.
13750 (update_current_target): Update.
13751 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13752 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13753 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13754 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13755 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13756 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13757 argument.
13758 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13759 (procfs_insert_hw_watchpoint): Add 'self' argument.
13760 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13761 argument.
13762 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13763 argument.
13764 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13765 argument.
13766 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13767 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13768 argument.
13769 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13770 'self' argument.
13771
11b5219a
TT
137722014-02-19 Tom Tromey <tromey@redhat.com>
13773
13774 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13775 argument.
13776 (target_remove_watchpoint): Add argument.
13777 * target.c (debug_to_remove_watchpoint): Add argument.
13778 (update_current_target): Update.
13779 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13780 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13781 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13782 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13783 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13784 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13785 argument.
13786 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13787 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13788 argument.
13789 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13790 argument.
13791 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13792 argument.
13793 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13794 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13795 argument.
13796 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13797 'self' argument.
13798
a64dc96c
TT
137992014-02-19 Tom Tromey <tromey@redhat.com>
13800
13801 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13802 argument.
13803 (target_remove_hw_breakpoint): Add argument.
13804 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13805 (update_current_target): Update.
13806 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13807 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13808 argument.
13809 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13810 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13811 argument.
13812 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13813 'self' argument.
13814
23a26771
TT
138152014-02-19 Tom Tromey <tromey@redhat.com>
13816
13817 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13818 argument.
13819 (target_insert_hw_breakpoint): Add argument.
13820 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13821 (update_current_target): Update.
13822 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13823 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13824 argument.
13825 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13826 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13827 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13828 argument.
13829 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13830 'self' argument.
13831
5461485a
TT
138322014-02-19 Tom Tromey <tromey@redhat.com>
13833
13834 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13835 argument.
13836 (target_can_use_hardware_watchpoint): Add argument.
13837 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13838 (update_current_target): Update.
13839 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13840 argument.
13841 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13842 argument.
13843 * remote.c (remote_check_watch_resources): Add 'self' argument.
13844 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13845 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13846 argument.
13847 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13848 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13849 argument.
13850 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13851 argument.
13852 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13853 argument.
13854 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13855 argument.
13856 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13857 argument.
13858 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13859 argument.
13860 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13861 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13862 argument.
13863 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13864 'self' argument.
13865
f045800c
TT
138662014-02-19 Tom Tromey <tromey@redhat.com>
13867
13868 * target.h (struct target_ops) <to_post_attach>: Add argument.
13869 (target_post_attach): Add argument.
13870 * target.c (debug_to_post_attach): Add argument.
13871 (update_current_target): Update.
13872 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13873 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13874 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13875 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13876 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13877
de90e03d
TT
138782014-02-19 Tom Tromey <tromey@redhat.com>
13879
13880 * windows-nat.c (windows_close): Add 'self' argument.
13881 * tracepoint.c (tfile_close): Add 'self' argument.
13882 * target.h (struct target_ops) <to_close>: Add argument.
13883 * target.c (target_close): Add argument.
13884 (update_current_target): Update.
13885 * remote.c (remote_close): Add 'self' argument.
13886 * remote-sim.c (gdbsim_close): Add 'self' argument.
13887 * remote-mips.c (mips_close): Add 'self' argument.
13888 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13889 * record-full.c (record_full_close): Add 'self' argument.
13890 * record-btrace.c (record_btrace_close): Add 'self' argument.
13891 * monitor.h (monitor_close): Add 'self' argument.
13892 * monitor.c (monitor_close): Add 'self' argument.
13893 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13894 * linux-nat.c (linux_nat_close): Add argument.
13895 * go32-nat.c (go32_close): Add 'self' argument.
13896 * exec.c (exec_close_1): Add 'self' argument.
13897 * ctf.c (ctf_close): Add 'self' argument.
13898 * corelow.c (core_close): Add 'self' argument.
13899 (core_close_cleanup): Update.
13900 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13901 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13902
9dd130a0
TT
139032014-02-19 Tom Tromey <tromey@redhat.com>
13904
13905 * remote.c (remote_load): New function.
13906 (init_remote_ops): Use it.
13907
46917d26
TT
139082014-02-19 Tom Tromey <tromey@redhat.com>
13909
13910 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13911 argument.
13912 * common/linux-btrace.h (linux_supports_btrace): Update.
13913 * remote.c (remote_supports_btrace): Add "self" argument.
13914 * target-delegates.c: Rebuild.
13915 * target.c (target_supports_btrace): Remove.
13916 * target.h (struct target_ops) <to_supports_btrace>: Add
13917 target_ops argument.
13918 (target_supports_btrace): New define.
13919
6b84065d
TT
139202014-02-19 Tom Tromey <tromey@redhat.com>
13921
13922 * record-full.c (record_full_beneath_to_resume_ops)
13923 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13924 (record_full_beneath_to_wait)
13925 (record_full_beneath_to_store_registers_ops)
13926 (record_full_beneath_to_store_registers)
13927 (record_full_beneath_to_xfer_partial_ops)
13928 (record_full_beneath_to_xfer_partial)
13929 (record_full_beneath_to_insert_breakpoint_ops)
13930 (record_full_beneath_to_insert_breakpoint)
13931 (record_full_beneath_to_remove_breakpoint_ops)
13932 (record_full_beneath_to_remove_breakpoint)
13933 (record_full_beneath_to_stopped_by_watchpoint)
13934 (record_full_beneath_to_stopped_data_address)
13935 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13936 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13937 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13938 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13939 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13940 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13941 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13942 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13943 (record_full_resume, record_full_wait_1)
13944 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13945 (record_full_store_registers, record_full_xfer_partial)
13946 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13947 (record_full_async, record_full_core_xfer_partial): Use target
13948 delegation.
13949 * target-delegates.c: Rebuild.
13950 * target.c (current_xfer_partial): Remove.
13951 (update_current_target): Do not INHERIT or de_fault
13952 to_insert_breakpoint, to_remove_breakpoint,
13953 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13954 to_is_async_p, to_async. Do not set to_xfer_partial field.
13955 (default_xfer_partial): Simplify.
13956 (current_xfer_partial): Remove.
13957 (target_wait, target_resume): Simplify.
13958 (find_default_can_async_p, find_default_is_async_p): Update.
13959 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13960 to_xfer_partial, to_stopped_by_watchpoint,
13961 to_stopped_data_address.
13962 (target_store_registers): Simplify.
13963 (forward_target_remove_breakpoint)
13964 (forward_target_insert_breakpoint): Remove.
13965 (target_remove_breakpoint, target_insert_breakpoint)
13966 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13967 * target.h (struct target_ops) <to_resume, to_wait,
13968 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13969 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13970 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13971 markup.
13972 (forward_target_remove_breakpoint)
13973 (forward_target_insert_breakpoint): Remove.
13974 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13975 directly.
13976 (record_btrace_insert_breakpoint): Delegate directly.
13977
1101cb7b
TT
139782014-02-19 Tom Tromey <tromey@redhat.com>
13979
13980 PR build/7701:
13981 * target-delegates.c: New file.
13982 * target.c: Include target-delegates.c.
13983 (init_dummy_target): Call install_dummy_methods.
13984 (complete_target_initialization): Call install_delegators.
13985 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13986 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13987 * make-target-delegates: New file.
13988
8b06beed
TT
139892014-02-19 Tom Tromey <tromey@redhat.com>
13990
13991 * record.c (find_record_target): Use find_target_at.
13992 * target.c (find_target_at): New function.
13993 * target.h (find_target_at): Declare.
13994
6a109b6b
TT
139952014-02-19 Tom Tromey <tromey@redhat.com>
13996
13997 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13998 Add 'ops' argument.
13999 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14000 'ops' argument.
14001 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14002 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14003 'ops' argument.
14004 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14005 argument.
14006 * linux-nat.c (save_sigtrap): Update.
14007 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14008 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14009 (linux_nat_close): Update.
14010 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14011 argument.
14012 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14013 argument.
14014 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14015 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14016 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14017 (tmp_to_async): Add 'ops' argument.
14018 (record_full_stopped_by_watchpoint, record_full_async)
14019 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14020 argument.
14021 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14022 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14023 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14024 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14025 (remote_is_async_p, remote_async): Add 'ops' argument.
14026 (remote_stopped_data_address): Update.
14027 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14028 * target.c (update_current_target)
14029 (find_default_can_async_p, find_default_is_async_p): Update.
14030 (init_dummy_target): Update.
14031 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14032 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14033 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14034 (target_can_async_p, target_is_async_p, target_async)
14035 (target_stopped_by_watchpoint): Update.
14036
e095146b
YQ
140372014-02-19 Yao Qi <yao@codesourcery.com>
14038
14039 PR gdb/16220
14040 * gdbarch.sh: Remove startup_gdbarch.
14041 * gdbarch.c: Regenerated.
14042 * gdbarch.h: Likewise.
14043
bc3c6b36
KB
140442014-02-17 Kevin Buettner <kevinb@redhat.com>
14045
14046 * rl78-tdep.c (rl78_g10_register_name): New function.
14047 (rl78_return_value): Add g10 support.
14048 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14049 g10.
14050
98dc0167 140512014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
14052
14053 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14054 (SUBDIR_GUILE_SRCS): Ditto.
14055 (scm-gsmob.o): Ditto.
14056
842c05cd
YQ
140572014-02-17 Yao Qi <yao@codesourcery.com>
14058
14059 * gnu-nat.c (ILL_RPC): Declare defined function.
14060
25c0bd04
YQ
140612014-02-17 Yao Qi <yao@codesourcery.com>
14062
14063 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14064 mach_msg_type_number_t.
14065 (gnu_write_inferior): Likewise.
14066
a9a758e3
YQ
140672014-02-17 Yao Qi <yao@codesourcery.com>
14068
14069 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14070 in format string.
14071 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14072 (inf_validate_procs, inf_signal): Likewise.
14073 (S_exception_raise_request): Likewise.
14074 (do_mach_notify_dead_name): Likewise.
14075 (steal_exc_port): Likewise.
14076 (gnu_read_inferior): Change 'copy_count''s type to
14077 mach_msg_type_number_t.
14078 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14079 format string.
14080
bae8023e
TS
140812014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14082
c82f56d9
TS
14083 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14084 flag. Adjust all users; in particular...
14085 (gnu_wait): ..., don't decrement its value in here...
14086 (gnu_create_inferior): ..., and instead set the flag in here,
14087 around the startup_inferior call, and call that one with
14088 START_INFERIOR_TRAPS_EXPECTED.
14089
3398af6a
TS
14090 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14091 (ILL_RPC): ... new macro.
14092 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14093 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14094 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14095 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14096 functions with ILL_RPC macro.
14097 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14098 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14099 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14100 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14101 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14102 (S_proc_getlogin_reply, S_proc_getsid_reply)
14103 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14104 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14105 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14106 (S_proc_getnports_reply, S_proc_is_important_reply)
14107 (S_proc_get_code_reply): New stub functions, generated with
14108 ILL_RPC macro.
14109
d47642c9
TS
14110 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14111 collected the type check structures.
14112
bae8023e
TS
14113 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14114
8a55ffb0
DE
141152014-02-14 Doug Evans <dje@google.com>
14116
14117 * target.c (target_write_partial): Fix result type.
14118
c2853f3d
JM
141192014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14120
14121 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14122 the proper offsets to access fpregset_t.
14123
ac61d2db
SA
141242014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14125
14126 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14127 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14128 * h8300-tdep.c (setmachinelist): Remove global.
14129 * hppa-tdep.c (hppa_sigtramp): Remove global.
14130 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14131 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14132 * ravenscar-thread.c (update_target_observer): Remove global.
14133 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14134
9d2d0b8b
TT
141352014-02-12 Tom Tromey <tromey@redhat.com>
14136
14137 * common/rsp-low.c: Update comments.
14138 * common/rsp-low.h: Update comments.
14139
a7191e8b
TT
141402014-02-12 Tom Tromey <tromey@redhat.com>
14141
14142 * common/rsp-low.c (convert_ascii_to_int): Remove.
14143 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14144
ff0e980e
TT
141452014-02-12 Tom Tromey <tromey@redhat.com>
14146
14147 * common/rsp-low.h (unhexify): Don't declare.
14148 * common/rsp-low.c (unhexify): Remove.
14149
e9371aff
TT
141502014-02-12 Tom Tromey <tromey@redhat.com>
14151
14152 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14153 * common/rsp-low.c (convert_int_to_ascii): Remove.
14154
971dc0b8
TT
141552014-02-12 Tom Tromey <tromey@redhat.com>
14156
14157 * common/rsp-low.h (hexify): Don't declare.
14158 * common/rsp-low.c (hexify): Remove.
14159
0a822afb
TT
141602014-02-12 Tom Tromey <tromey@redhat.com>
14161
14162 * common/rsp-low.c (hexify): Never take strlen of argument.
14163
9f1b45b0
TT
141642014-02-12 Tom Tromey <tromey@redhat.com>
14165
14166 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14167 * remote.c (extended_remote_run, remote_rcmd)
14168 (remote_download_trace_state_variable, remote_save_trace_data)
14169 (remote_set_trace_notes): Update.
14170 * tracepoint.c (encode_source_string, tfile_write_status)
14171 (tfile_write_uploaded_tsv): Update.
14172
9c3d6531
TT
141732014-02-12 Tom Tromey <tromey@redhat.com>
14174
14175 * tracepoint.c: Include rsp-low.h.
14176 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14177 * remote.c: Include rsp-low.h.
14178 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14179 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14180 (remote_unescape_input): Move to common/rsp-low.c.
14181 * common/rsp-low.h: New file.
14182 * common/rsp-low.c: New file.
14183 * Makefile.in (SFILES): Add common/rsp-low.c.
14184 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14185 (COMMON_OBS): Add rsp-low.o.
14186 (rsp-low.o): New target.
14187
01fd3ea5
TT
141882014-02-12 Tom Tromey <tromey@redhat.com>
14189
14190 * utils.h: Include print-utils.h.
14191 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14192 (int_string, core_addr_to_string, core_addr_to_string_nz)
14193 (hex_string, hex_string_custom): Don't declare.
14194 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14195 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14196 (hex_string_custom, int_string, core_addr_to_string)
14197 (core_addr_to_string_nz, host_address_to_string): Move to
14198 common/print-utils.c.
14199 * common/print-utils.h: New file.
14200 * common/print-utils.c: New file
14201 * Makefile.in (SFILES): Add common/print-utils.c.
14202 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14203 (COMMON_OBS): Add print-utils.o.
14204 (print-utils.o): New target.
14205
9fb50108
TT
142062014-02-12 Tom Tromey <tromey@redhat.com>
14207
14208 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14209
0548b5db
MK
142102014-02-12 Mark Kettenis <kettenis@gnu.org>
14211
14212 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14213
493443a4
MK
142142014-02-12 Mark Kettenis <kettenis@gnu.org>
14215
14216 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14217 if a PT_IO ptrace request returns sucessfully but indicates that 0
14218 bytes were transferred.
14219
706d0883
PA
142202014-02-12 Pedro Alves <palves@redhat.com>
14221 Kevin Buettner <kevinb@redhat.com>
14222
14223 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14224 TYPE_INSTANCE_FLAG_CODE_SPACE.
14225
5caa2f0b
PA
142262014-02-12 Pedro Alves <palves@redhat.com>
14227
14228 * h8300-tdep.c (pseudo_from_raw_register)
14229 (raw_from_pseudo_register): New functions.
14230 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14231 them.
14232
76fd5f74
PA
142332014-02-12 Pedro Alves <palves@redhat.com>
14234
14235 * h8300-tdep.c (h8300_register_sim_regno): New function.
14236 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14237 gdbarch_register_sim_regno hook.
14238
8f008406
SA
142392014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14240
14241 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14242
195abc10
SA
142432014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14244
14245 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14246
93ffa5b9
MK
142472014-02-12 Mark Kettenis <kettenis@gnu.org>
14248
14249 * obsd-tdep.h (obsd_init_abi): New prototype.
14250 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14251 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14252 (obsd_init_abi): New functions.
14253 * i386obsd-tdep.c: Include "obsd-tdep.h".
14254 (i386obsd_init_abi): Call obsd_init_abi.
14255 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14256 (amd64obsd_init_abi): Call obsd_init_abi.
14257 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14258 obsd-tdep.c to gdb_target_obs.
14259
49caec94
JM
142602014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14261
14262 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14263 double float arguments to 16-byte in the argument slots.
14264
e1402065
DE
142652014-02-11 Doug Evans <xdje42@gmail.com>
14266
14267 * configure.ac: Don't crash if pkg-config is not found and guile
14268 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14269 in guile checks.
14270 * configure: Regenerate.
14271
edcc890f
YQ
142722014-02-11 Yao Qi <yao@codesourcery.com>
14273
14274 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14275 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14276 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14277 * gnu-nat.c (gnu_xfer_memory): Likewise.
14278 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14279 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14280 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14281 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14282
9b409511
YQ
142832014-02-11 Yao Qi <yao@codesourcery.com>
14284
14285 * target.h (enum target_xfer_error): Rename to ...
14286 (enum target_xfer_status): ... it. New. All users updated.
14287 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14288 New.
14289 (TARGET_XFER_STATUS_ERROR_P): New macro.
14290 (target_xfer_error_to_string): Remove declaration.
14291 (target_xfer_status_to_string): Declare.
14292 (target_xfer_partial_ftype): Adjust it.
14293 (struct target_ops) <to_xfer_partial>: Return
14294 target_xfer_status. Add argument xfered_len. Update
14295 comments.
14296 * target.c (target_xfer_error_to_string): Rename to ...
14297 (target_xfer_status_to_string): ... it. New. All callers
14298 updated.
14299 (target_read_live_memory): Likewise. Call target_xfer_partial
14300 instead of target_read.
14301 (memory_xfer_live_readonly_partial): Return
14302 target_xfer_status. Add argument xfered_len.
14303 (raw_memory_xfer_partial): Likewise.
14304 (memory_xfer_partial_1): Likewise.
14305 (memory_xfer_partial): Likewise.
14306 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14307 properly. Update debug message.
14308 (default_xfer_partial, current_xfer_partial): Likewise.
14309 (target_write_partial): Likewise.
14310 (target_read_partial): Likewise. All callers updated.
14311 (read_whatever_is_readable): Likewise.
14312 (target_write_with_progress): Likewise.
14313 (target_read_alloc_1): Likewise.
14314
14315 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14316 * auxv.c (procfs_xfer_auxv): Likewise.
14317 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14318 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14319 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14320 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14321 * corefile.c (read_memory): Adjust.
14322 * corelow.c (core_xfer_partial): Likewise.
14323 * ctf.c (ctf_xfer_partial): Likewise.
14324 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14325 updated.
14326 (darwin_xfer_partial): Likewise.
14327 * exec.c (section_table_xfer_memory_partial): Likewise. All
14328 callers updated.
14329 (exec_xfer_partial): Likewise.
14330 * exec.h (section_table_xfer_memory_partial): Update
14331 declaration.
14332 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14333 negative.
14334 (gnu_xfer_partial): Likewise.
14335 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14336 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14337 (ia64_hpux_xfer_solib_got): Likewise.
14338 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14339 type of 'partial_len' to ULONGEST.
14340 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14341 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14342 (linux_nat_xfer_partial): Likewise.
14343 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14344 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14345 * monitor.c (monitor_xfer_memory): Likewise.
14346 (monitor_xfer_partial): Likewise.
14347 * procfs.c (procfs_xfer_partial): Likewise.
14348 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14349 * record-full.c (record_full_xfer_partial): Likewise.
14350 (record_full_core_xfer_partial): Likewise.
14351 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14352 (gdbsim_xfer_partial): Likewise.
14353 * remote.c (remote_write_bytes_aux): Likewise. All callers
14354 updated.
14355 (remote_write_bytes, remote_read_bytes): Likewise. All
14356 callers updated.
14357 (remote_flash_erase): Likewise. All callers updated.
14358 (remote_write_qxfer): Likewise. All callers updated.
14359 (remote_read_qxfer): Likewise. All callers updated.
14360 (remote_xfer_partial): Likewise.
14361 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14362 (rs6000_xfer_shared_libraries): Likewise.
14363 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14364 (sol_thread_xfer_partial): Likewise.
14365 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14366 (sparc_xfer_partial): Likewise.
14367 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14368 updated.
14369 (spu_xfer_partial): Likewise.
14370 * spu-multiarch.c (spu_xfer_partial): Likewise.
14371 * tracepoint.c (tfile_xfer_partial): Likewise.
14372 * windows-nat.c (windows_xfer_memory): Likewise.
14373 (windows_xfer_shared_libraries): Likewise.
14374 (windows_xfer_partial): Likewise.
14375 * valprint.c: Replace 'target_xfer_error' with
14376 'target_xfer_status' in comments.
14377
a8e63083
JB
143782014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14379
14380 Checked in by Joel Brobecker <brobecker@adacore.com>.
14381 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14382
e86b67d3
JB
143832014-02-11 Joel Brobecker <brobecker@adacore.com>
14384
14385 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14386 function parameters.
14387
4b7d1f7f
WN
143882014-02-10 Will Newton <will.newton@linaro.org>
14389
14390 * elfread.c (elf_rel_plt_read): Look for a .got section if
14391 looking up .got.plt fails.
14392 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14393 on address passed to elf_gnu_ifunc_record_cache.
14394 (elf_gnu_ifunc_resolve_addr): Likewise.
14395 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14396
961842b2
JM
143972014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14398
14399 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14400 (X_RETTURN): New macro.
14401 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14402
14403 * sparc64-tdep.c (sparc64_init_abi): Hook
14404 sparc_in_function_epilogue_p.
14405
3f03e7b1
GB
144062014-02-10 Gary Benson <gbenson@redhat.com>
14407
14408 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14409 Rename name_matcher to symbol_matcher.
14410
96f861ef
GB
144112014-02-10 Gary Benson <gbenson@redhat.com>
14412
14413 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14414 Use expand_symtabs_file_matcher_ftype and
14415 expand_symtabs_symbol_matcher_ftype.
14416
ee01b665
JB
144172014-02-10 Joel Brobecker <brobecker@adacore.com>
14418
14419 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14420 (struct ada_symbol_cache): New.
14421 (ada_free_symbol_cache): Forward declare.
14422 (struct ada_pspace_data): New.
14423 (ada_pspace_data_handle): New static global.
14424 (get_ada_pspace_data, ada_pspace_data_cleanup)
14425 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14426 (cache_space, cache): Delete, now folded inside struct
14427 ada_pspace_data.
14428 (ada_get_symbol_cache): New function.
14429 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14430 implementation.
14431 (_initialize_ada_language): Remove initialization of cache_space.
14432 Move call to observer_attach_inferior_exit up, grouping it
14433 with the other observer registrations inside this function.
14434 Rename command to be more general. Add call to
14435 register_program_space_data_with_cleanup.
14436
143adbbf
JB
144372014-02-10 Joel Brobecker <brobecker@adacore.com>
14438
14439 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14440 ada_new_objfile_observer.
14441 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14442 (_initialize_tasks): Update uses of ada_new_objfile_observer
14443 and ada_tasks_normal_stop_observer.
14444
aa4fb036
JB
144452014-02-10 Joel Brobecker <brobecker@adacore.com>
14446
14447 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14448 returned by the 'Length attribute to integer.
14449
9dee8cc6
JB
144502014-02-10 Joel Brobecker <brobecker@adacore.com>
14451
14452 * ada-lang.c (_initialize_ada_language): Initialize
14453 cache_space obstack.
14454
3d9434b5
JB
144552014-02-10 Joel Brobecker <brobecker@adacore.com>
14456
14457 * ada-lang.c (HASH_SIZE): New macro.
14458 (struct cache_entry): New type.
14459 (cache_space, cache): New static globals.
14460 (ada_clear_symbol_cache, find_entry): New functions.
14461 (lookup_cached_symbol, cache_symbol): Implement.
14462 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14463 (_initialize_ada_language): Attach ada_new_objfile_observer
14464 and ada_free_objfile_observer.
14465
f0c5f9b2
JB
144662014-02-10 Joel Brobecker <brobecker@adacore.com>
14467
14468 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14469 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14470 struct block * parameter.
14471 (ada_lookup_symbol_list_worker): Constify local variable "block".
14472 Remove cast which is no longer necessary.
14473
ed3ef339
DE
144742014-02-10 Doug Evans <xdje42@gmail.com>
14475
14476 Add Guile as an extension language.
14477 * NEWS: Mention Guile scripting.
14478 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14479 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14480 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14481 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14482 (CLIBS): Add GUILE_LIBS.
14483 (install-guile): New rule.
14484 (guile.o): New rule.
14485 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14486 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14487 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14488 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14489 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14490 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14491 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14492 * configure.ac: New option --with-guile.
14493 * configure: Regenerate.
14494 * config.in: Regenerate.
14495 * auto-load.c: Remove #include "python/python.h". Add #include
14496 "gdb/section-scripts.h".
14497 (source_section_scripts): Handle Guile scripts.
14498 (_initialize_auto_load): Add name of Guile objfile script to
14499 scripts-directory help text.
14500 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14501 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14502 (struct breakpoint): New member scm_bp_object.
14503 * defs.h (enum command_control_type): New value guile_control.
14504 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14505 "extension.h".
14506 (show_user): Update comment.
14507 (_initialize_cli_cmds): Update help text for "show user". Update help
14508 text for max-user-call-depth.
14509 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14510 "extension.h".
14511 (multi_line_command_p): Add guile_control.
14512 (print_command_lines): Handle guile_control.
14513 (execute_control_command, recurse_read_control_structure): Ditto.
14514 (process_next_line): Recognize "guile" commands.
14515 * disasm.c (gdb_disassemble_info): Make non-static.
14516 * disasm.h: #include "dis-asm.h".
14517 (struct gdbarch): Add forward decl.
14518 (gdb_disassemble_info): Declare.
14519 * extension.c: #include "guile/guile.h".
14520 (extension_languages): Add guile.
14521 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14522 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14523 * gdbtypes.c (get_unsigned_type_max): New function.
14524 (get_signed_type_minmax): New function.
14525 * gdbtypes.h (get_unsigned_type_max): Declare.
14526 (get_signed_type_minmax): Declare.
14527 * guile/README: New file.
14528 * guile/guile-internal.h: New file.
14529 * guile/guile.c: New file.
14530 * guile/guile.h: New file.
14531 * guile/scm-arch.c: New file.
14532 * guile/scm-auto-load.c: New file.
14533 * guile/scm-block.c: New file.
14534 * guile/scm-breakpoint.c: New file.
14535 * guile/scm-disasm.c: New file.
14536 * guile/scm-exception.c: New file.
14537 * guile/scm-frame.c: New file.
14538 * guile/scm-gsmob.c: New file.
14539 * guile/scm-iterator.c: New file.
14540 * guile/scm-lazy-string.c: New file.
14541 * guile/scm-math.c: New file.
14542 * guile/scm-objfile.c: New file.
14543 * guile/scm-ports.c: New file.
14544 * guile/scm-pretty-print.c: New file.
14545 * guile/scm-safe-call.c: New file.
14546 * guile/scm-string.c: New file.
14547 * guile/scm-symbol.c: New file.
14548 * guile/scm-symtab.c: New file.
14549 * guile/scm-type.c: New file.
14550 * guile/scm-utils.c: New file.
14551 * guile/scm-value.c: New file.
14552 * guile/lib/gdb.scm: New file.
14553 * guile/lib/gdb/boot.scm: New file.
14554 * guile/lib/gdb/experimental.scm: New file.
14555 * guile/lib/gdb/init.scm: New file.
14556 * guile/lib/gdb/iterator.scm: New file.
14557 * guile/lib/gdb/printing.scm: New file.
14558 * guile/lib/gdb/types.scm: New file.
14559 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14560 (VPATH): Add $(GUILE_SRCDIR).
14561 (GUILE_DIR): New variable.
14562 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14563 (all): Add stamp-guile dependency.
14564 (stamp-guile): New rule.
14565 (clean-guile, install-guile, uninstall-guile): New rules.
14566 (install-only): Add install-guile dependency.
14567 (uninstall): Add uninstall-guile dependency.
14568 (clean): Add clean-guile dependency.
14569
ac020ec5
DE
145702014-02-09 Doug Evans <xdje42@gmail.com>
14571
14572 Revert this patch (which I approved, mea culpa).
14573
14574 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14575
14576 * Makefile.in (all-lib): Remove.
14577 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14578
2a081c59
JK
145792014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14580
14581 Fix Python stack corruption.
14582 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14583 gdb_py_longest.
14584
0a6bd22d
MK
145852014-02-08 Mark Kettenis <kettenis@gnu.org>
14586
14587 * Makefile.in (all-lib): Remove.
14588 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14589
1a860409
DE
145902014-02-07 Doug Evans <dje@google.com>
14591
14592 * extension-priv.h (extension_language_script_ops): Add comment.
14593 (extension_language_ops): Add comment.
caf5a491 14594 (active_ext_lang_state): Fix typo in comment.
1a860409 14595
d137e6dc
PA
145962014-02-07 Pedro Alves <palves@redhat.com>
14597
0dcb32c3 14598 PR breakpoints/16292
d137e6dc
PA
14599 * infrun.c (handle_signal_stop) <signal arrives while stepping
14600 over a breakpoint>: Switch back to the stepping thread.
14601
ce6d0892
YQ
146022014-02-07 Yao Qi <yao@codesourcery.com>
14603
14604 * target.c (target_xfer_partial): Return zero if LEN is zero.
14605
2ed4b548
YQ
146062014-02-07 Yao Qi <yao@codesourcery.com>
14607
14608 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14609 (ld_so_xfer_auxv): Likewise.
14610 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14611 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14612 * corelow.c (core_xfer_partial): Likewise.
14613 * ctf.c (ctf_xfer_partial): Likewise.
14614 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14615 (darwin_xfer_partial): Likewise.
14616 * exec.c (exec_xfer_partial): Likewise.
14617 * gnu-nat.c (gnu_xfer_partial): Likewise.
14618 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14619 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14620 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14621 * linux-nat.c (linux_xfer_siginfo): Likewise.
14622 (linux_proc_xfer_spu): Likewise.
14623 * procfs.c (procfs_xfer_partial): Likewise.
14624 * record-full.c (record_full_xfer_partial): Likewise.
14625 (record_full_core_xfer_partial): Likewise.
14626 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14627 * remote.c (remote_write_qxfer): Likewise.
14628 (remote_write_qxfer, remote_read_qxfer): Likewise.
14629 (remote_xfer_partial): Likewise.
14630 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14631 (rs6000_xfer_shared_libraries): Likewise.
14632 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14633 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14634 (spu_xfer_partial): Likewise.
14635 * target.c (memory_xfer_partial_1): Likewise.
14636 * tracepoint.c (tfile_xfer_partial): Likewise.
14637 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14638 (windows_xfer_partial): Likewise.
14639
c09f20e4
YQ
146402014-02-07 Yao Qi <yao@codesourcery.com>
14641
14642 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14643 comments.
14644 (core_xfer_shared_libraries_aix): Likewise.
14645 * gdbarch.c, gdbarch.h: Regenerated.
14646 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14647 ULONGEST. Change 'len_avail' type to ULONGEST.
14648 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14649 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14650 declaration.
14651 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14652
8635b3bf
YQ
146532014-02-07 Yao Qi <yao@codesourcery.com>
14654
14655 * corefile.c (memory_error): Get 'exception' from ERR and pass
14656 'exception' to throw_error.
14657
6dddc817
DE
146582014-02-06 Doug Evans <xdje42@gmail.com>
14659
14660 * configure.ac (libpython checking): Remove all but python.o from
14661 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14662 * configure: Regenerate.
14663
14664 * Makefile.in (SFILES): Add extension.c.
14665 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14666 (COMMON_OBS): Add extension.o.
14667 * extension.h: New file.
14668 * extension-priv.h: New file.
14669 * extension.c: New file.
14670
14671 * python/python-internal.h: #include "extension.h".
14672 (gdbpy_auto_load_enabled): Declare.
14673 (gdbpy_apply_val_pretty_printer): Declare.
14674 (gdbpy_apply_frame_filter): Declare.
14675 (gdbpy_preserve_values): Declare.
14676 (gdbpy_breakpoint_cond_says_stop): Declare.
14677 (gdbpy_breakpoint_has_cond): Declare.
14678 (void source_python_script_for_objfile): Delete.
14679 * python/python.c: #include "extension-priv.h".
14680 Delete inclusion of "observer.h".
14681 (extension_language_python): Moved here and renamed from
14682 script_language_python in py-auto-load.c.
14683 Redefined to be of type extension_language_defn.
14684 (python_extension_script_ops): New global.
14685 (python_extension_ops): New global.
14686 (struct python_env): New member previous_active.
14687 (restore_python_env): Call restore_active_ext_lang.
14688 (ensure_python_env): Call set_active_ext_lang.
14689 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14690 New arg extlang.
14691 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14692 New arg extlang.
14693 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14694 New arg extlang.
14695 (gdbpy_eval_from_control_command): Renamed from
14696 eval_python_from_control_command, made static. New arg extlang.
14697 (gdbpy_source_script) Renamed from source_python_script, made static.
14698 New arg extlang.
14699 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14700 result to int. New arg extlang.
14701 (gdbpy_source_objfile_script): Renamed from
14702 source_python_script_for_objfile, made static. New arg extlang.
14703 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14704 static. New args extlang, extlang_printers. Change result type to
14705 "void".
14706 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14707 static. New arg extlang. Rename arg printers to extlang_printers
14708 and change type to ext_lang_type_printers *.
14709 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14710 static. Replace argument arg with extlang, extlang_printers.
14711 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14712 (!HAVE_PYTHON, source_python_script): Delete.
14713 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14714 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14715 (!HAVE_PYTHON, start_type_printers): Delete.
14716 (!HAVE_PYTHON, apply_type_printers): Delete.
14717 (!HAVE_PYTHON, free_type_printers): Delete.
14718 (_initialize_python): Delete call to observer_attach_before_prompt.
14719 (finalize_python): Set/restore active extension language.
14720 (gdbpy_finish_initialization) Renamed from
14721 finish_python_initialization, made static. New arg extlang.
14722 (gdbpy_initialized): New function.
14723 * python/python.h: #include "extension.h". Delete #include
14724 "value.h", "mi/mi-cmds.h".
14725 (extension_language_python): Declare.
14726 (GDBPY_AUTO_FILE_NAME): Delete.
14727 (enum py_bt_status): Moved to extension.h and renamed to
14728 ext_lang_bt_status.
14729 (enum frame_filter_flags): Moved to extension.h.
14730 (enum py_frame_args): Moved to extension.h and renamed to
14731 ext_lang_frame_args.
14732 (finish_python_initialization): Delete.
14733 (eval_python_from_control_command): Delete.
14734 (source_python_script): Delete.
14735 (apply_val_pretty_printer): Delete.
14736 (apply_frame_filter): Delete.
14737 (preserve_python_values): Delete.
14738 (gdbpy_script_language_defn): Delete.
14739 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14740 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14741
14742 * auto-load.c: #include "extension.h".
14743 (GDB_AUTO_FILE_NAME): Delete.
14744 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14745 (script_language_gdb): Delete, moved to extension.c and renamed to
14746 extension_language_gdb.
14747 (source_gdb_script_for_objfile): Delete.
14748 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14749 (loaded_script): Change type of language member to
14750 struct extension_language_defn *.
14751 (init_loaded_scripts_info): Initialize
14752 unsupported_script_warning_printed.
14753 (maybe_add_script): Make static. Change type of language arg to
14754 struct extension_language_defn *.
14755 (clear_section_scripts): Reset unsupported_script_warning_printed.
14756 (auto_load_objfile_script_1): Rewrite to use extension language API.
14757 (auto_load_objfile_script): Make public. Remove support-compiled-in
14758 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14759 (source_section_scripts): Rewrite to use extension language API.
14760 (load_auto_scripts_for_objfile): Rewrite to use
14761 auto_load_scripts_for_objfile.
14762 (collect_matching_scripts_data): Change type of language member to
14763 struct extension_language_defn *.
14764 (auto_load_info_scripts): Change type of language arg to
14765 struct extension_language_defn *.
14766 (unsupported_script_warning_print): New function.
14767 (script_not_found_warning_print): Make static.
14768 (_initialize_auto_load): Rewrite construction of scripts-directory
14769 help.
14770 * auto-load.h (struct objfile): Add forward decl.
14771 (struct script_language): Delete.
14772 (struct auto_load_pspace_info): Add forward decl.
14773 (struct extension_language_defn): Add forward decl.
14774 (maybe_add_script): Delete.
14775 (auto_load_objfile_script): Declare.
14776 (script_not_found_warning_print): Delete.
14777 (auto_load_info_scripts): Update prototype.
14778 (auto_load_gdb_scripts_enabled): Declare.
14779 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14780 auto_load_python_scripts_enabled and made public.
14781 (script_language_python): Delete, moved to python.c.
14782 (gdbpy_script_language_defn): Delete.
14783 (info_auto_load_python_scripts): Update to use
14784 extension_language_python.
14785
14786 * breakpoint.c (condition_command): Replace call to
14787 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14788 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14789 with call to breakpoint_ext_lang_cond_says_stop.
14790 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14791 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14792 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14793 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14794 New arg slang.
14795 (local_setattro): Print name of extension language with existing
14796 stop condition.
14797
14798 * valprint.c (val_print, value_print): Update to call
14799 apply_ext_lang_val_pretty_printer.
14800 * cp-valprint.c (cp_print_value): Update call to
14801 apply_ext_lang_val_pretty_printer.
14802 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14803 (gdbpy_apply_val_pretty_printer): Renamed from
14804 apply_val_pretty_printer. New arg extlang.
14805 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14806
14807 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14808 extension language API.
14809 * cli/cli-script.c (execute_control_command): Update to call
14810 eval_ext_lang_from_control_command.
14811
14812 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14813 enum ext_lang_bt_status values. Update call to
14814 apply_ext_lang_frame_filter.
14815 (mi_cmd_stack_list_locals): Ditto.
14816 (mi_cmd_stack_list_args): Ditto.
14817 (mi_cmd_stack_list_variables): Ditto.
14818 * mi/mi-main.c: Delete #include "python/python-internal.h".
14819 Add #include "extension.h".
14820 (mi_cmd_list_features): Replace reference to python internal variable
14821 gdb_python_initialized with call to ext_lang_initialized_p.
14822
14823 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14824 Update to use enum ext_lang_frame_args. Update to call
14825 apply_ext_lang_frame_filter.
14826 * python/py-framefilter.c (extract_sym): Update to use enum
14827 ext_lang_bt_status.
14828 (extract_value, py_print_type, py_print_value): Ditto.
14829 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14830 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14831 (py_print_frame): Ditto.
14832 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14833 New arg extlang. Update to use enum ext_lang_bt_status.
14834
14835 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14836 finish_python_initialization. Replace with call to
14837 finish_ext_lang_initialization.
14838
14839 * typeprint.c (do_free_global_table): Update to call
14840 free_ext_lang_type_printers.
14841 (create_global_typedef_table): Update to call
14842 start_ext_lang_type_printers.
14843 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14844 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14845 (type_print_options): Change type of global_printers from "void *"
14846 to "struct ext_lang_type_printers *".
14847
14848 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14849 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14850 (gdbpy_preserve_values): Renamed from preserve_python_values.
14851 New arg extlang.
14852 (!HAVE_PYTHON, preserve_python_values): Delete.
14853
14854 * utils.c (quit_flag): Delete, moved to extension.c.
14855 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14856 extension.c.
14857
14858 * eval.c: Delete #include "python/python.h".
14859 * main.c: Delete #include "python/python.h".
14860
14861 * defs.h: Update comment.
14862
6af79985
JB
148632014-02-06 Joel Brobecker <brobecker@adacore.com>
14864
14865 GDB 7.7 released.
14866
12c5175d
MK
148672014-02-05 Mark Kettenis <kettenis@gnu.org>
14868
14869 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14870 defined.
14871
8dc5b319
YQ
148722014-02-05 Yao Qi <yao@codesourcery.com>
14873
14874 * remote.c (remote_pass_signals): Remove local 'buf' and use
14875 rs->buf.
14876 (remote_program_signals): Likewise.
14877
de7b2893
YQ
148782014-02-05 Yao Qi <yao@codesourcery.com>
14879
14880 * ctf.c: Include "inferior.h" and "gdbthread.h".
14881 (CTF_PID): A new macro.
14882 (ctf_open): Call inferior_appeared and add_thread_silent.
14883 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14884 (ctf_thread_alive): New function.
14885 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14886
66d032ac
YQ
148872014-02-05 Yao Qi <yao@codesourcery.com>
14888
14889 Revert this patch:
14890
14891 2013-05-24 Yao Qi <yao@codesourcery.com>
14892
14893 * tracepoint.c (TFILE_PID): Remove.
14894 (tfile_open): Don't add thread and inferior.
14895 (tfile_close): Don't set 'inferior_ptid'. Don't call
14896 exit_inferior_silent.
14897 (tfile_thread_alive): Remove.
14898 (init_tfile_ops): Don't set field 'to_thread_alive' of
14899 tfile_ops.
14900
f4ccffad
CE
149012014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14902
14903 * remote.c (remote_start_remote): Call remote_check_symbols even
14904 if only symbol-file (not file) has been given.
14905
591a12a1
UW
149062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14907
14908 * gdbarch.sh (skip_entrypoint): New callback.
14909 * gdbarch.c, gdbarch.h: Regenerate.
14910 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14911 * infrun.c (fill_in_stop_func): Likewise.
14912 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14913 (ppc_elfv2_elf_make_msymbol_special): New function.
14914 (ppc_elfv2_skip_entrypoint): Likewise.
14915 (ppc_linux_init_abi): Install them for ELFv2.
14916
cc0e89c5
UW
149172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14918
14919 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14920 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14921 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14922 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14923 structures returned in GPRs.
14924
52f548e4
UW
149252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14926
14927 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14928 offset to the stack parameter list for the ELFv2 ABI.
14929
d4094b6a
UW
149302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14931
14932 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14933 set_gdbarch_convert_from_func_ptr_addr and
14934 set_gdbarch_elf_make_msymbol_special for ELFv1.
14935 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14936 function descriptors on ELFv1.
14937 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14938 set up r12 at function entry.
14939
cd453cd0
UW
149402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14941
14942 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14943 (struct gdbarch_tdep): New member elf_abi.
14944
14945 * rs6000-tdep.c: Include "elf/ppc64.h".
14946 (rs6000_gdbarch_init): Detect ELF ABI version.
14947
0ff3e01f
UW
149482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14949
14950 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14951 within a register pair holding a DFP 128-bit value on little-endian.
14952 (ppc64_sysv_abi_return_value_base): Likewise.
14953 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14954 (dfp_pseudo_register_write): Likewise.
14955
5b757e5d
UW
149562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14957
14958 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14959 offset on little-endian when passing _Decimal32.
14960 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14961
084ee545
UW
149622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14963
14964 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14965 of the overlapped FP register within the VSX register on little-
14966 endian platforms.
14967 (efpr_pseudo_register_write): Likewise.
14968
d63167af
UW
149692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14970
14971 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14972 offset on little-endian when passing small structures.
14973
e765b44c
UW
149742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14975
14976 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14977 (struct ppc64_sysv_argpos): New data structure.
14978 (ppc64_sysv_abi_push_float): Remove.
14979 (ppc64_sysv_abi_push_val): New function.
14980 (ppc64_sysv_abi_push_integer): Likewise.
14981 (ppc64_sysv_abi_push_freg): Likewise.
14982 (ppc64_sysv_abi_push_vreg): Likewise.
14983 (ppc64_sysv_abi_push_param): Likewise.
14984 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14985 (ppc64_sysv_abi_return_value_base): New function.
14986 (ppc64_sysv_abi_return_value): Refactor to use it.
14987
36c24d95
UW
149882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14989
14990 * NEWS: Document new target powerpc64le-*-linux*.
14991
26fd9228
MK
149922014-02-04 Mark Kettenis <kettenis@gnu.org>
14993
14994 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14995 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14996 core dumps.
14997 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14998 register set used in ELF core dumps. Add floating-point register set.
14999
c5bb7362
KB
150002014-02-03 Kevin Buettner <kevinb@redhat.com>
15001
74228e77 15002 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
15003 dwarf2_to_gdb[] table using symbolic constants. Adjust
15004 penultimate entry from number representing the PC register
15005 to symbolic constant representing the MDR register. Add
15006 constant for the PC register to the end of the table.
15007
af09351e
MK
150082014-02-03 Mark Kettenis <kettenis@gnu.org>
15009
15010 * bsd-kvm.c: Include <sys/param.h>
15011
8507e05d
MK
150122014-02-03 Mark Kettenis <kettenis@gnu.org>
15013
15014 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15015
ae56bfb8
JB
150162014-01-31 Joel Brobecker <brobecker@adacore.com>
15017
15018 * ada-lang.h (clear_ada_sym_cache): Delete.
15019
718ee4dc
UW
150202014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
15021
15022 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15023
401e27fd
JM
150242014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15025
15026 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15027 the sigreturn register save area only if the syscall is
15028 sigreturn.
15029
a7c88acd
JB
150302014-01-29 Joel Brobecker <brobecker@adacore.com>
15031
15032 * valops.c (value_slice): Minor reformatting.
15033
fa0079ea
UW
150342014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15035
15036 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15037
c6044dd1
JB
150382014-01-28 Joel Brobecker <brobecker@adacore.com>
15039
15040 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15041 New static globals.
15042 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15043 (ada_ignore_descriptive_types_p): New static global.
15044 (find_parallel_type_by_descriptive_type): Return immediately
15045 if ada_ignore_descriptive_types_p is set.
15046 (_initialize_ada_language): Register new commands "maintenance
15047 set ada", "maintenance show ada", "maintenance set ada
15048 ignore-descriptive-types" and "maintenance show ada
15049 ignore-descriptive-types".
15050 * NEWS: Add entry for new "maint ada set/show
15051 ignore-descriptive-types" commands.
15052
568e808b
MM
150532014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15054
15055 * record-btrace.c (record_btrace_close): Call btrace_teardown
15056 for all threads.
15057
467d141b
JB
150582014-01-27 Joel Brobecker <brobecker@adacore.com>
15059
15060 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15061 "ui-out.h".
15062
fb151210
JB
150632014-01-27 Joel Brobecker <brobecker@adacore.com>
15064
15065 * ada-typeprint (type_is_full_subrange_of_target_type):
15066 New function.
15067 (print_range): Add parameter bounds_prefered_p. If not set,
15068 try printing range types using the name of their base type.
15069 (print_range_type): Add parameter bounds_prefered_p.
15070 Use it in call to print_range.
15071 (print_array_type, ada_print_type): Update calls to print_range
15072 and print_range_type.
15073
aba02109
JB
150742014-01-27 Joel Brobecker <brobecker@adacore.com>
15075
15076 * ada-typeprint.c (print_array_type, print_choices, print_range)
15077 (print_range_bound, print_dynamic_range_bound, print_range_type):
15078 Remove declaration.
15079
e62e21fd
JB
150802014-01-27 Joel Brobecker <brobecker@adacore.com>
15081
15082 * ada-typeprint.c (print_range): Add missing empty line
15083 after local declaration.
15084
859cf5d1
JB
150852014-01-27 Joel Brobecker <brobecker@adacore.com>
15086
15087 * ada-valprint.c (print_optional_low_bound): Get index_type's
15088 target type for as long as it is a TYPE_CODE_RANGE.
15089
25790f6f
JB
150902014-01-27 Joel Brobecker <brobecker@adacore.com>
15091
15092 * procfs.c (procfs_make_note_section): Remove assertion and
15093 associated comment.
15094
6b6aa828
YQ
150952014-01-24 Yao Qi <yao@codesourcery.com>
15096
15097 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15098 * corelow.c (get_core_siginfo): Likewise.
15099
5d6df423
YQ
151002014-01-24 Yao Qi <yao@codesourcery.com>
15101
15102 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15103 ULONGEST. Don't check 'len' is negative.
15104 (remote_write_bytes): Change type of 'len' to ULONGEST.
15105
83b645b8
TT
151062014-01-23 Tom Tromey <tromey@redhat.com>
15107
15108 PR python/16485:
15109 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15110 Handle exception from frame.block.
15111 (FrameVars.fetch_frame_locals): Likewise.
15112
0740f8d8
TT
151132014-01-23 Tom Tromey <tromey@redhat.com>
15114
15115 PR python/16487:
15116 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15117 on a NULL pointer. Move "goto error" to correct place.
15118
21909fa1
TT
151192014-01-23 Tom Tromey <tromey@redhat.com>
15120
15121 PR python/16491:
15122 * python/py-framefilter.c (apply_frame_filter): Call
15123 ensure_python_env after computing gdbarch.
15124
17fde6d0
YQ
151252014-01-23 Yao Qi <yao@codesourcery.com>
15126
15127 * target.c (raw_memory_xfer_partial): Change argument type
15128 from void * to gdb_byte *.
15129 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15130
87ce2a04
DE
151312014-01-22 Doug Evans <dje@google.com>
15132
15133 New gdbserver option --debug-format=timestamp.
15134 * NEWS: Mention it.
15135
237b092b
AA
151362014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15137
15138 * syscalls/s390x-linux.xml: New file.
15139 * syscalls/s390-linux.xml: New file.
15140 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15141 (XML_SYSCALL_FILENAME_S390X): Likewise.
15142 (op_svc): New enum value for SVC opcode.
15143 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15144 (s390_linux_get_syscall_number): New function.
15145 (s390_gdbarch_init): Register '*get_syscall_number' and the
15146 syscall xml file name.
15147 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15148 "s390-linux.xml" and "s390x-linux.xml".
15149 * NEWS: Announce new feature.
15150
54bff650
BS
151512014-01-22 Baruch Siach <baruch@tkos.co.il>
15152
15153 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15154
14e361d7
PA
151552014-01-22 Pedro Alves <palves@redhat.com>
15156
15157 * xtensa-config.c: Include defs.h.
15158
46bbb3ed
JB
151592014-01-22 Joel Brobecker <brobecker@adacore.com>
15160
15161 * common/common-utils.h: Add "ARI:" comment beside __func__
15162 reference.
15163
3a80edfc
JB
151642014-01-22 Joel Brobecker <brobecker@adacore.com>
15165
15166 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15167 documentation a bit.
15168
4869db5e
RM
151692014-01-21 Roland McGrath <mcgrathr@google.com>
15170
15171 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15172 * configure: Regenerate.
15173 * aclocal.m4: Regenerate.
15174 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15175 New substituted variables.
15176 (install-strip): New target.
15177 (INSTALL_SCRIPT): New substituted variable.
15178 (FLAGS_TO_PASS): Add it.
15179 (install-only): Use $(INSTALL_SCRIPT) rather than
15180 $(INSTALL_PROGRAM) for gcore.
15181
9ea4267d
TT
151822014-01-20 Tom Tromey <tromey@redhat.com>
15183
15184 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15185 together.
15186
1f2bdf09
TT
151872014-01-20 Tom Tromey <tromey@redhat.com>
15188
15189 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15190 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15191 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15192 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15193 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15194 (struct cmd_list_element) <flags>: Remove.
15195 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15196 doc_allocated>: New fields.
15197 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15198 bitfields.
15199 * maint.c (maintenance_do_deprecate): Update.
15200 * top.c (execute_command): Update.
15201
e671835b
BS
152022014-01-20 Baruch Siach <baruch@tkos.co.il>
15203
15204 * xtensa-linux-nat.c: Include asm/ptrace.h.
15205
50367cd2
IB
152062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15207
15208 * Makefile.in (SFILES): Add d-support.c.
15209 (COMMON_OBS): Add d-support.o.
15210 * d-lang.h (d_parse_symbol): Add comment, now defined in
15211 d-support.c.
15212 * d-lang.c (parse_call_convention)
15213 (parse_attributes, parse_function_types)
15214 (parse_function_args, parse_type, parse_identifier)
15215 (call_convention_p, d_parse_symbol): Move functions to ...
15216 * d-support.c: ... New file.
15217
ec9f644a
IB
152182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15219
15220 * d-lang.h (d_parse_symbol): Add declaration.
15221 * d-lang.c (extract_identifiers)
15222 (extract_type_info): Remove functions.
15223 (parse_call_convention, parse_attributes)
15224 (parse_function_types, parse_function_args)
15225 (parse_type, parse_identifier, call_convention_p)
15226 (d_parse_symbol): New functions.
15227 (d_demangle): Use d_parse_symbol to demangle D symbols.
15228
94b1b47e
IB
152292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15230
15231 * d-lang.h (struct builtin_d_type): New data type.
15232 (builtin_d_type): Add declaration.
15233 * d-lang.c (d_language_arch_info, build_d_types)
15234 (builtin_d_type): New functions.
15235 (enum d_primitive_types): New data type.
15236 (d_language_defn): Change c_language_arch_info to
15237 d_language_arch_info.
15238 (d_type_data): New static variable.
15239 (_initialize_d_language): Initialize d_type_data.
15240
63778547
IB
152412014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15242
15243 * d-lang.h (d_main_name): Add declaration.
15244 * d-lang.c (d_main_name): New function.
15245 * symtab.c (find_main_name): Add call to d_main_name.
15246
3271ba66
IB
152472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15248
15249 * d-lang.c (d_language_defn): Change macro_expansion_c to
15250 macro_expansion_no.
15251
d36b3012
IB
152522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15253
15254 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15255
c90a6fb7
SDJ
152562014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15257
15258 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15259 gdb_exception" declaration.
15260 * remote.c (getpkt_or_notif_sane): Likewise.
15261
749234e5
DE
152622014-01-17 Doug Evans <dje@google.com>
15263
15264 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15265 function, contents of dirnames_to_char_ptr_vec_append moved here.
15266 (delim_string_to_char_ptr_vec): New function.
15267 (dirnames_to_char_ptr_vec_append): Rewrite.
15268 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15269
df049a58
DE
152702014-01-17 Doug Evans <dje@google.com>
15271
15272 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15273 and moved here ...
15274 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15275 #include "common-utils.h".
15276 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15277 * common/vec.h (VEC_ASSERT_PASS): Update.
15278 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15279 (MACH_CHECK_ERROR): Update.
15280
69f97648
SM
152812014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15282
15283 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15284 comments.
15285 * gdbarch.h: Regenerate.
15286
98b1cfdc
TT
152872014-01-16 Tom Tromey <tromey@redhat.com>
15288
15289 * value.c (struct value) <regnum>: Move earlier.
15290
77a19445
TT
152912014-01-16 Tom Tromey <tromey@redhat.com>
15292
15293 * remote.c (extended_remote_create_inferior): Rename from
15294 extended_remote_create_inferior_1. Add "ops" argument. Remove
15295 old implementation.
15296
62261490
PA
152972014-01-16 Pedro Alves <palves@redhat.com>
15298
15299 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15300 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15301 the backchain.
15302
4d65956b
DE
153032014-01-16 Doug Evans <dje@google.com>
15304
15305 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15306
52834460
MM
153072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15308
15309 * btrace.h (btrace_thread_flag): New.
15310 (struct btrace_thread_info) <flags>: New.
15311 * record-btrace.c (record_btrace_resume_thread)
15312 (record_btrace_find_thread_to_move, btrace_step_no_history)
15313 (btrace_step_stopped, record_btrace_start_replaying)
15314 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15315 (record_btrace_find_resume_thread): New.
15316 (record_btrace_resume, record_btrace_wait): Extend.
15317 (record_btrace_can_execute_reverse): New.
15318 (record_btrace_open): Fail in non-stop mode.
15319 (record_btrace_set_replay): Split into this, ...
15320 (record_btrace_stop_replaying): ... this, ...
15321 (record_btrace_clear_histories): ... and this.
15322 (init_record_btrace_ops): Init to_can_execute_reverse.
15323 * NEWS: Announce it.
15324
118e6252
MM
153252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15326
15327 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15328 (forward_target_decr_pc_after_break)
15329 (target_decr_pc_after_break): New.
15330 * target.c (forward_target_decr_pc_after_break)
15331 (target_decr_pc_after_break): New.
15332 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15333 instead of gdbarch_decr_pc_after_break.
15334 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15335 instead of gdbarch_decr_pc_after_break.
15336 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15337 instead of gdbarch_decr_pc_after_break.
15338 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15339 instead of gdbarch_decr_pc_after_break.
15340 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15341 instead of gdbarch_decr_pc_after_break.
15342 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15343 instead of gdbarch_decr_pc_after_break.
15344
6e07b1d2
MM
153452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15346
15347 * btrace.c: Include regcache.h.
15348 (btrace_add_pc): New.
15349 (btrace_enable): Call btrace_add_pc.
15350 (btrace_is_empty): New.
15351 * btrace.h (btrace_is_empty): New.
15352 * record-btrace.c (require_btrace, record_btrace_info): Call
15353 btrace_is_empty.
15354
969c39fb
MM
153552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15356
15357 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15358 Support delta reads.
15359 (linux_disable_btrace): Change return type.
15360 * common/linux-btrace.h (linux_read_btrace): Change parameters
15361 and return type to allow error reporting. Update users.
15362 (linux_disable_btrace): Change return type. Update users.
15363 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15364 New.
15365 (btrace_error): New.
15366 (btrace_block) <begin>: Comment on BEGIN == 0.
15367 * btrace.c (btrace_compute_ftrace): Start from the end of
15368 the current trace.
15369 (btrace_stitch_trace, btrace_clear_history): New.
15370 (btrace_fetch): Read delta trace, return if replaying.
15371 (btrace_clear): Move clear history code to btrace_clear_history.
15372 (parse_xml_btrace): Throw an error if parsing failed.
15373 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15374 and return type to allow error reporting.
15375 (target_read_btrace): Change parameters and return type to allow
15376 error reporting.
15377 * target.c (target_read_btrace): Update.
15378 * remote.c (remote_read_btrace): Support delta reads. Pass
15379 errors on.
15380 * NEWS: Announce it.
15381
0b722aec
MM
153822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15383
15384 * record.h (record_btrace_frame_unwind)
15385 (record_btrace_tailcall_frame_unwind): New declarations.
15386 * dwarf2-frame: Include record.h
15387 (dwarf2_frame_cfa): Throw an error for btrace frames.
15388 * record-btrace.c: Include hashtab.h.
15389 (btrace_get_bfun_name): New.
15390 (btrace_call_history): Call btrace_get_bfun_name.
15391 (struct btrace_frame_cache): New.
15392 (bfcache): New.
15393 (bfcache_hash, bfcache_eq, bfcache_new): New.
15394 (btrace_get_frame_function): New.
15395 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15396 (record_btrace_frame_this_id): Compute own id.
15397 (record_btrace_frame_prev_register): Provide PC, throw_error
15398 for all other registers.
15399 (record_btrace_frame_sniffer): Detect btrace frames.
15400 (record_btrace_tailcall_frame_sniffer): New.
15401 (record_btrace_frame_dealloc_cache): New.
15402 (record_btrace_frame_unwind): Add new functions.
15403 (record_btrace_tailcall_frame_unwind): New.
15404 (_initialize_record_btrace): Allocate cache.
15405 * btrace.c (btrace_clear): Call reinit_frame_cache.
15406 * NEWS: Announce it.
15407
066ce621
MM
154082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15409
15410 * record-btrace.c (record_btrace_set_replay)
15411 (record_btrace_goto_begin, record_btrace_goto_end)
15412 (record_btrace_goto): New.
15413 (init_record_btrace_ops): Initialize them.
15414 * NEWS: Announce it.
15415
e2887aa3
MM
154162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15417
15418 * record-btrace.c (record_btrace_find_new_threads)
15419 (record_btrace_thread_alive): New.
15420 (init_record_btrace_ops): Initialize to_find_new_threads and
15421 to_thread_alive.
15422
b2f4cfde
MM
154232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15424
15425 * record-btrace.c (record_btrace_resume): New.
15426 (record_btrace_wait): New.
15427 (init_record_btrace_ops): Initialize to_wait and to_resume.
15428
633785ff
MM
154292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15430
15431 * record-btrace.c (record_btrace_xfer_partial)
15432 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15433 (record_btrace_allow_memory_access): New.
15434 (init_record_btrace_ops): Initialize new methods.
15435 * target.c (raw_memory_xfer_partial): Bail out if target reports
15436 that this memory is not available.
15437
3db08215
MM
154382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15439
15440 * target.h (target_ops) <to_insert_breakpoint>
15441 <to_remove_breakpoint>: Add target_ops parameter.
15442 (forward_target_insert_breakpoint): New.
15443 (forward_target_remove_breakpoint): New.
15444 (memory_remove_breakpoint, memory_insert_breakpoint):
15445 Add target_ops parameter.
15446 * target.c (target_insert_breakpoint): Split into this and ...
15447 (forward_target_insert_breakpoint): ... this.
15448 (target_remove_breakpoint): Split into this and ...
15449 (forward_target_remove_breakpoint): ... this.
15450 (debug_to_insert_breakpoint): Add target_ops parameter.
15451 Call forward_target_insert_breakpoint.
15452 (debug_to_remove_breakpoint): Add target_ops parameter.
15453 Call forward_target_remove_breakpoint.
15454 (update_current_target): Do not inherit or default to_insert_breakpoint
15455 and to_remove_breakpoint.
15456 * corelow.c (ignore): Add target_ops parameter.
15457 * exec.c (ignore): Add target_ops parameter.
15458 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15459 Add target_ops parameter.
15460 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15461 Add target_ops parameter.
15462 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15463 Add target_ops parameter.
15464 * record-full.c (record_full_beneath_to_insert_breakpoint)
15465 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15466 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15467 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15468 (record_full_core_remove_breakpoint): Add target_ops parameter.
15469 Update users.
15470 (record_full_beneath_to_insert_breakpoint_ops)
15471 (record_full_beneath_to_remove_breakpoint_ops)
15472 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15473 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15474 tmp_to_remove_breakpoint_ops,
15475 record_full_beneath_to_insert_breakpoint_ops, and
15476 record_full_beneath_to_remove_breakpoint_ops.
15477 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15478 (m32r_remove_breakpoint): Add target_ops parameter.
15479 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15480 Add target_ops parameter.
15481 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15482 Add target_ops parameter.
15483
cecac1ab
MM
154842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15485 Markus Metzger <markus.t.metzger@intel.com>
15486
15487 * record-btrace.c: Include frame-unwind.h.
15488 (record_btrace_frame_unwind_stop_reason)
15489 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15490 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15491 New.
15492 (init_record_btrace_ops): Install it.
15493
824344ca
MM
154942014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15495
15496 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15497 get_prev_frame_1.
15498
32261e52
MM
154992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15500
15501 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15502 earlier.
15503
ea001bdc
MM
155042014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15505
15506 * frame-unwind.c: Include target.h.
15507 (frame_unwind_try_unwinder): New function with code from ...
15508 (frame_unwind_find_by_frame): ... here. New variable
15509 unwinder_from_target, call also target_get_unwinder)
15510 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15511 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15512 * target.h (struct target_ops): New fields to_get_unwinder and
15513 to_get_tailcall_unwinder.
15514 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15515
1f3ef581
MM
155162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15517
15518 * record-btrace.c (record_btrace_fetch_registers)
15519 (record_btrace_store_registers)
15520 (record_btrace_to_prepare_to_store): New.
15521 (init_record_btrace_ops): Add the above.
15522
f32dbf8c
MM
155232014-01-16 Tom Tromey <tromey@redhat.com>
15524
15525 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15526 * target.h (struct target_ops) <to_prepare_to_store>: Add
15527 argument.
15528 (target_prepare_to_store): Add argument.
15529 * target.c (debug_to_prepare_to_store): Add argument.
15530 (update_current_target): Update.
15531 * remote.c (remote_prepare_to_store): Add 'self' argument.
15532 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15533 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15534 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15535 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15536 argument.
15537 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15538 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15539 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15540 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15541 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15542
07bbe694
MM
155432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15544
15545 * btrace.h (replay) <replay>: New.
15546 (btrace_is_replaying): New.
15547 * btrace.c (btrace_clear): Free replay iterator.
15548 (btrace_is_replaying): New.
15549 * record-btrace.c (record_btrace_is_replaying): New.
15550 (record_btrace_info): Print insn number if replaying.
15551 (record_btrace_insn_history): Start at replay position.
15552 (record_btrace_call_history): Start at replay position.
15553 (init_record_btrace_ops): Init to_record_is_replaying.
15554
0688d04e
MM
155552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15556
15557 * record-btrace.c (record_btrace_insn_history_range): Include
15558 end.
15559 (record_btrace_insn_history_from): Adjust range.
15560 (record_btrace_call_history_range): Include
15561 end.
15562 (record_btrace_call_history_from): Adjust range.
15563 * NEWS: Announce changes.
15564
8710b709
MM
155652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15566
15567 * record.h (enum record_print_flag)
15568 <record_print_indent_calls>: New.
15569 * record.c (get_call_history_modifiers): Recognize /c modifier.
15570 (_initialize_record): Document /c modifier.
15571 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15572 Reorder fields. Optionally indent the function name. Update
15573 all users.
15574 * NEWS: Announce changes.
15575
d0fa7535
MM
155762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15577
15578 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15579
5de9129b
MM
155802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15581
15582 * btrace.c (ftrace_new_function): Start counting at one.
15583 * record-btrace.c (record_btrace_info): Adjust number of calls
15584 and insns.
15585 * NEWS: Announce it.
15586
7acbe133
MM
155872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15588
15589 * record-btrace.c (btrace_call_history_insn_range): Print
15590 insn range as [begin, end].
15591
23a7fe75
MM
155922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15593
15594 * btrace.h (struct btrace_func_link): New.
15595 (enum btrace_function_flag): New.
15596 (struct btrace_inst): Rename to ...
15597 (struct btrace_insn): ...this. Update all users.
15598 (struct btrace_func) <ibegin, iend>: Remove.
15599 (struct btrace_func_link): New.
15600 (struct btrace_func): Rename to ...
15601 (struct btrace_function): ...this. Update all users.
15602 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15603 (number, level, flags>: New.
15604 (struct btrace_insn_iterator): Rename to ...
15605 (struct btrace_insn_history): ...this.
15606 Update all users.
15607 (struct btrace_insn_iterator, btrace_call_iterator): New.
15608 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15609 (struct btrace_target_info) <begin, end, level>
15610 <insn_history, call_history>: New.
15611 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15612 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15613 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15614 (btrace_call_number, btrace_call_begin, btrace_call_end)
15615 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15616 (btrace_find_function_by_number, btrace_set_insn_history)
15617 (btrace_set_call_history): New.
15618 * btrace.c (btrace_init_insn_iterator)
15619 (btrace_init_func_iterator, compute_itrace): Remove.
15620 (ftrace_print_function_name, ftrace_print_filename)
15621 (ftrace_skip_file): Change
15622 parameter to const.
15623 (ftrace_init_func): Remove.
15624 (ftrace_debug): Use new btrace_function fields.
15625 (ftrace_function_switched): Also consider gaining and
15626 losing symbol information).
15627 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15628 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15629 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15630 New.
15631 (ftrace_new_function): Move. Remove debug print.
15632 (ftrace_update_lines, ftrace_update_insns): New.
15633 (ftrace_update_function): Check for call, ret, and jump.
15634 (compute_ftrace): Renamed to ...
15635 (btrace_compute_ftrace): ...this. Rewritten to compute call
15636 stack.
15637 (btrace_fetch, btrace_clear): Updated.
15638 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15639 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15640 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15641 (btrace_call_number, btrace_call_begin, btrace_call_end)
15642 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15643 (btrace_find_function_by_number, btrace_set_insn_history)
15644 (btrace_set_call_history): New.
15645 * record-btrace.c (require_btrace): Use new btrace thread
15646 info fields.
15647 (record_btrace_info, btrace_insn_history)
15648 (record_btrace_insn_history, record_btrace_insn_history_range):
15649 Use new btrace thread info fields and new iterator.
15650 (btrace_func_history_src_line): Rename to ...
15651 (btrace_call_history_src_line): ...this. Use new btrace
15652 thread info fields.
15653 (btrace_func_history): Rename to ...
15654 (btrace_call_history): ...this. Use new btrace thread info
15655 fields and new iterator.
15656 (record_btrace_call_history, record_btrace_call_history_range):
15657 Use new btrace thread info fields and new iterator.
15658
8372a7cb
MM
156592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15660
15661 * frame.h (frame_id_build_unavailable_stack_special): New.
15662 * frame.c (frame_id_build_unavailable_stack_special): New.
15663
c2170eef
MM
156642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15665
15666 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15667 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15668 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15669 to gdbarch.
15670 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15671 (i386_insn_is_jump, i386_jmp_p): New.
15672 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15673 insn_is_jump to gdbarch.
15674 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15675 * gdbarch.h: Regenerated.
15676 * gdbarch.c: Regenerated.
15677 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15678 (default_insn_is_jump): New.
15679 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15680 (default_insn_is_jump): New.
15681
864089d2
MM
156822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15683
15684 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15685 Change to ...
15686 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15687 (btrace_read_type) <btrace_read_new>: Change to ...
15688 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15689
ed9edfb5
MM
156902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15691
15692 * common/linux-btrace.c (linux_read_btrace): Free trace from
15693 previous iteration.
15694
fbcbc3fd
DE
156952014-01-15 Doug Evans <dje@google.com>
15696
15697 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15698 uint32_t.
15699
3d548a53
TT
157002014-01-15 Tom Tromey <tromey@redhat.com>
15701
15702 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15703 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15704 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15705 (set_objfile_main_name): New function.
15706 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15707 language_of_main>: New fields.
15708 (set_objfile_main_name): Declare.
15709 * symtab.c (find_main_name): Loop over objfiles to find the main
15710 name and language.
15711 (set_main_name): Now static.
15712 (get_main_info): Add comment.
15713 * symtab.h (set_main_name): Don't declare.
15714
32ac0d11
TT
157152014-01-15 Tom Tromey <tromey@redhat.com>
15716
15717 * symtab.c (main_progspace_key): New global.
15718 (struct main_info): New.
15719 (name_of_main, language_of_main): Remove.
15720 (get_main_info, main_info_cleanup): New function.
15721 (set_main_name, main_name, main_language): Use get_main_info.
15722 (_initialize_symtab): Initialize main_progspace_key.
15723
9e6c82ad
TT
157242014-01-15 Tom Tromey <tromey@redhat.com>
15725
15726 * dbxread.c (process_one_symbol): Update.
15727 * dwarf2read.c (read_partial_die): Update.
15728 * symfile.c (set_initial_language): Call main_language.
15729 * symtab.c (language_of_main): Now static.
15730 (set_main_name): Add 'lang' parameter.
15731 (find_main_name): Update.
15732 (main_language): New function.
15733 (symtab_observer_executable_changed): Update.
15734 * symtab.h (set_main_name): Update.
15735 (language_of_main): Remove.
15736 (main_language): Declare.
15737
6ef55de7
TT
157382014-01-15 Tom Tromey <tromey@redhat.com>
15739
15740 * symfile.c (init_entry_point_info): Use new "initialized" field.
15741 Update.
15742 * objfiles.h (struct entry_point) <initialized>: New field.
15743 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15744 (struct objfile) <ei>: ...here. Remove.
15745 * objfiles.c (entry_point_address_query): Update.
15746
53eddfa6
TT
157472014-01-15 Tom Tromey <tromey@redhat.com>
15748
15749 * objfiles.c (entry_point_address_query): Relocate entry point
15750 address.
15751 (objfile_relocate1): Do not relocate entry point address.
15752 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15753 <the_bfd_section_index>: New field.
15754 * symfile.c (init_entry_point_info): Find the entry point's
15755 section.
15756
d56e56aa
TT
157572014-01-15 Tom Tromey <tromey@redhat.com>
15758
15759 * solib-frv.c (enable_break): Use entry_point_address_query.
15760
33a97bbe
OJ
157612014-01-15 Omair Javaid <omair.javaid@linaro.org>
15762
15763 * NEWS: Add note on improved process record-replay on
15764 arm*-linux* targets.
15765
c6ec2b30
OJ
157662014-01-15 Omair Javaid <omair.javaid@linaro.org>
15767
15768 * arm-tdep.c (enum arm_record_result): New enum.
15769 (arm_record_unsupported_insn): New function.
15770 (arm_record_coproc_data_proc): Removed.
15771 (thumb2_record_ld_st_multiple): New function.
15772 (thumb2_record_ld_st_dual_ex_tbb): New function.
15773 (thumb2_record_data_proc_sreg_mimm): New function.
15774 (thumb2_record_ps_dest_generic): New function.
15775 (thumb2_record_branch_misc_cntrl): New function.
15776 (thumb2_record_str_single_data): New function.
15777 (thumb2_record_ld_mem_hints): New function.
15778 (thumb2_record_ld_word): New function.
15779 (thumb2_record_lmul_lmla_div): New function.
15780 (thumb2_record_decode_insn_handler): New function.
15781 (decode_insn): Add thumb32 instruction handlers.
15782
97dfe206
OJ
157832014-01-15 Omair Javaid <omair.javaid@linaro.org>
15784
15785 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15786 (struct arm_linux_record_tdep): Declare.
15787 (arm_canonicalize_syscall): New function.
15788 (arm_all_but_pc_registers_record): New function.
15789 (arm_linux_syscall_record): New function.
15790 (arm_linux_init_abi): Add syscall recording constructs.
15791 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15792 decoding. (arm_record_coproc_data_proc): Update arm syscall
15793 decoding.
15794 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15795 <arm_syscall_record>: New field.
15796 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15797 gdb_target_obs.
15798
9904a494
OJ
157992014-01-15 Omair Javaid <omair.javaid@linaro.org>
15800
15801 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15802 register for push instruction recording.
15803
f969241e
OJ
158042014-01-15 Omair Javaid <omair.javaid@linaro.org>
15805
15806 * arm-tdep.c (thumb_record_misc): Update to correct logical
15807 error while recording ldm, ldmia and pop instructions.
15808
bfbbec00
OJ
158092014-01-15 Omair Javaid <omair.javaid@linaro.org>
15810
15811 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15812
e40adcc9
PA
158132014-01-15 Pedro Alves <palves@redhat.com>
15814
15815 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15816 (go32_resume, go32_fetch_registers, store_register)
15817 (go32_store_registers, go32_prepare_to_store)
15818 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15819 (go32_create_inferior, go32_can_run, go32_terminal_init)
15820 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15821 declarations.
15822
b0a16e66
TT
158232014-01-15 Tom Tromey <tromey@redhat.com>
15824
15825 * target.h (async_callback_ftype): New typedef.
15826 (struct target_ops) <to_async>: Use it.
15827
bf7105a4
JB
158282014-01-15 Joel Brobecker <brobecker@adacore.com>
15829
15830 * python/py-value.c (get_field_type): Remove unnecessary curly
15831 braces for single-statement if block.
15832
a8f35c2e
JB
158332014-01-15 Joel Brobecker <brobecker@adacore.com>
15834
15835 * python/py-type.c (convert_field): Add missing empty line
15836 after declarations.
15837
bb4142cf
DE
158382014-01-14 Doug Evans <dje@google.com>
15839
15840 * symfile.h (expand_symtabs_matching): Renamed from
15841 expand_partial_symbol_names. Update prototype.
15842 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15843 * symfile.c (expand_symtabs_matching): Renamed from
15844 expand_partial_symbol_names. New args file_matcher, kind.
15845 Rename arg fun to symbol_matcher.
15846 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15847 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15848 ada_expand_partial_symbol_name.
15849 (ada_make_symbol_completion_list): Update to call
15850 expand_symtabs_matching.
15851 (ada_add_global_exceptions): Call expand_symtabs_matching.
15852 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15853 call map_symbol_filenames.
15854 * symtab.c (sources_info): Update to call map_symbol_filenames.
15855 (search_symbols): Call expand_symtabs_matching.
15856 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15857 (default_make_symbol_completion_list_break_on): Update to call
15858 expand_symtabs_matching.
15859 (make_source_files_completion_list): Update to call
15860 map_symbol_filenames.
15861
206f2a57
DE
158622014-01-14 Doug Evans <dje@google.com>
15863
15864 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15865 (expand_symtabs_symbol_matcher_ftype): New typedef.
15866 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15867 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15868 * symfile.c (expand_partial_symbol_names): Update to use
15869 expand_symtabs_symbol_matcher_ftype.
15870 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15871 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15872 Arg name_matcher renamed to symbol_matcher.
15873 * psymtab.c (recursively_search_psymtabs): Update to use
15874 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15875 sym_matcher.
15876 (expand_symtabs_matching_via_partial): Update to use
15877 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15878 Arg name_matcher renamed to symbol_matcher.
15879
540c2971
DE
158802014-01-14 Doug Evans <dje@google.com>
15881
15882 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15883 (map_partial_symbol_filenames): Ditto.
15884 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15885 (map_partial_symbol_filenames): Ditto.
15886 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15887 (map_partial_symbol_filenames): Ditto.
15888 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15889 (map_partial_symbol_filenames): Ditto.
15890 * symtab.c: Delete #include "psymtab.h".
15891
8213266a
PA
158922014-01-14 Pedro Alves <palves@redhat.com>
15893 Tom Tromey <tromey@redhat.com>
15894
15895 * infrun.c (use_displaced_stepping): Use find_record_target
15896 instead of RECORD_IS_USED.
15897 (adjust_pc_after_break): Use record_full_is_used instead of
15898 RECORD_IS_USED.
15899 * record-btrace.c (record_btrace_open): Call record_preopen
15900 instead of checking RECORD_IS_USED.
15901 * record-full.c (record_full_shortname)
15902 (record_full_core_shortname): New globals.
15903 (record_full_is_used): New function.
15904 (find_full_open): Call record_preopen instead of checking
15905 RECORD_IS_USED.
15906 (init_record_full_ops): Set the target's shortname to
15907 record_full_shortname.
15908 (init_record_full_core_ops): Set the target's shortname to
15909 record_full_core_shortname.
15910 * record-full.h (record_full_is_used): Declare.
15911 * record.c (find_record_target): Make extern.
15912 (record_preopen): New function.
15913 * record.h (RECORD_IS_USED): Delete macro.
15914 (find_record_target, record_preopen): Declare functions.
15915
7ec1862d
YQ
159162014-01-14 Yao Qi <yao@codesourcery.com>
15917
15918 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15919 'len''s type to ULONGEST.
15920 (core_xfer_shared_libraries_aix): Likewise.
15921 * gdbarch.c, gdbarch.h: Regenerated.
15922 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15923 Change type of 'len' to ULONGEST.
15924 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15925 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15926
dea80a27
YQ
159272014-01-14 Yao Qi <yao@codesourcery.com>
15928
15929 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15930 type of 'len' to ULONGEST.
15931 (linux_xfer_osdata_processgroups): Likewise.
15932 (linux_xfer_osdata_threads): Likewise.
15933 (linux_xfer_osdata_fds): Likewise.
15934 (linux_xfer_osdata_isockets): Likewise.
15935 (linux_xfer_osdata_shm): Likewise.
15936 (linux_xfer_osdata_sem): Likewise.
15937 (linux_xfer_osdata_msg): Likewise.
15938 (linux_common_xfer_osdata): Likewise.
15939 (struct osdata_type) <getter>: Likewise.
15940 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15941 the declaration.
15942
b55e14c7
YQ
159432014-01-14 Yao Qi <yao@codesourcery.com>
15944
15945 * target.h (target_xfer_partial_ftype): Update.
15946 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15947 ULONGEST.
15948 * aix-thread.c (aix_thread_xfer_partial): Change type of
15949 argument 'len' to ULONGEST.
15950 * auxv.c (procfs_xfer_auxv): Likewise.
15951 (ld_so_xfer_auxv): Likewise.
15952 (memory_xfer_auxv): Likewise.
15953 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15954 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15955 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15956 * corelow.c (core_xfer_partial): Likewise.
15957 * ctf.c (ctf_xfer_partial): Likewise.
15958 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15959 '%u'.
15960 (darwin_read_dyld_info): Likewise.
15961 (darwin_xfer_partial): Likewise.
15962 * exec.c (section_table_xfer_memory_partial): Likewise.
15963 (exec_xfer_partial): Likewise.
15964 * exec.h (section_table_xfer_memory_partial): Update
15965 declaration.
15966 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15967 instead of plongest.
15968 (gnu_xfer_partial): Likewise.
15969 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15970 (ia64_hpux_xfer_solib_got): Likewise.
15971 (ia64_hpux_xfer_partial): Likewise.
15972 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15973 * inf-ptrace.c (inf_ptrace_xfer_partial):
15974 * inf-ttrace.c (inf_ttrace_xfer_partial):
15975 * linux-nat.c (linux_xfer_siginfo): Likewise.
15976 (linux_nat_xfer_partial): Likewise.
15977 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15978 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15979 * monitor.c (monitor_xfer_memory): Likewise.
15980 (monitor_xfer_partial): Likewise.
15981 * procfs.c (procfs_xfer_partial): Likewise.
15982 * record-full.c (record_full_xfer_partial): Likewise.
15983 (record_full_core_xfer_partial): Likewise.
15984 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15985 instead of plongest.
15986 (gdbsim_xfer_partial): Likewise.
15987 * remote.c (remote_xfer_partial): Likewise.
15988 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15989 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15990 declaration.
15991 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15992 (rs6000_xfer_shared_libraries): Likewise.
15993 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15994 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15995 (sparc_xfer_partial): Likewise.
15996 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15997 (spu_xfer_partial): Likewise.
15998 * spu-multiarch.c (spu_xfer_partial): Likewise.
15999 * target.c (target_read_live_memory): Likewise.
16000 (memory_xfer_live_readonly_partial): Likewise.
16001 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16002 (target_xfer_partial, default_xfer_partial): Likewise.
16003 (current_xfer_partial): Likewise.
16004 * tracepoint.c (tfile_xfer_partial): Likewise.
16005 * windows-nat.c (windows_xfer_memory): Likewise. Call
16006 pulongest instead of plongest.
16007 (windows_xfer_partial): Likewise.
16008 (windows_xfer_shared_libraries): Likewise.
16009
05804640
YQ
160102014-01-14 Yao Qi <yao@codesourcery.com>
16011
16012 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16013 target_xfer_partial_ftype.
16014
b5b08fb4
SC
160152014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16016
16017 PR python/15464
16018 PR python/16113
16019 * valops.c (value_struct_elt_bitpos): New function
16020 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16021 object to 'None' if the field name is an empty string ("").
16022 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16023 attribute to look for a field when 'name' is 'None'.
16024 (get_field_type): New function
16025
13aaf454
DE
160262014-01-13 Doug Evans <dje@google.com>
16027
16028 PR symtab/16426
16029 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16030 (try_open_dwop_file): Ditto.
16031 * gdb_bfd.c: #include "vec.h".
16032 (bfdp): New typedef.
16033 (struct gdb_bfd_data): New member included_bfds.
16034 (gdb_bfd_unref): Unref all included bfds.
16035 (gdb_bfd_record_inclusion): New function.
16036 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16037
c2cec97c
TT
160382014-01-13 Tom Tromey <tromey@redhat.com>
16039
16040 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16041
78e5999d
TT
160422014-01-13 Tom Tromey <tromey@redhat.com>
16043
16044 * defs.h (use_windows): Remove.
16045 * gdb.c (main): Update.
16046 * main.c (captured_main, gdb_main): Update.
16047 * main.h (struct captured_main_args) <use_windows>: Remove.
16048 * top.c (use_windows): Remove.
16049
f2052bbe
TT
160502014-01-13 Tom Tromey <tromey@redhat.com>
16051
16052 * defs.h (deprecated_flush_hook): Remove.
16053
fde4f8ed
JK
160542014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16055
16056 PR threads/16216
16057 * linux-thread-db.c (try_thread_db_load): Add parameter
16058 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16059 (try_thread_db_load_from_pdir_1): Move it there from here.
16060 (try_thread_db_load_from_sdir): Update caller.
16061 (try_thread_db_load_from_dir): Move it there from here.
16062
bdf61915
PP
160632014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16064
16065 * regformats/regdat.sh: Always rewrite the register file.
16066
f71e1a8d
PA
160672014-01-13 Pedro Alves <palves@redhat.com>
16068
16069 * Makefile.in (CHECK_HEADERS): New variable.
16070 (check-headers:): New rule.
16071
42c85435
TT
160722014-01-13 Tom Tromey <tromey@redhat.com>
16073
16074 * cli/cli-setshow.c (do_set_command): Update.
16075 * defs.h (deprecated_set_hook): Remove.
16076 * top.c (deprecated_set_hook): Remove.
16077
f8de5129
PA
160782014-01-13 Pedro Alves <palves@redhat.com>
16079
16080 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16081 the tracepoint if the PC is a pseudo-register.
16082
fc270c35
TT
160832014-01-13 Tom Tromey <tromey@redhat.com>
16084
16085 * defs.h (XCALLOC): Remove.
16086 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16087 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16088 * dwarf2loc.c (allocate_piece_closure): Likewise.
16089 * elfread.c (elf_symfile_segments): Likewise.
16090 (elf_symfile_segments): Likewise.
16091 * gdbtypes.c (copy_type_recursive): Likewise.
16092 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16093 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16094 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16095 XCALLOC.
16096 * mt-tdep.c (mt_gdbarch_init): Likewise.
16097 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16098 XCALLOC.
16099 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16100 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16101 * registry.c (registry_alloc_data): Likewise.
16102 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16103 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16104 * serial.c (serial_fdopen_ops): Likewise.
16105 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16106 XCALLOC.
16107 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16108 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16109 not XCALLOC.
16110
70ba0933
TT
161112014-01-13 Tom Tromey <tromey@redhat.com>
16112
16113 * defs.h (XMALLOC): Remove.
16114 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16115 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16116 * cli-out.c (struct ui_out *): Likewise.
16117 * cli/cli-dump.c (add_dump_command): Likewise.
16118 (add_dump_command): Likewise.
16119 * complaints.c (get_complaints): Likewise.
16120 (find_complaint): Likewise.
16121 * dwarf2-frame.c (execute_cfa_program): Likewise.
16122 * dwarf2read.c (abbrev_table_read_table): Likewise.
16123 * gdbarch.sh: Likewise.
16124 * gdbarch.c: Rebuild.
16125 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16126 * interps.c (interp_new): Likewise.
16127 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16128 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16129 * mi/mi-console.c (mi_console_file_new): Likewise.
16130 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16131 * mi/mi-out.c (mi_out_new): Likewise.
16132 * mi/mi-parse.c (mi_parse): Likewise.
16133 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16134 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16135 * observer.c (xalloc_observer_list_node): Likewise.
16136 * regcache.c (regcache_xmalloc_1): Likewise.
16137 * reggroups.c (reggroup_new): Likewise.
16138 (_initialize_reggroup): Likewise.
16139 * registry.c (register_data_with_cleanup): Likewise.
16140 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16141 * ser-base.c (serial_ttystate): Likewise.
16142 * ser-mingw.c (make_pipe_state): Likewise.
16143 * ser-pipe.c (pipe_open): Likewise.
16144 * serial.c (serial_open): Likewise.
16145 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16146 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16147 (tui_alloc_win_info): Likewise.
16148 (tui_add_content_elements): Likewise.
16149 * tui/tui-file.c (tui_file_new): Likewise.
16150 * tui/tui-out.c (tui_out_new): Likewise.
16151 * ui-file.c (mem_file_new): Likewise.
16152 * ui-out.c (push_level): Likewise.
16153 (make_cleanup_ui_out_end): Likewise.
16154 (append_header_to_list): Likewise.
16155 (ui_out_new): Likewise.
16156 * user-regs.c (user_reg_add_builtin): Likewise.
16157
41bf6aca
TT
161582014-01-13 Tom Tromey <tromey@redhat.com>
16159
16160 * defs.h (XZALLOC): Remove.
16161 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16162 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16163 (get_ada_tasks_inferior_data): Likewise.
16164 * auto-load.c (get_auto_load_pspace_data): Likewise.
16165 * auxv.c (get_auxv_inferior_data): Likewise.
16166 * bfd-target.c (target_bfd_reopen): Likewise.
16167 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16168 (deprecated_insert_raw_breakpoint): Likewise.
16169 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16170 * corelow.c (core_open): Likewise.
16171 * darwin-nat.c (darwin_check_new_threads): Likewise.
16172 (darwin_attach_pid): Likewise.
16173 * dummy-frame.c (dummy_frame_push): Likewise.
16174 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16175 * dwarf2loc.c (allocate_piece_closure): Likewise.
16176 * elfread.c (elf_symfile_segments): Likewise.
16177 * eval.c (ptrmath_type_p): Likewise.
16178 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16179 * gdbtypes.c (alloc_type_arch): Likewise.
16180 (alloc_type_instance): Likewise.
16181 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16182 * inf-child.c (inf_child_can_use_agent): Likewise.
16183 * inflow.c (get_inflow_inferior_data): Likewise.
16184 * infrun.c (save_infcall_suspend_state): Likewise.
16185 * jit.c (jit_reader_load): Likewise.
16186 (get_jit_objfile_data): Likewise.
16187 (get_jit_program_space_data): Likewise.
16188 (jit_object_open_impl): Likewise.
16189 (jit_symtab_open_impl): Likewise.
16190 (jit_block_open_impl): Likewise.
16191 (jit_frame_sniffer): Likewise.
16192 * linux-fork.c (add_fork): Likewise.
16193 * maint.c (make_command_stats_cleanup): Likewise.
16194 * objfiles.c (get_objfile_pspace_data): Likewise.
16195 * opencl-lang.c (struct lval_closure): Likewise.
16196 * osdata.c (osdata_start_osdata): Likewise.
16197 * progspace.c (new_address_space): Likewise.
16198 (add_program_space): Likewise.
16199 * remote-sim.c (get_sim_inferior_data): Likewise.
16200 * sh-tdep.c (sh_gdbarch_init): Likewise.
16201 * skip.c (Ignore): Likewise.
16202 (skip_delete_command): Likewise.
16203 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16204 (library_list_start_library): Likewise.
16205 (solib_aix_current_sos): Likewise.
16206 * solib-darwin.c (get_darwin_info): Likewise.
16207 (darwin_current_sos): Likewise.
16208 * solib-dsbt.c (get_dsbt_info): Likewise.
16209 * solib-ia64-hpux.c (new_so_list): Likewise.
16210 (ia64_hpux_get_solib_linkage_addr): Likewise.
16211 * solib-spu.c (append_ocl_sos): Likewise.
16212 (spu_current_sos): Likewise.
16213 * solib-svr4.c (get_svr4_info): Likewise.
16214 (svr4_keep_data_in_core): Likewise.
16215 (library_list_start_library): Likewise.
16216 (svr4_default_sos): Likewise.
16217 (svr4_read_so_list): Likewise.
16218 * solib-target.c (library_list_start_library): Likewise.
16219 (solib_target_current_sos): Likewise.
16220 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16221 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16222 * symfile.c (default_symfile_segments): Likewise.
16223 * target-descriptions.c (tdesc_data_init): Likewise.
16224 (tdesc_create_reg): Likewise.
16225 (struct tdesc_type *): Likewise.
16226 (tdesc_create_vector): Likewise.
16227 (tdesc_set_struct_size): Likewise.
16228 (struct tdesc_type *): Likewise.
16229 (tdesc_free_feature): Likewise.
16230 (tdesc_create_feature): Likewise.
16231 * windows-nat.c (windows_add_thread): Likewise.
16232 (windows_make_so): Likewise.
16233 * xml-support.c (gdb_xml_body_text): Likewise.
16234 (gdb_xml_create_parser_and_cleanup): Likewise.
16235 (xml_process_xincludes): Likewise.
16236 * xml-syscall.c (allocate_syscalls_info): Likewise.
16237 (syscall_create_syscall_desc): Likewise.
16238
5acfdbae
SDJ
162392014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16240
16241 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16242 function, with code from i386_stap_parse_special_token.
16243 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16244 (i386_stap_parse_special_token): Move code to the two functions
16245 above; simplify it.
16246
0000e5cc
PA
162472014-01-09 Pedro Alves <palves@redhat.com>
16248 Hui Zhu <hui@codesourcery.com>
16249
16250 PR gdb/16101
16251 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16252 bp_err_string. Don't mark the location shlib_disabled if the
16253 error thrown wasn't a generic or memory error. Catch errors
16254 thrown while inserting breakpoints in overlayed code. Output
16255 error message of software breakpoints.
16256 * remote.c (remote_insert_breakpoint): If this breakpoint has
16257 target-side commands but this stub doesn't support Z0 packets,
16258 throw NOT_SUPPORTED_ERROR error.
16259 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16260 * target.h (target_insert_breakpoint): Extend comment.
16261 (target_insert_hw_breakpoint): Add comment.
16262
b7ea362b
PA
162632014-01-08 Pedro Alves <palves@redhat.com>
16264
16265 * remote.c (remote_add_thread): Add threads silently if starting
16266 up.
16267 (remote_notice_new_inferior): If in all-stop, and starting up,
16268 don't call notice_new_inferior.
16269 (get_current_thread): New function, factored out from ...
16270 (add_current_inferior_and_thread): ... this. Adjust.
16271 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16272 found any thread, then select the remote's current thread as GDB's
16273 current thread too.
16274
b7bba001
JB
162752014-01-08 Joel Brobecker <brobecker@adacore.com>
16276
16277 * NEWS: Create a new section for the next release branch.
16278 Rename the section of the current branch, now that it has
16279 been cut.
16280
16dfbded
JB
162812014-01-08 Joel Brobecker <brobecker@adacore.com>
16282
16283 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16284 * version.in: Bump version to 7.7.50.DATE-cvs.
16285
22c90ac1
YQ
162862014-01-08 Yao Qi <yao@codesourcery.com>
16287
16288 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16289 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16290 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16291
d64ad97c
YQ
162922014-01-08 Yao Qi <yao@codesourcery.com>
16293
16294 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16295 return value of bfd_get_filename to symbol_file_add_from_bfd.
16296
f93ba80c
PM
162972014-01-08 Pierre Muller <muller@sourceware.org>
16298
16299 Fix PR16201.
16300 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16301 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16302 to prim_record_mininal_symbol_and_info.
16303 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16304 in call to prim_record_minimal_symbol_and_info.
16305 (read_pe_exported_syms): Set index field of section_data.
16306
a4d9ba85
AP
163072014-01-07 Andrew Pinski <apinski@cavium.com>
16308
16309 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16310 * features/aarch64.c: Regenerate.
16311
1b67eb02
AS
163122014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16313
16314 * target.c (return_null): Define.
16315 (update_current_target): Use it instead of return_zero for
16316 functions that return a pointer.
16317
5e3f4fab
EBM
163182014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16319
16320 * source.c (add_path): Fix check for duplicated paths in the previously
16321 included paths.
16322
e2616788
HK
163232014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16324
16325 * ada-lang.c: Remove duplicated include statements.
16326 * alphabsd-nat.c: Ditto.
16327 * amd64-darwin-tdep.c: Ditto.
16328 * amd64fbsd-nat.c: Ditto.
16329 * auto-load.c: Ditto.
16330 * ax-gdb.c: Ditto.
16331 * breakpoint.c: Ditto.
16332 * dbxread.c: Ditto.
16333 * fork-child.c: Ditto.
16334 * gdb_usleep.c: Ditto.
16335 * i386-darwin-tdep.c: Ditto.
16336 * i386fbsd-nat.c: Ditto.
16337 * infcmd.c: Ditto.
16338 * inferior.c: Ditto.
16339 * jv-lang.c: Ditto.
16340 * linux-nat.c: Ditto.
16341 * linux-tdep.c: Ditto.
16342 * m68kbsd-nat.c: Ditto.
16343 * m68klinux-nat.c: Ditto.
16344 * microblaze-tdep.c: Ditto.
16345 * mips-linux-tdep.c: Ditto.
16346 * mn10300-tdep.c: Ditto.
16347 * nto-tdep.c: Ditto.
16348 * opencl-lang.c: Ditto.
16349 * osdata.c: Ditto.
16350 * printcmd.c: Ditto.
16351 * regcache.c: Ditto.
16352 * remote-m32r-sdi.c: Ditto.
16353 * remote.c: Ditto.
16354 * symfile.c: Ditto.
16355 * symtab.c: Ditto.
16356 * tilegx-linux-nat.c: Ditto.
16357 * tilegx-tdep.c: Ditto.
16358 * tracepoint.c: Ditto.
16359 * valops.c: Ditto.
16360 * vaxbsd-nat.c: Ditto.
16361 * windows-nat.c: Ditto.
16362 * xtensa-tdep.c: Ditto.
16363
bd1f7788
YQ
163642014-01-07 Yao Qi <yao@codesourcery.com>
16365
16366 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16367
79301218
JB
163682014-01-07 Yao Qi <yao@codesourcery.com>
16369 Joel Brobecker <brobecker@adacore.com>
16370
16371 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16372 (pdc_write_regs): Likewise.
16373 (fetch_regs_kernel_thread): Likewise.
16374 (store_regs_kernel_thread): Likewise.
16375
163762014-01-07 Joel Brobecker <brobecker@adacore.com>
16377
16378 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16379 tagged type objects to their actual type.
16380
8e355c5d
JB
163812014-01-07 Joel Brobecker <brobecker@adacore.com>
16382
16383 * ada-valprint.c (print_field_values): Add "language" parameter.
16384 Update calls to print_field_values and print_variant_part.
16385 Pass new parameter "language" in call to val_print instead
16386 of "current_language". Replace call to ada_val_print by call
16387 to val_print.
16388 (print_variant_part): Add "language" parameter.
16389 (ada_val_print_struct_union): Update call to print_field_values.
16390
4fbf5aa5
JB
163912014-01-07 Joel Brobecker <brobecker@adacore.com>
16392
16393 * ada-valprint.c (ui_memcpy): Delete.
16394 (ada_print_floating): Update documentation. Add empty line
16395 between between function documentation and implementation.
16396 Delete variable "buffer". Use ui_file_xstrdup in place of
16397 ui_file_put. Minor adjustments following this change.
16398
71855601
JB
163992014-01-07 Joel Brobecker <brobecker@adacore.com>
16400
16401 * ada-valprint.c (ada_val_print_string): New function,
16402 extracted from ada_val_print_array.
16403 (ada_val_print_array): Replace extracted code by call
16404 to ada_val_print_string followed by a return. Move
16405 "else" branch to the function's top block.
16406
4eb27a30
JB
164072014-01-07 Joel Brobecker <brobecker@adacore.com>
16408
16409 * ada-valprint.c (ada_val_print_array): Move implementation
16410 down. Rename parameter "offset" and "val" into "offset_aligned"
16411 and "original_value" respectively. Add parameter "offset".
16412
34b27950
JB
164132014-01-07 Joel Brobecker <brobecker@adacore.com>
16414
16415 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16416 re-organizing the code. Change the "???" message printed
16417 when target type is a TYPE_CODE_UNDEF into
16418 "<ref to undefined type>".
16419
079e4591
JB
164202014-01-07 Joel Brobecker <brobecker@adacore.com>
16421
16422 * ada-valprint.c (print_record): Delete, implementation inlined...
16423 (ada_val_print_struct_union): ... here. Remove call to
16424 ada_check_typedef in inlined implementation.
16425
8004dfd1
JB
164262014-01-07 Joel Brobecker <brobecker@adacore.com>
16427
16428 * ada-valprint.c (ada_val_print_gnat_array): New function,
16429 extracted from ada_val_print_1;
16430 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16431 (ada_val_print_flt, ada_val_print_struct_union)
16432 (ada_val_print_ref): Likewise.
16433 (ada_val_print_1): Delete variables i and elttype.
16434 Replace extracted-out code by call to corresponding
16435 new functions.
16436
760a2db0
JB
164372014-01-07 Joel Brobecker <brobecker@adacore.com>
16438
16439 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16440
3a92c861
JB
164412014-01-07 Joel Brobecker <brobecker@adacore.com>
16442
16443 * ada-valprint.c (ada_val_print_1): Replace calls to
16444 ada_val_print_1 by calls to val_print.
16445
cd1630f9
JB
164462014-01-07 Joel Brobecker <brobecker@adacore.com>
16447
16448 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16449 Update calls to self accordingly. Replace calls to c_val_print
16450 by calls to val_print.
16451
bdf779a0
JB
164522014-01-07 Joel Brobecker <brobecker@adacore.com>
16453
16454 * ada-valprint.c (print_record): Delete declaration.
16455 (adjust_type_signedness, ada_val_print_1): Likewise.
16456 (ada_val_print): Move function implementation down.
16457 (print_variant_part, print_field_values, print_record):
16458 Move function implementation up.
16459
c0d48811
JB
164602014-01-07 Joel Brobecker <brobecker@adacore.com>
16461
16462 * python/py-type.c (typy_get_name): New function.
16463 (type_object_getset): Add entry for attribute "name".
16464 * NEWS: Add entry mentioning this new attribute.
16465
c26e9cbb
YQ
164662014-01-07 Yao Qi <yao@codesourcery.com>
16467
16468 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16469 statement.
16470
0cc6f43d
YQ
164712014-01-07 Yao Qi <yao@codesourcery.com>
16472
16473 * gnu-nat.c (info_port_rights): Add qualifier const to
16474 argument args.
16475
eec03155
YQ
164762014-01-07 Yao Qi <yao@codesourcery.com>
16477
16478 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16479
f04a82ef
YQ
164802014-01-07 Yao Qi <yao@codesourcery.com>
16481
16482 * gnu-nat.c (make_inf) Update declaration.
16483 (make_inf): Make it static.
16484 (inf_set_traced): Likewise.
16485 (inf_port_to_thread, inf_task_died_status): Likewise.
16486
d57dda0a
YQ
164872014-01-07 Yao Qi <yao@codesourcery.com>
16488
16489 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16490
3aa8c969
YQ
164912014-01-07 Yao Qi <yao@codesourcery.com>
16492
16493 * gnu-nat.c (_initialize_gnu_nat): Declare.
16494
94123b4f
YQ
164952014-01-07 Yao Qi <yao@codesourcery.com>
16496
16497 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16498 'enum bfd_endian'.
16499 (struct gdbarch_info) <byte_order>: Change type to
16500 'enum bfd_endian'.
16501 <byte_order_for_code>: Likewise.
16502 * gdbarch.c, gdbarch.h: Regenerated.
16503
dc81d70a
TT
165042014-01-06 Sasha Smundak <asmundak@google.com>
16505
16506 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16507
cc2f3c35
TT
165082014-01-06 Tom Tromey <tromey@redhat.com>
16509
16510 * doublest.c (convert_doublest_to_floatformat): Use const, not
16511 CONST.
16512 * somread.c (som_symtab_read): Likewise.
16513
adcf2eed
HZ
165142014-01-07 Hui Zhu <hui@codesourcery.com>
16515
16516 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16517 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16518 (gdb_bfd_fopen): Ditto.
16519 (gdb_bfd_openr): Ditto.
16520 (gdb_bfd_openw): Ditto.
16521 (gdb_bfd_openr_iovec): Ditto.
16522 (gdb_bfd_fdopenr): Ditto.
16523 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16524 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16525 with xstrdup.
16526 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16527 with xstrdup.
16528 * symfile-mem.c (symbol_file_add_from_memory): Removed
16529 gdb_bfd_stash_filename.
16530
50722198
DE
165312014-01-03 Doug Evans <dje@google.com>
16532
16533 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16534 output.
16535
2fa4b862
JB
165362014-01-01 Joel Brobecker <brobecker@adacore.com>
16537
16538 Update year range in copyright notice of all files.
16539
28498c42
JB
165402014-01-01 Joel Brobecker <brobecker@adacore.com>
16541
16542 * top.c (print_gdb_version): Set copyright year to 2014.
16543
7b6e1046
JB
165442014-01-01 Joel Brobecker <brobecker@adacore.com>
16545
16546 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16547
df96af55 16548For older changes see ChangeLog-2013.
c906108c
SS
16549\f
16550Local Variables:
16551mode: change-log
16552left-margin: 8
16553fill-column: 74
16554version-control: never
57da7796 16555coding: utf-8
c906108c 16556End:
This page took 2.401663 seconds and 4 git commands to generate.