Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
db7a9bcd
SM
12014-12-18 Simon Marchi <simon.marchi@ericsson.com>
2
3 * elfread.c (elf_symfile_init): Remove stale comment.
4 (elf_symfile_read): Same.
5 * symfile.h (struct sym_fns): Same.
6
1bab7383
YQ
72014-12-18 Nigel Stephens <nigel@mips.com>
8 Maciej W. Rozycki <macro@codesourcery.com>
9
10 * mips-tdep.c (print_fpu_flags): New function.
11 (mips_print_float_info): Likewise.
12 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
13 print_float_info routine.
14
cc86d1cb
YQ
152014-12-18 Yao Qi <yao@codesourcery.com>
16
17 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
18 * gdbarch.c: Re-generated.
19 * gdbarch.h: Likewise.
20 * infcmd.c (default_print_float_info): New function.
21 (print_float_info): Removed. Move code to
22 default_print_float_info.
23 (float_info): Adjust to call gdbarch_print_float_info.
24 * inferior.h (default_print_float_info): Declare it.
25
2ad47ec4
YQ
262014-12-18 Yao Qi <yao@codesourcery.com>
27
28 * h8300-tdep.c (h8300_print_float_info): Remove.
29 (h8300_gdbarch_init): Remove the call to
30 set_gdbarch_print_float_info.
31
253342b8
DE
322014-12-18 Doug Evans <xdje42@gmail.com>
33
34 * infcmd.c (jump_command): Minor simplification.
35
46b0da17
DE
362014-12-18 Doug Evans <xdje42@gmail.com>
37
38 * language.c (language_lookup_primitive_type): Renamed from
39 language_lookup_primitive_type_by_name. All callers updated.
40
1bc1068a
JK
412014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 Fix MinGW compilation.
44 * compile/compile.c (get_compile_file_tempdir): Call error if
45 !HAVE_MKDTEMP.
46 * config.in: Regenerate.
47 * configure: Regenerate.
48 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
49
5e3c72e6
DE
502014-12-17 Doug Evans <xdje42@gmail.com>
51
52 * valops.c (value_maybe_namespace_elt): Remove redundant call to
53 lookup_static_symbol.
54
cc485e62
DE
552014-12-17 Doug Evans <xdje42@gmail.com>
56
57 New parameter "debug symbol-lookup".
58 * NEWS: Mention it.
59 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
60 output.
61 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
62 (cp_lookup_nested_symbol): Ditto.
63 * language.c (language_lookup_primitive_type_by_name): Add debug
64 output.
65 * minsyms.c (lookup_minimal_symbol): Add debug output.
66 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
67 * symfile-debug.c (debug_objfile_name): ... from here. All callers
68 updated.
69 * objfiles.h (objfile_debug_name): Declare.
70 * symtab.h (symbol_lookup_debug): Declare.
71 * symtab.c (symbol_lookup_debug): New global.
72 (lookup_language_this): Add debug output.
73 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
74 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
75 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
76 (_initialize_symtab): Add new parameter "debug symbol-lookup".
77
0ab9ce85
DE
782014-12-16 Doug Evans <xdje42@gmail.com>
79
80 * buildsym.c: Add comments describing how the buildsym machinery
81 is used by the various file formats.
82 (really_free_pendings): Enhance function comment.
83 See pending_macros to NULL. Simplify resetting pending_addrmap.
84 Call free_buildsym_compunit.
85 (free_buildsym_compunit): Set current_subfile to NULL.
86 (prepare_for_building): New function.
87 (start_symtab): Call it. Remove call to set_last_source_file.
88 (restart_symtab): New arg "cust". All callers updated.
89 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
90 (reset_symtab_globals): Enhance function comment.
91 Set local_symbols, file_symbols, global_symbols to NULL.
92 Set pending_macros to NULL. Simplify resetting pending_addrmap.
93 Call free_buildysym_compunit.
94 (end_symtab_without_blockvector): Delete. All callers updated.
95 (end_symtab_with_blockvector): Remove redundant call to
96 free_buildsym_compunit.
97 (augment_type_symtab): Remove arg "cust". All callers updated.
98 (buildsym_init): Remove resetting of free_pendings, file_symbols,
99 global_symbols, pending_blocks, pending_macros. Instead make
100 handling consistent with pending_addrmap: Assert value was reset
101 at end of previous symtab building. Initialize context_stack here.
102
55accf4a
DE
1032014-12-16 Doug Evans <xdje42@gmail.com>
104
105 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
106 cp_lookup_symbol_imports. All callers updated.
107
a07e3e18
DE
1082014-12-16 Doug Evans <xdje42@gmail.com>
109
110 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
111 find_type_baseclass_by_name. All callers updated.
112
d01060f0
DE
1132014-12-16 Doug Evans <xdje42@gmail.com>
114
115 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
116 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
117 (print_symbol_info): Delete arg symtab. All callers updated.
118 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
119
25dda427
AA
1202014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
121
122 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
123 "Name" columns. Assure that the output is always indented.
124
beed38b8
JB
1252014-12-16 Joel Brobecker <brobecker@adacore.com>
126
127 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
128 already defined.
129 (linux_enable_event_reporting): Add parameter "attached".
130 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
131 declaration. New function.
132 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
133 (linux_enable_event_reporting): Add new parameter "attached".
134 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
135 nonzero.
136 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
137 Use it. Update function description.
138 (linux_child_post_attach, linux_child_post_startup_inferior):
139 Update call to linux_enable_event_reporting.
140
8fda9068
YQ
1412014-12-16 Yao Qi <yao@codesourcery.com>
142
143 * NEWS: Move some entries to "Changes since GDB 7.8" section.
144
2a546367
YQ
1452014-12-16 Yao Qi <yao@codesourcery.com>
146
147 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
148 ARG_LAST.
149
c9657e70
SM
1502014-12-15 Simon Marchi <simon.marchi@ericsson.com>
151
152 * inferior.c (find_inferior_ptid): New function.
153 * inferior.h (find_inferior_ptid): New declaration.
154 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
155 * corelow.c (core_pid_to_str): Same.
156 * darwin-nat.c (darwin_resume): Same.
157 * infrun.c (fetch_inferior_event): Same.
158 (get_inferior_stop_soon): Same.
159 (handle_inferior_event): Same.
160 (handle_signal_stop): Same.
161 * linux-nat.c (resume_lwp): Same.
162 (stop_wait_callback): Same.
163 * mi/mi-interp.c (mi_new_thread): Same.
164 (mi_thread_exit): Same.
165 * proc-service.c (ps_pglobal_lookup): Same.
166 * record-btrace.c (record_btrace_step_thread): Same.
167 * remote-sim.c (gdbsim_close_inferior): Same.
168 (gdbsim_resume): Same.
169 (gdbsim_stop): Same.
170 * sol2-tdep.c (sol2_core_pid_to_str): Same.
171 * target.c (memory_xfer_partial_1): Same.
172 (default_thread_address_space): Same.
173 * thread.c (thread_change_ptid): Same.
174 (switch_to_thread): Same.
175 (do_restore_current_thread_cleanup): Same.
176
38bcc89d
SM
1772014-12-15 Simon Marchi <simon.marchi@ericsson.com>
178
179 * defs.h (gdb_readline): Constify argument.
180 (gdb_readline_wrapper): Same.
181 (command_line_input): Same.
182 (deprecated_readline_hook): Same.
183 * top.c (deprecated_readline_hook): Same.
184 (gdb_readline): Same.
185 (gdb_readline_wrapper): Same.
186 (command_line_input): Constify argument. Pass prompt_arg to called
187 functions instead of local_prompt, overwriting prompt_arg if necessary.
188 * event-top.h (display_gdb_prompt): Constify argument.
189 * event-top.c (display_gdb_prompt): Same.
190 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
191 if building with Python 3.4 and up.
192
89ed8ea1
SM
1932014-12-15 Simon Marchi <simon.marchi@ericsson.com>
194
195 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
196 os.getcwdu().
197
aacd3e8c
CU
1982014-12-15 Catalin Udma <catalin.udma@freescale.com>
199
200 PR gdb/15684
201 * memattr.c (mem_info_command): Remove "unsigned long" casts.
202
dc4d6886
DE
2032014-12-13 Doug Evans <xdje42@gmail.com>
204
205 * utils.c (make_hex_string): Fix off-by-one error.
206
c1b5a1a6
JB
2072014-12-13 Joel Brobecker <brobecker@adacore.com>
208
209 * ada-lang.h (ada_ensure_varsize_limit): Declare.
210 * ada-lang.c (check_size): Remove advance declaration.
211 (ada_ensure_varsize_limit): Renames check_size.
212 Replace calls to check_size by calls to ada_ensure_varsize_limit
213 throughout.
214 * ada-valprint.c (ada_val_print_ref): Add call to
215 ada_ensure_varsize_limit. Add comment explaining why.
216
3c46a02f
JB
2172014-12-13 Joel Brobecker <brobecker@adacore.com>
218
219 * utils.c (make_hex_string): Replace use of sprintf by use of
220 xsnprintf.
221
8e8347b8
JB
2222014-12-13 Joel Brobecker <brobecker@adacore.com>
223
224 * compile/compile-object-load.c (link_callbacks_multiple_definition)
225 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
226 newline at end of warning message.
227
f93b65a0
JB
2282014-12-13 Joel Brobecker <brobecker@adacore.com>
229
230 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
231 new "EXTRA-ARGS" parameter.
232 * configure.ac: If large-file support is disabled in GDB,
233 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
234 * configure: Regenerate.
235
5537b577
JK
2362014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
237
238 PR symtab/17642
239 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
240 TYPE if not TYPE_CODE_TYPEDEF.
241
e0782980
JB
2422014-12-13 Joel Brobecker <brobecker@adacore.com>
243
244 PR backtrace/16215:
245 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
246 the frame unwinder must either be the dwarf2_frame_unwind
247 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
248 stack_addr is valid before calling get_frame_base. Throw
249 an error if not valid.
250
ae6a105d
DE
2512014-12-12 Doug Evans <xdje42@gmail.com>
252
253 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
254 result != NULL.
255
59da4d04
DE
2562014-12-12 Doug Evans <xdje42@gmail.com>
257
258 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
259 All callers updated. Rename arg "namespace" to "symbol_name".
260
83827540
DE
2612014-12-12 Doug Evans <xdje42@gmail.com>
262
263 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
264 partial_map_symtabs_matching_filename. All uses updated.
265 (psym_find_pc_sect_compunit_symtab): Renamed from
266 find_pc_sect_compunit_symtab_from_partial. All uses updated.
267 Add function comment.
268 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
269 All uses updated. Add function comment.
270 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
271 Add function comment.
272 (psym_find_last_source_symtab): Renamed from
273 find_last_source_symtab_from_partial. All uses updated.
274 Add function comment.
275 (psym_forget_cached_source_info): Renamed from
276 forget_cached_source_info_partial. All uses updated.
277 Add function comment.
278 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
279 All uses updated. Add function comment.
280 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
281 updated. Add function comment.
282 (psym_expand_symtabs_for_function): Renamed from
283 read_symtabs_for_function. All uses updated. Update function comment.
284 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
285 All uses updated. Add function comment.
286 (psym_expand_symtabs_with_fullname): Renamed from
287 read_psymtabs_with_fullname. All uses updated. Add function comment.
288 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
289 All uses updated. Add function comment.
290 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
291 All uses updated.
292 (psym_expand_symtabs_matching): Renamed from
293 expand_symtabs_matching_via_partial. All uses updated.
294 Add function comment.
295 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
296 Add function comment.
297
bb2ec1b3
TT
2982014-12-12 Phil Muldoon <pmuldoon@redhat.com>
299 Jan Kratochvil <jan.kratochvil@redhat.com>
300 Tom Tromey <tromey@redhat.com>
301
302 * NEWS: Update.
303 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
304 field.
305 * p-lang.c (pascal_language_defn): Update.
306 * opencl-lang.c (opencl_language_defn): Update.
307 * objc-lang.c (objc_language_defn): Update.
308 * m2-lang.c (m2_language_defn): Update.
309 * language.h (struct language_defn) <la_get_compile_instance,
310 la_compute_program>: New fields.
311 * language.c (unknown_language_defn, auto_language_defn)
312 (local_language_defn): Update.
313 * jv-lang.c (java_language_defn): Update.
314 * go-lang.c (go_language_defn): Update.
315 * f-lang.c (f_language_defn): Update.
316 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
317 * dwarf2loc.c (dwarf2_compile_property_to_c)
318 (locexpr_generate_c_location, loclist_generate_c_location): New
319 functions.
320 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
321 * defs.h (enum compile_i_scope_types): New.
322 (enum command_control_type) <compile_control>: New constant.
323 (struct command_line) <control_u>: New field.
324 * d-lang.c (d_language_defn): Update.
325 * compile/compile.c: New file.
326 * compile/compile-c-support.c: New file.
327 * compile/compile-c-symbols.c: New file.
328 * compile/compile-c-types.c: New file.
329 * compile/compile.h: New file.
330 * compile/compile-internal.h: New file.
331 * compile/compile-loc2c.c: New file.
332 * compile/compile-object-load.c: New file.
333 * compile/compile-object-load.h: New file.
334 * compile/compile-object-run.c: New file.
335 * compile/compile-object-run.h: New file.
336 * cli/cli-script.c (multi_line_command_p, print_command_lines)
337 (execute_control_command, process_next_line)
338 (recurse_read_control_structure): Handle compile_control.
339 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
340 * c-lang.c (c_language_defn, cplus_language_defn)
341 (asm_language_defn, minimal_language_defn): Update.
342 * ada-lang.c (ada_language_defn): Update.
343 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
344 New variables.
345 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
346 (HFILES_NO_SRCDIR): Add compile.h.
347 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
348 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
349 (compile.o, compile-c-types.o, compile-c-symbols.o)
350 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
351 (compile-c-support.o): New targets.
352
a2658feb
JK
3532014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * s390-linux-tdep.c (s390_gcc_target_options): New function.
356 (s390_gdbarch_init): Add it to gdbarch.
357
3bc3cebe
JK
3582014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 * linux-tdep.c: Include objfiles.h and infcall.h.
361 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
362 function.
363 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
364
d064d1be
JK
3652014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
368 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
369 translate_register. Now public.
370 (dwarf2_compile_expr_to_ax): Update.
371
af945b75
TT
3722014-12-12 Tom Tromey <tromey@redhat.com>
373 Jan Kratochvil <jan.kratochvil@redhat.com>
374
375 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
376 (dwarf_expr_frame_base): Update caller.
377 (dwarf_expr_frame_base_1): Rename to ...
378 (func_get_frame_base_dwarf_block): ... this and make it public.
379 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
380 callers.
381 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
382
a8fd5589
TT
3832014-12-12 Tom Tromey <tromey@redhat.com>
384
385 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
386 Update.
387 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
388 dwarf2_compile_cfa_to_ax.
389 (dwarf2_compile_cfa_to_ax): Remove.
390 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
391 (dwarf2_compile_cfa_to_ax): Remove.
392
ed12ef62
JK
3932014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * infcall.h (call_function_by_hand_dummy): Declare.
396 * infcall.c (call_function_by_hand): Use
397 call_function_by_hand_dummy.
398 (call_function_by_hand_dummy): Rename from call_function_by_hand.
399 Add arguments. Register a destructor.
400
ac04f72b
TT
4012014-12-12 Tom Tromey <tromey@redhat.com>
402 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * osabi.h (osabi_triplet_regexp): Declare.
405 * osabi.c (struct osabi_names): New.
406 (gdb_osabi_names): Change type to struct osabi_names. Update
407 values.
408 (gdbarch_osabi_name): Update.
409 (osabi_triplet_regexp): New function.
410 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
411 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
412 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
413 set_gdbarch_gnu_triplet_regexp.
414 * gdbarch.sh (gnu_triplet_regexp): New method.
415 * gdbarch.c, gdbarch.h: Rebuild.
416 * arch-utils.h (default_gnu_triplet_regexp): Declare.
417 * arch-utils.c (default_gnu_triplet_regexp): New function.
418
f208eee0
JK
4192014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
420
421 * arch-utils.c (default_infcall_mmap)
422 (default_gcc_target_options): New functions.
423 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
424 (GDB_MMAP_PROT_EXEC): Define.
425 (default_infcall_mmap, default_gcc_target_options): Declare.
426 * gdbarch.h: Rebuild.
427 * gdbarch.c: Rebuild.
428 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
429
233a8fb3
JK
4302014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
431
432 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
433 fields.
434 (pop_dummy_frame): Call the destructor if it exists.
435 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
436 functions.
437 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
438 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
439
f1660027
TT
4402014-12-12 Tom Tromey <tromey@redhat.com>
441
442 * gdbtypes.h (make_unqualified_type): Declare.
443 * gdbtypes.c (make_unqualified_type): New function.
444
de571fc5
TT
4452014-12-12 Tom Tromey <tromey@redhat.com>
446
447 * ui-file.h (ui_file_write_for_put): Declare.
448 * ui-file.c (ui_file_write_for_put): New function.
449 * mi/mi-out.c (do_write): Remove.
450 (mi_out_put): Use ui_file_write_for_put.
451
6dddd6a5
DE
4522014-12-12 Doug Evans <dje@google.com>
453
454 * NEWS: Mention gdb.lookup_objfile.
455 * python/python.c (GdbMethods): Add lookup_objfile.
456 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
457 * python/py-objfile.c: #include "symtab.h".
458 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
459 (objfpy_lookup_objfile_by_name): New function.
460 (objfpy_lookup_objfile_by_build_id): New function.
461 (gdbpy_lookup_objfile): New function.
462
f161c171
MR
4632014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
464
465 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
466 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
467 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
468 macros.
469 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
470 Likewise.
471
71c24708
AA
4722014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * completer.c: Include "target.h", "reggroups.h", and
475 "user-regs.h".
476 (reg_or_group_completer): New.
477 * completer.h (reg_or_group_completer): Declare.
478 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
479 the "info registers" and "info all-registers" commands and the
480 dbx-mode "lr" command.
481
f5b95c01
AA
4822014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
483
484 * user-regs.c: Include "arch-utils.h", "command.h", and
485 "cli/cli-cmds.h".
486 (maintenance_print_user_registers): New.
487 (_initialize_user_regs): Register new "maint print user-registers"
488 subcommand.
489 * NEWS: Mention new GDB command "maint print user-registers".
490
3e29f34a
MR
4912014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
492 Maciej W. Rozycki <macro@mips.com>
493 Pedro Alves <pedro@codesourcery.com>
494
495 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
496 remove `predefault' and `invalid_p' initializers.
497 (make_symbol_special): New architecture method.
498 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
499 (objfile, symbol): New declarations.
500 * arch-utils.h (default_elf_make_msymbol_special): Remove
501 prototype.
502 (default_make_symbol_special): New prototype.
503 (default_adjust_dwarf2_addr): Likewise.
504 (default_adjust_dwarf2_line): Likewise.
505 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
506 * arch-utils.c (default_elf_make_msymbol_special): Remove
507 function.
508 (default_make_symbol_special): New function.
509 (default_adjust_dwarf2_addr): Likewise.
510 (default_adjust_dwarf2_line): Likewise.
511 * dwarf2-frame.c (decode_frame_entry_1): Call
512 `gdbarch_adjust_dwarf2_addr'.
513 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
514 * dwarf2read.c (create_addrmap_from_index): Likewise.
515 (process_psymtab_comp_unit_reader): Likewise.
516 (add_partial_symbol): Likewise.
517 (add_partial_subprogram): Likewise.
518 (process_full_comp_unit): Likewise.
519 (read_file_scope): Likewise.
520 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
521 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
522 (read_call_site_scope): Likewise.
523 (dwarf2_ranges_read): Likewise.
524 (dwarf2_record_block_ranges): Likewise.
525 (read_attribute_value): Likewise.
526 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
527 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
528 * elfread.c (elf_symtab_read): Don't call
529 `gdbarch_elf_make_msymbol_special' if unset.
530 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
531 the ISA bit from the PC.
532 * mips-tdep.c (mips_unmake_compact_addr): New function.
533 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
534 address appropriately.
535 (mips_make_symbol_special): New function.
536 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
537 (mips_pc_is_mips16): Likewise.
538 (mips_pc_is_micromips): Likewise.
539 (mips_pc_isa): Likewise.
540 (mips_adjust_dwarf2_addr): New function.
541 (mips_adjust_dwarf2_line): Likewise.
542 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
543 (mips_addr_bits_remove): Likewise.
544 (mips_skip_trampoline_code): Likewise.
545 (mips_write_pc): Don't set the ISA bit.
546 (mips_eabi_push_dummy_call): Likewise.
547 (mips_o64_push_dummy_call): Likewise.
548 (mips_gdbarch_init): Install `mips_make_symbol_special',
549 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
550 handlers.
551 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
552 target-specific symbol address adjustments.
553 * gdbarch.h: Regenerate.
554 * gdbarch.c: Regenerate.
555
21daaaaf
YQ
5562014-12-12 Yao Qi <yao@codesourcery.com>
557
558 PR tdep/14261
559 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
560 'skip_pc'. Remove code skipping prologue instructions, use
561 arm_analyze_prologue instead.
562 (arm_analyze_prologue): Stop the scanning for unrecognized
563 instruction when skipping prologue.
564
f303bc3e
YQ
5652014-12-12 Yao Qi <yao@codesourcery.com>
566
567 * arm-tdep.c (arm_instruction_restores_sp): New function.
568 (arm_analyze_prologue): Call arm_instruction_restores_sp.
569 (arm_in_function_epilogue_p): Move code to
570 arm_instruction_restores_sp.
571
05a6c3c8
DE
5722014-12-11 Doug Evans <xdje42@gmail.com>
573
574 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
575
fe2a438d
DE
5762014-12-11 Doug Evans <xdje42@gmail.com>
577
578 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
579 (symbol *lookup_symbol_via_quick_fns): Ditto.
580 (lookup_symbol_in_objfile): Add forward decl.
581 (lookup_global_symbol_from_objfile): Simplify, call
582 lookup_symbol_in_objfile.
583
540feddf
DE
5842014-12-11 Doug Evans <xdje42@gmail.com>
585
586 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
587
fc126975
SM
5882014-12-10 Simon Marchi <simon.marchi@ericsson.com>
589
590 PR breakpoints/17012
591 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
592 it is marked as persistent.
593
56286edf
DE
5942014-12-10 Doug Evans <xdje42@gmail.com>
595
596 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
597 closer to its subroutines.
598
34ef8452
DE
5992014-12-10 Doug Evans <xdje42@gmail.com>
600
601 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
602
9a80057a
DE
6032014-12-10 Doug Evans <xdje42@gmail.com>
604
605 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 606 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 607
1abf3a14
SM
6082014-12-10 Simon Marchi <simon.marchi@ericsson.com>
609
610 PR gdb/17627
611 * target.c (cleanup_restore_target_terminal): New function.
612 (make_cleanup_restore_target_terminal): New function.
613 * target.h (make_cleanup_restore_target_terminal): New declaration.
614 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
615
d4d1e336
DE
6162014-12-08 Doug Evans <dje@google.com>
617
618 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
619
a0be3e44
DE
6202014-12-08 Doug Evans <dje@google.com>
621
622 * NEWS: Mention gdb.Objfile.owner.
623 * python/py-objfile.c (objfpy_get_owner): New function.
624 (objfile_getset): Add "owner".
625
6c1c7be3
JK
6262014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
627
628 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
629 (lookup_global_symbol_from_objfile): Call it.
630
efad9b6a
JK
6312014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
632
633 Remove const from struct objfile *.
634 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
635 symtab.c, symtab.h: In these files.
636
069bb7ec
AF
6372014-12-05 Andreas From <andreas.from@ericsson.com>
638
639 * MAINTAINERS (Write After Approval): Add "Andreas From"
640
642a8d80
DE
6412014-12-05 Doug Evans <xdje42@gmail.com>
642
643 Revert:
644 PR symtab/17602
645 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
646
86e4ed39
DE
6472014-12-04 Doug Evans <dje@google.com>
648
649 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
650 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
651 (objfile_getset): Add "add_separate_debug_file".
652
7c50a931
DE
6532014-12-04 Doug Evans <dje@google.com>
654
655 * NEWS: Mention gdb.Objfile.build_id.
656 * build-id.c (build_id_bfd_get): Make non-static.
657 * build-id.h (build_id_bfd_get): Add declaration.
658 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
659 (OBJFPY_REQUIRE_VALID): New macro.
660 (objfpy_get_build_id): New function.
661 (objfile_getset): Add "build_id".
662 * utils.c (make_hex_string): New function.
663 * utils.h (make_hex_string): Add declaration.
664
ba715d7f
JK
6652014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * block.c (block_lookup_symbol_primary): New function.
668 * block.h (block_lookup_symbol_primary): New declaration.
669 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
670 Call block_lookup_symbol_primary.
671
858339f2
MR
6722014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
673
674 * tramp-frame.h (tramp_frame): Add `validate' member.
675 * tramp-frame.c (tramp_frame_start): Validate trampoline before
676 scanning.
677 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
678 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
679 (mips_linux_o32_sigframe): Initialize `validate' member.
680 (mips_linux_o32_rt_sigframe): Likewise.
681 (mips_linux_n32_rt_sigframe): Likewise.
682 (mips_linux_n64_rt_sigframe): Likewise.
683 (micromips_linux_o32_sigframe): New variable.
684 (micromips_linux_o32_rt_sigframe): Likewise.
685 (micromips_linux_n32_rt_sigframe): Likewise.
686 (micromips_linux_n64_rt_sigframe): Likewise.
687 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
688 (mips_linux_n32n64_sigframe_init): Likewise.
689 (mips_linux_sigframe_validate): New function.
690 (micromips_linux_sigframe_validate): Likewise.
691 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
692
ff1eb2b5
UW
6932014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
694
695 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
696 * sparc-sol2-tdep.c: Include "regset.h".
697 (sparc32_sol2_supply_core_gregset): New function.
698 (sparc32_sol2_collect_core_gregset): Likewise.
699 (sparc32_sol2_supply_core_fpregset): Likewise.
700 (sparc32_sol2_collect_core_fpregset): Likewise.
701 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
702 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
703 tdep->fpregset/sizeof_fpregset.
704 * sparc64-sol2-tdep.c: Include "regset.h".
705 (sparc64_sol2_supply_core_gregset): New function.
706 (sparc64_sol2_collect_core_gregset): Likewise.
707 (sparc64_sol2_supply_core_fpregset): Likewise.
708 (sparc64_sol2_collect_core_fpregset): Likewise.
709 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
710 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
711 tdep->fpregset/sizeof_fpregset.
712
75783939
SM
7132014-12-03 Simon Marchi <simon.marchi@ericsson.com>
714
715 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
716 type.
717
7c5fdd25
DE
7182014-12-02 Doug Evans <dje@google.com>
719
720 * symtab.c (symbol_init_cplus_specific): Delete.
721 (symbol_set_demangled_name): Remove special c++ support.
722 (symbol_get_demangled_name, symbol_set_language): Ditto.
723 * symtab.h (struct cplus_specific): Delete.
724 (struct general_symbol_info) <language_specific>: Remove
725 cplus_specific.
726
29f0c3b7
DE
7272014-12-02 Doug Evans <dje@google.com>
728
729 PR symtab/17602
730 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
731
72998fb3
DE
7322014-12-02 Doug Evans <dje@google.com>
733
734 PR symtab/17591
735 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
736 to strip parameters.
737
422b9917
DE
7382014-12-02 Doug Evans <dje@google.com>
739
740 * dwarf2read.c (peek_die_abbrev): Improve error message text.
741
47c6ee49
DE
7422014-12-02 Doug Evans <dje@google.com>
743
744 * valops.c (do_search_struct_field): Remove remnant of Chill support.
745 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
746
5da3ffc9
SM
7472014-12-02 Simon Marchi <simon.marchi@ericsson.com>
748
749 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
750
162078c8
NB
7512014-12-02 Nick Bull <nicholaspbull@gmail.com>
752
753 * NEWS: Mention new Python events.
754 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
755 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
756 (py-infevents.o): New rule.
757 * doc/observer.texi (inferior_call_pre, inferior_call_post)
758 (memory_changed, register_changed): New observers.
759 * infcall.c (call_function_by_hand): Notify observer before and
760 after inferior call.
761 * python/py-event.h (inferior_call_kind): New enum.
762 (emit_inferior_call_event): New prototype.
763 (emit_register_changed_event): New prototype.
764 (emit_memory_changed_event): New prototype.
765 * python/py-events.h (events_object): New registries
766 inferior_call, memory_changed and register_changed.
767 * python/py-evts.c (gdbpy_initialize_py_events): Add the
768 inferior_call, memory_changed and register_changed registries.
769 * python/py-infevents.c: New.
770 * python/py-inferior.c (python_on_inferior_call_pre)
771 (python_on_inferior_call_post, python_on_register_change)
772 (python_on_memory_change): New functions.
773 (gdbpy_initialize_inferior): Attach python handler to new
774 observers.
775 * python/py-infthread.c(gdbpy_create_ptid_object): New.
776 (thpy_get_ptid) Use gdbpy_create_ptid_object.
777 * python/python-internal.h:
778 (gdbpy_create_ptid_object)
779 (gdbpy_initialize_inferior_call_pre_event)
780 (gdbpy_initialize_inferior_call_post_event)
781 (gdbpy_initialize_register_changed_event)
782 (gdbpy_initialize_memory_changed_event): New prototypes.
783 * python/python.c (_initialize_python): Initialize new events.
784 * valops.c (value_assign): Notify register_changed observer.
785
007baf27
DE
7862014-12-02 Doug Evans <dje@google.com>
787
788 * python/py-infthread.c: Whitespace fixes.
789
d5552aab
AA
7902014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
791
792 * features/Makefile (s390-te-linux64-expedite): Replace
793 non-existant r14 and r15 by r14l and r15l, respectively.
794 * regformats/s390-te-linux64.dat: Regenerate.
795
30b5e341
SM
7962014-12-01 Simon Marchi <simon.marchi@ericsson.com>
797
798 * objfiles.c (allocate_objfile): Remove duplicate comment.
799
ac3d87c0
UW
8002014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
801
802 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
803 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
804 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
805 (supply_gregset, supply_fpregset): Remove.
806 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
807 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
808 and sizeof_gregset.
809
f10c5b19
JK
8102014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
811
812 Add add-auto-load-scripts-directory.
813 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
814 * auto-load.c (add_auto_load_dir): New function.
815 (_initialize_auto_load): Install it.
816
f0d4ba1f
MG
8172014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
818
819 Pushed by Joel Brobecker <brobecker@adacore.com>.
820 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
821
18ac6ffc
SC
8222014-11-29 Siva Chandra Reddy <sivachandra@google.com>
823
824 * eval.c (evaluate_subexp): Check that the thread stack temporaries
825 are not already enabled before enabling them.
826
4072f920
YQ
8272014-11-29 Yao Qi <yao@codesourcery.com>
828
829 * arm-tdep.c (arm_analyze_prologue): Move local variables
830 'framereg' and 'framesize' to inner block. Move code to
831 inner block too.
832
6c659fc2
SC
8332014-11-28 Siva Chandra Reddy <sivachandra@google.com>
834
835 * eval.c: Include gdbthread.h.
836 (evaluate_subexp): Enable thread stack temporaries before
837 evaluating a complete expression and clean them up after the
838 evaluation is complete.
839 * gdbthread.h: Include common/vec.h.
840 (value_ptr): New typedef.
841 (VEC (value_ptr)): New vector type.
842 (value_vec): New typedef.
843 (struct thread_info): Add new fields stack_temporaries_enabled
844 and stack_temporaries.
845 (enable_thread_stack_temporaries)
846 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
847 (get_last_thread_stack_temporary)
848 (value_in_thread_stack_temporaries): Declare.
849 * gdbtypes.c (class_or_union_p): New function.
850 * gdbtypes.h (class_or_union_p): Declare.
851 * infcall.c (call_function_by_hand): Store return values of class
852 type as temporaries on stack.
853 * thread.c (enable_thread_stack_temporaries): New function.
854 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
855 (get_last_thread_stack_temporary): Likewise.
856 (value_in_thread_stack_temporaries): Likewise.
857 * value.c (value_force_lval): New function.
858 * value.h (value_force_lval): Declare.
859
f7ca3fcf
PM
8602014-11-28 Pierre Muller <muller@sourceware.org>
861
862 Pushed by Joel Brobecker <brobecker@adacore.com>.
863 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
864 registers.
865
b2859a9a
UW
8662014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
867
868 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
869 * config/sparc/linux.mh (NATDEPFILES): Likewise.
870 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
871 * m68klinux-nat.c (fetch_core_registers): Remove.
872 (linux_elf_core_fns): Remove.
873 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
874
0fa9473f
JB
8752014-11-28 Joel Brobecker <brobecker@adacore.com>
876
877 * utils.c (gdb_realpath): Rework comment about handling on
878 Windows.
879
6a29c58e
YQ
8802014-11-28 Yao Qi <yao@codesourcery.com>
881
882 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
883 rename.
884 * gnulib/aclocal.m4: Re-generated.
885 * gnulib/config.in: Re-generated.
886 * gnulib/configure: Re-generated.
887 * gnulib/import/Makefile.am: Re-generated.
888 * gnulib/import/Makefile.in: Re-generated.
889 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
890 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
891 * import/basename-lgpl.c: New file.
892 * import/dirname-lgpl.c: New file.
893 * import/dirname.h: New file.
894 * import/m4/dirname.m4: New file.
895 * import/m4/malloc.m4: New file.
896 * import/m4/rename.m4: New file.
897 * import/m4/rmdir.m4: New file.
898 * import/m4/stdio_h.m4: New file.
899 * import/malloc.c: New file.
900 * import/rename.c: New file.
901 * import/rmdir.c: New file.
902 * import/same-inode.h: New file.
903 * import/stdio.c: New file.
904 * import/stdio.in.h: New file.
905 * import/stripslash.c: New file.
906
abbffc89
YQ
9072014-11-28 Yao Qi <yao@codesourcery.com>
908
909 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
910 and realpath.
911 * config.in: Re-generated.
912 * configure: Re-generated.
913 * utils.c (gdb_realpath): Remove code calling realpath,
914 canonicalize_file_name and pathconf.
915 [!_WIN32]: Call canonicalize_file_name.
916
98399780
YQ
9172014-11-28 Yao Qi <yao@codesourcery.com>
918
919 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
920 canonicalize-lgpl.
921 * aclocal.m4: Re-generated.
922 * config.in: Re-generated.
923 * configure: Re-generated.
924 * import/Makefile.am: Re-generated.
925 * import/Makefile.in: Re-generated.
926 * import/m4/gnulib-cache.m4: Re-generated.
927 * import/m4/gnulib-comp.m4: Re-generated.
928 * import/canonicalize-lgpl.c: New file.
929 * import/extra/snippet/_Noreturn.h: New file.
930 * import/m4/canonicalize.m4: New file.
931 * import/m4/double-slash-root.m4: New file.
932 * import/m4/eealloc.m4: New file.
933 * import/m4/malloca.m4: New file.
934 * import/m4/nocrash.m4: New file.
935 * import/m4/stdlib_h.m4: New file.
936 * import/malloca.c: New file.
937 * import/malloca.h: New file.
938 * import/malloca.valgrind: New file.
939
3332aaf2
YQ
9402014-11-28 Yao Qi <yao@codesourcery.com>
941
942 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
943 * config.in, configure: Regenerate.
944 * symfile.c (find_separate_debug_file_by_debuglink): Remove
945 code checking HAVE_LSTAT is defined.
946
f45c62c4
YQ
9472014-11-28 Yao Qi <yao@codesourcery.com>
948
949 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
950 lstat.
951 * gnulib/aclocal.m4: Re-generated.
952 * gnulib/config.in: Re-generated.
953 * gnulib/configure: Re-generated.
954 * gnulib/import/Makefile.am: Re-generated.
955 * gnulib/import/Makefile.in: Re-generated.
956 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
957 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
958 * gnulib/import/lstat.c: New file.
959 * gnulib/import/m4/lstat.m4: New file.
960
bdca27a2
YQ
9612014-11-28 Yao Qi <yao@codesourcery.com>
962
963 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
964 * config.in, configure: Re-generate.
965 * inf-child.c (inf_child_fileio_readlink): Don't check
966 HAVE_READLINK is defined.
967
2196f55f
YQ
9682014-11-28 Yao Qi <yao@codesourcery.com>
969
970 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
971 * gnulib/aclocal.m4: Re-generated.
972 * gnulib/config.in: Likewise.
973 * gnulib/configure: Likewise.
974 * gnulib/import/Makefile.am: Likewise.
975 * gnulib/import/Makefile.in: Likewise.
976 * gnulib/import/m4/gnulib-cache.m4: Likewise.
977 * gnulib/import/m4/gnulib-comp.m4: Likewise.
978 * gnulib/import/dosname.h: New file
979 * gnulib/import/m4/largefile.m4: New file.
980 * gnulib/import/m4/readlink.m4: New file.
981 * gnulib/import/m4/stat.m4: New file.
982 * gnulib/import/readlink.c: New file.
983 * gnulib/import/stat.c: New file.
984
7014e923 9852014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
986
987 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
988 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
989
aa489395
SL
9902014-11-25 Sandra Loosemore <sandra@codesourcery.com>
991
992 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
993 that there can be only one stack adjustment in the prologue
994 with tests to detect specific disallowed stack adjustments.
995
7f1659b5
SL
9962014-11-25 Sandra Loosemore <sandra@codesourcery.com>
997
998 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
999 adjustments.
1000
d53c26c7
SL
10012014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1002
1003 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1004 the instruction as well as reading it from memory.
1005 (nios2_match_add): New.
1006 (nios2_match_sub): New.
1007 (nios2_match_addi): New.
1008 (nios2_match_orhi): New.
1009 (nios2_match_stw): New.
1010 (nios2_match_ldw): New.
1011 (nios2_match_rdctl): New.
1012 (enum branch_condition): New.
1013 (nios2_match_branch): New.
1014 (nios2_match_jmpi): New.
1015 (nios2_match_calli): New.
1016 (nios2_match_jmpr): New.
1017 (nios2_match_callr): New.
1018 (nios2_match_break): New.
1019 (nios2_match_trap): New.
1020 (nios2_in_epilogue_p): Rewrite to use new functions.
1021 (nios2_analyze_prologue): Likewise.
1022 (nios2_skip_prologue): Delete unused local limit_pc.
1023 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1024 (nios2_get_next_pc): Rewrite to use new functions.
1025
cac9b138
JK
10262014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1027
1028 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1029
a441dfbc
ST
10302014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1031
1032 Pushed by Joel Brobecker <brobecker@adacore.com>
1033 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1034 elements pi_len by the size of the elements before calling
1035 vm_deallocate.
1036 (inf_validate_task_sc): Likewise, and properly deallocate the
1037 noise array.
1038
4c9e8482
DE
10392014-11-23 Doug Evans <xdje42@gmail.com>
1040
1041 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1042 number and name if present. All callers updated.
1043 (dump_fn_fieldlists): Fix indentation of args.
1044
15ee0bbd
PP
10452014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1046
1047 * MAINTAINERS (Write After Approval): Add myself.
1048
e8af5d7a
JB
10492014-11-23 Joel Brobecker <brobecker@adacore.com>
1050
1051 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1052 to a bp_call_dummy breakpoint type.
1053
a344fc09
PP
10542014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1055
1056 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1057 registering the signal handler.
1058
d64e57fa
PP
10592014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1060
1061 * event-top.h (call_stdin_event_handler_again_p): Declare.
1062 * event-top.c (call_stdin_event_handler_again_p): Define.
1063 (stdin_event_handler): Use it.
1064 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1065 handler again if there is pending input following a
1066 start sequence.
1067
6f9d33d8
PP
10682014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1069
1070 Pushed by Joel Brobecker <brobecker@adacore.com>
1071 * linux-fork.c (checkpoint_command): Print index of new
1072 checkpoint in response message.
1073
88db67ef
YQ
10742014-11-23 Yao Qi <yao@codesourcery.com>
1075
1076 * valprint.c (read_string): Move local variables 'found_nul',
1077 'chunksize' and 'limit' to inner scope. Update comments.
1078
01465b56
DE
10792014-11-22 Doug Evans <xdje42@gmail.com>
1080
1081 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1082 function comment.
1083 (search_symbols): Fix comments and whitespace.
1084
07a1c2c3
DE
10852014-11-22 Doug Evans <xdje42@gmail.com>
1086
1087 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1088
b2a919a8
DE
10892014-11-21 Doug Evans <dje@google.com>
1090
1091 * psymtab.c (psymtab_search_name): Fix whitespace.
1092
278289d5
YQ
10932014-11-21 Yao Qi <yao@codesourcery.com>
1094
1095 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1096 errno.
1097 * gnulib/import/Makefile.am: Re-generated.
1098 * gnulib/import/Makefile.in: Likewise.
1099 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1100
e01e2baa
YQ
11012014-11-21 Yao Qi <yao@codesourcery.com>
1102
1103 * gdb_wchar.h: Include wchar.h and wctype.h.
1104 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1105 include wchar.h and wctype.h.
1106 Don't check HAVE_WCHAR_H.
1107
f0c00af8
YQ
11082014-11-21 Yao Qi <yao@codesourcery.com>
1109
1110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1111 and wctype-h.
1112 * gnulib/import/Makefile.am: Re-generated.
1113 * gnulib/import/Makefile.in: Likewise.
1114 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1115
0cae13bb
YQ
11162014-11-21 Yao Qi <yao@codesourcery.com>
1117
1118 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1119 memchr.
1120 * gnulib/import/Makefile.am: Re-generated.
1121 * gnulib/import/Makefile.in: Likewise.
1122 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1123
9c232dda
YQ
11242014-11-21 Yao Qi <yao@codesourcery.com>
1125
1126 * common/common-defs.h: Include alloca.h
1127 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1128 * configure: Re-generated.
1129 * defs.h: Remove code handling alloca.
1130 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1131 or not.
1132
00d7f58f
YQ
11332014-11-21 Yao Qi <yao@codesourcery.com>
1134
1135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1136 alloca.
1137 * gnulib/import/Makefile.am: Re-generated.
1138 * gnulib/import/Makefile.in: Likewise..
1139 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1140
6068ad5d
YQ
11412014-11-21 Yao Qi <yao@codesourcery.com>
1142
1143 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1144 alphabetical order.
1145
45e44d27
JB
11462014-11-21 Joel Brobecker <brobecker@adacore.com>
1147
1148 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1149 flag_unsigned if HIGH_BOUND is constant and negative.
1150
7e7cbeb3
SDJ
11512014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1152
1153 PR breakpoints/10737
1154 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1155 modifier from "struct gdbarch" when compiling without Expat (XML)
1156 support.
1157 (get_syscall_by_number): Likewise.
1158 (get_syscall_by_name): Likewise.
1159 (get_syscall_names): Likewise.
1160
458c8db8
SDJ
11612014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1162
1163 PR breakpoints/10737
1164 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1165 set_xml_syscall_file_name to provide gdbarch.
1166 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1167 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1168 * breakpoint.c (print_it_catch_syscall): Adjust call to
1169 get_syscall_by_number to provide gdbarch.
1170 (print_one_catch_syscall): Likewise.
1171 (print_mention_catch_syscall): Likewise.
1172 (print_recreate_catch_syscall): Likewise.
1173 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1174 and get_syscall_by_name to provide gdbarch.
1175 (catch_syscall_completer): Adjust call to get_syscall_names to
1176 provide gdbarch.
1177 * gdbarch.c: Regenerate.
1178 * gdbarch.h: Likewise.
1179 * gdbarch.sh: Forward declare "struct syscalls_info".
1180 (xml_syscall_file): New variable.
1181 (syscalls_info): Likewise.
1182 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1183 set_xml_syscall_file_name to provide gdbarch.
1184 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1185 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1186 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1187 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1188 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1189 * xml-syscall.c: Include gdbarch.h.
1190 (set_xml_syscall_file_name): Accept gdbarch parameter.
1191 (get_syscall_by_number): Likewise.
1192 (get_syscall_by_name): Likewise.
1193 (get_syscall_names): Likewise.
1194 (my_gdb_datadir): Delete global variable.
1195 (struct syscalls_info) <my_gdb_datadir>: New variable.
1196 (struct syscalls_info) <sysinfo>: Rename variable to
1197 "syscalls_info".
1198 (sysinfo): Delete global variable.
1199 (have_initialized_sysinfo): Likewise.
1200 (xml_syscall_file): Likewise.
1201 (sysinfo_free_syscalls_desc): Rename to...
1202 (syscalls_info_free_syscalls_desc): ... this.
1203 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1204 code to the new layout of "struct syscalls_info".
1205 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1206 "syscalls_info".
1207 (syscall_create_syscall_desc): Likewise.
1208 (syscall_start_syscall): Likewise.
1209 (syscall_parse_xml): Likewise.
1210 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1211 (init_sysinfo): Rename to...
1212 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1213 Adjust function to deal with gdbarch.
1214 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1215 gdbarch as a parameter. Adjust code.
1216 (xml_get_syscall_name): Likewise.
1217 (xml_list_of_syscalls): Likewise.
1218 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1219 (get_syscall_by_number): Likewise.
1220 (get_syscall_by_name): Likewise.
1221 (get_syscall_names): Likewise.
1222 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1223 (get_syscall_by_number): Likewise.
1224 (get_syscall_by_name): Likewise.
1225 (get_syscall_names): Likewise.
1226
43f3e411
DE
12272014-11-20 Doug Evans <xdje42@gmail.com>
1228
1229 Split struct symtab into two: struct symtab and compunit_symtab.
1230 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1231 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1232 to "struct compunit_symtab *". All callers updated.
1233 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1234 "struct symtab *" argument to "struct compunit_symtab *".
1235 All callers updated.
1236 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1237 result to "struct compunit_symtab *". All callers updated.
1238 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1239 Change result to "struct compunit_symtab *". All callers updated.
1240 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1241 hange type to "struct compunit_symtab *". All uses updated.
1242 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1243 Change type to "struct compunit_symtab *". All uses updated.
1244 * buildsym.c (struct buildsym_compunit): New struct.
1245 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1246 (buildsym_compunit): New static global.
1247 (finish_block_internal): Update to fetch objfile from
1248 buildsym_compunit.
1249 (make_blockvector): Delete objfile argument.
1250 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1251 debugformat, producer.
1252 (start_buildsym_compunit): New function.
1253 (free_buildsym_compunit): Renamed from free_subfiles_list.
1254 All callers updated.
1255 (patch_subfile_names): Rewrite to use buildsym_compunit.
1256 (get_compunit_symtab): New function.
1257 (get_macro_table): Delete argument comp_dir. All callers updated.
1258 (start_symtab): Change result to "struct compunit_symtab *".
1259 All callers updated. Create the subfile of the main source file.
1260 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1261 (reset_symtab_globals): Update.
1262 (end_symtab_get_static_block): Update to use buildsym_compunit.
1263 (end_symtab_without_blockvector): Rewrite.
1264 (end_symtab_with_blockvector): Change result to
1265 "struct compunit_symtab *". All callers updated.
1266 Update to use buildsym_compunit. Don't set symtab->dirname,
1267 instead set it in the compunit.
1268 Explicitly make sure main symtab is first in its list.
1269 Set debugformat, producer, blockvector, block_line_section, and
1270 macrotable in the compunit.
1271 (end_symtab_from_static_block): Change result to
1272 "struct compunit_symtab *". All callers updated.
1273 (end_symtab, end_expandable_symtab): Ditto.
1274 (set_missing_symtab): Change symtab argument to
1275 "struct compunit_symtab *". All callers updated.
1276 (augment_type_symtab): Ditto.
1277 (record_debugformat): Update to use buildsym_compunit.
1278 (record_producer): Update to use buildsym_compunit.
1279 * buildsym.h (struct subfile) <dirname>: Delete.
1280 <producer, debugformat>: Delete.
1281 <buildsym_compunit>: New member.
1282 (get_compunit_symtab): Declare.
1283 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1284 from primary_symtab. Change type to "struct compunit_symtab *".
1285 All uses updated.
1286 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1287 All callers updated.
1288 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1289 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1290 symtab. Change type to "struct compunit_symtab *". All uses updated.
1291 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1292 All callers updated.
1293 (dw2_find_last_source_symtab): Ditto.
1294 (dw2_lookup_symbol): Ditto.
1295 (recursively_find_pc_sect_compunit_symtab): Renamed from
1296 recursively_find_pc_sect_symtab. Change result to
1297 "struct compunit_symtab *". All callers updated.
1298 (dw2_find_pc_sect_compunit_symtab): Renamed from
1299 dw2_find_pc_sect_symtab. Change result to
1300 "struct compunit_symtab *". All callers updated.
1301 (get_compunit_symtab): Renamed from get_symtab. Change result to
1302 "struct compunit_symtab *". All callers updated.
1303 (recursively_compute_inclusions): Change type of immediate_parent
1304 argument to "struct compunit_symtab *". All callers updated.
1305 (compute_compunit_symtab_includes): Renamed from
1306 compute_symtab_includes. All callers updated. Rewrite to compute
1307 includes of compunit_symtabs and not symtabs.
1308 (process_full_comp_unit): Update to work with struct compunit_symtab.
1309 (process_full_type_unit): Ditto.
1310 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1311 (dwarf_decode_lines): Remove special case handling of main subfile.
1312 (macro_start_file): Delete argument comp_dir. All callers updated.
1313 (dwarf_decode_macro_bytes): Ditto.
1314 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1315 use struct compunit_symtab.
1316 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1317 * jit.c (finalize_symtab): Build compunit_symtab.
1318 * jv-lang.c (get_java_class_symtab): Change result to
1319 "struct compunit_symtab *". All callers updated.
1320 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1321 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1322 comp_dir. Change type to "struct compunit_symtab *".
1323 All uses updated.
1324 (new_macro_table): Change comp_dir argument to cust,
1325 "struct compunit_symtab *". All callers updated.
1326 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1327 nr_primary_symtabs. All uses updated.
1328 (count_symtabs_and_blocks): Update to handle compunits.
1329 (report_command_stats): Update output, "primary symtabs" renamed to
1330 "compunits".
1331 * mdebugread.c (new_symtab): Change result to
1332 "struct compunit_symtab *". All callers updated.
1333 (parse_procedure): Change type of search_symtab argument to
1334 "struct compunit_symtab *". All callers updated.
1335 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1336 separate loop.
1337 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1338 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1339 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1340 All uses updated.
1341 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1342 All uses updated.
1343 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1344 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1345 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1346 symtab. Change type to "struct compunit_symtab *". All uses updated.
1347 * psymtab.c (psymtab_to_symtab): Change result type to
1348 "struct compunit_symtab *". All callers updated.
1349 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1350 find_pc_sect_symtab_from_partial. Change result type to
1351 "struct compunit_symtab *". All callers updated.
1352 (lookup_symbol_aux_psymtabs): Change result type to
1353 "struct compunit_symtab *". All callers updated.
1354 (find_last_source_symtab_from_partial): Ditto.
1355 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1356 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1357 and macro_table from compunit.
1358 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1359 type to "struct compunit_symtab *". All callers updated.
1360 (debug_qf_lookup_symbol): Ditto.
1361 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1362 debug_qf_find_pc_sect_symtab, change result type to
1363 "struct compunit_symtab *". All callers updated.
1364 * symfile.c (allocate_symtab): Delete objfile argument.
1365 New argument cust.
1366 (allocate_compunit_symtab): New function.
1367 (add_compunit_symtab_to_objfile): New function.
1368 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1369 Change result type to "struct compunit_symtab *". All uses updated.
1370 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1371 Change result type to "struct compunit_symtab *". All uses updated.
1372 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1373 separate loop.
1374 (dump_symtab_1): Update test for primary source symtab.
1375 (maintenance_info_symtabs): Update to handle compunit symtabs.
1376 (maintenance_check_symtabs): Ditto.
1377 * symtab.c (set_primary_symtab): Delete.
1378 (compunit_primary_filetab): New function.
1379 (compunit_language): New function.
1380 (iterate_over_some_symtabs): Change type of arguments "first",
1381 "after_last" to "struct compunit_symtab *". All callers updated.
1382 Update to loop over symtabs in each compunit.
1383 (error_in_psymtab_expansion): Rename symtab argument to cust,
1384 and change type to "struct compunit_symtab *". All callers updated.
1385 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1386 Change result type to "struct compunit_symtab *". All callers updated.
1387 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1388 Change result type to "struct compunit_symtab *". All callers updated.
1389 (find_pc_sect_line): Only loop over symtabs within selected compunit
1390 instead of all symtabs in the objfile.
1391 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1392 <compunit_symtab> New member.
1393 <block_line_section>: Moved to compunit_symtab.
1394 <locations_valid>: Ditto.
1395 <epilogue_unwind_valid>: Ditto.
1396 <macro_table>: Ditto.
1397 <dirname>: Ditto.
1398 <debugformat>: Ditto.
1399 <producer>: Ditto.
1400 <objfile>: Ditto.
1401 <call_site_htab>: Ditto.
1402 <includes>: Ditto.
1403 <user>: Ditto.
1404 <primary>: Delete
1405 (SYMTAB_COMPUNIT): New macro.
1406 (SYMTAB_BLOCKVECTOR): Update definition.
1407 (SYMTAB_OBJFILE): Update definition.
1408 (SYMTAB_DIRNAME): Update definition.
1409 (struct compunit_symtab): New type. Common members among all source
1410 symtabs within a compilation unit moved here. All uses updated.
1411 (COMPUNIT_OBJFILE): New macro.
1412 (COMPUNIT_FILETABS): New macro.
1413 (COMPUNIT_DEBUGFORMAT): New macro.
1414 (COMPUNIT_PRODUCER): New macro.
1415 (COMPUNIT_DIRNAME): New macro.
1416 (COMPUNIT_BLOCKVECTOR): New macro.
1417 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1418 (COMPUNIT_LOCATIONS_VALID): New macro.
1419 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1420 (COMPUNIT_CALL_SITE_HTAB): New macro.
1421 (COMPUNIT_MACRO_TABLE): New macro.
1422 (ALL_COMPUNIT_FILETABS): New macro.
1423 (compunit_symtab_ptr): New typedef.
1424 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1425
005e2509
JB
14262014-11-20 Joel Brobecker <brobecker@adacore.com>
1427
1428 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1429 if the TYPE_CODE of range_type's base type does not match
1430 the TYPE_CODE of encoding_type's base type.
1431
2b0f535a
JB
14322014-11-19 Joel Brobecker <brobecker@adacore.com>
1433
1434 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1435 it starts with '<'.
1436
8908fca5
JB
14372014-11-19 Joel Brobecker <brobecker@adacore.com>
1438
1439 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1440 (ada_is_redundant_index_type_desc): New function.
1441 (to_fixed_array_type): Ignore parallel XA type if redundant.
1442
4a46959e
JB
14432014-11-19 Joel Brobecker <brobecker@adacore.com>
1444
1445 * ada-lang.c (constrained_packed_array_type): Set the length
1446 of the return array as if both bounds where zero if that
1447 returned array's index type is dynamic.
1448
2acf986b
YQ
14492014-11-19 Yao Qi <yao@codesourcery.com>
1450
1451 * config/i386/go32.mh (CC): Remove.
1452
439247b6
DE
14532014-11-18 Doug Evans <xdje42@gmail.com>
1454
1455 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1456 updated.
1457
4d663531
DE
14582014-11-18 Doug Evans <xdje42@gmail.com>
1459
1460 * buildsym.c (buildsym_objfile): New static global.
1461 (buildsym_comp_dir): New static global.
1462 (finish_block_internal): Delete arg objfile. All callers updated.
1463 (finish_block): Delete arg objfile. All callers updated.
1464 (start_subfile): Delete arg dirname. All callers updated.
1465 (patch_subfile_names): Update buildsym_comp_dir.
1466 (get_macro_table): Delete arg objfile. All callers updated.
1467 (start_symtab): New arg objfile. All callers updated.
1468 Rename arg dirname to comp_dir.
1469 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1470 (end_symtab_get_static_block): Delete arg objfile. All callers
1471 updated.
1472 (end_symtab_without_blockvector): Ditto.
1473 (end_symtab_with_blockvector): Ditto.
1474 (end_symtab_from_static_block): Ditto.
1475 (end_symtab): Ditto.
1476 (end_expandable_symtab): Ditto.
1477 (augment_type_symtab): Ditto.
1478 * coffread.c (coff_start_symtab): New arg objfile. All callers
1479 updated.
1480
8435453b
DE
14812014-11-18 Doug Evans <xdje42@gmail.com>
1482
1483 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1484 updated.
1485
ee6f8984
DE
14862014-11-18 Doug Evans <xdje42@gmail.com>
1487
1488 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1489 symtab.dirname updated to use it.
1490
eb822aa6
DE
14912014-11-18 Doug Evans <xdje42@gmail.com>
1492
1493 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1494 symtab.objfile updated to use it.
1495
98387a29
DE
14962014-11-18 Doug Evans <xdje42@gmail.com>
1497
1498 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1499
aff08958
DE
15002014-11-18 Doug Evans <xdje42@gmail.com>
1501
1502 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1503 SYMBOL_OBJFILE.
1504 * findvar.c (default_read_var_value): Ditto.
1505 * jv-lang.c (add_class_symtab_symbol): Ditto.
1506 * parse.c (operator_check_standard): Ditto.
1507 * printcmd.c (address_info): Ditto.
1508 * symtab.c (fixup_symbol_section): Ditto.
1509 (skip_prologue_sal): Ditto.
1510 * tracepoint.c (scope_info): Ditto.
1511 * valops.c (find_function_in_inferior): Ditto.
1512 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1513 * python/py-symbol.c (set_symbol): Ditto.
1514
7bab9b58
DE
15152014-11-18 Doug Evans <xdje42@gmail.com>
1516
1517 * buildsym.c (main_subfile): New static global.
1518 (free_subfiles_list): New function.
1519 (start_symtab): Set main_subfile.
1520 (restart_symtab): Replace init of subfiles, current_subfile with
1521 call to free_subfiles_list.
1522 (watch_main_source_file_lossage): Use main_subfile.
1523 (reset_symtab_globals): Replace init of current_subfile with call
1524 to free_subfiles_list.
1525 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1526 functions, split out from ...
1527 (end_symtab_from_static_block): ... here. Rewrite to call them.
1528
f194fefb
DE
15292014-11-18 Doug Evans <xdje42@gmail.com>
1530
1531 The result of symtab expansion is always a primary symtab.
1532 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1533 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1534 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1535 (psymtab_to_symtab): Add comment and assert.
1536 (map_matching_symbols_psymtab): Remove unnecessary test for
1537 non-primary symtab.
1538
34248c3a
DE
15392014-11-15 Doug Evans <xdje42@gmail.com>
1540
1541 PR symtab/17559
1542 * symtab.c (find_pc_line_symtab): New function.
1543 * symtab.h (find_pc_line_symtab): Declare.
1544 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1545 find_pc_symtab.
1546 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1547 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1548 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1549 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1550 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1551 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1552
2097ae25
DE
15532014-11-15 Doug Evans <xdje42@gmail.com>
1554
1555 * symtab.c (expand_symtab_containing_pc): Renamed from
1556 find_pc_sect_symtab_via_partial. All callers updated.
1557
1ada499f
YQ
15582014-11-15 Yao Qi <yao@codesourcery.com>
1559
1560 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1561
355e2102
JB
15622014-11-14 Joel Brobecker <brobecker@adacore.com>
1563
1564 * common/common-defs.h: Move <stdarg.h> #include ahead of
1565 <stdio.h> #include.
1566
83030110
PA
15672014-11-14 Pedro Alves <palves@redhat.com>
1568
1569 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1570 [!PHONY_ICONV] (gdb_iconv): New function.
1571 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1572
a8719064
DE
15732014-11-13 Doug Evans <dje@google.com>
1574
1575 PR symtab/17591
1576 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1577 "(anonymous namespace)".
1578
60f7655a
DE
15792014-11-13 Doug Evans <dje@google.com>
1580
1581 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1582 infinite loop.
1583
5784b3ca
JK
15842014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1585
1586 * NEWS (maint set target-async): Fix typo.
1587
6218dc4b
PA
15882014-11-12 Pedro Alves <palves@redhat.com>
1589
1590 * infrun.c (enum infwait_states, infwait_state): Delete.
1591
af48d08f
PA
15922014-11-12 Pedro Alves <palves@redhat.com>
1593
1594 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1595 Rewrite stepping over a permanent breakpoint.
1596 (thread_still_needs_step_over, proceed): Don't set
1597 stepping_over_breakpoint for permanent breakpoints.
1598 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1599 single-step breakpoints out of the target on hardware step
1600 targets.
1601 (process_event_stop_test): If stepping a permanent breakpoint
1602 doesn't hit the step-resume breakpoint, delete the step-resume
1603 breakpoint.
1604 (switch_back_to_stepped_thread): Also check if the stepped thread
1605 has advanced already on hardware step targets.
1606 (currently_stepping): Return true if the thread stepped a
1607 breakpoint.
1608
1a853c52
PA
16092014-11-12 Pedro Alves <palves@redhat.com>
1610
1611 Mark locations as permanent, not the whole breakpoint.
1612 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1613 (mark_breakpoints_out): Don't mark permanent breakpoints as
1614 uninserted.
1615 (breakpoint_init_inferior): Use mark_breakpoints_out.
1616 (breakpoint_here_p): Adjust.
1617 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1618 of permanent breakpoints.
1619 (make_breakpoint_permanent): Mark each location as permanent,
1620 instead of marking the breakpoint.
1621 (add_location_to_breakpoint): If the location is permanent, mark
1622 it as such, and as inserted.
1623 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1624 (bp_location_compare, update_global_location_list): Adjust.
1625 (update_breakpoint_locations): Don't make the breakpoint permanent
1626 here.
1627 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1628 breakpoints.
1629 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1630 (struct bp_location) <permanent>: New field.
1631 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1632 reference to bp_permanent.
1633
ae9bb220
PA
16342014-11-12 Pedro Alves <palves@redhat.com>
1635
1636 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1637 * arch-utils.h (default_skip_permanent_breakpoint): New
1638 declaration.
1639 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1640 Install default_skip_permanent_breakpoint as default method.
1641 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1642 (i386_gdbarch_init): Don't install it.
1643 * infrun.c (resume): Assume there's always a
1644 gdbarch_skip_permanent_breakpoint implementation.
1645 * gdbarch.h, gdbarch.c: Regenerate.
1646
015de688
DC
16472014-11-11 Daniel Colascione <dancol@dancol.org>
1648
1649 Warn about cross-PID-namespace debugging.
1650 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1651 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1652 * linux-thread-db.c (check_pid_namespace_match): New function.
1653 (thread_db_inferior_created): Call it.
1654
26a84859
DE
16552014-11-10 Doug Evans <xdje42@gmail.com>
1656
1657 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1658 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1659
712a2e6d
DE
16602014-11-10 Doug Evans <xdje42@gmail.com>
1661
1662 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1663
af3768e9
DE
16642014-11-10 Doug Evans <xdje42@gmail.com>
1665
1666 PR symtab/17564
1667 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1668 (lookup_static_symbol): Move definition to new location and rewrite.
1669 (lookup_symbol_in_objfile): New function.
1670 (lookup_symbol_global_iterator_cb): Call it.
1671
b1f28d99
UW
16722014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1673
1674 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1675
b7a084be
PA
16762014-11-07 Pedro Alves <palves@redhat.com>
1677
1678 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1679 check if we did a "nexti" inside a prologue.
1680 * symtab.c (in_prologue): Delete function.
1681 * symtab.h (in_prologue): Delete declaration.
1682
67be31e5
DE
16832014-11-06 Doug Evans <xdje42@gmail.com>
1684
1685 * symtab.h (lookup_global_symbol): Improve function comment.
1686
08724ab7
DE
16872014-11-06 Doug Evans <xdje42@gmail.com>
1688
1689 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1690 All callers updated.
1691 * symtab.h (lookup_global_symbol): Update decl.
1692 (lookup_static_symbol): Move decl to better location.
1693
d9060ba6
DE
16942014-11-06 Doug Evans <xdje42@gmail.com>
1695
1696 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1697
74016e12
DE
16982014-11-06 Doug Evans <xdje42@gmail.com>
1699
1700 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1701 All callers updated.
1702 (lookup_symbol_in_all_objfiles): Renamed from
1703 lookup_symbol_aux_symtabs. All callers updated.
1704 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1705 All callers updated.
1706 (lookup_symbol_in_objfile_symtabs): Renamed from
1707 lookup_symbol_aux_objfile. All callers updated.
1708
d1a2d36d
DE
17092014-11-06 Doug Evans <xdje42@gmail.com>
1710
1711 * symtab.c (lookup_symbol_in_block): Renamed from
1712 lookup_symbol_aux_block. All callers updated.
1713
24d864bb
DE
17142014-11-06 Doug Evans <xdje42@gmail.com>
1715
1716 * symtab.c (lookup_static_symbol): Renamed from
1717 lookup_static_symbol_aux. All callers updated.
1718 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1719 All callers updated.
1720
358d6ab3
DE
17212014-11-06 Doug Evans <xdje42@gmail.com>
1722
1723 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1724 * block.c (block_lookup_symbol): Use it.
1725 * cp-support.c (make_symbol_overload_list_block): Use it.
1726 * symtab.c (iterate_over_symbols): Use it.
1727
16b2eaa1
DE
17282014-11-06 Doug Evans <xdje42@gmail.com>
1729
1730 * symtab.c (lookup_block_symbol): Moved to ...
1731 * block.c (block_lookup_symbol): ... here and renamed.
1732 All callers updated.
1733 * block.h (block_lookup_symbol): Declare.
1734 * symtab.h (lookup_block_symbol): Delete.
1735
2dd2cd1c
DE
17362014-11-06 Doug Evans <xdje42@gmail.com>
1737
1738 * ada-lang.c (ada_make_symbol_completion_list): Use
1739 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1740 * symtab.c (lookup_objfile_from_block): Ditto.
1741
d4c58915
DE
17422014-11-06 Doug Evans <xdje42@gmail.com>
1743
1744 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1745 TYPE_CODE_STRUCT.
1746
9c1877ea
DE
17472014-11-06 Doug Evans <xdje42@gmail.com>
1748
1749 * objfiles.c (get_objfile_arch): Constify.
1750 * objfiles.h (get_objfile_arch): Update prototype.
1751 * solib.c (solib_global_lookup): Fetch arch from objfile,
1752 not target_gdbarch.
1753
426a4079
SL
17542014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1755
1756 * nios2-tdep.c (wild_insn): Delete.
1757 (profiler_insn, irqentry_insn): Delete.
1758 (nios2_match_sequence): Delete.
1759 (nios2_analyze_prologue): Update comments. Remove matching
1760 of obsolete profiler_insn and irqentry_insn sequences.
1761
ee11262d
AM
17622014-11-05 Alan Modra <amodra@gmail.com>
1763
1764 * charset.c (convert_between_encodings): Shrink obstack using
1765 obstack_blank_fast.
1766 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1767 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1768 to char* before doing pointer arithmetic.
ee11262d 1769
c87e6d00
SM
17702014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1771
1772 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1773
441ef17f
PA
17742014-11-04 Pedro Alves <palves@redhat.com>
1775
1776 * breakpoint.c (breakpoint_thread_match): Delete function.
1777 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1778
e0f52461
SC
17792014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1780
1781 PR c++/17494
1782 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1783 the method args also under EVAL_SKIP when evaluating method
1784 calls under EVAL_SKIP.
1785
a0b4d890
YQ
17862014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1787
1788 * dwarf2loc.c (read_pieced_value): Do big endian
1789 processing only if gdb_regnum is not -1.
1790 (write_pieced_value): Ditto.
1791
17922014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1793
1794 * arm-linux-tdep.c (arm_linux_init_abi): Use
1795 info.byte_order_for_code to choose endianity of breakpoint
1796 instructions snippets.
1797
17982014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1799
1800 * arm-tdep.c (extract_arm_insn): Use
1801 gdbarch_byte_order_for_code to read arm instruction.
1802
e82149ff
DE
18032014-11-02 Doug Evans <xdje42@gmail.com>
1804
1805 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1806
d7ee84f1
DE
18072014-11-02 Doug Evans <xdje42@gmail.com>
1808
1809 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1810 main_subfile before returning.
1811
4f072d17
DE
18122014-10-31 Doug Evans <xdje42@gmail.com>
1813
1814 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1815 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1816
8301c89e
DE
18172014-10-31 Doug Evans <xdje42@gmail.com>
1818
1819 * valops.c (value_cast_pointers): Fix whitespace.
1820 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1821 Ditto.
1822
02be9a71
DE
18232014-10-30 Doug Evans <dje@google.com>
1824
1825 * NEWS: Mention ability add attributes to gdb.Objfile and
1826 gdb.Progspace objects.
1827 * python/py-objfile.c (objfile_object): New member dict.
1828 (objfpy_dealloc): Py_XDECREF dict.
1829 (objfpy_initialize): Initialize dict.
1830 (objfile_getset): Add __dict__.
1831 (objfile_object_type): Set tp_dictoffset member.
1832 * python/py-progspace.c (progspace_object): New member dict.
1833 (pspy_dealloc): Py_XDECREF dict.
1834 (pspy_initialize): Initialize dict.
1835 (pspace_getset): Add __dict__.
1836 (pspace_object_type): Set tp_dictoffset member.
1837
6427bef6
YQ
18382014-10-30 Yao Qi <yao@codesourcery.com>
1839
1840 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1841 replace '\\' with '\\\\'.
1842
f60325be
JB
18432014-10-29 Joel Brobecker <brobecker@adacore.com>
1844
1845 GDB 7.8.1 released.
1846
ab917dfb
PA
18472014-10-29 Pedro Alves <palves@redhat.com>
1848
1849 PR gdb/17408
1850 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1851 instead of assuming a thread with a stepping range is always
1852 stepping.
1853
d3d4baed
PA
18542014-10-29 Pedro Alves <palves@redhat.com>
1855
1856 PR python/17372
1857 * event-top.c (change_line_handler): Call
1858 gdb_rl_callback_handler_remove instead of
1859 rl_callback_handler_remove.
1860 (callback_handler_installed): New global.
1861 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1862 (gdb_rl_callback_handler_reinstall): New functions.
1863 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1864 gdb_rl_callback_handler_install instead of
1865 rl_callback_handler_remove and rl_callback_handler_install.
1866 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1867 instead of rl_callback_handler_remove.
1868 * event-top.h (gdb_rl_callback_handler_remove)
1869 (gdb_rl_callback_handler_install)
1870 (gdb_rl_callback_handler_reinstall): New declarations.
1871 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1872 cleanup function.
1873 (fetch_inferior_event): Install it.
1874 * top.c (gdb_readline_wrapper_line) Call
1875 gdb_rl_callback_handler_remove instead of
1876 rl_callback_handler_remove.
1877 (gdb_readline_wrapper_cleanup): Don't call
1878 rl_callback_handler_install.
1879
6e5d7f39
PA
18802014-10-29 Pedro Alves <palves@redhat.com>
1881
1882 * event-top.c (command_line_handler): Clear the first byte of
1883 linebuffer, when it is first allocated.
1884
551cb6a5
PA
18852014-10-29 Pedro Alves <palves@redhat.com>
1886
1887 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1888 TRY_CATCH.
1889
1e1e619b
PA
18902014-10-29 Pedro Alves <palves@redhat.com>
1891
1892 PR tui/16138
1893 PR tui/17519
1894 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1895 (tui_allowed_p): Delete function.
1896 * tui/tui.c: Include "interps.h".
1897 (tui_enable): Don't use tui_allowed_p. Error out here with
1898 detailed error messages if the TUI is the top level interpreter,
1899 or if output is not a terminal. Use newterm instead of initscr,
1900 and error out if initializing the terminal fails. Also error out if
1901 the terminal doesn't support cursor addressing.
1902 * tui/tui.h (tui_allowed_p): Delete declaration.
1903
6041179a
JB
19042014-10-29 Joel Brobecker <brobecker@adacore.com>
1905
1906 * arm-tdep.c (arm_skip_stack_protector): Return early if
1907 address loaded by first "ldr" instruction does not have
1908 a corresponding minimal symbol. Update comment.
1909
6ae274b7
YQ
19102014-10-29 Yao Qi <yao@codesourcery.com>
1911
1912 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1913 loaded address correctly of ldr instruction.
1914
7f5ef605
PA
19152014-10-28 Pedro Alves <palves@redhat.com>
1916
1917 PR gdb/12623
1918 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1919 field.
1920 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1921 thread's stepped_breakpoint field. Skip if reverse debugging.
1922 Add comment.
1923 (init_thread_stepping_state, handle_signal_stop): Clear the
1924 thread's stepped_breakpoint field.
1925
7d1a114c
PA
19262014-10-27 Pedro Alves <palves@redhat.com>
1927
1928 * remote.c (remote_thread_alive): New, factored out from ...
1929 (remote_thread_alive): ... this.
1930 (remote_update_thread_list): Bail out before deleting threads if
1931 the target returned an empty list, and, the current thread has a
1932 magic/fake ptid.
1933
e5f8a7cc
PA
19342014-10-27 Pedro Alves <palves@redhat.com>
1935
1936 * infrun.c (handle_signal_stop): Also skip handlers when a random
1937 signal arrives while handling a "stepi" or a "nexti". Set the
1938 thread's 'step_after_step_resume_breakpoint' flag.
1939
71e396f9
LM
19402014-10-27 Luis Machado <lgustavo@codesourcery.com>
1941
1942 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1943 (arm_record_ld_st_imm_offset): Reimplement to cover all
1944 load/store cases for ARM opcode 010.
1945 (arm_record_ld_st_multiple): Reimplement to cover all
1946 load/store cases for ARM opcode 100.
1947
3aee438b
DE
19482014-10-26 Doug Evans <xdje42@gmail.com>
1949
1950 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1951
f88cb4b6
DE
19522014-10-26 Doug Evans <xdje42@gmail.com>
1953
1954 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1955 parameter "kind" to "block_index".
1956 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1957 "block_index".
1958 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1959
a023a30f
DE
19602014-10-26 Doug Evans <xdje42@gmail.com>
1961
1962 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1963
4c35218e
DE
19642014-10-26 Doug Evans <xdje42@gmail.com>
1965
1966 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1967 obstack_alloc.
1968
f08e8df3
DE
19692014-10-26 Doug Evans <xdje42@gmail.com>
1970
1971 * parser-defs.h (block_found): Move decl from here ...
1972 * symtab.h (block_found): ... to here.
1973
cf901d3b
DE
19742014-10-26 Doug Evans <xdje42@gmail.com>
1975
1976 * symtab.h (struct field_of_this_result): Fix typo in comment.
1977 (lookup_symbol_in_language): Move function comment here.
1978 (lookup_symbol): Improve function comment.
1979 (basic_lookup_symbol_nonlocal): Ditto.
1980 (lookup_symbol_static, lookup_symbol_global): Ditto.
1981 (lookup_symbol_aux_block): Ditto.
1982 (lookup_language_this): Add function comment.
1983 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1984 function comment.
1985 (lookup_block_symbol): Improve function comment.
1986 (lookup_struct): Fix capitalization in function comment.
1987 (lookup_transparent_type): Add function comment.
1988 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1989 Improve function comment.
1990 (lookup_objfile_from_block): Add function comment.
1991 * symtab.c (lookup_symbol_in_language): Update function comment.
1992 (lookup_symbol, lookup_language_this): Ditto.
1993 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1994 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1995 (basic_lookup_symbol_nonlocal): Ditto.
1996 (lookup_symbol_static, lookup_symbol_global): Ditto.
1997 (lookup_transparent_type, lookup_block_symbol): Ditto.
1998
ff6c39cf
DE
19992014-10-25 Doug Evans <xdje42@gmail.com>
2000
2001 * symtab.c (types_info): Delete forward decl.
2002 (functions_info, variables_info, sources_info): Ditto.
2003 (_initialize_symtab): Rewrite forward decl to use
2004 initialize_file_ftype.
2005
ec201f0c
DE
20062014-10-25 Doug Evans <xdje42@gmail.com>
2007
2008 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2009
ca040673
DE
20102014-10-25 Doug Evans <xdje42@gmail.com>
2011
2012 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2013 of local var child_die.
2014
6f259a23
DB
20152014-10-24 Don Breazeal <donb@codesourcery.com>
2016
2017 * infrun.c (follow_fork_inferior): Update fork message printing
2018 to use target_terminal_ours_for_output instead of
2019 target_terminal_ours, to use _() for all format strings, to print
2020 "vfork" instead of "fork" for vforks, and to add a detach message.
2021 (handle_vfork_child_exec_or_exit): Update message printing to use
2022 target_terminal_ours_for_output instead of target_terminal_ours, to
2023 use _() for all format strings, and to fix some formatting.
2024
09dd9a69
PA
20252014-10-24 Pedro Alves <palves@redhat.com>
2026
2027 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2028 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2029 * config/vax/vax.mh: Delete.
2030 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2031 obsolete configurations section.
2032 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2033 * vax-nat.c: Delete file.
2034
5ab806de
PA
20352014-10-24 Pedro Alves <palves@redhat.com>
2036
2037 * NEWS (Removed targets): Add OS/arch column.
2038
3433cfa5
SC
20392014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2040
2041 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2042 on the arg type of a constructor only if it is of reference type.
2043
96ba4233
SL
20442014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2045
2046 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2047 accessors and constants from nios2 opcodes update.
2048 (nios2_get_next_pc): Likewise.
2049
28153fd3
DE
20502014-10-19 Doug Evans <xdje42@gmail.com>
2051
2052 * gdbthread.h (set_running): Fix comment.
2053 (set_executing, finish_thread_state): Fix comment.
2054
fc9b8e47
DE
20552014-10-18 Doug Evans <xdje42@gmail.com>
2056
2057 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2058
4ffbba72
DE
20592014-10-17 Doug Evans <dje@google.com>
2060
2061 * NEWS: Mention new event gdb.clear_objfiles.
2062 * python/py-event.h (emit_clear_objfiles_event): Clear
2063 * python/py-events.h (events_object): New member clear_objfiles.
2064 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2065 event.
2066 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2067 emit clear_objfiles event.
2068 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2069 function.
2070 (emit_clear_objfiles_event): New function.
2071 (clear_objfiles): New event.
2072 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2073 Declare.
2074 * python/python.c (_initialize_python): Call
2075 gdbpy_initialize_clear_objfiles_event.
2076
d096d8c1
DE
20772014-10-17 Doug Evans <dje@google.com>
2078
2079 * NEWS: Mention new gdb.Objfile.progspace attribute.
2080 * python/py-objfile.c (objfpy_get_progspace): New function.
2081 (objfile_getset): New entry for "progspace".
2082
6c4486e6
PA
20832014-10-17 Pedro Alves <palves@redhat.com>
2084
2085 PR gdb/17471
2086 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2087 returns a copy of the input.
2088 (run_command_1, continue_command, step_1, jump_command)
2089 (signal_command, until_command, advance_command, finish_command)
2090 (attach_command): Adjust and install a cleanup to free the
2091 stripped args.
2092
0ff33695
PA
20932014-10-17 Pedro Alves <palves@redhat.com>
2094
2095 PR gdb/17300
2096 * infcmd.c (continue_1): If continuing all threads in the
2097 foreground, make sure the inferior's terminal settings are put in
2098 effect.
2099
6fdebc3d
PA
21002014-10-17 Pedro Alves <palves@redhat.com>
2101
2102 PR gdb/17472
2103 * annotate.c (annotate_breakpoints_invalid): Use
2104 target_terminal_our_for_output instead of target_terminal_ours.
2105 Give back the terminal to the target.
2106 (annotate_frames_invalid): Likewise.
2107
5842f62a
PA
21082014-10-17 Pedro Alves <palves@redhat.com>
2109
2110 * target.c (enum terminal_state): New enum.
2111 (terminal_state): New global.
2112 (target_terminal_init): New function.
2113 (target_terminal_inferior): Skip if inferior already owns the
2114 terminal.
2115 (target_terminal_ours, target_terminal_ours_for_output): New
2116 functions.
2117 * target.h (target_terminal_init): Convert to function prototype.
2118 (target_terminal_ours_for_output): Convert to function prototype
2119 and tweak comment.
2120 (target_terminal_ours): Convert to function prototype and tweak
2121 comment.
2122 * windows-nat.c (do_initial_windows_stuff): Call
2123 target_terminal_init instead of child_terminal_init_with_pgrp.
2124
32a8097b
PA
21252014-10-17 Pedro Alves <palves@redhat.com>
2126
2127 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2128 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2129 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2130 solib-osf.c.
2131 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2132 * ada-lang.h [__alpha__ && __osf__]
2133 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2134 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2135 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2136 GDB_OSABI_OSF1.
2137 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2138 files.
2139 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2140 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2141 * configure: Regenerate.
2142 * configure.ac: Remove references to osf.
2143 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2144 section. Remove all other references to osf.
2145 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2146 Remove all other references to osf.
2147 * dec-thread.c: Delete file.
2148 * defs.h (GDB_OSABI_OSF1): Delete.
2149 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2150 defined.
2151 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2152 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2153 Delete code.
2154 (unconditionally_kill_inferior)
2155 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2156 * solib-osf.c: Delete file.
2157
80134cf5
PA
21582014-10-17 Pedro Alves <palves@redhat.com>
2159
2160 * remote.c (clear_threads_listing_context): Move higher up, out of
2161 the HAVE_LIBEXPAT guard.
2162
89c7137f
TG
21632014-10-16 Tristan Gingold <gingold@adacore.com>
2164
2165 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2166 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2167 on amd64.
2168
44ee4a52
PA
21692014-10-15 Pedro Alves <palves@redhat.com>
2170
2171 * dec-thread.c (dec_thread_count_gdb_threads)
2172 (dec_thread_add_gdb_thread): Delete.
2173 (dec_thread_update_thread_list): Delete.
2174 (dec_thread_find_new_threads): Rename to ...
2175 (dec_thread_update_thread_list): ... this. Delete GDB-size
2176 threads that are no longer found in dec_thread_list.
2177 (resync_thread_list): Delete.
2178 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2179 resync_thread_list.
2180
ab970af1
PA
21812014-10-15 Pedro Alves <palves@redhat.com>
2182
2183 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2184 * remote.c (remote_update_thread_list): Skip calling prune_threads
2185 if any thread listing method is supported, and instead walk over
2186 the set of remote threads listed, deleting those that are not
2187 found in GDB's thread list.
2188
e8032dde
PA
21892014-10-15 Pedro Alves <palves@redhat.com>
2190
2191 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2192 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2193 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2194 (bsd_uthread_target): Adjust.
2195 * corelow.c (core_open): Adjust.
2196 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2197 (dec_thread_update_thread_list): New function.
2198 (init_dec_thread_ops): Adjust.
2199 * gdbthread.h (prune_threads): New declaration.
2200 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2201 (thread_db_update_thread_list): ... this. Call prune_threads.
2202 (init_thread_db_ops): Adjust.
2203 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2204 (procfs_update_thread_list): ... this. Call prune_threads.
2205 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2206 Adjust.
2207 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2208 (obsd_update_thread_list): ... this. Call prune_threads.
2209 (obsd_add_target): Adjust.
2210 * procfs.c (procfs_target): Adjust.
2211 (procfs_notice_thread): Update comment.
2212 (procfs_find_new_threads): Rename to ...
2213 (procfs_update_thread_list): ... this. Call prune_threads.
2214 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2215 comment.
2216 (ravenscar_wait): Adjust.
2217 (ravenscar_find_new_threads): Rename to ...
2218 (ravenscar_update_thread_list): ... this. Call prune_threads.
2219 (init_ravenscar_thread_ops): Adjust.
2220 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2221 (record_btrace_update_thread_list): ... this. Adjust comment.
2222 (init_record_btrace_ops): Adjust.
2223 * remote.c (remote_threads_info): Rename to ...
2224 (remote_update_thread_list): ... this. Call prune_threads.
2225 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2226 Adjust.
2227 * sol-thread.c (check_for_thread_db): Adjust.
2228 (sol_find_new_threads_callback): Rename to ...
2229 (sol_update_thread_list_callback): ... this.
2230 (sol_find_new_threads): Rename to ...
2231 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2232 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2233 * target-delegates.c: Regenerate.
2234 * target.c (target_find_new_threads): Rename to ...
2235 (target_update_thread_list): ... this.
2236 * target.h (struct target_ops): Rename to_find_new_threads field
2237 to to_update_thread_list.
2238 (target_find_new_threads): Rename to ...
2239 (target_update_thread_list): ... this.
2240 * thread.c (prune_threads): Make extern.
2241 (update_thread_list): Adjust.
2242
6dc54d91
PA
22432014-10-15 Pedro Alves <palves@redhat.com>
2244
2245 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2246 Add describing comment. Return -1 if the qL packet is not
2247 supported.
2248 (struct thread_item, thread_item_t): Move higher up in
2249 the file. Add comments.
2250 (struct threads_parsing_context): Move higher up in
2251 the file, add comments, and remote to ...
2252 (struct threads_listing_context): ... this.
2253 (remote_newthread_step): Don't add the thread to GDB's thread
2254 database here. Instead push it to the thread_listing_context
2255 list.
2256 (remote_find_new_threads): Rename to ...
2257 (remote_get_threads_with_ql): ... this. Add target_ops and
2258 targets_listing_context parameters. Pass down context.
2259 (start_thread): Adjust.
2260 (clear_threads_parsing_context): Rename to ...
2261 (clear_threads_listing_context): ... this.
2262 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2263 remote_threads_info.
2264 (remote_get_threads_with_qthreadinfo): Ditto.
2265 (remote_threads_info): Reimplement.
2266
36728e82
PA
22672014-10-15 Pedro Alves <palves@redhat.com>
2268
2269 * infrun.c (resume): Don't force displaced-stepping for all
2270 single-steps on software single-stepping archs.
2271
34b7e8a6
PA
22722014-10-15 Pedro Alves <palves@redhat.com>
2273
2274 * breakpoint.c (single_step_breakpoints): Delete global.
2275 (insert_single_step_breakpoint): Adjust to store the breakpoint
2276 pointer in the current thread.
2277 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2278 (cancel_single_step_breakpoints): Delete functions.
2279 (breakpoint_has_location_inserted_here): Make extern.
2280 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2281 breakpoint list.
2282 * breakpoint.h (breakpoint_has_location_inserted_here): New
2283 declaration.
2284 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2285 (cancel_single_step_breakpoints): Remove declarations.
2286 * gdbthread.h (struct thread_control_state)
2287 <single_step_breakpoints>: New field.
2288 (delete_single_step_breakpoints)
2289 (thread_has_single_step_breakpoints_set)
2290 (thread_has_single_step_breakpoint_here): New declarations.
2291 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2292 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2293 (singlestep_pc): Delete globals.
2294 (infrun_thread_ptid_changed): Remove references to removed
2295 globals.
2296 (resume_cleanups): Delete the current thread's single-step
2297 breakpoints.
2298 (maybe_software_singlestep): Remove references to removed globals.
2299 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2300 delete_single_step_breakpoints.
2301 (init_wait_for_inferior): Remove references to removed globals.
2302 (delete_thread_infrun_breakpoints): Delete the thread's
2303 single-step breakpoints too.
2304 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2305 single-step breakpoints here.
2306 (delete_stopped_threads_single_step_breakpoints): New function.
2307 (adjust_pc_after_break): Adjust to use
2308 thread_has_single_step_breakpoints_set.
2309 (handle_inferior_event): Remove references to removed globals.
2310 Use delete_stopped_threads_single_step_breakpoints.
2311 (handle_signal_stop): Adjust to per-thread single-step
2312 breakpoints. Swap test order to do cheaper tests first.
2313 (switch_back_to_stepped_thread): Extend debug output. Remove
2314 references to removed globals.
2315 * record-full.c (record_full_wait_1): Adjust to per-thread
2316 single-step breakpoints.
2317 * thread.c (delete_single_step_breakpoints)
2318 (thread_has_single_step_breakpoints_set)
2319 (thread_has_single_step_breakpoint_here): New functions.
2320 (clear_thread_inferior_resources): Also delete the thread's
2321 single-step breakpoints.
2322
5b834a0a
PA
23232014-10-15 Pedro Alves <palves@redhat.com>
2324
2325 * thread.c (delete_thread_breakpoint): New function.
2326 (delete_step_resume_breakpoint)
2327 (delete_exception_resume_breakpoint): Use it.
2328 (delete_at_next_stop): New function.
2329 (clear_thread_inferior_resources): Use delete_at_next_stop.
2330
a1fd2fa5
PA
23312014-10-15 Pedro Alves <palves@redhat.com>
2332
2333 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2334 (breakpoint_inserted_here_p): ... here. Remove special case for
2335 software single-step breakpoints.
2336 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2337 (software_breakpoint_inserted_here_p): ... here. Remove special
2338 case for software single-step breakpoints.
2339 (bp_target_info_copy_insertion_state)
2340 (deprecated_insert_raw_breakpoint)
2341 (deprecated_remove_raw_breakpoint): Delete functions.
2342 * breakpoint.h (deprecated_insert_raw_breakpoint)
2343 (deprecated_remove_raw_breakpoint): Remove declarations.
2344
7c16b83e
PA
23452014-10-15 Pedro Alves <palves@redhat.com>
2346
2347 PR breakpoints/9649
2348 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2349 Delete array globals.
2350 (single_step_breakpoints): New global.
2351 (breakpoint_xfer_memory): Remove special handling for single-step
2352 breakpoints.
2353 (update_breakpoints_after_exec): Delete bp_single_step
2354 breakpoints.
2355 (detach_breakpoints): Remove special handling for single-step
2356 breakpoints.
2357 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2358 (bpstat_stop_status): Add comment.
2359 (bpstat_what, bptype_string, print_one_breakpoint_location)
2360 (adjust_breakpoint_address, init_bp_location): Handle
2361 bp_single_step.
2362 (new_single_step_breakpoint): New function.
2363 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2364 handling for single-step breakpoints.
2365 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2366 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2367 Rewrite.
2368 (detach_single_step_breakpoints, find_single_step_breakpoint):
2369 Delete functions.
2370 (breakpoint_has_location_inserted_here): New function.
2371 (single_step_breakpoint_inserted_here_p): Rewrite.
2372 * breakpoint.h: Remove FIXME.
2373 (enum bptype) <bp_single_step>: New enum value.
2374 (insert_single_step_breakpoint): Update comment.
2375 * infrun.c (resume_cleanups)
2376 (delete_step_thread_step_resume_breakpoint): Remove single-step
2377 breakpoints.
2378 (fetch_inferior_event): Install a cleanup that removes infrun
2379 breakpoints.
2380 (switch_back_to_stepped_thread) <expect thread advanced also>:
2381 Clear step-over info.
2382
0cbcdb96
PA
23832014-10-15 Pedro Alves <palves@redhat.com>
2384
2385 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2386 (delete_thread_infrun_breakpoints): New function, with parts
2387 salvaged from delete_step_resume_breakpoint_callback.
2388 (delete_step_thread_step_resume_breakpoint): Delete.
2389 (for_each_just_stopped_thread_callback_func): New typedef.
2390 (for_each_just_stopped_thread): New function.
2391 (delete_just_stopped_threads_infrun_breakpoints): New function.
2392 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2393 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2394 ... this. Adjust.
2395 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2396
963f9c80
PA
23972014-10-15 Pedro Alves <palves@redhat.com>
2398
2399 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2400 trying to step past a non-steppable watchpoint.
2401 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2402 field.
2403 * infrun.c (struct step_over_info): Add new field
2404 'nonsteppable_watchpoint_p' and adjust comments.
2405 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2406 Adjust.
2407 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2408 (stepping_past_nonsteppable_watchpoint): New function.
2409 (step_over_info_valid_p): Also return true if stepping past a
2410 nonsteppable watchpoint.
2411 (proceed): Adjust call to set_step_over_info. Remove reference to
2412 init_infwait_state.
2413 (init_wait_for_inferior): Remove reference to init_infwait_state.
2414 (waiton_ptid): Delete global.
2415 (struct execution_control_state)
2416 <stepped_after_stopped_by_watchpoint>: Delete field.
2417 (wait_for_inferior, fetch_inferior_event): Always pass
2418 minus_one_ptid to target_wait.
2419 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2420 field.
2421 (init_infwait_state): Delete function.
2422 (handle_inferior_event): Remove infwait_state handling.
2423 (handle_signal_stop) <watchpoints handling>: Adjust after
2424 stepped_after_stopped_by_watchpoint removal. Don't remove
2425 breakpoints here nor set infwait_state. Set the thread's
2426 stepping_over_watchpoint flag, and call keep_going instead.
2427 (keep_going): Handle stepping_over_watchpoint. Adjust
2428 set_step_over_info calls.
2429 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2430 function.
2431
6cc83d2a
PA
24322014-10-15 Pedro Alves <palves@redhat.com>
2433
2434 * infrun.c (step_over_info_valid_p): New function.
2435 (resume): Use step_over_info_valid_p instead of checking the
2436 threads's trap_expected flag.
2437
6979730b
DE
24382014-10-15 Doug Evans <dje@google.com>
2439 Walfred Tedeschi <walfred.tedeschi@intel.com>
2440
2441 PR python/17364
2442 * python/lib/gdb/__init__.py (packages): Add "printer".
2443 * python/lib/gdb/command/bound_registers.py: Moved to ...
2444 * python/lib/gdb/printer/bound_registers.py: ... here.
2445 Add printer to global set of builtin printers. Rename printer from
2446 "bound" to "mpx_bound128".
2447 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2448 registered as global "builtin" printer.
2449 (add_builtin_pretty_printer): New function.
2450 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2451 gdb/printer/__init__.py.
2452
35a49624
IB
24532014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2454
2455 * Makefile.in (SFILES): Remove d-support.c.
2456 (COMMON_OBS): Remove d-support.o.
2457 * d-lang.h (d_parse_symbol): Remove declaration.
2458 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2459 * d-support.c: Remove file.
2460
8fa0c4f8
AA
24612014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462
2463 * gdb/infrun.c (process_event_stop_test): Apply
2464 gdbarch_addr_bits_remove to longjmp resume address.
2465
3666da81
PA
24662014-10-15 Pedro Alves <palves@redhat.com>
2467
2468 * regformats/microblaze.dat: Delete file.
2469
449aa9df
AKA
24702014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2471
2472 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2473 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2474
ebb8ece2
SC
24752014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2476
2477 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2478 as non-trivial.
2479
82c48ac7
SC
24802014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2481
2482 PR c++/13403
2483 PR c++/15154
2484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2485 with qualified args.
2486
c40cc657
JB
24872014-10-14 Joel Brobecker <brobecker@adacore.com>
2488
2489 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2490 of the case where the second operand is a pointer.
2491 <BINOP_SUB>: Likewise.
2492
0ea5cda8
SDJ
24932014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2494
2495 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2496 only if it is not NULL.
2497 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2498 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2499 (struct probe_ops) <clear_semaphore>: Likewise.
2500 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2501 not NULL.
2502 (stop_tracing): Likewise, for clear_semaphore.
2503
f7088df3
SDJ
25042014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2505
2506 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2507 using language_c, instead of current_language.
2508
4e1bbde0
DE
25092014-10-13 Doug Evans <dje@google.com>
2510
6ff5a0f6 2511 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2512 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2513 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2514 (pspy_new, pspace_to_pspace_object): Call it.
2515
c780cc2f
JK
25162014-10-13 Miroslav Franc <mfranc@redhat.com>
2517 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 Fix "save breakpoints" for "catch" command.
2520 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2521 newline.
2522
99894e11
JK
25232014-10-12 Miroslav Franc <mfranc@redhat.com>
2524
2525 Fix "save breakpoints" for "disable $bpnum" command.
2526 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2527
3831839c
PA
25282014-10-10 Pedro Alves <palves@redhat.com>
2529
2530 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2531 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2532 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2533 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2534 and been removed.
2535 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2536 * configure.ac: Remove references to IRIX.
2537 * configure.host: Add *-*-irix* to the obsolete hosts section.
2538 Remove all other references to irix.
2539 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2540 Delete files.
2541
cc3afae2
AKA
25422014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2543
2544 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2545 isn't valid, release the tdesc arch data and return NULL.
2546
cdfa0b0a
PA
25472014-10-10 Pedro Alves <palves@redhat.com>
2548
2549 * linux-tdep.c: Include observer.h.
2550 (linux_inferior_data): New global.
2551 (struct linux_info): New structure.
2552 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2553 (get_linux_inferior_data): New functions.
2554 (linux_vsyscall_range): Rename to ...
2555 (linux_vsyscall_range_raw): ... this.
2556 (linux_vsyscall_range): New function; handles caching.
2557 (_initialize_linux_tdep): Register linux_inferior_data. Install
2558 inferior_exit and inferior_appeared observers.
2559
8b9a549d
PA
25602014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 Pedro Alves <palves@redhat.com>
2562
2563 PR symtab/14466
2564 * solib-svr4.c (svr4_read_so_list): Rename to ...
2565 (svr4_current_sos_1): ... this and change the function comment.
2566 (svr4_current_sos): New function.
2567
3437254d
PA
25682014-10-10 Pedro Alves <palves@redhat.com>
2569
2570 * arch-utils.c (default_vsyscall_range): New function.
2571 * arch-utils.h (default_vsyscall_range): New declaration.
2572 * gdbarch.sh (vsyscall_range): New hook.
2573 * gdbarch.h, gdbarch.c: Regenerate.
2574 * linux-tdep.c (linux_vsyscall_range): New function.
2575 (linux_init_abi): Install linux_vsyscall_range as
2576 vsyscall_range gdbarch hook.
2577 * memrange.c (address_in_mem_range): New function.
2578 * memrange.h (address_in_mem_range): New declaration.
2579 * symfile-mem.c (find_vdso_size): Delete function.
2580 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2581
31cc0b80
PA
25822014-10-10 Pedro Alves <palves@redhat.com>
2583
2584 * infrun.c (normal_stop): Fix typo in comment.
2585
3e3286a2
SDJ
25862014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2587
2588 PR tdep/9390
2589 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2590 typo when using logical AND to determine instruction type.
2591
fcbdedf8
YQ
25922014-10-09 Yao Qi <yao@codesourcery.com>
2593
2594 * infrun.c (handle_signal_stop): Remove local variable
2595 'printed'.
2596
db984616
SS
25972014-10-08 Stan Shebs <stan@codesourcery.com>
2598
2599 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2600
3ba37e6c
GB
26012014-10-08 Gary Benson <gbenson@redhat.com>
2602
2603 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2604
a442d071
GB
26052014-10-08 Gary Benson <gbenson@redhat.com>
2606
2607 * common/common-defs.h: Include common-exceptions.h.
2608 * exceptions.h: Do not include common-exceptions.h.
2609
6f1947e8
GB
26102014-10-08 Gary Benson <gbenson@redhat.com>
2611
2612 * common/common-defs.h: Include cleanups.h.
2613 * common/common-exceptions.c: Do not include cleanups.h.
2614 * utils.h: Likewise.
2615
c765fdb9
GB
26162014-10-08 Gary Benson <gbenson@redhat.com>
2617
2618 * ada-lang.c: Do not include exceptions.h.
2619 * ada-valprint.c: Likewise.
2620 * amd64-tdep.c: Likewise.
2621 * auto-load.c: Likewise.
2622 * block.c: Likewise.
2623 * break-catch-throw.c: Likewise.
2624 * breakpoint.c: Likewise.
2625 * btrace.c: Likewise.
2626 * c-lang.c: Likewise.
2627 * cli/cli-cmds.c: Likewise.
2628 * cli/cli-interp.c: Likewise.
2629 * cli/cli-script.c: Likewise.
2630 * completer.c: Likewise.
2631 * corefile.c: Likewise.
2632 * corelow.c: Likewise.
2633 * cp-abi.c: Likewise.
2634 * cp-support.c: Likewise.
2635 * cp-valprint.c: Likewise.
2636 * darwin-nat.c: Likewise.
2637 * dwarf2-frame-tailcall.c: Likewise.
2638 * dwarf2-frame.c: Likewise.
2639 * dwarf2loc.c: Likewise.
2640 * dwarf2read.c: Likewise.
2641 * eval.c: Likewise.
2642 * event-loop.c: Likewise.
2643 * event-top.c: Likewise.
2644 * f-valprint.c: Likewise.
2645 * frame-unwind.c: Likewise.
2646 * frame.c: Likewise.
2647 * gdbtypes.c: Likewise.
2648 * gnu-v2-abi.c: Likewise.
2649 * gnu-v3-abi.c: Likewise.
2650 * guile/scm-auto-load.c: Likewise.
2651 * guile/scm-breakpoint.c: Likewise.
2652 * guile/scm-cmd.c: Likewise.
2653 * guile/scm-frame.c: Likewise.
2654 * guile/scm-lazy-string.c: Likewise.
2655 * guile/scm-param.c: Likewise.
2656 * guile/scm-symbol.c: Likewise.
2657 * guile/scm-type.c: Likewise.
2658 * hppa-hpux-tdep.c: Likewise.
2659 * i386-tdep.c: Likewise.
2660 * inf-loop.c: Likewise.
2661 * infcall.c: Likewise.
2662 * infcmd.c: Likewise.
2663 * infrun.c: Likewise.
2664 * interps.c: Likewise.
2665 * interps.h: Likewise.
2666 * jit.c: Likewise.
2667 * linespec.c: Likewise.
2668 * linux-nat.c: Likewise.
2669 * linux-thread-db.c: Likewise.
2670 * m32r-rom.c: Likewise.
2671 * main.c: Likewise.
2672 * memory-map.c: Likewise.
2673 * mi/mi-cmd-break.c: Likewise.
2674 * mi/mi-cmd-stack.c: Likewise.
2675 * mi/mi-interp.c: Likewise.
2676 * mi/mi-main.c: Likewise.
2677 * monitor.c: Likewise.
2678 * nto-procfs.c: Likewise.
2679 * objc-lang.c: Likewise.
2680 * p-valprint.c: Likewise.
2681 * parse.c: Likewise.
2682 * ppc-linux-tdep.c: Likewise.
2683 * printcmd.c: Likewise.
2684 * probe.c: Likewise.
2685 * python/py-auto-load.c: Likewise.
2686 * python/py-breakpoint.c: Likewise.
2687 * python/py-cmd.c: Likewise.
2688 * python/py-finishbreakpoint.c: Likewise.
2689 * python/py-frame.c: Likewise.
2690 * python/py-framefilter.c: Likewise.
2691 * python/py-function.c: Likewise.
2692 * python/py-gdb-readline.c: Likewise.
2693 * python/py-inferior.c: Likewise.
2694 * python/py-infthread.c: Likewise.
2695 * python/py-lazy-string.c: Likewise.
2696 * python/py-linetable.c: Likewise.
2697 * python/py-param.c: Likewise.
2698 * python/py-prettyprint.c: Likewise.
2699 * python/py-symbol.c: Likewise.
2700 * python/py-type.c: Likewise.
2701 * python/py-value.c: Likewise.
2702 * python/python-internal.h: Likewise.
2703 * python/python.c: Likewise.
2704 * record-btrace.c: Likewise.
2705 * record-full.c: Likewise.
2706 * regcache.c: Likewise.
2707 * remote-fileio.c: Likewise.
2708 * remote-mips.c: Likewise.
2709 * remote.c: Likewise.
2710 * rs6000-aix-tdep.c: Likewise.
2711 * rs6000-nat.c: Likewise.
2712 * skip.c: Likewise.
2713 * solib-darwin.c: Likewise.
2714 * solib-dsbt.c: Likewise.
2715 * solib-frv.c: Likewise.
2716 * solib-ia64-hpux.c: Likewise.
2717 * solib-spu.c: Likewise.
2718 * solib-svr4.c: Likewise.
2719 * solib.c: Likewise.
2720 * spu-tdep.c: Likewise.
2721 * stack.c: Likewise.
2722 * stap-probe.c: Likewise.
2723 * symfile-mem.c: Likewise.
2724 * symmisc.c: Likewise.
2725 * target.c: Likewise.
2726 * thread.c: Likewise.
2727 * top.c: Likewise.
2728 * tracepoint.c: Likewise.
2729 * tui/tui-interp.c: Likewise.
2730 * typeprint.c: Likewise.
2731 * utils.c: Likewise.
2732 * valarith.c: Likewise.
2733 * valops.c: Likewise.
2734 * valprint.c: Likewise.
2735 * value.c: Likewise.
2736 * varobj.c: Likewise.
2737 * windows-nat.c: Likewise.
2738 * xml-support.c: Likewise.
2739
484933d1
MR
27402014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2741
2742 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2743 name implies.
2744 (extended_mips16_next_pc): Update accordingly.
2745
ab50adb6
MR
27462014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2747
2748 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2749 function.
2750 (micromips_instruction_is_compact_branch): Likewise.
2751 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2752 or a compact jump, reaching a jump delay slot, or seeing a
2753 second non-prologue instruction.
2754 (micromips_scan_prologue): Also terminate scanning upon seeing a
2755 compact branch or jump, or reaching a branch or jump delay slot.
2756 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2757 or jump delay slot, or seeing a second non-prologue instruction.
2758 (mips32_instruction_has_delay_slot): Retain instruction
2759 examination code only, update arguments accordingly and move
2760 instruction fetch pieces to...
2761 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2762 (micromips_instruction_has_delay_slot): Likewise and to...
2763 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2764 (mips16_instruction_has_delay_slot): Likewise and to...
2765 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2766 (mips_single_step_through_delay): Update accordingly.
2767 (mips_adjust_breakpoint_address): Likewise.
2768
ae790652
MR
27692014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2770
2771 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2772 !mustbe32 also return 1 for 32-bit instructions.
2773 (mips16_instruction_has_delay_slot): Likewise. Add an
2774 explanatory comment.
2775
9b807e7b
MR
27762014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2777
2778 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2779 symbols special.
2780
0d5ed153
MR
27812014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2782
2783 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2784 update comments.
2785 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2786 for the breakpoint's address. Don't preinitialize `placed_size'.
2787 (insert_bp_location): Set `reqstd_address' rather than
2788 `placed_address'.
2789 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2790 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2791 address.
2792 (bkpt_remove_location): Likewise.
2793 (deprecated_insert_raw_breakpoint): Likewise.
2794 (deprecated_remove_raw_breakpoint): Likewise.
2795 (find_single_step_breakpoint): Likewise.
2796 * mem-break.c (default_memory_insert_breakpoint): Use
2797 `reqstd_address' for the breakpoint's address. Don't set
2798 `placed_address' or `placed_size' if breakpoint contents couldn't
2799 have been determined.
2800 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2801 the breakpoint's address.
2802 (remote_insert_hw_breakpoint): Likewise. Don't set
2803 `placed_address' or `placed_size' if breakpoint couldn't have been
2804 set.
2805 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2806 `reqstd_address' for the breakpoint's address.
2807 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2808 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2809 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2810 * microblaze-linux-tdep.c
2811 (microblaze_linux_memory_remove_breakpoint): Likewise.
2812 * monitor.c (monitor_insert_breakpoint): Likewise.
2813 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2814 (procfs_insert_hw_breakpoint): Likewise.
2815 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2816 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2817 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2818 * remote-mips.c (mips_insert_breakpoint): Likewise.
2819 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2820
3e871532
LM
28212014-10-03 Luis Machado <lgustavo@codesourcery.com>
2822
2823 * valops.c (value_assign): Check for bit field assignments
2824 before calling architecture-specific register value
2825 conversion functions.
2826
ec48dc8b
PM
28272014-10-03 Pierre Muller <muller@sourceware.org>
2828
2829 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2830
b57bacec
PA
28312014-10-02 Pedro Alves <palves@redhat.com>
2832
2833 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2834 threads_are_executing.
2835 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2836 describing comment.
2837 * gdbthread.h (threads_are_executing): Declare.
2838 (handle_signal_stop) <random signals>: Don't print about the
2839 signal here if stopping.
2840 (end_stepping_range): Don't notify observers here.
2841 (normal_stop): Update the thread list. If stopped by a random
2842 signal or a stepping range ended, notify observers.
2843 * thread.c (threads_executing): New global.
2844 (init_thread_list): Clear 'threads_executing'.
2845 (set_executing): Set or clear 'threads_executing'.
2846 (threads_are_executing): New function.
2847 (update_threads_executing): New function.
2848 (update_thread_list): Use it.
2849
13fd3ff3
PA
28502014-10-02 Pedro Alves <palves@redhat.com>
2851
2852 PR breakpoints/17431
2853 * breakpoint.c (update_breakpoints_after_exec): Don't create
2854 overlay, longjmp, std terminate nor exception breakpoints here.
2855
32990ada
PA
28562014-10-02 Pedro Alves <palves@redhat.com>
2857
2858 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2859 Adjust comments.
2860 * inferior.c (find_inferior_for_program_space): Give preference to
2861 the current inferior.
2862 * inferior.h (find_inferior_for_program_space): Update comment.
2863 * progspace.c (switch_to_program_space_and_thread): Prefer the
2864 current inferior if it's bound to the program space requested. If
2865 the inferior found doesn't have a PID yet, don't bother looking up
2866 a thread.
2867 * progspace.h (switch_to_program_space_and_thread): Adjust
2868 comment.
2869 * thread.c (any_thread_of_process, any_live_thread_of_process):
2870 Give preference to the current thread.
2871
0fec99e8
PA
28722014-10-01 Pedro Alves <palves@redhat.com>
2873
2874 * breakpoint.c (insert_bp_location): Error out if inserting a
2875 software breakpoint at a read-only address.
2876 * target.c (memory_xfer_check_region): New function, factored out
2877 from ...
2878 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2879 ULONGEST.
2880 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2881 against the memory region attributes.
2882
2ddf4301
SM
28832014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2884
2885 * NEWS: Announce new exit-code field in -list-thread-groups
2886 output.
2887 * inferior.c (exit_inferior_1): Don't clear exit code.
2888 (inferior_appeared): Clear exit code.
2889 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2890 code.
2891
5fdeec1d
PA
28922014-10-01 Pedro Alves <palves@redhat.com>
2893
2894 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2895 GENERATED" along with emacs/vi read-only markers.
2896 * regformats/aarch64.dat: Regenerate.
2897 * regformats/arm-with-iwmmxt.dat: Regenerate.
2898 * regformats/arm-with-neon.dat: Regenerate.
2899 * regformats/arm-with-vfpv2.dat: Regenerate.
2900 * regformats/arm-with-vfpv3.dat: Regenerate.
2901 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2902 * regformats/i386/amd64-avx.dat: Regenerate.
2903 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2904 * regformats/i386/amd64-avx512.dat: Regenerate.
2905 * regformats/i386/amd64-linux.dat: Regenerate.
2906 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2907 * regformats/i386/amd64-mpx.dat: Regenerate.
2908 * regformats/i386/amd64.dat: Regenerate.
2909 * regformats/i386/i386-avx-linux.dat: Regenerate.
2910 * regformats/i386/i386-avx.dat: Regenerate.
2911 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2912 * regformats/i386/i386-avx512.dat: Regenerate.
2913 * regformats/i386/i386-linux.dat: Regenerate.
2914 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2915 * regformats/i386/i386-mmx.dat: Regenerate.
2916 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2917 * regformats/i386/i386-mpx.dat: Regenerate.
2918 * regformats/i386/i386.dat: Regenerate.
2919 * regformats/i386/x32-avx-linux.dat: Regenerate.
2920 * regformats/i386/x32-avx.dat: Regenerate.
2921 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2922 * regformats/i386/x32-avx512.dat: Regenerate.
2923 * regformats/i386/x32-linux.dat: Regenerate.
2924 * regformats/i386/x32.dat: Regenerate.
2925 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2926 * regformats/mips-dsp-linux.dat: Regenerate.
2927 * regformats/mips-linux.dat: Regenerate.
2928 * regformats/mips64-dsp-linux.dat: Regenerate.
2929 * regformats/mips64-linux.dat: Regenerate.
2930 * regformats/nios2-linux.dat: Regenerate.
2931 * regformats/rs6000/powerpc-32.dat: Regenerate.
2932 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2933 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2934 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2935 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2936 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2937 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2938 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2939 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2940 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2941 * regformats/s390-linux32.dat: Regenerate.
2942 * regformats/s390-linux32v1.dat: Regenerate.
2943 * regformats/s390-linux32v2.dat: Regenerate.
2944 * regformats/s390-linux64.dat: Regenerate.
2945 * regformats/s390-linux64v1.dat: Regenerate.
2946 * regformats/s390-linux64v2.dat: Regenerate.
2947 * regformats/s390-te-linux64.dat: Regenerate.
2948 * regformats/s390x-linux64.dat: Regenerate.
2949 * regformats/s390x-linux64v1.dat: Regenerate.
2950 * regformats/s390x-linux64v2.dat: Regenerate.
2951 * regformats/s390x-te-linux64.dat: Regenerate.
2952 * regformats/tic6x-c62x-linux.dat: Regenerate.
2953 * regformats/tic6x-c62x.dat: Regenerate.
2954 * regformats/tic6x-c64x-linux.dat: Regenerate.
2955 * regformats/tic6x-c64x.dat: Regenerate.
2956 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2957 * regformats/tic6x-c64xp.dat: Regenerate.
2958
db74e4ba
PA
29592014-10-01 Pedro Alves <palves@redhat.com>
2960
2961 * features/Makefile: Update comments.
2962 (XMLTOC): List all xml files we build C files from.
2963 (clean-cfiles): New rule.
2964
d63f2f84
PA
29652014-10-01 Pedro Alves <palves@redhat.com>
2966
2967 * features/i386/amd64-avx512-linux.c: Regenerate.
2968 * features/i386/amd64-avx512.c: Regenerate.
2969 * features/i386/x32-avx512-linux.c: Regenerate.
2970 * features/i386/x32-avx512.c: Regenerate.
2971
20ad026d
PA
29722014-10-01 Pedro Alves <palves@redhat.com>
2973
2974 * features/Makefile (WHICH): Remove arm-with-m,
2975 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2976
acc9fe45
PA
29772014-10-01 Pedro Alves <palves@redhat.com>
2978
2979 * features/Makefile (clean): New rule.
2980
e001e535
PA
29812014-10-01 Pedro Alves <palves@redhat.com>
2982
2983 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2984 (zmm14h): Add missing end quotes.
2985
bdc14417
PA
29862014-10-01 Pedro Alves <palves@redhat.com>
2987
2988 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2989 * features/aarch64.c: Regenerate.
2990
d83ad864
DB
29912014-09-30 Don Breazeal <donb@codesourcery.com>
2992
2993 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2994 code so as to work with follow_fork_inferior.
2995 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2996 (inf_ttrace_create_inferior): Remove reference to
2997 inf_ttrace_vfork_ppid.
2998 (inf_ttrace_attach): Ditto.
2999 (inf_ttrace_detach): Ditto.
3000 (inf_ttrace_kill): Use current_inferior instead of
3001 inf_ttrace_vfork_ppid.
3002 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3003 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3004 inferior away from the parent.
3005 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3006 target_follow_fork.
3007 (follow_fork_inferior): New function.
3008 (follow_inferior_reset_breakpoints): Make function static.
3009 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3010 * linux-nat.c (linux_child_follow_fork): Move target-independent
3011 code to infrun.c:follow_fork_inferior.
3012
29082443
AA
30132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3014
3015 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3016 * gdbarch.c: Regenerate.
3017 * gdbarch.h: Likewise.
3018 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3019 gdbarch method 'regset_from_core_section'.
3020 (get_core_register_section): Remove handling for the case that
3021 regset == NULL and regset_from_core_section is defined.
3022 (get_core_registers): Drop check for deleted method.
3023 * procfs.c (procfs_do_thread_registers): Adjust comment.
3024
f968fe80
AA
30252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3026
3027 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3028 (linux_nat_make_corefile_notes): Remove.
3029 (linux_target_install_ops): Do not set target method
3030 'make_corefile_notes'.
3031 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3032 Remove field.
3033 (linux_corefile_thread_callback): Instead of args->collect, call
3034 linux_collect_thread_registers.
3035 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3036 NULL unless there is a regset iterator.
3037 (linux_make_corefile_notes_1): Remove.
3038 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3039 by linux_make_corefile_notes.
3040 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3041
174ad59a
AA
30422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3043
3044 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3045 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3046 Remove.
3047 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3048
97094034
AA
30492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3050
3051 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3052 (xtensa_iterate_over_regset_sections): New.
3053 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3054
f73d3ce7
AA
30552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3056
3057 * vax-tdep.c (vax_regset_from_core_section): Remove.
3058 (vax_iterate_over_regset_sections): New.
3059 (vax_gdbarch_init): Adjust gdbarch initialization.
3060
cb24567a
AA
30612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3062
3063 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3064 (tilegx_regset_from_core_section): Remove.
3065 (tilegx_iterate_over_regset_sections): New.
3066 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3067
e5139de8
AA
30682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3069
3070 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3071 (sparc_iterate_over_regset_sections): New.
3072 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3073 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3074 targets.
3075 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3076 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3077 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3078 target method 'make_corefile_notes'.
3079
c6d41a6f
AA
30802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3081
3082 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3083 'sizeof_gregset' and 'sizeof_fpregset'.
3084 * sh-tdep.c (sh_regset_from_core_section): Remove.
3085 (sh_iterate_over_regset_sections): New.
3086 (sh_gdbarch_init): Adjust gdbarch initialization.
3087 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3088 sizeof_fpregset.
3089 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3090 'sizeof_gregset'.
3091
9845a0b5
AA
30922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3093
3094 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3095 (score7_linux_iterate_over_regset_sections): New.
3096 (score_gdbarch_init): Adjust gdbarch initialization.
3097
23ea9aeb
AA
30982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3099
3100 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3101 FreeBSD targets.
3102 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3103 method 'make_corefile_notes'.
3104 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3105 (ppcfbsd_regset_from_core_section): Remove.
3106 (ppcfbsd_iterate_over_regset_sections): New.
3107 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3108 initialization.
3109 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3110 (ppcnbsd_iterate_over_regset_sections): New.
3111 (ppcnbsd_init_abi): Adjust.
3112 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3113 (ppcobsd_iterate_over_regset_sections): New.
3114 (ppcobsd_init_abi): Adjust.
3115 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3116 (rs6000_aix_iterate_over_regset_sections): New.
3117 (rs6000_aix_init_osabi): Adjust.
3118
c5b8d704
AA
31192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3120
3121 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3122 (nios2_regset_from_core_section): Remove.
3123 (nios2_iterate_over_regset_sections): New.
3124 (nios2_linux_init_abi): Adjust gdbarch initialization.
3125
3636e608
AA
31262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3127
3128 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3129 (am33_iterate_over_regset_sections): New.
3130 (am33_linux_init_osabi): Adjust gdbarch initialization.
3131
d4036235
AA
31322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3133
3134 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3135 (mips_linux_iterate_over_regset_sections): New.
3136 (mips_linux_init_abi): Adjust gdbarch initialization.
3137 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3138 (mips64obsd_iterate_over_regset_sections): New.
3139 (mips64obsd_init_abi): Adjust.
3140 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3141 (mipsnbsd_iterate_over_regset_sections): New.
3142 (mipsnbsd_init_abi): Adjust.
3143
b61ddd6e
AA
31442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3145
3146 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3147 (m88k_iterate_over_regset_sections): New.
3148 (m88k_gdbarch_init): Adjust gdbarch initialization.
3149
55a2906a
AA
31502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3151
3152 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3153 (ia64_linux_iterate_over_regset_sections): New.
3154 (ia64_linux_init_abi): Adjust gdbarch initialization.
3155
022c98ab
AA
31562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157
3158 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3159 (m68kbsd_iterate_over_regset_sections): New.
3160 (m68kbsd_init_abi): Adjust gdbarch initialization.
3161 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3162 (m68k_linux_iterate_over_regset_sections): New.
3163 (m68k_linux_init_abi): Adjust gdbarch initialization.
3164
5fac247f
AA
31652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3166
3167 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3168 (m32r_linux_regset_from_core_section): Remove.
3169 (m32r_linux_iterate_over_regset_sections): New.
3170 (m32r_linux_init_abi): Adjust gdbarch initialization.
3171
490496c3
AA
31722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3173
3174 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3175 (amd64obsd_iterate_over_regset_sections): New.
3176 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3177 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3178 Remove.
3179 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3180 regset_from_core_section initialization.
3181 * i386-tdep.c (i386_regset_from_core_section): Remove.
3182 (i386_iterate_over_regset_sections): New.
3183 (i386_gdbarch_init): Adjust gdbarch initialization.
3184 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3185 (i386_iterate_over_regset_sections): New prototype.
3186 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3187 Remove.
3188 (i386obsd_aout_iterate_over_regset_sections): New.
3189 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3190 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3191 targets.
3192 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3193 (amd64fbsd_init_abi): Call fbsd_init_abi.
3194 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3195 (i386fbsd4_init_abi): Call fbsd_init_abi.
3196 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3197 target method 'make_corefile_notes'.
3198 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3199
50c5eb53
AA
32002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3201
3202 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3203 (hppa_hpux_iterate_over_regset_sections): New.
3204 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3205 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3206 (hppa_linux_iterate_over_regset_sections): New.
3207 (hppa_linux_init_abi): Adjust.
3208 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3209 (hppanbsd_iterate_over_regset_sections): New.
3210 (hppanbsd_init_abi): Adjust.
3211 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3212 (hppaobsd_iterate_over_regset_sections): New.
3213 (hppaobsd_init_abi): Adjust.
3214
66afae4f
AA
32152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3216
3217 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3218 (frv_linux_iterate_over_regset_sections): New.
3219 (frv_linux_init_abi): Adjust gdbarch initialization.
3220
ed09174e
AA
32212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3222
3223 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3224 (armbsd_iterate_over_regset_sections): New prototype.
3225 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3226 (armbsd_iterate_over_regset_sections): New.
3227 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3228 initialization.
3229
dff2166e
AA
32302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231
3232 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3233 (alpha_linux_iterate_over_regset_sections): New.
3234 (alpha_linux_init_abi): Adjust gdbarch initialization.
3235 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3236 prototype.
3237 (alphanbsd_iterate_over_regset_sections): New prototype.
3238
4108500a
AA
32392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3240
3241 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3242 Remove.
3243 (aarch64_linux_iterate_over_regset_sections): New.
3244 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3245
a904c024
AA
32462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3247
3248 * fbsd-tdep.c: New file.
3249 * fbsd-tdep.h: New file.
3250 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3251 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3252 (ALLDEPFILES): Add fbsd-tdep.c.
3253
8f0435f7
AA
32542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3255
3256 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3257 parameter.
3258 * gdbarch.h: Regenerate.
3259 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3260 iterator.
3261 (get_core_register_section): Add parameter 'regset' and use it, if
3262 set. Add parameter 'min_size' and verify the bfd section size
3263 against it.
3264 (get_core_registers_cb): Add parameter 'regset' and pass it to
3265 get_core_register section. For the "standard" register sections
3266 ".reg" and ".reg2", set an appropriate default for human_name.
3267 (get_core_registers): Don't abort when the gdbarch has an iterator
3268 but no regset_from_core_section. Add NULL/0 for parameters
3269 'regset'/'min_size' in calls to get_core_register_section.
3270 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3271 'regset' and use it instead of calling the
3272 regset_from_core_section gdbarch method.
3273 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3274 * i386-tdep.c (i386_supply_xstateregset)
3275 (i386_collect_xstateregset, i386_xstateregset): Moved to
3276 i386-linux-tdep.c.
3277 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3278 .reg-xstate.
3279 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3280 core file support only if the regset iterator hasn't been set.
3281 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3282 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3283 Moved from i386-tdep.c and renamed to *_linux*.
3284 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3285 each callback invocation. Allow any .reg-xstate size when reading
3286 from a core file.
3287 * amd64-tdep.c (amd64_supply_xstateregset)
3288 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3289 amd64-linux-tdep.c.
3290 (amd64_regset_from_core_section): Remove.
3291 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3292 install an amd64-specific regset_from_core_section gdbarch method.
3293 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3294 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3295 Moved from amd64-tdep.c and renamed to *_linux*.
3296 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3297 to each callback invocation. Allow any .reg-xstate size when
3298 reading from a core file.
3299 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3300 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3301 each callback invocation.
3302 (arm_linux_init_abi): No longer set the regset_from_core_section
3303 gdbarch method.
3304 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3305 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3306 each callback invocation.
3307 (ppc_linux_init_abi): No longer set the regset_from_core_section
3308 gdbarch method.
3309 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3310 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3311 (s390_regset_from_core_section): Remove.
3312 (s390_iterate_over_regset_sections): Add regset parameter to each
3313 callback invocation.
3314 (s390_gdbarch_init): No longer set the regset_from_core_section
3315 gdbarch method. Drop initialization of deleted tdep fields.
3316
5aa82d05
AA
33172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3318
3319 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3320 (amd64_linux_iterate_over_regset_sections): New.
3321 (amd64_linux_init_abi_common): Don't install the regset section
3322 list, but the new iterator in gdbarch.
3323 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3324 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3325 (arm_linux_iterate_over_regset_sections): ...here. New function.
3326 (arm_linux_init_abi): Set iterator instead of section list.
3327 * corelow.c (get_core_registers_cb): New function, logic moved
3328 from...
3329 (get_core_registers): ...loop body here. Use new iterator method
3330 instead of walking through the regset section list.
3331 * gdbarch.sh: Remove 'core_regset_sections'. New method
3332 'iterate_over_regset_sections'. New typedef
3333 'iterate_over_regset_sections_cb'.
3334 * gdbarch.c: Regenerate.
3335 * gdbarch.h: Likewise.
3336 * i386-linux-tdep.c (i386_linux_regset_sections)
3337 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3338 Remove.
3339 (i386_linux_iterate_over_regset_sections): New.
3340 (i386_linux_init_abi): Don't choose a regset section list, but
3341 install new iterator in gdbarch.
3342 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3343 (linux_collect_regset_section_cb): New function, logic moved
3344 from...
3345 (linux_collect_thread_registers): ...loop body here. Use iterator
3346 method instead of walking through list.
3347 (linux_make_corefile_notes_1): Check for presence of iterator
3348 method instead of regset section list.
3349 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3350 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3351 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3352 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3353 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3354 (ppc_linux_init_abi): Don't choose from above regset section
3355 lists, but install new iterator in gdbarch.
3356 * regset.h (struct core_regset_section): Remove.
3357 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3358 have_linux_v1, have_linux_v2, and have_tdb.
3359 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3360 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3361 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3362 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3363 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3364 (s390_iterate_over_regset_sections): ...here. New function. Use
3365 new tdep fields.
3366 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3367 regset section lists, but install new iterator.
3368
2eca4a8d
JK
33692014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3372
a73c2b56
SM
33732014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3374
3375 * progspace.c (print_program_space): Don't prune program spaces
3376 before printing them.
3377
03d46957
PA
33782014-09-25 Pedro Alves <palves@redhat.com>
3379
3380 * infrun.c (user_visible_resume_ptid): Don't check
3381 singlestep_breakpoints_inserted_p.
3382
e558d7c1
PA
33832014-09-25 Pedro Alves <palves@redhat.com>
3384
3385 * breakpoint.c (should_be_inserted): Add debug output.
3386
7f89fd65
PA
33872014-09-25 Pedro Alves <palves@redhat.com>
3388
3389 * infrun.c (stepping_past_instruction_at)
3390 (clear_exit_convenience_vars): Point at infrun.h instead of
3391 inferior.h.
3392 (handle_signal_stop): Fix typo.
3393
b7576e5c
YQ
33942014-09-24 Yao Qi <yao@codesourcery.com>
3395
3396 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3397 bitmask.
3398
9a6cf368
GB
33992014-09-22 Gary Benson <gbenson@redhat.com>
3400
3401 * target.c (target_stop): Updated comment.
3402
03f4463b
GB
34032014-09-22 Gary Benson <gbenson@redhat.com>
3404
3405 * target/target.h (target_stop_ptid): Renamed as...
3406 (target_stop_and_wait): New function. Updated comment.
3407 All uses updated.
3408 (target_continue_ptid): Renamed as...
3409 (target_continue_no_signal): New function. Updated comment.
3410 All uses updated.
3411
a25a5a45
PA
34122014-09-22 Pedro Alves <palves@redhat.com>
3413
3414 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3415 and "auto" merged.
3416 * breakpoint.c (enum ugll_insert_mode): New enum.
3417 (always_inserted_mode): Now a plain boolean.
3418 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3419 (breakpoints_always_inserted_mode): Delete.
3420 (breakpoints_should_be_inserted_now): New function.
3421 (insert_breakpoints): Pass UGLL_INSERT to
3422 update_global_location_list instead of calling
3423 insert_breakpoint_locations manually.
3424 (create_solib_event_breakpoint_1): New, factored out from ...
3425 (create_solib_event_breakpoint): ... this.
3426 (create_and_insert_solib_event_breakpoint): Use
3427 create_solib_event_breakpoint_1 instead of calling
3428 insert_breakpoint_locations manually.
3429 (update_global_location_list): Change parameter type from boolean
3430 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3431 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3432 (update_global_location_list_nothrow): Change parameter type from
3433 boolean to enum ugll_insert_mode.
3434 (_initialize_breakpoint): "breakpoint always-inserted" option is
3435 now a boolean command. Update help text.
3436 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3437 (breakpoints_should_be_inserted_now): New declaration.
3438 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3439 Remove breakpoints_always_inserted_mode check.
3440 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3441 * remote.c (remote_start_remote): Likewise.
3442
04086b45
PA
34432014-09-22 Pedro Alves <palves@redhat.com>
3444
3445 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3446 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3447 Instead, pass UGLL_INSERT to update_global_location_list.
3448 (update_global_location_list): Change parameter type from boolean
3449 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3450 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3451 (create_solib_event_breakpoint_1): New, factored out from ...
3452 (create_solib_event_breakpoint): ... this.
3453 (create_and_insert_solib_event_breakpoint): Use
3454 create_solib_event_breakpoint_1 instead of calling
3455 insert_breakpoint_locations manually.
3456 (update_global_location_list): Handle UGLL_INSERT.
3457
44702360
PA
34582014-09-22 Pedro Alves <palves@redhat.com>
3459
3460 * breakpoint.c (enum ugll_insert_mode): New enum.
3461 (update_global_location_list)
3462 (update_global_location_list_nothrow): Change parameter type from
3463 boolean to enum ugll_insert_mode. All callers adjusted.
3464
93c6145a
JB
34652014-09-19 Joel Brobecker <brobecker@adacore.com>
3466
3467 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3468 SystemTap support in GDB.
3469
89a5711c
DB
34702014-09-19 Don Breazeal <donb@codesourcery.com>
3471
3472 * linux-nat.c (linux_handle_extended_wait): Call
3473 linux_ptrace_get_extended_event.
3474 (wait_lwp): Call linux_is_extended_waitstatus.
3475 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3476 and linux_is_extended_waitstatus.
3477 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3478 linux_ptrace_get_extended_event.
3479 (linux_ptrace_get_extended_event): New function.
3480 (linux_is_extended_waitstatus): New function.
3481 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3482 (linux_is_extended_waitstatus): New declarations.
3483
c3b7b696
YQ
34842014-09-19 Yao Qi <yao@codesourcery.com>
3485
3486 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3487 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3488 comments. Callers update.
3489 (dwarf_decode_lines): Likewise.
3490 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3491 comments. Skip the line table if 'lowpc' is greater than
3492 'address'. Don't check
3493 dwarf2_per_objfile->has_section_at_zero.
3494
2b4fd423
DE
34952014-09-18 Doug Evans <dje@google.com>
3496
3497 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3498 * python/py-symtab.c (stpy_get_producer): New function.
3499 (symtab_object_getset): Add "producer" attribute.
3500
5e43d467
UW
35012014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3502
3503 PR gdb/17384
3504 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3505 (do_captured_read_memory_integer): Remove.
3506 (safe_read_memory_integer): Use target_read_memory directly instead
3507 of catching errors in do_captured_read_memory_integer.
3508
04e79979
MR
35092014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3510
3511 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3512 not gdb/doc.
3513
76aeec5b
SDJ
35142014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3515
3516 * objc-lang.c (find_implementation_from_class): Remove dead code.
3517
2f693f9d
SDJ
35182014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3519
3520 PR cli/7233
3521 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3522 "fprintf_unfiltered (gdb_stdlog...)".
3523
bb9d5f81
PP
35242014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3525
3526 PR breakpoints/12526
3527 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3528 val_bitsize.
3529 * breakpoint.c (watch_command_1): Use these fields to retain
3530 bitfield information.
3531 (extract_bitfield_from_watchpoint_value): New function.
3532 (watchpoint_check): Use it.
3533 (update_watchpoint): Use it. Optimize the address and length of a
3534 HW watchpoint pointing to a bitfield.
3535 * value.h (unpack_value_bitfield): New prototype.
3536 * value.c (unpack_value_bitfield): Make extern.
3537
05db5edd
ST
35382014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3539
3540 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3541 x86-dregs.o.
3542 * gnu-nat.c (inf_threads): New function.
3543 * gnu-nat.h (inf_threads_ftype): New typedef.
3544 (inf_threads): New declaration.
3545 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3546 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3547 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3548 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3549 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3550 (i386_gnu_dr_get_control): New functions.
3551 (reg_addr): New structure.
3552 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3553 i386 debugging register hooks.
3554 * NEWS: Mention this.
3555
5a578da5
OJ
35562014-08-13 Omair Javaid <omair.javaid@linaro.org>
3557
3558 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3559 vector data transfer instructions.
3560 (arm_record_coproc_data_proc): Updated.
3561
f20f80dd
OJ
35622014-08-13 Omair Javaid <omair.javaid@linaro.org>
3563
3564 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3565 arm_record_exreg_ld_st_insn.
3566 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3567 load/store insns.
3568
851f26ae
OJ
35692014-08-13 Omair Javaid <omair.javaid@linaro.org>
3570
3571 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3572 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3573 processing instructions.
3574
1e1b6563
OJ
35752014-08-13 Omair Javaid <omair.javaid@linaro.org>
3576
3577 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3578 for advance SIMD struct ld/st insn.
3579 (thumb2_record_decode_insn_handler): Replace stub handler with
3580 thumb2_record_asimd_struct_ld_st.
3581
60cc5e93
OJ
35822014-08-13 Omair Javaid <omair.javaid@linaro.org>
3583
3584 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3585 for asimd, vfp and coprocessor insns.
3586 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3587 and coprocessor insns.
3588 (thumb2_record_coproc_insn): New function.
3589 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3590 handlers.
3591 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3592 opcode 110 insns.
3593
81219e53
DE
35942014-09-13 Doug Evans <xdje42@gmail.com>
3595
3596 * NEWS: Mention new "queue-signal" command.
3597 * infcmd.c (queue_signal_command): New function.
3598 (_initialize_infcmd): Add new queue-signal command.
3599
d36bf488
DE
36002014-09-13 Doug Evans <xdje42@gmail.com>
3601
3602 * linux-nat.c (wait_lwp): Add debugging printf.
3603 (linux_nat_wait_1): Ditto.
3604
f37f681c
PA
36052014-09-12 Pedro Alves <palves@redhat.com>
3606
3607 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3608 (create_and_insert_solib_event_breakpoint): New functions.
3609 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3610 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3611 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3612 (remove_dbx_link_breakpoint): Delete function.
3613 (insert_dbx_link_bpt_in_file): Use
3614 create_and_insert_solib_event_breakpoint instead of
3615 deprecated_insert_raw_breakpoint.
3616 (procfs_wait): Don't check whether we hit __dbx_link here.
3617 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3618 here.
3619 * solib-irix.c (base_breakpoint): Delete global.
3620 (disable_break): Delete function.
3621 (enable_break): Use create_solib_event_breakpoint
3622 instead of deprecated_insert_raw_breakpoint.
3623 (irix_solib_handle_event): New function.
3624 (irix_solib_create_inferior_hook): Don't run the target or disable
3625 the mapping-complete breakpoint here.
3626 (_initialize_irix_solib): Install irix_solib_handle_event as
3627 so_ops->handle_event hook.
3628
9d9bf2df
EBM
36292014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3630 Ulrich Weigand  <uweigand@de.ibm.com>
3631
3632 PR tdep/17379
3633 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3634 instead of read_memory_unsigned_integer.
3635
b006a80e
GB
36362014-09-12 Gary Benson <gbenson@redhat.com>
3637
3638 * nat/linux-waitpid.c: Include common-defs.h.
3639 [GDBSERVER]: Add FIXME comment.
3640 [!GDBSERVER]: Don't include defs.h or signal.h.
3641 (linux_debug) [!GDBSERVER]: Remove empty block.
3642
296b1496
GB
36432014-09-12 Gary Benson <gbenson@redhat.com>
3644
3645 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3646 Don't include defs.h or server.h.
3647
53f81362
GB
36482014-09-12 Gary Benson <gbenson@redhat.com>
3649
3650 * nat/linux-btrace.c: Include common-defs.h.
3651 Don't include defs.h, server.h or gdbthread.h.
3652 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3653
727605ca
GB
36542014-09-12 Gary Benson <gbenson@redhat.com>
3655
3656 * common/agent.c: Include common-defs.h.
3657 Don't include defs.h or server.h.
3658 * common/buffer.c: Likewise.
3659 * common/common-debug.c: Likewise.
3660 * common/common-utils.c: Likewise.
3661 * common/errors.c: Likewise.
3662 * common/filestuff.c: Likewise.
3663 * common/format.c: Likewise.
3664 * common/gdb_vecs.c: Likewise.
3665 * common/print-utils.c: Likewise.
3666 * common/ptid.c: Likewise.
3667 * common/rsp-low.c: Likewise.
3668 * common/signals.c: Likewise.
3669 * common/vec.c: Likewise.
3670 * common/xml-utils.c: Likewise.
3671 * nat/linux-osdata.c: Likewise.
3672 * nat/linux-procfs.c: Likewise.
3673 * nat/linux-ptrace.c: Likewise.
3674 * nat/mips-linux-watch.c: Likewise.
3675 * target/waitstatus.c: Likewise.
3676
361c8ade
GB
36772014-09-12 Tom Tromey <tromey@redhat.com>
3678 Gary Benson <gbenson@redhat.com>
3679
3680 * common/common-regcache.h: New file.
3681 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3682 * regcache.h: Include common-regcache.h.
3683 (regcache_read_pc): Don't declare.
3684 * regcache.c (get_thread_regcache_for_ptid): New function.
3685 * nat/linux-btrace.c: Don't include regcache.h.
3686 Include common-regcache.h.
3687 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3688
a01cbb49
TS
36892014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3690
3691 * regcache.h (struct regset): Declare.
3692
98880d46
PA
36932014-09-11 Pedro Alves <palves@redhat.com>
3694
3695 PR gdb/17347
3696 * main.c: Include "infrun.h".
3697 (catch_command_errors, catch_command_errors_const): Wait for the
3698 foreground command to complete.
3699 * top.c (maybe_wait_sync_command_done): New function, factored out
3700 from ...
3701 (maybe_wait_sync_command_done): ... here.
3702 * top.h (maybe_wait_sync_command_done): New declaration.
3703
bd9269f7
GB
37042014-09-11 Tom Tromey <tromey@redhat.com>
3705 Gary Benson <gbenson@redhat.com>
3706
3707 * common/symbol.h: New file.
3708 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3709 * minsyms.c (find_minimal_symbol_address): New function.
3710 * common/agent.c: Include common/symbol.h.
3711 [!GDBSERVER]: Don't include objfiles.h.
3712 (agent_look_up_symbols): Use find_minimal_symbol_address.
3713
f8c1d06b
GB
37142014-09-11 Gary Benson <gbenson@redhat.com>
3715
3716 * target/target.h (target_stop_ptid, target_continue_ptid):
3717 Declare.
3718 * target.c (target_stop_ptid, target_continue_ptid): New
3719 functions.
3720 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3721 (agent_run_command): Always use target_stop_ptid and
3722 target_continue_ptid.
3723
721ec300
GB
37242014-09-11 Tom Tromey <tromey@redhat.com>
3725 Gary Benson <gbenson@redhat.com>
3726
3727 * target/target.h: New file.
3728 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3729 * target.h: Include target/target.h.
3730 (target_read_memory, target_write_memory): Don't declare.
3731 * target.c (target_read_uint32): New function.
3732 * common/agent.c: Include target/target.h.
3733 [!GDBSERVER]: Don't include target.h.
3734 (helper_thread_id): Type changed to uint32_t.
3735 (agent_get_helper_thread_id): Use target_read_uint32.
3736 (agent_run_command): Always use target_read_memory and
3737 target_write_memory.
3738 (agent_capability): Type changed to uint32_t.
3739 (agent_capability_check): Use target_read_uint32.
3740
c5e92cca
GB
37412014-09-11 Gary Benson <gbenson@redhat.com>
3742
3743 * common/common-debug.h (show_debug_regs): Declare.
3744 * common/common-debug.c (show_debug_regs): Define.
3745 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3746 all uses with show_debug_regs. Replace all uses that considered
3747 debug_hw_points as a multi-value integer with straight boolean
3748 uses.
3749 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3750 with show_debug_regs.
3751 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3752 all uses with show_debug_regs.
3753 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3754 uses with show_debug_regs.
3755
eeef931a
UW
37562014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3757
3758 * findvar.c (address_from_register): Handle targets requiring
3759 a special conversion routine even for plain pointer types.
3760
8efa9855
UW
37612014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3762
3763 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3764 (store_register): Do not call exec_one_dummy_insn.
3765
eb479039
JB
37662014-09-10 Joel Brobecker <brobecker@adacore.com>
3767
3768 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3769 dereference it first. Use value_enclosing_type instead of
3770 value_type.
3771 (ada_array_length): Likewise.
3772
deede10c
JB
37732014-09-10 Joel Brobecker <brobecker@adacore.com>
3774
3775 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3776 Adjust function implementation and documentation accordingly.
3777 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3778 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3779 Update call to ada_value_ptr_subscript.
3780
7828a5f5
JB
37812014-09-10 Joel Brobecker <brobecker@adacore.com>
3782
3783 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3784 instead of VAL's type.
3785
35782f14
JB
37862014-09-10 Joel Brobecker <brobecker@adacore.com>
3787
3788 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3789
d342a0da
DE
37902014-09-09 Doug Evans <xdje42@gmail.com>
3791
3792 PR guile/17367
3793 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3794 last parameter to pkg-config, not first.
3795 * configure.ac: Pass --with-guile provided pkg-config path to
3796 GDB_GUILE_PROGRAM_NAMES.
3797 * configure: Regenerate.
3798
b4a3d263
GKB
37992014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3800
3801 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3802 Bertazi".
3803
6e466374
MR
38042014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3805
3806 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3807 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3808 the list of sections determining GDB_OSABI_IRIX.
3809
a1ada89a
JH
38102014-09-09 James Hogan <james.hogan@imgtec.com>
3811
3812 * MAINTAINERS (Write After Approval): Add "James Hogan".
3813
86db008d
JH
38142014-09-09 James Hogan <james.hogan@imgtec.com>
3815
3816 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3817
72fde3df
JB
38182014-09-09 Joel Brobecker <brobecker@adacore.com>
3819
3820 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3821
92d8d229
DE
38222014-09-08 Doug Evans <xdje42@gmail.com>
3823
3824 PR 17247
3825 * guile.c: #include <signal.h>.
3826 (_initialize_guile): Block SIGCHLD while initializing Guile.
3827
3828 Replaces the following, which is reverted.
3829
3830 2014-07-26 Doug Evans <xdje42@gmail.com>
3831
3832 PR 17185
3833 * configure.ac: Add check for header gc/gc.h.
3834 Add check for function setenv.
3835 * configure: Regenerate.
3836 * config.in: Regenerate.
3837 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3838
d81412aa
DE
38392014-09-08 Doug Evans <xdje42@gmail.com>
3840
3841 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3842 with named constant. Fix style of pointer comparison.
3843 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3844
a9f116cb
GKB
38452014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3846
3847 PR gdb/17035
3848 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3849 decide whether we display the command on "show user".
3850 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3851 printing command name.
3852 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3853 * cli/cli-decode.c (cli_user_command_p): Create helper function
3854 to verify whether cmd_list_element is a user-defined command.
3855
c75bd3a2
JK
38562014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3857
3858 PR python/17355
3859 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3860 Fix goto out of TRY_CATCH.
3861
faa42425 38622014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3863 Tom Tromey <tromey@redhat.com>
faa42425
DE
3864
3865 PR 15276
3866 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3867 $_any_caller_matches.
3868 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3869 * python/lib/gdb/function/caller_is.py: New file.
3870
0d41ba00
DE
38712014-09-06 Doug Evans <xdje42@gmail.com>
3872
3873 * infcmd.c (program_info): Fix typo.
3874
474ca4f6
SDJ
38752014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3876
3877 PR gdb/17235
3878 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3879 'number'. New variable 'has_digit'. Rewrite code to deal with
3880 subexpressions on SDT probes.
3881
ebf13736
PA
38822014-09-04 Pedro Alves <palves@redhat.com>
3883
3884 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3885 the input is only one character long.
3886
eb0b0463
SDJ
38872014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3888
3889 PR fortran/17237
3890 * f-valprint.c (f_val_print): Specify the correct print option to
3891 use when printing integer values.
3892
5ee44bfa
GB
38932014-09-04 Gary Benson <gbenson@redhat.com>
3894
3895 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3896 Remove code to cope with LWPs wrapped as PIDs.
3897 Add assertions to ensure no wrapped LWPs are passed.
3898
4875ffdb
PA
38992014-09-04 Pedro Alves <palves@redhat.com>
3900
3901 * value.c (value_ranges_copy_adjusted): New function, factored out
3902 from ...
3903 (value_contents_copy_raw): ... here.
3904 (unpack_value_bits_as_long_1): Rename back to ...
3905 (unpack_bits_as_long): ... this. Remove 'original_value' and
3906 'result' parameters. Change return type to LONGEST.
3907 (unpack_value_bits_as_long): Delete.
3908 (unpack_value_field_as_long_1): Delete.
3909 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3910 (unpack_value_bitfield): New function.
3911 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3912 (value_fetch_lazy): Use unpack_value_bitfield.
3913 * value.h (unpack_value_bits_as_long): Delete declaration.
3914
5f3b99cf
SS
39152014-09-03 Sasha Smundak <asmundak@google.com>
3916
3917 * python/py-frame.c (frapy_read_register): New function.
3918
ac740bc7
JH
39192014-09-03 James Hogan <james.hogan@imgtec.com>
3920
3921 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3922 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3923
7d793aa9
SDJ
39242014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3925
3926 PR python/16699
3927 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3928 function.
3929 (add_cmd): Set "completer_handle_brkchars" to NULL.
3930 * cli/cli-decode.h (struct cmd_list_element)
3931 <completer_handle_brkchars>: New field.
3932 * command.h (completer_ftype_void): New typedef.
3933 (set_cmd_completer_handle_brkchars): New prototype.
3934 * completer.c (set_gdb_completion_word_break_characters): New
3935 function.
3936 (complete_line_internal): Call "completer_handle_brkchars"
3937 callback from command.
3938 * completer.h: Include "command.h".
3939 (set_gdb_completion_word_break_characters): New prototype.
3940 * python/py-cmd.c (cmdpy_completer_helper): New function.
3941 (cmdpy_completer_handle_brkchars): New function.
3942 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3943 (cmdpy_init): Set completer_handle_brkchars to
3944 cmdpy_completer_handle_brkchars.
3945
97ea6506
GB
39462014-09-03 Gary Benson <gbenson@redhat.com>
3947
3948 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3949 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3950 Loop conditions changed to equivalent form.
3951 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3952 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3953 ALL_DEBUG_ADDRESS_REGISTERS.
3954
d1437815
JB
39552014-09-03 Joel Brobecker <brobecker@adacore.com>
3956
3957 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3958 description fix.
3959
9b94fcf1
DE
39602014-09-02 Doug Evans <dje@google.com>
3961
3962 * typeprint.c (find_global_typedef): Fix comment.
3963
df7e5265
GB
39642014-09-02 Gary Benson <gbenson@redhat.com>
3965
3966 * i386-nat.h: Renamed as...
3967 * x86-nat.h: New file. All type, function and variable name
3968 prefixes changed from "i386_" to "x86_". All references updated.
3969 * i386-nat.c: Renamed as...
3970 * x86-nat.c: New file. All type, function and variable name
3971 prefixes changed from "i386_" to "x86_". All references updated.
3972 * common/i386-xstate.h: Renamed as...
3973 * common/x86-xstate.h: New file. All type, function and variable
3974 name prefixes changed from "i386_" to "x86_". All references
3975 updated.
3976 * nat/i386-cpuid.h: Renamed as...
3977 * nat/x86-cpuid.h: New file. All type, function and variable name
3978 prefixes changed from "i386_" to "x86_". All references updated.
3979 * nat/i386-gcc-cpuid.h: Renamed as...
3980 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3981 name prefixes changed from "i386_" to "x86_". All references
3982 updated.
3983 * nat/i386-dregs.h: Renamed as...
3984 * nat/x86-dregs.h: New file. All type, function and variable name
3985 prefixes changed from "i386_" to "x86_". All references updated.
3986 * nat/i386-dregs.c: Renamed as...
3987 * nat/x86-dregs.c: New file. All type, function and variable name
3988 prefixes changed from "i386_" to "x86_". All references updated.
3989
1c3569d4
MR
39902014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3991
3992 * varobj.c (_initialize_varobj): Move to the end of file.
3993
ff55e1b5
GB
39942014-08-29 Gary Benson <gbenson@redhat.com>
3995
3996 * common/common-exceptions.h: New file.
3997 * common/common-exceptions.c: Likewise.
3998 * Makefile.in (SFILES): Add common/common-exceptions.c.
3999 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4000 (COMMON_OBS): Add common-exceptions.o.
4001 (common-exceptions.o): New rule.
4002 * exceptions.h (common-exceptions.h): Include.
4003 (gdb_setjmp.h): Do not include.
4004 (return_reason): Moved to common-exceptions.h.
4005 (enum return_reason): Likewise.
4006 (RETURN_MASK): Likewise.
4007 (typedef return_mask): Likewise.
4008 (enum errors): Likewise.
4009 (struct gdb_exception): Likewise.
4010 (exceptions_state_mc_init): Likewise.
4011 (exceptions_state_mc_action_iter): Likewise.
4012 (exceptions_state_mc_action_iter_1): Likewise.
4013 (TRY_CATCH): Likewise.
4014 (throw_exception): Likewise.
4015 (throw_verror): Likewise.
4016 (throw_vquit): Likewise.
4017 (throw_error): Likewise.
4018 (throw_quit): Likewise.
4019 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4020 (enum catcher_action): Likewise.
4021 (struct catcher): Likewise.
4022 (current_catcher): Likewise.
4023 (catcher_list_size): Likewise.
4024 (exceptions_state_mc_init): Likewise.
4025 (catcher_pop): Likewise.
4026 (exceptions_state_mc): Likewise.
4027 (exceptions_state_mc_action_iter): Likewise.
4028 (exceptions_state_mc_action_iter_1): Likewise.
4029 (throw_exception): Likewise.
4030 (exception_messages): Likewise.
4031 (exception_messages_size): Likewise.
4032 (throw_it): Likewise.
4033 (throw_verror): Likewise.
4034 (throw_vquit): Likewise.
4035 (throw_error): Likewise.
4036 (throw_quit): Likewise.
4037 (prepare_to_throw_exception): New function.
4038
e9bcb658
GB
40392014-08-29 Gary Benson <gbenson@redhat.com>
4040
4041 * common/gdb_setjmp.h: New file.
4042 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4043 * configure.ac: Move sigsetjmp check...
4044 * common/common.m4: ...here.
4045 * configure: Regenerate.
4046 * cp-support.c (SIGJMP_BUF): Delete.
4047 (SIGSETJMP): Likewise.
4048 (SIGLONGJMP): Likewise.
4049 * exceptions.h (gdb_setjmp.h): Include.
4050 (setjmp.h): Do not include.
4051 (EXCEPTIONS_SIGJMP_BUF): Delete.
4052 (EXCEPTIONS_SIGSETJMP): Likewise.
4053 (EXCEPTIONS_SIGLONGJMP): Likewise.
4054 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4055 from gdb_setjmp.h.
4056 * exceptions.c: Likewise.
4057
e3180625
GB
40582014-08-29 Gary Benson <gbenson@redhat.com>
4059
4060 * cleanups.h: Moved to...
4061 * common/cleanups.h: New file.
4062 * cleanups.c: Moved to...
4063 * common/cleanups.c: New file. Include common-defs.h and
4064 cleanups.h. Do not include defs.h.
4065 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4066 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4067 (cleanups.o): New rule.
4068
e3d6ba5d
GB
40692014-08-29 Gary Benson <gbenson@redhat.com>
4070
4071 * common/errors.h (internal_warning): New declaration.
4072 (internal_vwarning): Likewise.
4073 * common/errors.c (internal_warning): New function.
4074 * utils.h (internal_warning): Don't declare.
4075 (internal_vwarning): Likewise.
4076 * utils.c (internal_warning): Removed.
4077
075c7033
GB
40782014-08-29 Gary Benson <gbenson@redhat.com>
4079
4080 * main.c (captured_main): Use warning during startup.
4081 Prefix startup warning messages with command name.
4082
91b35fd0
GB
40832014-08-29 Gary Benson <gbenson@redhat.com>
4084
4085 * main.c (captured_main): Handle usage errors with error.
4086
b1ec390e
GB
40872014-08-29 Gary Benson <gbenson@redhat.com>
4088
4089 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4090 exit pair with a call to error. Wrap the message with _().
4091
fd0ef3dd
GB
40922014-08-29 Gary Benson <gbenson@redhat.com>
4093
4094 * main.c (captured_main): Replace a fprintf/exit
4095 pair with a call to error. Wrap the message with _().
4096
e0e6bcab
GB
40972014-08-29 Gary Benson <gbenson@redhat.com>
4098
4099 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4100 pairs with calls to error. Wrap the message with _().
4101
0d2f5c07
GB
41022014-08-29 Gary Benson <gbenson@redhat.com>
4103
4104 * utils.c (vwarning): Protect calls to target_terminal_ours
4105 and wrap_here.
4106
5df43998
GB
41072014-08-29 Gary Benson <gbenson@redhat.com>
4108
4109 * exceptions.c (print_flush): Protect calls to
4110 target_terminal_ours and wrap_here.
4111
2437fd32
GB
41122014-08-29 Gary Benson <gbenson@redhat.com>
4113
4114 * utils.h (filtered_printing_initialized): New declaration.
4115 * utils.c (abort_with_message): New function.
4116 (internal_vproblem): Use abort_with_message for first level
4117 recursive internal problems, and if gdb_stderr is not set up.
4118 Protect calls to target_terminal_ours, begin_line and query.
4119
f1f58506
DE
41202014-08-28 Doug Evans <dje@google.com>
4121
4122 * symtab.c (in_prologue): Move definition to better spot.
4123 (skip_prologue_using_sal): Ditto.
4124
aab2f208
DE
41252014-08-28 Doug Evans <dje@google.com>
4126
4127 * symtab.c (find_function_start_sal): Move definition to better spot.
4128
6b65d1b6
YQ
41292014-08-28 Yao Qi <yao@codesourcery.com>
4130
4131 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4132 found_stack_adjust in forward scan. Remove condition check
4133 on found_stack_adjust which is always true. Indent the code.
4134
a1b34d15
YQ
41352014-08-28 Yao Qi <yao@codesourcery.com>
4136
4137 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4138 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4139 (dwarf_decode_lines): Remove argument
4140 want_line_info. Remove condition check on want_line_info.
4141 Callers update.
4142
d5962de5
DE
41432014-08-27 Doug Evans <dje@google.com>
4144
4145 * dwarf2read.c (dwarf_record_line): Fix typo.
4146
9b139002
SDJ
41472014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4148
4149 * target.h (struct target_ops::to_terminal_save_ours): Remove
4150 declaration.
4151 (target_terminal_save_ours): Remove macro.
4152 * target-delegates.c: Regenerate.
4153 * inf-child.c (inf_child_target): Don't set the nonexistent
4154 field to_terminal_save_ours.
4155 * inferior.h (child_terminal_save_ours): Remove declaration.
4156 * terminal.h (gdb_save_tty_state): New declaration.
4157 * inflow.c (child_terminal_save_ours): Rename to ...
4158 (gdb_save_tty_state): ... this.
4159 * tui/tui.c: Include terminal.h.
4160 (tui_enable): Use gdb_save_tty_state instead of
4161 target_terminal_save_ours.
4162 (tui_disable): Likewise.
4163
9debeba0
DE
41642014-08-25 Doug Evans <dje@google.com>
4165
4166 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4167 Pass NULL instead of 0 for context pointer.
4168
428fc5fc
YQ
41692014-08-25 Yao Qi <yao@codesourcery.com>
4170
4171 * dwarf2read.c: Fix grammatical error.
4172
cdc07690
YQ
41732014-08-24 Yao Qi <yao@codesourcery.com>
4174
4175 * dwarf2read.c (scan_partial_symbols): Update comments.
4176 Rename argument 'need_pc' with 'set_addrmap'.
4177 (add_partial_namespace): Rename argument 'need_pc' with
4178 'set_addrmap'.
4179 (add_partial_module): Likewise.
4180 (add_partial_subprogram): Likewise. Update comments.
4181 (dwarf2_name): Fix typo.
4182
a05a36a5
DE
41832014-08-22 Doug Evans <dje@google.com>
4184
4185 PR 17276
4186 * dwarf2read.c (dwarf_record_line_p): New function.
4187 (dwarf_decode_lines_1): Ignore subsequent line number entries
4188 for the same line if any entry had a non-zero discriminator.
4189
252a6764
DE
41902014-08-22 Doug Evans <dje@google.com>
4191
4192 * buildsym.h (record_line_ftype): New typedef.
4193 (record_line): Use it.
4194 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4195 (dwarf_decode_lines_1): Call them.
4196
510db052
YQ
41972014-08-22 Yao Qi <yao@codesourcery.com>
4198
4199 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4200 (ctf_end): Remove code.
4201
22fd09ae
JK
42022014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4205 (linux_make_corefile_notes): call update_thread_list, protected against
4206 exceptions.
4207
656e8868
PA
42082014-08-21 Pedro Alves <palves@redhat.com>
4209
4210 * infcmd.c (attach_command): Remove comment.
4211
de589d04
WN
42122014-08-21 Bin Cheng <bin.cheng@arm.com>
4213
4214 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4215 unsigned LONGEST to ULONGEST.
4216
2a31c623
PA
42172014-08-20 Pedro Alves <palves@redhat.com>
4218
4219 * Makefile.in (check-read1): New rule.
4220
d36430db
JB
42212014-08-20 Joel Brobecker <brobecker@adacore.com>
4222
4223 * value.c (value_from_contents_and_address): Strip resolved_type's
4224 typedef layers before checking its TYPE_DATA_LOCATION.
4225
000339af
PA
42262014-08-20 Pedro Alves <palves@redhat.com>
4227
4228 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4229
5f52445b
YQ
42302014-08-20 Yao Qi <yao@codesourcery.com>
4231
4232 * amd64-tdep.c (amd64_classify): Add a blank line after the
4233 example. Move "*/" to a new line.
4234 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4235 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4236 * dwarf2read.c (psymtab_include_file_name): Likewise.
4237
9a0dc9e3
PA
42382014-08-19 Andrew Burgess <aburgess@broadcom.com>
4239 Pedro Alves <palves@redhat.com>
4240
4241 PR symtab/14604
4242 PR symtab/14605
4243 * ada-lang.c (coerce_unspec_val_to_type): Use
4244 value_contents_copy_raw.
4245 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4246 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4247 * cp-valprint.c (cp_print_value_fields): Let the common printing
4248 code handle optimized out values.
4249 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4250 * d-valprint.c (dynamic_array_type): Use
4251 value_bits_any_optimized_out.
4252 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4253 check_any_valid fields.
4254 (check_pieced_value_bits): Delete and inline ...
4255 (check_pieced_synthetic_pointer): ... here.
4256 (check_pieced_value_validity): Delete.
4257 (check_pieced_value_invalid): Delete.
4258 (pieced_value_funcs): Remove check_validity and check_any_valid
4259 fields.
4260 (read_pieced_value): Use mark_value_bits_optimized_out.
4261 (write_pieced_value): Switch to use
4262 mark_value_bytes_optimized_out.
4263 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4264 of assuming the whole value is optimized out.
4265 * findvar.c (read_frame_register_value): Remove special handling
4266 of optimized out registers.
4267 (value_from_register): Use mark_value_bytes_optimized_out.
4268 * frame-unwind.c (frame_unwind_got_optimized): Use
4269 mark_value_bytes_optimized_out.
4270 * jv-valprint.c (java_value_print): Adjust.
4271 (java_print_value_fields): Let the common printing code handle
4272 optimized out values.
4273 * mips-tdep.c (mips_print_register): Remove special handling of
4274 optimized out registers.
4275 * opencl-lang.c (lval_func_check_validity): Delete.
4276 (lval_func_check_any_valid): Delete.
4277 (opencl_value_funcs): Remove check_validity and check_any_valid
4278 fields.
4279 * p-valprint.c (pascal_object_print_value_fields): Let the common
4280 printing code handle optimized out values.
4281 * stack.c (read_frame_arg): Remove special handling of optimized
4282 out values. Fetch both VAL and ENTRYVAL before comparing
4283 contents. Adjust to value_available_contents_eq rename.
4284 * valprint.c (valprint_check_validity)
4285 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4286 (val_print_array_elements): Adjust.
4287 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4288 (value_bits_any_optimized_out): New function.
4289 (value_entirely_covered_by_range_vector): New function, factored
4290 out from value_entirely_unavailable.
4291 (value_entirely_unavailable): Reimplement.
4292 (value_entirely_optimized_out): New function.
4293 (insert_into_bit_range_vector): New function, factored out from
4294 mark_value_bits_unavailable.
4295 (mark_value_bits_unavailable): Reimplement.
4296 (struct ranges_and_idx): New struct.
4297 (find_first_range_overlap_and_match): New function, factored out
4298 from value_available_contents_bits_eq.
4299 (value_available_contents_bits_eq): Rename to ...
4300 (value_contents_bits_eq): ... this. Check both unavailable
4301 contents and optimized out contents.
4302 (value_available_contents_eq): Rename to ...
4303 (value_contents_eq): ... this.
4304 (allocate_value_lazy): Remove reference to the old optimized_out
4305 boolean.
4306 (allocate_optimized_out_value): Use
4307 mark_value_bytes_optimized_out.
4308 (require_not_optimized_out): Adjust to check whether the
4309 optimized_out vec is empty.
4310 (ranges_copy_adjusted): New function, factored out from
4311 value_contents_copy_raw.
4312 (value_contents_copy_raw): Also copy the optimized out ranges.
4313 Assert the destination ranges aren't optimized out.
4314 (value_contents_copy): Update comment, remove call to
4315 require_not_optimized_out.
4316 (value_contents_equal): Adjust to check whether the optimized_out
4317 vec is empty.
4318 (set_value_optimized_out, value_optimized_out_const): Delete.
4319 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4320 New functions.
4321 (value_entirely_optimized_out, value_bits_valid): Delete.
4322 (value_copy): Take a VEC copy of the 'optimized_out' field.
4323 (value_primitive_field): Remove special handling of optimized out.
4324 (value_fetch_lazy): Assert that lazy values have no unavailable
4325 regions. Use value_bits_any_optimized_out. Remove some special
4326 handling for optimized out values.
4327 * value.h: Add intro comment about <optimized out> and
4328 <unavailable>.
4329 (struct lval_funcs): Remove check_validity and check_any_valid
4330 fields.
4331 (set_value_optimized_out, value_optimized_out_const): Remove.
4332 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4333 New declarations.
4334 (value_bits_any_optimized_out): New declaration.
4335 (value_bits_valid): Delete declaration.
4336 (value_available_contents_eq): Rename to ...
4337 (value_contents_eq): ... this, and extend comments.
4338
6694c411
JK
43392014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
4341 Fix -fsanitize=address on unreadable inferior strings.
4342 * valprint.c (val_print_string): Fix access before BUFFER.
4343
89a1c21a
SM
43442014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4345
4346 * target.c (target_struct_size): Remove.
4347 (target_struct_allocsize): Remove.
4348 (DEFAULT_ALLOCSIZE): Remove.
4349 (target_ops_p): New typedef.
4350 (DEF_VEC_P (target_ops_p)): New vector type.
4351 (target_structs): Change type to VEC (target_ops_p).
4352 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4353 (find_default_run_target): Rewrite for loop following changes to
4354 target_structs.
4355
cb417230
JB
43562014-08-19 Joel Brobecker <brobecker@adacore.com>
4357
4358 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4359 Adjust code accordingly. Adjust function description comment.
4360
817e0957
YQ
43612014-08-19 Yao Qi <yao@codesourcery.com>
4362
4363 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4364 types.
4365
2974be62
AM
43662014-08-19 Alan Modra <amodra@gmail.com>
4367
4368 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4369 * config.in: Regenerate.
4370 * configure: Regenerate.
4371
34abf635
GB
43722014-08-19 Tom Tromey <tromey@redhat.com>
4373 Gary Benson <gbenson@redhat.com>
4374
4375 * common/common-debug.h: New file.
4376 * common/common-debug.c: Likewise.
4377 * debug.c: Likewise.
4378 * Makefile.in (SFILES): Add common/common-debug.c.
4379 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4380 (COMMON_OBS): Add common-debug.o and debug.o.
4381 (common-debug.o): New rule.
4382 * common/common-defs.h: Include common-debug.h.
4383 * common/agent.c (debug_agent_printf): New function.
4384 (DEBUG_AGENT): Redefine.
4385 * nat/i386-dregs.c (debug_printf): Undefine.
4386
f6e94d78
GB
43872014-08-19 Gary Benson <gbenson@redhat.com>
4388
4389 * common/common-defs.h: Include print-utils.h.
4390 * utils.h: Do not include print-utils.h.
4391
9239eeab
GB
43922014-08-19 Tom Tromey <tromey@redhat.com>
4393 Gary Benson <gbenson@redhat.com>
4394
4395 * common/common-types.h: New file.
4396 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4397 * common/common-defs.h: Include common-types.h.
4398 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4399 (ULONGEST): Remove.
4400
ef87c8bb
GB
44012014-08-19 Tom Tromey <tromey@redhat.com>
4402 Gary Benson <gbenson@redhat.com>
4403
4404 * common/errors.h: New file.
4405 * common/errors.c: Likewise.
4406 * Makefile.in (SFILES): Add common/errors.c.
4407 (HFILES_NO_SRCDIR): Add common/errors.h.
4408 (COMMON_OBS): Add errors.o.
4409 (errors.o): New rule.
4410 * common/common-defs.h: Include errors.h.
4411 * utils.h (perror_with_name, error, verror, warning, vwarning):
4412 Don't declare.
4413 * common/common-utils.h: (malloc_failure, internal_error):
4414 Likewise.
4415
196a707b
GB
44162014-08-19 Gary Benson <gbenson@redhat.com>
4417
4418 * utils.c (internal_vproblem): Always print the message.
4419
ded4fc8f
DE
44202014-08-18 Doug Evans <dje@google.com>
4421
4422 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4423
950c97d8
JB
44242014-08-18 Joel Brobecker <brobecker@adacore.com>
4425
4426 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4427 Return 0 if TYPE is dynamic.
4428 (print_range): Add handling of dynamic ranges.
4429
3cdcd0ce
JB
44302014-08-18 Keven Boell <keven.boell@intel.com>
4431 Joel Brobecker <brobecker@adacore.com>
4432
4433 * gdbtypes.h (struct main_type): Add field "data_location".
4434 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4435 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4436 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4437 a dynamic data location.
4438 (resolve_dynamic_type): Add DW_AT_data_location handling.
4439 (copy_recursive, copy_type): Copy the data_location information
4440 when present.
4441 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4442 * value.c (value_from_contents_and_address): Add
4443 DW_AT_data_location handling.
4444
08412b07
JB
44452014-08-18 Keven Boell <keven.boell@intel.com>
4446 Joel Brobecker <brobecker@adacore.com>
4447
4448 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4449 field "get_object_address".
4450 * dwarf2expr.c (execute_stack_op): Add handling for
4451 DW_OP_push_object_address.
4452 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4453 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4454 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4455 (dwarf_expr_get_obj_addr): New function.
4456 (dwarf_expr_ctx_funcs): Add get_object_address field.
4457 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4458 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4459 (dwarf2_evaluate_property): Add parameter "address". Use it.
4460 (needs_get_obj_addr): New function.
4461 (needs_frame_ctx_funcs): Add get_object_address field.
4462 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4463 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4464 (resolve_dynamic_array): Likewise.
4465
84754697
JB
44662014-08-18 Joel Brobecker <brobecker@adacore.com>
4467
4468 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4469 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4470 fixed value for records and unions for which some GNAT encodings
4471 are present.
4472
da5c522f
JB
44732014-08-18 Joel Brobecker <brobecker@adacore.com>
4474
4475 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4476 rewrite to avoid "else if" and "else" constructs. Should be
4477 a no-op in practice.
4478
0d72a7c3
JB
44792014-08-18 Joel Brobecker <brobecker@adacore.com>
4480
4481 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4482 of lexical block.
4483
e66d4446
SC
44842014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4485
4486 PR c++/17132
4487 * eval.c: Update all calls to find_overload_match.
4488 * valarith.c: Likewise.
4489 (value_user_defined_cpp_op, value_user_defined_op): New
4490 argument NOSIDE. Update all callers.
4491 * valops.c (find_overload_match): New argument NOSIDE.
4492 * value.h (find_overload_match): Update signature.
4493
940df408
SC
44942014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4495
4496 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4497 'items' methods instead of 'iteritems' method on dictionaries.
4498
699ca60a
DE
44992014-08-15 Doug Evans <dje@google.com>
4500
4501 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4502 closer to use.
4503
37780ee5
DE
45042014-08-15 Doug Evans <dje@google.com>
4505
4506 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4507
0ad93d4f
DE
45082014-08-15 Doug Evans <dje@google.com>
4509
4510 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4511
20d8c372
DE
45122014-08-15 Doug Evans <dje@google.com>
4513
4514 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4515 unused.
4516
cb039ba4
EZ
45172014-08-15 Eli Zaretskii <eliz@gnu.org>
4518
4519 * dcache.h: Include target.h, to avoid compile time warnings.
4520
eb7a547a
JB
45212014-08-15 Joel Brobecker <brobecker@adacore.com>
4522
4523 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4524 frame_info" partial declaration.
4525 * gdbarch.h: Regenerate.
4526
783cecc8
YQ
45272014-08-15 Yao Qi <yao@codesourcery.com>
4528
4529 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4530 Add parameter 'decode_for_pst_p'. Callers update.
4531
65c749e7
YQ
45322014-08-13 Yao Qi <yao@codesourcery.com>
4533
4534 PR build/17104
4535 * configure.ac: Use local variable 'pos'.
4536 * configure: Regenerated.
4537
d769e349
DE
45382014-08-11 Doug Evans <dje@google.com>
4539
4540 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4541 message, it is redundant with "Reading symbols from ..." message.
4542
24f1235e
DE
45432014-08-10 Doug Evans <xdje42@gmail.com>
4544
4545 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4546
dcd2e6ef
YQ
45472014-08-09 Yao Qi <yao@codesourcery.com>
4548
4549 PR remote/9053
4550 * remote.c (remote_xfer_partial): Remove dead code.
4551
070bdf0b
AA
45522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4553
4554 * ia64-linux-tdep.c: Include "regset.h".
4555 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4556 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4557 (ia64_linux_supply_fpregset): New function.
4558 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4559 (ia64_linux_regset_from_core_section): New function.
4560 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4561 method.
4562
08f9f542
AA
45632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4564
4565 * m68klinux-tdep.c: Include "regset.h".
4566 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4567 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4568 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4569 (m68k_linux_regset_from_core_section): New function.
4570 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4571 method.
4572
8f1cee41
AA
45732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4574
4575 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4576 function. Move logic to...
4577 (tilegx_linux_regmap): ... this new register map.
4578 (tilegx_linux_regset): Refer to register map, replace supply
4579 method by regcache_supply_regset, and add collect method.
4580 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4581 TILEGX_FIRST_EASY_REGNUM.
4582
c5741217
AA
45832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4584
4585 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4586 that calls regcache_supply_regset and handles the EPC register
4587 separately. Move main logic to...
4588 (score7_linux_gregmap): ... this new register map.
4589 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4590 (score7_linux_gregset): Refer to register map. Add collect method.
4591 (score7_linux_regset_from_core_section): Replace
4592 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4593 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4594 (struct regset): Delete unused forward declaraction.
4595 (struct pt_regs): Delete structure definition.
4596 (elf_gregset_t): Delete typedef.
4597
81580573
AA
45982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4599
4600 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4601 (nios2_core_regset): Add collect method.
4602
ba199d7d
AA
46032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4604
4605 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4606 platform-independent and don't write to read-only input buffer.
4607 (m32r_linux_collect_gregset): New function.
4608 (m32r_linux_gregset): Add collect method.
4609
0006a9da
AA
46102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4611
4612 * hppa-linux-tdep.c (greg_map): Rename to...
4613 (hppa_linux_gregmap): ... this. Also convert to
4614 regcache_map_entry format.
4615 (hppa_linux_supply_regset): Delete function.
4616 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4617 (hppa_linux_fpregmap): ... this new register map.
4618 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4619 register map, replace supply method by regcache_supply_regset, and
4620 add collect method regcache_collect_regset.
4621
901e1b23
AA
46222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623
4624 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4625 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4626 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4627 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4628 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4629 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4630 (frv_linux_supply_gregset): Replace main logic by call to
4631 regcache_supply_regset, but keep clearing gr32-gr63.
4632 (frv_linux_supply_fpregset): Delete function.
4633 (frv_linux_gregset): Refer to appropriate register map and add
4634 regcache_collect_regset as the collect method.
4635 (frv_linux_fpregset): Likewise. Also exchange the supply method
4636 by regcache_supply_regset.
4637
1d6e7555
AA
46382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4639
4640 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4641 by call to alpha_supply_int_regs.
4642 (alpha_linux_collect_gregset): New function.
4643 (alpha_linux_supply_fpregset): Replace logic by call to
4644 alpha_supply_fp_regs.
4645 (alpha_linux_collect_fpregset): New function.
4646 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4647
d4d793bf
AA
46482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4649
4650 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4651 by call to regcache_collect_regset.
4652 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4653 instead of aarch64_linux_supply_gregset/_fpregset.
4654 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4655 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4656 header file instead.
4657 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4658 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4659 functions. Move logic to ...
4660 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4661 register maps.
4662 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4663 refer to new register maps, replace *_regset_from_core by
4664 regcache_supply_regset, and also use regcache_collect_regset.
4665 * aarch64-linux-tdep.h: Include "regset.h".
4666 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4667 Delete prototypes.
4668 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4669 macros, moved from C source file.
4670 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4671 variable declarations.
4672
99b7da5d
AA
46732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4674
4675 * s390-linux-nat.c: Include "regset.h".
4676 (regmap_gregset): Delete macro.
4677 (s390_64_regmap_gregset): New register map for
4678 regcache_supply/_collect_regset.
4679 (s390_64_gregset): New regset.
4680 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4681 (regmap_fpregset): Delete macro.
4682 (s390_native_supply, s390_native_collect): Delete functions.
4683 (supply_gregset, fill_gregset): Replace s390-specific regmap
4684 handling by a call to regcache_supply/_collect_regset.
4685 (supply_fpregset, fill_fpregset): Call regcache_supply/
4686 _collect_regset instead of s390_native_supply/_collect.
4687 (fetch_regset, store_regset): Likewise. Also change the last
4688 parameter to a regset instead of a regmap.
4689 (s390_linux_fetch_inferior_registers)
4690 (390_linux_store_inferior_registers): Adjust last parameter in
4691 calls to fetch_regset and store_regset.
4692 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4693 (s390_gregmap): ... this. Also make static const and convert to
4694 regcache_map_entry format.
4695 (s390x_regmap_gregset): Delete.
4696 (s390_regmap_fpregset): Rename to...
4697 (s390_fpregmap): ... this. Make static const and convert to
4698 regcache_map_entry format.
4699 (s390_regmap_upper, s390_regmap_last_break)
4700 (s390x_regmap_last_break, s390_regmap_system_call)
4701 (s390_regmap_tdb): Likewise.
4702 (s390_supply_regset, s390_collect_regset): Remove functions.
4703 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4704 s390_supply_regset.
4705 (s390_gregset, s390_fpregset, s390_upper_regset)
4706 (s390_last_break_regset, s390x_last_break_regset)
4707 (s390_system_call_regset, s390_tdb_regset): Make global and
4708 replace s390_supply/_collect_regset by regcache_supply/
4709 _collect_regset.
4710 (s390x_gregset): Delete.
4711 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4712 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4713 (s390_regmap_fpregset, s390_regmap_last_break)
4714 (s390x_regmap_last_break, s390_regmap_system_call)
4715 (s390_regmap_tdb): Delete global variable declarations.
4716 (s390_gregset, s390_fpregset, s390_last_break_regset)
4717 (s390x_last_break_regset, s390_system_call_regset)
4718 (s390_tdb_regset): New global variable declarations.
4719
0b309272
AA
47202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4721
4722 * regcache.c: Include "regset.h".
4723 (regcache_transfer_regset): New local function.
4724 (regcache_supply_regset, regcache_collect_regset): New functions.
4725 * regcache.h (struct regcache_map_entry): New structure.
4726 (REGCACHE_MAP_SKIP): New enum value.
4727 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4728
7fefa8d7
AA
47292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4730
4731 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4732 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4733 (ppc_linux_collect_gregset ): Likewise.
4734 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4735 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4736 (ppc_collect_vrregset): Likewise.
4737 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4738 Likewise.
4739
96c4f946
YQ
47402014-08-07 Yao Qi <yao@codesourcery.com>
4741
4742 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4743 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4744 * remote.c (remote_read_bytes): Likewise.
4745
fffbe6a8
YQ
47462014-08-07 Yao Qi <yao@codesourcery.com>
4747
4748 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4749
5ee8a82c
YQ
47502014-08-07 Yao Qi <yao@codesourcery.com>
4751
4752 PR remote/17230
4753 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4754 TARGET_XFER_OK instead of 0.
4755
bb974a24
GB
47562014-08-07 Gary Benson <gbenson@redhat.com>
4757
4758 * common/common-defs.h: Include errno.h.
4759 * defs.h: Do not include errno.h.
4760 * ada-typeprint.c: Likewise.
4761 * c-typeprint.c: Likewise.
4762 * core-regset.c: Likewise.
4763 * corefile.c: Likewise.
4764 * corelow.c: Likewise.
4765 * event-loop.c: Likewise.
4766 * f-typeprint.c: Likewise.
4767 * gnu-nat.c: Likewise.
4768 * go32-nat.c: Likewise.
4769 * i386gnu-nat.c: Likewise.
4770 * m2-typeprint.c: Likewise.
4771 * nat/linux-btrace.c: Likewise.
4772 * p-typeprint.c: Likewise.
4773 * procfs.c: Likewise.
4774 * remote-sim.c: Likewise.
4775 * rs6000-nat.c: Likewise.
4776 * target.c: Likewise.
4777 * typeprint.c: Likewise.
4778 * ui-file.c: Likewise.
4779 * valops.c: Likewise.
4780 * valprint.c: Likewise.
4781
6d3d12eb
GB
47822014-08-07 Gary Benson <gbenson@redhat.com>
4783
4784 * common/common-defs.h: Include string.h.
4785 * aarch64-tdep.c: Do not include string.h.
4786 * ada-exp.y: Likewise.
4787 * ada-lang.c: Likewise.
4788 * ada-lex.l: Likewise.
4789 * ada-typeprint.c: Likewise.
4790 * ada-valprint.c: Likewise.
4791 * aix-thread.c: Likewise.
4792 * alpha-linux-tdep.c: Likewise.
4793 * alpha-mdebug-tdep.c: Likewise.
4794 * alpha-nat.c: Likewise.
4795 * alpha-osf1-tdep.c: Likewise.
4796 * alpha-tdep.c: Likewise.
4797 * alphanbsd-tdep.c: Likewise.
4798 * amd64-dicos-tdep.c: Likewise.
4799 * amd64-linux-tdep.c: Likewise.
4800 * amd64-nat.c: Likewise.
4801 * amd64-sol2-tdep.c: Likewise.
4802 * amd64fbsd-tdep.c: Likewise.
4803 * amd64obsd-tdep.c: Likewise.
4804 * arch-utils.c: Likewise.
4805 * arm-linux-nat.c: Likewise.
4806 * arm-linux-tdep.c: Likewise.
4807 * arm-tdep.c: Likewise.
4808 * arm-wince-tdep.c: Likewise.
4809 * armbsd-tdep.c: Likewise.
4810 * armnbsd-nat.c: Likewise.
4811 * armnbsd-tdep.c: Likewise.
4812 * armobsd-tdep.c: Likewise.
4813 * avr-tdep.c: Likewise.
4814 * ax-gdb.c: Likewise.
4815 * ax-general.c: Likewise.
4816 * bcache.c: Likewise.
4817 * bfin-tdep.c: Likewise.
4818 * breakpoint.c: Likewise.
4819 * build-id.c: Likewise.
4820 * buildsym.c: Likewise.
4821 * c-exp.y: Likewise.
4822 * c-lang.c: Likewise.
4823 * c-typeprint.c: Likewise.
4824 * c-valprint.c: Likewise.
4825 * charset.c: Likewise.
4826 * cli-out.c: Likewise.
4827 * cli/cli-cmds.c: Likewise.
4828 * cli/cli-decode.c: Likewise.
4829 * cli/cli-dump.c: Likewise.
4830 * cli/cli-interp.c: Likewise.
4831 * cli/cli-logging.c: Likewise.
4832 * cli/cli-script.c: Likewise.
4833 * cli/cli-setshow.c: Likewise.
4834 * cli/cli-utils.c: Likewise.
4835 * coffread.c: Likewise.
4836 * common/agent.c: Likewise.
4837 * common/buffer.c: Likewise.
4838 * common/buffer.h: Likewise.
4839 * common/common-utils.c: Likewise.
4840 * common/filestuff.c: Likewise.
4841 * common/filestuff.c: Likewise.
4842 * common/format.c: Likewise.
4843 * common/print-utils.c: Likewise.
4844 * common/rsp-low.c: Likewise.
4845 * common/signals.c: Likewise.
4846 * common/vec.h: Likewise.
4847 * common/xml-utils.c: Likewise.
4848 * core-regset.c: Likewise.
4849 * corefile.c: Likewise.
4850 * corelow.c: Likewise.
4851 * cp-abi.c: Likewise.
4852 * cp-name-parser.y: Likewise.
4853 * cp-support.c: Likewise.
4854 * cp-valprint.c: Likewise.
4855 * cris-tdep.c: Likewise.
4856 * d-exp.y: Likewise.
4857 * darwin-nat.c: Likewise.
4858 * dbxread.c: Likewise.
4859 * dcache.c: Likewise.
4860 * demangle.c: Likewise.
4861 * dicos-tdep.c: Likewise.
4862 * disasm.c: Likewise.
4863 * doublest.c: Likewise.
4864 * dsrec.c: Likewise.
4865 * dummy-frame.c: Likewise.
4866 * dwarf2-frame.c: Likewise.
4867 * dwarf2loc.c: Likewise.
4868 * dwarf2read.c: Likewise.
4869 * elfread.c: Likewise.
4870 * environ.c: Likewise.
4871 * eval.c: Likewise.
4872 * event-loop.c: Likewise.
4873 * exceptions.c: Likewise.
4874 * exec.c: Likewise.
4875 * expprint.c: Likewise.
4876 * f-exp.y: Likewise.
4877 * f-lang.c: Likewise.
4878 * f-typeprint.c: Likewise.
4879 * f-valprint.c: Likewise.
4880 * fbsd-nat.c: Likewise.
4881 * findcmd.c: Likewise.
4882 * findvar.c: Likewise.
4883 * fork-child.c: Likewise.
4884 * frame.c: Likewise.
4885 * frv-linux-tdep.c: Likewise.
4886 * frv-tdep.c: Likewise.
4887 * gdb.c: Likewise.
4888 * gdb_bfd.c: Likewise.
4889 * gdbarch.c: Likewise.
4890 * gdbarch.sh: Likewise.
4891 * gdbtypes.c: Likewise.
4892 * gnu-nat.c: Likewise.
4893 * gnu-v2-abi.c: Likewise.
4894 * gnu-v3-abi.c: Likewise.
4895 * go-exp.y: Likewise.
4896 * go-lang.c: Likewise.
4897 * go32-nat.c: Likewise.
4898 * guile/guile.c: Likewise.
4899 * guile/scm-auto-load.c: Likewise.
4900 * hppa-hpux-tdep.c: Likewise.
4901 * hppa-linux-nat.c: Likewise.
4902 * hppanbsd-tdep.c: Likewise.
4903 * hppaobsd-tdep.c: Likewise.
4904 * i386-cygwin-tdep.c: Likewise.
4905 * i386-dicos-tdep.c: Likewise.
4906 * i386-linux-tdep.c: Likewise.
4907 * i386-nto-tdep.c: Likewise.
4908 * i386-sol2-tdep.c: Likewise.
4909 * i386-tdep.c: Likewise.
4910 * i386bsd-tdep.c: Likewise.
4911 * i386gnu-nat.c: Likewise.
4912 * i386nbsd-tdep.c: Likewise.
4913 * i386obsd-tdep.c: Likewise.
4914 * i387-tdep.c: Likewise.
4915 * ia64-libunwind-tdep.c: Likewise.
4916 * ia64-linux-nat.c: Likewise.
4917 * inf-child.c: Likewise.
4918 * inf-ptrace.c: Likewise.
4919 * inf-ttrace.c: Likewise.
4920 * infcall.c: Likewise.
4921 * infcmd.c: Likewise.
4922 * inflow.c: Likewise.
4923 * infrun.c: Likewise.
4924 * interps.c: Likewise.
4925 * iq2000-tdep.c: Likewise.
4926 * irix5-nat.c: Likewise.
4927 * jv-exp.y: Likewise.
4928 * jv-lang.c: Likewise.
4929 * jv-typeprint.c: Likewise.
4930 * jv-valprint.c: Likewise.
4931 * language.c: Likewise.
4932 * linux-fork.c: Likewise.
4933 * linux-nat.c: Likewise.
4934 * lm32-tdep.c: Likewise.
4935 * m2-exp.y: Likewise.
4936 * m2-typeprint.c: Likewise.
4937 * m32c-tdep.c: Likewise.
4938 * m32r-linux-nat.c: Likewise.
4939 * m32r-linux-tdep.c: Likewise.
4940 * m32r-rom.c: Likewise.
4941 * m32r-tdep.c: Likewise.
4942 * m68hc11-tdep.c: Likewise.
4943 * m68k-tdep.c: Likewise.
4944 * m68kbsd-tdep.c: Likewise.
4945 * m68klinux-nat.c: Likewise.
4946 * m68klinux-tdep.c: Likewise.
4947 * m88k-tdep.c: Likewise.
4948 * machoread.c: Likewise.
4949 * macrocmd.c: Likewise.
4950 * main.c: Likewise.
4951 * mdebugread.c: Likewise.
4952 * mem-break.c: Likewise.
4953 * memattr.c: Likewise.
4954 * memory-map.c: Likewise.
4955 * mep-tdep.c: Likewise.
4956 * mi/mi-cmd-break.c: Likewise.
4957 * mi/mi-cmd-disas.c: Likewise.
4958 * mi/mi-cmd-env.c: Likewise.
4959 * mi/mi-cmd-stack.c: Likewise.
4960 * mi/mi-cmd-var.c: Likewise.
4961 * mi/mi-cmds.c: Likewise.
4962 * mi/mi-console.c: Likewise.
4963 * mi/mi-getopt.c: Likewise.
4964 * mi/mi-interp.c: Likewise.
4965 * mi/mi-main.c: Likewise.
4966 * mi/mi-parse.c: Likewise.
4967 * microblaze-rom.c: Likewise.
4968 * microblaze-tdep.c: Likewise.
4969 * mingw-hdep.c: Likewise.
4970 * minidebug.c: Likewise.
4971 * minsyms.c: Likewise.
4972 * mips-irix-tdep.c: Likewise.
4973 * mips-linux-tdep.c: Likewise.
4974 * mips-tdep.c: Likewise.
4975 * mips64obsd-tdep.c: Likewise.
4976 * mipsnbsd-tdep.c: Likewise.
4977 * mipsread.c: Likewise.
4978 * mn10300-linux-tdep.c: Likewise.
4979 * mn10300-tdep.c: Likewise.
4980 * monitor.c: Likewise.
4981 * moxie-tdep.c: Likewise.
4982 * mt-tdep.c: Likewise.
4983 * nat/linux-btrace.c: Likewise.
4984 * nat/linux-osdata.c: Likewise.
4985 * nat/linux-procfs.c: Likewise.
4986 * nat/linux-ptrace.c: Likewise.
4987 * nat/linux-waitpid.c: Likewise.
4988 * nbsd-tdep.c: Likewise.
4989 * nios2-linux-tdep.c: Likewise.
4990 * nto-procfs.c: Likewise.
4991 * nto-tdep.c: Likewise.
4992 * objc-lang.c: Likewise.
4993 * objfiles.c: Likewise.
4994 * opencl-lang.c: Likewise.
4995 * osabi.c: Likewise.
4996 * osdata.c: Likewise.
4997 * p-exp.y: Likewise.
4998 * p-lang.c: Likewise.
4999 * p-typeprint.c: Likewise.
5000 * parse.c: Likewise.
5001 * posix-hdep.c: Likewise.
5002 * ppc-linux-nat.c: Likewise.
5003 * ppc-sysv-tdep.c: Likewise.
5004 * ppcfbsd-tdep.c: Likewise.
5005 * ppcnbsd-tdep.c: Likewise.
5006 * ppcobsd-tdep.c: Likewise.
5007 * printcmd.c: Likewise.
5008 * procfs.c: Likewise.
5009 * prologue-value.c: Likewise.
5010 * python/py-auto-load.c: Likewise.
5011 * python/py-gdb-readline.c: Likewise.
5012 * ravenscar-thread.c: Likewise.
5013 * regcache.c: Likewise.
5014 * registry.c: Likewise.
5015 * remote-fileio.c: Likewise.
5016 * remote-m32r-sdi.c: Likewise.
5017 * remote-mips.c: Likewise.
5018 * remote-notif.c: Likewise.
5019 * remote-sim.c: Likewise.
5020 * remote.c: Likewise.
5021 * reverse.c: Likewise.
5022 * rs6000-aix-tdep.c: Likewise.
5023 * ser-base.c: Likewise.
5024 * ser-go32.c: Likewise.
5025 * ser-mingw.c: Likewise.
5026 * ser-pipe.c: Likewise.
5027 * ser-tcp.c: Likewise.
5028 * ser-unix.c: Likewise.
5029 * serial.c: Likewise.
5030 * sh-tdep.c: Likewise.
5031 * sh64-tdep.c: Likewise.
5032 * shnbsd-tdep.c: Likewise.
5033 * skip.c: Likewise.
5034 * sol-thread.c: Likewise.
5035 * solib-dsbt.c: Likewise.
5036 * solib-frv.c: Likewise.
5037 * solib-osf.c: Likewise.
5038 * solib-som.c: Likewise.
5039 * solib-spu.c: Likewise.
5040 * solib-target.c: Likewise.
5041 * solib.c: Likewise.
5042 * somread.c: Likewise.
5043 * source.c: Likewise.
5044 * sparc-nat.c: Likewise.
5045 * sparc-sol2-tdep.c: Likewise.
5046 * sparc-tdep.c: Likewise.
5047 * sparc64-tdep.c: Likewise.
5048 * sparc64fbsd-tdep.c: Likewise.
5049 * sparc64nbsd-tdep.c: Likewise.
5050 * sparcnbsd-tdep.c: Likewise.
5051 * spu-linux-nat.c: Likewise.
5052 * spu-multiarch.c: Likewise.
5053 * spu-tdep.c: Likewise.
5054 * stabsread.c: Likewise.
5055 * stack.c: Likewise.
5056 * std-regs.c: Likewise.
5057 * symfile.c: Likewise.
5058 * symmisc.c: Likewise.
5059 * symtab.c: Likewise.
5060 * target.c: Likewise.
5061 * thread.c: Likewise.
5062 * tilegx-linux-nat.c: Likewise.
5063 * tilegx-tdep.c: Likewise.
5064 * top.c: Likewise.
5065 * tracepoint.c: Likewise.
5066 * tui/tui-command.c: Likewise.
5067 * tui/tui-data.c: Likewise.
5068 * tui/tui-disasm.c: Likewise.
5069 * tui/tui-file.c: Likewise.
5070 * tui/tui-layout.c: Likewise.
5071 * tui/tui-out.c: Likewise.
5072 * tui/tui-regs.c: Likewise.
5073 * tui/tui-source.c: Likewise.
5074 * tui/tui-stack.c: Likewise.
5075 * tui/tui-win.c: Likewise.
5076 * tui/tui-windata.c: Likewise.
5077 * tui/tui-winsource.c: Likewise.
5078 * typeprint.c: Likewise.
5079 * ui-file.c: Likewise.
5080 * ui-out.c: Likewise.
5081 * user-regs.c: Likewise.
5082 * utils.c: Likewise.
5083 * v850-tdep.c: Likewise.
5084 * valarith.c: Likewise.
5085 * valops.c: Likewise.
5086 * valprint.c: Likewise.
5087 * value.c: Likewise.
5088 * varobj.c: Likewise.
5089 * vax-tdep.c: Likewise.
5090 * vaxnbsd-tdep.c: Likewise.
5091 * vaxobsd-tdep.c: Likewise.
5092 * windows-nat.c: Likewise.
5093 * xcoffread.c: Likewise.
5094 * xml-support.c: Likewise.
5095 * xstormy16-tdep.c: Likewise.
5096 * xtensa-linux-nat.c: Likewise.
5097
dccbb609
GB
50982014-08-07 Gary Benson <gbenson@redhat.com>
5099
5100 * common/common-defs.h: Include gdb_assert.h.
5101 * aarch64-tdep.c: Do not include gdb_assert.h.
5102 * addrmap.c: Likewise.
5103 * aix-thread.c: Likewise.
5104 * alpha-linux-tdep.c: Likewise.
5105 * alpha-mdebug-tdep.c: Likewise.
5106 * alphanbsd-tdep.c: Likewise.
5107 * amd64-nat.c: Likewise.
5108 * amd64-tdep.c: Likewise.
5109 * amd64bsd-nat.c: Likewise.
5110 * amd64fbsd-nat.c: Likewise.
5111 * amd64fbsd-tdep.c: Likewise.
5112 * amd64nbsd-nat.c: Likewise.
5113 * amd64nbsd-tdep.c: Likewise.
5114 * amd64obsd-nat.c: Likewise.
5115 * amd64obsd-tdep.c: Likewise.
5116 * arch-utils.c: Likewise.
5117 * arm-tdep.c: Likewise.
5118 * armbsd-tdep.c: Likewise.
5119 * auxv.c: Likewise.
5120 * bcache.c: Likewise.
5121 * bfin-tdep.c: Likewise.
5122 * blockframe.c: Likewise.
5123 * breakpoint.c: Likewise.
5124 * bsd-kvm.c: Likewise.
5125 * bsd-uthread.c: Likewise.
5126 * buildsym.c: Likewise.
5127 * c-exp.y: Likewise.
5128 * c-lang.c: Likewise.
5129 * charset.c: Likewise.
5130 * cleanups.c: Likewise.
5131 * cli-out.c: Likewise.
5132 * cli/cli-decode.c: Likewise.
5133 * cli/cli-dump.c: Likewise.
5134 * cli/cli-logging.c: Likewise.
5135 * cli/cli-script.c: Likewise.
5136 * cli/cli-utils.c: Likewise.
5137 * coffread.c: Likewise.
5138 * common/common-utils.c: Likewise.
5139 * common/queue.h: Likewise.
5140 * common/signals.c: Likewise.
5141 * common/vec.h: Likewise.
5142 * complaints.c: Likewise.
5143 * completer.c: Likewise.
5144 * corelow.c: Likewise.
5145 * cp-abi.c: Likewise.
5146 * cp-name-parser.y: Likewise.
5147 * cp-namespace.c: Likewise.
5148 * cp-support.c: Likewise.
5149 * cris-tdep.c: Likewise.
5150 * dbxread.c: Likewise.
5151 * dictionary.c: Likewise.
5152 * doublest.c: Likewise.
5153 * dsrec.c: Likewise.
5154 * dummy-frame.c: Likewise.
5155 * dwarf2-frame-tailcall.c: Likewise.
5156 * dwarf2-frame.c: Likewise.
5157 * dwarf2expr.c: Likewise.
5158 * dwarf2loc.c: Likewise.
5159 * dwarf2read.c: Likewise.
5160 * eval.c: Likewise.
5161 * event-loop.c: Likewise.
5162 * exceptions.c: Likewise.
5163 * expprint.c: Likewise.
5164 * f-valprint.c: Likewise.
5165 * fbsd-nat.c: Likewise.
5166 * findvar.c: Likewise.
5167 * frame-unwind.c: Likewise.
5168 * frame.c: Likewise.
5169 * frv-tdep.c: Likewise.
5170 * gcore.c: Likewise.
5171 * gdb-dlfcn.c: Likewise.
5172 * gdb_bfd.c: Likewise.
5173 * gdbarch.c: Likewise.
5174 * gdbarch.sh: Likewise.
5175 * gdbtypes.c: Likewise.
5176 * gnu-nat.c: Likewise.
5177 * gnu-v3-abi.c: Likewise.
5178 * go-lang.c: Likewise.
5179 * guile/scm-exception.c: Likewise.
5180 * guile/scm-gsmob.c: Likewise.
5181 * guile/scm-lazy-string.c: Likewise.
5182 * guile/scm-math.c: Likewise.
5183 * guile/scm-pretty-print.c: Likewise.
5184 * guile/scm-safe-call.c: Likewise.
5185 * guile/scm-utils.c: Likewise.
5186 * guile/scm-value.c: Likewise.
5187 * h8300-tdep.c: Likewise.
5188 * hppa-hpux-nat.c: Likewise.
5189 * hppa-tdep.c: Likewise.
5190 * hppanbsd-tdep.c: Likewise.
5191 * hppaobsd-tdep.c: Likewise.
5192 * i386-darwin-nat.c: Likewise.
5193 * i386-darwin-tdep.c: Likewise.
5194 * i386-nto-tdep.c: Likewise.
5195 * i386-tdep.c: Likewise.
5196 * i386bsd-nat.c: Likewise.
5197 * i386fbsd-tdep.c: Likewise.
5198 * i386gnu-nat.c: Likewise.
5199 * i386nbsd-tdep.c: Likewise.
5200 * i386obsd-tdep.c: Likewise.
5201 * i387-tdep.c: Likewise.
5202 * ia64-libunwind-tdep.c: Likewise.
5203 * ia64-tdep.c: Likewise.
5204 * inf-ptrace.c: Likewise.
5205 * inf-ttrace.c: Likewise.
5206 * infcall.c: Likewise.
5207 * infcmd.c: Likewise.
5208 * infrun.c: Likewise.
5209 * inline-frame.c: Likewise.
5210 * interps.c: Likewise.
5211 * jv-lang.c: Likewise.
5212 * jv-typeprint.c: Likewise.
5213 * linux-fork.c: Likewise.
5214 * linux-nat.c: Likewise.
5215 * linux-thread-db.c: Likewise.
5216 * m32c-tdep.c: Likewise.
5217 * m32r-linux-nat.c: Likewise.
5218 * m32r-tdep.c: Likewise.
5219 * m68k-tdep.c: Likewise.
5220 * m68kbsd-nat.c: Likewise.
5221 * m68kbsd-tdep.c: Likewise.
5222 * m88k-tdep.c: Likewise.
5223 * machoread.c: Likewise.
5224 * macroexp.c: Likewise.
5225 * macrotab.c: Likewise.
5226 * maint.c: Likewise.
5227 * mdebugread.c: Likewise.
5228 * memory-map.c: Likewise.
5229 * mep-tdep.c: Likewise.
5230 * mi/mi-common.c: Likewise.
5231 * microblaze-tdep.c: Likewise.
5232 * mingw-hdep.c: Likewise.
5233 * mips-linux-nat.c: Likewise.
5234 * mips-linux-tdep.c: Likewise.
5235 * mips-tdep.c: Likewise.
5236 * mips64obsd-tdep.c: Likewise.
5237 * mipsnbsd-tdep.c: Likewise.
5238 * mn10300-linux-tdep.c: Likewise.
5239 * mn10300-tdep.c: Likewise.
5240 * moxie-tdep.c: Likewise.
5241 * mt-tdep.c: Likewise.
5242 * nat/linux-btrace.c: Likewise.
5243 * nat/linux-osdata.c: Likewise.
5244 * nat/linux-ptrace.c: Likewise.
5245 * nat/mips-linux-watch.c: Likewise.
5246 * nios2-linux-tdep.c: Likewise.
5247 * nios2-tdep.c: Likewise.
5248 * objc-lang.c: Likewise.
5249 * objfiles.c: Likewise.
5250 * obsd-nat.c: Likewise.
5251 * opencl-lang.c: Likewise.
5252 * osabi.c: Likewise.
5253 * parse.c: Likewise.
5254 * ppc-linux-nat.c: Likewise.
5255 * ppc-sysv-tdep.c: Likewise.
5256 * ppcfbsd-nat.c: Likewise.
5257 * ppcfbsd-tdep.c: Likewise.
5258 * ppcnbsd-nat.c: Likewise.
5259 * ppcnbsd-tdep.c: Likewise.
5260 * ppcobsd-nat.c: Likewise.
5261 * ppcobsd-tdep.c: Likewise.
5262 * printcmd.c: Likewise.
5263 * procfs.c: Likewise.
5264 * prologue-value.c: Likewise.
5265 * psymtab.c: Likewise.
5266 * python/py-lazy-string.c: Likewise.
5267 * python/py-value.c: Likewise.
5268 * regcache.c: Likewise.
5269 * reggroups.c: Likewise.
5270 * registry.c: Likewise.
5271 * remote-sim.c: Likewise.
5272 * remote.c: Likewise.
5273 * rs6000-aix-tdep.c: Likewise.
5274 * rs6000-tdep.c: Likewise.
5275 * s390-linux-tdep.c: Likewise.
5276 * score-tdep.c: Likewise.
5277 * ser-base.c: Likewise.
5278 * ser-mingw.c: Likewise.
5279 * sh-tdep.c: Likewise.
5280 * sh64-tdep.c: Likewise.
5281 * solib-darwin.c: Likewise.
5282 * solib-spu.c: Likewise.
5283 * solib-svr4.c: Likewise.
5284 * source.c: Likewise.
5285 * sparc-nat.c: Likewise.
5286 * sparc-sol2-tdep.c: Likewise.
5287 * sparc-tdep.c: Likewise.
5288 * sparc64-sol2-tdep.c: Likewise.
5289 * sparc64-tdep.c: Likewise.
5290 * sparc64fbsd-tdep.c: Likewise.
5291 * sparc64nbsd-tdep.c: Likewise.
5292 * sparc64obsd-tdep.c: Likewise.
5293 * sparcnbsd-tdep.c: Likewise.
5294 * sparcobsd-tdep.c: Likewise.
5295 * spu-multiarch.c: Likewise.
5296 * spu-tdep.c: Likewise.
5297 * stabsread.c: Likewise.
5298 * stack.c: Likewise.
5299 * symfile.c: Likewise.
5300 * symtab.c: Likewise.
5301 * target-descriptions.c: Likewise.
5302 * target-memory.c: Likewise.
5303 * target.c: Likewise.
5304 * tic6x-linux-tdep.c: Likewise.
5305 * tic6x-tdep.c: Likewise.
5306 * tilegx-linux-nat.c: Likewise.
5307 * tilegx-tdep.c: Likewise.
5308 * top.c: Likewise.
5309 * tramp-frame.c: Likewise.
5310 * tui/tui-out.c: Likewise.
5311 * tui/tui-winsource.c: Likewise.
5312 * ui-out.c: Likewise.
5313 * user-regs.c: Likewise.
5314 * utils.c: Likewise.
5315 * v850-tdep.c: Likewise.
5316 * valops.c: Likewise.
5317 * value.c: Likewise.
5318 * varobj.c: Likewise.
5319 * vax-nat.c: Likewise.
5320 * xml-syscall.c: Likewise.
5321 * xml-tdesc.c: Likewise.
5322 * xstormy16-tdep.c: Likewise.
5323 * xtensa-linux-nat.c: Likewise.
5324 * xtensa-tdep.c: Likewise.
5325
e76df0d0
GB
53262014-08-07 Gary Benson <gbenson@redhat.com>
5327
5328 * common/common-defs.h: Include common-utils.h.
5329 * defs.h: Do not include common-utils.h.
5330 * common/gdb_assert.h: Likewise.
5331 * darwin-nat.h: Likewise.
5332 * nat/linux-btrace.c: Likewise.
5333 * target/waitstatus.h: Likewise.
5334
4cb9c816
GB
53352014-08-07 Gary Benson <gbenson@redhat.com>
5336
5337 * common/common-defs.h: Include ptid.h.
5338 * defs.h: Do not include ptid.h.
5339 * inferior.h: Likewise.
5340 * infrun.h: Likewise.
5341 * nat/linux-btrace.h: Likewise.
5342 * nat/linux-osdata.h: Likewise.
5343 * target/waitstatus.h: Likewise.
5344
3995eeee
GB
53452014-08-07 Gary Benson <gbenson@redhat.com>
5346
5347 * common/common-defs.h: Include gdb_locale.h.
5348 * defs.h: Do not include gdb_locale.h.
5349
cb9f1a9b
GB
53502014-08-07 Gary Benson <gbenson@redhat.com>
5351
5352 * common/common-defs.h: Include gdb/signals.h.
5353 * defs.h: Do not include gdb/signals.h.
5354
a5fceff8
GB
53552014-08-07 Gary Benson <gbenson@redhat.com>
5356
5357 * common/common-defs.h: Include pathmax.h.
5358 * defs.h: Do not include pathmax.h.
5359
b9391142
GB
53602014-08-07 Gary Benson <gbenson@redhat.com>
5361
5362 * common/common-defs.h: Include libiberty.h.
5363 * defs.h: Do not include libiberty.h.
5364 * common/queue.h: Likewise.
5365 * cp-name-parser.y: Likewise.
5366 * mi/mi-cmd-catch.c: Likewise.
5367 * python/python.c: Likewise.
5368
0e443c87
GB
53692014-08-07 Gary Benson <gbenson@redhat.com>
5370
5371 * common/common-defs.h: Include ansidecl.h.
5372 * defs.h: Do not include ansidecl.h.
5373 * common/buffer.h: Likewise.
5374 * common/common-utils.h: Likewise.
5375
8ebb3f56
GB
53762014-08-07 Gary Benson <gbenson@redhat.com>
5377
5378 * common/common-defs.h: Include stddef.h.
5379 * defs.h: Do not include stddef.h.
5380 * common/common-utils.h: Likewise.
5381 * amd64fbsd-nat.c: Likewise.
5382 * bcache.c: Likewise.
5383 * charset.c: Likewise.
5384 * common/buffer.h: Likewise.
5385 * common/vec.h: Likewise.
5386 * i386bsd-nat.c: Likewise.
5387 * nat/linux-btrace.h: Likewise.
5388 * ppcfbsd-nat.c: Likewise.
5389 * ppcnbsd-tdep.h: Likewise.
5390 * ppcobsd-nat.c: Likewise.
5391 * ppcobsd-tdep.h: Likewise.
5392 * python/py-gdb-readline.c: Likewise.
5393
8980bdf6
GB
53942014-08-07 Gary Benson <gbenson@redhat.com>
5395
5396 * common/common-defs.h: Include stdarg.h.
5397 * defs.h: Do not include stdarg.h.
5398 * ada-lang.c: Likewise.
5399 * common/common-utils.h: Likewise.
5400 * guile/scm-string.c: Likewise.
5401 * guile/scm-utils.c: Likewise.
5402 * m32c-tdep.c: Likewise.
5403
d7096f71
GB
54042014-08-07 Gary Benson <gbenson@redhat.com>
5405
5406 * common/common-defs.h: Include stdlib.h.
5407 * defs.h: Do not include stdlib.h.
5408 * addrmap.c: Likewise.
5409 * bcache.c: Likewise.
5410 * common/buffer.c: Likewise.
5411 * common/common-utils.c: Likewise.
5412 * cp-name-parser.y: Likewise.
5413 * go32-nat.c: Likewise.
5414 * mn10300-linux-tdep.c: Likewise.
5415 * nat/linux-osdata.c: Likewise.
5416 * tui/tui.c: Likewise.
5417 * windows-nat.c: Likewise.
5418
d02f550d
GB
54192014-08-07 Gary Benson <gbenson@redhat.com>
5420
5421 * common/common-defs.h: Include stdio.h.
5422 * defs.h: Do not include stdio.h.
5423 * ada-lang.c: Likewise.
5424 * common/buffer.c: Likewise.
5425 * common/common-utils.c: Likewise.
5426 * cp-name-parser.y: Likewise.
5427 * gnu-nat.c: Likewise.
5428 * go32-nat.c: Likewise.
5429 * i386gnu-nat.c: Likewise.
5430 * proc-api.c: Likewise.
5431 * proc-events.c: Likewise.
5432 * proc-flags.c: Likewise.
5433 * proc-why.c: Likewise.
5434 * python/python-internal.h: Likewise.
5435 * target-memory.c: Likewise.
5436 * tui/tui-io.c: Likewise.
5437 * tui/tui.c: Likewise.
5438
b6d7a4bf
SM
54392014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5440
5441 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5442 (scan_dyntag_auxv): Same.
5443
af19829b
YQ
54442014-08-06 Yao Qi <yao@codesourcery.com>
5445
5446 * amd64-linux-nat.c: Remove duplicated include
5447 "x86-linux-nat.h".
5448 * i386-linux-nat.c: Likewise.
5449
8e07a239
YQ
54502014-08-06 Yao Qi <yao@codesourcery.com>
5451
5452 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5453 operand" with "Special opcode" in comments.
5454
7bfe8241
GB
54552014-08-05 Gary Benson <gbenson@redhat.com>
5456
5457 * interps.c (initialize_interps): Remove prototype.
5458 (interpreter_initialized): Remove static global.
5459 (interp_add): Do not call initialize_interps.
5460 (initialize_interps): Remove function.
5461
d6c95504
GB
54622014-08-05 Gary Benson <gbenson@redhat.com>
5463
5464 * utils.c (vwarning): Remove spurious va_end.
5465
241fd515
AM
54662014-08-05 Alan Modra <amodra@gmail.com>
5467
5468 * charset.c (convert_between_encodings): Cast result of obstack_base.
5469 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5470 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5471 (read_unwind_info): Use size_t for some locals.
5472 * jit.c (finalize_symtab): Likewise.
5473 * utils.c (hashtab_obstack_allocate): Likewise.
5474 * symmisc.c (print_objfile_statistics): Update format strings.
5475
dc304a94
JK
54762014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5477
5478 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5479 (Changes in GDB 7.8): ... here.
5480
3cecbbbe
TT
54812014-08-04 Tom Tromey <tromey@redhat.com>
5482
5483 * target.c (set_targetdebug): New function.
5484 (initialize_targets): Pass set_targetdebug when creating "set
5485 debug target".
5486
6908c509
JB
54872014-08-01 Joel Brobecker <brobecker@adacore.com>
5488
5489 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5490 if detecting a variable-sized field that is not the last field.
5491 Fix struct type length computation.
5492
53e8f97d
JB
54932014-08-01 Joel Brobecker <brobecker@adacore.com>
5494
5495 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5496 Add debug trace.
5497
e068c55d
JB
54982014-08-01 Joel Brobecker <brobecker@adacore.com>
5499
5500 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5501 Remove "+ 8" offset in computation of CHAIN_VMA.
5502
4d4ca2a1
DE
55032014-07-31 Doug Evans <dje@google.com>
5504
5505 * inflow.c (child_terminal_inferior): Add comment.
5506 (child_terminal_ours_for_output): Add comment.
5507 (child_terminal_ours): Add comment.
5508 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5509 (linux_nat_terminal_ours): Add comment.
5510
462f517e
GB
55112014-07-31 Gary Benson <gbenson@redhat.com>
5512
5513 * common/btrace-common.h: Do not include defs.h or server.h.
5514 * nat/mips-linux-watch.h: Likewise.
5515 * gdb-dlfcn.h: Do not include defs.h.
5516 * tracefile.h: Likewise.
5517
74228e77
RM
55182014-07-30 Roland McGrath <mcgrathr@google.com>
5519
5520 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5521
014f9477
TT
55222014-07-30 Tom Tromey <tromey@redhat.com>
5523
5524 * bsd-kvm.c (bsd_kvm_open): Constify.
5525 * corelow.c (core_open): Constify.
5526 * ctf.c (ctf_open): Constify.
5527 * dbug-rom.c (dbug_open): Constify.
5528 * exec.c (exec_open): Constify.
5529 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5530 * microblaze-rom.c (picobug_open): Constify.
5531 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5532 Constify.
5533 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5534 * record-btrace.c (record_btrace_open): Constify.
5535 * record-full.c (record_full_core_open_1, record_full_open_1)
5536 (record_full_open): Constify.
5537 * remote-m32r-sdi.c (m32r_open): Constify.
5538 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5539 (rockhopper_open, lsi_open): Constify.
5540 * remote-sim.c (gdbsim_open): Constify.
5541 * remote.c (remote_open, extended_remote_open, remote_open_1):
5542 Constify.
5543 * target.h (struct target_ops) <to_open>: Make "arg" const.
5544 * tracefile-tfile.c (tfile_open): Constify.
5545
e799154c
TT
55462014-07-30 Tom Tromey <tromey@redhat.com>
5547
5548 * breakpoint.c (map_breakpoint_numbers): Update.
5549 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5550 (get_number_const): New function.
5551 (get_number): Rewrite using get_number_const.
5552 (init_number_or_range): Make "string" const.
5553 (number_is_in_list): Make "list" const.
5554 * cli/cli-utils.h (get_number_const): Declare.
5555 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5556 (init_number_or_range, number_is_in_list): Update.
5557 * printcmd.c (map_display_numbers): Update.
5558 * value.c (value_from_history_ref): Constify.
5559 * value.h (value_from_history_ref): Update.
5560
5f08566b
TT
55612014-07-30 Tom Tromey <tromey@redhat.com>
5562
5563 * corefile.c (hook_type, call_extra_exec_file_hooks)
5564 (specify_exec_file_hook): Constify.
5565 * exec.c (exec_file_attach): Make "filename" const.
5566 * gdbcore.h (deprecated_exec_file_display_hook)
5567 (specify_exec_file_hook, exec_file_attach): Constify.
5568 * main.c (captured_main): Use catch_command_errors_const.
5569
8981c758
TT
55702014-07-30 Tom Tromey <tromey@redhat.com>
5571
5572 * target.c (open_target): New function.
5573 (add_target_with_completer, add_deprecated_target_alias): Use
5574 set_cmd_sfunc, set_cmd_context.
5575 (debug_to_open): Remove.
5576 (setup_target_debug): Update.
5577
a1c7835a
YQ
55782014-07-30 Yao Qi <yao@codesourcery.com>
5579
5580 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5581 comments.
5582 * parse.c (exp_iterate): Update comments.
5583
976411d6
GB
55842014-07-30 Gary Benson <gbenson@redhat.com>
5585
5586 * common/common-defs.h: New file.
5587 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5588 * defs.h: Include common-defs.h.
5589 Do not include config.h or build-gnulib/config.h.
5590
5d4848a4
GB
55912014-07-30 Gary Benson <gbenson@redhat.com>
5592
5593 * common/common-utils.h: Do not include config.h.
5594 * nat/linux-btrace.h: Likewise.
5595
d41f6d8e
GB
55962014-07-30 Gary Benson <gbenson@redhat.com>
5597
5598 * btrace.c: Include defs.h.
5599 * common/ptid.c: Include defs.h or server.h as appropriate.
5600 * nat/mips-linux-watch.c: Likewise.
5601
84202f9c
TT
56022014-07-29 Tom Tromey <tromey@redhat.com>
5603
5604 * target.c (target_is_pushed): Simplify.
5605
2530441c
JB
56062014-07-29 Joel Brobecker <brobecker@adacore.com>
5607
5608 GDB 7.8 released.
5609
7e09a223
YQ
56102014-07-29 Yao Qi <yao@codesourcery.com>
5611
5612 PR gdb/17206
5613 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5614
7ebdbe92
DE
56152014-07-28 Doug Evans <xdje42@gmail.com>
5616
5617 PR guile/17203
5618 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5619 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5620 parameters.
5621
f347ffc9
WN
56222014-07-28 Will Newton <will.newton@linaro.org>
5623
5624 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5625 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5626 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5627 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5628 (THUMB2_EABI_SYSCALL): Likewise.
5629 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5630 struct tramp_frame.
5631 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5632 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5633
37c5f1f7
DE
56342014-07-27 Doug Evans <xdje42@gmail.com>
5635
5636 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5637
0c3abbc7
DE
56382014-07-27 Doug Evans <xdje42@gmail.com>
5639
5640 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5641
e76c5d17
DE
56422014-07-26 Ludovic Courtès <ludo@gnu.org>
5643 Doug Evans <xdje42@gmail.com>
5644
5645 PR guile/17146
5646 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5647 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5648 * configure.ac: Try to use guild to compile an scm file, if it fails
5649 then disable guile support.
5650 * configure: Regenerate.
5651 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5652 GUILE_FILE_LIST.
5653 (GUILE_COMPILED_FILES): New variable.
5654 (GUILE_FILES) Update.
5655 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5656 (stamp-guile): Compile scm files.
5657 * guile/guile.c (boot_guile_support): New function.
5658 (standard_throw_args_p): New function.
5659 (print_standard_throw_error, print_throw_error): New functions.
5660 (handle_boot_error): New function.
5661 (initialize_scheme_side): Rewrite to call boot_guile_support.
5662 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5663 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5664
186fcde0
DE
56652014-07-26 Ludovic Courtès <ludo@gnu.org>
5666 Doug Evans <xdje42@gmail.com>
5667
5668 PR guile/17146
5669 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5670 * guile/lib/gdb/support.scm: New file.
5671 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5672 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5673 All uses updated.
5674 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5675 All uses updated.
5676 (%assert-type): Ditto, and renamed to assert-type.
5677 (%exception-print-style): Delete.
5678
4df42755
DE
56792014-07-26 Doug Evans <xdje42@gmail.com>
5680
5681 PR build/17105
5682 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5683 * configure: Regenerate.
5684 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5685 PYTHON_FILES.
5686 (PYTHON_FILES): New variable.
5687 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5688 (GUILE_FILES): New variable.
5689 (stamp-python, install-python, uninstall-python): Handle empty
5690 file list.
5691 (stamp-guile, install-guile, uninstall-guile): Ditto.
5692
ee7333ae
DE
56932014-07-26 Doug Evans <xdje42@gmail.com>
5694
5695 PR guile/17177
5696 * guile/lib/gdb.scm (pretty-printers): Export.
5697 (set-pretty-printers!): Export.
5698 * guile/lib/gdb/printing.scm (gdb module): Update.
5699 (prepend-pretty-printer!, append-pretty-printer!): Update.
5700 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5701 (pretty_printer_list_var): Delete.
5702 (pretty_printer_list): New static global.
5703 (gdbscm_pretty_printers): New function.
5704 (gdbscm_set_pretty_printers_x): New function.
5705 (ppscm_find_pretty_printer_from_gdb): Update.
5706 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5707 (gdbscm_initialize_pretty_printers): Update.
5708
74edf516
DE
57092014-07-26 Doug Evans <xdje42@gmail.com>
5710
5711 PR 17185
5712 * configure.ac: Add check for header gc/gc.h.
5713 Add check for function setenv.
5714 * configure: Regenerate.
5715 * config.in: Regenerate.
5716 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5717
d54398a7
MR
57182014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5719
5720 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5721 variation in gdbarch matching.
5722
ab16fce8
TT
57232014-07-25 Tom Tromey <tromey@redhat.com>
5724
5725 * exec.c (using_exec_ops): Remove.
5726 (exec_close_1): Update. Remove extraneous block, reindent.
5727 (add_target_sections): Use target_is_pushed.
5728
88056fbb
PA
57292014-07-25 Pedro Alves <palves@redhat.com>
5730
5731 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5732 * monitor.c (monitor_create_inferior): Likewise.
5733 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5734 * remote-sim.c (gdbsim_create_inferior): Likewise.
5735 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5736 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5737 * windows-nat.c (do_initial_windows_stuff): Likewise.
5738
70509625
PA
57392014-07-25 Pedro Alves <palves@redhat.com>
5740
5741 * NEWS: Mention signal passing and "signal" command changes.
5742 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5743 comment.
5744 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5745 call.
5746 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5747 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5748 (jump_command): Adjust clear_proceed_status call.
5749 (signal_command): Warn if other thread that are resumed have
5750 signals that will be delivered. Adjust clear_proceed_status call.
5751 (until_next_command, finish_command)
5752 (proceed_after_attach_callback, attach_command_post_wait)
5753 (attach_command): Adjust clear_proceed_status call.
5754 * infrun.c (proceed_after_vfork_done): Likewise.
5755 (proceed_after_attach_callback): Adjust comment.
5756 (clear_proceed_status_thread): Clear stop_signal if not in pass
5757 state.
5758 (clear_proceed_status_callback): Delete.
5759 (clear_proceed_status): New 'step' parameter. Only clear the
5760 proceed status of threads the command being prepared is about to
5761 resume.
5762 (proceed): If passed in an explicit signal, override stop_signal
5763 with it. Don't pass the last stop signal to the thread we're
5764 resuming.
5765 (init_wait_for_inferior): Adjust clear_proceed_status call.
5766 (switch_back_to_stepped_thread): Clear the signal if it should not
5767 be passed.
5768 * infrun.h (clear_proceed_status): New 'step' parameter.
5769 (user_visible_resume_ptid): Add comment.
5770 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5771 signal is in pass state.
5772 * remote.c (append_pending_thread_resumptions): Likewise.
5773 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5774
d8be2939
TT
57752014-07-25 Tom Tromey <tromey@redhat.com>
5776
5777 * target.h (target_stopped_data_address)
5778 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5779 parentheses.
5780
7d0d9d2b
PL
57812014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5782
5783 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5784 comments.
5785 (avr_pointer_to_address): Likewise.
5786
e9e7f724
TT
57872014-07-24 Tom Tromey <tromey@redhat.com>
5788
5789 * monitor.c (compile_pattern): Update.
5790 * target.h (struct target_ops) <to_shortname, to_longname,
5791 to_doc>: Now const.
5792
1947513d
TT
57932014-07-24 Tom Tromey <tromey@redhat.com>
5794
5795 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5796 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5797 (add_info_alias, add_com): Make "doc" const.
5798 (print_doc_line): Make "str" const.
5799 (delete_cmd): Update.
5800 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5801 (print_doc_line): Update.
5802 * cli/cli-script.c (document_command): Update.
5803 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5804 (add_com, add_info, add_info_alias): Update.
5805 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5806 * python/py-cmd.c (cmdpy_destroyer): Update.
5807
64e61d29
TT
58082014-07-24 Tom Tromey <tromey@redhat.com>
5809
5810 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5811 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5812 (help_cmd_list): Constify.
5813 (lookup_cmd): Update.
5814 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5815 const.
5816 (help_cmd_list, apropos_cmd): Update.
5817 * cli/cli-script.c (show_user): Update.
5818 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5819 * cli/cli-setshow.h (cmd_show_list): Update.
5820 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5821 (cmd_show_list): Update.
5822 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5823 * python/py-cmd.c (cmdpy_destroyer): Update.
5824
429e55ea
TT
58252014-07-24 Tom Tromey <tromey@redhat.com>
5826
5827 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5828 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5829 const.
5830 * command.h (deprecate_cmd): Update.
5831 * maint.c (maintenance_do_deprecate): Add casts.
5832
64669f3b
TT
58332014-07-24 Tom Tromey <tromey@redhat.com>
5834
5835 * cli/cli-decode.c (help_cmd): Make parameter "const".
5836 * cli/cli-decode.h (help_cmd): Update.
5837
d3d3328b
TT
58382014-07-24 Tom Tromey <tromey@redhat.com>
5839
5840 * stack.c (up_silently_base, down_silently_base): Make argument
5841 const.
5842
414842dc
TT
58432014-07-24 Tom Tromey <tromey@redhat.com>
5844
5845 * solib.c (solib_add): Make "pattern" const.
5846 * solib.h (solib_add): Update.
5847
baa336ce
TT
58482014-07-24 Tom Tromey <tromey@redhat.com>
5849
5850 * remote.c (remote_serial_open, print_packet, putpkt)
5851 (putpkt_binary): Constify.
5852 * remote.h (putpkt): Update.
5853
5a19e2d0
TT
58542014-07-24 Tom Tromey <tromey@redhat.com>
5855
5856 * monitor.c (monitor_open): Make "args" const.
5857 * monitor.h (monitor_open): Update.
5858
fc4baa5e
TT
58592014-07-24 Tom Tromey <tromey@redhat.com>
5860
5861 * maint.c (match_bfd_flags): Make "string" const.
5862 (print_bfd_section_info): Remove casts.
5863 (print_objfile_section_info): Make "string" const.
5864
0d5f0dbe
TT
58652014-07-24 Tom Tromey <tromey@redhat.com>
5866
5867 * inf-child.c (inf_child_open_target): Make "arg" const.
5868 * inf-child.h (inf_child_open_target): Update.
5869
41c77899
TT
58702014-07-24 Tom Tromey <tromey@redhat.com>
5871
5872 * environ.c (unset_in_environ): Make "var" const.
5873 * environ.h (unset_in_environ): Update.
5874
93db0d79
TT
58752014-07-24 Tom Tromey <tromey@redhat.com>
5876
5877 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5878 Make "cmd" const.
5879 (scan_filename_with_cleanup): Likewise.
5880 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5881 Make arguments const.
5882 (restore_command): Update.
5883
36d6eb95
PA
58842014-07-24 Pedro Alves <palves@redhat.com>
5885
5886 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5887
8009206a
TT
58882014-07-24 Tom Tromey <tromey@redhat.com>
5889 Gary Benson <gbenson@redhat.com>
5890
5891 * nat/linux-ptrace.c (additional_flags): New global.
5892 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5893 additional_flags; don't check GDBSERVER.
5894 (linux_ptrace_set_additional_flags): New function.
5895 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5896 Declare.
5897 * linux-nat.c (_initialize_linux_nat): Call
5898 linux_ptrace_set_additional_flags.
5899
a7068b60
TT
59002014-07-24 Tom Tromey <tromey@redhat.com>
5901
5902 * make-target-delegates (munge_type, write_debugmethod): New
5903 functions.
5904 (debug_names): New global.
5905 ($TARGET_DEBUG_PRINTER): New global.
5906 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5907 name.
5908 Write debug methods. Generate init_debug_target.
5909 * target-debug.h: New file.
5910 * target-delegates.c: Rebuild.
5911 * target.c: Include target-debug.h.
5912 (debug_target): Hoist definition.
5913 (target_kill, target_get_section_table, target_memory_map)
5914 (target_flash_erase, target_flash_done, target_detach)
5915 (target_disconnect, target_wait, target_resume)
5916 (target_pass_signals, target_program_signals, target_follow_fork)
5917 (target_mourn_inferior, target_search_memory)
5918 (target_thread_address_space, target_close)
5919 (target_find_new_threads, target_core_of_thread)
5920 (target_verify_memory, target_insert_mask_watchpoint)
5921 (target_remove_mask_watchpoint): Remove targetdebug code.
5922 (debug_to_post_attach, debug_to_prepare_to_store)
5923 (debug_to_files_info, debug_to_insert_breakpoint)
5924 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5925 (debug_to_region_ok_for_hw_watchpoint)
5926 (debug_to_can_accel_watchpoint_condition)
5927 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5928 (debug_to_watchpoint_addr_within_range)
5929 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5930 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5931 (debug_to_terminal_init, debug_to_terminal_inferior)
5932 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5933 (debug_to_terminal_save_ours, debug_to_terminal_info)
5934 (debug_to_load, debug_to_post_startup_inferior)
5935 (debug_to_insert_fork_catchpoint)
5936 (debug_to_remove_fork_catchpoint)
5937 (debug_to_insert_vfork_catchpoint)
5938 (debug_to_remove_vfork_catchpoint)
5939 (debug_to_insert_exec_catchpoint)
5940 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5941 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5942 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5943 (setup_target_debug): Call init_debug_target.
5944 * target.h (TARGET_DEBUG_PRINTER): New macro.
5945 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5946 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5947
2c51604d
GB
59482014-07-24 Gary Benson <gbenson@redhat.com>
5949
5950 * exceptions.h (throw_vfatal): Renamed to...
5951 (throw_vquit): New declaration.
5952 (throw_quit): Likewise.
5953 * exceptions.c (throw_vfatal): Renamed to...
5954 (throw_vquit): New function.
5955 (throw_quit): Likewise.
5956 (throw_error): Call throw_verror rather than throw_it.
5957 * utils.h (vfatal): Removed.
5958 (fatal): Likewise.
5959 * utils.c (vfatal): Removed.
5960 (fatal): Likewise.
5961 (internal_verror): Replaced call to fatal with call to throw_quit.
5962 (quit): Replaced calls to fatal with calls to throw_quit.
5963
34211963
ME
59642014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5965
5966 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5967 target_read_code.
5968
a52b4d3e
ME
59692014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5970
5971 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5972 less than zero in conditional expression.
5973
a8bdc56b
TT
59742014-07-23 Tom Tromey <tromey@redhat.com>
5975
5976 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5977 ($INTRO_PART): Don't match whitespace.
5978 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5979 argument matching.
5980 ($METHOD): Add $METHOD_TRAILER.
5981 (trim): Rewrite.
5982 (scan_target_h): New sub.
5983 Change main loop not to collect state.
5984 * target-delegates.c: Rebuild.
5985
91b52240
GB
59862014-07-23 Gary Benson <gbenson@redhat.com>
5987
5988 * cp-support.c (gdb_demangle): Fix build on systems without
5989 sigaltstack.
5990
45326f6f
JK
59912014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5992
5993 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5994 for reference entry value target data value.
5995
e214cf6c
JK
59962014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5997
5998 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5999 value_available_contents_eq.
6000
bddbbedd
PA
60012014-07-22 Pedro Alves <palves@redhat.com>
6002
6003 * value.c (allocate_optimized_out_value): Don't mark value as
6004 non-lazy.
6005
45c71484
JW
60062014-07-22 Jiong Wang <jiong.wang@arm.com>
6007
6008 * MAINTAINERS (Write After Approval): Update my email address.
6009
9597b22a
DE
60102014-07-20 Doug Evans <dje@google.com>
6011
6012 PR server/17147
6013 * remote.c (putpkt_binary): Add text to error message.
6014
91101fe5
YQ
60152014-07-20 Yao Qi <yao@codesourcery.com>
6016
6017 * eval.c: Remove "Chill" from comments.
6018 * gdbtypes.h: Likewise.
6019 * symtab.h: Likewise.
6020
c9402c95
YQ
60212014-07-20 Yao Qi <yao@codesourcery.com>
6022
6023 * std-operator.def: Update comments to TERNOP_SLICE.
6024
ae8fddda
YQ
60252014-07-20 Yao Qi <yao@codesourcery.com>
6026
6027 * std-operator.def: Remove BINOP_RANGE.
6028 * breakpoint.c (watchpoint_exp_is_const): Update.
6029 * expprint.c (dump_subexp_body_standard): Likewise.
6030 * eval.c (init_array_element): Remove dead code.
6031 (evaluate_subexp_standard): Likewise.
6032
9c816640
YQ
60332014-07-20 Yao Qi <yao@codesourcery.com>
6034
6035 * std-operator.def: Remove BINOP_IN.
6036 * breakpoint.c (watchpoint_exp_is_const): Update.
6037 * eval.c (evaluate_subexp_standard): Likewise.
6038 * expprint.c (dump_subexp_body_standard): Likewise.
6039
164224e9
ME
60402014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6041
6042 * microblaze-tdep.c (microblaze_register_names): Add
6043 the rshr and rslr register names.
6044 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6045 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6046 Use of tdesc_numbered_register. Use of
6047 microblaze_register_g_packet_guesses. Use of
6048 tdesc_use_registers. Use of set_gdbarch_register_type.
6049 (microblaze_register_g_packet_guesses): New.
6050 * microblaze-tdep.h (microblaze_reg_num): Add
6051 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6052 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6053 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6054 * features/microblaze-core.xml: New file.
6055 * features/microblaze-stack-protect.xml: New file.
6056 * features/microblaze-with-stack-protect.c: New file.
6057 * features/microblaze-with-stack-protect.xml: New file.
6058 * features/microblaze.xml: New file.
6059 * features/microblaze.c: New file.
6060 * features/Makefile (microblaze-with-stack-protect): Add
6061 microblaze-with-stack-protect microblaze and microblaze-expedite.
6062 * regformats/microblaze-with-stack-protect.dat: New file.
6063 * regformats/microblaze.dat: New file.
6064 * doc/gdb.texinfo (MicroBlaze Features): Added.
6065
e8b2341c
TT
60662014-07-18 Tom Tromey <tromey@redhat.com>
6067
6068 * exec.c (exec_ops): Now static.
6069 * exec.h (exec_ops): Don't declare.
6070
44e89118
TT
60712014-07-18 Tom Tromey <tromey@redhat.com>
6072
6073 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6074 to find_target_beneath.
6075 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6076 find_target_beneath.
6077 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6078
b0ed115f
TT
60792014-07-18 Tom Tromey <tromey@redhat.com>
6080
6081 PR gdb/17130:
6082 * utils.c (quit): Use target_supports_terminal_ours.
6083 * target.h (target_supports_terminal_ours): Declare.
6084 * target.c (target_supports_delete_record): Don't check
6085 to_delete_record against NULL.
6086 (target_supports_terminal_ours): New function.
6087
e75fdfca
TT
60882014-07-18 Tom Tromey <tromey@redhat.com>
6089
6090 PR gdb/17130:
6091 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6092 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6093 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6094 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6095 * windows-nat.c (windows_xfer_partial): Always delegate.
6096 * record-btrace.c (record_btrace_xfer_partial): Simplify
6097 delegation.
6098 (record_btrace_fetch_registers, record_btrace_store_registers)
6099 (record_btrace_prepare_to_store, record_btrace_resume)
6100 (record_btrace_wait, record_btrace_find_new_threads)
6101 (record_btrace_thread_alive): Likewise.
6102 * procfs.c (procfs_xfer_partial): Always delegate.
6103 * corelow.c (core_xfer_partial): Always delegate.
6104 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6105
83814951
TT
61062014-07-18 Tom Tromey <tromey@redhat.com>
6107
6108 * exec.c (exec_make_note_section): Move earlier.
6109
b8b8facf
DE
61102014-07-17 Doug Evans <dje@google.com>
6111
74b49205 6112 PR gdb/17170
b8b8facf
DE
6113 * maint.c (count_symtabs_and_blocks): Handle NULL
6114 current_program_space.
6115 (report_command_stats): Check global enabled flag in addition to
6116 recorded enabled flag.
6117 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6118
69ff6be5
PA
61192014-07-16 Pedro Alves <palves@redhat.com>
6120
6121 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6122
252db1b5
TT
61232014-07-16 Tom Tromey <tromey@redhat.com>
6124
6125 * target.h (struct target_ops) <to_delete_record>: Reformat
6126 comment.
6127
a432721e
TT
61282014-07-16 Tom Tromey <tromey@redhat.com>
6129
6130 * target-delegates.c: Rebuild.
6131
487d9753
PL
61322014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6133
6134 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6135 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6136 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6137 (avr_pointer_to_address): Likewise.
6138 (avr_address_class_type_flags): New function.
6139 (avr_address_class_type_flags_to_name): Likewise.
6140 (avr_address_class_name_to_type_flags): Likewise.
6141 (avr_gdbarch_init): Set address_class_type_flags,
6142 address_class_type_flags_to_name and
6143 address_class_name_to_type_flags.
6144
57745c90
PA
61452014-07-15 Pedro Alves <palves@redhat.com>
6146
6147 * linux-nat.c (kill_callback): Save errno and work with saved
6148 copy.
6149
2d40be18
SM
61502014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6153
572f6555
EBM
61542014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6155
6156 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6157 breakpoint support correctly.
6158
cc1c52ad
PA
61592014-07-14 Pedro Alves <palves@redhat.com>
6160
6161 * utils.c (prompt_for_continue): Call target_terminal_ours.
6162
1e973570
PA
61632014-07-14 Pedro Alves <palves@redhat.com>
6164
6165 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6166 catch_errors. Don't re-enable stdin or notify observers where,
6167 and rethrow error.
6168 (fetch_inferior_event_wrapper): Delete.
6169
93d6eb10
PA
61702014-07-14 Pedro Alves <palves@redhat.com>
6171
6172 PR gdb/17072
6173 * top.c: Include "inf-loop.h".
6174 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6175 field.
6176 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6177 was async before.
6178 (gdb_readline_wrapper): Store whether the target is async, and
6179 make it sync.
6180
0017922d
PA
61812014-07-14 Pedro Alves <palves@redhat.com>
6182
6183 PR gdb/17072
6184 * top.c (gdb_readline_wrapper_line): Tweak comment.
6185 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6186 the input handler callback.
6187
94696ad3
PA
61882014-07-14 Pedro Alves <palves@redhat.com>
6189
6190 PR gdb/17072
6191 * main.c: Include event-top.h.
6192 (handle_command_errors): New function.
6193 (catch_command_errors, catch_command_errors_const): Use it.
6194
9d1e69a2
PA
61952014-07-14 Pedro Alves <palves@redhat.com>
6196
6197 * exceptions.c (catch_command_errors, catch_command_errors_const):
6198 Moved to main.c.
6199 * exceptions.h (catch_command_errors_ftype)
6200 (catch_command_errors_const_ftype): Moved to main.c.
6201 (catch_command_errors, catch_command_errors_const): Delete
6202 declarations.
6203 * main.c (catch_command_errors_ftype)
6204 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6205 (catch_command_errors, catch_command_errors_const)): Moved here
6206 from exceptions.c and make static.
6207
feefc97b
PA
62082014-07-14 Pedro Alves <palves@redhat.com>
6209
6210 * exceptions.c (print_any_exception): Delete.
6211 (catch_exceptions_with_msg): Use exception_print instead of
6212 print_any_exception.
6213 (catch_errors): Use exception_fprintf instead of
6214 print_any_exception.
6215 (catch_command_errors, catch_command_errors_const): Use
6216 exception_print instead of print_any_exception.
6217
c933f875
PA
62182014-07-14 Pedro Alves <palves@redhat.com>
6219
6220 * infcall.c (run_inferior_call): Set 'sync_execution' while
6221 running the inferior call.
6222
feb6f816
PA
62232014-07-14 Pedro Alves <palves@redhat.com>
6224
6225 * value.c (value_contents_equal): Delete function.
6226 * value.h (value_contents_equal): Delete declaration.
6227
d98b7a16
TT
62282014-07-14 Tom Tromey <tromey@redhat.com>
6229
6230 PR exp/17106:
6231 * gdbtypes.c (is_dynamic_type_internal): New function, from
6232 is_dynamic_type.
6233 (is_dynamic_type): Rewrite.
6234 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6235 (resolve_dynamic_struct): Likewise.
6236 (resolve_dynamic_type_internal): New function, from
6237 resolve_dynamic_type.
6238 (resolve_dynamic_type): Rewrite.
6239
548740d6
TT
62402014-07-14 Tom Tromey <tromey@redhat.com>
6241
6242 * target.c (target_require_runnable): Also check record_stratum.
6243 Update comment.
6244
808f7ab1
YQ
62452014-07-11 Yao Qi <yao@codesourcery.com>
6246
6247 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6248 thumb_instruction_restores_sp return true.
6249
540314bd
YQ
62502014-07-11 Yao Qi <yao@codesourcery.com>
6251
6252 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6253 (thumb_in_function_epilogue_p): Call
6254 thumb_instruction_restores_sp.
6255
1db01f22
YQ
62562014-07-11 Yao Qi <yao@codesourcery.com>
6257
6258 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6259 'add sp, #imm'.
6260 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6261
3116063b
GB
62622014-07-11 Gary Benson <gbenson@redhat.com>
6263
6264 * amd64-linux-nat.c (gdbcore.h): Remove include.
6265 (regset.h): Likewise.
6266 (nat/linux-btrace.h): Likewise.
6267 (btrace.h): Likewise.
6268 (gdb_assert.h): Likewise.
6269 (string.h): Likewise.
6270 (sys/uio.h): Likewise.
6271 (sys/debugreg.h): Likewise.
6272 (sys/syscall.h): Likewise.
6273 (sys/procfs.h): Likewise.
6274 (sys/user.h): Likewise.
6275 (asm/ptrace.h): Likewise.
6276 (i386-nat.h): Likewise.
6277 * i386-linux-nat.c (i386-nat.h): Likewise.
6278 (regset.h): Likewise.
6279 (target.h): Likewise.
6280 (linux-nat.h): Likewise.
6281 (nat/linux-btrace.h): Likewise.
6282 (btrace.h): Likewise.
6283 (gdb_assert.h): Likewise.
6284 (string.h): Likewise.
6285 (sys/uio.h): Likewise.
6286 (sys/user.h): Likewise.
6287 (sys/procfs.h): Likewise.
6288 (sys/reg.h): Likewise.
6289 (sys/debugreg.h): Likewise.
6290 (ORIG_EAX): Remove definition.
6291
040baaf6
GB
62922014-07-11 Gary Benson <gbenson@redhat.com>
6293
6294 * i386-linux-nat.h: New file.
6295 * x86-linux-nat.h: Likewise.
6296 * x86-linux-nat.c: Likewise.
6297 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6298 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6299 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6300 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6301 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6302 (PTRACE_SETREGSET): Likewise.
6303 (arch_lwp_info): Now in x86-linux-nat.c.
6304 (have_ptrace_getregset): Now in x86-linux-nat.h.
6305 (x86_linux_dr_get): Now in x86-linux-nat.c.
6306 (x86_linux_dr_set): Likewise.
6307 (x86_linux_dr_get_addr): Likewise.
6308 (x86_linux_dr_get_control): Likewise.
6309 (x86_linux_dr_get_status): Likewise.
6310 (update_debug_registers_callback): Likewise.
6311 (x86_linux_dr_set_control): Likewise.
6312 (x86_linux_dr_set_addr): Likewise.
6313 (x86_linux_prepare_to_resume): Likewise.
6314 (x86_linux_new_thread): Likewise.
6315 (x86_linux_new_fork): Likewise.
6316 (x86_linux_get_thread_area): Likewise.
6317 (super_post_startup_inferior): Likewise.
6318 (x86_linux_child_post_startup_inferior): Likewise.
6319 (AMD64_LINUX_USER64_CS): Likewise.
6320 (AMD64_LINUX_X32_DS): Likewise.
6321 (x86_linux_read_description): Likewise.
6322 (x86_linux_enable_btrace): Likewise.
6323 (x86_linux_disable_btrace): Likewise.
6324 (x86_linux_teardown_btrace): Likewise.
6325 (x86_linux_read_btrace): Likewise.
6326 (x86_linux_create_target): Likewise.
6327 (x86_linux_add_target): Likewise.
6328 * i386-linux-nat.c (x86-linux-nat.h): New include.
6329 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6330 (PTRACE_SETREGSET): Likewise.
6331 (arch_lwp_info): Now in x86-linux-nat.c.
6332 (have_ptrace_getregset): Now in x86-linux-nat.h.
6333 (x86_linux_dr_get): Now in x86-linux-nat.c.
6334 (x86_linux_dr_set): Likewise.
6335 (x86_linux_dr_get_addr): Likewise.
6336 (x86_linux_dr_get_control): Likewise.
6337 (x86_linux_dr_get_status): Likewise.
6338 (update_debug_registers_callback): Likewise.
6339 (x86_linux_dr_set_control): Likewise.
6340 (x86_linux_dr_set_addr): Likewise.
6341 (x86_linux_prepare_to_resume): Likewise.
6342 (x86_linux_new_thread): Likewise.
6343 (x86_linux_new_fork): Likewise.
6344 (x86_linux_get_thread_area): Likewise.
6345 (super_post_startup_inferior): Likewise.
6346 (x86_linux_child_post_startup_inferior): Likewise.
6347 (AMD64_LINUX_USER64_CS): Likewise.
6348 (AMD64_LINUX_X32_DS): Likewise.
6349 (x86_linux_read_description): Likewise.
6350 (x86_linux_enable_btrace): Likewise.
6351 (x86_linux_disable_btrace): Likewise.
6352 (x86_linux_teardown_btrace): Likewise.
6353 (x86_linux_read_btrace): Likewise.
6354 (x86_linux_create_target): Likewise.
6355 (x86_linux_add_target): Likewise.
6356
1aa7e42c
GB
63572014-07-11 Gary Benson <gbenson@redhat.com>
6358
6359 * amd64-linux-nat.c: Comment and whitespace changes.
6360 * i386-linux-nat.c: Comment and whitespace changes.
6361
c1e246a0
GB
63622014-07-11 Gary Benson <gbenson@redhat.com>
6363
6364 * amd64-linux-nat.c (x86_linux_create_target): New function.
6365 (x86_linux_add_target): Likewise.
6366 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6367 * i386-linux-nat.c (x86_linux_create_target): New function.
6368 (x86_linux_add_target): Likewise.
6369 (_initialize_i386_linux_nat): Delegate to the above new functions.
6370
8c420b8d
GB
63712014-07-11 Gary Benson <gbenson@redhat.com>
6372
6373 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6374 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6375 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6376 (ps_get_thread_area): Delegate to the above.
6377
cb1da100
GB
63782014-07-11 Gary Benson <gbenson@redhat.com>
6379
6380 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6381 x86_linux_read_description. All uses updated. amd64-specific
6382 code conditionalized. Conditionalized i386-specific code added.
6383 Redundant cast removed.
6384 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6385 x86_linux_read_description. All uses updated. i386-specific
6386 code conditionalized. Conditionalized amd64-specific code added.
6387 One sizeof replaced with the actual type it is describing.
6388
2acf3cd0
GB
63892014-07-11 Gary Benson <gbenson@redhat.com>
6390
6391 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6392 x86_linux_dr_get. All uses updated.
6393 (amd64_linux_dr_set): Renamed to
6394 x86_linux_dr_set. All uses updated.
6395 (amd64_linux_dr_get_addr): Renamed to
6396 x86_linux_dr_get_addr. All uses updated.
6397 (amd64_linux_dr_get_control): Renamed to
6398 x86_linux_dr_get_control. All uses updated.
6399 (amd64_linux_dr_get_status): Renamed to
6400 x86_linux_dr_get_status. All uses updated.
6401 (amd64_linux_dr_set_control): Renamed to
6402 x86_linux_dr_set_control. All uses updated.
6403 (amd64_linux_dr_set_addr): Renamed to
6404 x86_linux_dr_set_addr. All uses updated.
6405 (amd64_linux_prepare_to_resume): Renamed to
6406 x86_linux_prepare_to_resume. All uses updated.
6407 (amd64_linux_new_thread): Renamed to
6408 x86_linux_new_thread. All uses updated.
6409 (amd64_linux_new_fork): Renamed to
6410 x86_linux_new_fork. All uses updated.
6411 (amd64_linux_child_post_startup_inferior): Renamed to
6412 x86_linux_child_post_startup_inferior. All uses updated.
6413 (amd64_linux_enable_btrace): Renamed to
6414 x86_linux_enable_btrace. All uses updated.
6415 (amd64_linux_disable_btrace): Renamed to
6416 x86_linux_disable_btrace. All uses updated.
6417 (amd64_linux_teardown_btrace): Renamed to
6418 x86_linux_teardown_btrace. All uses updated.
6419 (amd64_linux_read_btrace): Renamed to
6420 x86_linux_read_btrace. All uses updated.
6421 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6422 x86_linux_dr_get. All uses updated.
6423 (i386_linux_dr_set): Renamed to
6424 x86_linux_dr_set. All uses updated.
6425 (i386_linux_dr_get_addr): Renamed to
6426 x86_linux_dr_get_addr. All uses updated.
6427 (i386_linux_dr_get_control): Renamed to
6428 x86_linux_dr_get_control. All uses updated.
6429 (i386_linux_dr_get_status): Renamed to
6430 x86_linux_dr_get_status. All uses updated.
6431 (i386_linux_dr_set_control): Renamed to
6432 x86_linux_dr_set_control. All uses updated.
6433 (i386_linux_dr_set_addr): Renamed to
6434 x86_linux_dr_set_addr. All uses updated.
6435 (i386_linux_prepare_to_resume): Renamed to
6436 x86_linux_prepare_to_resume. All uses updated.
6437 (i386_linux_new_thread): Renamed to
6438 x86_linux_new_thread. All uses updated.
6439 (i386_linux_new_fork): Renamed to
6440 x86_linux_new_fork. All uses updated.
6441 (i386_linux_child_post_startup_inferior): Renamed to
6442 x86_linux_child_post_startup_inferior. All uses updated.
6443 (i386_linux_enable_btrace): Renamed to
6444 x86_linux_enable_btrace. All uses updated.
6445 (i386_linux_disable_btrace): Renamed to
6446 x86_linux_disable_btrace. All uses updated.
6447 (i386_linux_teardown_btrace): Renamed to
6448 x86_linux_teardown_btrace. All uses updated.
6449 (i386_linux_read_btrace): Renamed to
6450 x86_linux_read_btrace. All uses updated.
6451
b9c1d481
AS
64522014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6453
6454 * remote.c (extended_remote_post_attach): New function.
6455 (init_extended_remote_ops): Install it as to_post_attach method.
6456
7180e04a
PA
64572014-07-09 Pedro Alves <palves@redhat.com>
6458
6459 * infcmd.c (attach_command_post_wait): Don't call
6460 target_terminal_inferior here.
6461 (attach_command): Call it here instead.
6462
9a9a7608
AB
64632014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6466 field.
6467 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6468 from varobj.c, with additional checks.
6469 (c_varobj_ops): Fill in is_path_expr_parent field.
6470 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6471 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6472 field.
6473 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6474 ops method.
6475 (varobj_default_is_path_expr_parent): New function.
6476 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6477 (varobj_default_is_path_expr_parent): Declare new function.
6478
1f267ae3
MM
64792014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6480
6481 * infcmd.c (finish_backward): Turn internal error into normal error.
6482
b2ee242b
PA
64832014-07-07 Pedro Alves <palves@redhat.com>
6484
8a869bca 6485 PR gdb/17096
b2ee242b
PA
6486 * remote.c (async_handle_remote_sigint)
6487 (async_handle_remote_sigint_twice): Call
6488 gdb_call_async_signal_handler instead of
6489 mark_async_signal_handler.
6490
38e229b2
TT
64912014-07-07 Tom Tromey <tromey@redhat.com>
6492
6493 * target-delegates.c: Rebuild.
6494 * target.c (target_info_record): Remove.
6495 * record.c (info_record_command): Unconditionally call
6496 to_info_record.
6497 * target.h (struct target_ops) <to_info_record>: Use
6498 TARGET_DEFAULT_IGNORE.
6499 (target_info_record): Remove.
6500
f0f9ff95
TT
65012014-07-07 Tom Tromey <tromey@redhat.com>
6502
6503 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6504 TARGET_DEFAULT_NORETURN.
6505 * target.c (generic_tls_error): New function.
6506 (target_translate_tls_address): Don't search target stack.
6507 * target-delegates.c: Rebuild.
6508 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6509 stack.
6510 * linux-thread-db.c (thread_db_get_thread_local_address):
6511 Unconditionally call beneath target.
6512
4a5be5ee
MK
65132014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6514
6515 * cli/cli-logging.c (pop_output_files): Assign targerr to
6516 gdb_stdtargerr.
6517
92c3b204
AB
65182014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * MAINTAINERS (Write After Approval): Update my email address.
6521
9b11e3a7
GB
65222014-07-02 Gary Benson <gbenson@redhat.com>
6523
6524 * proc-service.c (ps_xfer_memory): Update comment.
6525 (ps_pstop): Remove unused function.
6526 (ps_pcontinue): Likewise.
6527 (ps_lstop): Likewise.
6528 (ps_lcontinue): Likewise.
6529 (ps_lgetxregsize): Likewise.
6530 (ps_lgetxregs): Likewise.
6531 (ps_lsetxregs): Likewise.
6532 (ps_plog): Likewise.
6533 (ps_ptread): Likewise.
6534 (ps_ptwrite): Likewise.
6535
cf363f18
MW
65362014-07-01 Mark Wielaard <mjw@redhat.com>
6537
6538 * dwarf2read.c (add_array_cv_type): New function.
6539 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6540 (read_tag_volatile_type): Likewise.
6541
82ae6c8d
TT
65422014-07-01 Tom Tromey <tromey@redhat.com>
6543
6544 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6545 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6546 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6547 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6548 * command.h (cmd_cfunc_ftype): Move earlier.
6549 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6550 (add_com, add_info): Use cmd_cfunc_ftype.
6551
96142726
TT
65522014-06-30 Tom Tromey <tromey@redhat.com>
6553
6554 * symtab.c (operator_chars): Make parameters and return type
6555 const.
6556 (file_matches): Make "files" const.
6557 (struct search_symbols_data) <files>: Now const.
6558 (search_symbols): Make "regexp" and "files" parameters const.
6559 Update.
6560 (symtab_symbol_info): Remove cast.
6561 (rbreak_command): Update.
6562 * symtab.h (search_symbols): Update.
6563
b67a2c6f
YQ
65642014-06-27 Yao Qi <yao@codesourcery.com>
6565
6566 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6567 Change parameter type to 'struct thread_info *'. Caller
6568 updated.
6569 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6570 Update declaration.
6571 * dummy-frame.c (struct dummy_frame_id): New.
6572 (dummy_frame_id_eq): New function.
6573 (struct dummy_frame) <id>: Change its type to 'struct
6574 dummy_frame_id'.
6575 (dummy_frame_push): Add parameter ptid and save it in
6576 dummy_frame_id.
6577 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6578 inferior_ptid.
6579 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6580 to inferior_ptid.
6581 (lookup_dummy_frame): Change parameter type to 'struct
6582 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6583 instead of frame_id_eq.
6584 (dummy_frame_pop): Add parameter ptid. Callers updated.
6585 Update comments. Compose dummy_frame_id and pass it to
6586 lookup_dummy_frame.
6587 (dummy_frame_discard): Add parameter ptid.
6588 (dummy_frame_sniffer): Compose dummy_frame_id and call
6589 dummy_frame_id_eq instead of frame_id_eq.
6590 (fprint_dummy_frames): Print ptid.
6591 * dummy-frame.h: Remove comments.
6592 (dummy_frame_push): Add ptid in declaration.
6593 (dummy_frame_pop, dummy_frame_discard): Likewise.
6594
5b10184c
TT
65952014-06-26 Tom Tromey <tromey@redhat.com>
6596
6597 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6598 * command.h (error_no_arg): Update.
6599
06900326
TT
66002014-06-26 Tom Tromey <tromey@redhat.com>
6601
6602 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6603 (do_show_command): Make "arg" const.
6604 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6605
c2bcbb1d
TT
66062014-06-26 Tom Tromey <tromey@redhat.com>
6607
6608 * record-full.c (record_full_get_bookmark): Make "args" const.
6609 (record_full_goto_bookmark): Make "raw_bookmark" const.
6610 * record.c (record_goto): New function.
6611 (cmd_record_goto): Use it. Now static.
6612 * record.h (record_goto): Declare.
6613 (cmd_record_goto): Remove declaration.
6614 * target-delegates.c: Rebuild.
6615 * target.h (struct target_ops) <to_get_bookmark,
6616 to_goto_bookmark>: Make parameter const.
6617
9cbe5fff
TT
66182014-06-26 Tom Tromey <tromey@redhat.com>
6619
6620 * defs.h (generic_load): Update.
6621 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6622 * monitor.c (monitor_load): Make "args" const.
6623 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6624 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6625 const.
6626 (mips_load): Make "file" const.
6627 * remote-sim.c (gdbsim_load): Make "args" const.
6628 * remote.c (remote_load): Make "name" const.
6629 * symfile.c (generic_load): Make "args" const.
6630 * target-delegates.c: Rebuild.
6631 * target.c (target_load): Make "arg" const.
6632 (debug_to_load): Make "args" const.
6633 * target.h (struct target_ops) <to_load>: Make parameter const.
6634 (target_load): Update.
6635
34a68019
TT
66362014-06-26 Tom Tromey <tromey@redhat.com>
6637
6638 PR symtab/16902:
6639 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6640 (dwarf2_physname, read_partial_die)
6641 (guess_partial_die_structure_name, fixup_partial_die)
6642 (guess_full_die_structure_name, anonymous_struct_prefix)
6643 (dwarf2_name): Use per-BFD obstack.
6644
efc889c1
YQ
66452014-06-26 Yao Qi <yao@codesourcery.com>
6646
6647 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6648 dummyframe and this_id into inner block below.
6649
4395285e
YQ
66502014-06-26 Yao Qi <yao@codesourcery.com>
6651
6652 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6653 with "signal_pass[0]" in the initialization of signal_pass.
6654
aef92902
MM
66552014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6656
6657 * record-btrace.c (record_btrace_generating_corefile)
6658 (record_btrace_prepare_to_generate_core)
6659 (record_btrace_done_generating_core): New.
6660 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6661 (record_btrace_store_registers, record_btrace_prepare_to_store):
6662 Forward request when generating a core file.
6663 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6664 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6665 to_done_generating_core.
6666
5fff78c4
MM
66672014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6668
6669 * target.h (target_ops) <to_prepare_to_generate_core>
6670 <to_done_generating_core>: New.
6671 (target_prepare_to_generate_core, target_done_generating_core): New.
6672 * target.c (target_prepare_to_generate_core)
6673 (target_done_generating_core): New.
6674 * target-delegates.c: Regenerate.
6675 * gcore.c: (write_gcore_file): Rename to ...
6676 (write_gcore_file_1): ...this.
6677 (write_gcore_file): Call target_prepare_to_generate_core
6678 and target_done_generating_core.
6679
1d1f1ccb
MM
66802014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6681
6682 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6683 * gcore.c (write_gcore_file): Free memory returned from
6684 make_corefile_notes.
6685 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6686 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6687
3343ef86
YQ
66882014-06-24 Yao Qi <yao@codesourcery.com>
6689
6690 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6691 (arm_linux_init_abi): Set skip_trampoline_code with
6692 gdbarch_skip_trampoline_code instead of
6693 find_solib_trampoline_target.
6694
18d18ac8
YQ
66952014-06-24 Yao Qi <yao@codesourcery.com>
6696
6697 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6698 arm_skip_bx_reg returns non-zero.
6699
80d8d390
YQ
67002014-06-24 Yao Qi <yao@codesourcery.com>
6701
6702 * arm-tdep.c (arm_skip_bx_reg): New function.
6703 (arm_skip_stub): Call arm_skip_bx_reg.
6704
6a18a01c
DB
67052014-06-23 Don Breazeal <donb@codesourcery.com>
6706
6707 * MAINTAINERS: Add myself as write-after-approval maintainer.
6708
8e9db26e
PA
67092014-06-23 Pedro Alves <palves@redhat.com>
6710
6711 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6712 DR_CONTROL before setting DR0..DR3.
6713 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6714 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6715 bits of DR_CONTROL related to the debug register slot being
6716 disabled. If all slots are vacant, clear local slowdown as well,
6717 and assert DR_CONTROL is 0.
6718
70afc5b7
SC
67192014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6720
6721 * python/lib/gdb/command/xmethods.py
6722 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6723 current progspace only if the string "progspace" matches LOCUS_RE.
6724
840ed64d
JK
67252014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 Fix --with-system-readline with readline-6.3 patch 5.
6728 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6729 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6730 types.
6731
26f2dc30
TT
67322014-06-20 Tom Tromey <tromey@redhat.com>
6733
6734 * dwarf2read.c (dw2_get_real_path): Use correct type in
6735 OBSTACK_CALLOC.
6736 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6737
125f8a3d
GB
67382014-06-20 Gary Benson <gbenson@redhat.com>
6739
6740 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6741 * common/glibc_thread_db.h: Likewise.
6742 * common/i386-cpuid.h: Likewise.
6743 * common/i386-gcc-cpuid.h: Likewise.
6744 * common/linux-btrace.h: Likewise.
6745 * common/linux-osdata.h: Likewise.
6746 * common/linux-procfs.h: Likewise.
6747 * common/linux-ptrace.h: Likewise.
6748 * common/mips-linux-watch.h: Likewise.
6749 * common/linux-btrace.c: Moved to nat.
6750 * common/linux-osdata.c: Likewise.
6751 * common/linux-procfs.c: Likewise.
6752 * common/linux-ptrace.c: Likewise.
6753 * common/mips-linux-watch.c: Likewise.
6754 * nat/gdb_thread_db.h: Moved from common.
6755 * nat/glibc_thread_db.h: Likewise.
6756 * nat/i386-cpuid.h: Likewise.
6757 * nat/i386-gcc-cpuid.h: Likewise.
6758 * nat/linux-btrace.c: Likewise.
6759 * nat/linux-btrace.h: Likewise.
6760 * nat/linux-osdata.c: Likewise.
6761 * nat/linux-osdata.h: Likewise.
6762 * nat/linux-procfs.c: Likewise.
6763 * nat/linux-procfs.h: Likewise.
6764 * nat/linux-ptrace.c: Likewise.
6765 * nat/linux-ptrace.h: Likewise.
6766 * nat/mips-linux-watch.c: Likewise.
6767 * nat/mips-linux-watch.h: Likewise.
6768 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6769 (object file files): Reordered.
6770 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6771 of glibc_thread_db.h.
6772
42995dbd
GB
67732014-06-20 Gary Benson <gbenson@redhat.com>
6774
6775 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6776 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6777 (i386_dr_low): Likewise.
6778 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6779 (i386_dr_low_set_addr): Likewise.
6780 (i386_dr_low_get_addr): Likewise.
6781 (i386_dr_low_can_set_control): Likewise.
6782 (i386_dr_low_set_control): Likewise.
6783 (i386_dr_low_get_control): Likewise.
6784 (i386_dr_low_get_status): Likewise.
6785 (i386_get_debug_register_length): Likewise.
6786 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6787 (i386_dr_low): Likewise.
6788 * nat/i386-dregs.c (i386-low.h): Remove include.
6789 (i386-nat.h): Likewise.
6790 (nat/i386-dregs.h): New include.
6791 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6792 (i386_dr_low_set_addr): Likewise.
6793 (i386_dr_low_get_addr): Likewise.
6794 (i386_dr_low_can_set_control): Likewise.
6795 (i386_dr_low_set_control): Likewise.
6796 (i386_dr_low_get_control): Likewise.
6797 (i386_dr_low_get_status): Likewise.
6798 (i386_get_debug_register_length): Likewise.
6799 (debug_hw_points): Likewise.
6800
3ed9baed
IB
68012014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6802
6803 * Makefile.in (SFILES): Add d-exp.y.
6804 (YYFILES): Add d-exp.c.
6805 (YYOBJ): Add d-exp.o.
6806 (local-maintainer-clean): Delete d-exp.c.
6807 * d-exp.y: New file.
6808 * d-lang.h (d_parse): New declaration.
6809 (d_error): New declaration.
6810 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6811 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6812 PREC_ORDER operators.
6813 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6814
78c164b0
YQ
68152014-06-19 Yao Qi <yao@codesourcery.com>
6816
6817 * gdbthread.h (any_running): Remove the declaration.
6818 * thread.c (any_running): Remove.
6819
f6e29b6e
YQ
68202014-06-19 Yao Qi <yao@codesourcery.com>
6821
6822 * gdbthread.h (struct thread_info) <state>: Change its type to
6823 'enum thread_state'. Update comments.
6824
034f788c
PA
68252014-06-19 Pedro Alves <palves@redhat.com>
6826
6827 * gdbthread.h (ALL_THREADS): Delete.
6828 (ALL_NON_EXITED_THREADS): New macro.
6829 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6830 instead of ALL_THREADS.
6831 * infrun.c (find_thread_needs_step_over)
6832 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6833 instead of ALL_THREADS.
6834 * record-btrace.c (record_btrace_open)
6835 (record_btrace_stop_recording, record_btrace_close)
6836 (record_btrace_is_replaying, record_btrace_resume)
6837 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6838 * remote.c (append_pending_thread_resumptions): Likewise.
6839 * thread.c (thread_apply_all_command): Likewise.
6840
46e33252
GB
68412014-06-19 Gary Benson <gbenson@redhat.com>
6842
6843 * i386-nat.c (i386_stopped_by_watchpoint):
6844 Use i386_dr_stopped_by_watchpoint.
6845 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6846 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6847
3a8ee006
GB
68482014-06-19 Gary Benson <gbenson@redhat.com>
6849
6850 * nat/i386-dregs.c: New file.
6851 * Makefile.in (i386-dregs.o): New rule.
6852 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6853 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6854 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6855 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6856 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6857 * config/i386/go32.mh (NATDEPFILES): Likewise.
6858 * config/i386/linux.mh (NATDEPFILES): Likewise.
6859 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6860 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6861 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6862 * i386-nat.h (debug_hw_points): New declaration.
6863 * i386-nat.c (breakpoint.h): Remove include.
6864 (command.h): Likewise.
6865 (target.h): Likewise.
6866 (gdb_assert.h): Likewise.
6867 (debug_hw_points): Made nonstatic.
6868 (debug_printf): Now in i386-dregs.c.
6869 (TARGET_HAS_DR_LEN_8): Likewise.
6870 (DR_CONTROL_SHIFT): Likewise.
6871 (DR_CONTROL_SIZE): Likewise.
6872 (DR_RW_EXECUTE): Likewise.
6873 (DR_RW_WRITE): Likewise.
6874 (DR_RW_READ): Likewise.
6875 (DR_RW_IORW): Likewise.
6876 (DR_LEN_1): Likewise.
6877 (DR_LEN_2): Likewise.
6878 (DR_LEN_4): Likewise.
6879 (DR_LEN_8): Likewise.
6880 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6881 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6882 (DR_ENABLE_SIZE): Likewise.
6883 (DR_LOCAL_SLOWDOWN): Likewise.
6884 (DR_GLOBAL_SLOWDOWN): Likewise.
6885 (DR_CONTROL_RESERVED): Likewise.
6886 (I386_DR_CONTROL_MASK): Likewise.
6887 (I386_DR_VACANT): Likewise.
6888 (I386_DR_LOCAL_ENABLE): Likewise.
6889 (I386_DR_GLOBAL_ENABLE): Likewise.
6890 (I386_DR_DISABLE): Likewise.
6891 (I386_DR_SET_RW_LEN): Likewise.
6892 (I386_DR_GET_RW_LEN): Likewise.
6893 (I386_DR_WATCH_HIT): Likewise.
6894 (i386_wp_op_t): Likewise.
6895 (i386_show_dr): Likewise.
6896 (i386_length_and_rw_bits): Likewise.
6897 (i386_insert_aligned_watchpoint): Likewise.
6898 (i386_remove_aligned_watchpoint): Likewise.
6899 (i386_handle_nonaligned_watchpoint): Likewise.
6900 (i386_update_inferior_debug_regs): Likewise.
6901 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6902 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6903 (i386_region_ok_for_watchpoint):
6904 Use i386_dr_region_ok_for_watchpoint.
6905 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6906
322a8e06
GB
69072014-06-19 Gary Benson <gbenson@redhat.com>
6908
6909 * i386-nat.c (i386_insert_hw_breakpoint): Use
6910 i386_insert_watchpoint.
6911 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6912
8f26655c
GB
69132014-06-19 Gary Benson <gbenson@redhat.com>
6914
6915 * i386-nat.c (i386_dr_show): Renamed to
6916 i386_show_dr and made static. All uses updated.
6917 (i386_dr_length_and_rw_bits): Renamed to
6918 i386_length_and_rw_bits and made static.
6919 All uses updated.
6920 (i386_dr_insert_aligned_watchpoint): Renamed to
6921 i386_insert_aligned_watchpoint and made static.
6922 All uses updated.
6923 (i386_dr_remove_aligned_watchpoint): Renamed to
6924 i386_remove_aligned_watchpoint and made static.
6925 All uses updated.
6926 (i386_dr_update_inferior_debug_regs): Renamed to
6927 i386_update_inferior_debug_regs and made static.
6928 All uses updated.
6929 * nat/i386-dregs.h (i386_dr_show): Removed.
6930 (i386_dr_length_and_rw_bits): Likewise.
6931 (i386_dr_insert_aligned_watchpoint): Likewise.
6932 (i386_dr_remove_aligned_watchpoint): Likewise.
6933 (i386_dr_update_inferior_debug_regs): Likewise.
6934
992c7d70
GB
69352014-06-19 Gary Benson <gbenson@redhat.com>
6936
6937 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6938 * configure: Regenerate.
6939 * config.in: Likewise.
6940 * main.c (signal.h): New include.
6941 (setup_alternate_signal_stack): New function.
6942 (captured_main): Call the above.
6943 * cp-support.c (signal.h): New include.
6944 (catch_demangler_crashes): New flag.
6945 (SIGJMP_BUF): New define.
6946 (SIGSETJMP): Likewise.
6947 (SIGLONGJMP): Likewise.
6948 (gdb_demangle_jmp_buf): New static global.
6949 (gdb_demangle_attempt_core_dump): Likewise.
6950 (gdb_demangle_signal_handler): New function.
6951 (gdb_demangle): If catch_demangler_crashes is set, install the
6952 above signal handler before calling bfd_demangle, and restore
6953 the original signal handler afterwards. Display the offending
6954 symbol and call demangler_warning the first time a segmentation
6955 fault is caught.
6956 (_initialize_cp_support): New maint set/show command.
6957
eae7090b
GB
69582014-06-19 Gary Benson <gbenson@redhat.com>
6959
6960 * utils.h (resource_limit_kind): New enum.
6961 (can_dump_core): New declaration.
6962 (warn_cant_dump_core): Likewise.
6963 (dump_core): Likewise.
6964 * utils.c (dump_core): Made nonstatic. Added new
6965 parameter "limit_kind".
6966 (can_dump_core): Made nonstatic. Moved printing code to...
6967 (warn_cant_dump_core): New function.
6968 (can_dump_core_warn): Likewise.
6969 (internal_vproblem): Replace calls to can_dump_core with
6970 calls to can_dump_core_warn. Supply new argument to each.
6971
57fcfb1b
GB
69722014-06-19 Gary Benson <gbenson@redhat.com>
6973
6974 * utils.h (demangler_vwarning): New declaration.
6975 (demangler_warning): Likewise.
6976 * utils.c (struct internal_problem)
6977 <user_settable_should_quit>: New field.
6978 <user_settable_should_dump_core>: Likewise
6979 (internal_error_problem): Add values for above new fields.
6980 (internal_warning_problem): Likewise.
6981 (demangler_warning_problem): New static global.
6982 (demangler_vwarning): New function.
6983 (demangler_warning): Likewise.
6984 (add_internal_problem_command): Selectively add commands.
6985 (_initialize_utils): New internal problem command.
6986 * maint.c (maintenance_demangler_warning): New function.
6987 (_initialize_maint_cmds): New command.
6988
17a40b44
TT
69892014-06-18 Tom Tromey <tromey@redhat.com>
6990
6991 * f-valprint.c (info_common_command_for_block): Update.
6992 * symtab.h (struct general_symbol_info) <common_block>: Now
6993 const.
6994
346d1dfe
TT
69952014-06-18 Tom Tromey <tromey@redhat.com>
6996
6997 * symtab.h (struct symtab) <blockvector>: Now const.
6998 * ada-lang.c (ada_add_global_exceptions): Update.
6999 * buildsym.c (augment_type_symtab): Update.
7000 * dwarf2read.c (dw2_lookup_symbol): Update.
7001 * jit.c (finalize_symtab): Update.
7002 * jv-lang.c (add_class_symtab_symbol): Update.
7003 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7004 Update.
7005 * objfiles.c (objfile_relocate1): Update.
7006 * psymtab.c (lookup_symbol_aux_psymtabs)
7007 (maintenance_check_psymtabs): Update.
7008 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7009 Update.
7010 * spu-tdep.c (spu_catch_start): Update.
7011 * symmisc.c (dump_symtab_1): Update.
7012 * symtab.c (lookup_global_symbol_from_objfile)
7013 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7014 (basic_lookup_transparent_type_quick)
7015 (basic_lookup_transparent_type, find_pc_sect_symtab)
7016 (find_pc_sect_line, search_symbols): Update.
7017 * block.c (find_block_in_blockvector): Make "bl" const.
7018 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7019 const.
7020 (blockvector_contains_pc): Make "bv" const.
7021 (block_for_pc_sect): Update.
7022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7023 (blockvector_contains_pc): Update.
7024 * breakpoint.c (resolve_sal_pc): Update.
7025 * inline-frame.c (block_starting_point_at): Update.
7026
1834676b
TT
70272014-06-18 Tom Tromey <tromey@redhat.com>
7028
7029 * completer.c (complete_line): Make "line_buffer" const.
7030 * completer.h (complete_line): Update.
7031
ac1a991b
TT
70322014-06-18 Tom Tromey <tromey@redhat.com>
7033
7034 * symtab.c (add_macro_name): Remove unneeded cast.
7035
5bc98e52
TT
70362014-06-18 Tom Tromey <tromey@redhat.com>
7037
7038 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7039 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7040
8236def8
TT
70412014-06-18 Tom Tromey <tromey@redhat.com>
7042
7043 * probe.c (info_probes_for_ops): Make "arg" const.
7044 * probe.h (info_probes_for_ops): Update.
7045
3977b71f
TT
70462014-06-18 Tom Tromey <tromey@redhat.com>
7047
7048 * varobj.c (varobj_create): Update.
7049 * valops.c (value_of_this): Update.
7050 * tracepoint.c (add_local_symbols, scope_info): Update.
7051 * symtab.h (struct general_symbol_info) <block>: Now const.
7052 * symtab.c (skip_prologue_sal)
7053 (default_make_symbol_completion_list_break_on)
7054 (skip_prologue_using_sal): Update.
7055 * stack.h (iterate_over_block_locals)
7056 (iterate_over_block_local_vars): Update.
7057 * stack.c (print_frame_args): Update.
7058 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7059 parameter const.
7060 (get_selected_block): Make return type const.
7061 * python/py-frame.c (frapy_block): Update.
7062 * python/py-block.c (gdbpy_block_for_pc): Update.
7063 * p-exp.y (%union) <bval>: Now const.
7064 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7065 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7066 * m2-exp.y (%union) <bval>: Now const.
7067 * linespec.c (get_current_search_block): Make return type const.
7068 (create_sals_line_offset, find_label_symbols): Update.
7069 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7070 Update.
7071 (block_starting_point_at): Make "block" const.
7072 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7073 (check_exception_resume): Update.
7074 * guile/scm-frame.c (gdbscm_frame_block): Update.
7075 * guile/scm-block.c (gdbscm_lookup_block): Update.
7076 * frame.h (get_frame_block): Update.
7077 (get_selected_block): Make return type const.
7078 * frame.c (frame_id_inner): Update.
7079 * f-valprint.c (info_common_command_for_block)
7080 (info_common_command): Update.
7081 * dwarf2loc.c (dwarf2_find_location_expression)
7082 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7083 (locexpr_describe_location_piece): Update.
7084 * c-exp.y (%union) <bval>: Now const.
7085 * breakpoint.c (resolve_sal_pc): Update.
7086 * blockframe.c (get_frame_block):Make return type const.
7087 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7088 (block_innermost_frame): Update.
7089 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7090 (block_for_pc, block_for_pc_sect): Update.
7091 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7092 'pblock' const.
7093 (block_for_pc_sect, block_for_pc): Make return type const.
7094 * ax-gdb.c (gen_expr): Update.
7095 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7096 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7097 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7098 (ada_read_var_value): Update.
7099 * ada-exp.y (struct name_info) <block>: Now const.
7100 (%union): Likewise.
7101 (block_lookup): Constify.
7102
b9228891
GB
71032014-06-18 Gary Benson <gbenson@redhat.com>
7104
7105 * nat/i386-dregs.h: New file.
7106 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7107 * i386-nat.h (i386-dregs.h): New include.
7108 (DR_FIRSTADDR): Now in i386-dregs.h.
7109 (DR_LASTADDR): Likewise.
7110 (DR_NADDR): Likewise.
7111 (DR_STATUS): Likewise.
7112 (DR_CONTROL): Likewise.
7113 (i386_debug_reg_state): Likewise.
7114 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7115
a1aa2221
LM
71162014-06-18 Don Breazeal <donb@codesourcery.com>
7117
7118 * breakpoint.c (set_longjmp_breakpoint): Call
7119 momentary_breakpoint_from_master with additional argument.
7120 (set_longjmp_breakpoint_for_call_dummy): Call
7121 momentary_breakpoint_from_master with additional argument.
7122 (set_std_terminate_breakpoint): Call
7123 momentary_breakpoint_from_master with additional argument.
7124 (momentary_breakpoint_from_master): Add argument to function
7125 definition and use it to initialize structure member flag.
74228e77 7126 (clone_momentary_breakpoint): Call
a1aa2221
LM
7127 momentary_breakpoint_from_master with additional argument.
7128 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7129 member flags set in momentary_breakpoint_from_master.
7130
4be83cc2
GB
71312014-06-18 Gary Benson <gbenson@redhat.com>
7132
7133 * i386-nat.c (i386_show_dr): Renamed to
7134 i386_dr_show and made nonstatic. All uses updated.
7135 (i386_length_and_rw_bits): Renamed to
7136 i386_dr_length_and_rw_bits and made nonstatic.
7137 All uses updated.
7138 (i386_insert_aligned_watchpoint): Renamed to
7139 i386_dr_insert_aligned_watchpoint and made nonstatic.
7140 All uses updated.
7141 (i386_remove_aligned_watchpoint): Renamed to
7142 i386_dr_remove_aligned_watchpoint and made nonstatic.
7143 All uses updated.
7144 (i386_update_inferior_debug_regs): Renamed to
7145 i386_dr_update_inferior_debug_regs and made nonstatic.
7146 All uses updated.
7147
131aa0d4
GB
71482014-06-18 Gary Benson <gbenson@redhat.com>
7149
7150 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7151 (i386_dr_low_can_set_control): Likewise.
7152 (i386_dr_low_set_addr): Likewise.
7153 (i386_dr_low_set_control): Likewise.
7154 (i386_dr_low_get_addr): Likewise.
7155 (i386_dr_low_get_status): Likewise.
7156 (i386_dr_low_get_control): Likewise.
7157 (i386_insert_aligned_watchpoint): Use new macros.
7158 (i386_update_inferior_debug_regs): Likewise.
7159 (i386_stopped_data_address): Likewise.
7160
d9305f7f
GB
71612014-06-18 Gary Benson <gbenson@redhat.com>
7162
7163 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7164 New parameter. All uses updated.
7165
ea008da4
GB
71662014-06-18 Gary Benson <gbenson@redhat.com>
7167
7168 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7169 All uses updated.
7170
1b6d4134
GB
71712014-06-18 Gary Benson <gbenson@redhat.com>
7172
7173 * i386-nat.c (debug_printf): New macro.
7174 (i386_get_debug_register_length): Likewise.
7175 (TARGET_HAS_DR_LEN_8): Use above macro.
7176 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7177 and printf_unfiltered. Use phex to format values.
7178
9b4550ef
GB
71792014-06-18 Gary Benson <gbenson@redhat.com>
7180
7181 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7182 Make const.
7183
6e62758f
GB
71842014-06-18 Gary Benson <gbenson@redhat.com>
7185
7186 * i386-nat.c: Comment changes.
7187
51c79e94
GB
71882014-06-18 Gary Benson <gbenson@redhat.com>
7189
7190 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7191
3e11889a
GB
71922014-06-18 Gary Benson <gbenson@redhat.com>
7193
7194 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7195 (i386_insert_aligned_watchpoint): Likewise.
7196 (i386_remove_aligned_watchpoint): Likewise.
7197 (i386_handle_nonaligned_watchpoint): Likewise.
7198
fc6e2f03
GB
71992014-06-18 Gary Benson <gbenson@redhat.com>
7200
7201 * i386-nat.c: Whitespace changes.
7202
2afe7d50
SB
72032014-06-17 Samuel Bronson <naesten@gmail.com>
7204
7205 * MAINTAINERS: Update Roland McGrath's email address.
7206 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7207 Red Hat a while ago, and giving me a current address.
2afe7d50 7208
3bca49ee
TT
72092014-06-17 Tom Tromey <tromey@redhat.com>
7210
7211 * utils.h (savestring): Remove declaration.
7212
6e366df1
TT
72132014-06-17 Tom Tromey <tromey@redhat.com>
7214
7215 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7216
6be47f0c
KS
72172014-06-16 Keith Seitz <keiths@redhat.com>
7218
7219 PR mi/15863
7220 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7221 to update the varobj if inferior_ptid is null_ptid.
7222
7bc112c1
TT
72232014-06-16 Tom Tromey <tromey@redhat.com>
7224
7225 * target.h (struct target_ops) <to_info_proc>: Make parameter
7226 const.
7227 (target_info_proc): Update.
7228 * target.c (target_info_proc): Make "args" const.
7229 * procfs.c (procfs_info_proc): Update.
7230 * linux-tdep.c (linux_info_proc): Update.
7231 (linux_core_info_proc_mappings): Make "args" const.
7232 (linux_core_info_proc): Update.
7233 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7234 * gdbarch.c: Rebuild.
7235 * gdbarch.h: Rebuild.
7236 * corelow.c (core_info_proc): Update.
7237
fee354ee
TT
72382014-06-16 Tom Tromey <tromey@redhat.com>
7239
7240 * target.h (struct target_ops) <to_disconnect>: Make parameter
7241 const.
7242 (target_disconnect): Update.
7243 * target.c (target_disconnect): Make "args" const.
7244 * target-delegates.c: Rebuild.
7245 * remote.c (remote_disconnect): Update.
7246 * record.h (record_disconnect): Update.
7247 * record.c (record_disconnect): Update.
7248 * inf-child.c (inf_child_disconnect): Update.
7249
a30bf1f1
TT
72502014-06-16 Tom Tromey <tromey@redhat.com>
7251
7252 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7253 * target.c (debug_to_rcmd, default_rcmd): Update.
7254 * target-delegates.c: Rebuild.
7255 * remote.c (remote_rcmd): Update.
7256 * monitor.c (monitor_rcmd): Update.
7257
d03de421
PA
72582014-06-16 Pedro Alves <palves@redhat.com>
7259
7260 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7261 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7262 have OBJF_SHARED set.
7263 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7264 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7265 instead of OBJF_USERLOADED.
7266 * objfiles.h (OBJF_SHARED): Update comment.
7267 (userloaded_objfile_contains_address_p): Rename to ...
7268 (shared_objfile_contains_address_p): ... this, and update
7269 comments.
7270 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7271 new objfile.
7272 (remove_symbol_file_command): Skip objfiles that don't have
7273 OBJF_SHARED set.
7274
99f4262f
TT
72752014-06-16 Tom Tromey <tromey@redhat.com>
7276
7277 * minsyms.h (prim_record_minimal_symbol)
7278 (prim_record_minimal_symbol_and_info): Update comments.
7279
97d66cc6
EZ
72802014-06-14 Eli Zaretskii <eliz@gnu.org>
7281
7282 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7283 or --without-guile, according to how GDB was built.
7284
635c7e8a
TT
72852014-06-13 Tom Tromey <tromey@redhat.com>
7286
7287 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7288 to help_list.
7289 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7290 to help_list.
7291 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7292 help_list.
7293 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7294 help_list.Pass all_commands, not -1, to help_list.
7295 * cli/cli-dump.c (dump_command, append_command)
7296 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7297 (binary_dump_command, binary_append_command): Pass all_commands,
7298 not -1, to help_list.
7299 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7300 -1, to help_list.
7301 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7302 -1, to help_list.
7303 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7304 help_list.
7305 * top.c (set_history): Pass all_commands, not -1, to help_list.
7306 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7307 all_commands, not -1, to help_list.
7308 * symfile.c (overlay_command): Pass all_commands, not -1, to
7309 help_list.
7310 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7311 help_list.
7312 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7313 help_list.
7314 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7315 -1, to help_list.
7316 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7317 not -1, to help_list.
7318 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7319 not -1, to help_list.
7320 * maint.c (maintenance_command, maintenance_info_command)
7321 (maintenance_print_command, maintenance_set_cmd): Pass
7322 all_commands, not -1, to help_list.
7323 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7324 help_list.
7325 * language.c (set_check): Pass all_commands, not -1, to help_list.
7326 * infcmd.c (unset_command): Pass all_commands, not -1, to
7327 help_list.
7328 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7329 help_list.
7330 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7331 help_list.
7332 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7333 help_list.
7334 * breakpoint.c (save_command): Pass all_commands, not -1, to
7335 help_list.
7336 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7337 all_commands, not -1, to help_list.
7338
b94ade42
PL
73392014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7340
7341 * regcache.c (struct register_to_invalidate): New structure.
7342 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7343 functions.
7344 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7345
31f628ae
YQ
73462014-06-12 Yao Qi <yao@codesourcery.com>
7347
7348 * varobj.c (varobj_get_num_children): Call
7349 varobj_is_dynamic_p.
7350 (varobj_list_children): Likewise.
7351 (varobj_update): Likewise. Update comments.
7352
cde5ef40
YQ
73532014-06-12 Yao Qi <yao@codesourcery.com>
7354
7355 * varobj.c (varobj_pretty_printed_p): Rename to ...
7356 (varobj_is_dynamic_p): ... this. New function.
7357 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7358 (varobj_is_dynamic_p): Declare.
7359 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7360 (mi_print_value_p, varobj_update_one): Likewise.
7361
576ea091
YQ
73622014-06-12 Pedro Alves <pedro@codesourcery.com>
7363 Yao Qi <yao@codesourcery.com>
7364
7365 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7366 (varobj_get_iterator): Wrap up code for pretty-printer by
7367 "#if HAVE_PYTHON" and "#endif".
7368 (update_dynamic_varobj_children): Likewise.
7369
827f100c
YQ
73702014-06-12 Pedro Alves <pedro@codesourcery.com>
7371 Yao Qi <yao@codesourcery.com>
7372
7373 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7374 gdb_python_initialized is false. Move some code from varobj.c.
7375 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7376 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7377 (struct varobj_item): Moved to varobj-iter.h".
7378 (varobj_clear_saved_item): New function.
7379 (update_dynamic_varobj_children): Move python-related code to
7380 py-varobj.c.
7381 (free_variable): Call varobj_clear_saved_item and
7382 varobj_iter_delete.
7383
e5250216
YQ
73842014-06-12 Pedro Alves <pedro@codesourcery.com>
7385 Yao Qi <yao@codesourcery.com>
7386
7387 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7388 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7389 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7390 (py-varobj.o): New rule.
7391 * python/py-varobj.c: New file.
7392 * python/python-internal.h (py_varobj_get_iterator): Declare.
7393 * varobj-iter.h: New file.
7394 * varobj.c: Include "varobj-iter.h"
7395 (struct varobj) <child_iter>: Change its type from "PyObject *"
7396 to "struct varobj_iter *".
7397 <saved_item>: Likewise.
7398 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7399 [HAVE_PYTHON] (varobj_get_iterator): New function.
7400 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7401 python-specific code to python/py-varobj.c.
7402 (install_visualizer): Call varobj_iter_delete instead of
7403 Py_XDECREF.
7404 * varobj.h (varobj_ensure_python_env): Declare.
7405
5a2e0d6e
YQ
74062014-06-12 Yao Qi <yao@codesourcery.com>
7407
7408 * varobj.c (struct varobj_item): New structure.
7409 (create_child_with_value): Update declaration.
7410 (varobj_add_child): Replace arguments 'name' and 'value' with
7411 'item'. All callers updated.
7412 (install_dynamic_child): Likewise.
7413 (update_dynamic_varobj_children): Likewise.
7414 (varobj_add_child): Likewise.
7415 (create_child_with_value): Likewise.
7416
919b9a93
JB
74172014-06-11 Joel Brobecker <brobecker@adacore.com>
7418
7419 * NEWS: Create a new section for the next release branch.
7420 Rename the section of the current branch, now that it has
7421 been cut.
7422
71a55bdf
JB
74232014-06-11 Joel Brobecker <brobecker@adacore.com>
7424
7425 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7426 * version.in: Bump version to 7.8.50.DATE-cvs.
7427
364fe1f7
PA
74282014-06-11 Pedro Alves <palves@redhat.com>
7429
7430 PR remote/17028
7431 * ser-mingw.c (net_windows_socket_check_pending): New function.
7432 (net_windows_select_thread): Ignore spurious wakeups. Use
7433 net_windows_socket_check_pending.
7434 (net_windows_wait_handle): Check for pending events with
7435 ioctlsocket, through net_windows_socket_check_pending, instead of
7436 checking the socket's event.
7437
5a6c7709
SC
74382014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7439
7440 * python/python-internal.h (gdb_PyObject_GetAttrString)
7441 (gdb_PyObject_HasAttrString): New inline function definitions.
7442 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7443 char * of the second argument to PyObject_GetAttrString.
74228e77 7444
0e58ee40
JB
74452014-06-10 Joel Brobecker <brobecker@adacore.com>
7446
7447 * serial.c (serial_write): Fix index of character to be printed
7448 in call to serial_logchar when serial debug traces are enabled.
7449
d190df30
JB
74502014-06-10 Joel Brobecker <brobecker@adacore.com>
7451
7452 * gdbtypes (resolve_dynamic_range): Add function description.
7453
b4b01d36
PA
74542014-06-09 Pedro Alves <palves@redhat.com>
7455
7456 * linux-nat.c (linux_child_follow_fork): Initialize status with
7457 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7458 inner block. Only pass the signal to PTRACE_DETACH if in pass
7459 state.
7460
3657956b
GB
74612014-06-09 Gary Benson <gbenson@redhat.com>
7462
7463 * common/signals.c (gdb_signal_from_host): Reorder to separate
7464 the always-available ANSI-standard signals from the signals that
7465 require checking.
7466 (do_gdb_signal_to_host): Likewise.
7467 * proc-events.c (signal_table): Likewise.
7468
c077881a
HZ
74692014-06-08 Hui Zhu <hui@codesourcery.com>
7470
7471 * common/linux-ptrace.c (linux_disable_event_reporting): New
7472 function.
7473 * common/linux-ptrace.h (linux_disable_event_reporting): New
7474 declaration.
7475 * linux-nat.c (linux_child_follow_fork): Do a single step before
7476 detach.
7477
4186eb54
KS
74782014-06-07 Keith Seitz <keiths@redhat.com>
7479
7480 Revert:
7481 PR c++/16253
7482 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7483 from symbol_matches_domain in symtab.c. All local callers
7484 of symbol_matches_domain updated.
7485 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7486 search STRUCT_DOMAIN.
7487 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7488 independently. standard_lookup will do that automatically.
7489 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7490 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7491 (cp_lookup_symbol_in_namespace): Likewise.
7492 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7493 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7494 may return a STRUCT_DOMAIN match.
7495 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7496 * cp-support.c: Include language.h.
7497 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7498 VAR_DOMAIN.
7499 * psymtab.c (match_partial_symbol): Compare the requested
7500 domain with the symbol's domain directly.
7501 (lookup_partial_symbol): Likewise.
7502 * symtab.c (lookup_symbol_in_language): Explain when/why
7503 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7505 appropriate languages.
7506 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7507 and moved to ada-lang.c
7508 (lookup_block_symbol): Explain that this function only returns
7509 symbol matching the requested DOMAIN.
7510 Compare the requested domain with the symbol's domain directly.
7511 (iterate_over_symbols): Compare the requested domain with the
7512 symbol's domain directly.
7513 * symtab.h (symbol_matches_domain): Remove.
7514
25326a28 75152014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7516
7517 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7518 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7519 (gdbscm_guile_version_is_at_least): Declare.
7520 (gdbscm_scm_string_to_int): Declare.
7521 * guile/guile.c (gdbscm_guile_major_version): New global.
7522 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7523 (guile_datadir): New static global.
7524 (gdbscm_guile_data_directory): New function.
7525 (initialize_scheme_side): Update.
7526 (misc_guile_functions): Add guile-data-directory.
7527 (initialize_gdb_module): Fetch guile version number.
7528 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7529 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7530 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7531 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7532 comments.
7533 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7534 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7535 * guile/scm-value.c (gdbscm_value_to_string): Only call
7536 scm_port_conversion_strategy if Guile version >= 2.0.6.
7537
0a770bb2 75382014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7539
7540 * main.c (print_gdb_help): Add -q and --silent.
7541
73ba372c
GB
75422014-06-06 Gary Benson <gbenson@redhat.com>
7543
7544 * common/signals.c: Remove preprocessor conditionals for
7545 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7546 SIGSEGV and SIGTERM.
7547 * proc-events.c: Likewise.
7548
c33b2f12
MM
75492014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7550
7551 * symfile.c (symfile_free_objfile): Remove restriction to
7552 OBJF_USERLOADED.
7553 * symfile-mem.c (symbol_file_add_from_memory): Call
7554 add_target_sections_of_objfile.
7555
fb934770
LC
75562014-06-05 Ludovic Courtès <ludo@gnu.org>
7557
7558 * guile/scm-value.c (gdbscm_history_append_x): Use
7559 'vlscm_get_value_smob_arg_unsafe' instead of
7560 'vlscm_scm_to_value'.
7561
6ef284bd
SM
75622014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7563
7564 PR mi/15806
7565 * utils.c (printchar): Don't escape at all if quoter is NUL.
7566 Update function documentation to clarify effect of parameter
7567 QUOTER.
7568 * remote.c (escape_buffer): Pass '\\' as the quoter to
7569 fputstrn_unfiltered.
7570 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7571 generate the output.
7572 (mi_solib_unloaded): Same.
7573
270c9937
JB
75742014-06-05 Joel Brobecker <brobecker@adacore.com>
7575
7576 * development.sh: Delete.
7577 * Makefile.in (config.status): Adjust dependency on development.sh.
7578 * configure.ac: Adjust development.sh source call.
7579 * configure: Regenerate.
7580
16f691fb
DE
75812014-06-04 Doug Evans <xdje42@gmail.com>
7582
7583 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7584 is_scheme_bkpt, spec.
7585 (bpscm_make_breakpoint_smob): Initialize new members.
7586 (gdbscm_create_breakpoint_x): Split into two ...
7587 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7588 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7589 (scheme_function breakpoint_functions): Update.
7590 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7591 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7592 register-breakpoint!.
7593
ef7cab6b
JB
75942014-06-04 Joel Brobecker <brobecker@adacorer.com>
7595
7596 PR server/17023
7597 * mem-break.c (z_type_supported): Return zero if
7598 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7599
012370f6
TT
76002014-06-04 Tom Tromey <tromey@redhat.com>
7601
7602 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7603 value_from_contents_and_address_unresolved.
7604 (ada_template_to_fixed_record_type_1): Likewise.
7605 (ada_which_variant_applies): Likewise.
7606 * value.h (value_from_contents_and_address_unresolved): Declare.
7607 * value.c (value_from_contents_and_address_unresolved): New
7608 function.
7609 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7610 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7611 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7612
92e2a17f
TT
76132014-06-04 Tom Tromey <tromey@redhat.com>
7614
7615 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7616
c0939df1
TT
76172014-06-04 Tom Tromey <tromey@redhat.com>
7618
7619 * procfs.c (procfs_attach): Make "args" const.
7620 * windows-nat.c (windows_attach): Make "args" const.
7621 * nto-procfs.c (procfs_attach): Make "args" const.
7622 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7623 * go32-nat.c (go32_attach): Make "args" const.
7624 * gnu-nat.c (gnu_attach): Make "args" const.
7625 * darwin-nat.c (darwin_attach): Make "args" const.
7626 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7627 * linux-nat.c (linux_nat_attach): Make "args" const.
7628 * remote.c (extended_remote_attach_1, extended_remote_attach):
7629 Make "args" const.
7630 * target.h (struct target_ops) <to_attach>: Make "args" const.
7631 (find_default_attach): Likewise.
7632 * utils.c (parse_pid_to_attach): Make "args" const.
7633 * utils.h (parse_pid_to_attach): Update.
7634
8eaff7cd
TT
76352014-06-04 Tom Tromey <tromey@redhat.com>
7636
7637 * target-delegates.c: Rebuild.
7638 * target.c (default_thread_address_space): New function.
7639 (target_thread_address_space): Simplify.
7640 * target.h (struct target_ops) <to_thread_address_space>: Add
7641 TARGET_DEFAULT_FUNC.
7642
1913f160
DE
76432014-06-04 Doug Evans <xdje42@gmail.com>
7644
7645 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7646
70ad5bff
MM
76472014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7648
7649 * record-btrace.c: Include event-loop.h and inf-loop.h.
7650 (record_btrace_resume_exec_dir)
7651 (record_btrace_async_inferior_event_handler)
7652 (record_btrace_handle_async_inferior_event): New.
7653 (record_btrace_open): Create async event handler.
7654 (record_btrace_close): Delete async event handler.
7655 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7656 Mark async event handler.
7657 (record_btrace_execution_direction): New.
7658 (init_record_btrace_ops): Initialize to_execution_direction.
7659
b6210538
DE
76602014-06-03 Doug Evans <xdje42@gmail.com>
7661
7662 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7663 (gdbscm_make_parameter): Ditto.
7664
a5b1fd27
DE
76652014-06-03 Doug Evans <dje@google.com>
7666
7667 * exec.c (exec_close_1): Call clear_section_table instead of
7668 resize_section_table.
7669 (clear_section_table): New function.
7670 (resize_section_table): Make static. Rename arg num_added to
7671 adjustment.
7672 * exec.h (clear_section_table): Declare.
7673 (resize_section_table): Delete.
7674 * progspace.c (release_program_space): Call clear_section_table
7675 instead of resize_section_table.
7676
0c6e92a5
SC
76772014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7678
7679 * NEWS (Python Scripting): Add entry about the new xmethods
7680 feature.
7681
883964a7
SC
76822014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7683
7684 * python/py-xmethods.c: New file.
7685 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7686 (objfpy_dealloc): XDECREF on the new xmethods field.
7687 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7688 field.
7689 (objfpy_get_xmethods): New function.
7690 (objfile_getset): New entry 'xmethods'.
7691 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7692 (pspy_dealloc): XDECREF on the new xmethods field.
7693 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7694 field.
7695 (pspy_get_xmethods): New function.
7696 (pspace_getset): New entry 'xmethods'.
7697 * python/python-internal.h: Add declarations for new functions.
7698 * python/python.c (_initialize_python): Invoke
7699 gdbpy_initialize_xmethods.
7700 * python/lib/gdb/__init__.py (xmethods): New
7701 attribute.
7702 * python/lib/gdb/xmethod.py: New file.
7703 * python/lib/gdb/command/xmethods.py: New file.
7704
58992dc5
SC
77052014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7706
7707 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7708 best match method returned by find_overload_match is an xmethod.
7709 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7710 the best matching operator returned by find_overload_match is an
7711 xmethod.
7712 * valops.c: #include "extension.h".
7713 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7714 Return void. The list of matching source methods is returned in
7715 "fn_list" and a vector of matching debug method workers is
7716 returned in "xm_worker_vec". Update all callers.
7717 (value_find_oload_method_list): Likewise.
7718 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7719 non-NULL, then the index of the best matching method in this
7720 vector is returned. Update all callers.
7721 (find_overload_match): Include xmethods while performing overload
7722 resolution.
7723
e81e7f5e
SC
77242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7725
7726 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7727 * extension-priv.h (struct extension_language_ops): Add the
7728 xmethod interface.
7729 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7730 get_matching_xmethod_workers, get_xmethod_argtypes,
7731 invoke_xmethod, free_xmethod_worker,
7732 free_xmethod_worker_vec): New functions.
7733 * extension.h: #include "common/vec.h".
7734 New function declarations.
7735 (struct xmethod_worker): New struct.
7736 (VEC (xmethod_worker_ptr)): New vector type.
7737 (xmethod_worker_ptr): New typedef.
7738 (xmethod_worker_vec): Likewise.
7739 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7740 builtin_type.
7741 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7742 (struct builtin_type): New field "xmethod".
7743 * valarith.c (value_ptradd): Assert that the value argument is not
7744 lval_xcallable.
7745 * valops.c (value_must_coerce_to_target): Return 0 for
7746 lval_xcallable values.
7747 * value.c (struct value): New field XM_WORKER in the field
7748 LOCATION.
7749 (value_address, value_raw_address): Return 0 for lval_xcallable
7750 values.
7751 (set_value_address): Assert that the value is not an
7752 lval_xcallable.
7753 (value_free): Free the associated xmethod worker when freeing
7754 lval_xcallable values.
7755 (set_value_component_location): Assert that the WHOLE value is not
7756 lval_xcallable.
7757 (value_of_xmethod, call_xmethod): New functions.
7758 * value.h: Declare "struct xmethod_worker".
7759 Declare new functions value_of_xmethod, call_xmethod.
7760
ef370185
JB
77612014-06-03 Joel Brobecker <brobecker@adacore.com>
7762 Pedro Alves <palves@redhat.com>
7763
7764 PR breakpoints/17000
7765 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7766 New function, extracted from software_breakpoint_inserted_here_p.
7767 (software_breakpoint_inserted_here_p): Replace factored out code
7768 by call to find_non_raw_software_breakpoint_inserted_here.
7769 (bp_target_info_copy_insertion_state): New function.
7770 (bkpt_insert_location): Handle the case of a single-step
7771 breakpoint already inserted at the same address.
7772 (bkpt_remove_location): Handle the case of a single-step
7773 breakpoint still inserted at the same address.
7774 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7775 breakpoint already inserted at the same address.
7776 (deprecated_remove_raw_breakpoint): Handle the case of a
7777 non-raw breakpoint still inserted at the same address.
7778 (find_single_step_breakpoint): New function, extracted from
7779 single_step_breakpoint_inserted_here_p.
7780 (find_single_step_breakpoint): New function,
7781 factored out from single_step_breakpoint_inserted_here_p.
7782 (single_step_breakpoint_inserted_here_p): Reimplement.
7783
1e2ccb61
BM
77842014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7785
7786 Pushed by Joel Brobecker <brobecker@adacore.com>
7787 * source.c (show_substitute_path_command): Fix display of matching
7788 substitution rules.
7789
d3448d85
GB
77902014-06-03 Gary Benson <gbenson@redhat.com>
7791
7792 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7793
06eb1586
DE
77942014-06-02 Doug Evans <xdje42@gmail.com>
7795
7796 Add parameter support for Guile.
7797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7798 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7799 (scm-param.o): New rule.
7800 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7801 (gdbscm_misc_error): Declare.
7802 (gdbscm_canonicalize_command_name): Declare.
7803 (gdbscm_scm_to_host_string): Declare.
7804 (gdbscm_scm_from_host_string): Declare.
7805 (gdbscm_initialize_parameters): Declare.
7806 * guile/guile.c (initialize_gdb_module): Call
7807 gdbscm_initialize_parameters.
7808 * guile/lib/gdb.scm: Export parameter symbols.
7809 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7810 cmdscm_canonicalize_name and made public. All callers updated.
7811 * guile/scm-exception.c (gdbscm_misc_error): New function.
7812 * guile/scm-param.c: New file.
7813 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7814 (gdbscm_scm_to_host_string): New function.
7815 (gdbscm_scm_from_host_string): New function.
7816 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7817
e698b8c4
DE
78182014-06-02 Doug Evans <xdje42@gmail.com>
7819
7820 Add command support for Guile.
7821 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7822 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7823 (scm-cmd.o): New rule.
7824 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7825 (gdbscm_user_error_p): Declare.
7826 (gdbscm_parse_command_name): Declare.
7827 (gdbscm_valid_command_class_p): Declare.
7828 (gdbscm_initialize_commands): Declare.
7829 * guile/guile.c (initialize_gdb_module): Call
7830 gdbscm_initialize_commands.
7831 * guile/lib/gdb.scm: Export command symbols.
7832 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7833 (throw-user-error): New function.
7834 * guile/scm-cmd.c: New file.
7835 * guile/scm-exception.c (user_error_symbol): New static global.
7836 (gdbscm_user_error_p): New function.
7837 (gdbscm_initialize_exceptions): Set user_error_symbol.
7838 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7839
fb1f94b0
PM
78402014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7841
7842 * top.c (command_loop): Handle comments here...
7843 (command_line_input): ... not here.
7844
ded03782
DE
78452014-06-02 Doug Evans <xdje42@gmail.com>
7846
7847 Add progspace support for Guile.
7848 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7849 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7850 (scm-progspace.o): New rule.
7851 * guile/guile-internal.h (pspace_smob): New typedef.
7852 (psscm_pspace_smob_pretty_printers): Declare.
7853 (psscm_pspace_smob_from_pspace): Declare.
7854 (psscm_scm_from_pspace): Declare.
7855 * guile/guile.c (initialize_gdb_module): Call
7856 gdbscm_initialize_pspaces.
7857 * guile/lib/gdb.scm: Export progspace symbols.
7858 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7859 support.
7860 (append-pretty-printer!): Ditto.
7861 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7862 Implement.
7863 * guile/scm-progspace.c: New file.
7864
397998fc
AM
78652014-06-03 Alan Modra <amodra@gmail.com>
7866
7867 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7868 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7869
6aa5f3a6
DE
78702014-06-02 Doug Evans <dje@google.com>
7871
7872 Add support for skeletonless type units.
7873 * dwarf2read.c (struct dwarf2_per_objfile): New member
7874 n_allocated_type_units.
7875 (struct dwarf2_per_objfile) <tu_stats>: New member
7876 nr_all_type_units_reallocs.
7877 (create_signatured_type_table_from_index): Initialize
7878 n_allocated_type_units
7879 (create_all_type_units): Ditto.
7880 (add_type_unit): Move up in file. New arg slot.
7881 All callers updated. Increase space for all_type_units more
7882 efficiently.
7883 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7884 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7885 (lookup_dwp_signatured_type): Ditto.
7886 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7887 All callers updated.
7888 (build_type_psymtabs_1): Leave type_unit_groups as
7889 NULL if no TUs present.
7890 (print_tu_stats): New function.
7891 (process_skeletonless_type_unit): New function.
7892 (process_dwo_file_for_skeletonless_type_units): New
7893 function.
7894 (process_skeletonless_type_units): New function.
7895 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7896 Call print tu_stats if debugging enabled.
7897
41fac0cf
PA
78982014-06-02 Pedro Alves <palves@redhat.com>
7899
7900 * breakpoint.c (build_target_command_list): Don't build a command
7901 list if we have any duplicate location that isn't a dprintf.
7902
cd1608cc
PA
79032014-06-02 Pedro Alves <palves@redhat.com>
7904
7905 * breakpoint.c (dprintf_breakpoint_hit): New function.
7906 (initialize_breakpoint_ops): Install it as dprintf's
7907 breakpoint_hit method.
7908
486ef3b9
JB
79092014-06-02 Joel Brobecker <brobecker@adacore.com>
7910
7911 * source.c (substitute_path_rule_matches): Simplify using
7912 filename_ncmp instead of FILENAME_CMP.
7913
230cd560
JB
79142014-06-02 Joel Brobecker <brobecker@adacore.com>
7915
7916 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7917
16954d5d
LC
79182014-06-01 Ludovic Courtès <ludo@gnu.org>
7919
7920 * configure.ac: When Guile is available, check for the
7921 availability of 'scm_new_smob'.
7922 * configure, config.h.in: Regenerate.
7923 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7924 function.
7925
53e8a631
AB
79262014-05-30 Andrew Burgess <aburgess@broadcom.com>
7927
7928 * frame.c (struct frame_info): Add stop_string field.
7929 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7930 (get_prev_frame_always): Old content moved into
7931 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7932 TRY_CATCH, handle MEMORY_ERROR exceptions.
7933 (frame_stop_reason_string): New function definition.
7934 * frame.h (unwind_stop_reason_to_string): Extend comment to
7935 mention frame_stop_reason_string.
7936 (frame_stop_reason_string): New function declaration.
7937 * stack.c (frame_info): Switch to frame_stop_reason_string.
7938 (backtrace_command_1): Switch to frame_stop_reason_string.
7939 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7940 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7941 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7942
70e38b8e
AB
79432014-05-30 Andrew Burgess <aburgess@broadcom.com>
7944
7945 * frame.c (frame_stop_reason_string): Rename to ...
7946 (unwind_stop_reason_to_string): this.
7947 * frame.h (frame_stop_reason_string): Rename to ...
7948 (unwind_stop_reason_to_string): this.
7949 * stack.c (frame_info): Update call to frame_stop_reason_string.
7950 (backtrace_command_1): Likewise.
7951 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7952 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7953
938f0e2f
AB
79542014-05-30 Andrew Burgess <aburgess@broadcom.com>
7955
7956 * frame.c (remove_prev_frame): New function.
7957 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7958 remove_prev_frame.
7959
a09dd441
PA
79602014-05-29 Pedro Alves <palves@redhat.com>
7961
7962 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7963 and make it const. When a single-step decays to a continue,
7964 clear 'step', not 'hw_step'. Pass whether the caller wanted
7965 to step to user_visible_resume_ptid, not what we ask the
7966 target to do.
7967
bdc36728
PA
79682014-05-29 Pedro Alves <palves@redhat.com>
7969
7970 * infrun.c (process_event_stop_test, handle_step_into_function)
7971 (handle_step_into_function_backward): Adjust.
7972 Don't set the even thread's stop_step and call stop_waiting before
7973 calling end_stepping_range. Instead do that ...
7974 (end_stepping_range): ... here. Take an ecs pointer parameter.
7975
22bcd14b
PA
79762014-05-29 Pedro Alves <palves@redhat.com>
7977
7978 * infrun.c (stop_stepping): Rename to ...
7979 (stop_waiting): ... this.
7980 (proceed): Update comment.
7981 (process_event_stop_test, handle_inferior_event)
7982 (handle_signal_stop, handle_step_into_function)
7983 (handle_step_into_function_backward): Update.
7984
4ae57c05
PA
79852014-05-29 Pedro Alves <palves@redhat.com>
7986
7987 * infcall.c (run_inferior_call): Don't check whether the current
7988 thread is running after the proceed call.
7989
329ea579
PA
79902014-05-29 Pedro Alves <palves@redhat.com>
7991 Tom Tromey <tromey@redhat.com>
7992
7993 * NEWS: Mention "maint set target-async", "set mi-async", and that
7994 background execution commands are now always available.
7995 * target.h (target_async_permitted): Update comment.
7996 * target.c (target_async_permitted, target_async_permitted_1):
7997 Default to 1.
7998 (set_target_async_command): Rename to ...
7999 (maint_set_target_async_command): ... this.
8000 (show_target_async_command): Rename to ...
8001 (maint_show_target_async_command): ... this.
8002 (_initialize_target): Adjust.
8003 * infcmd.c (prepare_execution_command): Make extern.
8004 * inferior.h (prepare_execution_command): Declare.
8005 * infrun.c (set_observer_mode): Leave target async alone.
8006 * mi/mi-interp.c (mi_interpreter_init): Install
8007 mi_on_sync_execution_done as sync_execution_done observer.
8008 (mi_on_sync_execution_done): New function.
8009 (mi_execute_command_input_handler): Don't print the prompt if we
8010 just started a synchronous command with an async target.
8011 (mi_on_resume): Check sync_execution before printing prompt.
8012 * mi/mi-main.h (mi_async_p): Declare.
8013 * mi/mi-main.c: Include gdbcmd.h.
8014 (mi_async_p): New function.
8015 (mi_async, mi_async_1): New globals.
8016 (set_mi_async_command, show_mi_async_command, mi_async): New
8017 functions.
8018 (exec_continue): Call prepare_execution_command.
8019 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8020 (mi_execute_async_cli_command): Use mi_async_p.
8021 (_initialize_mi_main): Install "set mi-async". Make
8022 "target-async" a deprecated alias.
8023
92bcb5f9
PA
80242014-05-29 Pedro Alves <palves@redhat.com>
8025
8026 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8027 (_initialize_cli_interp): Adjust.
8028 * event-loop.c: Include "observer.h".
8029 (start_event_loop): Notify 'command_error' observers instead of
8030 calling display_gdb_prompt. Remove FIXME comment.
8031 * event-top.c (display_gdb_prompt): Remove call into the
8032 interpreters.
8033 * inf-loop.c: Include "observer.h".
8034 (inferior_event_handler): Notify 'command_error' observers instead
8035 of calling display_gdb_prompt.
8036 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8037 observers instead of calling display_gdb_prompt.
8038 * interps.c (interp_set): Don't call display_gdb_prompt.
8039 (current_interp_display_prompt_p): Delete.
8040 * interps.h (interp_prompt_p): Delete declaration.
8041 (interp_prompt_p_ftype): Delete.
8042 (struct interp_procs) <prompt_proc_p>: Delete field.
8043 (current_interp_display_prompt_p): Delete declaration.
8044 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8045 (_initialize_mi_interp): Adjust.
8046 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8047 'command_error' observers.
8048 (tui_on_sync_execution_done, tui_on_command_error): New
8049 functions.
8050 (tui_display_prompt_p): Delete.
8051 (_initialize_tui_interp): Adjust.
8052
fd664c91
PA
80532014-05-29 Pedro Alves <palves@redhat.com>
8054
8055 PR gdb/13860
8056 * cli/cli-interp.c: Include infrun.h and observer.h.
8057 (cli_uiout, cli_interp): New globals.
8058 (cli_on_signal_received, cli_on_end_stepping_range)
8059 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8060 functions.
8061 (cli_interpreter_init): Install them as 'end_stepping_range',
8062 'signal_received' 'signal_exited', 'exited' and 'no_history'
8063 observers.
8064 (_initialize_cli_interp): Remove cli_interp local.
8065 * infrun.c (handle_inferior_event): Call the several stop reason
8066 observers instead of printing the stop reason directly.
8067 (end_stepping_range): New function.
8068 (print_end_stepping_range_reason, print_signal_exited_reason)
8069 (print_exited_reason, print_signal_received_reason)
8070 (print_no_history_reason): Make static, and add an uiout
8071 parameter. Print to that instead of to CURRENT_UIOUT.
8072 * infrun.h (print_end_stepping_range_reason)
8073 (print_signal_exited_reason, print_exited_reason)
8074 (print_signal_received_reason print_no_history_reason): New
8075 declarations.
8076 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8077 'mi_uiout'.
8078 <cli_uiout>: New field.
8079 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8080 uiout for CLI output. Install 'signal_received',
8081 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8082 observers.
8083 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8084 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8085 (mi_on_no_history): New functions.
8086 (ui_out_free_cleanup): Delete function.
8087 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8088 instead use the one already stored in the MI interpreter data.
8089 (mi_ui_out): Adjust.
8090 * tui/tui-interp.c: Include infrun.h and observer.h.
8091 (tui_interp): New global.
8092 (tui_on_signal_received, tui_on_end_stepping_range)
8093 (tui_on_signal_exited, tui_on_exited)
8094 (tui_on_no_history): New functions.
8095 (tui_init): Install them as 'end_stepping_range',
8096 'signal_received' 'signal_exited', 'exited' and 'no_history'
8097 observers.
8098 (_initialize_tui_interp): Delete tui_interp local.
8099
8817a6f2
PA
81002014-05-29 Pedro Alves <palves@redhat.com>
8101
8102 PR gdb/15713
8103 * linux-nat.c (linux_nat_resume_callback): Rename the second
8104 parameter to 'except'. Skip LP if it points to EXCEPT.
8105 (linux_nat_resume): Don't mark the event lwp as not stopped
8106 before resuming sibling lwps. Instead ask
8107 linux_nat_resume_callback to skip the event lwp. Mark it as not
8108 stopped after actually resuming it.
8109 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8110 resuming it.
8111 (wait_lwp): Mark the lwp as stopped here.
8112 (stop_wait_callback): Mark the lwp as not stopped right after
8113 resuming it. Don't mark lwps as stopped here.
8114 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8115 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8116
251bde03
PA
81172014-05-29 Pedro Alves <palves@redhat.com>
8118
8119 PR PR15693
8120 * infrun.c (resume): Determine how much to resume depending on
8121 whether the caller wanted a step, not whether we can hardware step
8122 the target. Mark all threads that we intend to run as running,
8123 unless we're calling an inferior function.
8124 (normal_stop): If the thread is running an infcall, don't finish
8125 thread state.
8126 * target.c (target_resume): Don't mark threads as running here.
8127
7f3c0343
JB
81282014-05-28 Joel Brobecker <brobecker@adacore.com>
8129
8130 * serial.c (_initialize_serial): Remove support for
8131 the "set remotebaud" and "show remotebaud" commands.
8132 * NEWS: Add entry documenting the removal of that command.
8133
ee34b3f9
YQ
81342014-05-28 Yao Qi <yao@codesourcery.com>
8135
8136 * charset.c: Fix typo in comments.
8137
add6c04d
GB
81382014-05-27 Gary Benson <gbenson@redhat.com>
8139
8140 * utils.c (internal_vproblem): Prompt for a bug report.
8141
92c48fc5
AW
81422014-05-26 Andy Wingo <wingo@igalia.com>
8143
8144 * guile/scm-arch.c (arscm_mark_arch_smob):
8145 * guile/scm-block.c (bkscm_mark_block_smob)
8146 (bkscm_mark_block_syms_progress_smob):
8147 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8148 * guile/scm-exception.c (exscm_mark_exception_smob):
8149 * guile/scm-frame.c (frscm_mark_frame_smob):
8150 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8151 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8152 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8153 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8154 (ppscm_mark_pretty_printer_worker_smob):
8155 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8156 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8157 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8158 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8159 mark functions.
8160 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8161 function.
8162
b2715b27
AW
81632014-05-26 Andy Wingo <wingo@igalia.com>
8164 Doug Evans <xdje42@gmail.com>
8165
8166 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8167 empty_base_class. All uses updated.
8168 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8169 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8170 Adapt all callers.
8171 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8172 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8173 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8174 (gdbscm_gsmob_has_property_p, add_property_name)
8175 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8176 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8177 (gdb-object-has-property?, gdb-object-properties): Remove.
8178 (gdb-object-kind): Renamed from gsmob-kind.
8179
214ab2da
AW
81802014-05-26 Andy Wingo <wingo@igalia.com>
8181
8182 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8183 * configure: Regenerate.
8184
589fdceb
MM
81852014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8186
8187 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8188
67b5c0c1
MM
81892014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8190
8191 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8192 (replay_memory_access_read_only, replay_memory_access_read_write)
8193 (replay_memory_access_types, replay_memory_access)
8194 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8195 (cmd_set_record_btrace, cmd_show_record_btrace)
8196 (cmd_show_replay_memory_access): New.
8197 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8198 (record_btrace_remove_breakpoint): Replace
8199 record_btrace_allow_memory_access with replay_memory_access.
8200 (_initialize_record_btrace): Add commands.
8201 * NEWS: Announce it.
8202
036cd381
RR
82032014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8204
8205 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8206
c77c1e42
RR
82072014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8208
8209 * MAINTAINERS (Write After Approval): Move self back from
8210 paper trail.
8211
45741a9c
PA
82122014-05-22 Pedro Alves <palves@redhat.com>
8213
8214 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8215 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8216 (disable_randomization, enum exec_direction_kind)
8217 (execution_direction, stop_registers, start_remote)
8218 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8219 (wait_for_inferior, normal_stop, get_last_target_status)
8220 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8221 (insert_step_resume_breakpoint_at_sal)
8222 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8223 (set_step_info, print_stop_event, signal_stop_state)
8224 (signal_print_state, signal_pass_state, signal_stop_update)
8225 (signal_print_update, signal_pass_update)
8226 (update_signals_program_target, clear_exit_convenience_vars)
8227 (displaced_step_dump_bytes, update_observer_mode)
8228 (signal_catch_update, gdb_signal_from_command): Move
8229 declarations ...
8230 * infrun.h: ... to this new file.
8231 * amd64-tdep.c: Include infrun.h.
8232 * annotate.c: Include infrun.h.
8233 * arch-utils.c: Include infrun.h.
8234 * arm-linux-tdep.c: Include infrun.h.
8235 * arm-tdep.c: Include infrun.h.
8236 * break-catch-sig.c: Include infrun.h.
8237 * breakpoint.c: Include infrun.h.
8238 * common/agent.c: Include infrun.h instead of inferior.h.
8239 * corelow.c: Include infrun.h.
8240 * event-top.c: Include infrun.h.
8241 * go32-nat.c: Include infrun.h.
8242 * i386-tdep.c: Include infrun.h.
8243 * inf-loop.c: Include infrun.h.
8244 * infcall.c: Include infrun.h.
8245 * infcmd.c: Include infrun.h.
8246 * infrun.c: Include infrun.h.
8247 * linux-fork.c: Include infrun.h.
8248 * linux-nat.c: Include infrun.h.
8249 * linux-thread-db.c: Include infrun.h.
8250 * monitor.c: Include infrun.h.
8251 * nto-tdep.c: Include infrun.h.
8252 * procfs.c: Include infrun.h.
8253 * record-btrace.c: Include infrun.h.
8254 * record-full.c: Include infrun.h.
8255 * remote-m32r-sdi.c: Include infrun.h.
8256 * remote-mips.c: Include infrun.h.
8257 * remote-notif.c: Include infrun.h.
8258 * remote-sim.c: Include infrun.h.
8259 * remote.c: Include infrun.h.
8260 * reverse.c: Include infrun.h.
8261 * rs6000-tdep.c: Include infrun.h.
8262 * s390-linux-tdep.c: Include infrun.h.
8263 * solib-irix.c: Include infrun.h.
8264 * solib-osf.c: Include infrun.h.
8265 * solib-svr4.c: Include infrun.h.
8266 * target.c: Include infrun.h.
8267 * top.c: Include infrun.h.
8268 * windows-nat.c: Include infrun.h.
8269 * mi/mi-interp.c: Include infrun.h.
8270 * mi/mi-main.c: Include infrun.h.
8271 * python/py-threadevent.c: Include infrun.h.
8272
98eb56a4
PA
82732014-05-22 Pedro Alves <palves@redhat.com>
8274
8275 * infrun.c (handle_inferior_event): Store the exit code for
8276 --return-child-result here, instead of ...
8277 (print_exited_reason): ... here.
8278
17b2616c
PA
82792014-05-21 Pedro Alves <palves@redhat.com>
8280
8281 PR gdb/13860
8282 * gdbthread.h (struct thread_control_state): New field
8283 `command_interp'.
8284 * infrun.c (follow_fork): Copy the new thread control field to the
8285 child fork thread.
8286 (clear_proceed_status_thread): Clear the new thread control field.
8287 (proceed): Set the new thread control field.
8288 * interps.h (command_interp): Declare.
8289 * interps.c (command_interpreter): New global.
8290 (command_interp): New function.
8291 (interp_exec): Set `command_interpreter' while here.
8292 * cli-out.c (cli_uiout_dtor): New function.
8293 (cli_ui_out_impl): Install it.
8294 * mi/mi-interp.c: Include cli-out.h.
8295 (mi_cmd_interpreter_exec): Add comment.
8296 (restore_current_uiout_cleanup): New function.
8297 (ui_out_free_cleanup): New function.
8298 (mi_on_normal_stop): If finishing an execution command started by
8299 a CLI command, or any kind of breakpoint-like event triggered,
8300 print the stop event to the output (CLI) stream.
8301 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8302
5166082f
PA
83032014-05-21 Pedro Alves <palves@redhat.com>
8304
8305 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8306 current source line having changed.
8307 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8308 * infrun.c (normal_stop): Adjust call to
8309 set_current_sal_from_frame.
8310 * source.c (clear_lines_listed_range): New function.
8311 (set_current_source_symtab_and_line, identify_source_line): Clear
8312 the lines listed range.
8313 (line_info): Handle the first "info line" after the current source
8314 line having changed.
8315 * stack.c (print_stack_frame): Remove center handling.
8316 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8317 center sal.line.
8318
c1ee2fb3
PA
83192014-05-21 Pedro Alves <palves@redhat.com>
8320
8321 * inf-child.c (inf_child_mourn_inferior): New function.
8322 * inf-child.h (inf_child_mourn_inferior): New declaration.
8323 * darwin-nat.c (darwin_mourn_inferior): Use
8324 inf_child_mourn_inferior.
8325 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8326 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8327 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8328 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8329 * windows-nat.c (windows_mourn_inferior): Likewise.
8330
5c6d4fb2
DE
83312014-05-21 Doug Evans <xdje42@gmail.com>
8332
250748cb 8333 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8334
4a2722c5
DE
83352014-05-21 Doug Evans <xdje42@gmail.com>
8336
17292b30 8337 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8338 (gdbscm_out_of_range_error): Ditto.
8339 (gdbscm_memory_error): Ditto.
250748cb
DE
8340 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8341 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8342 (gdbscm_out_of_range_error): Update.
8343 (gdbscm_memory_error): Update.
8344 (gdbscm_scm_to_target_string_unsafe): Delete.
8345
6a3cb8e8
PA
83462014-05-21 Pedro Alves <palves@redhat.com>
8347
8348 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8349 globals.
8350 (inf_child_open_target): New function.
8351 (inf_child_open): Use inf_child_open_target to push the target
8352 instead of erroring out.
8353 (inf_child_disconnect, inf_child_close)
8354 (inf_child_maybe_unpush_target): New functions.
8355 (inf_child_target): Install inf_child_disconnect and
8356 inf_child_close. Store a pointer to the returned object.
8357 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8358 declarations.
8359 * target.c (auto_connect_native_target): New global.
8360 (show_default_run_target): New function.
8361 (find_default_run_target): Return NULL if automatically connecting
8362 to the native target is disabled.
8363 (_initialize_target): Install set/show auto-connect-native-target.
8364 * NEWS: Mention "set auto-connect-native-target", and "target
8365 native".
8366 * linux-nat.c (super_close): New global.
8367 (linux_nat_close): Call super_close.
8368 (linux_nat_add_target): Store a pointer to the base class's
8369 to_close method.
8370 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8371 inf_child_maybe_unpush.
8372 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8373 already pushed.
8374 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8375 the inferior. Use inf_child_maybe_unpush_target.
8376 (inf_ttrace_attach): Don't push the target if it is already
8377 pushed.
8378 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8379 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8380 after mourning the inferior. Use inf_child_maybe_unpush_target.
8381 (darwin_attach_pid): Don't push the target if it is already
8382 pushed.
8383 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8384 mourning the inferior. Use inf_child_maybe_unpush_target.
8385 (gnu_detach): Use inf_child_maybe_unpush_target.
8386 * go32-nat.c (go32_create_inferior): Don't push the target if it
8387 is already pushed.
8388 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8389 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8390 (procfs_open): Rename to ...
8391 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8392 comments. Can target_preopen before changing node. Call
8393 inf_child_open_target to push the target explicitly.
8394 (procfs_attach): Don't push the target if it is already pushed.
8395 (procfs_detach): Use inf_child_maybe_unpush_target.
8396 (procfs_create_inferior): Don't push the target if it is already
8397 pushed.
8398 (nto_native_ops): New global.
8399 (procfs_open): Reimplement.
8400 (procfs_native_open): New function.
8401 (init_procfs_targets): Install procfs_native_open as to_open of
8402 "target native". Store a pointer to the "native" target in
8403 nto_native_ops.
8404 * procfs.c (procfs_attach): Don't push the target if it is already
8405 pushed.
8406 (procfs_detach): Use inf_child_maybe_unpush_target.
8407 (procfs_mourn_inferior): Only unpush the target after mourning the
8408 inferior. Use inf_child_maybe_unpush_target.
8409 (procfs_init_inferior): Don't push the target if it is already
8410 pushed.
8411 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8412 if it is already pushed.
8413
930ee1b1
PA
84142014-05-21 Pedro Alves <palves@redhat.com>
8415
8416 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8417 and "procfs" targets are now called "native" instead.
8418
1f5d1b13
PA
84192014-05-21 Pedro Alves <palves@redhat.com>
8420
8421 * go32-nat.c (go32_open): Delete.
8422 (go32_target): Don't override the to_open method.
8423
132f8e03
PA
84242014-05-21 Pedro Alves <palves@redhat.com>
8425
8426 * nto-procfs.c (procfs_can_run): New function.
8427 (nto_procfs_ops): New global.
8428 (init_procfs_targets): New, based on procfs_target. Install
8429 "target native" in addition to "target procfs".
8430 (_initialize_procfs): Call init_procfs_targets instead of adding
8431 the target here.
8432
03c136c3
PA
84332014-05-21 Pedro Alves <palves@redhat.com>
8434
8435 * windows-nat.c (windows_target): Don't override to_shortname,
8436 to_longname or to_doc.
8437
a635d0f3
PA
84382014-05-21 Pedro Alves <palves@redhat.com>
8439
8440 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8441 to_doc.
8442
4f9b5133
PA
84432014-05-21 Pedro Alves <palves@redhat.com>
8444
8445 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8446 to_shortname, to_longname or to_doc.
8447
bc85afde
PA
84482014-05-21 Pedro Alves <palves@redhat.com>
8449
8450 * go32-nat.c (go32_target): Don't override to_shortname,
8451 to_longname or to_doc.
8452
4ebfc96e
PA
84532014-05-21 Pedro Alves <palves@redhat.com>
8454
8455 * inf-child.c (inf_child_open): Remove mention of "child".
8456 (inf_child_target): Rename target to "native" instead of "child".
8457
2648dfed
AA
84582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8459
8460 * Makefile.in (SFILES): Delete "regset.c".
8461 (COMMON_OBS): Delete "regset.o".
8462 * regset.c: Remove.
8463 * regset.h (regset_alloc): Delete prototype.
8464
b13feb94
AA
84652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8466
8467 * sparc-linux-tdep.c (sparc32_linux_gregset)
8468 (sparc32_linux_fpregset): New static regset structures.
8469 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8470 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8471 'fpregset' fields.
8472 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8473 (sparc64_linux_fpregset): New static regset structures.
8474 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8475 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8476 New static regset structures.
8477 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8479 New static regset structures.
8480 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8481 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8482 New static regset structures.
8483 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8484 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8485 New static regset structures.
8486 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8487
b4fd25c9
AA
84882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8489
8490 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8491 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8492 register maps ("regmaps") from "*regset" to "*regmap". Do this
8493 for all regmap types and variables.
8494 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8495 (sparc32_linux_supply_core_gregset)
8496 (sparc32_linux_collect_core_gregset)
8497 (sparc32_linux_supply_core_fpregset)
8498 (sparc32_linux_collect_core_fpregset): Likewise.
8499 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8500 (sparc_gregmap, sparc_fpregmap): ... these.
8501 (sparc_supply_gregset, sparc_collect_gregset)
8502 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8503 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8504 (_initialize_sparc_nat): Rename regmaps.
8505 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8506 (sparc_gregmap, sparc_fpregmap): ... these.
8507 (sparc_supply_gregset, sparc_collect_gregset)
8508 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8509 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8510 Rename macros to...
8511 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8512 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8513 Likewise.
8514 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8515 Rename to...
8516 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8517 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8518 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8519 regmaps.
8520 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8521 (sparc32_bsd_fpregset): Rename to...
8522 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8523 (sparc32_bsd_fpregmap): ... these.
8524 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8525 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8526 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8527 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8528 (struct sparc_gregmap, struct sparc_fpregmap)
8529 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8530 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8531 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8532 (sparc32_supply_regset, sparc32_collect_gregset)
8533 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8534 prototypes.
8535 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8536 (sparc64_linux_ptrace_gregmap): ... this.
8537 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8538 (_initialize_sparc64_linux_nat): Rename regmaps.
8539 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8540 (sparc64_linux_core_gregmap): ... this.
8541 (sparc64_linux_supply_core_gregset)
8542 (sparc64_linux_collect_core_gregset)
8543 (sparc64_linux_supply_core_fpregset)
8544 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8545 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8546 (sparc64_sol2_fpregset): Rename to...
8547 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8548 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8550 regmaps.
8551 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8552 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8553 (sparc64_bsd_fpregset): Rename to...
8554 (struct sparc_gregmap, sparc64_sol2_gregmap)
8555 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8556 (sparc64_bsd_fpregmap): ... these.
8557 (sparc64_supply_gregset, sparc64_collect_gregset)
8558 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8559 prototypes.
8560 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8561 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8562 (sparc64fbsd_gregmap): ... this.
8563 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8564 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8565 Rename regmaps.
8566 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8567 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8568 (sparc64nbsd_collect_fpregset): Likewise.
8569 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8570 (sparc64nbsd_gregmap): ... this.
8571 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8572 regmaps.
8573 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8574 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8575 (sparc64obsd_gregmap): ... this.
8576 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8577 regmaps.
8578 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8579 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8580 (sparc32nbsd_gregmap): ... this.
8581 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8582 regmaps.
8583
8fea3224
AA
85842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8585
8586 * score-tdep.c (score7_linux_gregset): New static regset
8587 structure.
8588 (score7_linux_regset_from_core_section): Remove dynamic regset
8589 allocation.
8590 (score_gdbarch_init): Drop allocation of tdep structure.
8591 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8592
24534243
AA
85932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8594
8595 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8596 regset structures.
8597 (am33_regset_from_core_section): Remove dynamic regset
8598 allocations.
8599
b7195f27
AA
86002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8601
8602 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8603 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8604 structures.
8605 (mips_linux_regset_from_core_section): Remove dynamic regset
8606 allocations.
8607 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8608 'gregset64', 'fpregset', and 'fpregset64'.
8609 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8610 deleted tdep fields.
8611
ecc37a5a
AA
86122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8613
8614 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8615 regset structures.
8616 (amd64_regset_from_core_section): Remove dynamic regset
8617 allocations.
8618 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8619 structure.
8620 (amd64obsd_regset_from_core_section): Remove dynamic regset
8621 allocation.
8622 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8623 Likewise.
8624 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8625 x86-common regset supply function.
8626 * i386-tdep.c (i386_collect_gregset): Make static.
8627 (i386_gregset): New global regset structure.
8628 (i386_fpregset, i386_xstateregset): New static regset structures.
8629 (i386_regset_from_core_section): Remove dynamic regset
8630 allocations.
8631 (i386_gdbarch_init): Remove initialization of tdep fields
8632 'gregset', 'fpregset', and 'xstateregset'.
8633 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8634 'fpregset', and 'xstateregset'.
8635 (i386_collect_gregset): Remove prototype.
8636 (i386_gregset): New declaration.
8637 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8638 structure.
8639 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8640 allocation.
8641
b7611c43
AA
86422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8643
8644 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8645 (arm_linux_vfpregset): New static regset structures.
8646 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8647 regset structures.
8648 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8649 and 'vfpregset' fields.
8650
a069a2bd
AA
86512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8652
8653 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8654 (aarch64_linux_fpregset): New static regset structures.
8655 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8656 of regset structures.
8657 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8658 'fpregset' fields.
8659
09424cff
AA
86602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8661
8662 * regset.h (struct regset): Remove gdbarch field.
8663 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8664 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8665 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8666 Likewise.
8667 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8668 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8669 (ppc32_linux_vsxregset): Likewise.
8670 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8671 via the regcache instead of the regset.
8672 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8673 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8674 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8675 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8676 Likewise.
8677
3ca7dae4
AA
86782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8679
8680 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8681 Constify structures.
8682 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8683 (alphanbsd_aout_gregset): Likewise.
8684 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8685 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8686 Likewise.
8687 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8688 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8689 Likewise.
8690 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8691 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8692 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8693 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8694 * m88k-tdep.c (m88k_gregset): Likewise.
8695 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8696 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8697 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8698 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8699 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8700 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8701 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8702 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8703 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8704 Likewise.
8705 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8706 * sh-tdep.h (sh_corefile_gregset): Likewise.
8707 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8708 * vax-tdep.c (vax_gregset): Likewise.
8709
5876f503
JK
87102014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8711
8712 Fix TLS access for -static -pthread.
8713 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8714 (try_thread_db_load_1): Initialize it.
8715 (thread_db_get_thread_local_address): Call it if LM is zero.
8716 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8717 * target.h (struct target_ops) (to_get_thread_local_address): Add
8718 load_module_addr comment.
8719
0256a6ac
PA
87202014-05-21 Pedro Alves <palves@redhat.com>
8721
8722 * dcache.c (dcache_read_memory_partial): If reading the cache line
8723 fails, fallback to reading just the memory the caller wanted.
8724
227533ac
DE
87252014-05-20 Doug Evans <dje@google.com>
8726
8727 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8728 instead of get_current_arch.
8729
936d2992
PA
87302014-05-20 Pedro Alves <palves@redhat.com>
8731
8732 * NEWS: Mention that compare-sections now works with all targets.
8733
8734 * remote.c (PACKET_qCRC): New enum value.
8735 (remote_verify_memory): Don't send qCRC if the target has no
8736 execution. Use packet_support/packet_ok. If the target doesn't
8737 support the qCRC packet, fallback to a deep memory copy.
8738 (compare_sections_command): Say "target image" instead of "remote
8739 executable".
8740 (_initialize_remote): Add PACKET_qCRC to the list of config
8741 packets that have no associated command. Extend comment.
8742 * target.c (simple_verify_memory, default_verify_memory): New
8743 function.
8744 * target.h (struct target_ops) <to_verify_memory>: Default to
8745 default_verify_memory.
8746 (simple_verify_memory): New declaration.
8747 * target-delegates.c: Regenerate.
8748
e59fa00f
MM
87492014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8750
8751 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8752
f2205de0
HZ
87532014-05-20 Hui Zhu <hui@codesourcery.com>
8754 Yao Qi <yao@codesourcery.com>
8755
8756 PR backtrace/16558
8757 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8758 and change address of sp and pc.
8759
c4e54771
TT
87602014-05-19 Tom Tromey <tromey@redhat.com>
8761
8762 * gdbtypes.c (rank_function): Use XNEWVEC.
8763 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8764
73051182
DE
87652014-05-19 Doug Evans <dje@google.com>
8766
8767 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8768 build_type_unit_groups and moved closer to only caller. Remove
8769 arguments. All references updated. Remove outdated .gdb_index
8770 comment.
8771 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8772 build_type_psymtabs_1.
8773
8832e7e3
DE
87742014-05-19 Doug Evans <dje@google.com>
8775
8776 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8777 n_type_unit_groups, all_type_unit_groups. All uses removed.
8778 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8779 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8780 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8781 (add_type_unit_group_to_table): Delete.
8782
cd8ae15e
DE
87832014-05-19 Doug Evans <dje@google.com>
8784
8785 * eval.c (evaluate_subexp_standard): Add some comments.
8786
08f4850b
DE
87872014-05-17 Doug Evans <xdje42@gmail.com>
8788
8789 * progspace.c (remove_program_space): Delete, unused.
8790 * progspace.h (remove_program_space): Ditto.
8791
bed8455c
DE
87922014-05-17 Doug Evans <xdje42@gmail.com>
8793
8794 * inferior.c (prune_inferiors): Fix comment.
8795 (remove_inferior_command): Call prune_program_spaces.
8796
8d551b02
DE
87972014-05-16 Doug Evans <dje@google.com>
8798
8799 New command line option -D.
8800 * NEWS: Mention it.
8801 * main.c (set_gdb_data_directory): New function.
8802 (captured_main): Recognize -D. Flag error for --data-directory "".
8803 Call set_gdb_data_directory.
8804 (print_gdb_help): Print --data-directory, -D.
8805 * main.h (set_gdb_data_directory): Declare.
8806 * top.c (staged_gdb_datadir): New static global.
8807 (set_gdb_datadir): Call set_gdb_data_directory
8808 (show_gdb_datadir): New function.
8809 (init_main): Update init of data-directory parameter.
8810
18848e28
GF
88112014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8812
8813 Import the "dirfd" gnulib module.
8814 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8815 * gnulib/aclocal.m4: Update.
8816 * gnulib/config.in: Update.
8817 * gnulib/configure: Update.
8818 * gnulib/import/Makefile.am: Update.
8819 * gnulib/import/Makefile.in: Update.
8820 * gnulib/import/dirfd.c: New.
8821 * gnulib/import/m4/dirfd.m4: New.
8822 * gnulib/import/m4/gnulib-cache.m4: Update.
8823 * gnulib/import/m4/gnulib-comp.m4: Update.
8824
95c64f92
YQ
88252014-05-16 Pierre Muller <muller@sourceware.org>
8826 Yao Qi <yao@codesourcery.com>
8827
8828 * valprint.c (print_wchar): Move the code on checking whether
8829 W is a printable wide char to the default branch of switch
8830 statement below. Call wchar_printable instead of gdb_iswprint.
8831
cac395ea
TM
88322014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8833
19679eca 8834 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8835 ldr.w and ldrd instructions.
8836
83655187
DE
88372014-05-15 Doug Evans <dje@google.com>
8838
8839 * dwarf2read.c (read_structure_type): Delete outdated comments.
8840
dd756689
TT
88412014-05-14 Tom Tromey <tromey@redhat.com>
8842
8843 * macrocmd.c (print_macro_definition): Reindent.
8844
75ddda77
DE
88452014-05-13 Doug Evans <xdje42@gmail.com>
8846
8847 * python/py-cmd.c (cmdpy_completer): Add comment.
8848 (completers): Make const.
8849
b0f16a3e
SM
88502014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8851
8852 * infrun.c (resume): Remove should_resume (unused). Move up
8853 declaration of resume_ptid.
8854
033c3379
TT
88552014-05-13 Tom Tromey <tromey@redhat.com>
8856
8857 * language.h (unop_type_check): Remove.
8858 (binop_type_check): Don't declare.
8859
9b44a3a5
AA
88602014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8861
8862 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8863 call to regcache_raw_collect.
8864
303a33fa
SM
88652014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8866
8867 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8868 mi_console->quote as the quoting character.
8869
196100a0
SM
88702014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8871
8872 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8873
f989a1c8
TT
88742014-04-29 Tom Tromey <tromey@redhat.com>
8875
8876 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8877 "show debug varobj".
8878
9404b58f
KM
88792014-05-07 Kyle McMartin <kyle@redhat.com>
8880
8881 Pushed by Joel Brobecker <brobecker@adacore.com>.
8882 * aarch64-tdep.c (aarch64_software_single_step): New function.
8883 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8884 with aarch64_software_single_step.
8885
5e49ba57
JB
88862014-05-05 Joel Brobecker <brobecker@adacore.com>
8887
8888 GDB 7.7.1 released.
8889
c888a17d
KS
88902014-05-05 Keith Seitz <keiths@redhat.com>
8891
8892 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8893 variable or history value is successfully parsed.
8894
290a839c
YQ
88952014-05-05 Yao Qi <yao@codesourcery.com>
8896 Pedro Alves <palves@redhat.com>
8897
8898 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8899 address of blocks that intersects the requested range. Trim
8900 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8901 sections.
8902 * ctf.c (ctf_xfer_partial): Likewise.
8903
91256dc2
YQ
89042014-05-05 Yao Qi <yao@codesourcery.com>
8905
8906 * printcmd.c (display_command): Remove the check to
8907 target_has_execution.
8908
07284463
MK
89092014-05-03 Mark Kettenis <kettenis@gnu.org>
8910
8911 * ppcobsd-nat.c: Include "obsd-nat.h".
8912 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8913 add_target.
8914 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8915
30a1e6cc
SDJ
89162014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8917
8918 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8919 and 16-bit signed and unsigned arguments. Update comment.
8920 (stap_parse_probe_arguments): Extend code to handle such
8921 arguments. Use warning instead of complaint to notify about
8922 unrecognized bitness.
8923
f33da99a
SDJ
89242014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8925
8926 PR breakpoints/16889
8927 * stap-probe.c (stap_parse_probe_arguments): Simplify
8928 check for non-prefixed probes (i.e., probes whose
8929 arguments do not start with "N@"). Always set the
8930 argument type to a sane value.
8931
95cf3b38
DT
89322014-05-01 David Taylor <dtaylor@emc.com>
8933
8934 * remote.c (compare_sections_command): Add -r option to compare
8935 all loadable read-only sections.
8936
1cfdf534
SC
89372014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8938
8939 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8940 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8941 Update all callers.
8942 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8943 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8944 Remove unused CORE_ADDR argument. Update all callers.
8945
ca4f7f8b
PA
89462014-04-29 Pedro Alves <palves@redhat.com>
8947
8948 * remote.c (struct packet_config) <detect>: Extend comment.
8949 (add_packet_config_cmd): Don't set the config's detect or support
8950 fields here.
8951 (init_all_packet_configs): Also initialize the config's 'detect'
8952 field.
8953 (reset_all_packet_configs_support): New function.
8954 (remote_open_1): Call reset_all_packet_configs_support instead of
8955 init_all_packet_configs.
8956 (_initialize_remote): Initialize all packet configs. Assert that
8957 all packets have an associated command, except a few known
8958 outliers.
8959
11c1ba78
JB
89602014-04-28 Joel Brobecker <brobecker@adacore.com>
8961
8962 * dwarf2read.c (read_subrange_type): Handle dynamic
8963 DW_AT_lower_bound attributes.
8964
8739bc53
JB
89652014-04-28 Joel Brobecker <brobecker@adacore.com>
8966
8967 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8968 dynamic bounds before computing its upper bound.
8969 (ada_discrete_type_low_bound): Same as above with the lower bound.
8970
6f8a3220
JB
89712014-04-28 Joel Brobecker <brobecker@adacore.com>
8972
8973 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8974 range types. Adjust the array handling implementation to
8975 take advantage of this change.
8976 (resolve_dynamic_range): New function, mostly extracted from
8977 resolve_dynamic_bounds.
8978 (resolve_dynamic_array): New function, mostly extracted from
8979 resolve_dynamic_bounds.
8980 (resolve_dynamic_bounds): Delete.
8981 (resolve_dynamic_type): Reimplement. Add handling of
8982 TYPE_CODE_RANGE types.
8983
4d072ce4
JB
89842014-04-28 Joel Brobecker <brobecker@adacore.com>
8985
8986 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8987 handling of parallel ___XA types.
8988
52865325
JB
89892014-04-28 Joel Brobecker <brobecker@adacore.com>
8990
8991 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8992 unnecessary second call to static_unwrap_type.
8993
433e77fa
HZ
89942014-04-27 Hui Zhu <hui@codesourcery.com>
8995
8996 * stack.c (print_frame_info): Call do_gdb_disassembly with
8997 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8998
b51a69ee
DE
89992014-04-26 Doug Evans <xdje42@gmail.com>
9000
9001 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9002
7ae1a6a6
PA
90032014-04-25 Pedro Alves <palves@redhat.com>
9004
9005 PR server/16255
9006 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9007 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9008 and newline from built string.
9009 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9010 (linux_ptrace_attach_fail_reason): ... this.
9011 * linux-nat.c (linux_nat_attach): Adjust to use
9012 linux_ptrace_attach_fail_reason.
9013
4082afcc
PA
90142014-04-25 Pedro Alves <palves@redhat.com>
9015
9016 * remote.c (struct remote_state): Remove multi_process_aware,
9017 non_stop_aware, cond_tracepoints, cond_breakpoints,
9018 breakpoint_commands, fast_tracepoints, static_tracepoints,
9019 install_in_trace, disconnected_tracing,
9020 enable_disable_tracepoints, string_tracing, and
9021 augmented_libraries_svr4_read fields.
9022 (remote_multi_process_p): Move further below in the file.
9023 (struct packet_config): Add comments.
9024 (update_packet_config): Delete function.
9025 (show_packet_config_cmd): Use packet_config_support.
9026 (add_packet_config_cmd): Use NULL as set callback.
9027 (packet_ok): "set remote foo-packet"-style commands no longer
9028 change config->supported -- adjust.
9029 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9030 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9031 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9032 (PACKET_QNonStop, PACKET_multiprocess_feature)
9033 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9034 (PACKET_DisconnectedTracing_feature)
9035 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9036 (set_remote_protocol_packet_cmd): Delete function.
9037 (packet_config_support, packet_support): New functions.
9038 (set_remote_protocol_Z_packet_cmd): Don't call
9039 update_packet_config.
9040 (remote_query_attached, remote_pass_signals)
9041 (remote_program_signals, remote_threads_info)
9042 (remote_threads_extra_info, remote_start_remote): Use
9043 packet_support.
9044 (remote_start_remote): Use packet_config_support and
9045 packet_support.
9046 (init_all_packet_configs): Set all packets to unknown support,
9047 instead of calling update_packet_config.
9048 (remote_check_symbols): Use packet_support.
9049 (remote_supported_packet): Unconditionally set the packet config's
9050 support status.
9051 (remote_multi_process_feature, remote_non_stop_feature)
9052 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9053 (remote_breakpoint_commands_feature)
9054 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9055 (remote_install_in_trace_feature)
9056 (remote_disconnected_tracing_feature)
9057 (remote_enable_disable_tracepoint_feature)
9058 (remote_string_tracing_feature)
9059 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9060 (remote_protocol_features): Adjust to use remote_supported_packet
9061 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9062 "ConditionalTracepoints", "ConditionalBreakpoints",
9063 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9064 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9065 "EnableDisableTracepoints", and "tracenz".
9066 (remote_query_supported): Use packet_support.
9067 (remote_open_1): Adjust.
9068 (extended_remote_attach_1): Use packet_support. Switch on the
9069 result of packet_ok instead of checking whether the packet ended
9070 up disabled.
9071 (remote_vcont_resume): Use packet_support.
9072 (remote_resume, remote_stop_ns, fetch_register_using_p)
9073 (remote_prepare_to_store, store_register_using_P)
9074 (check_binary_download, remote_write_bytes): Use packet_support.
9075 (remote_vkill): Use packet_support. Switch on the result of
9076 packet_ok instead of checking whether the packet ended up
9077 disabled.
9078 (extended_remote_supports_disable_randomization): Use
9079 packet_support.
9080 (extended_remote_run): Switch on the result of packet_ok instead
9081 of checking whether the packet ended up disabled.
9082 (remote_insert_breakpoint, remote_remove_breakpoint)
9083 (remote_insert_watchpoint, remote_remove_watchpoint)
9084 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9085 packet_support.
9086 (remote_search_memory): Use packet_config_support.
9087 (remote_get_thread_local_address, remote_get_tib_address)
9088 (remote_hostio_send_command, remote_can_execute_reverse): Use
9089 packet_support.
9090 (remote_supports_cond_tracepoints)
9091 (remote_supports_cond_breakpoints)
9092 (remote_supports_fast_tracepoints)
9093 (remote_supports_static_tracepoints)
9094 (remote_supports_install_in_trace)
9095 (remote_supports_enable_disable_tracepoint)
9096 (remote_supports_string_tracing)
9097 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9098 the packet config says the feature is enabled or disabled.
9099 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9100 (remote_get_trace_status): Use packet_support.
9101 (remote_set_disconnected_tracing): Adjust to check whether the
9102 feature is enabled with packet_support.
9103 (remote_set_trace_buffer_size, remote_use_agent)
9104 (remote_can_use_agent, remote_supports_btrace): Use
9105 packet_support.
9106 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9107 Use packet_config_support.
9108 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9109 the packet config says the feature is enabled or disabled.
9110 (set_range_stepping): Use packet_support.
9111
bdb52a22
TT
91122014-04-25 Tom Tromey <tromey@redhat.com>
9113
9114 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9115 argument.
9116
e9475ead
SA
91172014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9118
9119 * NEWS: Mention support for C99 variable length arrays.
9120
82eacd52
JB
91212014-04-24 Joel Brobecker <brobecker@adacore.com>
9122
9123 * ada-lang.c (standard_exc): Expand introductory comment.
9124
01f9f808
MS
91252014-04-24 Michael Sturm <michael.sturm@mintel.com>
9126 Walfred Tedeschi <walfred.tedeschi@intel.com>
9127
9128 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9129 AVX512 registers.
9130 (amd64_linux_read_description): Add code to handle AVX512 xstate
9131 mask and return respective tdesc.
9132 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9133 and features/i386/x32-avx512-linux.c.
9134 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9135 (amd64_linux_core_read_description): Add code to handle AVX512
9136 xstate mask and return respective tdesc.
9137 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9138 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9139 calculation.
9140 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9141 (tdesc_amd64_avx512_linux): New prototype.
9142 (tdesc_x32_avx512_linux): Likewise.
9143 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9144 features/i386/x32-avx512.c.
9145 (amd64_ymm_avx512_names): New register names for pseudo
9146 registers YMM16-31.
9147 (amd64_ymmh_avx512_names): New register names for raw registers
9148 YMMH16-31.
9149 (amd64_k_names): New register names for K registers.
9150 (amd64_zmmh_names): New register names for ZMM raw registers.
9151 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9152 (amd64_xmm_avx512_names): New register names for XMM16-31
9153 registers.
9154 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9155 registers.
9156 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9157 if feature is present.
9158 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9159 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9160 (AMD64_NUM_REGS): Adjust to new number of registers.
9161 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9162 registers supplied via XSTATE by AVX512 registers.
9163 (i386_linux_read_description): Add case for AVX512.
9164 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9165 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9166 (i386_linux_core_read_description): Add case for AVX512.
9167 (i386_linux_init_abi): Install supported register note section
9168 for AVX512.
9169 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9170 AVX512.
9171 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9172 registers to be number of zmm7h + 1.
9173 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9174 * i386-tdep.c: Include features/i386/i386-avx512.c.
9175 (i386_zmm_names): Add ZMM pseudo register names array.
9176 (i386_zmmh_names): Add ZMM raw register names array.
9177 (i386_k_names): Add K raw register names array.
9178 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9179 registers. AVX512 has 16 more ZMM registers than there are YMM
9180 registers.
9181 (i386_zmmh_regnum_p): Add function to look up register number of
9182 ZMM raw registers.
9183 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9184 (i386_k_regnum_p): Likewise for K raw registers.
9185 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9186 registers added by AVX512.
9187 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9188 registers added by AVX512.
9189 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9190 added by AVX512.
9191 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9192 (i386_pseudo_register_name): Add ZMM pseudo registers.
9193 (i386_zmm_type): Construct and return vector registers type for ZMM
9194 registers.
9195 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9196 ZMM0-31 pseudo registers and K registers.
9197 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9198 and YMM16-31 registers from register cache.
9199 (i386_pseudo_register_write): Add code to write K, ZMM and
9200 YMM16-31 registers.
9201 (i386_register_reggroup_p): Add code to include/exclude AVX512
9202 registers in/from respective register groups.
9203 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9204 registers if feature is present in xcr0.
9205 (i386_gdbarch_init): Add code to initialize AVX512 feature
9206 variables in tdep structure, wire in pseudo registers and call
9207 initialize_tdesc_i386_avx512.
9208 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9209 variables.
9210 (i386_regnum): Add AVX512 registers.
9211 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9212 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9213 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9214 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9215 512 bits wide.
9216 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9217 (i386_ymm_avx512_regnum_p): Likewise.
9218 (i386_k_regnum_p): Likewise.
9219 (i386_zmm_regnum_p): Likewise.
9220 (i386_zmmh_regnum_p): Likewise.
9221 * i387-tdep.c : Update year in copyright notice.
9222 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9223 XSAVE buffer.
9224 (XSAVE_YMM_AVX512_ADDR): New macro.
9225 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9226 XSAVE buffer.
9227 (XSAVE_XMM_AVX512_ADDR): New macro.
9228 (xsave_avx512_k_offset): New table for K register offsets in
9229 XSAVE buffer.
9230 (XSAVE_AVX512_K_ADDR): New macro.
9231 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9232 in XSAVE buffer.
9233 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9234 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9235 buffer.
9236 (i387_collect_xsave): Add code to collect AVX512 registers from
9237 XSAVE buffer.
9238 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9239 of XMM16-31 registers.
9240 (I387_NUM_K_REGS): New define for number of K registers.
9241 (I387_K0_REGNUM): New define for K0 register number.
9242 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9243 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9244 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9245 registers.
9246 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9247 (I387_XMM16_REGNUM): New define for XMM16 register number.
9248 (I387_YMM0_REGNUM): New define for YMM0 register number.
9249 (I387_KEND_REGNUM): New define for last K register number.
9250 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9251 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9252 number.
9253 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9254 number.
9255 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9256 size.
9257 * features/Makefile: Add AVX512 related files.
9258 * features/i386/32bit-avx512.xml: New file.
9259 * features/i386/64bit-avx512.xml: Likewise.
9260 * features/i386/amd64-avx512-linux.c: Likewise.
9261 * features/i386/amd64-avx512-linux.xml: Likewise.
9262 * features/i386/amd64-avx512.c: Likewise.
9263 * features/i386/amd64-avx512.xml: Likewise.
9264 * features/i386/i386-avx512-linux.c: Likewise.
9265 * features/i386/i386-avx512-linux.xml: Likewise.
9266 * features/i386/i386-avx512.c: Likewise.
9267 * features/i386/i386-avx512.xml: Likewise.
9268 * features/i386/x32-avx512-linux.c: Likewise.
9269 * features/i386/x32-avx512-linux.xml: Likewise.
9270 * features/i386/x32-avx512.c: Likewise.
9271 * features/i386/x32-avx512.xml: Likewise.
9272 * regformats/i386/amd64-avx512-linux.dat: New file.
9273 * regformats/i386/amd64-avx512.dat: Likewise.
9274 * regformats/i386/i386-avx512-linux.dat: Likewise.
9275 * regformats/i386/i386-avx512.dat: Likewise.
9276 * regformats/i386/x32-avx512-linux.dat: Likewise.
9277 * regformats/i386/x32-avx512.dat: Likewise.
9278 * NEWS: Add note about new support for AVX512.
9279
9280
08351840
PA
92812014-04-23 Pedro Alves <palves@redhat.com>
9282
9283 * breakpoint.c (insert_bp_location): Tolerate errors if the
9284 breakpoint is set in a user-loaded objfile.
9285 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9286 location is marked shlib_disabled. If the breakpoint is set in a
9287 user-loaded objfile is a GDB-side memory breakpoint, validate it
9288 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9289 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9290 flag.
9291 * mem-break.c (memory_validate_breakpoint): New function.
9292 * objfiles.c (userloaded_objfile_contains_address_p): New
9293 function.
9294 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9295 * target.h (memory_validate_breakpoint): New declaration.
9296
076855f9
PA
92972014-04-23 Pedro Alves <palves@redhat.com>
9298
9299 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9300 the breakpoint is set in a shared library, only suppress
9301 errors for software breakpoints, not hardware breakpoints.
9302
483805cf
PA
93032014-04-22 Pedro Alves <palves@redhat.com>
9304
9305 * infrun.c (schedlock_applies): New function, factored out from
9306 find_thread_needs_step_over.
9307 (find_thread_needs_step_over): Use it.
9308 (switch_back_to_stepped_thread): Always clear trap_expected if the
9309 step over is finished. Return early if scheduler locking applies.
9310 Look for the stepping thread and a potential step-over thread with
9311 a single loop.
9312 (currently_stepping_or_nexting_callback): Delete.
9313
a75fef0e
NC
93142014-04-22 Nick Clifton <nickc@redhat.com>
9315
9316 * NEWS: Mention that ARM sim now supports tracing.
9317
48b6e87e
YQ
93182014-04-22 Yao Qi <yao@codesourcery.com>
9319
9320 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9321 to ...
9322 * tracefile.c (tracefile_fetch_registers): ... it. New
9323 function.
9324 * tracefile.h (tracefile_fetch_registers): Declare.
9325 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9326 tracefile_fetch_registers.
9327
17617f2d
EZ
93282014-04-19 Eli Zaretskii <eliz@gnu.org>
9329
9330 PR gdb/14018
9331 * windows-nat.c (thread_rec): Don't display a warning when
9332 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9333 fails for any reason, set th->suspended to -1, so that we don't
9334 try to resume such a thread. Also, don't return NULL in these
9335 cases, to avoid completely ruin the session due to "PC register is
9336 not available" error.
9337 (do_windows_fetch_inferior_registers): Check errors in
9338 GetThreadContext call.
9339 (windows_continue): Accept an additional argument KILLED; if not
9340 zero, ignore errors in the SetThreadContext call, since the
9341 inferior was killed and is shutting down.
9342 (windows_resume, get_windows_debug_event)
9343 (windows_create_inferior, windows_mourn_inferior)
9344 (windows_kill_inferior): All callers of windows_continue changed
9345 to adjust to its new calling sequence.
9346
5723a6fd
YQ
93472014-04-19 Yao Qi <yao@codesourcery.com>
9348
9349 * ctf.c (ctf_open): Call post_create_inferior.
9350
614d5099
YQ
93512014-04-19 Yao Qi <yao@codesourcery.com>
9352
9353 * ctf.c (handle_id): New static variable.
9354 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9355 value. Get the declaration of event "register" and get length
9356 of field "contents".
9357
dac3e710
YQ
93582014-04-19 Yao Qi <yao@codesourcery.com>
9359
9360 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9361
2bca57ba
SC
93622014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9363
9364 * valops.c (oload_method_static): Remove unnecessary argument
9365 METHOD. Update all callers.
9366
51d48146
PA
93672014-04-18 Pedro alves <palves@redhat.com>
9368 Tom Tromey <tromey@redhat.com>
9369
9370 PR backtrace/15558
9371 * frame.c (get_prev_frame_1): Rename to ...
9372 (get_prev_frame_always): ... this, and make extern. Adjust.
9373 (skip_artificial_frames): Use get_prev_frame_always.
9374 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9375 (get_frame_unwind_stop_reason): Adjust to rename.
9376 * frame.h (get_prev_frame_always): Declare.
9377 * inline-frame.c: Include frame.h.
9378 (inline_frame_this_id): Use get_prev_frame_always.
9379
1bdad2e0
TG
93802014-04-18 Tristan Gingold <gingold@adacore.com>
9381
9382 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9383 code by using bfd_mach_o_get_base_address.
9384
7ce16bd4
UW
93852014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9386
9387 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9388 (spu_ax_pseudo_register_collect): New function.
9389 (spu_ax_pseudo_register_push_stack): Likewise.
9390 (spu_dwarf_reg_to_regnum): Likewise.
9391 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9392
2ed3c037
UW
93932014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9394
9395 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9396 Replace FRAME argument with FRAME_ID.
9397 * gdbarch.c, gdbarch.h: Regenerate.
9398 * findvar.c (default_value_from_register): Add GDBARCH argument;
9399 replace FRAME by FRAME_ID. No longer call get_frame_id.
9400 (value_from_register): Update call to gdbarch_value_from_register.
9401 * value.h (default_value_from_register): Update prototype.
9402 * s390-linux-tdep.c (s390_value_from_register): Update interface
9403 and call to default_value_from_register.
9404 * spu-tdep.c (spu_value_from_register): Likewise.
9405
9406 * findvar.c (address_from_register): Remove TYPE argument.
9407 Do not call value_from_register; use gdbarch_value_from_register
9408 with null_frame_id instead.
9409 * value.h (address_from_register): Update prototype.
9410 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9411 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9412 address_from_register interface change.
9413
71e50e83
YQ
94142014-04-17 Yao Qi <yao@codesourcery.com>
9415
9416 * gdbtypes.h: Update comments to link to types and macros'
9417 definitions.
9418
7a23c549
SC
94192014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9420
9421 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9422
22869d73
KS
94232014-04-16 Keith Seitz <keiths@redhat.com>
9424
9425 PR gdb/15827
9426 * dwarf2read.c (skip_one_die): Check that all relative-offset
9427 sibling DIEs fall within range of the current reader's buffer.
9428 (read_partial_die): Likewise.
9429
c4f87ca6
KS
94302014-04-16 Keith Seitz <keiths@redhat.com>
9431
9432 PR c++/16597
9433 * cp-namespace.c (lookup_symbol_file): If the type name of
9434 `this' is NULL, return immediately.
9435
b50c8614
KS
94362014-04-14 Keith Seitz <keiths@redhat.com>
9437
9438 PR c++/16253
9439 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9440 from symbol_matches_domain in symtab.c. All local callers
9441 of symbol_matches_domain updated.
9442 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9443 search STRUCT_DOMAIN.
9444 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9445 independently. standard_lookup will do that automatically.
9446 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9447 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9448 (cp_lookup_symbol_in_namespace): Likewise.
9449 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9450 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9451 may return a STRUCT_DOMAIN match.
9452 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9453 * cp-support.c: Include language.h.
9454 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9455 VAR_DOMAIN.
9456 * psymtab.c (match_partial_symbol): Compare the requested
9457 domain with the symbol's domain directly.
9458 (lookup_partial_symbol): Likewise.
9459 * symtab.c (lookup_symbol_in_language): Explain when/why
9460 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9461 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9462 appropriate languages.
9463 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9464 and moved to ada-lang.c
9465 (lookup_block_symbol): Explain that this function only returns
9466 symbol matching the requested DOMAIN.
9467 Compare the requested domain with the symbol's domain directly.
9468 (iterate_over_symbols): Compare the requested domain with the
9469 symbol's domain directly.
9470 * symtab.h (symbol_matches_domain): Remove.
9471
3d567982
TT
94722014-04-14 Tom Tromey <tromey@redhat.com>
9473
9474 PR c++/15246:
9475 * c-exp.y (type_aggregate_p): New function.
9476 (qualified_name, classify_inner_name): Use it.
9477 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9478 and TYPE_TARGET_TYPE of an enum type.
9479 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9480 an enum type.
9481 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9482 handle TYPE_DECLARED_CLASS.
9483 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9484 types.
9485 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9486 * valops.c (enum_constant_from_type): New function.
9487 (value_aggregate_elt): Use it.
9488 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9489 TYPE_CODE_ENUM.
9490
c848d642
TT
94912014-04-14 Tom Tromey <tromey@redhat.com>
9492
9493 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9494 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9495 const.
9496 * value.h (value_aggregate_elt): Update.
9497
0626fc76
TT
94982014-04-14 Tom Tromey <tromey@redhat.com>
9499
9500 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9501
5ecaaa66
SA
95022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9503
9504 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9505 (evaluate_subexp_standard): Pass noside argument.
9506 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9507 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9508 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9509 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9510 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9511
1612e0c0
SA
95122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9513
9514 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9515 points to a constant blob.
9516
c451ebe5
SA
95172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9518
9519 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9520 property and store it as the high bound and flag the range accordingly.
9521 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9522 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9523 * gdbtypes.h (enum range_flags): New enum.
9524 (struct range_bounds): Add flags member.
9525
1d42e4c4
SA
95262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9527
9528 * c-typeprint.c (c_type_print_varspec_suffix): Added
9529 check for not yet resolved high bound. If unresolved, print
9530 "variable length" string to the console instead of random
9531 length.
9532
9f1f738a
SA
95332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9534
9535 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9536 value.
9537 (ada_template_to_fixed_record_type_1): Likewise.
9538 (ada_to_fixed_type_1): Likewise.
9539 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9540 (cp_print_value): Likewise.
9541 * d-valprint.c (dynamic_array_type): Likewise.
9542 * findvar.c (address_of_variable): Likewise.
9543 * jv-valprint.c (java_value_print): Likewise.
9544 * valops.c (value_ind): Likewise.
9545 * value.c (coerce_ref): Likewise.
9546
3c8452d4
SA
95472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9548
9549 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9550 value and retrieve the dynamic type size.
9551
4ad88275
SA
95522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9553
9554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9555 passed to sizeof is dynamic evaluate the argument to compute the length.
9556
80180f79
SA
95572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9558 Joel Brobecker <brobecker@adacore.com>
9559
9560 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9561 (dwarf2_evaluate_property): New function.
9562 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9563 * dwarf2read.c (attr_to_dynamic_prop): New function.
9564 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9565 attribute.
9566 * gdbtypes.c: Include dwarf2loc.h.
9567 (is_dynamic_type): New function.
9568 (resolve_dynamic_type): New function.
9569 (resolve_dynamic_bounds): New function.
9570 (get_type_length): New function.
9571 (check_typedef): Use get_type_length to compute type length.
9572 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9573 (TYPE_LOW_BOUND_KIND): New macro.
9574 (is_dynamic_type): New function prototype.
9575 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9576 to resolve dynamic properties of the type. Update comment.
9577 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9578
a1556843
RH
95792014-04-14 Richard Henderson <rth@redhat.com>
9580
9581 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9582
0be03e84
DE
95832014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9584 Doug Evans <xdje42@gmail.com>
9585
9586 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9587 dereference TYPE_CODE_REF values.
9588
6b662e19
JB
95892014-04-11 Joel Brobecker <brobecker@adacore.com>
9590
9591 Revert the following changes due to regressions:
9592
9593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9594 (dwarf2_evaluate_property): New function.
9595 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9596 * dwarf2read.c (attr_to_dynamic_prop): New function.
9597 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9598 attribute.
9599 * gdbtypes.c: Include dwarf2loc.h.
9600 (is_dynamic_type): New function.
9601 (resolve_dynamic_type): New function.
9602 (resolve_dynamic_bounds): New function.
9603 (get_type_length): New function.
9604 (check_typedef): Use get_type_length to compute type length.
9605 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9606 (TYPE_LOW_BOUND_KIND): New macro.
9607 (is_dynamic_type): New function prototype.
9608 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9609 to resolve dynamic properties of the type. Update comment.
9610 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9611
9612 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9613 passed to sizeof is dynamic evaluate the argument to compute the length.
9614
9615 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9616 value and retrieve the dynamic type size.
9617
9618 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9619 (ada_template_to_fixed_record_type_1): Likewise.
9620 (ada_to_fixed_type_1): Likewise.
9621 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9622 (cp_print_value): Likewise.
9623 * d-valprint.c (dynamic_array_type): Likewise.
9624 * eval.c (evaluate_subexp_with_coercion): Likewise.
9625 * findvar.c (address_of_variable): Likewise.
9626 * jv-valprint.c (java_value_print): Likewise.
9627 * valops.c (value_ind): Likewise.
9628 * value.c (coerce_ref): Likewise.
9629
9630 * c-typeprint.c (c_type_print_varspec_suffix): Added
9631 check for not yet resolved high bound. If unresolved, print
9632 "variable length" string to the console instead of random
9633 length.
9634
9635 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9636 property and store it as the high bound and flag the range accordingly.
9637 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9638 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9639 * gdbtypes.h (enum range_flags): New enum.
9640 (struct range_bounds): Add flags member.
9641
9642 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9643 points to a constant blob.
9644
9645 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9646 (evaluate_subexp_standard): Pass noside argument.
9647 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9648 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9649 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9650 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9651 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9652
245a5f0b
KS
96532014-04-11 Keith Seitz <keiths@redhat.com>
9654
9655 PR c++/16675
9656 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9657 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9658 reference types.
9659
3bce8237
SA
96602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9661
9662 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9663 (evaluate_subexp_standard): Pass noside argument.
9664 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9665 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9666 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9667 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9668 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9669
92b09522
SA
96702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9671
9672 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9673 points to a constant blob.
9674
e1969afb
SA
96752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9676
9677 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9678 property and store it as the high bound and flag the range accordingly.
9679 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9680 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9681 * gdbtypes.h (enum range_flags): New enum.
9682 (struct range_bounds): Add flags member.
9683
b86138fb
SA
96842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9685
9686 * c-typeprint.c (c_type_print_varspec_suffix): Added
9687 check for not yet resolved high bound. If unresolved, print
9688 "variable length" string to the console instead of random
9689 length.
9690
bcd629a4
SA
96912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9692
9693 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9694 (ada_template_to_fixed_record_type_1): Likewise.
9695 (ada_to_fixed_type_1): Likewise.
9696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9697 (cp_print_value): Likewise.
9698 * d-valprint.c (dynamic_array_type): Likewise.
9699 * eval.c (evaluate_subexp_with_coercion): Likewise.
9700 * findvar.c (address_of_variable): Likewise.
9701 * jv-valprint.c (java_value_print): Likewise.
9702 * valops.c (value_ind): Likewise.
9703 * value.c (coerce_ref): Likewise.
9704
04b19544
SA
97052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9706
9707 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9708 value and retrieve the dynamic type size.
9709
26cb189f
SA
97102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9711
9712 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9713 passed to sizeof is dynamic evaluate the argument to compute the length.
9714
37c1ab67
SA
97152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9716
9717 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9718 (dwarf2_evaluate_property): New function.
9719 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9720 * dwarf2read.c (attr_to_dynamic_prop): New function.
9721 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9722 attribute.
9723 * gdbtypes.c: Include dwarf2loc.h.
9724 (is_dynamic_type): New function.
9725 (resolve_dynamic_type): New function.
9726 (resolve_dynamic_bounds): New function.
9727 (get_type_length): New function.
9728 (check_typedef): Use get_type_length to compute type length.
9729 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9730 (TYPE_LOW_BOUND_KIND): New macro.
9731 (is_dynamic_type): New function prototype.
9732 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9733 to resolve dynamic properties of the type. Update comment.
9734 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9735
729efb13
SA
97362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9737
9738 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9739 declaring high/low bounds and change uses accordingly. Call
9740 create_range_type instead of create_static_range_type.
9741 * gdbtypes.c (create_range_type): New function.
9742 (create_range_type): Convert bounds into struct bound_prop and pass
9743 them to create_range_type.
9744 * gdbtypes.h (struct bound_prop): New struct.
9745 (create_range_type): New function prototype.
9746 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9747 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9748 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9749 part of the bound.
9750 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9751
0c9c3474
SA
97522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9753
9754 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9755 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9756 * ada-lang.c: All uses of create_range_type updated.
9757 * coffread.c: All uses of create_range_type updated.
9758 * dwarf2read.c: All uses of create_range_type updated.
9759 * f-exp.y: All uses of create_range_type updated.
9760 * m2-valprint.c: All uses of create_range_type updated.
9761 * mdebugread.c: All uses of create_range_type updated.
9762 * stabsread.c: All uses of create_range_type updated.
9763 * valops.c: All uses of create_range_type updated.
9764 * valprint.c: All uses of create_range_type updated.
9765
9d497a19
PA
97662014-04-10 Pedro Alves <palves@redhat.com>
9767
9768 * breakpoint.c (single_step_breakpoints)
9769 (single_step_gdbarch): Move up in the file.
9770 (one_breakpoint_xfer_memory): New function, factored out from ...
9771 (breakpoint_xfer_memory): ... here. Also process single-step
9772 breakpoints.
9773
15a9128a
TG
97742014-04-09 Tristan Gingold <gingold@adacore.com>
9775
9776 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9777 comments.
9778 (darwin_decode_exception_message): Free port only after use.
9779
9c97a070
PL
97802014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9781
9782 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9783 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9784 when setting the size of call_length.
9785
7af389b8
SC
97862014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9787
9788 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9789 dereference TYPE_CODE_REF values.
9790
86ad98c3
JB
97912014-04-07 Joel Brobecker <brobecker@adacore.com>
9792
9793 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9794 end of warning message.
9795
b0aeadb3
DE
97962014-04-03 Doug Evans <dje@google.com>
9797
9798 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9799 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9800
5979d6b6
AM
98012014-04-02 Alan Modra <amodra@gmail.com>
9802
9803 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9804 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9805 (struct symbol_file_add_from_memory_args): Add size field.
9806 (find_vdso_size): New function.
9807 (add_vsyscall_page): Attempt to find vdso size.
9808
0d60c288
DE
98092014-04-01 Doug Evans <dje@google.com>
9810
9811 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9812
a41f2563
TG
98132014-04-01 Tristan Gingold <gingold@adacore.com>
9814
9815 * darwin-nat.c (darwin_encode_reply): Add prototype.
9816 (darwin_decode_exception_message): Reply to unknown inferiors.
9817 (darwin_decode_message): Handle message by id. Ignore message
9818 to unknown inferior.
9819 (darwin_wait): Discard unknown messages, add debug trace.
9820
11a865c8
DE
98212014-03-31 Doug Evans <dje@google.com>
9822
9823 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9824 comp_dir_string.
9825
770e7fc7
DE
98262014-03-31 Doug Evans <dje@google.com>
9827
9828 New option "set print symbol-loading".
9829 * NEWS: Mention it.
9830 * solib.c (solib_read_symbols): Only print symbol loading messages
9831 if requested.
9832 (solib_add): If symbol loading is in "brief" mode, notify user
9833 symbols are being loaded.
9834 (reload_shared_libraries_1): Ditto.
9835 * symfile.c (print_symbol_loading_off): New static global.
9836 (print_symbol_loading_brief): New static global.
9837 (print_symbol_loading_full): New static global.
9838 (print_symbol_loading_enums): New static global.
9839 (print_symbol_loading): New static global.
9840 (print_symbol_loading_p): New function.
9841 (symbol_file_add_with_addrs): Only print symbol loading messages
9842 if requested.
9843 (_initialize_symfile): Register "print symbol-loading" set/show
9844 command.
9845 * symfile.h (print_symbol_loading_p): Declare.
9846
c32c64b7
DE
98472014-03-30 Doug Evans <xdje42@gmail.com>
9848
9849 * infrun.c (set_last_target_status): New function.
9850 (handle_inferior_event): Call it.
9851
7c0bc051
DE
98522014-03-30 Doug Evans <xdje42@gmail.com>
9853
9854 * inferior.h (enum stop_kind): Improve comment.
9855
8776cfe9
JB
98562014-03-28 Joel Brobecker <brobecker@adacore.com>
9857
9858 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9859 a reference, strip the reference layer before calling
9860 the lang_ops value_has_mutated callback.
9861
410a0ff2
SDJ
98622014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9863
9864 Remove some globals from our parser.
9865 * language.c (unk_lang_parser): Add "struct parser_state"
9866 argument.
9867 * language.h (struct language_defn) <la_parser>: Likewise.
9868 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9869 (initialize_expout): Add "struct parser_state" argument.
9870 Rewrite function to use the parser state.
9871 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9872 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9873 write_exp_elt_longcst, write_exp_elt_dblcst,
9874 write_exp_elt_decfloatcst, write_exp_elt_type,
9875 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9876 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9877 write_dollar_variable): Likewise.
9878 (parse_exp_in_context_1): Use parser state.
9879 (insert_type_address_space): Add "struct parser_state" argument.
9880 Use parser state.
9881 (increase_expout_size): New function.
9882 * parser-defs.h: Forward declare "struct language_defn" and
9883 "struct parser_state".
9884 (expout, expout_size, expout_ptr): Remove extern declarations.
9885 (parse_gdbarch, parse_language): Rewrite macro declarations to
9886 accept the parser state.
9887 (struct parser_state): New struct.
9888 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9889 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9890 write_exp_elt_decfloatcst, write_exp_elt_type,
9891 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9892 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9893 write_exp_msymbol, write_dollar_variable,
9894 mark_struct_expression, insert_type_address_space): Add "struct
9895 parser_state" argument.
9896 (increase_expout_size): New function.
9897 * utils.c (do_clear_parser_state): New function.
9898 (make_cleanup_clear_parser_state): Likewise.
9899 * utils.h (make_cleanup_clear_parser_state): New function
9900 prototype.
9901 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9902 Update calls to write_exp* in order to pass the parser state.
9903 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9904 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9905 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9906 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9907 * stap-probe.c (stap_parse_register_operand): Likewise.
9908 (stap_parse_single_operand): Likewise.
9909 (stap_parse_argument_1): Likewise.
9910 (stap_parse_argument): Use parser state.
9911 * stap-probe.h: Include "parser-defs.h".
9912 (struct stap_parse_info) <pstate>: New field.
9913 * c-exp.y (parse_type): Rewrite to use parser state.
9914 (yyparse): Redefine to c_parse_internal.
9915 (pstate): New global variable.
9916 (parse_number): Add "struct parser_state" argument.
9917 (write_destructor_name): Likewise.
9918 (type_exp): Update calls to write_exp* and similars in order to
9919 use parser state.
9920 (exp1, exp, variable, qualified_name, space_identifier,
9921 typename, typebase): Likewise.
9922 (write_destructor_name, parse_number, lex_one_token,
9923 classify_name, classify_inner_name, c_parse): Add "struct
9924 parser_state" argument. Update function to use parser state.
9925 * c-lang.h: Forward declare "struct parser_state".
9926 (c_parse): Add "struct parser_state" argument.
9927 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9928 (yyparse): Redefine macro to ada_parse_internal.
9929 (pstate): New variable.
9930 (write_int, write_object_renaming, write_var_or_type,
9931 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9932 type_int, type_long, type_long_long, type_float, type_double,
9933 type_long_double, type_char, type_boolean, type_system_address):
9934 Add "struct parser_state" argument.
9935 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9936 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9937 var_or_type, aggregate, aggregate_component_list,
9938 positional_list, others, component_group,
9939 component_associations): Update calls to write_exp* and similar
9940 functions in order to use parser state.
9941 (ada_parse, write_var_from_sym, write_int,
9942 write_exp_op_with_string, write_object_renaming,
9943 find_primitive_type, write_selectors, write_ambiguous_var,
9944 write_var_or_type, write_name_assoc, type_int, type_long,
9945 type_long_long, type_float, type_double, type_long_double,
9946 type_char, type_boolean, type_system_address): Add "struct
9947 parser_state" argument. Adjust function to use parser state.
9948 * ada-lang.c (parse): Likewise.
9949 * ada-lang.h: Forward declare "struct parser_state".
9950 (ada_parse): Add "struct parser_state" argument.
9951 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9952 calls to both functions.
9953 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9954 parser state.
9955 (yyparse): Redefine macro to f_parse_internal.
9956 (pstate): New variable.
9957 (parse_number): Add "struct parser_state" argument.
9958 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9959 and similars in order to use parser state.
9960 (parse_number): Adjust code to use parser state.
9961 (yylex): Likewise.
9962 (f_parse): New function.
9963 * f-lang.h: Forward declare "struct parser_state".
9964 (f_parse): Add "struct parser_state" argument.
9965 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9966 parser state.
9967 (yyparse): Redefine macro for java_parse_internal.
9968 (pstate): New variable.
9969 (push_expression_name, push_expression_name, insert_exp): Add
9970 "struct parser_state" argument.
9971 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9972 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9973 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9974 PostIncrementExpression, PostDecrementExpression,
9975 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9976 UnaryExpressionNotPlusMinus, CastExpression,
9977 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9978 RelationalExpression, EqualityExpression, AndExpression,
9979 ExclusiveOrExpression, InclusiveOrExpression,
9980 ConditionalAndExpression, ConditionalOrExpression,
9981 ConditionalExpression, Assignment, LeftHandSide): Update
9982 calls to write_exp* and similars in order to use parser state.
9983 (parse_number): Ajust code to use parser state.
9984 (yylex): Likewise.
9985 (java_parse): New function.
9986 (push_variable): Add "struct parser_state" argument. Adjust
9987 code to user parser state.
9988 (push_fieldnames, push_qualified_expression_name,
9989 push_expression_name, insert_exp): Likewise.
9990 * jv-lang.h: Forward declare "struct parser_state".
9991 (java_parse): Add "struct parser_state" argument.
9992 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9993 parser state.
9994 (yyparse): Redefine macro to m2_parse_internal.
9995 (pstate): New variable.
9996 (type_exp, exp, fblock, variable, type): Update calls to
9997 write_exp* and similars to use parser state.
9998 (yylex): Likewise.
9999 (m2_parse): New function.
10000 * m2-lang.h: Forward declare "struct parser_state".
10001 (m2_parse): Add "struct parser_state" argument.
10002 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10003 * objc-lang.h: Forward declare "struct parser_state".
10004 (end_msglist): Add "struct parser_state" argument.
10005 * p-exp.y (parse_type): Rewrite macro to use parser state.
10006 (yyparse): Redefine macro to pascal_parse_internal.
10007 (pstate): New variable.
10008 (parse_number): Add "struct parser_state" argument.
10009 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10010 write_exp* and similars in order to use parser state.
10011 (parse_number, yylex): Adjust code to use parser state.
10012 (pascal_parse): New function.
10013 * p-lang.h: Forward declare "struct parser_state".
10014 (pascal_parse): Add "struct parser_state" argument.
10015 * go-exp.y (parse_type): Rewrite macro to use parser state.
10016 (yyparse): Redefine macro to go_parse_internal.
10017 (pstate): New variable.
10018 (parse_number): Add "struct parser_state" argument.
10019 (type_exp, exp1, exp, variable, type): Update calls to
10020 write_exp* and similars in order to use parser state.
10021 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10022 to use parser state.
10023 (go_parse): Likewise.
10024 * go-lang.h: Forward declare "struct parser_state".
10025 (go_parse): Add "struct parser_state" argument.
10026
342587c4
DE
100272014-03-27 Doug Evans <dje@google.com>
10028
10029 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10030
33e80786
DE
100312014-03-27 Doug Evans <dje@google.com>
10032
10033 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10034 Remove argument abbrev_section. All callers updated.
10035
1dbab08b
DE
100362014-03-27 Doug Evans <dje@google.com>
10037
10038 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10039 addr_base, ranges_base.
10040
318d3177
KS
100412014-03-26 Keith Seitz <keiths@redhat.com>
10042
10043 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10044 types, not VAR_DOMAIN.
10045
1e54db15
SL
100462014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10047
10048 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10049 "ra" registers.
10050 * features/nios2-linux.c: Regenerated.
10051 * features/nios2.c: Regenerated.
10052
d3839ede
PA
100532014-03-25 Pedro Alves <palves@redhat.com>
10054
10055 * cli/cli-script.c (script_from_file): Force the interpreter to
10056 sync mode.
10057
7588d2ec
PL
100582014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10059
10060 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10061 small stack allocation.
10062
a6290449
TG
100632014-03-24 Tristan Gingold <gingold@adacore.com>
10064
10065 * darwin-nat.c (exc_server): Remove unused prototype.
10066 (darwin_dump_message): Correctly display data on x86_64.
10067 (darwin_encode_reply): Fix style.
10068 Add comments and fix indentation.
10069
31ae9d24 100702014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10071
10072 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10073
6339bfc4
DE
100742014-03-22 Doug Evans <xdje42@gmail.com>
10075
10076 * infcmd.c: Whitespace fixes.
10077 (interrupt_command): Merge two function comments into one.
10078
0a07590b
DE
100792014-03-22 Doug Evans <xdje42@gmail.com>
10080
10081 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10082 All uses updated.
10083
b55fbac4
YQ
100842014-03-22 Yao Qi <yao@codesourcery.com>
10085
10086 * remote.c (target_read_live_memory): Remove.
10087 (memory_xfer_live_readonly_partial): Rename it to
10088 remote_xfer_live_readonly_partial. Remove argument 'object'.
10089 All callers updated. Call remote_read_bytes_1
10090 instead of target_read_live_memory.
10091 * tracepoint.c (set_traceframe_number): Remove.
10092 (make_cleanup_restore_traceframe_number): Likewise .
10093 * tracepoint.h (set_traceframe_number): Remove declaration.
10094 (make_cleanup_restore_traceframe_number): Likewise.
10095
9217e74e
YQ
100962014-03-22 Yao Qi <yao@codesourcery.com>
10097
10098 * remote.c (remote_read_bytes): Move code on reading from the
10099 remote stub to ...
10100 (remote_read_bytes_1): ... here. New function.
10101
8acf9577
YQ
101022014-03-22 Yao Qi <yao@codesourcery.com>
10103
10104 * ctf.c (ctf_xfer_partial): Check the return value of
10105 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10106 return TARGET_XFER_UNAVAILABLE.
10107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10108 * target.c (target_read_live_memory): Move it to remote.c.
10109 (memory_xfer_live_readonly_partial): Likewise.
10110 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10111 * remote.c (target_read_live_memory): Moved from target.c.
10112 (memory_xfer_live_readonly_partial): Likewise.
10113 (remote_read_bytes): Factored out from
10114 memory_xfer_partial_1.
10115
feef67ab
DE
101162014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10117
10118 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10119 NULL pointer.
10120
b65dc60b
PA
101212014-03-21 Pedro Alves <palves@redhat.com>
10122
10123 * infrun.c (normal_stop): Extend comment.
10124
b4ab256d
HZ
101252014-03-21 Hui Zhu <hui@codesourcery.com>
10126 Pedro Alves <palves@redhat.com>
10127
10128 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10129 static buffer.
10130 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10131 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10132 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10133
deba7593
MR
101342014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10135
10136 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10137 `z' formatted output modifier.
10138
1bff71c3
SDJ
101392014-03-20 Tom Tromey <tromey@redhat.com>
10140 Sergio Durigan Junior <sergiodj@redhat.com>
10141
10142 * probe.c (parse_probes): Turn assert into an ordinary error.
10143 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10144 exceptions when parsing probes. Rearrange the code for clarity.
10145
90e28950
TT
101462014-03-20 Tom Tromey <tromey@redhat.com>
10147
10148 PR gdb/14135
10149 * top.c (execute_command): Only dispatch events if the command
10150 started the target.
10151
beb460e8
PA
101522014-03-20 Tom Tromey <tromey@redhat.com>
10153
10154 PR cli/15718
10155 * infcall.c: Include event-top.h.
10156 (run_inferior_call): Call async_disable_stdin if needed.
10157
99619bea
PA
101582014-03-20 Pedro Alves <palves@redhat.com>
10159
10160 * infrun.c (prepare_to_proceed): Delete.
10161 (thread_still_needs_step_over): New function.
10162 (find_thread_needs_step_over): New function.
10163 (proceed): If the current thread needs a step-over, set its
10164 steping_over_breakpoint flag. Adjust to use
10165 find_thread_needs_step_over instead of prepare_to_proceed.
10166 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10167 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10168 breakpoint.
10169 (switch_back_to_stepped_thread): Step over breakpoints of all
10170 threads not the stepping thread, before switching back to the
10171 stepping thread.
10172
2adfaa28
PA
101732014-03-20 Pedro Alves <palves@redhat.com>
10174
10175 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10176 extern.
10177 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10178 * infrun.c (saved_singlestep_ptid)
10179 (stepping_past_singlestep_breakpoint): Delete.
10180 (resume): Remove stepping_past_singlestep_breakpoint handling.
10181 (proceed): Store the prev_pc of the stepping thread too.
10182 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10183 singlestep_pc.
10184 (enum infwait_states): Delete infwait_thread_hop_state.
10185 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10186 field.
10187 (handle_inferior_event): Adjust.
10188 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10189 handling and the thread-hop code. Before removing single-step
10190 breakpoints, check whether the thread hit a single-step breakpoint
10191 of another thread. If it did, the trap is not a random signal.
10192 (switch_back_to_stepped_thread): If the event thread hit a
10193 single-step breakpoint, unblock it before switching to the
10194 stepping thread. Handle the case of the stepped thread having
10195 advanced already.
10196 (keep_going): Handle the case of the current thread moving past a
10197 single-step breakpoint.
10198
31e77af2
PA
101992014-03-20 Pedro Alves <palves@redhat.com>
10200
10201 PR breakpoints/7143
10202 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10203 are being stepped over.
10204 (breakpoint_address_match): Make extern.
10205 * breakpoint.h (breakpoint_address_match): New declaration.
10206 * inferior.h (stepping_past_instruction_at): New declaration.
10207 * infrun.c (struct step_over_info): New type.
10208 (step_over_info): New global.
10209 (set_step_over_info, clear_step_over_info)
10210 (stepping_past_instruction_at): New functions.
10211 (handle_inferior_event): Clear the step-over info when
10212 trap_expected is cleared.
10213 (resume): Remove now stale comment.
10214 (clear_proceed_status): Clear step-over info.
10215 (proceed): Adjust step-over handling to set or clear the step-over
10216 info instead of removing all breakpoints.
10217 (handle_signal_stop): When setting up a thread-hop, don't remove
10218 breakpoints here.
10219 (stop_stepping): Clear step-over info.
10220 (keep_going): Adjust step-over handling to set or clear step-over
10221 info and then always inserting breakpoints, instead of removing
10222 all breakpoints when stepping over one.
10223
b9f437de
PA
102242014-03-20 Pedro Alves <palves@redhat.com>
10225
10226 * infrun.c (previous_inferior_ptid): Adjust comment.
10227 (deferred_step_ptid): Delete.
10228 (infrun_thread_ptid_changed, prepare_to_proceed)
10229 (init_wait_for_inferior): Adjust.
10230 (handle_signal_stop): Delete deferred_step_ptid handling.
10231
06c868a8
JK
102322014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10233
10234 PR gdb/15358
10235 * defs.h (sync_quit_force_run): New declaration.
10236 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10237 * event-top.c (async_sigterm_handler): New declaration.
10238 (async_sigterm_token): New variable.
10239 (async_init_signals): Create also async_sigterm_token.
10240 (async_sigterm_handler): New function.
10241 (sync_quit_force_run): New variable.
10242 (handle_sigterm): Replace quit_force call by other calls.
10243 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10244
dea80df0
MR
102452014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10246
10247 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10248 offset into SPE pseudo registers.
10249
0c7e1a46
PA
102502014-03-18 Pedro Alves <palves@redhat.com>
10251
10252 PR gdb/13860
10253 * inferior.h (print_stop_event): Declare.
10254 * infrun.c (print_stop_event): New, factored out from ...
10255 (normal_stop): ... this.
10256 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10257 of bpstat_print/print_stack_frame.
10258
9c1fcd01
TT
102592014-03-17 Tom Tromey <tromey@redhat.com>
10260
10261 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10262
11aa919a
PMR
102632014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10264
10265 * ada-lang.c (decode_constrained_packed_array): Perform a
10266 minimal coercion for reference with coerce_ref instead of
10267 ada_coerce_ref.
10268
d4ccb5e0
TG
102692014-03-17 Tristan Gingold <gingold@adacore.com>
10270
10271 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10272 (darwin_solib_create_inferior_hook): Emit a warning if version
10273 is unhandled.
10274
49840f2a
UW
102752014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10276
10277 * python/py-value.c (get_field_flag): Cast flag_name argument to
10278 PyObject_GetAttrString to support Python 2.4.
10279
ed4123e5
JK
102802014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10281
10282 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10283 (Global Maintainers): Remove Jan Kratochvil.
10284
d6b64346
PA
102852014-03-14 Pedro Alves <palves@redhat.com>
10286
10287 * inferior.h (terminal_ours_for_output): Rename to ...
10288 (child_terminal_ours_for_output): ... this.
10289 (terminal_save_ours): Rename to ...
10290 (child_terminal_save_ours): ... this.
10291 (terminal_ours): Rename to ...
10292 (child_terminal_ours): ... this.
10293 (terminal_inferior): Rename to ...
10294 (child_terminal_inferior): ... this.
10295 (terminal_init_inferior): Rename to ...
10296 (child_terminal_init_inferior): ... this.
10297 (terminal_init_inferior_with_pgrp): Rename to ...
10298 (child_terminal_init_inferior_with_pgrp): ... this.
10299 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10300 (child_terminal_init_with_pgrp): ... this.
10301 (terminal_save_ours): Rename to ...
10302 (child_terminal_save_ours): ... this.
10303 (terminal_init_inferior): Rename to ...
10304 (child_terminal_init): ... this. Adjust.
10305 (terminal_inferior): Rename to ...
10306 (child_terminal_inferior): ... this.
10307 (terminal_ours_for_output): Rename to ...
10308 (child_terminal_ours_for_output): ... this. Adjust.
10309 (terminal_ours): Rename to ...
10310 (child_terminal_ours): ... this.
10311 (terminal_ours_1): Rename to ...
10312 (child_terminal_ours_1): ... this. Adjust.
10313 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10314 * windows-nat.c (do_initial_windows_stuff): Adjust.
10315 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10316 (gnu_terminal_init): ... this. Adjust.
10317 (gnu_target): Adjust.
10318 * inf-child.c (inf_child_target): Adjust.
10319
5a1e8c7a
DE
103202014-03-13 Doug Evans <xdje42@gmail.com>
10321
10322 PR guile/16612
10323 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10324 new eq?-hashtab.
10325
350e1a76
DE
103262014-03-13 Doug Evans <xdje42@gmail.com>
10327
10328 * value.c (record_latest_value): Call release_value_or_incref
10329 instead of release_value.
10330
a69900ae
PA
103312014-03-13 Pedro Alves <palves@redhat.com>
10332
10333 * procfs.c (procfs_target): Don't override to_shortname,
10334 to_longname or to_doc.
10335
5db9f0bd
PA
103362014-03-13 Pedro Alves <palves@redhat.com>
10337
10338 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10339 Unix in user visible strings.
10340
5e3a2c38
SS
103412014-03-12 Stan Shebs <stan@codesourcery.com>
10342
10343 * gdbtypes.h: Annotate comments for Doxygen, add a page
10344 block comment with some general info.
10345
8bc2fe48
PA
103462014-03-12 Pedro Alves <palves@redhat.com>
10347
10348 * infcmd.c (prepare_execution_command): New function, factored out
10349 from several execution commands.
10350 (run_command_1, continue_command, step_1, jump_command)
10351 (signal_command, until_command, advance_command, finish_command)
10352 (attach_command): Use prepare_execution_command.
10353
638c5f49
OJ
103542014-03-12 Omair Javaid <omair.javaid@linaro.org>
10355
10356 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10357 (MAX_BPTS): Define.
10358 (MAX_WPTS): Define.
10359 (struct arm_linux_thread_points): Removed.
10360 (struct arm_linux_process_info): New.
10361 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10362 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10363 (arm_linux_find_breakpoints_by_tid): Removed.
10364 (struct arch_lwp_info): New.
10365 (arm_linux_find_process_pid): New functions.
10366 (arm_linux_add_process): New functions.
10367 (arm_linux_process_info_get): New functions.
10368 (arm_linux_forget_process): New function.
10369 (arm_linux_get_debug_reg_state): New function.
10370 (struct update_registers_data): New.
10371 (update_registers_callback): New function.
10372 (arm_linux_insert_hw_breakpoint1): Updated.
10373 (arm_linux_remove_hw_breakpoint1): Updated.
10374 (arm_linux_insert_hw_breakpoint): Updated.
10375 (arm_linux_remove_hw_breakpoint): Updated.
10376 (arm_linux_insert_watchpoint): Updated.
10377 (arm_linux_remove_watchpoint): Updated.
10378 (arm_linux_new_thread): Updated.
10379 (arm_linux_prepare_to_resume): New function.
10380 (arm_linux_new_fork): New function.
10381 (_initialize_arm_linux_nat): Updated.
10382
6d03af93
PA
103832014-03-12 Pedro Alves <palves@redhat.com>
10384
10385 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10386
b3ccfe11
TT
103872014-03-12 Tom Tromey <tromey@redhat.com>
10388
10389 * inf-child.c (return_zero): New function.
10390 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10391 * aix-thread.c (aix_thread_inferior_created): New function.
10392 (aix_thread_attach): Remove.
10393 (init_aix_thread_ops): Don't set to_attach.
10394 (_initialize_aix_thread): Register inferior_created observer.
10395 * corelow.c (init_core_ops): Don't set to_attach or
10396 to_create_inferior.
10397 * exec.c (init_exec_ops): Don't set to_attach or
10398 to_create_inferior.
10399 * infcmd.c (run_command_1): Use find_run_target. Make direct
10400 target calls.
10401 (attach_command): Use find_attach_target. Make direct target
10402 calls.
10403 * record-btrace.c (init_record_btrace_ops): Don't set
10404 to_create_inferior.
10405 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10406 Remove.
10407 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10408 set to_create_inferior.
10409 * target.c (complete_target_initialization): Add assertion.
10410 (target_create_inferior): Remove.
10411 (find_default_attach, find_default_create_inferior): Remove.
10412 (find_attach_target, find_run_target): New functions.
10413 (find_default_is_async_p, find_default_can_async_p)
10414 (target_supports_non_stop, target_attach): Remove.
10415 (init_dummy_target): Don't set to_create_inferior or
10416 to_supports_non_stop.
10417 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10418 TARGET_DEFAULT_FUNC.
10419 <to_create_inferior>: Add comment.
10420 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10421 TARGET_DEFAULT_RETURN.
10422 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10423 (find_attach_target, find_run_target): Declare.
10424 (target_create_inferior): Remove.
10425 (target_has_execution_1): Update comment.
10426 (target_supports_non_stop): Remove.
10427 * target-delegates.c: Rebuild.
10428
91f83b02
PA
104292014-03-12 Pedro Alves <palves@redhat.com>
10430
10431 * inf-child.h: Update comment to not mention Unix.
10432
f1aea813
PA
104332014-03-12 Pedro Alves <palves@redhat.com>
10434
10435 * inf-child.c: Update top comment to not mention Unix. Add
10436 generic comment describing how this target is meant to be used.
10437 (inf_child_post_attach, inf_child_post_startup_inferior)
10438 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10439 Unix in comment.
10440
ee8e9165
PA
104412014-03-12 Pedro Alves <palves@redhat.com>
10442
10443 * nto-procfs.c: Include inf-child.h.
10444 (procfs_ops): Delete global.
10445 (procfs_can_run): Delete method.
10446 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10447 target pointer instead of referencing procfs_ops.
10448 (procfs_prepare_to_store): Delete.
10449 (init_procfs_ops): Delete function.
10450 (procfs_target): New function, based on init_procfs_ops, but
10451 inherit inf_child_target.
10452 (_initialize_procfs): Use procfs_target.
10453
51a9c8c5
PA
104542014-03-12 Pedro Alves <palves@redhat.com>
10455
10456 * windows-nat.c: Include inf-child.h.
10457 (windows_ops): Delete global.
10458 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10459 methods.
10460 (init_windows_ops): Delete function.
10461 (windows_target): New function, based on init_windows_ops, but
10462 inherit inf_child_target.
10463 (_initialize_windows_nat): Use windows_target. Install x86
10464 specific target methods here.
10465
c1966e26
DE
104662014-03-10 Doug Evans <xdje42@gmail.com>
10467
10468 * guile/guile.c (call_initialize_gdb_module): New function.
10469 (initialize_guile): Replace call to scm_init_guile with call to
10470 scm_with_guile.
10471
023db19c
JB
104722014-03-10 Joel Brobecker <brobecker@adacore.com>
10473
10474 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10475 in call to TYPE_CODE macro.
10476
5ec18f2b
JG
104772014-03-10 Jerome Guitton <guitton@adacore.com>
10478
8668be63
JB
10479 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10480 Resolve tagged types to full view.
5ec18f2b 10481
7d03f2eb
HZ
104822014-03-10 Hui Zhu <hui@codesourcery.com>
10483
10484 * target.h (target_insert_breakpoint): Remove "hardware" from its
10485 comments.
10486
c5164cbc
DE
104872014-03-07 Doug Evans <dje@google.com>
10488
10489 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10490
c4a3fee2
DE
104912014-03-07 Doug Evans <dje@google.com>
10492
10493 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10494 Remove unused local comp_dir_attr. Assert exactly one of
10495 stub_comp_unit_die, stub_comp_dir is non-NULL.
10496
3156469c
JB
104972014-03-07 Joel Brobecker <brobecker@adacore.com>
10498
10499 * target.h (complete_target_initialization, add_target):
10500 Add comment.
10501
c1a7b7c6
PA
105022014-03-07 Pedro Alves <palves@redhat.com>
10503
10504 * go32-nat.c: Include inf-child.h.
10505 (go32_ops): Delete global.
10506 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10507 Delete methods.
10508 (go32_create_inferior): Push the passed in target pointer instead
10509 of referencing go32_ops.
10510 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10511 (go32_target): New function, based on init_go32_ops, but inherit
10512 inf_child_target.
10513 (_initialize_go32_nat): Use go32_target. Move parts of
10514 init_go32_ops here.
10515
d3c1a85f
JB
105162014-03-06 Joel Brobecker <brobecker@adacore.com>
10517
10518 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10519 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10520 SYMBOL_VALUE_ADDRESS.
10521 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10522
5fa1d40e
YQ
105232014-03-06 Yao Qi <yao@codesourcery.com>
10524
10525 * breakpoint.c (get_tracepoint_by_number): Remove argument
10526 optional_p. All callers updated. Adjust comments. Update
10527 output message.
10528 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10529
0c13193f
YQ
105302014-03-06 Yao Qi <yao@codesourcery.com>
10531
10532 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10533 early if get_number returns zero. Use 'p' instead of 'args'.
10534
2217da06
YQ
105352014-03-06 Yao Qi <yao@codesourcery.com>
10536
10537 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10538 message.
10539
cc3da688
YQ
105402014-03-06 Yao Qi <yao@codesourcery.com>
10541
10542 PR breakpoints/16508
10543 * tracepoint.c (check_trace_running): New function.
10544 (trace_find_command): Move code to check_trace_running and
10545 call check_trace_running.
10546 (trace_find_pc_command): Likewise.
10547 (trace_find_tracepoint_command): Likewise.
10548 (trace_find_line_command): Likewise.
10549 (trace_find_range_command): Likewise.
10550 * tracepoint.h (check_trace_running): Likewise.
10551 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10552
6a5f844b
YQ
105532014-03-06 Yao Qi <yao@codesourcery.com>
10554
10555 * target.h (struct target_ops) <to_traceframe_info>: Use
10556 TARGET_DEFAULT_NORETURN (tcomplain ()).
10557 * target-delegates.c: Regenerated.
10558
0f26cec1
PA
105592014-03-05 Pedro Alves <palves@redhat.com>
10560
10561 PR gdb/16575
10562 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10563 void. Update comment.
10564 (dcache_xfer_memory): Delete.
10565 (dcache_read_memory_partial): New, based on the read bits of
10566 dcache_xfer_memory.
10567 (dcache_update): Add status parameter. Use ULONGEST for len, and
10568 adjust. Discard cache lines if the reason for the update was
10569 error.
10570 * dcache.h (dcache_xfer_memory): Delete declaration.
10571 (dcache_read_memory_partial): New declaration.
10572 (dcache_update): Update prototype.
10573 * target.c (raw_memory_xfer_partial): Update the dcache here.
10574 (memory_xfer_partial_1): Don't handle dcache writes here.
10575
b2b255bd
MF
105762014-03-05 Mike Frysinger <vapier@gentoo.org>
10577
10578 * remote-sim.c (gdbsim_load): Add const to prog.
10579
5d9cf8a4
TT
105802014-03-03 Tom Tromey <tromey@redhat.com>
10581
10582 * elfread.c (probe_key): Change to bfd_data.
10583 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10584 now per-BFD, not per-objfile.
10585 * stap-probe.c (stap_probe_destroy): Update comment.
10586 (handle_stap_probe): Allocate on the per-BFD obstack.
10587
729662a5
TT
105882014-03-03 Tom Tromey <tromey@redhat.com>
10589
10590 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10591 * breakpoint.c (create_longjmp_master_breakpoint): Use
10592 get_probe_address.
10593 (add_location_to_breakpoint, bkpt_probe_insert_location)
10594 (bkpt_probe_remove_location): Update.
10595 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10596 * elfread.c (elf_symfile_relocate_probe): Remove.
10597 (elf_probe_fns): Update.
10598 (insert_exception_resume_breakpoint): Change type of "probe"
10599 parameter to bound_probe.
10600 (check_exception_resume): Update.
10601 * objfiles.c (objfile_relocate1): Don't relocate probes.
10602 * probe.c (bound_probe_s): New typedef.
10603 (parse_probes): Use get_probe_address. Set sal's objfile.
10604 (find_probe_by_pc): Return a bound_probe.
10605 (collect_probes): Return a VEC(bound_probe_s).
10606 (compare_probes): Update.
10607 (gen_ui_out_table_header_info): Change type of "probes"
10608 parameter. Update.
10609 (info_probes_for_ops): Update.
10610 (get_probe_address): New function.
10611 (probe_safe_evaluate_at_pc): Update.
10612 * probe.h (struct probe_ops) <get_probe_address>: New field.
10613 <set_semaphore, clear_semaphore>: Add objfile parameter.
10614 (struct probe) <objfile>: Remove field.
10615 <arch>: New field.
10616 <address>: Update comment.
10617 (struct bound_probe): New.
10618 (find_probe_by_pc): Return a bound_probe.
10619 (get_probe_address): Declare.
10620 * solib-svr4.c (struct probe_and_action) <address>: New field.
10621 (hash_probe_and_action, equal_probe_and_action): Update.
10622 (register_solib_event_probe): Add address parameter.
10623 (solib_event_probe_at): Update.
10624 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10625 get_probe_address.
10626 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10627 (stap_get_probe_address): New function.
10628 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10629 (compile_probe_arg): Update.
10630 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10631 address.
10632 (handle_stap_probe): Don't relocate the probe.
10633 (stap_relocate): Remove.
10634 (stap_gen_info_probes_table_values): Update.
10635 (stap_probe_ops): Remove stap_relocate.
10636 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10637 (debug_sym_probe_fns): Update.
10638 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10639 * symtab.c (init_sal): Use memset.
10640 * symtab.h (struct symtab_and_line) <objfile>: New field.
10641 * tracepoint.c (start_tracing, stop_tracing): Update.
10642
ff887920
TT
106432014-03-03 Tom Tromey <tromey@redhat.com>
10644
10645 * probe.h (parse_probes, find_probe_by_pc)
10646 (find_probes_in_objfile): Fix comments.
10647
f0407826
DE
106482014-03-02 Doug Evans <xdje42@gmail.com>
10649
10650 * infrun.c (handle_signal_stop): Replace test for
10651 TARGET_WAITKIND_STOPPED with an assert.
10652
35e6a711
DE
106532014-03-02 Doug Evans <xdje42@gmail.com>
10654
10655 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10656
667f9d0b
DE
106572014-03-02 Doug Evans <xdje42@gmail.com>
10658
10659 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10660
dc92ace0
MK
106612014-03-01 Mark Kettenis <kettenis@gnu.org>
10662
10663 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10664
a900370f
MK
106652014-03-01 Mark Kettenis <kettenis@gnu.org>
10666
10667 * i386obsd-nat.c: Include "obsd-nat.h".
10668 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10669 add_target.
10670 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10671
b72a7981
MK
106722014-03-01 Mark Kettenis <kettenis@gnu.org>
10673
10674 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10675
96c70aba
MK
106762014-03-01 Mark Kettenis <kettenis@gnu.org>
10677
10678 * mips64obsd-nat.c: Include "obsd-nath".
10679 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10680 add_target
10681 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10682
874a80af
MK
106832014-03-01 Mark Kettenis <kettenis@gnu.org>
10684
8fd408f1
MK
10685 * amd64obsd-nat.c: Include "obsd-nat,h.
10686 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10687 add_target.
874a80af
MK
10688 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10689
9cf95373
SC
106902014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10691
10692 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10693 (find_overload_match): Update call to find_oload_champ.
10694 (find_oload_champ_namespace_loop): Likewise
10695
863e4da4
MK
106962014-02-28 Mark Kettenis <kettenis@gnu.org>
10697
025cac40
MK
10698 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10699
1ed586ce
MK
10700 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10701 * config/sparc/obsd64.mh: New file.
10702 * sparc64obsd-nat.c: New file.
10703
863e4da4
MK
10704 * obsd-nat.h: New file.
10705 * obsd-nat.c: New file.
10706 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10707 (ALLDEPFILES): Add obsd-nat.c.
10708
89de4da4
TT
107092014-02-28 Tom Tromey <tromey@redhat.com>
10710
10711 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10712 * cli-out.h (cli_ui_out_impl): Now const.
10713 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10714 * ui-out.c (struct ui_out) <impl>: Now const.
10715 (default_ui_out_impl): Now const.
10716 (ui_out_new): Make 'impl' parameter const.
10717 * ui-out.h (ui_out_new): Update.
10718
c725e7b6
MK
107192014-02-27 Mark Kettenis <kettenis@gnu.org>
10720
10721 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10722
670b46b3
MK
107232014-02-27 Mark Kettenis <kettenis@gnu.org>
10724
10725 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10726
c91550fc
JK
107272014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10728
10729 Additional PR 8882 fix.
10730 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10731
2fa0369e
PA
107322014-02-27 Pedro Alves <palves@redhat.com>
10733
10734 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10735 isn't set.
10736
d632a097
PA
107372014-02-27 Pedro Alves <palves@redhat.com>
10738
10739 PR 12702
10740 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10741 * nat/linux-waitpid.c: Include string.h.
10742 (status_to_str): Moved here and made extern.
10743 * nat/linux-waitpid.h (status_to_str): New declaration.
10744
2ebd5a35
HZ
107452014-02-27 Hui Zhu <hui@codesourcery.com>
10746
10747 PR 12702
10748 * infrun.c (ptid_match): Move ...
10749 * common/ptid.c (ptid_match): ... here.
10750 * inferior.h (ptid_match): Move ...
10751 * common/ptid.h (ptid_match): ... here.
10752
3cdd631f
MK
107532014-02-27 Mark Kettenis <kettenis@gnu.org>
10754
10755 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10756 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10757 gdb_target_obs.
10758
bee30a64
MK
107592014-02-27 Mark Kettenis <kettenis@gnu.org>
10760
10761 * obsd-tdep.c (obsd_auxv_parse): New function.
10762 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10763
10764 * gdbarch.sh (auxv_parse): New.
10765 * gdbarch.h: Regenerated.
10766 * gdbarch.c: Regenerated.
10767 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10768
7a5a839f
LC
107692014-02-26 Ludovic Courtès <ludo@gnu.org>
10770
10771 * guile/scm-value.c (gdbscm_history_append_x): New function.
10772 (value_functions): Add it.
10773
31aa7e4e
JB
107742014-02-27 Joel Brobecker <brobecker@adacore.com>
10775
10776 * dwarf2read.c (attr_value_as_address): New function.
10777 (dwarf2_find_base_address, read_call_site_scope): Use
10778 attr_value_as_address in place of DW_ADDR.
10779 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10780 the low and high addresses. Slight rework of the handling
10781 of the high pc being a constant form, and limit it to
10782 DWARF verson 4 or higher.
10783 (dwarf2_record_block_ranges): Likewise.
10784 (read_partial_die): Likewise.
10785 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10786
9b333ba3
TT
107872014-02-26 Tom Tromey <tromey@redhat.com>
10788
10789 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10790
5f6cac40
TT
107912014-02-26 Tom Tromey <tromey@redhat.com>
10792
10793 * elfread.c (elf_read_minimal_symbols): Return early if
10794 minimal symbols have already been read. Add "ei" parameter.
10795 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10796 * minsyms.c (prim_record_minimal_symbol_full): Update.
10797 * objfiles.h (struct objstats) <n_minsyms>: Move...
10798 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10799 * symmisc.c (print_objfile_statistics): Update.
10800
2750ef27
TT
108012014-02-26 Tom Tromey <tromey@redhat.com>
10802
10803 * elfread.c (elf_read_minimal_symbols): New function, from
10804 elf_symfile_read.
10805 (elf_symfile_read): Call it.
10806
34643a32
TT
108072014-02-26 Tom Tromey <tromey@redhat.com>
10808
10809 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10810 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10811 (lookup_minimal_symbol_solib_trampoline)
10812 (lookup_minimal_symbol_by_pc_section_1)
10813 (lookup_minimal_symbol_and_objfile): Update.
10814 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10815 Don't allocate a minimal symbol if minsyms have already been read.
10816 (build_minimal_symbol_hash_tables): Update.
10817 (install_minimal_symbols): Do nothing if minsyms already read.
10818 Use the per-BFD obstack.
10819 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10820 * objfiles.c (allocate_objfile): Call
10821 terminate_minimal_symbol_table later.
10822 (have_minimal_symbols): Update.
10823 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10824 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10825 Move from struct objfile.
10826 <minsyms_read>: New field.
10827 (struct objfile) <msymbols, minimal_symbol_count,
10828 msymbol_hash, msymbol_demangled_hash>: Move.
10829 (ALL_OBJFILE_MSYMBOLS): Update.
10830 * symfile.c (read_symbols): Set minsyms_read.
10831 (reread_symbols): Update.
10832 * symmisc.c (dump_objfile, dump_msymbols): Update.
10833
2273f0ac
TT
108342014-02-26 Tom Tromey <tromey@redhat.com>
10835
10836 * minsyms.c (msymbols_sort): Remove.
10837 * minsyms.h (msymbols_sort): Remove.
10838 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10839 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10840 * elfread.c (elf_symtab_read): Don't add section offsets.
10841 * xcoffread.c (record_minimal_symbol): Don't add section offset
10842 to minimal symbol address.
10843 * somread.c (text_offset, data_offset): Remove.
10844 (som_symtab_read): Don't add section offsets to minimal symbol
10845 addresses.
10846 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10847 Don't add section offsets to minimal symbols.
10848 * coffread.c (coff_symtab_read): Don't add section offsets
10849 to minimal symbol addresses.
10850 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10851 to minimal symbol addresses.
10852 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10853 section offset to minimal symbol addresses.
10854 * mdebugread.c (parse_partial_symbols): Don't add section
10855 offset to minimal symbol addresses.
10856 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10857 offset to minimal symbol addresses.
10858
77e371c0
TT
108592014-02-26 Tom Tromey <tromey@redhat.com>
10860
10861 * ada-lang.c (ada_main_name): Update.
10862 (ada_add_standard_exceptions): Update.
10863 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10864 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10865 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10866 * auxv.c (ld_so_xfer_auxv): Update.
10867 * avr-tdep.c (avr_scan_prologue): Update.
10868 * ax-gdb.c (gen_var_ref): Update.
10869 * blockframe.c (get_pc_function_start)
10870 (find_pc_partial_function_gnu_ifunc): Update.
10871 * breakpoint.c (create_overlay_event_breakpoint)
10872 (create_longjmp_master_breakpoint)
10873 (create_std_terminate_master_breakpoint)
10874 (create_exception_master_breakpoint): Update.
10875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10876 * c-valprint.c (c_val_print): Update.
10877 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10878 * common/agent.c (agent_look_up_symbols): Update.
10879 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10880 * dwarf2loc.c (call_site_to_target_addr): Update.
10881 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10882 * elfread.c (elf_gnu_ifunc_record_cache)
10883 (elf_gnu_ifunc_resolve_by_got): Update.
10884 * findvar.c (default_read_var_value): Update.
10885 * frame.c (inside_main_func): Update.
10886 * frv-tdep.c (frv_frame_this_id): Update.
10887 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10888 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10889 Update.
10890 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10891 (hppa_hpux_find_dummy_bpaddr): Update.
10892 * hppa-tdep.c (hppa_symbol_address): Update.
10893 * infcmd.c (until_next_command): Update.
10894 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10895 Update.
10896 * linespec.c (minsym_found, add_minsym): Update.
10897 * linux-nat.c (get_signo): Update.
10898 * linux-thread-db.c (inferior_has_bug): Update.
10899 * m32c-tdep.c (m32c_return_value)
10900 (m32c_m16c_address_to_pointer): Update.
10901 * m32r-tdep.c (m32r_frame_this_id): Update.
10902 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10903 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10904 * maint.c (maintenance_translate_address): Update.
10905 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10906 (frob_address): New function.
10907 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10908 frob_address. Rename parameter to "pc_in".
10909 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10910 addresses.
10911 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10912 Update.
10913 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10914 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10915 * objc-lang.c (find_objc_msgsend): Update.
10916 * objfiles.c (objfile_relocate1): Update.
10917 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10918 * p-valprint.c (pascal_val_print): Update.
10919 * parse.c (write_exp_msymbol): Update.
10920 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10921 (ppc_elfv2_skip_entrypoint): Update.
10922 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10923 * printcmd.c (build_address_symbolic, msym_info)
10924 (address_info): Update.
10925 * proc-service.c (ps_pglobal_lookup): Update.
10926 * psymtab.c (find_pc_sect_psymtab_closer)
10927 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10928 Change msymbol parameter to bound_minimal_symbol.
10929 * ravenscar-thread.c (get_running_thread_id): Update.
10930 * remote.c (remote_check_symbols): Update.
10931 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10932 address.
10933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10934 * solib-dsbt.c (lm_base): Update.
10935 * solib-frv.c (lm_base, main_got): Update.
10936 * solib-irix.c (locate_base): Update.
10937 * solib-som.c (som_solib_create_inferior_hook)
10938 (link_map_start): Update.
10939 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10940 * solib-svr4.c (elf_locate_base, enable_break): Update.
10941 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10942 (flush_ea_cache): Update.
10943 * stabsread.c (define_symbol, scan_file_globals): Update.
10944 * stack.c (find_frame_funname): Update.
10945 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10946 (debug_qf_find_pc_sect_symtab): Update.
10947 * symfile.c (simple_read_overlay_table)
10948 (simple_overlay_update): Update.
10949 * symfile.h (struct quick_symbol_functions)
10950 <find_pc_sect_symtab>: Change type of msymbol to
10951 bound_minimal_symbol.
10952 * symmisc.c (dump_msymbols): Update.
10953 * symtab.c (find_pc_sect_symtab_via_partial)
10954 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10955 (search_symbols, print_msymbol_info): Update.
10956 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10957 (MSYMBOL_VALUE_ADDRESS): Redefine.
10958 (BMSYMBOL_VALUE_ADDRESS): New macro.
10959 * tracepoint.c (scope_info): Update.
10960 * tui/tui-disasm.c (tui_find_disassembly_address)
10961 (tui_get_begin_asm_address): Update.
10962 * valops.c (find_function_in_inferior): Update.
10963 * value.c (value_static_field, value_fn_field): Update.
10964
3b7344d5
TT
109652014-02-26 Tom Tromey <tromey@redhat.com>
10966
10967 * ada-lang.c (ada_update_initial_language): Update.
10968 (ada_main_name, ada_has_this_exception_support): Update.
10969 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10970 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10971 * arm-tdep.c (arm_skip_stub): Update.
10972 * auxv.c (ld_so_xfer_auxv): Update.
10973 * avr-tdep.c (avr_scan_prologue): Update.
10974 * ax-gdb.c (gen_var_ref): Update.
10975 * breakpoint.c (struct breakpoint_objfile_data)
10976 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10977 type to bound_minimal_symbol.
10978 (create_overlay_event_breakpoint)
10979 (create_longjmp_master_breakpoint)
10980 (create_std_terminate_master_breakpoint)
10981 (create_exception_master_breakpoint): Update.
10982 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10983 * c-exp.y (classify_name): Update.
10984 * coffread.c (coff_symfile_read): Update.
10985 * common/agent.c (agent_look_up_symbols): Update.
10986 * d-lang.c (d_main_name): Update.
10987 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10988 * dec-thread.c (enable_dec_thread): Update.
10989 * dwarf2loc.c (call_site_to_target_addr): Update.
10990 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10991 * eval.c (evaluate_subexp_standard): Update.
10992 * findvar.c (struct minsym_lookup_data) <result>: Change type
10993 to bound_minimal_symbol.
10994 <objfile>: Remove.
10995 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10996 * frame.c (inside_main_func): Update.
10997 * frv-tdep.c (frv_frame_this_id): Update.
10998 * gcore.c (call_target_sbrk): Update.
10999 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11000 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11001 Update.
11002 * go-lang.c (go_main_name): Update.
11003 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11004 (hppa_hpux_find_import_stub_for_addr): Update.
11005 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11006 Update. Change return type.
11007 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11008 type.
11009 * jit.c (jit_breakpoint_re_set_internal): Update.
11010 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11011 Update.
11012 * linux-nat.c (get_signo): Update.
11013 * linux-thread-db.c (inferior_has_bug): Update
11014 * m32c-tdep.c (m32c_return_value)
11015 (m32c_m16c_address_to_pointer): Update.
11016 * m32r-tdep.c (m32r_frame_this_id): Update.
11017 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11018 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11019 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11020 lookup_minimal_symbol. Change return type.
11021 (lookup_minimal_symbol): Remove.
11022 (lookup_bound_minimal_symbol): Update.
11023 (lookup_minimal_symbol_text): Change return type.
11024 (lookup_minimal_symbol_solib_trampoline): Change return type.
11025 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11026 (lookup_minimal_symbol_solib_trampoline): Change return type.
11027 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11028 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11029 (value_nsstring, find_imps): Update.
11030 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11031 * p-lang.c (pascal_main_name): Update.
11032 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11033 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11034 * proc-service.c (ps_pglobal_lookup): Update.
11035 * ravenscar-thread.c (get_running_thread_msymbol): Change
11036 return type.
11037 (has_ravenscar_runtime, get_running_thread_id): Update.
11038 * remote.c (remote_check_symbols): Update.
11039 * sol-thread.c (ps_pglobal_lookup): Update.
11040 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11041 * solib-dsbt.c (lm_base): Update.
11042 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11043 Update.
11044 * solib-irix.c (locate_base): Update.
11045 * solib-som.c (som_solib_create_inferior_hook)
11046 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11047 Update.
11048 * solib-spu.c (spu_enable_break): Update.
11049 * solib-svr4.c (elf_locate_base, enable_break): Update.
11050 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11051 (flush_ea_cache): Update.
11052 * stabsread.c (define_symbol): Update.
11053 * symfile.c (simple_read_overlay_table): Update.
11054 * symtab.c (find_pc_sect_line): Update.
11055 * tracepoint.c (scope_info): Update.
11056 * tui-disasm.c (tui_get_begin_asm_address): Update.
11057 * value.c (value_static_field): Update.
11058
40c1a007
TT
110592014-02-26 Tom Tromey <tromey@redhat.com>
11060
11061 * minsyms.c (prim_record_minimal_symbol_full): Use
11062 SET_MSYMBOL_VALUE_ADDRESS.
11063 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11064 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11065 SET_MSYMBOL_VALUE_ADDRESS.
11066 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11067 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11068
efd66ac6
TT
110692014-02-26 Tom Tromey <tromey@redhat.com>
11070
11071 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11072 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11073 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11074 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11075 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11076 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11077 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11078 * ada-lang.c (ada_main_name): Update.
11079 (ada_lookup_simple_minsym): Update.
11080 (ada_make_symbol_completion_list): Update.
11081 (ada_add_standard_exceptions): Update.
11082 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11083 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11084 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11085 * arm-tdep.c (skip_prologue_function): Update.
11086 (arm_skip_stack_protector, arm_skip_stub): Update.
11087 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11088 (arm_wince_skip_main_prologue): Update.
11089 * auxv.c (ld_so_xfer_auxv): Update.
11090 * avr-tdep.c (avr_scan_prologue): Update.
11091 * ax-gdb.c (gen_var_ref): Update.
11092 * block.c (call_site_for_pc): Update.
11093 * blockframe.c (get_pc_function_start): Update.
11094 (find_pc_partial_function_gnu_ifunc): Update.
11095 * breakpoint.c (create_overlay_event_breakpoint): Update.
11096 (create_longjmp_master_breakpoint): Update.
11097 (create_std_terminate_master_breakpoint): Update.
11098 (create_exception_master_breakpoint): Update.
11099 (resolve_sal_pc): Update.
11100 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11101 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11102 Update.
11103 * c-valprint.c (c_val_print): Update.
11104 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11105 * coffread.c (coff_symfile_read): Update.
11106 * common/agent.c (agent_look_up_symbols): Update.
11107 * dbxread.c (find_stab_function_addr): Update.
11108 (end_psymtab): Update.
11109 * dwarf2loc.c (call_site_to_target_addr): Update.
11110 (func_verify_no_selftailcall): Update.
11111 (tailcall_dump): Update.
11112 (call_site_find_chain_1): Update.
11113 (dwarf_expr_reg_to_entry_parameter): Update.
11114 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11115 (elf_gnu_ifunc_resolve_by_got): Update.
11116 * f-valprint.c (info_common_command): Update.
11117 * findvar.c (read_var_value): Update.
11118 * frame.c (get_prev_frame_1): Update.
11119 (inside_main_func): Update.
11120 * frv-tdep.c (frv_skip_main_prologue): Update.
11121 (frv_frame_this_id): Update.
11122 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11123 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11124 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11125 (gnuv3_skip_trampoline): Update.
11126 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11127 (hppa64_hpux_in_solib_call_trampoline): Update.
11128 (hppa_hpux_skip_trampoline_code): Update.
11129 (hppa64_hpux_search_dummy_call_sequence): Update.
11130 (hppa_hpux_find_import_stub_for_addr): Update.
11131 (hppa_hpux_find_dummy_bpaddr): Update.
11132 * hppa-tdep.c (hppa_symbol_address)
11133 (hppa_lookup_stub_minimal_symbol): Update.
11134 * i386-tdep.c (i386_skip_main_prologue): Update.
11135 (i386_pe_skip_trampoline_code): Update.
11136 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11137 * infcall.c (get_function_name): Update.
11138 * infcmd.c (until_next_command): Update.
11139 * jit.c (jit_breakpoint_re_set_internal): Update.
11140 (jit_inferior_init): Update.
11141 * linespec.c (minsym_found): Update.
11142 (add_minsym): Update.
11143 * linux-fork.c (info_checkpoints_command): Update.
11144 * linux-nat.c (get_signo): Update.
11145 * linux-thread-db.c (inferior_has_bug): Update.
11146 * m32c-tdep.c (m32c_return_value): Update.
11147 (m32c_m16c_address_to_pointer): Update.
11148 (m32c_m16c_pointer_to_address): Update.
11149 * m32r-tdep.c (m32r_frame_this_id): Update.
11150 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11151 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11152 * maint.c (maintenance_translate_address): Update.
11153 * minsyms.c (add_minsym_to_hash_table): Update.
11154 (add_minsym_to_demangled_hash_table): Update.
11155 (msymbol_objfile): Update.
11156 (lookup_minimal_symbol): Update.
11157 (iterate_over_minimal_symbols): Update.
11158 (lookup_minimal_symbol_text): Update.
11159 (lookup_minimal_symbol_by_pc_name): Update.
11160 (lookup_minimal_symbol_solib_trampoline): Update.
11161 (lookup_minimal_symbol_by_pc_section_1): Update.
11162 (lookup_minimal_symbol_and_objfile): Update.
11163 (prim_record_minimal_symbol_full): Update.
11164 (compare_minimal_symbols): Update.
11165 (compact_minimal_symbols): Update.
11166 (build_minimal_symbol_hash_tables): Update.
11167 (install_minimal_symbols): Update.
11168 (terminate_minimal_symbol_table): Update.
11169 (find_solib_trampoline_target): Update.
11170 (minimal_symbol_upper_bound): Update.
11171 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11172 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11173 (mips_skip_pic_trampoline_code): Update.
11174 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11175 * objc-lang.c (selectors_info): Update.
11176 (classes_info): Update.
11177 (find_methods): Update.
11178 (find_imps): Update.
11179 (find_objc_msgsend): Update.
11180 * objfiles.c (objfile_relocate1): Update.
11181 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11182 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11183 * p-valprint.c (pascal_val_print): Update.
11184 * parse.c (write_exp_msymbol): Update.
11185 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11186 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11187 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11188 * printcmd.c (build_address_symbolic): Update.
11189 (sym_info): Update.
11190 (address_info): Update.
11191 * proc-service.c (ps_pglobal_lookup): Update.
11192 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11193 (find_pc_sect_psymtab): Update.
11194 * python/py-framefilter.c (py_print_frame): Update.
11195 * ravenscar-thread.c (get_running_thread_id): Update.
11196 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11197 Update.
11198 * remote.c (remote_check_symbols): Update.
11199 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11200 (rs6000_skip_trampoline_code): Update.
11201 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11202 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11203 * solib-dsbt.c (lm_base): Update.
11204 * solib-frv.c (lm_base): Update.
11205 (main_got): Update.
11206 * solib-irix.c (locate_base): Update.
11207 * solib-som.c (som_solib_create_inferior_hook): Update.
11208 (som_solib_desire_dynamic_linker_symbols): Update.
11209 (link_map_start): Update.
11210 * solib-spu.c (spu_enable_break): Update.
11211 (ocl_enable_break): Update.
11212 * solib-svr4.c (elf_locate_base): Update.
11213 (enable_break): Update.
11214 * spu-tdep.c (spu_get_overlay_table): Update.
11215 (spu_catch_start): Update.
11216 (flush_ea_cache): Update.
11217 * stabsread.c (define_symbol): Update.
11218 (scan_file_globals): Update.
11219 * stack.c (find_frame_funname): Update.
11220 (frame_info): Update.
11221 * symfile.c (simple_read_overlay_table): Update.
11222 (simple_overlay_update): Update.
11223 * symmisc.c (dump_msymbols): Update.
11224 * symtab.c (fixup_section): Update.
11225 (find_pc_sect_line): Update.
11226 (skip_prologue_sal): Update.
11227 (search_symbols): Update.
11228 (print_msymbol_info): Update.
11229 (rbreak_command): Update.
11230 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11231 (completion_list_objc_symbol): Update.
11232 (default_make_symbol_completion_list_break_on): Update.
11233 * tracepoint.c (scope_info): Update.
11234 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11235 (tui_get_begin_asm_address): Update.
11236 * valops.c (find_function_in_inferior): Update.
11237 * value.c (value_static_field): Update.
11238 (value_fn_field): Update.
11239
50e65b17
TT
112402014-02-26 Tom Tromey <tromey@redhat.com>
11241
11242 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11243 bound minimal symbols. Move code that knows about minsym
11244 table layout...
11245 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11246 function.
11247 * minsyms.h (minimal_symbol_upper_bound): Declare.
11248 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11249 minimal_symbol_upper_bound.
11250
1b588015
JB
112512014-02-27 Joel Brobecker <brobecker@adacore.com>
11252
11253 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11254 Use the type's name if its basic type does not have a tag.
11255
dbb9c2b1
JB
112562014-02-27 Joel Brobecker <brobecker@adacore.com>
11257
11258 * dwarf2read.c (read_subrange_type): Add comment.
11259
55426c9d
JB
112602014-02-27 Joel Brobecker <brobecker@adacore.com>
11261
11262 * dwarf2read.c (update_enumeration_type_from_children): New
11263 function, mostly extracted from process_structure_scope.
11264 (read_enumeration_type): Call update_enumeration_type_from_children.
11265 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11266 and flag_flag_enum fields.
11267
f2fce0ca
PA
112682014-02-26 Pedro Alves <palves@redhat.com>
11269
11270 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11271 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11272 to_xfer_partial method.
11273
7a44e40e
PA
112742014-02-26 Pedro Alves <palves@redhat.com>
11275
11276 * target.c (complete_target_initialization): Don't install
11277 default_xfer_partial as to_xfer_partial hook.
11278 (nomemory): Delete.
11279 (update_current_target): Don't INHERIT nor de_fault
11280 deprecated_xfer_memory. Delete de_fault macro.
11281 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11282 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11283 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11284 field.
11285
bd265cd0
PA
112862014-02-26 Pedro Alves <palves@redhat.com>
11287
11288 * go32-nat.c (my_write_child): New function.
11289 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11290 (go32_xfer_partial): New function.
11291 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11292 Instead install a to_xfer_partial hook.
11293
9d46c4e5
PA
112942014-02-26 Pedro Alves <palves@redhat.com>
11295
11296 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11297 to_xfer_partial helper. Rewrite.
11298 (procfs_xfer_partial): New function.
11299 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11300 Install a to_xfer_partial hook.
11301
a1583b1f
PA
113022014-02-26 Pedro Alves <palves@redhat.com>
11303
11304 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11305 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11306 (m32r_xfer_partial): New function.
11307 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11308 Install a to_xfer_partial hook.
11309
6df1b29f
PA
113102014-02-26 Pedro Alves <palves@redhat.com>
11311
11312 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11313 helper.
11314 (mips_xfer_partial): New function.
11315 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11316 hook. Install a to_xfer_partial hook.
11317
dc53a7ad
JB
113182014-02-26 Joel Brobecker <brobecker@adacore.com>
11319
11320 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11321 * gdbtypes.c (create_array_type_with_stride): New function,
11322 renaming create_array_type, but with an added parameter
11323 called "bit_stride".
11324 (create_array_type): Re-implement using
11325 create_array_type_with_stride.
11326 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11327 and DW_AT_bit_stride attributes.
11328
12ab52e9
PA
113292014-02-26 Pedro Alves <palves@redhat.com>
11330
11331 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11332 task-specific breakpoints.
11333
d16461ae
PA
113342014-02-25 Pedro Alves <palves@redhat.com>
11335
11336 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11337 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11338
a8b16220
SS
113392014-02-25 Stan Shebs <stan@codesourcery.com>
11340
11341 * defs.h: Annotate comments for Doxygen.
11342
b9e795ee
TT
113432014-02-25 Tom Tromey <tromey@redhat.com>
11344
11345 * target.h (target_ignore): Don't declare.
11346 * target.c (target_ignore): Remove.
11347
849c862e
JK
113482014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11349
11350 PR gdb/16626
11351 * auto-load.c (auto_load_objfile_script_1): Change filename to
11352 debugfile.
11353
475109d8
JB
113542014-02-25 Joel Brobecker <brobecker@adacore.com>
11355
11356 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11357 documentation. Adjust prototype to match the target_ops
11358 to_xfer_partial method. Adjust implementation accordingly.
11359
e186c3bd
HZ
113602014-02-25 Hui Zhu <hui@codesourcery.com>
11361
11362 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11363 to_traceframe_info.
11364
6d451942
KB
113652014-02-25 Kevin Buettner <kevinb@redhat.com>
11366
041ab8b4 11367 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11368 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11369 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11370 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11371 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11372 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11373 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11374 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11375 New constants.
11376 (rl78_register_type): Use a data pointer type for SP and
11377 new pseudo registers mentioned above. Use a 16 bit integer
11378 type for all other register pairs.
11379 (rl78_register_name, rl78_g10_register_name): Update for
11380 new pseudo registers.
11381 (rl78_pseudo_register_read): Likewise.
11382 (rl78_pseudo_register_write): Likewise.
11383 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11384 to the newly added pseudo registers.
11385
eddf0bae
DE
113862014-02-24 Doug Evans <dje@google.com>
11387
11388 * value.c (record_latest_value): Fix comment.
11389 * printcmd.c (print_command_1): Remove code to handle -1 return from
11390 record_latest_value.
11391
e96027e0
PA
113922014-02-24 Pedro Alves <palves@redhat.com>
11393
11394 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11395 deprecated_xfer_memory hook.
11396 (procfs_xfer_partial): Call procfs_xfer_memory instead
11397 of the deprecated_xfer_memory target hook.
11398 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11399 helper.
11400
0837c976
YZ
114012014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11402
11403 * windows-nat.c (windows_xfer_shared_libraries): Return
11404 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11405 requested object is TARGET_OBJECT_LIBRARIES.
11406
bc113b4e
YQ
114072014-02-24 Yao Qi <yao@codesourcery.com>
11408
11409 * target.h (enum target_xfer_status)
11410 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11411 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11412 explicitly. New.
11413 * corefile.c (memory_error_message): User updated.
11414 * exec.c (section_table_read_available_memory): Likewise.
11415 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11416 * target.c (target_xfer_status_to_string): Likewise.
11417 (raw_memory_xfer_partial): Likewise.
11418 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11419 * valops.c (read_value_memory): Likewise.
11420 * exec.h: Update comments.
11421
01cb8804
YQ
114222014-02-24 Yao Qi <yao@codesourcery.com>
11423
11424 * target.c (target_xfer_status_to_string): Rename argument err
11425 to status.
11426 * target.h (target_xfer_status_to_string): Update declaration.
11427 Replace target_xfer_error_to_string with
11428 target_xfer_status_to_string in comment.
11429
93063aa6
YQ
114302014-02-24 Yao Qi <yao@codesourcery.com>
11431
11432 * mips-linux-nat.c (super_close): Update its type.
11433 (mips_linux_close): Pass 'self' to super_close.
11434
5c328c05
YQ
114352014-02-24 Yao Qi <yao@codesourcery.com>
11436
11437 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11438 * corefile.c (read_memory): Adjusted.
11439 * target.c (target_write_with_progress): Adjusted.
11440
f73023dd
YQ
114412014-02-23 Yao Qi <yao@codesourcery.com>
11442
11443 Revert two patches:
11444
11445 2013-10-25 Yao Qi <yao@codesourcery.com>
11446
11447 * remote.c (remote_traceframe_info): Return early if
11448 traceframe is not selected.
11449
11450 2013-07-19 Yao Qi <yao@codesourcery.com>
11451
11452 * target.c (update_current_target): Change the default action
11453 of 'to_traceframe_info' from tcomplain to return_zero.
11454 * target.h (struct target_ops) <to_traceframe_info>: Add more
11455 comments.
11456
5a2eb0ef
YQ
114572014-02-23 Yao Qi <yao@codesourcery.com>
11458
11459 * valops.c (read_value_memory): Rewrite it. Call
11460 target_xfer_partial in a loop.
11461 * exec.h (section_table_available_memory): Remove declaration.
11462 Move comments to ...
11463 * exec.c (section_table_available_memory): ... here. Make it
11464 static.
11465
1ee79381
YQ
114662014-02-23 Yao Qi <yao@codesourcery.com>
11467
11468 * exec.c (section_table_read_available_memory): New function.
11469 * exec.h (section_table_read_available_memory): Declare.
11470 * ctf.c (ctf_xfer_partial): Call
11471 section_table_read_available_memory.
11472 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11473
1ca49d37
YQ
114742014-02-23 Yao Qi <yao@codesourcery.com>
11475
11476 * ctf.c (ctf_xfer_partial): Move code to ...
11477 * exec.c (exec_read_partial_read_only): ... it. New function.
11478 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11479 * tracefile.c: Include "exec.h".
11480 * exec.h (exec_read_partial_read_only): Declare.
11481
a283690e
YQ
114822014-02-23 Yao Qi <yao@codesourcery.com>
11483
11484 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11485 (tfile_has_memory): Remove.
11486 (init_tfile_ops): Don't set fields to_has_all_memory and
11487 to_has_memory of tfile_ops.
11488 * tracefile.c (tracefile_has_all_memory): New function.
11489 (tracefile_has_memory): New function.
11490 (init_tracefile_ops): Initialize fields to_has_all_memory and
11491 to_has_memory of 'ops'.
11492
12e03cd0
YQ
114932014-02-23 Yao Qi <yao@codesourcery.com>
11494
11495 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11496 (ctf_thread_alive, ctf_get_trace_status): Remove.
11497 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11498 init_tracefile_ops.
11499 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11500 (tfile_has_stack, tfile_has_registers): Remove.
11501 (tfile_thread_alive): Remove.
11502 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11503 init_tracefile_ops.
11504 * tracefile.c (tracefile_has_stack): New function.
11505 (tracefile_has_registers): New function.
11506 (tracefile_thread_alive): New function.
11507 (tracefile_get_trace_status): New function.
11508 (init_tracefile_ops): New function.
11509 * tracefile.h (init_tracefile_ops): Declare.
11510
11395323
YQ
115112014-02-23 Yao Qi <yao@codesourcery.com>
11512
11513 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11514 (O_LARGEFILE): Likewise.
11515 (tfile_ops): Likewise.
11516 (TRACE_HEADER_SIZE): Likewise.
11517 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11518 (cur_data_size): Likewise.
11519 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11520 (tfile_close, tfile_files_info): Likewise.
11521 (tfile_get_trace_status): Likewise.
11522 (tfile_get_tracepoint_status): Likewise.
11523 (tfile_get_traceframe_address): Likewise.
11524 (tfile_trace_find, match_blocktype): Likewise.
11525 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11526 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11527 (tfile_get_trace_state_variable_value): Likewise.
11528 (tfile_has_all_memory, tfile_has_memory): Likewise.
11529 (tfile_has_stack, tfile_has_registers): Likewise.
11530 (tfile_thread_alive, build_traceframe_info): Likewise.
11531 (tfile_traceframe_info, init_tfile_ops): Likewise.
11532 (_initialize_tracepoint): Don't call init_tfile_ops
11533 and add_target_with_completer.
11534 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11535 exec.h, completer.h and filenames.h.
11536 (_initialize_tracefile_tfile): New function.
11537
7951c4eb
YQ
115382014-02-23 Yao Qi <yao@codesourcery.com>
11539
11540 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11541 tracefile-tfile.o.
11542 (HFILES_NO_SRCDIR): Add tracefile.h.
11543 * ctf.c: Include "tracefile.h".
11544 * tracefile.h: New file.
11545 * tracefile.c: New file
11546 * tracefile-tfile.c: New file.
11547 * tracepoint.c: Include "tracefile.h".
11548 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11549 (stop_reason_names): Add const.
11550 (trace_file_writer_xfree): Move it to tracefile.c.
11551 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11552 (trace_save_ctf): Likewise.
11553 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11554 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11555 (tfile_write_header, tfile_write_regblock_type): Likewise.
11556 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11557 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11558 (tfile_write_raw_data, tfile_end): Likewise.
11559 (tfile_trace_file_writer_new): Likewise.
11560 (free_uploaded_tp): Make it extern.
11561 (free_uploaded_tsv): Make it extern.
11562 (_initialize_tracepoint): Move code to register command 'tsave'
11563 to tracefile.c.
11564 * tracepoint.h (stop_reason_names): Declare.
11565 (struct trace_frame_write_ops): Move it to tracefile.h.
11566 (struct trace_file_write_ops): Likewise.
11567 (struct trace_file_writer): Likewise.
11568 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11569
184cd072
JK
115702014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11571
11572 PR gdb/16594
11573 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11574 process name.
11575 (get_cores_used_by_process): New parameter num_cores, use it.
11576 (linux_xfer_osdata_processes): Pass num_cores to it.
11577 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11578 process name.
11579
c63528fc
AK
115802014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11581
11582 * target.c (memory_xfer_partial): Fix length arg in call to
11583 breakpoint_xfer_memory.
11584
d7b30f67
SDJ
115852014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11586
11587 PR tdep/16397
11588 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11589 number comes after the + or - signs. Adjust length of register
11590 name to be extracted.
11591
8838afaf
TT
115922014-02-20 Tom Tromey <tromey@redhat.com>
11593
11594 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11595 (ada_varobj_ops): Mark "extern".
11596
05227d14
TT
115972014-02-20 Tom Tromey <tromey@redhat.com>
11598
11599 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11600
1254eefc
DE
116012014-02-20 Doug Evans <xdje42@gmail.com>
11602
11603 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11604 All callers updated.
11605 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11606 All callers updated.
11607 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11608 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11609
adde2bff
DE
116102014-02-20 lin zuojian <manjian2006@gmail.com>
11611 Joel Brobecker <brobecker@adacore.com>
11612 Doug Evans <xdje42@gmail.com>
11613
11614 PR symtab/16581
11615 * dwarf2read.c (struct die_info): New member in_process.
11616 (reset_die_in_process): New function.
11617 (process_die): Set it at the start, reset when returning.
11618 (inherit_abstract_dies): Only call process_die if origin_child_die
11619 not already being processed.
11620
3be75f87
JB
116212014-02-20 Joel Brobecker <brobecker@adacore.com>
11622
11623 * windows-nat.c (handle_unload_dll): Add function documentation.
11624 (do_initial_windows_stuff): Add comment explaining why we wait
11625 until after inferior initialization has finished before
11626 processing all DLLs.
11627
47f7ffdb
JB
116282014-02-20 Joel Brobecker <brobecker@adacore.com>
11629
11630 * windows-nat.c (get_module_name): Delete.
11631 (windows_get_exec_module_filename): New function, mostly
11632 inspired from get_module_name.
11633 (windows_pid_to_exec_file): Replace call to get_module_name
11634 by call to windows_get_exec_module_filename.
11635
1cd9feab
JB
116362014-02-20 Joel Brobecker <brobecker@adacore.com>
11637
11638 * windows-nat.c (handle_load_dll): Rewrite this function's
11639 introductory comment. Remove code using get_module_name
11640 to get the DLL's name.
11641
ea39ad35
JB
116422014-02-20 Joel Brobecker <brobecker@adacore.com>
11643
11644 * windows-nat.c (get_windows_debug_event): Ignore
11645 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11646 if windows_initialization_done == 0.
11647 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11648 Adjust implementation to always load all DLLs.
11649 (do_initial_windows_stuff): Replace call to
11650 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11651
95060284
JB
116522014-02-20 Joel Brobecker <brobecker@adacore.com>
11653
11654 * windows-nat.c (_initialize_windows_nat): Deprecate the
11655 "dll-symbols" command. Turn the "add-shared-symbol-files"
11656 and "assf" aliases into commands, and deprecate them as well.
11657 * NEWS: Add entry explaining that "dll-symbols" and its two
11658 aliases are now deprecated.
11659
8d4fdb12
JB
116602014-02-20 Joel Brobecker <brobecker@adacore.com>
11661
11662 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11663 new-line in debug string. Remove trailing spaces.
11664
1b281443
SS
116652014-02-19 Stan Shebs <stan@codesourcery.com>
11666
11667 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11668
f7bd0f78
SC
116692014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11670
11671 * NEWS: Add entry for the new feature
11672 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11673 and class values.
11674
399ebc3d
SS
116752014-02-19 Stan Shebs <stan@codesourcery.com>
11676
11677 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11678
c658158d
PA
116792014-02-19 Pedro Alves <palves@redhat.com>
11680
11681 * common/ptid.h (struct ptid): Mention that process_stratum
11682 targets should prefer ptid.lwp.
11683
ba348170
PA
116842014-02-19 Pedro Alves <palves@redhat.com>
11685
11686 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11687 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11688 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11689 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11690 store remote thread ids rather than ptid.tid.
11691 (_initialize_remote): Adjust.
11692
ac01945b
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.c (target_get_unwinder): Rewrite.
11696 (target_get_tailcall_unwinder): Rewrite.
11697 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11698 (record_btrace_to_get_tailcall_unwinder): New function.
11699 (init_record_btrace_ops): Update.
11700 * target.h (struct target_ops) <to_get_unwinder,
11701 to_get_tailcall_unwinder>: Now function pointers. Use
11702 TARGET_DEFAULT_RETURN.
11703
8476dc92
TT
117042014-02-19 Tom Tromey <tromey@redhat.com>
11705
11706 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11707 argument.
11708 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11709
c0eca49f
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11713 directly.
11714 * target-delegates.c: Rebuild.
11715 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11716 TARGET_DEFAULT_FUNC.
11717 * target.c (default_target_decr_pc_after_break): Rename from
11718 forward_target_decr_pc_after_break. Simplify.
11719 (target_decr_pc_after_break): Rely on delegation.
11720
596b6b39
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target.c (update_current_target): Do not INHERIT to_doc or
11724 to_magic. Do not de_fault to_open or to_close.
11725
b427c1bc
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * gcore.h (objfile_find_memory_regions): Declare.
11729 * gcore.c (objfile_find_memory_regions): No longer static. Add
11730 "self" argument.
11731 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11732 * exec.c: Include gcore.h.
11733 (exec_set_find_memory_regions): Remove.
11734 (exec_find_memory_regions): Remove.
11735 (exec_do_find_memory_regions): Remove.
11736 (init_exec_ops): Update.
11737 * defs.h (exec_set_find_memory_regions): Remove.
11738
9b144037
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target-delegates.c: Rebuild.
11742 * target.h (struct target_ops) <to_extra_thread_info,
11743 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11744 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11745 not 0, in TARGET_DEFAULT_RETURN.
11746
555bbdeb
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target.c (complete_target_initialization): Remove casts. Use
11750 return_zero_has_execution.
11751 (return_zero): Add "ignore" argument.
11752 (return_zero_has_execution): New function.
11753 (init_dummy_target): Remove casts. Use
11754 return_zero_has_execution.
11755
be4ddd36
TT
117562014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target.c (update_current_target): Update comments. Do not
11759 INHERIT to_stratum.
11760
2117c711
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11764 needed.
11765 * corelow.c (core_read_description): Delegate when needed.
11766 * remote.c (remote_read_description): Delegate when needed.
11767 * target-delegates.c: Rebuild.
11768 * target.c (target_read_description): Rewrite.
11769 * target.h (struct target_ops) <to_read_description>: Update
11770 comment. Use TARGET_DEFAULT_RETURN.
11771
e88ef65c
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_can_run.
11777 (find_default_run_target): Check against delegate_can_run.
11778 * target.h (struct target_ops) <to_can_run>: Use
11779 TARGET_DEFAULT_RETURN.
11780
86a0854a
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target-delegates.c: Rebuild.
11784 * target.c (target_disconnect): Unconditionally delegate.
11785 * target.h (struct target_ops) <to_disconnect>: Use
11786 TARGET_DEFAULT_NORETURN.
11787
ee97f592
TT
117882014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * record.c (record_stop): Unconditionally delegate.
11791 * target-delegates.c: Rebuild.
11792 * target.c (target_stop_recording): Unconditionally delegate.
11793 * target.h (struct target_ops) <to_stop_recording>: Use
11794 TARGET_DEFAULT_IGNORE.
11795
6dc7fcf4
TT
117962014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target-delegates.c: Rebuild.
11799 * target.c (target_enable_btrace): Unconditionally delegate.
11800 * target.h (struct target_ops) <to_enable_btrace>: Use
11801 TARGET_DEFAULT_NORETURN.
11802
eb5b20d4
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (target_read_btrace): Unconditionally delegate.
11807 * target.h (struct target_ops) <to_read_btrace>: Use
11808 TARGET_DEFAULT_NORETURN.
11809
9ace480d
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_teardown_btrace): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_teardown_btrace>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
8dc292d3
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_disable_btrace): Unconditionally delegate.
11821 * target.h (struct target_ops) <to_disable_btrace>: Use
11822 TARGET_DEFAULT_NORETURN.
11823
58a5184e
TT
118242014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target-delegates.c: Rebuild.
11827 * target.c (default_search_memory): New function.
11828 (simple_search_memory): Update comment.
11829 (target_search_memory): Unconditionally delegate.
11830 * target.h (struct target_ops) <to_search_memory>: Use
11831 TARGET_DEFAULT_FUNC.
11832
8de71aab
TT
118332014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * auxv.c (default_auxv_parse): No longer static.
11836 (target_auxv_parse): Unconditionally delegate.
11837 * auxv.h (default_auxv_parse): Declare.
11838 * target-delegates.c: Rebuild.
11839 * target.c: Include auxv.h.
11840 * target.h (struct target_ops) <to_auxv_parse>: Use
11841 TARGET_DEFAULT_FUNC.
11842
6b2c5a57
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (target_memory_map): Unconditionally delegate.
11847 * target.h (struct target_ops) <to_memory_map>: Use
11848 TARGET_DEFAULT_RETURN.
11849
cbffc065
TT
118502014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target-delegates.c: Rebuild.
11853 * target.c (target_thread_alive): Unconditionally delegate.
11854 * target.h (struct target_ops) <to_thread_alive>: Use
11855 TARGET_DEFAULT_RETURN.
11856
f09e2107
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (target_save_record): Unconditionally delegate.
11861 * target.h (struct target_ops) <to_save_record>: Use
11862 TARGET_DEFAULT_NORETURN.
11863
07366925
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * target-delegates.c: Rebuild.
11867 * target.c (target_delete_record): Unconditionally delegate.
11868 * target.h (struct target_ops) <to_delete_record>: Use
11869 TARGET_DEFAULT_NORETURN.
11870
dd2e9d25
TT
118712014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (target_record_is_replaying): Unconditionally
11875 delegate.
11876 * target.h (struct target_ops) <to_record_is_replaying>: Use
11877 TARGET_DEFAULT_RETURN.
11878
671e76cc
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_goto_record_begin): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_goto_record_begin>: Use
11884 TARGET_DEFAULT_NORETURN.
11885
e9179bb3
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_goto_record_end): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_goto_record_end>: Use
11891 TARGET_DEFAULT_NORETURN.
11892
05969c84
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_goto_record): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_goto_record>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
3679abfa
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_insn_history): Unconditionally delegate.
11904 * target.h (struct target_ops) <to_insn_history>: Use
11905 TARGET_DEFAULT_NORETURN.
11906
8444ab58
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (target_insn_history_from): Unconditionally delegate.
11911 * target.h (struct target_ops) <to_insn_history_from>: Use
11912 TARGET_DEFAULT_NORETURN.
11913
c29302cc
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_insn_history_range): Unconditionally delegate.
11918 * target.h (struct target_ops) <to_insn_history_range>: Use
11919 TARGET_DEFAULT_NORETURN.
11920
170049d4
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target-delegates.c: Rebuild.
11924 * target.c (target_call_history): Unconditionally delegate.
11925 * target.h (struct target_ops) <to_call_history>: Use
11926 TARGET_DEFAULT_NORETURN.
11927
16fc27d6
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (target_call_history_from): Unconditionally delegate.
11932 * target.h (struct target_ops) <to_call_history_from>: Use
11933 TARGET_DEFAULT_NORETURN.
11934
115d9817
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (target_call_history_range): Unconditionally delegate.
11939 * target.h (struct target_ops) <to_call_history_range>: Use
11940 TARGET_DEFAULT_NORETURN.
11941
eb276a6b
TT
119422014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target-delegates.c: Rebuild.
11945 * target.c (target_verify_memory): Unconditionally delegate.
11946 * target.h (struct target_ops) <to_verify_memory>: Use
11947 TARGET_DEFAULT_NORETURN.
11948
9e538d0d
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target-delegates.c: Rebuild.
11952 * target.c (target_core_of_thread): Unconditionally delegate.
11953 * target.h (struct target_ops) <to_core_of_thread>: Use
11954 TARGET_DEFAULT_RETURN.
11955
f6fb2925
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (target_flash_done): Unconditionally delegate.
11960 * target.h (struct target_ops) <to_flash_done>: Use
11961 TARGET_DEFAULT_NORETURN.
11962
e8a6c6ac
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * target-delegates.c: Rebuild.
11966 * target.c (target_flash_erase): Unconditionally delegate.
11967 * target.h (struct target_ops) <to_flash_erase>: Use
11968 TARGET_DEFAULT_NORETURN.
11969
7e35c012
TT
119702014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (target_get_section_table): Unconditionally delegate.
11974 * target.h (struct target_ops) <to_get_section_table>: Use
11975 TARGET_DEFAULT_RETURN.
11976
770234d3
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target-delegates.c: Rebuild.
11980 * target.c (target_pid_to_str): Unconditionally delegate.
11981 (init_dummy_target): Don't initialize to_pid_to_str.
11982 (default_pid_to_str): Rename from dummy_pid_to_str.
11983 * target.h (struct target_ops) <to_pid_to_str>: Use
11984 TARGET_DEFAULT_FUNC.
11985
09b0dc2b
TT
119862014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target-delegates.c: Rebuild.
11989 * target.c (target_find_new_threads): Unconditionally delegate.
11990 * target.h (struct target_ops) <to_find_new_threads>: Use
11991 TARGET_DEFAULT_RETURN.
11992
7d4f8efa
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target-delegates.c: Rebuild.
11996 * target.c (target_program_signals): Unconditionally delegate.
11997 * target.h (struct target_ops) <to_program_signals>: Use
11998 TARGET_DEFAULT_IGNORE.
11999
035cad7f
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_pass_signals): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_pass_signals>: Use
12005 TARGET_DEFAULT_IGNORE.
12006
8d657035
TT
120072014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (default_mourn_inferior): New function.
12011 (target_mourn_inferior): Unconditionally delegate.
12012 * target.h (struct target_ops) <to_mourn_inferior>: Use
12013 TARGET_DEFAULT_FUNC.
12014
098dba18
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target-delegates.c: Rebuild.
12018 * target.c (default_follow_fork): New function.
12019 (target_follow_fork): Unconditionally delegate.
12020 * target.h (struct target_ops) <to_follow_fork>: Use
12021 TARGET_DEFAULT_FUNC.
12022
423a4807
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (target_kill): Unconditionally delegate.
12027 * target.h (struct target_ops) <to_kill>: Use
12028 TARGET_DEFAULT_NORETURN.
12029
6c7e5e5c
TT
120302014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_masked_watch_num_registers): Unconditionally
12034 delegate.
12035 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12036 Use TARGET_DEFAULT_RETURN.
12037
8b1c364c
TT
120382014-02-19 Tom Tromey <tromey@redhat.com>
12039
12040 * target-delegates.c: Rebuild.
12041 * target.c (target_remove_mask_watchpoint): Unconditionally
12042 delegate.
12043 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12044 TARGET_DEFAULT_RETURN.
12045
cd4ae029
TT
120462014-02-19 Tom Tromey <tromey@redhat.com>
12047
12048 * target-delegates.c: Rebuild.
12049 * target.c (target_insert_mask_watchpoint): Unconditionally
12050 delegate.
12051 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12052 TARGET_DEFAULT_RETURN.
12053
a134316b
TT
120542014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target-delegates.c: Rebuild.
12057 * target.c (target_ranged_break_num_registers): Unconditionally
12058 delegate.
12059 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12060 Use TARGET_DEFAULT_RETURN.
12061
ad5989bd
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target-delegates.c: Rebuild.
12065 * target.c (target_fetch_registers): Unconditionally delegate.
12066 * target.h (struct target_ops) <to_fetch_registers>: Use
12067 TARGET_DEFAULT_NORETURN.
12068
46ee7e8d
TT
120692014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target-delegates.c: Rebuild.
12072 * target.c (update_current_target): Don't inherit or default
12073 to_stop.
12074 * target.h (struct target_ops) <to_stop>: Use
12075 TARGET_DEFAULT_IGNORE.
12076
843f59ed
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target-delegates.c: Rebuild.
12080 * target.c (update_current_target): Don't inherit or default
12081 to_can_run_breakpoint_commands.
12082 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12083 Use TARGET_DEFAULT_RETURN.
12084
ccfde2a0
TT
120852014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target-delegates.c: Rebuild.
12088 * target.c (update_current_target): Don't inherit or default
12089 to_supports_evaluation_of_breakpoint_conditions.
12090 * target.h (struct target_ops)
12091 <to_supports_evaluation_of_breakpoint_conditions>: Use
12092 TARGET_DEFAULT_RETURN.
12093
0de91722
TT
120942014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_augmented_libraries_svr4_read.
12099 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12100 Use TARGET_DEFAULT_RETURN.
12101
9a7d8b48
TT
121022014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12106 to_can_use_agent.
12107 * target.h (struct target_ops) <to_can_use_agent>: Use
12108 TARGET_DEFAULT_RETURN.
12109
d9db5b21
TT
121102014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_use_agent.
12115 * target.h (struct target_ops) <to_use_agent>: Use
12116 TARGET_DEFAULT_NORETURN.
12117
92155eeb
TT
121182014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target-delegates.c: Rebuild.
12121 * target.c (update_current_target): Don't inherit or default
12122 to_traceframe_info.
12123 (return_null): Remove.
12124 * target.h (struct target_ops) <to_traceframe_info>: Use
12125 TARGET_DEFAULT_RETURN.
12126
d6522a22
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target-delegates.c: Rebuild.
12130 * target.c (update_current_target): Don't inherit or default
12131 to_static_tracepoint_markers_by_strid.
12132 * target.h (struct target_ops)
12133 <to_static_tracepoint_markers_by_strid>: Use
12134 TARGET_DEFAULT_NORETURN.
12135
4c3e4425
TT
121362014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target-delegates.c: Rebuild.
12139 * target.c (update_current_target): Don't inherit or default
12140 to_static_tracepoint_marker_at.
12141 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12142 Use TARGET_DEFAULT_RETURN.
12143
dcd6917f
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12148 to_set_permissions.
12149 * target.h (struct target_ops) <to_set_permissions>: Use
12150 TARGET_DEFAULT_IGNORE.
12151
22bcceee
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_get_tib_address.
12157 * target.h (struct target_ops) <to_get_tib_address>: Use
12158 TARGET_DEFAULT_NORETURN.
12159
8586ccaa
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target-delegates.c: Rebuild.
12163 * target.c (update_current_target): Don't inherit or default
12164 to_set_trace_notes.
12165 * target.h (struct target_ops) <to_set_trace_notes>: Use
12166 TARGET_DEFAULT_RETURN.
12167
91df8d1d
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't initialize
12172 to_set_trace_buffer_size.
12173 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12174 TARGET_DEFAULT_IGNORE.
12175
8d526939
TT
121762014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target-delegates.c: Rebuild.
12179 * target.c (update_current_target): Don't inherit or default
12180 to_set_circular_trace_buffer.
12181 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12182 TARGET_DEFAULT_IGNORE.
12183
0bcfeddf
TT
121842014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target-delegates.c: Rebuild.
12187 * target.c (update_current_target): Don't inherit or default
12188 to_set_disconnected_tracing.
12189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12190 TARGET_DEFAULT_IGNORE.
12191
9249843f
TT
121922014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target-delegates.c: Rebuild.
12195 * target.c (update_current_target): Don't inherit or default
12196 to_get_min_fast_tracepoint_insn_len.
12197 (return_minus_one): Remove.
12198 * target.h (struct target_ops)
12199 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12200
ace92e7d
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_get_raw_trace_data.
12206 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12207 TARGET_DEFAULT_NORETURN.
12208
08120467
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_upload_trace_state_variables.
12214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12215 Use TARGET_DEFAULT_RETURN.
12216
1e949b00
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_upload_tracepoints.
12222 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12223 TARGET_DEFAULT_RETURN.
12224
a2e6c147
TT
122252014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_save_trace_data.
12230 * target.h (struct target_ops) <to_save_trace_data>: Use
12231 TARGET_DEFAULT_NORETURN.
12232
959bcd0b
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12237 to_get_trace_state_variable_value.
12238 * target.h (struct target_ops)
12239 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12240
afc94e66
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target-delegates.c: Rebuild.
12244 * target.c (update_current_target): Don't inherit or default
12245 to_trace_find.
12246 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12247
e51c07ea
TT
122482014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target-delegates.c: Rebuild.
12251 * target.c (update_current_target): Don't inherit or default
12252 to_trace_stop.
12253 * target.h (struct target_ops) <to_trace_stop>: Use
12254 TARGET_DEFAULT_NORETURN.
12255
6fea14cd
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target-delegates.c: Rebuild.
12259 * target.c (update_current_target): Don't inherit or default
12260 to_get_tracepoint_status.
12261 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12262 TARGET_DEFAULT_NORETURN.
12263
4072d4ff
TT
122642014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target-delegates.c: Rebuild.
12267 * target.c (update_current_target): Don't inherit or default
12268 to_get_trace_status.
12269 * target.h (struct target_ops) <to_get_trace_status>: Use
12270 TARGET_DEFAULT_RETURN.
12271
25da2e80
TT
122722014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * target-delegates.c: Rebuild.
12275 * target.c (update_current_target): Don't inherit or default
12276 to_trace_start.
12277 * target.h (struct target_ops) <to_trace_start>: Use
12278 TARGET_DEFAULT_NORETURN.
12279
86dd181d
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target-delegates.c: Rebuild.
12283 * target.c (update_current_target): Don't inherit or default
12284 to_trace_set_readonly_regions.
12285 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12286 Use TARGET_DEFAULT_NORETURN.
12287
05c41993
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target-delegates.c: Rebuild.
12291 * target.c (update_current_target): Don't inherit or default
12292 to_disable_tracepoint.
12293 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12294 TARGET_DEFAULT_NORETURN.
12295
151f70f1
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target-delegates.c: Rebuild.
12299 * target.c (update_current_target): Don't inherit or default
12300 to_enable_tracepoint.
12301 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12302 TARGET_DEFAULT_NORETURN.
12303
94eb98b9
TT
123042014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * target-delegates.c: Rebuild.
12307 * target.c (update_current_target): Don't inherit or default
12308 to_download_trace_state_variable.
12309 * target.h (struct target_ops) <to_download_trace_state_variable>:
12310 Use TARGET_DEFAULT_NORETURN.
12311
719acc4a
TT
123122014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * target-delegates.c: Rebuild.
12315 * target.c (update_current_target): Don't inherit or default
12316 to_can_download_tracepoint.
12317 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12318 TARGET_DEFAULT_RETURN.
12319
9a980a22
TT
123202014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * target-delegates.c: Rebuild.
12323 * target.c (update_current_target): Don't inherit or default
12324 to_download_tracepoint.
12325 * target.h (struct target_ops) <to_download_tracepoint>: Use
12326 TARGET_DEFAULT_NORETURN.
12327
5536135b
TT
123282014-02-19 Tom Tromey <tromey@redhat.com>
12329
12330 * target-delegates.c: Rebuild.
12331 * target.c (update_current_target): Don't inherit or default
12332 to_trace_init.
12333 * target.h (struct target_ops) <to_trace_init>: Use
12334 TARGET_DEFAULT_RETURN.
12335
9409d39e
TT
123362014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target-delegates.c: Rebuild.
12339 * target.c (update_current_target): Don't inherit or default
12340 to_supports_string_tracing.
12341 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12342 TARGET_DEFAULT_RETURN.
12343
aab1b22d
TT
123442014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * target-delegates.c: Rebuild.
12347 * target.c (update_current_target): Don't inherit or default
12348 to_supports_enable_disable_tracepoint.
12349 * target.h (struct target_ops)
12350 <to_supports_enable_disable_tracepoint>: Use
12351 TARGET_DEFAULT_RETURN.
12352
a7304748
TT
123532014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target-delegates.c: Rebuild.
12356 * target.c (update_current_target): Don't inherit or default
12357 to_supports_multi_process.
12358 * target.h (struct target_ops) <to_supports_multi_process>: Use
12359 TARGET_DEFAULT_RETURN.
12360
4229b31d
TT
123612014-02-19 Tom Tromey <tromey@redhat.com>
12362
12363 * target-delegates.c: Rebuild.
12364 * target.c (update_current_target): Don't inherit or default
12365 to_get_ada_task_ptid.
12366 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12367 TARGET_DEFAULT_FUNC.
12368
43eba180
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target-delegates.c: Rebuild.
12372 * target.c (update_current_target): Don't inherit or default
12373 to_thread_architecture.
12374 * target.h (struct target_ops) <to_thread_architecture>: Use
12375 TARGET_DEFAULT_FUNC.
12376
fe31bf5b
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target-delegates.c: Rebuild.
12380 * target.c (update_current_target): Don't inherit or default
12381 to_execution_direction.
12382 * target.h (struct target_ops) <to_execution_direction>: Use
12383 TARGET_DEFAULT_FUNC.
12384
53e1cfc7
TT
123852014-02-19 Tom Tromey <tromey@redhat.com>
12386
12387 * target-delegates.c: Rebuild.
12388 * target.c (update_current_target): Don't inherit or default
12389 to_can_execute_reverse.
12390 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12391 TARGET_DEFAULT_RETURN.
12392 (target_can_execute_reverse): Unconditionally delegate.
12393
9bb9d61d
TT
123942014-02-19 Tom Tromey <tromey@redhat.com>
12395
12396 * target-delegates.c: Rebuild.
12397 * target.c (update_current_target): Don't inherit or default
12398 to_goto_bookmark.
12399 (dummy_goto_bookmark): Remove.
12400 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12401 * target.h (struct target_ops) <to_goto_bookmark>: Use
12402 TARGET_DEFAULT_NORETURN.
12403
3dbafbbb
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_get_bookmark.
12409 (dummy_get_bookmark): Remove.
12410 (init_dummy_target): Don't inherit or default to_get_bookmark.
12411 * target.h (struct target_ops) <to_get_bookmark>: Use
12412 TARGET_DEFAULT_NORETURN
12413
16f796b1
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12418 to_make_corefile_notes.
12419 (init_dummy_target): Don't initialize to_make_corefile_notes.
12420 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12421 TARGET_DEFAULT_FUNC.
12422
0b5a2719
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12427 to_find_memory_regions.
12428 (init_dummy_target): Don't initialize to_find_memory_regions.
12429 * target.h (struct target_ops) <to_find_memory_regions>: Use
12430 TARGET_DEFAULT_FUNC.
12431
d9cb0195
TT
124322014-02-19 Tom Tromey <tromey@redhat.com>
12433
12434 * target-delegates.c: Rebuild.
12435 * target.c (update_current_target): Don't inherit or default
12436 to_log_command.
12437 * target.h (struct target_ops) <to_log_command>: Use
12438 TARGET_DEFAULT_IGNORE.
12439 (target_log_command): Unconditionally delegate.
12440
830ca330
TT
124412014-02-19 Tom Tromey <tromey@redhat.com>
12442
12443 * target-delegates.c: Rebuild.
12444 * target.c (update_current_target): Don't inherit or default
12445 to_pid_to_exec_file.
12446 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12447 TARGET_DEFAULT_RETURN.
12448
825828fc
TT
124492014-02-19 Tom Tromey <tromey@redhat.com>
12450
12451 * target-delegates.c: Rebuild.
12452 * target.c (update_current_target): Don't inherit or default
12453 to_thread_name.
12454 (target_thread_name): Unconditionally delegate.
12455 * target.h (struct target_ops) <to_thread_name>: Use
12456 TARGET_DEFAULT_RETURN.
12457
4a7e6dda
TT
124582014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target-delegates.c: Rebuild.
12461 * target.c (update_current_target): Don't inherit or default
12462 to_extra_thread_info.
12463 * target.h (struct target_ops) <to_extra_thread_info>: Use
12464 TARGET_DEFAULT_RETURN.
12465
0db88c1d
TT
124662014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target-delegates.c: Rebuild.
12469 * target.c (update_current_target): Don't inherit or default
12470 to_has_exited.
12471 * target.h (struct target_ops) <to_has_exited>: Use
12472 TARGET_DEFAULT_RETURN..
12473
6a9fa051
TT
124742014-02-19 Tom Tromey <tromey@redhat.com>
12475
12476 * target-delegates.c: Rebuild.
12477 * target.c (update_current_target): Don't inherit or default
12478 to_set_syscall_catchpoint.
12479 (return_one): Remove.
12480 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12481 TARGET_DEFAULT_RETURN.
12482
62f64d7a
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target-delegates.c: Rebuild.
12486 * target.c (update_current_target): Don't inherit or default
12487 to_insert_exec_catchpoint.
12488 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12489 TARGET_DEFAULT_RETURN.
12490
cda0f38c
TT
124912014-01-08 Tom Tromey <tromey@redhat.com>
12492
12493 * target-delegates.c: Rebuild.
12494 * target.c (update_current_target): Don't inherit or default
12495 to_insert_exec_catchpoint.
12496 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12497 TARGET_DEFAULT_RETURN.
12498
95c3375e
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_remove_vfork_catchpoint.
12504 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12505 TARGET_DEFAULT_RETURN.
12506
7e18a8dc
TT
125072014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target-delegates.c: Rebuild.
12510 * target.c (update_current_target): Don't inherit or default
12511 to_insert_vfork_catchpoint.
12512 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12513 TARGET_DEFAULT_RETURN.
12514
e1a21fb7
TT
125152014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target-delegates.c: Rebuild.
12518 * target.c (update_current_target): Don't inherit or default
12519 to_remove_fork_catchpoint.
12520 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12521 TARGET_DEFAULT_RETURN.
12522
5958ebeb
TT
125232014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target-delegates.c: Rebuild.
12526 * target.c (update_current_target): Don't inherit or default
12527 to_insert_fork_catchpoint.
12528 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12529 TARGET_DEFAULT_RETURN.
12530
340ba4bf
TT
125312014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * target-delegates.c: Rebuild.
12534 * target.c (update_current_target): Don't inherit or default
12535 to_post_startup_inferior.
12536 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12537 TARGET_DEFAULT_IGNORE.
12538
7634da87
TT
125392014-02-19 Tom Tromey <tromey@redhat.com>
12540
12541 * target-delegates.c: Rebuild.
12542 * target.c (update_current_target): Don't inherit or default
12543 to_load.
12544 * target.h (struct target_ops) <to_load>: Use
12545 TARGET_DEFAULT_NORETURN.
12546
e19e919f
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target-delegates.c: Rebuild.
12550 * target.c (update_current_target): Don't inherit or default
12551 to_terminal_info.
12552 * target.h (struct target_ops) <to_terminal_info>: Use
12553 TARGET_DEFAULT_FUNC.
12554
c6ea8f79
TT
125552014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target-delegates.c: Rebuild.
12558 * target.c (update_current_target): Don't inherit or default
12559 to_terminal_save_ours.
12560 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12561 TARGET_DEFAULT_IGNORE.
12562
e4a733f1
TT
125632014-02-19 Tom Tromey <tromey@redhat.com>
12564
12565 * target-delegates.c: Rebuild.
12566 * target.c (update_current_target): Don't inherit or default
12567 to_terminal_ours.
12568 * target.h (struct target_ops) <to_terminal_ours>: Use
12569 TARGET_DEFAULT_IGNORE.
12570
74fcbef9
TT
125712014-02-19 Tom Tromey <tromey@redhat.com>
12572
12573 * target-delegates.c: Rebuild.
12574 * target.c (update_current_target): Don't inherit or default
12575 to_terminal_ours_for_output.
12576 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12577 TARGET_DEFAULT_IGNORE.
12578
ddeaacc9
TT
125792014-02-19 Tom Tromey <tromey@redhat.com>
12580
12581 * target-delegates.c: Rebuild.
12582 * target.c (update_current_target): Don't inherit or default
12583 to_terminal_inferior.
12584 * target.h (struct target_ops) <to_terminal_inferior>: Use
12585 TARGET_DEFAULT_IGNORE.
12586
0343661d
TT
125872014-02-19 Tom Tromey <tromey@redhat.com>
12588
12589 * target-delegates.c: Rebuild.
12590 * target.c (update_current_target): Don't inherit or default
12591 to_terminal_init.
12592 * target.h (struct target_ops) <to_terminal_init>: Use
12593 TARGET_DEFAULT_IGNORE.
12594
77cdffe9
TT
125952014-02-19 Tom Tromey <tromey@redhat.com>
12596
12597 * target-delegates.c: Rebuild.
12598 * target.c (update_current_target): Don't inherit or default
12599 to_can_accel_watchpoint_condition.
12600 * target.h (struct target_ops)
12601 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12602
d03655e4
TT
126032014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target-delegates.c: Rebuild.
12606 * target.c (update_current_target): Don't inherit or default
12607 to_region_ok_for_hw_watchpoint.
12608 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12609 Use TARGET_DEFAULT_FUNC.
12610
65f160a9
TT
126112014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target-delegates.c: Rebuild.
12614 * target.c (update_current_target): Don't inherit or default
12615 to_watchpoint_addr_within_range.
12616 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12617 Use TARGET_DEFAULT_FUNC.
12618
61dd109f
TT
126192014-02-19 Tom Tromey <tromey@redhat.com>
12620
12621 * target-delegates.c: Rebuild.
12622 * target.c (update_current_target): Don't inherit or default
12623 to_remove_watchpoint.
12624 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12625 TARGET_DEFAULT_NORETURN.
12626
016facd4
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target-delegates.c: Rebuild.
12630 * target.c (update_current_target): Don't inherit or default
12631 to_insert_watchpoint.
12632 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12633 TARGET_DEFAULT_RETURN.
12634
418dabac
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target-delegates.c: Rebuild.
12638 * target.c (update_current_target): Don't inherit or default
12639 to_remove_hw_breakpoint.
12640 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12641 TARGET_DEFAULT_RETURN.
12642
61b371f9
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target-delegates.c: Rebuild.
12646 * target.c (update_current_target): Don't inherit or default
12647 to_insert_hw_breakpoint.
12648 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12649 TARGET_DEFAULT_RETURN.
12650
52b51d06
TT
126512014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target-delegates.c: Rebuild.
12654 * target.c (update_current_target): Don't inherit or default
12655 to_can_use_hw_breakpoint.
12656 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12657 TARGET_DEFAULT_RETURN.
12658
f86e59b2
TT
126592014-02-19 Tom Tromey <tromey@redhat.com>
12660
12661 * target-delegates.c: Rebuild.
12662 * target.c (update_current_target): Don't inherit or default
12663 to_files_info.
12664 * target.h (struct target_ops) <to_files_info>: Use
12665 TARGET_DEFAULT_IGNORE.
12666
6c628163
TT
126672014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target-delegates.c: Rebuild.
12670 * target.c (update_current_target): Don't inherit or default
12671 to_store.
12672 * target.h (struct target_ops) <to_store>: Use
12673 TARGET_DEFAULT_NORETURN.
12674
bebd3233
TT
126752014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target-delegates.c: Rebuild.
12678 * target.c (update_current_target): Don't inherit or default
12679 to_post_attach.
12680 * target.h (struct target_ops) <to_post_attach>: Use
12681 TARGET_DEFAULT_IGNORE.
12682
a53f3625
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target-delegates.c: Rebuild.
12686 * target.c (update_current_target): Don't inherit or default
12687 to_rcmd.
12688 (default_rcmd): New function.
12689 (do_monitor_command): Unconditionally delegate.
12690 * target.h (struct target_ops) <to_rmcd>: Use
12691 TARGET_DEFAULT_FUNC.
12692
e9a29200
TT
126932014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target-delegates.c: Rebuild.
12696 * target.c (init_dummy_target): Don't initialize to_attach.
12697 (target_attach): Unconditionally delegate.
12698 * target.h (struct target_ops) <to_attach>: Use
12699 TARGET_DEFAULT_FUNC.
12700
09da0d0a
TT
127012014-02-19 Tom Tromey <tromey@redhat.com>
12702
12703 * target-delegates.c: Rebuild.
12704 * target.c (target_detach): Unconditionally delegate.
12705 (init_dummy_target): Don't initialize to_detach.
12706 * target.h (struct target_ops) <to_detach>: Use
12707 TARGET_DEFAULT_IGNORE.
12708
5436ff03
TT
127092014-02-19 Tom Tromey <tromey@redhat.com>
12710
12711 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12712 Add argument.
12713 (target_augmented_libraries_svr4_read): Add argument.
12714 * target.c (update_current_target): Update.
12715 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12716 argument.
12717
f0d960ea
TT
127182014-02-19 Tom Tromey <tromey@redhat.com>
12719
12720 * target.h (struct target_ops) <to_call_history_range>: Add
12721 argument.
12722 * target.c (target_call_history_range): Add argument.
12723 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12724 argument.
12725 (record_btrace_call_history_from): Update.
12726
ec0aea04
TT
127272014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * target.h (struct target_ops) <to_call_history_from>: Add
12730 argument.
12731 * target.c (target_call_history_from): Add argument.
12732 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12733 argument.
12734
5df2fcba
TT
127352014-02-19 Tom Tromey <tromey@redhat.com>
12736
12737 * target.h (struct target_ops) <to_call_history>: Add argument.
12738 * target.c (target_call_history): Add argument.
12739 * record-btrace.c (record_btrace_call_history): Add 'self'
12740 argument.
12741
4e99c6b7
TT
127422014-02-19 Tom Tromey <tromey@redhat.com>
12743
12744 * target.h (struct target_ops) <to_insn_history_range>: Add
12745 argument.
12746 * target.c (target_insn_history_range): Add argument.
12747 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12748 argument.
12749 (record_btrace_insn_history_from): Update.
12750
9abc3ff3
TT
127512014-02-19 Tom Tromey <tromey@redhat.com>
12752
12753 * target.h (struct target_ops) <to_insn_history_from>: Add
12754 argument.
12755 * target.c (target_insn_history_from): Add argument.
12756 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12757 argument.
12758
7a6c5609
TT
127592014-02-19 Tom Tromey <tromey@redhat.com>
12760
12761 * target.h (struct target_ops) <to_insn_history>: Add argument.
12762 * target.c (target_insn_history): Add argument.
12763 * record-btrace.c (record_btrace_insn_history): Add 'self'
12764 argument.
12765
606183ac
TT
127662014-02-19 Tom Tromey <tromey@redhat.com>
12767
12768 * target.h (struct target_ops) <to_goto_record>: Add argument.
12769 * target.c (target_goto_record): Add argument.
12770 * record-full.c (record_full_goto): Add 'self' argument.
12771 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12772
307a1b91
TT
127732014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12776 * target.c (target_goto_record_end): Add argument.
12777 * record-full.c (record_full_goto_end): Add 'self' argument.
12778 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12779
08475817
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_goto_record_begin>: Add
12783 argument.
12784 * target.c (target_goto_record_begin): Add argument.
12785 * record-full.c (record_full_goto_begin): Add 'self' argument.
12786 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12787 argument.
12788
1c63c994
TT
127892014-02-19 Tom Tromey <tromey@redhat.com>
12790
12791 * target.h (struct target_ops) <to_record_is_replaying>: Add
12792 argument.
12793 * target.c (target_record_is_replaying): Add argument.
12794 * record-full.c (record_full_is_replaying): Add 'self' argument.
12795 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12796 argument.
12797 (record_btrace_xfer_partial, record_btrace_store_registers)
12798 (record_btrace_prepare_to_store, record_btrace_resume)
12799 (record_btrace_wait, record_btrace_decr_pc_after_break)
12800 (record_btrace_find_new_threads, record_btrace_thread_alive):
12801 Update.
12802
d1b55219
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_delete_record>: Add argument.
12806 * target.c (target_delete_record): Add argument.
12807 * record-full.c (record_full_delete): Add 'self' argument.
12808
1390f529
TT
128092014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_save_record>: Add argument.
12812 * target.c (target_save_record): Add argument.
12813 * record-full.c (record_full_save): Add 'self' argument.
12814 (record_full_save): Add 'self' argument.
12815
630d6a4a
TT
128162014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target.h (struct target_ops) <to_info_record>: Add argument.
12819 * target.c (target_info_record): Add argument.
12820 * record.c (info_record_command): Add argument.
12821 * record-full.c (record_full_info): Add 'self' argument.
12822 * record-btrace.c (record_btrace_info): Add 'self' argument.
12823
c6cd7c02
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12827 * target.c (target_stop_recording): Add argument.
12828 * record.c (record_stop): Add argument.
12829 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12830 argument.
12831
39c49f83
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12835 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12836 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12837 argument.
12838 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12839 (_initialize_amd64_linux_nat): Use it.
12840 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12841 (_initialize_i386_linux_nat): Use it.
12842
1777056d
TT
128432014-02-19 Tom Tromey <tromey@redhat.com>
12844
12845 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12846 * target.c (target_teardown_btrace): Add argument.
12847 * remote.c (remote_teardown_btrace): Add 'self' argument.
12848 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12849 argument.
12850 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12851 argument.
12852
25e95349
TT
128532014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12856 * target.c (target_disable_btrace): Add argument.
12857 * remote.c (remote_disable_btrace): Add 'self' argument.
12858 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12859 argument.
12860 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12861 argument.
12862
e3c49f88
TT
128632014-02-19 Tom Tromey <tromey@redhat.com>
12864
12865 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12866 * target.c (target_enable_btrace): Add argument.
12867 * remote.c (remote_enable_btrace): Add 'self' argument.
12868 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12869 argument.
12870 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12871 argument.
12872
fe38f897
TT
128732014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12876 (target_can_use_agent): Add argument.
12877 * target.c (update_current_target): Update.
12878 * remote.c (remote_can_use_agent): Add 'self' argument.
12879 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12880
2c152180
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_use_agent>: Add argument.
12884 (target_use_agent): Add argument.
12885 * target.c (update_current_target): Update.
12886 * remote.c (remote_use_agent): Add 'self' argument.
12887 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12888
a893e81f
TT
128892014-02-19 Tom Tromey <tromey@redhat.com>
12890
12891 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12892 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12893 (target_traceframe_info): Add argument.
12894 * target.c (update_current_target): Update.
12895 * remote.c (remote_traceframe_info): Add 'self' argument.
12896 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12897
c686c57f
TT
128982014-02-19 Tom Tromey <tromey@redhat.com>
12899
12900 * target.h (target_static_tracepoint_markers_by_strid): Add
12901 argument.
12902 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12903 'self' argument.
12904 * target.c (update_current_target): Update.
12905 * remote.c (struct target_ops)
12906 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12907 * linux-nat.c (struct target_ops)
12908 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12909
61fc905d
TT
129102014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12913 Add argument.
12914 (target_static_tracepoint_marker_at): Add argument.
12915 * target.c (update_current_target): Update.
12916 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12917 argument.
12918
c378d69d
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12922 (target_set_permissions): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_set_permissions): Add 'self' argument.
12925 (remote_start_remote): Update.
12926
bd7ae0f5
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12930 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12931 (target_get_tib_address): Add argument.
12932 * target.c (update_current_target): Update.
12933 * remote.c (remote_get_tib_address): Add 'self' argument.
12934
d9e68a2c
TT
129352014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12938 (target_set_trace_notes): Add argument.
12939 * target.c (update_current_target): Update.
12940 * remote.c (remote_set_trace_notes): Add 'self' argument.
12941
4da384be
TT
129422014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12945 argument.
12946 (target_set_trace_buffer_size): Add argument.
12947 * target.c (update_current_target): Update.
12948 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12949
736d5b1f
TT
129502014-02-19 Tom Tromey <tromey@redhat.com>
12951
12952 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12953 argument.
12954 (target_set_circular_trace_buffer): Add argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12957 argument.
12958
37b25738
TT
129592014-02-19 Tom Tromey <tromey@redhat.com>
12960
12961 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12962 argument.
12963 (target_set_disconnected_tracing): Add argument.
12964 * target.c (update_current_target): Update.
12965 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12966
0e67620a
TT
129672014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * target.h (struct target_ops)
12970 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12971 (target_get_min_fast_tracepoint_insn_len): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12974 argument.
12975
88ee6f45
TT
129762014-02-19 Tom Tromey <tromey@redhat.com>
12977
12978 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12979 argument.
12980 (target_get_raw_trace_data): Add argument.
12981 * target.c (update_current_target): Update.
12982 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12983
181e3713
TT
129842014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12987 Add argument.
12988 (target_upload_trace_state_variables): Add argument.
12989 * target.c (update_current_target): Update.
12990 * remote.c (remote_upload_trace_state_variables): Add 'self'
12991 argument.
12992 (remote_start_remote): Update.
12993
ab6617cc
TT
129942014-02-19 Tom Tromey <tromey@redhat.com>
12995
12996 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12997 argument.
12998 (target_upload_tracepoints): Add argument.
12999 * target.c (update_current_target): Update.
13000 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13001 (remote_start_remote): Update.
13002
dc3decaf
TT
130032014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13006 (target_save_trace_data): Add argument.
13007 * target.c (update_current_target): Update.
13008 * remote.c (remote_save_trace_data): Add 'self' argument.
13009
4011015b
TT
130102014-02-19 Tom Tromey <tromey@redhat.com>
13011
13012 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13013 argument.
13014 * target.h (struct target_ops)
13015 <to_get_trace_state_variable_value>: Add argument.
13016 (target_get_trace_state_variable_value): Add argument.
13017 * target.c (update_current_target): Update.
13018 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13019 argument.
13020 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13021
bd4c6793
TT
130222014-02-19 Tom Tromey <tromey@redhat.com>
13023
13024 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13025 * target.h (struct target_ops) <to_trace_find>: Add argument.
13026 (target_trace_find): Add argument.
13027 * target.c (update_current_target): Update.
13028 * remote.c (remote_trace_find): Add 'self' argument.
13029 * ctf.c (ctf_trace_find): Add 'self' argument.
13030
74499f1b
TT
130312014-02-19 Tom Tromey <tromey@redhat.com>
13032
13033 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13034 (target_trace_stop): Add argument.
13035 * target.c (update_current_target): Update.
13036 * remote.c (remote_trace_stop): Add 'self' argument.
13037
db90e85c
TT
130382014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13041 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13042 argument.
13043 (target_get_tracepoint_status): Add argument.
13044 * target.c (update_current_target): Update.
13045 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13046
8bd200f1
TT
130472014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13050 * target.h (struct target_ops) <to_get_trace_status>: Add
13051 argument.
13052 (target_get_trace_status): Add argument.
13053 * target.c (update_current_target): Update.
13054 * remote.c (remote_get_trace_status): Add 'self' argument.
13055 (remote_start_remote, remote_can_download_tracepoint): Update.
13056 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13057
e2d1aae3
TT
130582014-02-19 Tom Tromey <tromey@redhat.com>
13059
13060 * target.h (struct target_ops) <to_trace_start>: Add argument.
13061 (target_trace_start): Add argument.
13062 * target.c (update_current_target): Update.
13063 * remote.c (remote_trace_start): Add 'self' argument.
13064
583f9a86
TT
130652014-02-19 Tom Tromey <tromey@redhat.com>
13066
13067 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13068 Add argument.
13069 (target_trace_set_readonly_regions): Add argument.
13070 * target.c (update_current_target): Update.
13071 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13072 argument.
13073
780b049c
TT
130742014-02-19 Tom Tromey <tromey@redhat.com>
13075
13076 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13077 argument.
13078 (target_disable_tracepoint): Add argument.
13079 * target.c (update_current_target): Update.
13080 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13081
46670d57
TT
130822014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13085 argument.
13086 (target_enable_tracepoint): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13089
559d2b81
TT
130902014-02-19 Tom Tromey <tromey@redhat.com>
13091
13092 * target.h (struct target_ops) <to_download_trace_state_variable>:
13093 Add argument.
13094 (target_download_trace_state_variable): Add argument.
13095 * target.c (update_current_target): Update.
13096 * remote.c (remote_download_trace_state_variable): Add 'self'
13097 argument.
13098
a52a8357
TT
130992014-02-19 Tom Tromey <tromey@redhat.com>
13100
13101 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13102 argument.
13103 (target_can_download_tracepoint): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13106
548f7808
TT
131072014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_download_tracepoint>: Add
13110 argument.
13111 (target_download_tracepoint): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_download_tracepoint): Add 'self' argument.
13114
ecae04e1
TT
131152014-02-19 Tom Tromey <tromey@redhat.com>
13116
13117 * target.h (struct target_ops) <to_trace_init>: Add argument.
13118 (target_trace_init): Add argument.
13119 * target.c (update_current_target): Update.
13120 * remote.c (remote_trace_init): Add 'self' argument.
13121
fab5aa7c
TT
131222014-02-19 Tom Tromey <tromey@redhat.com>
13123
13124 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13125 * target.c (target_fileio_readlink): Add argument.
13126 * remote.c (remote_hostio_readlink): Add 'self' argument.
13127 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13128
dbbca37d
TT
131292014-02-19 Tom Tromey <tromey@redhat.com>
13130
13131 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13132 * target.c (target_fileio_unlink): Add argument.
13133 * remote.c (remote_hostio_unlink): Add 'self' argument.
13134 (remote_file_delete): Update.
13135 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13136
df39ea25
TT
131372014-02-19 Tom Tromey <tromey@redhat.com>
13138
13139 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13140 * target.c (target_fileio_close): Add argument.
13141 * remote.c (remote_hostio_close): Add 'self' argument.
13142 (remote_hostio_close_cleanup): Update.
13143 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13144 Update.
13145 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13146
a3be983c
TT
131472014-02-19 Tom Tromey <tromey@redhat.com>
13148
13149 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13150 * target.c (target_fileio_pread): Add argument.
13151 * remote.c (remote_hostio_pread): Add 'self' argument.
13152 (remote_bfd_iovec_pread, remote_file_get): Update.
13153 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13154
0d866f62
TT
131552014-02-19 Tom Tromey <tromey@redhat.com>
13156
13157 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13158 * target.c (target_fileio_pwrite): Add argument.
13159 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13160 (remote_file_put): Update.
13161 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13162
cd897586
TT
131632014-02-19 Tom Tromey <tromey@redhat.com>
13164
13165 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13166 * target.c (target_fileio_open): Add argument.
13167 * remote.c (remote_hostio_open): Add 'self' argument.
13168 (remote_bfd_iovec_open): Add 'self' argument.
13169 (remote_file_put): Add 'self' argument.
13170 (remote_file_get): Add 'self' argument.
13171 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13172
78eff0ec
TT
131732014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13176 Add argument.
13177 (target_can_run_breakpoint_commands): Add argument.
13178 * target.c (update_current_target): Update.
13179 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13180 argument.
13181 (remote_insert_breakpoint): Add 'self' argument.
13182 (remote_insert_hw_breakpoint): Add 'self' argument.
13183 (remote_can_run_breakpoint_commands): Add 'self' argument.
13184
efcc2da7
TT
131852014-02-19 Tom Tromey <tromey@redhat.com>
13186
13187 * target.h (struct target_ops)
13188 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13189 (target_supports_evaluation_of_breakpoint_conditions): Add
13190 argument.
13191 * target.c (update_current_target): Update.
13192 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13193 argument.
13194 (remote_insert_breakpoint): Add 'self' argument.
13195 (remote_insert_hw_breakpoint): Add 'self' argument.
13196 (remote_supports_cond_breakpoints): Add 'self' argument.
13197
6de37a3a
TT
131982014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13201 argument.
13202 (target_supports_string_tracing): Add argument.
13203 * target.c (update_current_target): Update.
13204 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13205
2bfc0540
TT
132062014-02-19 Tom Tromey <tromey@redhat.com>
13207
13208 * target.h (struct target_ops)
13209 <to_supports_disable_randomization>: Add argument.
13210 * target.c (find_default_supports_disable_randomization): Add
13211 argument.
13212 (target_supports_disable_randomization): Add argument.
13213 (find_default_supports_disable_randomization): Add 'self'
13214 argument.
13215 * remote.c (extended_remote_supports_disable_randomization): Add
13216 'self' argument.
13217 (remote_supports_disable_randomization): Add 'self' argument.
13218 (extended_remote_create_inferior): Update.
13219 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13220 'self' argument.
13221
7d178d6a
TT
132222014-02-19 Tom Tromey <tromey@redhat.com>
13223
13224 * target.h (struct target_ops)
13225 <to_supports_enable_disable_tracepoint>: Add argument.
13226 (target_supports_enable_disable_tracepoint): Add argument.
13227 * target.c (update_current_target): Update.
13228 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13229 argument.
13230
86ce2668
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_supports_multi_process>: Add
13234 argument.
13235 (target_supports_multi_process): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_supports_multi_process): Add 'self' argument.
13238 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13239 argument.
13240 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13241 argument.
13242
4c612759
TT
132432014-02-19 Tom Tromey <tromey@redhat.com>
13244
13245 * target.h (struct target_ops) <to_execution_direction>: Add
13246 argument.
13247 (target_execution_direction): Add argument.
13248 * target.c (default_execution_direction): Add 'self' argument.
13249 * record-full.c (record_full_execution_direction): Add 'self'
13250 argument.
13251
19db3e69
TT
132522014-02-19 Tom Tromey <tromey@redhat.com>
13253
13254 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13255 argument.
13256 (target_can_execute_reverse): Add argument.
13257 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13258 * record-full.c (record_full_can_execute_reverse): Add 'self'
13259 argument.
13260 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13261 argument.
13262
1e6b91a4
TT
132632014-02-19 Tom Tromey <tromey@redhat.com>
13264
13265 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13266 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13267 argument.
13268 (target_get_ada_task_ptid): Add argument.
13269 * target.c (update_current_target): Update.
13270 (default_get_ada_task_ptid): Add 'self' argument.
13271 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13272 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13273 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13274 argument.
13275 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13276 argument.
13277 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13278 argument.
13279 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13280 argument.
13281 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13282 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13283 argument.
13284
3c80fb48
TT
132852014-02-19 Tom Tromey <tromey@redhat.com>
13286
13287 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13288 (target_goto_bookmark): Add argument.
13289 * target.c (dummy_goto_bookmark): Add 'self' argument.
13290 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13291
dd0e2830
TT
132922014-02-19 Tom Tromey <tromey@redhat.com>
13293
13294 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13295 (target_get_bookmark): Add argument.
13296 * target.c (dummy_get_bookmark): Add 'self' argument.
13297 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13298
fc6691b2
TT
132992014-02-19 Tom Tromey <tromey@redhat.com>
13300
13301 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13302 argument.
13303 (target_make_corefile_notes): Add argument.
13304 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13305 * procfs.c (procfs_make_note_section): Add 'self' argument.
13306 (procfs_make_note_section): Add 'self' argument.
13307 (procfs_make_note_section): Add 'self' argument.
13308 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13309 argument.
13310 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13311 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13312 * exec.c (exec_make_note_section): Add 'self' argument.
13313 (exec_make_note_section): Add 'self' argument.
13314
2e73927c
TT
133152014-02-19 Tom Tromey <tromey@redhat.com>
13316
13317 * target.h (struct target_ops) <to_find_memory_regions>: Add
13318 argument.
13319 (target_find_memory_regions): Add argument.
13320 * target.c (dummy_find_memory_regions): Add 'self' argument.
13321 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13322 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13323 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13324 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13325 * exec. (exec_do_find_memory_regions): New global.
13326 (exec_set_find_memory_regions): Rewrite.
13327 (exec_find_memory_regions): New function.
13328 (init_exec_ops): Use exec_find_memory_regions.
13329
2a9a2795
TT
133302014-02-19 Tom Tromey <tromey@redhat.com>
13331
13332 * target.h (struct target_ops) <to_supports_non_stop>: Add
13333 argument.
13334 * target.c (find_default_supports_non_stop): Add argument.
13335 (target_supports_non_stop): Add argument.
13336 (find_default_supports_non_stop): Add 'self' argument.
13337 * remote.c (remote_supports_non_stop): Add 'self' argument.
13338 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13339
4ab76ea3
TT
133402014-02-19 Tom Tromey <tromey@redhat.com>
13341
13342 * target.h (struct target_ops) <to_log_command>: Add argument.
13343 (target_log_command): Add argument.
13344 * serial.h (serial_log_command): Add 'self' argument.
13345 * serial.c (serial_log_command): Add 'self' argument.
13346
8dd27370
TT
133472014-02-19 Tom Tromey <tromey@redhat.com>
13348
13349 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13350 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13351 argument.
13352 (target_pid_to_exec_file): Add argument.
13353 * target.c (debug_to_pid_to_exec_file): Add argument.
13354 (update_current_target): Update.
13355 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13356 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13357 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13358 (linux_handle_extended_wait): Update.
13359 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13360 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13361 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13362 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13363
1aac633b
TT
133642014-02-19 Tom Tromey <tromey@redhat.com>
13365
13366 * target.h (struct target_ops) <to_rcmd>: Add argument.
13367 (target_rcmd): Add argument.
13368 * target.c (debug_to_rcmd): Add argument.
13369 (update_current_target, do_monitor_command): Update.
13370 * remote.c (remote_rcmd): Add 'self' argument.
13371 * monitor.c (monitor_rcmd): Add 'self' argument.
13372
1eab8a48
TT
133732014-02-19 Tom Tromey <tromey@redhat.com>
13374
13375 * windows-nat.c (windows_stop): Add 'self' argument.
13376 * target.h (struct target_ops) <to_stop>: Add argument.
13377 * target.c (target_stop): Add argument.
13378 (debug_to_stop): Add argument.
13379 (update_current_target): Update.
13380 * remote.c (remote_stop): Add 'self' argument.
13381 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13382 (gdbsim_cntrl_c): Update.
13383 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13384 * procfs.c (procfs_stop): Add 'self' argument.
13385 * nto-procfs.c (procfs_stop): Add 'self' argument.
13386 * monitor.c (monitor_stop): Add 'self' argument.
13387 (monitor_open): Update.
13388 * linux-nat.c (linux_nat_stop): Add argument.
13389 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13390 * gnu-nat.c (gnu_stop): Add 'self' argument.
13391 * darwin-nat.c (darwin_stop): Add 'self' argument.
13392
503a628d
TT
133932014-02-19 Tom Tromey <tromey@redhat.com>
13394
13395 * target.h (struct target_ops) <to_thread_name>: Add argument.
13396 * target.c (target_thread_name): Add argument.
13397 (update_current_target): Update.
13398 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13399
c15906d8
TT
134002014-02-19 Tom Tromey <tromey@redhat.com>
13401
13402 * target.h (struct target_ops) <to_extra_thread_info>: Add
13403 argument.
13404 (target_extra_thread_info): Add argument.
13405 * target.c (update_current_target): Update.
13406 * remote.c (remote_threads_extra_info): Add 'self' argument.
13407 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13408 argument.
13409 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13410 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13411 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13412 argument.
13413 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13414 argument.
13415 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13416 argument.
13417 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13418 argument.
13419
daf5e9b6
TT
134202014-02-19 Tom Tromey <tromey@redhat.com>
13421
13422 * target.h (struct target_ops) <to_program_signals>: Add argument.
13423 * target.c (target_program_signals): Add argument.
13424 * remote.c (remote_program_signals): Add 'self' argument.
13425
94bedb42
TT
134262014-02-19 Tom Tromey <tromey@redhat.com>
13427
13428 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13429 * target.c (target_pass_signals): Add argument.
13430 * remote.c (remote_pass_signals): Add 'self' argument.
13431 (remote_start_remote): Update.
13432 * procfs.c (procfs_pass_signals): Add 'self' argument.
13433 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13434 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13435 (linux_nat_create_inferior, linux_nat_attach): Update.
13436
da82bd6b
TT
134372014-02-19 Tom Tromey <tromey@redhat.com>
13438
13439 * windows-nat.c (windows_can_run): Add 'self' argument.
13440 * target.h (struct target_ops) <to_can_run>: Add argument.
13441 (target_can_run): Add argument.
13442 * target.c (debug_to_can_run): Add argument.
13443 (update_current_target): Update.
13444 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13445 * inf-child.c (inf_child_can_run): Add 'self' argument.
13446 * go32-nat.c (go32_can_run): Add 'self' argument.
13447
d796e1d6
TT
134482014-02-19 Tom Tromey <tromey@redhat.com>
13449
13450 * target.h (struct target_ops) <to_has_exited>: Add argument.
13451 (target_has_exited): Add argument.
13452 * target.c (debug_to_has_exited): Add argument.
13453 (update_current_target): Update.
13454
ff214e67
TT
134552014-02-19 Tom Tromey <tromey@redhat.com>
13456
13457 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13458 argument.
13459 (target_set_syscall_catchpoint): Add argument.
13460 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13461 argument.
13462 * target.c (update_current_target): Update.
13463
758e29d2
TT
134642014-02-19 Tom Tromey <tromey@redhat.com>
13465
13466 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13467 argument.
13468 (target_remove_exec_catchpoint): Add argument.
13469 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13470 (update_current_target): Update.
13471 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13472 argument.
13473
ba025e51
TT
134742014-02-19 Tom Tromey <tromey@redhat.com>
13475
13476 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13477 argument.
13478 (target_insert_exec_catchpoint): Add argument.
13479 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13480 (update_current_target): Update.
13481 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13482 argument.
13483
e98cf0cd
TT
134842014-02-19 Tom Tromey <tromey@redhat.com>
13485
13486 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13487 argument.
13488 (target_remove_vfork_catchpoint): Add argument.
13489 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13490 (update_current_target): Update.
13491 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13492 argument.
13493
3ecc7da0
TT
134942014-02-19 Tom Tromey <tromey@redhat.com>
13495
13496 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13497 argument.
13498 (target_insert_vfork_catchpoint): Add argument.
13499 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13500 (update_current_target): Update.
13501 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13502 argument.
13503
973fc227
TT
135042014-02-19 Tom Tromey <tromey@redhat.com>
13505
13506 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13507 argument.
13508 (target_remove_fork_catchpoint): Add argument.
13509 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13510 (update_current_target): Update.
13511 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13512 argument.
13513
a863b201
TT
135142014-02-19 Tom Tromey <tromey@redhat.com>
13515
13516 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13517 argument.
13518 (target_insert_fork_catchpoint): Add argument.
13519 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13520 (update_current_target): Update.
13521 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13522 argument.
13523
2e97a79e
TT
135242014-02-19 Tom Tromey <tromey@redhat.com>
13525
13526 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13527 argument.
13528 (target_post_startup_inferior): Add argument.
13529 * target.c (debug_to_post_startup_inferior): Add argument.
13530 (update_current_target): Update.
13531 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13532 argument.
13533 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13534 argument.
13535 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13536 argument.
13537 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13538 argument.
13539 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13540 'self' argument.
13541 (super_post_startup_inferior): Likewise.
13542 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13543 'self' argument.
13544 (super_post_startup_inferior): Likewise.
13545 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13546 Add 'self' argument.
13547 (super_post_startup_inferior): Likewise.
13548
71a9f134
TT
135492014-02-19 Tom Tromey <tromey@redhat.com>
13550
13551 * target.h (struct target_ops) <to_load>: Add argument.
13552 * target.c (target_load): Add argument.
13553 (debug_to_load): Add argument.
13554 (update_current_target): Update.
13555 * remote.c (remote_load): Add 'self' argument.
13556 * remote-sim.c (gdbsim_load): Add 'self' argument.
13557 * remote-mips.c (mips_load): Add 'self' argument.
13558 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13559 * monitor.c (monitor_load): Add 'self' argument.
13560 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13561
0a4f40a2
TT
135622014-02-19 Tom Tromey <tromey@redhat.com>
13563
13564 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13565 (target_terminal_info): Add argument.
13566 * target.c (debug_to_terminal_info): Add argument.
13567 (default_terminal_info): Likewise.
13568 * inflow.c (child_terminal_info): Add 'self' argument.
13569 * inferior.h (child_terminal_info): Add 'self' argument.
13570 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13571
ae3bd431
TT
135722014-02-19 Tom Tromey <tromey@redhat.com>
13573
13574 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13575 argument.
13576 (target_terminal_save_ours): Add argument.
13577 * target.c (debug_to_terminal_save_ours): Add argument.
13578 (update_current_target): Update.
13579 * inflow.c (terminal_save_ours): Add 'self' argument.
13580 * inferior.h (terminal_save_ours): Add 'self' argument.
13581
e3594fd1
TT
135822014-02-19 Tom Tromey <tromey@redhat.com>
13583
13584 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13585 (target_terminal_ours): Add argument.
13586 * target.c (debug_to_terminal_ours): Add argument.
13587 (update_current_target): Update.
13588 * remote.c (remote_terminal_ours): Add 'self' argument.
13589 (remote_close): Update.
13590 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13591 * inflow.c (terminal_ours): Add 'self' argument.
13592 * inferior.h (terminal_ours): Add 'self' argument.
13593 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13594
2e1e1a19
TT
135952014-02-19 Pedro Alves <palves@redhat.com>
13596 Tom Tromey <tromey@redhat.com>
13597
13598 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13599 argument.
13600 (target_terminal_ours_for_output): Add argument.
13601 * target.c (debug_to_terminal_ours_for_output): Add argument.
13602 (update_current_target): Update.
13603 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13604 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13605 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13606
d2f640d4
TT
136072014-02-19 Tom Tromey <tromey@redhat.com>
13608
13609 * target.h (struct target_ops) <to_terminal_inferior>: Add
13610 argument.
13611 * target.c (target_terminal_inferior): Add argument.
13612 (update_current_target): Update.
13613 * remote.c (remote_terminal_inferior): Add 'self' argument.
13614 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13615 * inflow.c (terminal_inferior): Add 'self' argument.
13616 * inferior.h (terminal_inferior): Add 'self' argument.
13617 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13618 (go32_terminal_inferior): Add 'self' argument.
13619
c42bf286
TT
136202014-02-19 Tom Tromey <tromey@redhat.com>
13621
13622 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13623 (target_terminal_init): Add argument.
13624 * target.c (debug_to_terminal_init): Add argument.
13625 (update_current_target): Update.
13626 * inflow.c (terminal_init_inferior): Add 'self' argument.
13627 * inferior.h (terminal_init_inferior): Add 'self' argument.
13628 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13629 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13630
c3a5ff89
TT
136312014-02-19 Tom Tromey <tromey@redhat.com>
13632
13633 * target.h (struct target_ops)
13634 <to_can_accel_watchpoint_condition>: Add argument.
13635 (target_can_accel_watchpoint_condition): Add argument.
13636 * target.c (debug_to_can_accel_watchpoint_condition): Add
13637 argument.
13638 (update_current_target): Update.
13639 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13640 'self' argument.
13641
31568a15
TT
136422014-02-19 Tom Tromey <tromey@redhat.com>
13643
13644 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13645 Add argument.
13646 (target_region_ok_for_hw_watchpoint): Add argument.
13647 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13648 (default_region_ok_for_hw_watchpoint): Add argument.
13649 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13650 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13651 argument.
13652 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13653 argument.
13654 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13655 argument.
13656 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13657 'self' argument.
13658 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13659 'self' argument.
13660 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13661 'self' argument.
13662 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13663 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13664 'self' argument.
13665 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13666 Add 'self' argument.
13667
7bb99c53
TT
136682014-02-19 Tom Tromey <tromey@redhat.com>
13669
13670 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13671 argument.
13672 (target_insert_watchpoint): Add argument.
13673 * target.c (debug_to_insert_watchpoint): Add argument.
13674 (update_current_target): Update.
13675 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13676 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13677 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13678 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13679 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13680 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13681 argument.
13682 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13683 (procfs_insert_hw_watchpoint): Add 'self' argument.
13684 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13685 argument.
13686 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13687 argument.
13688 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13689 argument.
13690 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13691 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13692 argument.
13693 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13694 'self' argument.
13695
11b5219a
TT
136962014-02-19 Tom Tromey <tromey@redhat.com>
13697
13698 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13699 argument.
13700 (target_remove_watchpoint): Add argument.
13701 * target.c (debug_to_remove_watchpoint): Add argument.
13702 (update_current_target): Update.
13703 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13704 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13705 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13706 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13707 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13708 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13709 argument.
13710 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13711 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13712 argument.
13713 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13714 argument.
13715 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13716 argument.
13717 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13718 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13719 argument.
13720 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13721 'self' argument.
13722
a64dc96c
TT
137232014-02-19 Tom Tromey <tromey@redhat.com>
13724
13725 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13726 argument.
13727 (target_remove_hw_breakpoint): Add argument.
13728 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13729 (update_current_target): Update.
13730 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13731 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13732 argument.
13733 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13734 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13735 argument.
13736 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13737 'self' argument.
13738
23a26771
TT
137392014-02-19 Tom Tromey <tromey@redhat.com>
13740
13741 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13742 argument.
13743 (target_insert_hw_breakpoint): Add argument.
13744 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13745 (update_current_target): Update.
13746 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13747 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13748 argument.
13749 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13750 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13751 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13752 argument.
13753 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13754 'self' argument.
13755
5461485a
TT
137562014-02-19 Tom Tromey <tromey@redhat.com>
13757
13758 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13759 argument.
13760 (target_can_use_hardware_watchpoint): Add argument.
13761 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13762 (update_current_target): Update.
13763 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13764 argument.
13765 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13766 argument.
13767 * remote.c (remote_check_watch_resources): Add 'self' argument.
13768 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13769 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13770 argument.
13771 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13772 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13773 argument.
13774 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13775 argument.
13776 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13777 argument.
13778 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13779 argument.
13780 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13781 argument.
13782 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13783 argument.
13784 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13785 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13786 argument.
13787 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13788 'self' argument.
13789
f045800c
TT
137902014-02-19 Tom Tromey <tromey@redhat.com>
13791
13792 * target.h (struct target_ops) <to_post_attach>: Add argument.
13793 (target_post_attach): Add argument.
13794 * target.c (debug_to_post_attach): Add argument.
13795 (update_current_target): Update.
13796 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13797 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13798 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13799 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13800 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13801
de90e03d
TT
138022014-02-19 Tom Tromey <tromey@redhat.com>
13803
13804 * windows-nat.c (windows_close): Add 'self' argument.
13805 * tracepoint.c (tfile_close): Add 'self' argument.
13806 * target.h (struct target_ops) <to_close>: Add argument.
13807 * target.c (target_close): Add argument.
13808 (update_current_target): Update.
13809 * remote.c (remote_close): Add 'self' argument.
13810 * remote-sim.c (gdbsim_close): Add 'self' argument.
13811 * remote-mips.c (mips_close): Add 'self' argument.
13812 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13813 * record-full.c (record_full_close): Add 'self' argument.
13814 * record-btrace.c (record_btrace_close): Add 'self' argument.
13815 * monitor.h (monitor_close): Add 'self' argument.
13816 * monitor.c (monitor_close): Add 'self' argument.
13817 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13818 * linux-nat.c (linux_nat_close): Add argument.
13819 * go32-nat.c (go32_close): Add 'self' argument.
13820 * exec.c (exec_close_1): Add 'self' argument.
13821 * ctf.c (ctf_close): Add 'self' argument.
13822 * corelow.c (core_close): Add 'self' argument.
13823 (core_close_cleanup): Update.
13824 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13825 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13826
9dd130a0
TT
138272014-02-19 Tom Tromey <tromey@redhat.com>
13828
13829 * remote.c (remote_load): New function.
13830 (init_remote_ops): Use it.
13831
46917d26
TT
138322014-02-19 Tom Tromey <tromey@redhat.com>
13833
13834 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13835 argument.
13836 * common/linux-btrace.h (linux_supports_btrace): Update.
13837 * remote.c (remote_supports_btrace): Add "self" argument.
13838 * target-delegates.c: Rebuild.
13839 * target.c (target_supports_btrace): Remove.
13840 * target.h (struct target_ops) <to_supports_btrace>: Add
13841 target_ops argument.
13842 (target_supports_btrace): New define.
13843
6b84065d
TT
138442014-02-19 Tom Tromey <tromey@redhat.com>
13845
13846 * record-full.c (record_full_beneath_to_resume_ops)
13847 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13848 (record_full_beneath_to_wait)
13849 (record_full_beneath_to_store_registers_ops)
13850 (record_full_beneath_to_store_registers)
13851 (record_full_beneath_to_xfer_partial_ops)
13852 (record_full_beneath_to_xfer_partial)
13853 (record_full_beneath_to_insert_breakpoint_ops)
13854 (record_full_beneath_to_insert_breakpoint)
13855 (record_full_beneath_to_remove_breakpoint_ops)
13856 (record_full_beneath_to_remove_breakpoint)
13857 (record_full_beneath_to_stopped_by_watchpoint)
13858 (record_full_beneath_to_stopped_data_address)
13859 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13860 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13861 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13862 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13863 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13864 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13865 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13866 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13867 (record_full_resume, record_full_wait_1)
13868 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13869 (record_full_store_registers, record_full_xfer_partial)
13870 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13871 (record_full_async, record_full_core_xfer_partial): Use target
13872 delegation.
13873 * target-delegates.c: Rebuild.
13874 * target.c (current_xfer_partial): Remove.
13875 (update_current_target): Do not INHERIT or de_fault
13876 to_insert_breakpoint, to_remove_breakpoint,
13877 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13878 to_is_async_p, to_async. Do not set to_xfer_partial field.
13879 (default_xfer_partial): Simplify.
13880 (current_xfer_partial): Remove.
13881 (target_wait, target_resume): Simplify.
13882 (find_default_can_async_p, find_default_is_async_p): Update.
13883 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13884 to_xfer_partial, to_stopped_by_watchpoint,
13885 to_stopped_data_address.
13886 (target_store_registers): Simplify.
13887 (forward_target_remove_breakpoint)
13888 (forward_target_insert_breakpoint): Remove.
13889 (target_remove_breakpoint, target_insert_breakpoint)
13890 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13891 * target.h (struct target_ops) <to_resume, to_wait,
13892 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13893 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13894 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13895 markup.
13896 (forward_target_remove_breakpoint)
13897 (forward_target_insert_breakpoint): Remove.
13898 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13899 directly.
13900 (record_btrace_insert_breakpoint): Delegate directly.
13901
1101cb7b
TT
139022014-02-19 Tom Tromey <tromey@redhat.com>
13903
13904 PR build/7701:
13905 * target-delegates.c: New file.
13906 * target.c: Include target-delegates.c.
13907 (init_dummy_target): Call install_dummy_methods.
13908 (complete_target_initialization): Call install_delegators.
13909 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13910 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13911 * make-target-delegates: New file.
13912
8b06beed
TT
139132014-02-19 Tom Tromey <tromey@redhat.com>
13914
13915 * record.c (find_record_target): Use find_target_at.
13916 * target.c (find_target_at): New function.
13917 * target.h (find_target_at): Declare.
13918
6a109b6b
TT
139192014-02-19 Tom Tromey <tromey@redhat.com>
13920
13921 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13922 Add 'ops' argument.
13923 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13924 'ops' argument.
13925 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13927 'ops' argument.
13928 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13929 argument.
13930 * linux-nat.c (save_sigtrap): Update.
13931 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13932 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13933 (linux_nat_close): Update.
13934 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13935 argument.
13936 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13937 argument.
13938 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13939 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13940 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13941 (tmp_to_async): Add 'ops' argument.
13942 (record_full_stopped_by_watchpoint, record_full_async)
13943 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13944 argument.
13945 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13946 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13947 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13948 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13949 (remote_is_async_p, remote_async): Add 'ops' argument.
13950 (remote_stopped_data_address): Update.
13951 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13952 * target.c (update_current_target)
13953 (find_default_can_async_p, find_default_is_async_p): Update.
13954 (init_dummy_target): Update.
13955 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13956 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13957 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13958 (target_can_async_p, target_is_async_p, target_async)
13959 (target_stopped_by_watchpoint): Update.
13960
e095146b
YQ
139612014-02-19 Yao Qi <yao@codesourcery.com>
13962
13963 PR gdb/16220
13964 * gdbarch.sh: Remove startup_gdbarch.
13965 * gdbarch.c: Regenerated.
13966 * gdbarch.h: Likewise.
13967
bc3c6b36
KB
139682014-02-17 Kevin Buettner <kevinb@redhat.com>
13969
13970 * rl78-tdep.c (rl78_g10_register_name): New function.
13971 (rl78_return_value): Add g10 support.
13972 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13973 g10.
13974
98dc0167 139752014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13976
13977 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13978 (SUBDIR_GUILE_SRCS): Ditto.
13979 (scm-gsmob.o): Ditto.
13980
842c05cd
YQ
139812014-02-17 Yao Qi <yao@codesourcery.com>
13982
13983 * gnu-nat.c (ILL_RPC): Declare defined function.
13984
25c0bd04
YQ
139852014-02-17 Yao Qi <yao@codesourcery.com>
13986
13987 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13988 mach_msg_type_number_t.
13989 (gnu_write_inferior): Likewise.
13990
a9a758e3
YQ
139912014-02-17 Yao Qi <yao@codesourcery.com>
13992
13993 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13994 in format string.
13995 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13996 (inf_validate_procs, inf_signal): Likewise.
13997 (S_exception_raise_request): Likewise.
13998 (do_mach_notify_dead_name): Likewise.
13999 (steal_exc_port): Likewise.
14000 (gnu_read_inferior): Change 'copy_count''s type to
14001 mach_msg_type_number_t.
14002 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14003 format string.
14004
bae8023e
TS
140052014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14006
c82f56d9
TS
14007 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14008 flag. Adjust all users; in particular...
14009 (gnu_wait): ..., don't decrement its value in here...
14010 (gnu_create_inferior): ..., and instead set the flag in here,
14011 around the startup_inferior call, and call that one with
14012 START_INFERIOR_TRAPS_EXPECTED.
14013
3398af6a
TS
14014 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14015 (ILL_RPC): ... new macro.
14016 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14017 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14018 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14019 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14020 functions with ILL_RPC macro.
14021 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14022 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14023 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14024 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14025 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14026 (S_proc_getlogin_reply, S_proc_getsid_reply)
14027 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14028 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14029 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14030 (S_proc_getnports_reply, S_proc_is_important_reply)
14031 (S_proc_get_code_reply): New stub functions, generated with
14032 ILL_RPC macro.
14033
d47642c9
TS
14034 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14035 collected the type check structures.
14036
bae8023e
TS
14037 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14038
8a55ffb0
DE
140392014-02-14 Doug Evans <dje@google.com>
14040
14041 * target.c (target_write_partial): Fix result type.
14042
c2853f3d
JM
140432014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14044
14045 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14046 the proper offsets to access fpregset_t.
14047
ac61d2db
SA
140482014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14049
14050 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14051 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14052 * h8300-tdep.c (setmachinelist): Remove global.
14053 * hppa-tdep.c (hppa_sigtramp): Remove global.
14054 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14055 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14056 * ravenscar-thread.c (update_target_observer): Remove global.
14057 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14058
9d2d0b8b
TT
140592014-02-12 Tom Tromey <tromey@redhat.com>
14060
14061 * common/rsp-low.c: Update comments.
14062 * common/rsp-low.h: Update comments.
14063
a7191e8b
TT
140642014-02-12 Tom Tromey <tromey@redhat.com>
14065
14066 * common/rsp-low.c (convert_ascii_to_int): Remove.
14067 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14068
ff0e980e
TT
140692014-02-12 Tom Tromey <tromey@redhat.com>
14070
14071 * common/rsp-low.h (unhexify): Don't declare.
14072 * common/rsp-low.c (unhexify): Remove.
14073
e9371aff
TT
140742014-02-12 Tom Tromey <tromey@redhat.com>
14075
14076 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14077 * common/rsp-low.c (convert_int_to_ascii): Remove.
14078
971dc0b8
TT
140792014-02-12 Tom Tromey <tromey@redhat.com>
14080
14081 * common/rsp-low.h (hexify): Don't declare.
14082 * common/rsp-low.c (hexify): Remove.
14083
0a822afb
TT
140842014-02-12 Tom Tromey <tromey@redhat.com>
14085
14086 * common/rsp-low.c (hexify): Never take strlen of argument.
14087
9f1b45b0
TT
140882014-02-12 Tom Tromey <tromey@redhat.com>
14089
14090 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14091 * remote.c (extended_remote_run, remote_rcmd)
14092 (remote_download_trace_state_variable, remote_save_trace_data)
14093 (remote_set_trace_notes): Update.
14094 * tracepoint.c (encode_source_string, tfile_write_status)
14095 (tfile_write_uploaded_tsv): Update.
14096
9c3d6531
TT
140972014-02-12 Tom Tromey <tromey@redhat.com>
14098
14099 * tracepoint.c: Include rsp-low.h.
14100 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14101 * remote.c: Include rsp-low.h.
14102 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14103 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14104 (remote_unescape_input): Move to common/rsp-low.c.
14105 * common/rsp-low.h: New file.
14106 * common/rsp-low.c: New file.
14107 * Makefile.in (SFILES): Add common/rsp-low.c.
14108 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14109 (COMMON_OBS): Add rsp-low.o.
14110 (rsp-low.o): New target.
14111
01fd3ea5
TT
141122014-02-12 Tom Tromey <tromey@redhat.com>
14113
14114 * utils.h: Include print-utils.h.
14115 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14116 (int_string, core_addr_to_string, core_addr_to_string_nz)
14117 (hex_string, hex_string_custom): Don't declare.
14118 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14119 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14120 (hex_string_custom, int_string, core_addr_to_string)
14121 (core_addr_to_string_nz, host_address_to_string): Move to
14122 common/print-utils.c.
14123 * common/print-utils.h: New file.
14124 * common/print-utils.c: New file
14125 * Makefile.in (SFILES): Add common/print-utils.c.
14126 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14127 (COMMON_OBS): Add print-utils.o.
14128 (print-utils.o): New target.
14129
9fb50108
TT
141302014-02-12 Tom Tromey <tromey@redhat.com>
14131
14132 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14133
0548b5db
MK
141342014-02-12 Mark Kettenis <kettenis@gnu.org>
14135
14136 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14137
493443a4
MK
141382014-02-12 Mark Kettenis <kettenis@gnu.org>
14139
14140 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14141 if a PT_IO ptrace request returns sucessfully but indicates that 0
14142 bytes were transferred.
14143
706d0883
PA
141442014-02-12 Pedro Alves <palves@redhat.com>
14145 Kevin Buettner <kevinb@redhat.com>
14146
14147 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14148 TYPE_INSTANCE_FLAG_CODE_SPACE.
14149
5caa2f0b
PA
141502014-02-12 Pedro Alves <palves@redhat.com>
14151
14152 * h8300-tdep.c (pseudo_from_raw_register)
14153 (raw_from_pseudo_register): New functions.
14154 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14155 them.
14156
76fd5f74
PA
141572014-02-12 Pedro Alves <palves@redhat.com>
14158
14159 * h8300-tdep.c (h8300_register_sim_regno): New function.
14160 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14161 gdbarch_register_sim_regno hook.
14162
8f008406
SA
141632014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14164
14165 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14166
195abc10
SA
141672014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14168
14169 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14170
93ffa5b9
MK
141712014-02-12 Mark Kettenis <kettenis@gnu.org>
14172
14173 * obsd-tdep.h (obsd_init_abi): New prototype.
14174 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14175 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14176 (obsd_init_abi): New functions.
14177 * i386obsd-tdep.c: Include "obsd-tdep.h".
14178 (i386obsd_init_abi): Call obsd_init_abi.
14179 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14180 (amd64obsd_init_abi): Call obsd_init_abi.
14181 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14182 obsd-tdep.c to gdb_target_obs.
14183
49caec94
JM
141842014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14185
14186 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14187 double float arguments to 16-byte in the argument slots.
14188
e1402065
DE
141892014-02-11 Doug Evans <xdje42@gmail.com>
14190
14191 * configure.ac: Don't crash if pkg-config is not found and guile
14192 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14193 in guile checks.
14194 * configure: Regenerate.
14195
edcc890f
YQ
141962014-02-11 Yao Qi <yao@codesourcery.com>
14197
14198 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14199 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14200 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14201 * gnu-nat.c (gnu_xfer_memory): Likewise.
14202 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14203 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14204 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14205 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14206
9b409511
YQ
142072014-02-11 Yao Qi <yao@codesourcery.com>
14208
14209 * target.h (enum target_xfer_error): Rename to ...
14210 (enum target_xfer_status): ... it. New. All users updated.
14211 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14212 New.
14213 (TARGET_XFER_STATUS_ERROR_P): New macro.
14214 (target_xfer_error_to_string): Remove declaration.
14215 (target_xfer_status_to_string): Declare.
14216 (target_xfer_partial_ftype): Adjust it.
14217 (struct target_ops) <to_xfer_partial>: Return
14218 target_xfer_status. Add argument xfered_len. Update
14219 comments.
14220 * target.c (target_xfer_error_to_string): Rename to ...
14221 (target_xfer_status_to_string): ... it. New. All callers
14222 updated.
14223 (target_read_live_memory): Likewise. Call target_xfer_partial
14224 instead of target_read.
14225 (memory_xfer_live_readonly_partial): Return
14226 target_xfer_status. Add argument xfered_len.
14227 (raw_memory_xfer_partial): Likewise.
14228 (memory_xfer_partial_1): Likewise.
14229 (memory_xfer_partial): Likewise.
14230 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14231 properly. Update debug message.
14232 (default_xfer_partial, current_xfer_partial): Likewise.
14233 (target_write_partial): Likewise.
14234 (target_read_partial): Likewise. All callers updated.
14235 (read_whatever_is_readable): Likewise.
14236 (target_write_with_progress): Likewise.
14237 (target_read_alloc_1): Likewise.
14238
14239 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14240 * auxv.c (procfs_xfer_auxv): Likewise.
14241 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14242 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14243 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14244 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14245 * corefile.c (read_memory): Adjust.
14246 * corelow.c (core_xfer_partial): Likewise.
14247 * ctf.c (ctf_xfer_partial): Likewise.
14248 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14249 updated.
14250 (darwin_xfer_partial): Likewise.
14251 * exec.c (section_table_xfer_memory_partial): Likewise. All
14252 callers updated.
14253 (exec_xfer_partial): Likewise.
14254 * exec.h (section_table_xfer_memory_partial): Update
14255 declaration.
14256 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14257 negative.
14258 (gnu_xfer_partial): Likewise.
14259 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14260 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14261 (ia64_hpux_xfer_solib_got): Likewise.
14262 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14263 type of 'partial_len' to ULONGEST.
14264 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14265 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14266 (linux_nat_xfer_partial): Likewise.
14267 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14268 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14269 * monitor.c (monitor_xfer_memory): Likewise.
14270 (monitor_xfer_partial): Likewise.
14271 * procfs.c (procfs_xfer_partial): Likewise.
14272 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14273 * record-full.c (record_full_xfer_partial): Likewise.
14274 (record_full_core_xfer_partial): Likewise.
14275 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14276 (gdbsim_xfer_partial): Likewise.
14277 * remote.c (remote_write_bytes_aux): Likewise. All callers
14278 updated.
14279 (remote_write_bytes, remote_read_bytes): Likewise. All
14280 callers updated.
14281 (remote_flash_erase): Likewise. All callers updated.
14282 (remote_write_qxfer): Likewise. All callers updated.
14283 (remote_read_qxfer): Likewise. All callers updated.
14284 (remote_xfer_partial): Likewise.
14285 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14286 (rs6000_xfer_shared_libraries): Likewise.
14287 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14288 (sol_thread_xfer_partial): Likewise.
14289 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14290 (sparc_xfer_partial): Likewise.
14291 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14292 updated.
14293 (spu_xfer_partial): Likewise.
14294 * spu-multiarch.c (spu_xfer_partial): Likewise.
14295 * tracepoint.c (tfile_xfer_partial): Likewise.
14296 * windows-nat.c (windows_xfer_memory): Likewise.
14297 (windows_xfer_shared_libraries): Likewise.
14298 (windows_xfer_partial): Likewise.
14299 * valprint.c: Replace 'target_xfer_error' with
14300 'target_xfer_status' in comments.
14301
a8e63083
JB
143022014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14303
14304 Checked in by Joel Brobecker <brobecker@adacore.com>.
14305 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14306
e86b67d3
JB
143072014-02-11 Joel Brobecker <brobecker@adacore.com>
14308
14309 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14310 function parameters.
14311
4b7d1f7f
WN
143122014-02-10 Will Newton <will.newton@linaro.org>
14313
14314 * elfread.c (elf_rel_plt_read): Look for a .got section if
14315 looking up .got.plt fails.
14316 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14317 on address passed to elf_gnu_ifunc_record_cache.
14318 (elf_gnu_ifunc_resolve_addr): Likewise.
14319 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14320
961842b2
JM
143212014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14322
14323 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14324 (X_RETTURN): New macro.
14325 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14326
14327 * sparc64-tdep.c (sparc64_init_abi): Hook
14328 sparc_in_function_epilogue_p.
14329
3f03e7b1
GB
143302014-02-10 Gary Benson <gbenson@redhat.com>
14331
14332 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14333 Rename name_matcher to symbol_matcher.
14334
96f861ef
GB
143352014-02-10 Gary Benson <gbenson@redhat.com>
14336
14337 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14338 Use expand_symtabs_file_matcher_ftype and
14339 expand_symtabs_symbol_matcher_ftype.
14340
ee01b665
JB
143412014-02-10 Joel Brobecker <brobecker@adacore.com>
14342
14343 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14344 (struct ada_symbol_cache): New.
14345 (ada_free_symbol_cache): Forward declare.
14346 (struct ada_pspace_data): New.
14347 (ada_pspace_data_handle): New static global.
14348 (get_ada_pspace_data, ada_pspace_data_cleanup)
14349 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14350 (cache_space, cache): Delete, now folded inside struct
14351 ada_pspace_data.
14352 (ada_get_symbol_cache): New function.
14353 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14354 implementation.
14355 (_initialize_ada_language): Remove initialization of cache_space.
14356 Move call to observer_attach_inferior_exit up, grouping it
14357 with the other observer registrations inside this function.
14358 Rename command to be more general. Add call to
14359 register_program_space_data_with_cleanup.
14360
143adbbf
JB
143612014-02-10 Joel Brobecker <brobecker@adacore.com>
14362
14363 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14364 ada_new_objfile_observer.
14365 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14366 (_initialize_tasks): Update uses of ada_new_objfile_observer
14367 and ada_tasks_normal_stop_observer.
14368
aa4fb036
JB
143692014-02-10 Joel Brobecker <brobecker@adacore.com>
14370
14371 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14372 returned by the 'Length attribute to integer.
14373
9dee8cc6
JB
143742014-02-10 Joel Brobecker <brobecker@adacore.com>
14375
14376 * ada-lang.c (_initialize_ada_language): Initialize
14377 cache_space obstack.
14378
3d9434b5
JB
143792014-02-10 Joel Brobecker <brobecker@adacore.com>
14380
14381 * ada-lang.c (HASH_SIZE): New macro.
14382 (struct cache_entry): New type.
14383 (cache_space, cache): New static globals.
14384 (ada_clear_symbol_cache, find_entry): New functions.
14385 (lookup_cached_symbol, cache_symbol): Implement.
14386 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14387 (_initialize_ada_language): Attach ada_new_objfile_observer
14388 and ada_free_objfile_observer.
14389
f0c5f9b2
JB
143902014-02-10 Joel Brobecker <brobecker@adacore.com>
14391
14392 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14393 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14394 struct block * parameter.
14395 (ada_lookup_symbol_list_worker): Constify local variable "block".
14396 Remove cast which is no longer necessary.
14397
ed3ef339
DE
143982014-02-10 Doug Evans <xdje42@gmail.com>
14399
14400 Add Guile as an extension language.
14401 * NEWS: Mention Guile scripting.
14402 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14403 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14404 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14405 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14406 (CLIBS): Add GUILE_LIBS.
14407 (install-guile): New rule.
14408 (guile.o): New rule.
14409 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14410 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14411 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14412 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14413 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14414 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14415 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14416 * configure.ac: New option --with-guile.
14417 * configure: Regenerate.
14418 * config.in: Regenerate.
14419 * auto-load.c: Remove #include "python/python.h". Add #include
14420 "gdb/section-scripts.h".
14421 (source_section_scripts): Handle Guile scripts.
14422 (_initialize_auto_load): Add name of Guile objfile script to
14423 scripts-directory help text.
14424 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14425 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14426 (struct breakpoint): New member scm_bp_object.
14427 * defs.h (enum command_control_type): New value guile_control.
14428 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14429 "extension.h".
14430 (show_user): Update comment.
14431 (_initialize_cli_cmds): Update help text for "show user". Update help
14432 text for max-user-call-depth.
14433 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14434 "extension.h".
14435 (multi_line_command_p): Add guile_control.
14436 (print_command_lines): Handle guile_control.
14437 (execute_control_command, recurse_read_control_structure): Ditto.
14438 (process_next_line): Recognize "guile" commands.
14439 * disasm.c (gdb_disassemble_info): Make non-static.
14440 * disasm.h: #include "dis-asm.h".
14441 (struct gdbarch): Add forward decl.
14442 (gdb_disassemble_info): Declare.
14443 * extension.c: #include "guile/guile.h".
14444 (extension_languages): Add guile.
14445 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14446 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14447 * gdbtypes.c (get_unsigned_type_max): New function.
14448 (get_signed_type_minmax): New function.
14449 * gdbtypes.h (get_unsigned_type_max): Declare.
14450 (get_signed_type_minmax): Declare.
14451 * guile/README: New file.
14452 * guile/guile-internal.h: New file.
14453 * guile/guile.c: New file.
14454 * guile/guile.h: New file.
14455 * guile/scm-arch.c: New file.
14456 * guile/scm-auto-load.c: New file.
14457 * guile/scm-block.c: New file.
14458 * guile/scm-breakpoint.c: New file.
14459 * guile/scm-disasm.c: New file.
14460 * guile/scm-exception.c: New file.
14461 * guile/scm-frame.c: New file.
14462 * guile/scm-gsmob.c: New file.
14463 * guile/scm-iterator.c: New file.
14464 * guile/scm-lazy-string.c: New file.
14465 * guile/scm-math.c: New file.
14466 * guile/scm-objfile.c: New file.
14467 * guile/scm-ports.c: New file.
14468 * guile/scm-pretty-print.c: New file.
14469 * guile/scm-safe-call.c: New file.
14470 * guile/scm-string.c: New file.
14471 * guile/scm-symbol.c: New file.
14472 * guile/scm-symtab.c: New file.
14473 * guile/scm-type.c: New file.
14474 * guile/scm-utils.c: New file.
14475 * guile/scm-value.c: New file.
14476 * guile/lib/gdb.scm: New file.
14477 * guile/lib/gdb/boot.scm: New file.
14478 * guile/lib/gdb/experimental.scm: New file.
14479 * guile/lib/gdb/init.scm: New file.
14480 * guile/lib/gdb/iterator.scm: New file.
14481 * guile/lib/gdb/printing.scm: New file.
14482 * guile/lib/gdb/types.scm: New file.
14483 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14484 (VPATH): Add $(GUILE_SRCDIR).
14485 (GUILE_DIR): New variable.
14486 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14487 (all): Add stamp-guile dependency.
14488 (stamp-guile): New rule.
14489 (clean-guile, install-guile, uninstall-guile): New rules.
14490 (install-only): Add install-guile dependency.
14491 (uninstall): Add uninstall-guile dependency.
14492 (clean): Add clean-guile dependency.
14493
ac020ec5
DE
144942014-02-09 Doug Evans <xdje42@gmail.com>
14495
14496 Revert this patch (which I approved, mea culpa).
14497
14498 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14499
14500 * Makefile.in (all-lib): Remove.
14501 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14502
2a081c59
JK
145032014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14504
14505 Fix Python stack corruption.
14506 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14507 gdb_py_longest.
14508
0a6bd22d
MK
145092014-02-08 Mark Kettenis <kettenis@gnu.org>
14510
14511 * Makefile.in (all-lib): Remove.
14512 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14513
1a860409
DE
145142014-02-07 Doug Evans <dje@google.com>
14515
14516 * extension-priv.h (extension_language_script_ops): Add comment.
14517 (extension_language_ops): Add comment.
caf5a491 14518 (active_ext_lang_state): Fix typo in comment.
1a860409 14519
d137e6dc
PA
145202014-02-07 Pedro Alves <palves@redhat.com>
14521
0dcb32c3 14522 PR breakpoints/16292
d137e6dc
PA
14523 * infrun.c (handle_signal_stop) <signal arrives while stepping
14524 over a breakpoint>: Switch back to the stepping thread.
14525
ce6d0892
YQ
145262014-02-07 Yao Qi <yao@codesourcery.com>
14527
14528 * target.c (target_xfer_partial): Return zero if LEN is zero.
14529
2ed4b548
YQ
145302014-02-07 Yao Qi <yao@codesourcery.com>
14531
14532 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14533 (ld_so_xfer_auxv): Likewise.
14534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14536 * corelow.c (core_xfer_partial): Likewise.
14537 * ctf.c (ctf_xfer_partial): Likewise.
14538 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14539 (darwin_xfer_partial): Likewise.
14540 * exec.c (exec_xfer_partial): Likewise.
14541 * gnu-nat.c (gnu_xfer_partial): Likewise.
14542 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14544 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14545 * linux-nat.c (linux_xfer_siginfo): Likewise.
14546 (linux_proc_xfer_spu): Likewise.
14547 * procfs.c (procfs_xfer_partial): Likewise.
14548 * record-full.c (record_full_xfer_partial): Likewise.
14549 (record_full_core_xfer_partial): Likewise.
14550 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14551 * remote.c (remote_write_qxfer): Likewise.
14552 (remote_write_qxfer, remote_read_qxfer): Likewise.
14553 (remote_xfer_partial): Likewise.
14554 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14555 (rs6000_xfer_shared_libraries): Likewise.
14556 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14557 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14558 (spu_xfer_partial): Likewise.
14559 * target.c (memory_xfer_partial_1): Likewise.
14560 * tracepoint.c (tfile_xfer_partial): Likewise.
14561 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14562 (windows_xfer_partial): Likewise.
14563
c09f20e4
YQ
145642014-02-07 Yao Qi <yao@codesourcery.com>
14565
14566 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14567 comments.
14568 (core_xfer_shared_libraries_aix): Likewise.
14569 * gdbarch.c, gdbarch.h: Regenerated.
14570 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14571 ULONGEST. Change 'len_avail' type to ULONGEST.
14572 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14573 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14574 declaration.
14575 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14576
8635b3bf
YQ
145772014-02-07 Yao Qi <yao@codesourcery.com>
14578
14579 * corefile.c (memory_error): Get 'exception' from ERR and pass
14580 'exception' to throw_error.
14581
6dddc817
DE
145822014-02-06 Doug Evans <xdje42@gmail.com>
14583
14584 * configure.ac (libpython checking): Remove all but python.o from
14585 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14586 * configure: Regenerate.
14587
14588 * Makefile.in (SFILES): Add extension.c.
14589 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14590 (COMMON_OBS): Add extension.o.
14591 * extension.h: New file.
14592 * extension-priv.h: New file.
14593 * extension.c: New file.
14594
14595 * python/python-internal.h: #include "extension.h".
14596 (gdbpy_auto_load_enabled): Declare.
14597 (gdbpy_apply_val_pretty_printer): Declare.
14598 (gdbpy_apply_frame_filter): Declare.
14599 (gdbpy_preserve_values): Declare.
14600 (gdbpy_breakpoint_cond_says_stop): Declare.
14601 (gdbpy_breakpoint_has_cond): Declare.
14602 (void source_python_script_for_objfile): Delete.
14603 * python/python.c: #include "extension-priv.h".
14604 Delete inclusion of "observer.h".
14605 (extension_language_python): Moved here and renamed from
14606 script_language_python in py-auto-load.c.
14607 Redefined to be of type extension_language_defn.
14608 (python_extension_script_ops): New global.
14609 (python_extension_ops): New global.
14610 (struct python_env): New member previous_active.
14611 (restore_python_env): Call restore_active_ext_lang.
14612 (ensure_python_env): Call set_active_ext_lang.
14613 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14614 New arg extlang.
14615 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14616 New arg extlang.
14617 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14618 New arg extlang.
14619 (gdbpy_eval_from_control_command): Renamed from
14620 eval_python_from_control_command, made static. New arg extlang.
14621 (gdbpy_source_script) Renamed from source_python_script, made static.
14622 New arg extlang.
14623 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14624 result to int. New arg extlang.
14625 (gdbpy_source_objfile_script): Renamed from
14626 source_python_script_for_objfile, made static. New arg extlang.
14627 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14628 static. New args extlang, extlang_printers. Change result type to
14629 "void".
14630 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14631 static. New arg extlang. Rename arg printers to extlang_printers
14632 and change type to ext_lang_type_printers *.
14633 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14634 static. Replace argument arg with extlang, extlang_printers.
14635 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14636 (!HAVE_PYTHON, source_python_script): Delete.
14637 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14638 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14639 (!HAVE_PYTHON, start_type_printers): Delete.
14640 (!HAVE_PYTHON, apply_type_printers): Delete.
14641 (!HAVE_PYTHON, free_type_printers): Delete.
14642 (_initialize_python): Delete call to observer_attach_before_prompt.
14643 (finalize_python): Set/restore active extension language.
14644 (gdbpy_finish_initialization) Renamed from
14645 finish_python_initialization, made static. New arg extlang.
14646 (gdbpy_initialized): New function.
14647 * python/python.h: #include "extension.h". Delete #include
14648 "value.h", "mi/mi-cmds.h".
14649 (extension_language_python): Declare.
14650 (GDBPY_AUTO_FILE_NAME): Delete.
14651 (enum py_bt_status): Moved to extension.h and renamed to
14652 ext_lang_bt_status.
14653 (enum frame_filter_flags): Moved to extension.h.
14654 (enum py_frame_args): Moved to extension.h and renamed to
14655 ext_lang_frame_args.
14656 (finish_python_initialization): Delete.
14657 (eval_python_from_control_command): Delete.
14658 (source_python_script): Delete.
14659 (apply_val_pretty_printer): Delete.
14660 (apply_frame_filter): Delete.
14661 (preserve_python_values): Delete.
14662 (gdbpy_script_language_defn): Delete.
14663 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14664 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14665
14666 * auto-load.c: #include "extension.h".
14667 (GDB_AUTO_FILE_NAME): Delete.
14668 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14669 (script_language_gdb): Delete, moved to extension.c and renamed to
14670 extension_language_gdb.
14671 (source_gdb_script_for_objfile): Delete.
14672 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14673 (loaded_script): Change type of language member to
14674 struct extension_language_defn *.
14675 (init_loaded_scripts_info): Initialize
14676 unsupported_script_warning_printed.
14677 (maybe_add_script): Make static. Change type of language arg to
14678 struct extension_language_defn *.
14679 (clear_section_scripts): Reset unsupported_script_warning_printed.
14680 (auto_load_objfile_script_1): Rewrite to use extension language API.
14681 (auto_load_objfile_script): Make public. Remove support-compiled-in
14682 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14683 (source_section_scripts): Rewrite to use extension language API.
14684 (load_auto_scripts_for_objfile): Rewrite to use
14685 auto_load_scripts_for_objfile.
14686 (collect_matching_scripts_data): Change type of language member to
14687 struct extension_language_defn *.
14688 (auto_load_info_scripts): Change type of language arg to
14689 struct extension_language_defn *.
14690 (unsupported_script_warning_print): New function.
14691 (script_not_found_warning_print): Make static.
14692 (_initialize_auto_load): Rewrite construction of scripts-directory
14693 help.
14694 * auto-load.h (struct objfile): Add forward decl.
14695 (struct script_language): Delete.
14696 (struct auto_load_pspace_info): Add forward decl.
14697 (struct extension_language_defn): Add forward decl.
14698 (maybe_add_script): Delete.
14699 (auto_load_objfile_script): Declare.
14700 (script_not_found_warning_print): Delete.
14701 (auto_load_info_scripts): Update prototype.
14702 (auto_load_gdb_scripts_enabled): Declare.
14703 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14704 auto_load_python_scripts_enabled and made public.
14705 (script_language_python): Delete, moved to python.c.
14706 (gdbpy_script_language_defn): Delete.
14707 (info_auto_load_python_scripts): Update to use
14708 extension_language_python.
14709
14710 * breakpoint.c (condition_command): Replace call to
14711 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14712 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14713 with call to breakpoint_ext_lang_cond_says_stop.
14714 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14715 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14716 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14717 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14718 New arg slang.
14719 (local_setattro): Print name of extension language with existing
14720 stop condition.
14721
14722 * valprint.c (val_print, value_print): Update to call
14723 apply_ext_lang_val_pretty_printer.
14724 * cp-valprint.c (cp_print_value): Update call to
14725 apply_ext_lang_val_pretty_printer.
14726 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14727 (gdbpy_apply_val_pretty_printer): Renamed from
14728 apply_val_pretty_printer. New arg extlang.
14729 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14730
14731 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14732 extension language API.
14733 * cli/cli-script.c (execute_control_command): Update to call
14734 eval_ext_lang_from_control_command.
14735
14736 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14737 enum ext_lang_bt_status values. Update call to
14738 apply_ext_lang_frame_filter.
14739 (mi_cmd_stack_list_locals): Ditto.
14740 (mi_cmd_stack_list_args): Ditto.
14741 (mi_cmd_stack_list_variables): Ditto.
14742 * mi/mi-main.c: Delete #include "python/python-internal.h".
14743 Add #include "extension.h".
14744 (mi_cmd_list_features): Replace reference to python internal variable
14745 gdb_python_initialized with call to ext_lang_initialized_p.
14746
14747 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14748 Update to use enum ext_lang_frame_args. Update to call
14749 apply_ext_lang_frame_filter.
14750 * python/py-framefilter.c (extract_sym): Update to use enum
14751 ext_lang_bt_status.
14752 (extract_value, py_print_type, py_print_value): Ditto.
14753 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14754 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14755 (py_print_frame): Ditto.
14756 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14757 New arg extlang. Update to use enum ext_lang_bt_status.
14758
14759 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14760 finish_python_initialization. Replace with call to
14761 finish_ext_lang_initialization.
14762
14763 * typeprint.c (do_free_global_table): Update to call
14764 free_ext_lang_type_printers.
14765 (create_global_typedef_table): Update to call
14766 start_ext_lang_type_printers.
14767 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14768 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14769 (type_print_options): Change type of global_printers from "void *"
14770 to "struct ext_lang_type_printers *".
14771
14772 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14773 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14774 (gdbpy_preserve_values): Renamed from preserve_python_values.
14775 New arg extlang.
14776 (!HAVE_PYTHON, preserve_python_values): Delete.
14777
14778 * utils.c (quit_flag): Delete, moved to extension.c.
14779 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14780 extension.c.
14781
14782 * eval.c: Delete #include "python/python.h".
14783 * main.c: Delete #include "python/python.h".
14784
14785 * defs.h: Update comment.
14786
6af79985
JB
147872014-02-06 Joel Brobecker <brobecker@adacore.com>
14788
14789 GDB 7.7 released.
14790
12c5175d
MK
147912014-02-05 Mark Kettenis <kettenis@gnu.org>
14792
14793 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14794 defined.
14795
8dc5b319
YQ
147962014-02-05 Yao Qi <yao@codesourcery.com>
14797
14798 * remote.c (remote_pass_signals): Remove local 'buf' and use
14799 rs->buf.
14800 (remote_program_signals): Likewise.
14801
de7b2893
YQ
148022014-02-05 Yao Qi <yao@codesourcery.com>
14803
14804 * ctf.c: Include "inferior.h" and "gdbthread.h".
14805 (CTF_PID): A new macro.
14806 (ctf_open): Call inferior_appeared and add_thread_silent.
14807 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14808 (ctf_thread_alive): New function.
14809 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14810
66d032ac
YQ
148112014-02-05 Yao Qi <yao@codesourcery.com>
14812
14813 Revert this patch:
14814
14815 2013-05-24 Yao Qi <yao@codesourcery.com>
14816
14817 * tracepoint.c (TFILE_PID): Remove.
14818 (tfile_open): Don't add thread and inferior.
14819 (tfile_close): Don't set 'inferior_ptid'. Don't call
14820 exit_inferior_silent.
14821 (tfile_thread_alive): Remove.
14822 (init_tfile_ops): Don't set field 'to_thread_alive' of
14823 tfile_ops.
14824
f4ccffad
CE
148252014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14826
14827 * remote.c (remote_start_remote): Call remote_check_symbols even
14828 if only symbol-file (not file) has been given.
14829
591a12a1
UW
148302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14831
14832 * gdbarch.sh (skip_entrypoint): New callback.
14833 * gdbarch.c, gdbarch.h: Regenerate.
14834 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14835 * infrun.c (fill_in_stop_func): Likewise.
14836 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14837 (ppc_elfv2_elf_make_msymbol_special): New function.
14838 (ppc_elfv2_skip_entrypoint): Likewise.
14839 (ppc_linux_init_abi): Install them for ELFv2.
14840
cc0e89c5
UW
148412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14842
14843 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14844 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14845 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14846 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14847 structures returned in GPRs.
14848
52f548e4
UW
148492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14850
14851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14852 offset to the stack parameter list for the ELFv2 ABI.
14853
d4094b6a
UW
148542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14855
14856 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14857 set_gdbarch_convert_from_func_ptr_addr and
14858 set_gdbarch_elf_make_msymbol_special for ELFv1.
14859 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14860 function descriptors on ELFv1.
14861 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14862 set up r12 at function entry.
14863
cd453cd0
UW
148642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14865
14866 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14867 (struct gdbarch_tdep): New member elf_abi.
14868
14869 * rs6000-tdep.c: Include "elf/ppc64.h".
14870 (rs6000_gdbarch_init): Detect ELF ABI version.
14871
0ff3e01f
UW
148722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14873
14874 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14875 within a register pair holding a DFP 128-bit value on little-endian.
14876 (ppc64_sysv_abi_return_value_base): Likewise.
14877 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14878 (dfp_pseudo_register_write): Likewise.
14879
5b757e5d
UW
148802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14881
14882 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14883 offset on little-endian when passing _Decimal32.
14884 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14885
084ee545
UW
148862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14887
14888 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14889 of the overlapped FP register within the VSX register on little-
14890 endian platforms.
14891 (efpr_pseudo_register_write): Likewise.
14892
d63167af
UW
148932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14894
14895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14896 offset on little-endian when passing small structures.
14897
e765b44c
UW
148982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14899
14900 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14901 (struct ppc64_sysv_argpos): New data structure.
14902 (ppc64_sysv_abi_push_float): Remove.
14903 (ppc64_sysv_abi_push_val): New function.
14904 (ppc64_sysv_abi_push_integer): Likewise.
14905 (ppc64_sysv_abi_push_freg): Likewise.
14906 (ppc64_sysv_abi_push_vreg): Likewise.
14907 (ppc64_sysv_abi_push_param): Likewise.
14908 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14909 (ppc64_sysv_abi_return_value_base): New function.
14910 (ppc64_sysv_abi_return_value): Refactor to use it.
14911
36c24d95
UW
149122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14913
14914 * NEWS: Document new target powerpc64le-*-linux*.
14915
26fd9228
MK
149162014-02-04 Mark Kettenis <kettenis@gnu.org>
14917
14918 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14919 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14920 core dumps.
14921 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14922 register set used in ELF core dumps. Add floating-point register set.
14923
c5bb7362
KB
149242014-02-03 Kevin Buettner <kevinb@redhat.com>
14925
74228e77 14926 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14927 dwarf2_to_gdb[] table using symbolic constants. Adjust
14928 penultimate entry from number representing the PC register
14929 to symbolic constant representing the MDR register. Add
14930 constant for the PC register to the end of the table.
14931
af09351e
MK
149322014-02-03 Mark Kettenis <kettenis@gnu.org>
14933
14934 * bsd-kvm.c: Include <sys/param.h>
14935
8507e05d
MK
149362014-02-03 Mark Kettenis <kettenis@gnu.org>
14937
14938 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14939
ae56bfb8
JB
149402014-01-31 Joel Brobecker <brobecker@adacore.com>
14941
14942 * ada-lang.h (clear_ada_sym_cache): Delete.
14943
718ee4dc
UW
149442014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14945
14946 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14947
401e27fd
JM
149482014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14949
14950 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14951 the sigreturn register save area only if the syscall is
14952 sigreturn.
14953
a7c88acd
JB
149542014-01-29 Joel Brobecker <brobecker@adacore.com>
14955
14956 * valops.c (value_slice): Minor reformatting.
14957
fa0079ea
UW
149582014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14959
14960 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14961
c6044dd1
JB
149622014-01-28 Joel Brobecker <brobecker@adacore.com>
14963
14964 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14965 New static globals.
14966 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14967 (ada_ignore_descriptive_types_p): New static global.
14968 (find_parallel_type_by_descriptive_type): Return immediately
14969 if ada_ignore_descriptive_types_p is set.
14970 (_initialize_ada_language): Register new commands "maintenance
14971 set ada", "maintenance show ada", "maintenance set ada
14972 ignore-descriptive-types" and "maintenance show ada
14973 ignore-descriptive-types".
14974 * NEWS: Add entry for new "maint ada set/show
14975 ignore-descriptive-types" commands.
14976
568e808b
MM
149772014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14978
14979 * record-btrace.c (record_btrace_close): Call btrace_teardown
14980 for all threads.
14981
467d141b
JB
149822014-01-27 Joel Brobecker <brobecker@adacore.com>
14983
14984 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14985 "ui-out.h".
14986
fb151210
JB
149872014-01-27 Joel Brobecker <brobecker@adacore.com>
14988
14989 * ada-typeprint (type_is_full_subrange_of_target_type):
14990 New function.
14991 (print_range): Add parameter bounds_prefered_p. If not set,
14992 try printing range types using the name of their base type.
14993 (print_range_type): Add parameter bounds_prefered_p.
14994 Use it in call to print_range.
14995 (print_array_type, ada_print_type): Update calls to print_range
14996 and print_range_type.
14997
aba02109
JB
149982014-01-27 Joel Brobecker <brobecker@adacore.com>
14999
15000 * ada-typeprint.c (print_array_type, print_choices, print_range)
15001 (print_range_bound, print_dynamic_range_bound, print_range_type):
15002 Remove declaration.
15003
e62e21fd
JB
150042014-01-27 Joel Brobecker <brobecker@adacore.com>
15005
15006 * ada-typeprint.c (print_range): Add missing empty line
15007 after local declaration.
15008
859cf5d1
JB
150092014-01-27 Joel Brobecker <brobecker@adacore.com>
15010
15011 * ada-valprint.c (print_optional_low_bound): Get index_type's
15012 target type for as long as it is a TYPE_CODE_RANGE.
15013
25790f6f
JB
150142014-01-27 Joel Brobecker <brobecker@adacore.com>
15015
15016 * procfs.c (procfs_make_note_section): Remove assertion and
15017 associated comment.
15018
6b6aa828
YQ
150192014-01-24 Yao Qi <yao@codesourcery.com>
15020
15021 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15022 * corelow.c (get_core_siginfo): Likewise.
15023
5d6df423
YQ
150242014-01-24 Yao Qi <yao@codesourcery.com>
15025
15026 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15027 ULONGEST. Don't check 'len' is negative.
15028 (remote_write_bytes): Change type of 'len' to ULONGEST.
15029
83b645b8
TT
150302014-01-23 Tom Tromey <tromey@redhat.com>
15031
15032 PR python/16485:
15033 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15034 Handle exception from frame.block.
15035 (FrameVars.fetch_frame_locals): Likewise.
15036
0740f8d8
TT
150372014-01-23 Tom Tromey <tromey@redhat.com>
15038
15039 PR python/16487:
15040 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15041 on a NULL pointer. Move "goto error" to correct place.
15042
21909fa1
TT
150432014-01-23 Tom Tromey <tromey@redhat.com>
15044
15045 PR python/16491:
15046 * python/py-framefilter.c (apply_frame_filter): Call
15047 ensure_python_env after computing gdbarch.
15048
17fde6d0
YQ
150492014-01-23 Yao Qi <yao@codesourcery.com>
15050
15051 * target.c (raw_memory_xfer_partial): Change argument type
15052 from void * to gdb_byte *.
15053 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15054
87ce2a04
DE
150552014-01-22 Doug Evans <dje@google.com>
15056
15057 New gdbserver option --debug-format=timestamp.
15058 * NEWS: Mention it.
15059
237b092b
AA
150602014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15061
15062 * syscalls/s390x-linux.xml: New file.
15063 * syscalls/s390-linux.xml: New file.
15064 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15065 (XML_SYSCALL_FILENAME_S390X): Likewise.
15066 (op_svc): New enum value for SVC opcode.
15067 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15068 (s390_linux_get_syscall_number): New function.
15069 (s390_gdbarch_init): Register '*get_syscall_number' and the
15070 syscall xml file name.
15071 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15072 "s390-linux.xml" and "s390x-linux.xml".
15073 * NEWS: Announce new feature.
15074
54bff650
BS
150752014-01-22 Baruch Siach <baruch@tkos.co.il>
15076
15077 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15078
14e361d7
PA
150792014-01-22 Pedro Alves <palves@redhat.com>
15080
15081 * xtensa-config.c: Include defs.h.
15082
46bbb3ed
JB
150832014-01-22 Joel Brobecker <brobecker@adacore.com>
15084
15085 * common/common-utils.h: Add "ARI:" comment beside __func__
15086 reference.
15087
3a80edfc
JB
150882014-01-22 Joel Brobecker <brobecker@adacore.com>
15089
15090 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15091 documentation a bit.
15092
4869db5e
RM
150932014-01-21 Roland McGrath <mcgrathr@google.com>
15094
15095 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15096 * configure: Regenerate.
15097 * aclocal.m4: Regenerate.
15098 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15099 New substituted variables.
15100 (install-strip): New target.
15101 (INSTALL_SCRIPT): New substituted variable.
15102 (FLAGS_TO_PASS): Add it.
15103 (install-only): Use $(INSTALL_SCRIPT) rather than
15104 $(INSTALL_PROGRAM) for gcore.
15105
9ea4267d
TT
151062014-01-20 Tom Tromey <tromey@redhat.com>
15107
15108 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15109 together.
15110
1f2bdf09
TT
151112014-01-20 Tom Tromey <tromey@redhat.com>
15112
15113 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15114 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15115 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15116 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15117 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15118 (struct cmd_list_element) <flags>: Remove.
15119 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15120 doc_allocated>: New fields.
15121 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15122 bitfields.
15123 * maint.c (maintenance_do_deprecate): Update.
15124 * top.c (execute_command): Update.
15125
e671835b
BS
151262014-01-20 Baruch Siach <baruch@tkos.co.il>
15127
15128 * xtensa-linux-nat.c: Include asm/ptrace.h.
15129
50367cd2
IB
151302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15131
15132 * Makefile.in (SFILES): Add d-support.c.
15133 (COMMON_OBS): Add d-support.o.
15134 * d-lang.h (d_parse_symbol): Add comment, now defined in
15135 d-support.c.
15136 * d-lang.c (parse_call_convention)
15137 (parse_attributes, parse_function_types)
15138 (parse_function_args, parse_type, parse_identifier)
15139 (call_convention_p, d_parse_symbol): Move functions to ...
15140 * d-support.c: ... New file.
15141
ec9f644a
IB
151422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15143
15144 * d-lang.h (d_parse_symbol): Add declaration.
15145 * d-lang.c (extract_identifiers)
15146 (extract_type_info): Remove functions.
15147 (parse_call_convention, parse_attributes)
15148 (parse_function_types, parse_function_args)
15149 (parse_type, parse_identifier, call_convention_p)
15150 (d_parse_symbol): New functions.
15151 (d_demangle): Use d_parse_symbol to demangle D symbols.
15152
94b1b47e
IB
151532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15154
15155 * d-lang.h (struct builtin_d_type): New data type.
15156 (builtin_d_type): Add declaration.
15157 * d-lang.c (d_language_arch_info, build_d_types)
15158 (builtin_d_type): New functions.
15159 (enum d_primitive_types): New data type.
15160 (d_language_defn): Change c_language_arch_info to
15161 d_language_arch_info.
15162 (d_type_data): New static variable.
15163 (_initialize_d_language): Initialize d_type_data.
15164
63778547
IB
151652014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15166
15167 * d-lang.h (d_main_name): Add declaration.
15168 * d-lang.c (d_main_name): New function.
15169 * symtab.c (find_main_name): Add call to d_main_name.
15170
3271ba66
IB
151712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15172
15173 * d-lang.c (d_language_defn): Change macro_expansion_c to
15174 macro_expansion_no.
15175
d36b3012
IB
151762014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15177
15178 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15179
c90a6fb7
SDJ
151802014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15181
15182 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15183 gdb_exception" declaration.
15184 * remote.c (getpkt_or_notif_sane): Likewise.
15185
749234e5
DE
151862014-01-17 Doug Evans <dje@google.com>
15187
15188 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15189 function, contents of dirnames_to_char_ptr_vec_append moved here.
15190 (delim_string_to_char_ptr_vec): New function.
15191 (dirnames_to_char_ptr_vec_append): Rewrite.
15192 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15193
df049a58
DE
151942014-01-17 Doug Evans <dje@google.com>
15195
15196 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15197 and moved here ...
15198 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15199 #include "common-utils.h".
15200 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15201 * common/vec.h (VEC_ASSERT_PASS): Update.
15202 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15203 (MACH_CHECK_ERROR): Update.
15204
69f97648
SM
152052014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15206
15207 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15208 comments.
15209 * gdbarch.h: Regenerate.
15210
98b1cfdc
TT
152112014-01-16 Tom Tromey <tromey@redhat.com>
15212
15213 * value.c (struct value) <regnum>: Move earlier.
15214
77a19445
TT
152152014-01-16 Tom Tromey <tromey@redhat.com>
15216
15217 * remote.c (extended_remote_create_inferior): Rename from
15218 extended_remote_create_inferior_1. Add "ops" argument. Remove
15219 old implementation.
15220
62261490
PA
152212014-01-16 Pedro Alves <palves@redhat.com>
15222
15223 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15224 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15225 the backchain.
15226
4d65956b
DE
152272014-01-16 Doug Evans <dje@google.com>
15228
15229 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15230
52834460
MM
152312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15232
15233 * btrace.h (btrace_thread_flag): New.
15234 (struct btrace_thread_info) <flags>: New.
15235 * record-btrace.c (record_btrace_resume_thread)
15236 (record_btrace_find_thread_to_move, btrace_step_no_history)
15237 (btrace_step_stopped, record_btrace_start_replaying)
15238 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15239 (record_btrace_find_resume_thread): New.
15240 (record_btrace_resume, record_btrace_wait): Extend.
15241 (record_btrace_can_execute_reverse): New.
15242 (record_btrace_open): Fail in non-stop mode.
15243 (record_btrace_set_replay): Split into this, ...
15244 (record_btrace_stop_replaying): ... this, ...
15245 (record_btrace_clear_histories): ... and this.
15246 (init_record_btrace_ops): Init to_can_execute_reverse.
15247 * NEWS: Announce it.
15248
118e6252
MM
152492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15250
15251 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15252 (forward_target_decr_pc_after_break)
15253 (target_decr_pc_after_break): New.
15254 * target.c (forward_target_decr_pc_after_break)
15255 (target_decr_pc_after_break): New.
15256 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15257 instead of gdbarch_decr_pc_after_break.
15258 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15259 instead of gdbarch_decr_pc_after_break.
15260 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15261 instead of gdbarch_decr_pc_after_break.
15262 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15263 instead of gdbarch_decr_pc_after_break.
15264 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15265 instead of gdbarch_decr_pc_after_break.
15266 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15267 instead of gdbarch_decr_pc_after_break.
15268
6e07b1d2
MM
152692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15270
15271 * btrace.c: Include regcache.h.
15272 (btrace_add_pc): New.
15273 (btrace_enable): Call btrace_add_pc.
15274 (btrace_is_empty): New.
15275 * btrace.h (btrace_is_empty): New.
15276 * record-btrace.c (require_btrace, record_btrace_info): Call
15277 btrace_is_empty.
15278
969c39fb
MM
152792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15280
15281 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15282 Support delta reads.
15283 (linux_disable_btrace): Change return type.
15284 * common/linux-btrace.h (linux_read_btrace): Change parameters
15285 and return type to allow error reporting. Update users.
15286 (linux_disable_btrace): Change return type. Update users.
15287 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15288 New.
15289 (btrace_error): New.
15290 (btrace_block) <begin>: Comment on BEGIN == 0.
15291 * btrace.c (btrace_compute_ftrace): Start from the end of
15292 the current trace.
15293 (btrace_stitch_trace, btrace_clear_history): New.
15294 (btrace_fetch): Read delta trace, return if replaying.
15295 (btrace_clear): Move clear history code to btrace_clear_history.
15296 (parse_xml_btrace): Throw an error if parsing failed.
15297 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15298 and return type to allow error reporting.
15299 (target_read_btrace): Change parameters and return type to allow
15300 error reporting.
15301 * target.c (target_read_btrace): Update.
15302 * remote.c (remote_read_btrace): Support delta reads. Pass
15303 errors on.
15304 * NEWS: Announce it.
15305
0b722aec
MM
153062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15307
15308 * record.h (record_btrace_frame_unwind)
15309 (record_btrace_tailcall_frame_unwind): New declarations.
15310 * dwarf2-frame: Include record.h
15311 (dwarf2_frame_cfa): Throw an error for btrace frames.
15312 * record-btrace.c: Include hashtab.h.
15313 (btrace_get_bfun_name): New.
15314 (btrace_call_history): Call btrace_get_bfun_name.
15315 (struct btrace_frame_cache): New.
15316 (bfcache): New.
15317 (bfcache_hash, bfcache_eq, bfcache_new): New.
15318 (btrace_get_frame_function): New.
15319 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15320 (record_btrace_frame_this_id): Compute own id.
15321 (record_btrace_frame_prev_register): Provide PC, throw_error
15322 for all other registers.
15323 (record_btrace_frame_sniffer): Detect btrace frames.
15324 (record_btrace_tailcall_frame_sniffer): New.
15325 (record_btrace_frame_dealloc_cache): New.
15326 (record_btrace_frame_unwind): Add new functions.
15327 (record_btrace_tailcall_frame_unwind): New.
15328 (_initialize_record_btrace): Allocate cache.
15329 * btrace.c (btrace_clear): Call reinit_frame_cache.
15330 * NEWS: Announce it.
15331
066ce621
MM
153322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15333
15334 * record-btrace.c (record_btrace_set_replay)
15335 (record_btrace_goto_begin, record_btrace_goto_end)
15336 (record_btrace_goto): New.
15337 (init_record_btrace_ops): Initialize them.
15338 * NEWS: Announce it.
15339
e2887aa3
MM
153402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15341
15342 * record-btrace.c (record_btrace_find_new_threads)
15343 (record_btrace_thread_alive): New.
15344 (init_record_btrace_ops): Initialize to_find_new_threads and
15345 to_thread_alive.
15346
b2f4cfde
MM
153472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15348
15349 * record-btrace.c (record_btrace_resume): New.
15350 (record_btrace_wait): New.
15351 (init_record_btrace_ops): Initialize to_wait and to_resume.
15352
633785ff
MM
153532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15354
15355 * record-btrace.c (record_btrace_xfer_partial)
15356 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15357 (record_btrace_allow_memory_access): New.
15358 (init_record_btrace_ops): Initialize new methods.
15359 * target.c (raw_memory_xfer_partial): Bail out if target reports
15360 that this memory is not available.
15361
3db08215
MM
153622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15363
15364 * target.h (target_ops) <to_insert_breakpoint>
15365 <to_remove_breakpoint>: Add target_ops parameter.
15366 (forward_target_insert_breakpoint): New.
15367 (forward_target_remove_breakpoint): New.
15368 (memory_remove_breakpoint, memory_insert_breakpoint):
15369 Add target_ops parameter.
15370 * target.c (target_insert_breakpoint): Split into this and ...
15371 (forward_target_insert_breakpoint): ... this.
15372 (target_remove_breakpoint): Split into this and ...
15373 (forward_target_remove_breakpoint): ... this.
15374 (debug_to_insert_breakpoint): Add target_ops parameter.
15375 Call forward_target_insert_breakpoint.
15376 (debug_to_remove_breakpoint): Add target_ops parameter.
15377 Call forward_target_remove_breakpoint.
15378 (update_current_target): Do not inherit or default to_insert_breakpoint
15379 and to_remove_breakpoint.
15380 * corelow.c (ignore): Add target_ops parameter.
15381 * exec.c (ignore): Add target_ops parameter.
15382 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15383 Add target_ops parameter.
15384 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15385 Add target_ops parameter.
15386 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15387 Add target_ops parameter.
15388 * record-full.c (record_full_beneath_to_insert_breakpoint)
15389 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15390 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15391 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15392 (record_full_core_remove_breakpoint): Add target_ops parameter.
15393 Update users.
15394 (record_full_beneath_to_insert_breakpoint_ops)
15395 (record_full_beneath_to_remove_breakpoint_ops)
15396 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15397 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15398 tmp_to_remove_breakpoint_ops,
15399 record_full_beneath_to_insert_breakpoint_ops, and
15400 record_full_beneath_to_remove_breakpoint_ops.
15401 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15402 (m32r_remove_breakpoint): Add target_ops parameter.
15403 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15404 Add target_ops parameter.
15405 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15406 Add target_ops parameter.
15407
cecac1ab
MM
154082014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15409 Markus Metzger <markus.t.metzger@intel.com>
15410
15411 * record-btrace.c: Include frame-unwind.h.
15412 (record_btrace_frame_unwind_stop_reason)
15413 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15414 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15415 New.
15416 (init_record_btrace_ops): Install it.
15417
824344ca
MM
154182014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15419
15420 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15421 get_prev_frame_1.
15422
32261e52
MM
154232014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15424
15425 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15426 earlier.
15427
ea001bdc
MM
154282014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15429
15430 * frame-unwind.c: Include target.h.
15431 (frame_unwind_try_unwinder): New function with code from ...
15432 (frame_unwind_find_by_frame): ... here. New variable
15433 unwinder_from_target, call also target_get_unwinder)
15434 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15435 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15436 * target.h (struct target_ops): New fields to_get_unwinder and
15437 to_get_tailcall_unwinder.
15438 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15439
1f3ef581
MM
154402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15441
15442 * record-btrace.c (record_btrace_fetch_registers)
15443 (record_btrace_store_registers)
15444 (record_btrace_to_prepare_to_store): New.
15445 (init_record_btrace_ops): Add the above.
15446
f32dbf8c
MM
154472014-01-16 Tom Tromey <tromey@redhat.com>
15448
15449 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15450 * target.h (struct target_ops) <to_prepare_to_store>: Add
15451 argument.
15452 (target_prepare_to_store): Add argument.
15453 * target.c (debug_to_prepare_to_store): Add argument.
15454 (update_current_target): Update.
15455 * remote.c (remote_prepare_to_store): Add 'self' argument.
15456 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15457 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15458 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15459 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15460 argument.
15461 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15462 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15463 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15464 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15465 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15466
07bbe694
MM
154672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15468
15469 * btrace.h (replay) <replay>: New.
15470 (btrace_is_replaying): New.
15471 * btrace.c (btrace_clear): Free replay iterator.
15472 (btrace_is_replaying): New.
15473 * record-btrace.c (record_btrace_is_replaying): New.
15474 (record_btrace_info): Print insn number if replaying.
15475 (record_btrace_insn_history): Start at replay position.
15476 (record_btrace_call_history): Start at replay position.
15477 (init_record_btrace_ops): Init to_record_is_replaying.
15478
0688d04e
MM
154792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15480
15481 * record-btrace.c (record_btrace_insn_history_range): Include
15482 end.
15483 (record_btrace_insn_history_from): Adjust range.
15484 (record_btrace_call_history_range): Include
15485 end.
15486 (record_btrace_call_history_from): Adjust range.
15487 * NEWS: Announce changes.
15488
8710b709
MM
154892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15490
15491 * record.h (enum record_print_flag)
15492 <record_print_indent_calls>: New.
15493 * record.c (get_call_history_modifiers): Recognize /c modifier.
15494 (_initialize_record): Document /c modifier.
15495 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15496 Reorder fields. Optionally indent the function name. Update
15497 all users.
15498 * NEWS: Announce changes.
15499
d0fa7535
MM
155002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15501
15502 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15503
5de9129b
MM
155042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15505
15506 * btrace.c (ftrace_new_function): Start counting at one.
15507 * record-btrace.c (record_btrace_info): Adjust number of calls
15508 and insns.
15509 * NEWS: Announce it.
15510
7acbe133
MM
155112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15512
15513 * record-btrace.c (btrace_call_history_insn_range): Print
15514 insn range as [begin, end].
15515
23a7fe75
MM
155162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15517
15518 * btrace.h (struct btrace_func_link): New.
15519 (enum btrace_function_flag): New.
15520 (struct btrace_inst): Rename to ...
15521 (struct btrace_insn): ...this. Update all users.
15522 (struct btrace_func) <ibegin, iend>: Remove.
15523 (struct btrace_func_link): New.
15524 (struct btrace_func): Rename to ...
15525 (struct btrace_function): ...this. Update all users.
15526 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15527 (number, level, flags>: New.
15528 (struct btrace_insn_iterator): Rename to ...
15529 (struct btrace_insn_history): ...this.
15530 Update all users.
15531 (struct btrace_insn_iterator, btrace_call_iterator): New.
15532 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15533 (struct btrace_target_info) <begin, end, level>
15534 <insn_history, call_history>: New.
15535 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15536 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15537 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15538 (btrace_call_number, btrace_call_begin, btrace_call_end)
15539 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15540 (btrace_find_function_by_number, btrace_set_insn_history)
15541 (btrace_set_call_history): New.
15542 * btrace.c (btrace_init_insn_iterator)
15543 (btrace_init_func_iterator, compute_itrace): Remove.
15544 (ftrace_print_function_name, ftrace_print_filename)
15545 (ftrace_skip_file): Change
15546 parameter to const.
15547 (ftrace_init_func): Remove.
15548 (ftrace_debug): Use new btrace_function fields.
15549 (ftrace_function_switched): Also consider gaining and
15550 losing symbol information).
15551 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15552 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15553 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15554 New.
15555 (ftrace_new_function): Move. Remove debug print.
15556 (ftrace_update_lines, ftrace_update_insns): New.
15557 (ftrace_update_function): Check for call, ret, and jump.
15558 (compute_ftrace): Renamed to ...
15559 (btrace_compute_ftrace): ...this. Rewritten to compute call
15560 stack.
15561 (btrace_fetch, btrace_clear): Updated.
15562 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15563 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15564 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15565 (btrace_call_number, btrace_call_begin, btrace_call_end)
15566 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15567 (btrace_find_function_by_number, btrace_set_insn_history)
15568 (btrace_set_call_history): New.
15569 * record-btrace.c (require_btrace): Use new btrace thread
15570 info fields.
15571 (record_btrace_info, btrace_insn_history)
15572 (record_btrace_insn_history, record_btrace_insn_history_range):
15573 Use new btrace thread info fields and new iterator.
15574 (btrace_func_history_src_line): Rename to ...
15575 (btrace_call_history_src_line): ...this. Use new btrace
15576 thread info fields.
15577 (btrace_func_history): Rename to ...
15578 (btrace_call_history): ...this. Use new btrace thread info
15579 fields and new iterator.
15580 (record_btrace_call_history, record_btrace_call_history_range):
15581 Use new btrace thread info fields and new iterator.
15582
8372a7cb
MM
155832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15584
15585 * frame.h (frame_id_build_unavailable_stack_special): New.
15586 * frame.c (frame_id_build_unavailable_stack_special): New.
15587
c2170eef
MM
155882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15589
15590 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15591 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15592 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15593 to gdbarch.
15594 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15595 (i386_insn_is_jump, i386_jmp_p): New.
15596 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15597 insn_is_jump to gdbarch.
15598 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15599 * gdbarch.h: Regenerated.
15600 * gdbarch.c: Regenerated.
15601 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15602 (default_insn_is_jump): New.
15603 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15604 (default_insn_is_jump): New.
15605
864089d2
MM
156062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15607
15608 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15609 Change to ...
15610 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15611 (btrace_read_type) <btrace_read_new>: Change to ...
15612 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15613
ed9edfb5
MM
156142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15615
15616 * common/linux-btrace.c (linux_read_btrace): Free trace from
15617 previous iteration.
15618
fbcbc3fd
DE
156192014-01-15 Doug Evans <dje@google.com>
15620
15621 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15622 uint32_t.
15623
3d548a53
TT
156242014-01-15 Tom Tromey <tromey@redhat.com>
15625
15626 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15627 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15628 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15629 (set_objfile_main_name): New function.
15630 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15631 language_of_main>: New fields.
15632 (set_objfile_main_name): Declare.
15633 * symtab.c (find_main_name): Loop over objfiles to find the main
15634 name and language.
15635 (set_main_name): Now static.
15636 (get_main_info): Add comment.
15637 * symtab.h (set_main_name): Don't declare.
15638
32ac0d11
TT
156392014-01-15 Tom Tromey <tromey@redhat.com>
15640
15641 * symtab.c (main_progspace_key): New global.
15642 (struct main_info): New.
15643 (name_of_main, language_of_main): Remove.
15644 (get_main_info, main_info_cleanup): New function.
15645 (set_main_name, main_name, main_language): Use get_main_info.
15646 (_initialize_symtab): Initialize main_progspace_key.
15647
9e6c82ad
TT
156482014-01-15 Tom Tromey <tromey@redhat.com>
15649
15650 * dbxread.c (process_one_symbol): Update.
15651 * dwarf2read.c (read_partial_die): Update.
15652 * symfile.c (set_initial_language): Call main_language.
15653 * symtab.c (language_of_main): Now static.
15654 (set_main_name): Add 'lang' parameter.
15655 (find_main_name): Update.
15656 (main_language): New function.
15657 (symtab_observer_executable_changed): Update.
15658 * symtab.h (set_main_name): Update.
15659 (language_of_main): Remove.
15660 (main_language): Declare.
15661
6ef55de7
TT
156622014-01-15 Tom Tromey <tromey@redhat.com>
15663
15664 * symfile.c (init_entry_point_info): Use new "initialized" field.
15665 Update.
15666 * objfiles.h (struct entry_point) <initialized>: New field.
15667 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15668 (struct objfile) <ei>: ...here. Remove.
15669 * objfiles.c (entry_point_address_query): Update.
15670
53eddfa6
TT
156712014-01-15 Tom Tromey <tromey@redhat.com>
15672
15673 * objfiles.c (entry_point_address_query): Relocate entry point
15674 address.
15675 (objfile_relocate1): Do not relocate entry point address.
15676 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15677 <the_bfd_section_index>: New field.
15678 * symfile.c (init_entry_point_info): Find the entry point's
15679 section.
15680
d56e56aa
TT
156812014-01-15 Tom Tromey <tromey@redhat.com>
15682
15683 * solib-frv.c (enable_break): Use entry_point_address_query.
15684
33a97bbe
OJ
156852014-01-15 Omair Javaid <omair.javaid@linaro.org>
15686
15687 * NEWS: Add note on improved process record-replay on
15688 arm*-linux* targets.
15689
c6ec2b30
OJ
156902014-01-15 Omair Javaid <omair.javaid@linaro.org>
15691
15692 * arm-tdep.c (enum arm_record_result): New enum.
15693 (arm_record_unsupported_insn): New function.
15694 (arm_record_coproc_data_proc): Removed.
15695 (thumb2_record_ld_st_multiple): New function.
15696 (thumb2_record_ld_st_dual_ex_tbb): New function.
15697 (thumb2_record_data_proc_sreg_mimm): New function.
15698 (thumb2_record_ps_dest_generic): New function.
15699 (thumb2_record_branch_misc_cntrl): New function.
15700 (thumb2_record_str_single_data): New function.
15701 (thumb2_record_ld_mem_hints): New function.
15702 (thumb2_record_ld_word): New function.
15703 (thumb2_record_lmul_lmla_div): New function.
15704 (thumb2_record_decode_insn_handler): New function.
15705 (decode_insn): Add thumb32 instruction handlers.
15706
97dfe206
OJ
157072014-01-15 Omair Javaid <omair.javaid@linaro.org>
15708
15709 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15710 (struct arm_linux_record_tdep): Declare.
15711 (arm_canonicalize_syscall): New function.
15712 (arm_all_but_pc_registers_record): New function.
15713 (arm_linux_syscall_record): New function.
15714 (arm_linux_init_abi): Add syscall recording constructs.
15715 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15716 decoding. (arm_record_coproc_data_proc): Update arm syscall
15717 decoding.
15718 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15719 <arm_syscall_record>: New field.
15720 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15721 gdb_target_obs.
15722
9904a494
OJ
157232014-01-15 Omair Javaid <omair.javaid@linaro.org>
15724
15725 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15726 register for push instruction recording.
15727
f969241e
OJ
157282014-01-15 Omair Javaid <omair.javaid@linaro.org>
15729
15730 * arm-tdep.c (thumb_record_misc): Update to correct logical
15731 error while recording ldm, ldmia and pop instructions.
15732
bfbbec00
OJ
157332014-01-15 Omair Javaid <omair.javaid@linaro.org>
15734
15735 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15736
e40adcc9
PA
157372014-01-15 Pedro Alves <palves@redhat.com>
15738
15739 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15740 (go32_resume, go32_fetch_registers, store_register)
15741 (go32_store_registers, go32_prepare_to_store)
15742 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15743 (go32_create_inferior, go32_can_run, go32_terminal_init)
15744 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15745 declarations.
15746
b0a16e66
TT
157472014-01-15 Tom Tromey <tromey@redhat.com>
15748
15749 * target.h (async_callback_ftype): New typedef.
15750 (struct target_ops) <to_async>: Use it.
15751
bf7105a4
JB
157522014-01-15 Joel Brobecker <brobecker@adacore.com>
15753
15754 * python/py-value.c (get_field_type): Remove unnecessary curly
15755 braces for single-statement if block.
15756
a8f35c2e
JB
157572014-01-15 Joel Brobecker <brobecker@adacore.com>
15758
15759 * python/py-type.c (convert_field): Add missing empty line
15760 after declarations.
15761
bb4142cf
DE
157622014-01-14 Doug Evans <dje@google.com>
15763
15764 * symfile.h (expand_symtabs_matching): Renamed from
15765 expand_partial_symbol_names. Update prototype.
15766 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15767 * symfile.c (expand_symtabs_matching): Renamed from
15768 expand_partial_symbol_names. New args file_matcher, kind.
15769 Rename arg fun to symbol_matcher.
15770 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15771 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15772 ada_expand_partial_symbol_name.
15773 (ada_make_symbol_completion_list): Update to call
15774 expand_symtabs_matching.
15775 (ada_add_global_exceptions): Call expand_symtabs_matching.
15776 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15777 call map_symbol_filenames.
15778 * symtab.c (sources_info): Update to call map_symbol_filenames.
15779 (search_symbols): Call expand_symtabs_matching.
15780 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15781 (default_make_symbol_completion_list_break_on): Update to call
15782 expand_symtabs_matching.
15783 (make_source_files_completion_list): Update to call
15784 map_symbol_filenames.
15785
206f2a57
DE
157862014-01-14 Doug Evans <dje@google.com>
15787
15788 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15789 (expand_symtabs_symbol_matcher_ftype): New typedef.
15790 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15791 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15792 * symfile.c (expand_partial_symbol_names): Update to use
15793 expand_symtabs_symbol_matcher_ftype.
15794 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15795 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15796 Arg name_matcher renamed to symbol_matcher.
15797 * psymtab.c (recursively_search_psymtabs): Update to use
15798 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15799 sym_matcher.
15800 (expand_symtabs_matching_via_partial): Update to use
15801 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15802 Arg name_matcher renamed to symbol_matcher.
15803
540c2971
DE
158042014-01-14 Doug Evans <dje@google.com>
15805
15806 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15807 (map_partial_symbol_filenames): Ditto.
15808 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15809 (map_partial_symbol_filenames): Ditto.
15810 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15811 (map_partial_symbol_filenames): Ditto.
15812 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15813 (map_partial_symbol_filenames): Ditto.
15814 * symtab.c: Delete #include "psymtab.h".
15815
8213266a
PA
158162014-01-14 Pedro Alves <palves@redhat.com>
15817 Tom Tromey <tromey@redhat.com>
15818
15819 * infrun.c (use_displaced_stepping): Use find_record_target
15820 instead of RECORD_IS_USED.
15821 (adjust_pc_after_break): Use record_full_is_used instead of
15822 RECORD_IS_USED.
15823 * record-btrace.c (record_btrace_open): Call record_preopen
15824 instead of checking RECORD_IS_USED.
15825 * record-full.c (record_full_shortname)
15826 (record_full_core_shortname): New globals.
15827 (record_full_is_used): New function.
15828 (find_full_open): Call record_preopen instead of checking
15829 RECORD_IS_USED.
15830 (init_record_full_ops): Set the target's shortname to
15831 record_full_shortname.
15832 (init_record_full_core_ops): Set the target's shortname to
15833 record_full_core_shortname.
15834 * record-full.h (record_full_is_used): Declare.
15835 * record.c (find_record_target): Make extern.
15836 (record_preopen): New function.
15837 * record.h (RECORD_IS_USED): Delete macro.
15838 (find_record_target, record_preopen): Declare functions.
15839
7ec1862d
YQ
158402014-01-14 Yao Qi <yao@codesourcery.com>
15841
15842 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15843 'len''s type to ULONGEST.
15844 (core_xfer_shared_libraries_aix): Likewise.
15845 * gdbarch.c, gdbarch.h: Regenerated.
15846 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15847 Change type of 'len' to ULONGEST.
15848 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15849 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15850
dea80a27
YQ
158512014-01-14 Yao Qi <yao@codesourcery.com>
15852
15853 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15854 type of 'len' to ULONGEST.
15855 (linux_xfer_osdata_processgroups): Likewise.
15856 (linux_xfer_osdata_threads): Likewise.
15857 (linux_xfer_osdata_fds): Likewise.
15858 (linux_xfer_osdata_isockets): Likewise.
15859 (linux_xfer_osdata_shm): Likewise.
15860 (linux_xfer_osdata_sem): Likewise.
15861 (linux_xfer_osdata_msg): Likewise.
15862 (linux_common_xfer_osdata): Likewise.
15863 (struct osdata_type) <getter>: Likewise.
15864 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15865 the declaration.
15866
b55e14c7
YQ
158672014-01-14 Yao Qi <yao@codesourcery.com>
15868
15869 * target.h (target_xfer_partial_ftype): Update.
15870 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15871 ULONGEST.
15872 * aix-thread.c (aix_thread_xfer_partial): Change type of
15873 argument 'len' to ULONGEST.
15874 * auxv.c (procfs_xfer_auxv): Likewise.
15875 (ld_so_xfer_auxv): Likewise.
15876 (memory_xfer_auxv): Likewise.
15877 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15878 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15879 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15880 * corelow.c (core_xfer_partial): Likewise.
15881 * ctf.c (ctf_xfer_partial): Likewise.
15882 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15883 '%u'.
15884 (darwin_read_dyld_info): Likewise.
15885 (darwin_xfer_partial): Likewise.
15886 * exec.c (section_table_xfer_memory_partial): Likewise.
15887 (exec_xfer_partial): Likewise.
15888 * exec.h (section_table_xfer_memory_partial): Update
15889 declaration.
15890 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15891 instead of plongest.
15892 (gnu_xfer_partial): Likewise.
15893 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15894 (ia64_hpux_xfer_solib_got): Likewise.
15895 (ia64_hpux_xfer_partial): Likewise.
15896 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15897 * inf-ptrace.c (inf_ptrace_xfer_partial):
15898 * inf-ttrace.c (inf_ttrace_xfer_partial):
15899 * linux-nat.c (linux_xfer_siginfo): Likewise.
15900 (linux_nat_xfer_partial): Likewise.
15901 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15902 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15903 * monitor.c (monitor_xfer_memory): Likewise.
15904 (monitor_xfer_partial): Likewise.
15905 * procfs.c (procfs_xfer_partial): Likewise.
15906 * record-full.c (record_full_xfer_partial): Likewise.
15907 (record_full_core_xfer_partial): Likewise.
15908 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15909 instead of plongest.
15910 (gdbsim_xfer_partial): Likewise.
15911 * remote.c (remote_xfer_partial): Likewise.
15912 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15913 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15914 declaration.
15915 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15916 (rs6000_xfer_shared_libraries): Likewise.
15917 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15918 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15919 (sparc_xfer_partial): Likewise.
15920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15921 (spu_xfer_partial): Likewise.
15922 * spu-multiarch.c (spu_xfer_partial): Likewise.
15923 * target.c (target_read_live_memory): Likewise.
15924 (memory_xfer_live_readonly_partial): Likewise.
15925 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15926 (target_xfer_partial, default_xfer_partial): Likewise.
15927 (current_xfer_partial): Likewise.
15928 * tracepoint.c (tfile_xfer_partial): Likewise.
15929 * windows-nat.c (windows_xfer_memory): Likewise. Call
15930 pulongest instead of plongest.
15931 (windows_xfer_partial): Likewise.
15932 (windows_xfer_shared_libraries): Likewise.
15933
05804640
YQ
159342014-01-14 Yao Qi <yao@codesourcery.com>
15935
15936 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15937 target_xfer_partial_ftype.
15938
b5b08fb4
SC
159392014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15940
15941 PR python/15464
15942 PR python/16113
15943 * valops.c (value_struct_elt_bitpos): New function
15944 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15945 object to 'None' if the field name is an empty string ("").
15946 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15947 attribute to look for a field when 'name' is 'None'.
15948 (get_field_type): New function
15949
13aaf454
DE
159502014-01-13 Doug Evans <dje@google.com>
15951
15952 PR symtab/16426
15953 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15954 (try_open_dwop_file): Ditto.
15955 * gdb_bfd.c: #include "vec.h".
15956 (bfdp): New typedef.
15957 (struct gdb_bfd_data): New member included_bfds.
15958 (gdb_bfd_unref): Unref all included bfds.
15959 (gdb_bfd_record_inclusion): New function.
15960 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15961
c2cec97c
TT
159622014-01-13 Tom Tromey <tromey@redhat.com>
15963
15964 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15965
78e5999d
TT
159662014-01-13 Tom Tromey <tromey@redhat.com>
15967
15968 * defs.h (use_windows): Remove.
15969 * gdb.c (main): Update.
15970 * main.c (captured_main, gdb_main): Update.
15971 * main.h (struct captured_main_args) <use_windows>: Remove.
15972 * top.c (use_windows): Remove.
15973
f2052bbe
TT
159742014-01-13 Tom Tromey <tromey@redhat.com>
15975
15976 * defs.h (deprecated_flush_hook): Remove.
15977
fde4f8ed
JK
159782014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15979
15980 PR threads/16216
15981 * linux-thread-db.c (try_thread_db_load): Add parameter
15982 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15983 (try_thread_db_load_from_pdir_1): Move it there from here.
15984 (try_thread_db_load_from_sdir): Update caller.
15985 (try_thread_db_load_from_dir): Move it there from here.
15986
bdf61915
PP
159872014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15988
15989 * regformats/regdat.sh: Always rewrite the register file.
15990
f71e1a8d
PA
159912014-01-13 Pedro Alves <palves@redhat.com>
15992
15993 * Makefile.in (CHECK_HEADERS): New variable.
15994 (check-headers:): New rule.
15995
42c85435
TT
159962014-01-13 Tom Tromey <tromey@redhat.com>
15997
15998 * cli/cli-setshow.c (do_set_command): Update.
15999 * defs.h (deprecated_set_hook): Remove.
16000 * top.c (deprecated_set_hook): Remove.
16001
f8de5129
PA
160022014-01-13 Pedro Alves <palves@redhat.com>
16003
16004 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16005 the tracepoint if the PC is a pseudo-register.
16006
fc270c35
TT
160072014-01-13 Tom Tromey <tromey@redhat.com>
16008
16009 * defs.h (XCALLOC): Remove.
16010 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16011 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16012 * dwarf2loc.c (allocate_piece_closure): Likewise.
16013 * elfread.c (elf_symfile_segments): Likewise.
16014 (elf_symfile_segments): Likewise.
16015 * gdbtypes.c (copy_type_recursive): Likewise.
16016 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16017 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16018 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16019 XCALLOC.
16020 * mt-tdep.c (mt_gdbarch_init): Likewise.
16021 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16022 XCALLOC.
16023 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16024 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16025 * registry.c (registry_alloc_data): Likewise.
16026 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16027 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16028 * serial.c (serial_fdopen_ops): Likewise.
16029 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16030 XCALLOC.
16031 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16032 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16033 not XCALLOC.
16034
70ba0933
TT
160352014-01-13 Tom Tromey <tromey@redhat.com>
16036
16037 * defs.h (XMALLOC): Remove.
16038 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16039 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16040 * cli-out.c (struct ui_out *): Likewise.
16041 * cli/cli-dump.c (add_dump_command): Likewise.
16042 (add_dump_command): Likewise.
16043 * complaints.c (get_complaints): Likewise.
16044 (find_complaint): Likewise.
16045 * dwarf2-frame.c (execute_cfa_program): Likewise.
16046 * dwarf2read.c (abbrev_table_read_table): Likewise.
16047 * gdbarch.sh: Likewise.
16048 * gdbarch.c: Rebuild.
16049 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16050 * interps.c (interp_new): Likewise.
16051 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16052 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16053 * mi/mi-console.c (mi_console_file_new): Likewise.
16054 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16055 * mi/mi-out.c (mi_out_new): Likewise.
16056 * mi/mi-parse.c (mi_parse): Likewise.
16057 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16058 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16059 * observer.c (xalloc_observer_list_node): Likewise.
16060 * regcache.c (regcache_xmalloc_1): Likewise.
16061 * reggroups.c (reggroup_new): Likewise.
16062 (_initialize_reggroup): Likewise.
16063 * registry.c (register_data_with_cleanup): Likewise.
16064 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16065 * ser-base.c (serial_ttystate): Likewise.
16066 * ser-mingw.c (make_pipe_state): Likewise.
16067 * ser-pipe.c (pipe_open): Likewise.
16068 * serial.c (serial_open): Likewise.
16069 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16070 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16071 (tui_alloc_win_info): Likewise.
16072 (tui_add_content_elements): Likewise.
16073 * tui/tui-file.c (tui_file_new): Likewise.
16074 * tui/tui-out.c (tui_out_new): Likewise.
16075 * ui-file.c (mem_file_new): Likewise.
16076 * ui-out.c (push_level): Likewise.
16077 (make_cleanup_ui_out_end): Likewise.
16078 (append_header_to_list): Likewise.
16079 (ui_out_new): Likewise.
16080 * user-regs.c (user_reg_add_builtin): Likewise.
16081
41bf6aca
TT
160822014-01-13 Tom Tromey <tromey@redhat.com>
16083
16084 * defs.h (XZALLOC): Remove.
16085 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16086 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16087 (get_ada_tasks_inferior_data): Likewise.
16088 * auto-load.c (get_auto_load_pspace_data): Likewise.
16089 * auxv.c (get_auxv_inferior_data): Likewise.
16090 * bfd-target.c (target_bfd_reopen): Likewise.
16091 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16092 (deprecated_insert_raw_breakpoint): Likewise.
16093 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16094 * corelow.c (core_open): Likewise.
16095 * darwin-nat.c (darwin_check_new_threads): Likewise.
16096 (darwin_attach_pid): Likewise.
16097 * dummy-frame.c (dummy_frame_push): Likewise.
16098 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16099 * dwarf2loc.c (allocate_piece_closure): Likewise.
16100 * elfread.c (elf_symfile_segments): Likewise.
16101 * eval.c (ptrmath_type_p): Likewise.
16102 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16103 * gdbtypes.c (alloc_type_arch): Likewise.
16104 (alloc_type_instance): Likewise.
16105 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16106 * inf-child.c (inf_child_can_use_agent): Likewise.
16107 * inflow.c (get_inflow_inferior_data): Likewise.
16108 * infrun.c (save_infcall_suspend_state): Likewise.
16109 * jit.c (jit_reader_load): Likewise.
16110 (get_jit_objfile_data): Likewise.
16111 (get_jit_program_space_data): Likewise.
16112 (jit_object_open_impl): Likewise.
16113 (jit_symtab_open_impl): Likewise.
16114 (jit_block_open_impl): Likewise.
16115 (jit_frame_sniffer): Likewise.
16116 * linux-fork.c (add_fork): Likewise.
16117 * maint.c (make_command_stats_cleanup): Likewise.
16118 * objfiles.c (get_objfile_pspace_data): Likewise.
16119 * opencl-lang.c (struct lval_closure): Likewise.
16120 * osdata.c (osdata_start_osdata): Likewise.
16121 * progspace.c (new_address_space): Likewise.
16122 (add_program_space): Likewise.
16123 * remote-sim.c (get_sim_inferior_data): Likewise.
16124 * sh-tdep.c (sh_gdbarch_init): Likewise.
16125 * skip.c (Ignore): Likewise.
16126 (skip_delete_command): Likewise.
16127 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16128 (library_list_start_library): Likewise.
16129 (solib_aix_current_sos): Likewise.
16130 * solib-darwin.c (get_darwin_info): Likewise.
16131 (darwin_current_sos): Likewise.
16132 * solib-dsbt.c (get_dsbt_info): Likewise.
16133 * solib-ia64-hpux.c (new_so_list): Likewise.
16134 (ia64_hpux_get_solib_linkage_addr): Likewise.
16135 * solib-spu.c (append_ocl_sos): Likewise.
16136 (spu_current_sos): Likewise.
16137 * solib-svr4.c (get_svr4_info): Likewise.
16138 (svr4_keep_data_in_core): Likewise.
16139 (library_list_start_library): Likewise.
16140 (svr4_default_sos): Likewise.
16141 (svr4_read_so_list): Likewise.
16142 * solib-target.c (library_list_start_library): Likewise.
16143 (solib_target_current_sos): Likewise.
16144 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16145 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16146 * symfile.c (default_symfile_segments): Likewise.
16147 * target-descriptions.c (tdesc_data_init): Likewise.
16148 (tdesc_create_reg): Likewise.
16149 (struct tdesc_type *): Likewise.
16150 (tdesc_create_vector): Likewise.
16151 (tdesc_set_struct_size): Likewise.
16152 (struct tdesc_type *): Likewise.
16153 (tdesc_free_feature): Likewise.
16154 (tdesc_create_feature): Likewise.
16155 * windows-nat.c (windows_add_thread): Likewise.
16156 (windows_make_so): Likewise.
16157 * xml-support.c (gdb_xml_body_text): Likewise.
16158 (gdb_xml_create_parser_and_cleanup): Likewise.
16159 (xml_process_xincludes): Likewise.
16160 * xml-syscall.c (allocate_syscalls_info): Likewise.
16161 (syscall_create_syscall_desc): Likewise.
16162
5acfdbae
SDJ
161632014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16164
16165 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16166 function, with code from i386_stap_parse_special_token.
16167 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16168 (i386_stap_parse_special_token): Move code to the two functions
16169 above; simplify it.
16170
0000e5cc
PA
161712014-01-09 Pedro Alves <palves@redhat.com>
16172 Hui Zhu <hui@codesourcery.com>
16173
16174 PR gdb/16101
16175 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16176 bp_err_string. Don't mark the location shlib_disabled if the
16177 error thrown wasn't a generic or memory error. Catch errors
16178 thrown while inserting breakpoints in overlayed code. Output
16179 error message of software breakpoints.
16180 * remote.c (remote_insert_breakpoint): If this breakpoint has
16181 target-side commands but this stub doesn't support Z0 packets,
16182 throw NOT_SUPPORTED_ERROR error.
16183 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16184 * target.h (target_insert_breakpoint): Extend comment.
16185 (target_insert_hw_breakpoint): Add comment.
16186
b7ea362b
PA
161872014-01-08 Pedro Alves <palves@redhat.com>
16188
16189 * remote.c (remote_add_thread): Add threads silently if starting
16190 up.
16191 (remote_notice_new_inferior): If in all-stop, and starting up,
16192 don't call notice_new_inferior.
16193 (get_current_thread): New function, factored out from ...
16194 (add_current_inferior_and_thread): ... this. Adjust.
16195 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16196 found any thread, then select the remote's current thread as GDB's
16197 current thread too.
16198
b7bba001
JB
161992014-01-08 Joel Brobecker <brobecker@adacore.com>
16200
16201 * NEWS: Create a new section for the next release branch.
16202 Rename the section of the current branch, now that it has
16203 been cut.
16204
16dfbded
JB
162052014-01-08 Joel Brobecker <brobecker@adacore.com>
16206
16207 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16208 * version.in: Bump version to 7.7.50.DATE-cvs.
16209
22c90ac1
YQ
162102014-01-08 Yao Qi <yao@codesourcery.com>
16211
16212 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16213 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16214 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16215
d64ad97c
YQ
162162014-01-08 Yao Qi <yao@codesourcery.com>
16217
16218 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16219 return value of bfd_get_filename to symbol_file_add_from_bfd.
16220
f93ba80c
PM
162212014-01-08 Pierre Muller <muller@sourceware.org>
16222
16223 Fix PR16201.
16224 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16225 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16226 to prim_record_mininal_symbol_and_info.
16227 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16228 in call to prim_record_minimal_symbol_and_info.
16229 (read_pe_exported_syms): Set index field of section_data.
16230
a4d9ba85
AP
162312014-01-07 Andrew Pinski <apinski@cavium.com>
16232
16233 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16234 * features/aarch64.c: Regenerate.
16235
1b67eb02
AS
162362014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16237
16238 * target.c (return_null): Define.
16239 (update_current_target): Use it instead of return_zero for
16240 functions that return a pointer.
16241
5e3f4fab
EBM
162422014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16243
16244 * source.c (add_path): Fix check for duplicated paths in the previously
16245 included paths.
16246
e2616788
HK
162472014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16248
16249 * ada-lang.c: Remove duplicated include statements.
16250 * alphabsd-nat.c: Ditto.
16251 * amd64-darwin-tdep.c: Ditto.
16252 * amd64fbsd-nat.c: Ditto.
16253 * auto-load.c: Ditto.
16254 * ax-gdb.c: Ditto.
16255 * breakpoint.c: Ditto.
16256 * dbxread.c: Ditto.
16257 * fork-child.c: Ditto.
16258 * gdb_usleep.c: Ditto.
16259 * i386-darwin-tdep.c: Ditto.
16260 * i386fbsd-nat.c: Ditto.
16261 * infcmd.c: Ditto.
16262 * inferior.c: Ditto.
16263 * jv-lang.c: Ditto.
16264 * linux-nat.c: Ditto.
16265 * linux-tdep.c: Ditto.
16266 * m68kbsd-nat.c: Ditto.
16267 * m68klinux-nat.c: Ditto.
16268 * microblaze-tdep.c: Ditto.
16269 * mips-linux-tdep.c: Ditto.
16270 * mn10300-tdep.c: Ditto.
16271 * nto-tdep.c: Ditto.
16272 * opencl-lang.c: Ditto.
16273 * osdata.c: Ditto.
16274 * printcmd.c: Ditto.
16275 * regcache.c: Ditto.
16276 * remote-m32r-sdi.c: Ditto.
16277 * remote.c: Ditto.
16278 * symfile.c: Ditto.
16279 * symtab.c: Ditto.
16280 * tilegx-linux-nat.c: Ditto.
16281 * tilegx-tdep.c: Ditto.
16282 * tracepoint.c: Ditto.
16283 * valops.c: Ditto.
16284 * vaxbsd-nat.c: Ditto.
16285 * windows-nat.c: Ditto.
16286 * xtensa-tdep.c: Ditto.
16287
bd1f7788
YQ
162882014-01-07 Yao Qi <yao@codesourcery.com>
16289
16290 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16291
79301218
JB
162922014-01-07 Yao Qi <yao@codesourcery.com>
16293 Joel Brobecker <brobecker@adacore.com>
16294
16295 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16296 (pdc_write_regs): Likewise.
16297 (fetch_regs_kernel_thread): Likewise.
16298 (store_regs_kernel_thread): Likewise.
16299
163002014-01-07 Joel Brobecker <brobecker@adacore.com>
16301
16302 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16303 tagged type objects to their actual type.
16304
8e355c5d
JB
163052014-01-07 Joel Brobecker <brobecker@adacore.com>
16306
16307 * ada-valprint.c (print_field_values): Add "language" parameter.
16308 Update calls to print_field_values and print_variant_part.
16309 Pass new parameter "language" in call to val_print instead
16310 of "current_language". Replace call to ada_val_print by call
16311 to val_print.
16312 (print_variant_part): Add "language" parameter.
16313 (ada_val_print_struct_union): Update call to print_field_values.
16314
4fbf5aa5
JB
163152014-01-07 Joel Brobecker <brobecker@adacore.com>
16316
16317 * ada-valprint.c (ui_memcpy): Delete.
16318 (ada_print_floating): Update documentation. Add empty line
16319 between between function documentation and implementation.
16320 Delete variable "buffer". Use ui_file_xstrdup in place of
16321 ui_file_put. Minor adjustments following this change.
16322
71855601
JB
163232014-01-07 Joel Brobecker <brobecker@adacore.com>
16324
16325 * ada-valprint.c (ada_val_print_string): New function,
16326 extracted from ada_val_print_array.
16327 (ada_val_print_array): Replace extracted code by call
16328 to ada_val_print_string followed by a return. Move
16329 "else" branch to the function's top block.
16330
4eb27a30
JB
163312014-01-07 Joel Brobecker <brobecker@adacore.com>
16332
16333 * ada-valprint.c (ada_val_print_array): Move implementation
16334 down. Rename parameter "offset" and "val" into "offset_aligned"
16335 and "original_value" respectively. Add parameter "offset".
16336
34b27950
JB
163372014-01-07 Joel Brobecker <brobecker@adacore.com>
16338
16339 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16340 re-organizing the code. Change the "???" message printed
16341 when target type is a TYPE_CODE_UNDEF into
16342 "<ref to undefined type>".
16343
079e4591
JB
163442014-01-07 Joel Brobecker <brobecker@adacore.com>
16345
16346 * ada-valprint.c (print_record): Delete, implementation inlined...
16347 (ada_val_print_struct_union): ... here. Remove call to
16348 ada_check_typedef in inlined implementation.
16349
8004dfd1
JB
163502014-01-07 Joel Brobecker <brobecker@adacore.com>
16351
16352 * ada-valprint.c (ada_val_print_gnat_array): New function,
16353 extracted from ada_val_print_1;
16354 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16355 (ada_val_print_flt, ada_val_print_struct_union)
16356 (ada_val_print_ref): Likewise.
16357 (ada_val_print_1): Delete variables i and elttype.
16358 Replace extracted-out code by call to corresponding
16359 new functions.
16360
760a2db0
JB
163612014-01-07 Joel Brobecker <brobecker@adacore.com>
16362
16363 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16364
3a92c861
JB
163652014-01-07 Joel Brobecker <brobecker@adacore.com>
16366
16367 * ada-valprint.c (ada_val_print_1): Replace calls to
16368 ada_val_print_1 by calls to val_print.
16369
cd1630f9
JB
163702014-01-07 Joel Brobecker <brobecker@adacore.com>
16371
16372 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16373 Update calls to self accordingly. Replace calls to c_val_print
16374 by calls to val_print.
16375
bdf779a0
JB
163762014-01-07 Joel Brobecker <brobecker@adacore.com>
16377
16378 * ada-valprint.c (print_record): Delete declaration.
16379 (adjust_type_signedness, ada_val_print_1): Likewise.
16380 (ada_val_print): Move function implementation down.
16381 (print_variant_part, print_field_values, print_record):
16382 Move function implementation up.
16383
c0d48811
JB
163842014-01-07 Joel Brobecker <brobecker@adacore.com>
16385
16386 * python/py-type.c (typy_get_name): New function.
16387 (type_object_getset): Add entry for attribute "name".
16388 * NEWS: Add entry mentioning this new attribute.
16389
c26e9cbb
YQ
163902014-01-07 Yao Qi <yao@codesourcery.com>
16391
16392 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16393 statement.
16394
0cc6f43d
YQ
163952014-01-07 Yao Qi <yao@codesourcery.com>
16396
16397 * gnu-nat.c (info_port_rights): Add qualifier const to
16398 argument args.
16399
eec03155
YQ
164002014-01-07 Yao Qi <yao@codesourcery.com>
16401
16402 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16403
f04a82ef
YQ
164042014-01-07 Yao Qi <yao@codesourcery.com>
16405
16406 * gnu-nat.c (make_inf) Update declaration.
16407 (make_inf): Make it static.
16408 (inf_set_traced): Likewise.
16409 (inf_port_to_thread, inf_task_died_status): Likewise.
16410
d57dda0a
YQ
164112014-01-07 Yao Qi <yao@codesourcery.com>
16412
16413 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16414
3aa8c969
YQ
164152014-01-07 Yao Qi <yao@codesourcery.com>
16416
16417 * gnu-nat.c (_initialize_gnu_nat): Declare.
16418
94123b4f
YQ
164192014-01-07 Yao Qi <yao@codesourcery.com>
16420
16421 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16422 'enum bfd_endian'.
16423 (struct gdbarch_info) <byte_order>: Change type to
16424 'enum bfd_endian'.
16425 <byte_order_for_code>: Likewise.
16426 * gdbarch.c, gdbarch.h: Regenerated.
16427
dc81d70a
TT
164282014-01-06 Sasha Smundak <asmundak@google.com>
16429
16430 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16431
cc2f3c35
TT
164322014-01-06 Tom Tromey <tromey@redhat.com>
16433
16434 * doublest.c (convert_doublest_to_floatformat): Use const, not
16435 CONST.
16436 * somread.c (som_symtab_read): Likewise.
16437
adcf2eed
HZ
164382014-01-07 Hui Zhu <hui@codesourcery.com>
16439
16440 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16441 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16442 (gdb_bfd_fopen): Ditto.
16443 (gdb_bfd_openr): Ditto.
16444 (gdb_bfd_openw): Ditto.
16445 (gdb_bfd_openr_iovec): Ditto.
16446 (gdb_bfd_fdopenr): Ditto.
16447 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16448 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16449 with xstrdup.
16450 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16451 with xstrdup.
16452 * symfile-mem.c (symbol_file_add_from_memory): Removed
16453 gdb_bfd_stash_filename.
16454
50722198
DE
164552014-01-03 Doug Evans <dje@google.com>
16456
16457 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16458 output.
16459
2fa4b862
JB
164602014-01-01 Joel Brobecker <brobecker@adacore.com>
16461
16462 Update year range in copyright notice of all files.
16463
28498c42
JB
164642014-01-01 Joel Brobecker <brobecker@adacore.com>
16465
16466 * top.c (print_gdb_version): Set copyright year to 2014.
16467
7b6e1046
JB
164682014-01-01 Joel Brobecker <brobecker@adacore.com>
16469
16470 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16471
df96af55 16472For older changes see ChangeLog-2013.
c906108c
SS
16473\f
16474Local Variables:
16475mode: change-log
16476left-margin: 8
16477fill-column: 74
16478version-control: never
57da7796 16479coding: utf-8
c906108c 16480End:
This page took 2.371711 seconds and 4 git commands to generate.