MIPS SDE OS ABI support
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bb7e3f4d
YQ
12014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
2 Nigel Stephens <nigel@mips.com>
3 Chris Dearman <chris@mips.com>
4 Luis Machado <lgustavo@codesourcery.com>
5
6 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
7 (ALLDEPFILES): Add mips-sde-tdep.c.
8 * mips-sde-tdep.c: New file containg SDE specific code.
9 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
10 gdb_target_obs.
11 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
12 * osabi.c (gdb_osabi_names): Add SDE.
13 * NEWS: Mention the change.
14
db7a9bcd
SM
152014-12-18 Simon Marchi <simon.marchi@ericsson.com>
16
17 * elfread.c (elf_symfile_init): Remove stale comment.
18 (elf_symfile_read): Same.
19 * symfile.h (struct sym_fns): Same.
20
1bab7383
YQ
212014-12-18 Nigel Stephens <nigel@mips.com>
22 Maciej W. Rozycki <macro@codesourcery.com>
23
24 * mips-tdep.c (print_fpu_flags): New function.
25 (mips_print_float_info): Likewise.
26 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
27 print_float_info routine.
28
cc86d1cb
YQ
292014-12-18 Yao Qi <yao@codesourcery.com>
30
31 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
32 * gdbarch.c: Re-generated.
33 * gdbarch.h: Likewise.
34 * infcmd.c (default_print_float_info): New function.
35 (print_float_info): Removed. Move code to
36 default_print_float_info.
37 (float_info): Adjust to call gdbarch_print_float_info.
38 * inferior.h (default_print_float_info): Declare it.
39
2ad47ec4
YQ
402014-12-18 Yao Qi <yao@codesourcery.com>
41
42 * h8300-tdep.c (h8300_print_float_info): Remove.
43 (h8300_gdbarch_init): Remove the call to
44 set_gdbarch_print_float_info.
45
253342b8
DE
462014-12-18 Doug Evans <xdje42@gmail.com>
47
48 * infcmd.c (jump_command): Minor simplification.
49
46b0da17
DE
502014-12-18 Doug Evans <xdje42@gmail.com>
51
52 * language.c (language_lookup_primitive_type): Renamed from
53 language_lookup_primitive_type_by_name. All callers updated.
54
1bc1068a
JK
552014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 Fix MinGW compilation.
58 * compile/compile.c (get_compile_file_tempdir): Call error if
59 !HAVE_MKDTEMP.
60 * config.in: Regenerate.
61 * configure: Regenerate.
62 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
63
5e3c72e6
DE
642014-12-17 Doug Evans <xdje42@gmail.com>
65
66 * valops.c (value_maybe_namespace_elt): Remove redundant call to
67 lookup_static_symbol.
68
cc485e62
DE
692014-12-17 Doug Evans <xdje42@gmail.com>
70
71 New parameter "debug symbol-lookup".
72 * NEWS: Mention it.
73 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
74 output.
75 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
76 (cp_lookup_nested_symbol): Ditto.
77 * language.c (language_lookup_primitive_type_by_name): Add debug
78 output.
79 * minsyms.c (lookup_minimal_symbol): Add debug output.
80 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
81 * symfile-debug.c (debug_objfile_name): ... from here. All callers
82 updated.
83 * objfiles.h (objfile_debug_name): Declare.
84 * symtab.h (symbol_lookup_debug): Declare.
85 * symtab.c (symbol_lookup_debug): New global.
86 (lookup_language_this): Add debug output.
87 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
88 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
89 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
90 (_initialize_symtab): Add new parameter "debug symbol-lookup".
91
0ab9ce85
DE
922014-12-16 Doug Evans <xdje42@gmail.com>
93
94 * buildsym.c: Add comments describing how the buildsym machinery
95 is used by the various file formats.
96 (really_free_pendings): Enhance function comment.
97 See pending_macros to NULL. Simplify resetting pending_addrmap.
98 Call free_buildsym_compunit.
99 (free_buildsym_compunit): Set current_subfile to NULL.
100 (prepare_for_building): New function.
101 (start_symtab): Call it. Remove call to set_last_source_file.
102 (restart_symtab): New arg "cust". All callers updated.
103 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
104 (reset_symtab_globals): Enhance function comment.
105 Set local_symbols, file_symbols, global_symbols to NULL.
106 Set pending_macros to NULL. Simplify resetting pending_addrmap.
107 Call free_buildysym_compunit.
108 (end_symtab_without_blockvector): Delete. All callers updated.
109 (end_symtab_with_blockvector): Remove redundant call to
110 free_buildsym_compunit.
111 (augment_type_symtab): Remove arg "cust". All callers updated.
112 (buildsym_init): Remove resetting of free_pendings, file_symbols,
113 global_symbols, pending_blocks, pending_macros. Instead make
114 handling consistent with pending_addrmap: Assert value was reset
115 at end of previous symtab building. Initialize context_stack here.
116
55accf4a
DE
1172014-12-16 Doug Evans <xdje42@gmail.com>
118
119 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
120 cp_lookup_symbol_imports. All callers updated.
121
a07e3e18
DE
1222014-12-16 Doug Evans <xdje42@gmail.com>
123
124 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
125 find_type_baseclass_by_name. All callers updated.
126
d01060f0
DE
1272014-12-16 Doug Evans <xdje42@gmail.com>
128
129 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
130 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
131 (print_symbol_info): Delete arg symtab. All callers updated.
132 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
133
25dda427
AA
1342014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
135
136 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
137 "Name" columns. Assure that the output is always indented.
138
beed38b8
JB
1392014-12-16 Joel Brobecker <brobecker@adacore.com>
140
141 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
142 already defined.
143 (linux_enable_event_reporting): Add parameter "attached".
144 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
145 declaration. New function.
146 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
147 (linux_enable_event_reporting): Add new parameter "attached".
148 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
149 nonzero.
150 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
151 Use it. Update function description.
152 (linux_child_post_attach, linux_child_post_startup_inferior):
153 Update call to linux_enable_event_reporting.
154
8fda9068
YQ
1552014-12-16 Yao Qi <yao@codesourcery.com>
156
157 * NEWS: Move some entries to "Changes since GDB 7.8" section.
158
2a546367
YQ
1592014-12-16 Yao Qi <yao@codesourcery.com>
160
161 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
162 ARG_LAST.
163
c9657e70
SM
1642014-12-15 Simon Marchi <simon.marchi@ericsson.com>
165
166 * inferior.c (find_inferior_ptid): New function.
167 * inferior.h (find_inferior_ptid): New declaration.
168 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
169 * corelow.c (core_pid_to_str): Same.
170 * darwin-nat.c (darwin_resume): Same.
171 * infrun.c (fetch_inferior_event): Same.
172 (get_inferior_stop_soon): Same.
173 (handle_inferior_event): Same.
174 (handle_signal_stop): Same.
175 * linux-nat.c (resume_lwp): Same.
176 (stop_wait_callback): Same.
177 * mi/mi-interp.c (mi_new_thread): Same.
178 (mi_thread_exit): Same.
179 * proc-service.c (ps_pglobal_lookup): Same.
180 * record-btrace.c (record_btrace_step_thread): Same.
181 * remote-sim.c (gdbsim_close_inferior): Same.
182 (gdbsim_resume): Same.
183 (gdbsim_stop): Same.
184 * sol2-tdep.c (sol2_core_pid_to_str): Same.
185 * target.c (memory_xfer_partial_1): Same.
186 (default_thread_address_space): Same.
187 * thread.c (thread_change_ptid): Same.
188 (switch_to_thread): Same.
189 (do_restore_current_thread_cleanup): Same.
190
38bcc89d
SM
1912014-12-15 Simon Marchi <simon.marchi@ericsson.com>
192
193 * defs.h (gdb_readline): Constify argument.
194 (gdb_readline_wrapper): Same.
195 (command_line_input): Same.
196 (deprecated_readline_hook): Same.
197 * top.c (deprecated_readline_hook): Same.
198 (gdb_readline): Same.
199 (gdb_readline_wrapper): Same.
200 (command_line_input): Constify argument. Pass prompt_arg to called
201 functions instead of local_prompt, overwriting prompt_arg if necessary.
202 * event-top.h (display_gdb_prompt): Constify argument.
203 * event-top.c (display_gdb_prompt): Same.
204 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
205 if building with Python 3.4 and up.
206
89ed8ea1
SM
2072014-12-15 Simon Marchi <simon.marchi@ericsson.com>
208
209 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
210 os.getcwdu().
211
aacd3e8c
CU
2122014-12-15 Catalin Udma <catalin.udma@freescale.com>
213
214 PR gdb/15684
215 * memattr.c (mem_info_command): Remove "unsigned long" casts.
216
dc4d6886
DE
2172014-12-13 Doug Evans <xdje42@gmail.com>
218
219 * utils.c (make_hex_string): Fix off-by-one error.
220
c1b5a1a6
JB
2212014-12-13 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-lang.h (ada_ensure_varsize_limit): Declare.
224 * ada-lang.c (check_size): Remove advance declaration.
225 (ada_ensure_varsize_limit): Renames check_size.
226 Replace calls to check_size by calls to ada_ensure_varsize_limit
227 throughout.
228 * ada-valprint.c (ada_val_print_ref): Add call to
229 ada_ensure_varsize_limit. Add comment explaining why.
230
3c46a02f
JB
2312014-12-13 Joel Brobecker <brobecker@adacore.com>
232
233 * utils.c (make_hex_string): Replace use of sprintf by use of
234 xsnprintf.
235
8e8347b8
JB
2362014-12-13 Joel Brobecker <brobecker@adacore.com>
237
238 * compile/compile-object-load.c (link_callbacks_multiple_definition)
239 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
240 newline at end of warning message.
241
f93b65a0
JB
2422014-12-13 Joel Brobecker <brobecker@adacore.com>
243
244 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
245 new "EXTRA-ARGS" parameter.
246 * configure.ac: If large-file support is disabled in GDB,
247 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
248 * configure: Regenerate.
249
5537b577
JK
2502014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
251
252 PR symtab/17642
253 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
254 TYPE if not TYPE_CODE_TYPEDEF.
255
e0782980
JB
2562014-12-13 Joel Brobecker <brobecker@adacore.com>
257
258 PR backtrace/16215:
259 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
260 the frame unwinder must either be the dwarf2_frame_unwind
261 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
262 stack_addr is valid before calling get_frame_base. Throw
263 an error if not valid.
264
ae6a105d
DE
2652014-12-12 Doug Evans <xdje42@gmail.com>
266
267 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
268 result != NULL.
269
59da4d04
DE
2702014-12-12 Doug Evans <xdje42@gmail.com>
271
272 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
273 All callers updated. Rename arg "namespace" to "symbol_name".
274
83827540
DE
2752014-12-12 Doug Evans <xdje42@gmail.com>
276
277 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
278 partial_map_symtabs_matching_filename. All uses updated.
279 (psym_find_pc_sect_compunit_symtab): Renamed from
280 find_pc_sect_compunit_symtab_from_partial. All uses updated.
281 Add function comment.
282 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
283 All uses updated. Add function comment.
284 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
285 Add function comment.
286 (psym_find_last_source_symtab): Renamed from
287 find_last_source_symtab_from_partial. All uses updated.
288 Add function comment.
289 (psym_forget_cached_source_info): Renamed from
290 forget_cached_source_info_partial. All uses updated.
291 Add function comment.
292 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
293 All uses updated. Add function comment.
294 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
295 updated. Add function comment.
296 (psym_expand_symtabs_for_function): Renamed from
297 read_symtabs_for_function. All uses updated. Update function comment.
298 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
299 All uses updated. Add function comment.
300 (psym_expand_symtabs_with_fullname): Renamed from
301 read_psymtabs_with_fullname. All uses updated. Add function comment.
302 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
303 All uses updated. Add function comment.
304 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
305 All uses updated.
306 (psym_expand_symtabs_matching): Renamed from
307 expand_symtabs_matching_via_partial. All uses updated.
308 Add function comment.
309 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
310 Add function comment.
311
bb2ec1b3
TT
3122014-12-12 Phil Muldoon <pmuldoon@redhat.com>
313 Jan Kratochvil <jan.kratochvil@redhat.com>
314 Tom Tromey <tromey@redhat.com>
315
316 * NEWS: Update.
317 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
318 field.
319 * p-lang.c (pascal_language_defn): Update.
320 * opencl-lang.c (opencl_language_defn): Update.
321 * objc-lang.c (objc_language_defn): Update.
322 * m2-lang.c (m2_language_defn): Update.
323 * language.h (struct language_defn) <la_get_compile_instance,
324 la_compute_program>: New fields.
325 * language.c (unknown_language_defn, auto_language_defn)
326 (local_language_defn): Update.
327 * jv-lang.c (java_language_defn): Update.
328 * go-lang.c (go_language_defn): Update.
329 * f-lang.c (f_language_defn): Update.
330 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
331 * dwarf2loc.c (dwarf2_compile_property_to_c)
332 (locexpr_generate_c_location, loclist_generate_c_location): New
333 functions.
334 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
335 * defs.h (enum compile_i_scope_types): New.
336 (enum command_control_type) <compile_control>: New constant.
337 (struct command_line) <control_u>: New field.
338 * d-lang.c (d_language_defn): Update.
339 * compile/compile.c: New file.
340 * compile/compile-c-support.c: New file.
341 * compile/compile-c-symbols.c: New file.
342 * compile/compile-c-types.c: New file.
343 * compile/compile.h: New file.
344 * compile/compile-internal.h: New file.
345 * compile/compile-loc2c.c: New file.
346 * compile/compile-object-load.c: New file.
347 * compile/compile-object-load.h: New file.
348 * compile/compile-object-run.c: New file.
349 * compile/compile-object-run.h: New file.
350 * cli/cli-script.c (multi_line_command_p, print_command_lines)
351 (execute_control_command, process_next_line)
352 (recurse_read_control_structure): Handle compile_control.
353 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
354 * c-lang.c (c_language_defn, cplus_language_defn)
355 (asm_language_defn, minimal_language_defn): Update.
356 * ada-lang.c (ada_language_defn): Update.
357 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
358 New variables.
359 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
360 (HFILES_NO_SRCDIR): Add compile.h.
361 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
362 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
363 (compile.o, compile-c-types.o, compile-c-symbols.o)
364 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
365 (compile-c-support.o): New targets.
366
a2658feb
JK
3672014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
368
369 * s390-linux-tdep.c (s390_gcc_target_options): New function.
370 (s390_gdbarch_init): Add it to gdbarch.
371
3bc3cebe
JK
3722014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
373
374 * linux-tdep.c: Include objfiles.h and infcall.h.
375 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
376 function.
377 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
378
d064d1be
JK
3792014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
382 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
383 translate_register. Now public.
384 (dwarf2_compile_expr_to_ax): Update.
385
af945b75
TT
3862014-12-12 Tom Tromey <tromey@redhat.com>
387 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
390 (dwarf_expr_frame_base): Update caller.
391 (dwarf_expr_frame_base_1): Rename to ...
392 (func_get_frame_base_dwarf_block): ... this and make it public.
393 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
394 callers.
395 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
396
a8fd5589
TT
3972014-12-12 Tom Tromey <tromey@redhat.com>
398
399 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
400 Update.
401 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
402 dwarf2_compile_cfa_to_ax.
403 (dwarf2_compile_cfa_to_ax): Remove.
404 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
405 (dwarf2_compile_cfa_to_ax): Remove.
406
ed12ef62
JK
4072014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
408
409 * infcall.h (call_function_by_hand_dummy): Declare.
410 * infcall.c (call_function_by_hand): Use
411 call_function_by_hand_dummy.
412 (call_function_by_hand_dummy): Rename from call_function_by_hand.
413 Add arguments. Register a destructor.
414
ac04f72b
TT
4152014-12-12 Tom Tromey <tromey@redhat.com>
416 Jan Kratochvil <jan.kratochvil@redhat.com>
417
418 * osabi.h (osabi_triplet_regexp): Declare.
419 * osabi.c (struct osabi_names): New.
420 (gdb_osabi_names): Change type to struct osabi_names. Update
421 values.
422 (gdbarch_osabi_name): Update.
423 (osabi_triplet_regexp): New function.
424 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
425 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
426 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
427 set_gdbarch_gnu_triplet_regexp.
428 * gdbarch.sh (gnu_triplet_regexp): New method.
429 * gdbarch.c, gdbarch.h: Rebuild.
430 * arch-utils.h (default_gnu_triplet_regexp): Declare.
431 * arch-utils.c (default_gnu_triplet_regexp): New function.
432
f208eee0
JK
4332014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 * arch-utils.c (default_infcall_mmap)
436 (default_gcc_target_options): New functions.
437 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
438 (GDB_MMAP_PROT_EXEC): Define.
439 (default_infcall_mmap, default_gcc_target_options): Declare.
440 * gdbarch.h: Rebuild.
441 * gdbarch.c: Rebuild.
442 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
443
233a8fb3
JK
4442014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
447 fields.
448 (pop_dummy_frame): Call the destructor if it exists.
449 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
450 functions.
451 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
452 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
453
f1660027
TT
4542014-12-12 Tom Tromey <tromey@redhat.com>
455
456 * gdbtypes.h (make_unqualified_type): Declare.
457 * gdbtypes.c (make_unqualified_type): New function.
458
de571fc5
TT
4592014-12-12 Tom Tromey <tromey@redhat.com>
460
461 * ui-file.h (ui_file_write_for_put): Declare.
462 * ui-file.c (ui_file_write_for_put): New function.
463 * mi/mi-out.c (do_write): Remove.
464 (mi_out_put): Use ui_file_write_for_put.
465
6dddd6a5
DE
4662014-12-12 Doug Evans <dje@google.com>
467
468 * NEWS: Mention gdb.lookup_objfile.
469 * python/python.c (GdbMethods): Add lookup_objfile.
470 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
471 * python/py-objfile.c: #include "symtab.h".
472 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
473 (objfpy_lookup_objfile_by_name): New function.
474 (objfpy_lookup_objfile_by_build_id): New function.
475 (gdbpy_lookup_objfile): New function.
476
f161c171
MR
4772014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
478
479 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
480 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
481 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
482 macros.
483 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
484 Likewise.
485
71c24708
AA
4862014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
487
488 * completer.c: Include "target.h", "reggroups.h", and
489 "user-regs.h".
490 (reg_or_group_completer): New.
491 * completer.h (reg_or_group_completer): Declare.
492 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
493 the "info registers" and "info all-registers" commands and the
494 dbx-mode "lr" command.
495
f5b95c01
AA
4962014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
497
498 * user-regs.c: Include "arch-utils.h", "command.h", and
499 "cli/cli-cmds.h".
500 (maintenance_print_user_registers): New.
501 (_initialize_user_regs): Register new "maint print user-registers"
502 subcommand.
503 * NEWS: Mention new GDB command "maint print user-registers".
504
3e29f34a
MR
5052014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
506 Maciej W. Rozycki <macro@mips.com>
507 Pedro Alves <pedro@codesourcery.com>
508
509 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
510 remove `predefault' and `invalid_p' initializers.
511 (make_symbol_special): New architecture method.
512 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
513 (objfile, symbol): New declarations.
514 * arch-utils.h (default_elf_make_msymbol_special): Remove
515 prototype.
516 (default_make_symbol_special): New prototype.
517 (default_adjust_dwarf2_addr): Likewise.
518 (default_adjust_dwarf2_line): Likewise.
519 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
520 * arch-utils.c (default_elf_make_msymbol_special): Remove
521 function.
522 (default_make_symbol_special): New function.
523 (default_adjust_dwarf2_addr): Likewise.
524 (default_adjust_dwarf2_line): Likewise.
525 * dwarf2-frame.c (decode_frame_entry_1): Call
526 `gdbarch_adjust_dwarf2_addr'.
527 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
528 * dwarf2read.c (create_addrmap_from_index): Likewise.
529 (process_psymtab_comp_unit_reader): Likewise.
530 (add_partial_symbol): Likewise.
531 (add_partial_subprogram): Likewise.
532 (process_full_comp_unit): Likewise.
533 (read_file_scope): Likewise.
534 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
535 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
536 (read_call_site_scope): Likewise.
537 (dwarf2_ranges_read): Likewise.
538 (dwarf2_record_block_ranges): Likewise.
539 (read_attribute_value): Likewise.
540 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
541 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
542 * elfread.c (elf_symtab_read): Don't call
543 `gdbarch_elf_make_msymbol_special' if unset.
544 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
545 the ISA bit from the PC.
546 * mips-tdep.c (mips_unmake_compact_addr): New function.
547 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
548 address appropriately.
549 (mips_make_symbol_special): New function.
550 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
551 (mips_pc_is_mips16): Likewise.
552 (mips_pc_is_micromips): Likewise.
553 (mips_pc_isa): Likewise.
554 (mips_adjust_dwarf2_addr): New function.
555 (mips_adjust_dwarf2_line): Likewise.
556 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
557 (mips_addr_bits_remove): Likewise.
558 (mips_skip_trampoline_code): Likewise.
559 (mips_write_pc): Don't set the ISA bit.
560 (mips_eabi_push_dummy_call): Likewise.
561 (mips_o64_push_dummy_call): Likewise.
562 (mips_gdbarch_init): Install `mips_make_symbol_special',
563 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
564 handlers.
565 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
566 target-specific symbol address adjustments.
567 * gdbarch.h: Regenerate.
568 * gdbarch.c: Regenerate.
569
21daaaaf
YQ
5702014-12-12 Yao Qi <yao@codesourcery.com>
571
572 PR tdep/14261
573 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
574 'skip_pc'. Remove code skipping prologue instructions, use
575 arm_analyze_prologue instead.
576 (arm_analyze_prologue): Stop the scanning for unrecognized
577 instruction when skipping prologue.
578
f303bc3e
YQ
5792014-12-12 Yao Qi <yao@codesourcery.com>
580
581 * arm-tdep.c (arm_instruction_restores_sp): New function.
582 (arm_analyze_prologue): Call arm_instruction_restores_sp.
583 (arm_in_function_epilogue_p): Move code to
584 arm_instruction_restores_sp.
585
05a6c3c8
DE
5862014-12-11 Doug Evans <xdje42@gmail.com>
587
588 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
589
fe2a438d
DE
5902014-12-11 Doug Evans <xdje42@gmail.com>
591
592 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
593 (symbol *lookup_symbol_via_quick_fns): Ditto.
594 (lookup_symbol_in_objfile): Add forward decl.
595 (lookup_global_symbol_from_objfile): Simplify, call
596 lookup_symbol_in_objfile.
597
540feddf
DE
5982014-12-11 Doug Evans <xdje42@gmail.com>
599
600 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
601
fc126975
SM
6022014-12-10 Simon Marchi <simon.marchi@ericsson.com>
603
604 PR breakpoints/17012
605 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
606 it is marked as persistent.
607
56286edf
DE
6082014-12-10 Doug Evans <xdje42@gmail.com>
609
610 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
611 closer to its subroutines.
612
34ef8452
DE
6132014-12-10 Doug Evans <xdje42@gmail.com>
614
615 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
616
9a80057a
DE
6172014-12-10 Doug Evans <xdje42@gmail.com>
618
619 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 620 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 621
1abf3a14
SM
6222014-12-10 Simon Marchi <simon.marchi@ericsson.com>
623
624 PR gdb/17627
625 * target.c (cleanup_restore_target_terminal): New function.
626 (make_cleanup_restore_target_terminal): New function.
627 * target.h (make_cleanup_restore_target_terminal): New declaration.
628 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
629
d4d1e336
DE
6302014-12-08 Doug Evans <dje@google.com>
631
632 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
633
a0be3e44
DE
6342014-12-08 Doug Evans <dje@google.com>
635
636 * NEWS: Mention gdb.Objfile.owner.
637 * python/py-objfile.c (objfpy_get_owner): New function.
638 (objfile_getset): Add "owner".
639
6c1c7be3
JK
6402014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
641
642 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
643 (lookup_global_symbol_from_objfile): Call it.
644
efad9b6a
JK
6452014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
646
647 Remove const from struct objfile *.
648 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
649 symtab.c, symtab.h: In these files.
650
069bb7ec
AF
6512014-12-05 Andreas From <andreas.from@ericsson.com>
652
653 * MAINTAINERS (Write After Approval): Add "Andreas From"
654
642a8d80
DE
6552014-12-05 Doug Evans <xdje42@gmail.com>
656
657 Revert:
658 PR symtab/17602
659 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
660
86e4ed39
DE
6612014-12-04 Doug Evans <dje@google.com>
662
663 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
664 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
665 (objfile_getset): Add "add_separate_debug_file".
666
7c50a931
DE
6672014-12-04 Doug Evans <dje@google.com>
668
669 * NEWS: Mention gdb.Objfile.build_id.
670 * build-id.c (build_id_bfd_get): Make non-static.
671 * build-id.h (build_id_bfd_get): Add declaration.
672 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
673 (OBJFPY_REQUIRE_VALID): New macro.
674 (objfpy_get_build_id): New function.
675 (objfile_getset): Add "build_id".
676 * utils.c (make_hex_string): New function.
677 * utils.h (make_hex_string): Add declaration.
678
ba715d7f
JK
6792014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
680
681 * block.c (block_lookup_symbol_primary): New function.
682 * block.h (block_lookup_symbol_primary): New declaration.
683 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
684 Call block_lookup_symbol_primary.
685
858339f2
MR
6862014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
687
688 * tramp-frame.h (tramp_frame): Add `validate' member.
689 * tramp-frame.c (tramp_frame_start): Validate trampoline before
690 scanning.
691 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
692 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
693 (mips_linux_o32_sigframe): Initialize `validate' member.
694 (mips_linux_o32_rt_sigframe): Likewise.
695 (mips_linux_n32_rt_sigframe): Likewise.
696 (mips_linux_n64_rt_sigframe): Likewise.
697 (micromips_linux_o32_sigframe): New variable.
698 (micromips_linux_o32_rt_sigframe): Likewise.
699 (micromips_linux_n32_rt_sigframe): Likewise.
700 (micromips_linux_n64_rt_sigframe): Likewise.
701 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
702 (mips_linux_n32n64_sigframe_init): Likewise.
703 (mips_linux_sigframe_validate): New function.
704 (micromips_linux_sigframe_validate): Likewise.
705 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
706
ff1eb2b5
UW
7072014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
708
709 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
710 * sparc-sol2-tdep.c: Include "regset.h".
711 (sparc32_sol2_supply_core_gregset): New function.
712 (sparc32_sol2_collect_core_gregset): Likewise.
713 (sparc32_sol2_supply_core_fpregset): Likewise.
714 (sparc32_sol2_collect_core_fpregset): Likewise.
715 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
716 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
717 tdep->fpregset/sizeof_fpregset.
718 * sparc64-sol2-tdep.c: Include "regset.h".
719 (sparc64_sol2_supply_core_gregset): New function.
720 (sparc64_sol2_collect_core_gregset): Likewise.
721 (sparc64_sol2_supply_core_fpregset): Likewise.
722 (sparc64_sol2_collect_core_fpregset): Likewise.
723 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
724 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
725 tdep->fpregset/sizeof_fpregset.
726
75783939
SM
7272014-12-03 Simon Marchi <simon.marchi@ericsson.com>
728
729 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
730 type.
731
7c5fdd25
DE
7322014-12-02 Doug Evans <dje@google.com>
733
734 * symtab.c (symbol_init_cplus_specific): Delete.
735 (symbol_set_demangled_name): Remove special c++ support.
736 (symbol_get_demangled_name, symbol_set_language): Ditto.
737 * symtab.h (struct cplus_specific): Delete.
738 (struct general_symbol_info) <language_specific>: Remove
739 cplus_specific.
740
29f0c3b7
DE
7412014-12-02 Doug Evans <dje@google.com>
742
743 PR symtab/17602
744 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
745
72998fb3
DE
7462014-12-02 Doug Evans <dje@google.com>
747
748 PR symtab/17591
749 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
750 to strip parameters.
751
422b9917
DE
7522014-12-02 Doug Evans <dje@google.com>
753
754 * dwarf2read.c (peek_die_abbrev): Improve error message text.
755
47c6ee49
DE
7562014-12-02 Doug Evans <dje@google.com>
757
758 * valops.c (do_search_struct_field): Remove remnant of Chill support.
759 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
760
5da3ffc9
SM
7612014-12-02 Simon Marchi <simon.marchi@ericsson.com>
762
763 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
764
162078c8
NB
7652014-12-02 Nick Bull <nicholaspbull@gmail.com>
766
767 * NEWS: Mention new Python events.
768 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
769 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
770 (py-infevents.o): New rule.
771 * doc/observer.texi (inferior_call_pre, inferior_call_post)
772 (memory_changed, register_changed): New observers.
773 * infcall.c (call_function_by_hand): Notify observer before and
774 after inferior call.
775 * python/py-event.h (inferior_call_kind): New enum.
776 (emit_inferior_call_event): New prototype.
777 (emit_register_changed_event): New prototype.
778 (emit_memory_changed_event): New prototype.
779 * python/py-events.h (events_object): New registries
780 inferior_call, memory_changed and register_changed.
781 * python/py-evts.c (gdbpy_initialize_py_events): Add the
782 inferior_call, memory_changed and register_changed registries.
783 * python/py-infevents.c: New.
784 * python/py-inferior.c (python_on_inferior_call_pre)
785 (python_on_inferior_call_post, python_on_register_change)
786 (python_on_memory_change): New functions.
787 (gdbpy_initialize_inferior): Attach python handler to new
788 observers.
789 * python/py-infthread.c(gdbpy_create_ptid_object): New.
790 (thpy_get_ptid) Use gdbpy_create_ptid_object.
791 * python/python-internal.h:
792 (gdbpy_create_ptid_object)
793 (gdbpy_initialize_inferior_call_pre_event)
794 (gdbpy_initialize_inferior_call_post_event)
795 (gdbpy_initialize_register_changed_event)
796 (gdbpy_initialize_memory_changed_event): New prototypes.
797 * python/python.c (_initialize_python): Initialize new events.
798 * valops.c (value_assign): Notify register_changed observer.
799
007baf27
DE
8002014-12-02 Doug Evans <dje@google.com>
801
802 * python/py-infthread.c: Whitespace fixes.
803
d5552aab
AA
8042014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
805
806 * features/Makefile (s390-te-linux64-expedite): Replace
807 non-existant r14 and r15 by r14l and r15l, respectively.
808 * regformats/s390-te-linux64.dat: Regenerate.
809
30b5e341
SM
8102014-12-01 Simon Marchi <simon.marchi@ericsson.com>
811
812 * objfiles.c (allocate_objfile): Remove duplicate comment.
813
ac3d87c0
UW
8142014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
815
816 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
817 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
818 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
819 (supply_gregset, supply_fpregset): Remove.
820 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
821 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
822 and sizeof_gregset.
823
f10c5b19
JK
8242014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 Add add-auto-load-scripts-directory.
827 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
828 * auto-load.c (add_auto_load_dir): New function.
829 (_initialize_auto_load): Install it.
830
f0d4ba1f
MG
8312014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
832
833 Pushed by Joel Brobecker <brobecker@adacore.com>.
834 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
835
18ac6ffc
SC
8362014-11-29 Siva Chandra Reddy <sivachandra@google.com>
837
838 * eval.c (evaluate_subexp): Check that the thread stack temporaries
839 are not already enabled before enabling them.
840
4072f920
YQ
8412014-11-29 Yao Qi <yao@codesourcery.com>
842
843 * arm-tdep.c (arm_analyze_prologue): Move local variables
844 'framereg' and 'framesize' to inner block. Move code to
845 inner block too.
846
6c659fc2
SC
8472014-11-28 Siva Chandra Reddy <sivachandra@google.com>
848
849 * eval.c: Include gdbthread.h.
850 (evaluate_subexp): Enable thread stack temporaries before
851 evaluating a complete expression and clean them up after the
852 evaluation is complete.
853 * gdbthread.h: Include common/vec.h.
854 (value_ptr): New typedef.
855 (VEC (value_ptr)): New vector type.
856 (value_vec): New typedef.
857 (struct thread_info): Add new fields stack_temporaries_enabled
858 and stack_temporaries.
859 (enable_thread_stack_temporaries)
860 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
861 (get_last_thread_stack_temporary)
862 (value_in_thread_stack_temporaries): Declare.
863 * gdbtypes.c (class_or_union_p): New function.
864 * gdbtypes.h (class_or_union_p): Declare.
865 * infcall.c (call_function_by_hand): Store return values of class
866 type as temporaries on stack.
867 * thread.c (enable_thread_stack_temporaries): New function.
868 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
869 (get_last_thread_stack_temporary): Likewise.
870 (value_in_thread_stack_temporaries): Likewise.
871 * value.c (value_force_lval): New function.
872 * value.h (value_force_lval): Declare.
873
f7ca3fcf
PM
8742014-11-28 Pierre Muller <muller@sourceware.org>
875
876 Pushed by Joel Brobecker <brobecker@adacore.com>.
877 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
878 registers.
879
b2859a9a
UW
8802014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
881
882 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
883 * config/sparc/linux.mh (NATDEPFILES): Likewise.
884 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
885 * m68klinux-nat.c (fetch_core_registers): Remove.
886 (linux_elf_core_fns): Remove.
887 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
888
0fa9473f
JB
8892014-11-28 Joel Brobecker <brobecker@adacore.com>
890
891 * utils.c (gdb_realpath): Rework comment about handling on
892 Windows.
893
6a29c58e
YQ
8942014-11-28 Yao Qi <yao@codesourcery.com>
895
896 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
897 rename.
898 * gnulib/aclocal.m4: Re-generated.
899 * gnulib/config.in: Re-generated.
900 * gnulib/configure: Re-generated.
901 * gnulib/import/Makefile.am: Re-generated.
902 * gnulib/import/Makefile.in: Re-generated.
903 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
904 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
905 * import/basename-lgpl.c: New file.
906 * import/dirname-lgpl.c: New file.
907 * import/dirname.h: New file.
908 * import/m4/dirname.m4: New file.
909 * import/m4/malloc.m4: New file.
910 * import/m4/rename.m4: New file.
911 * import/m4/rmdir.m4: New file.
912 * import/m4/stdio_h.m4: New file.
913 * import/malloc.c: New file.
914 * import/rename.c: New file.
915 * import/rmdir.c: New file.
916 * import/same-inode.h: New file.
917 * import/stdio.c: New file.
918 * import/stdio.in.h: New file.
919 * import/stripslash.c: New file.
920
abbffc89
YQ
9212014-11-28 Yao Qi <yao@codesourcery.com>
922
923 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
924 and realpath.
925 * config.in: Re-generated.
926 * configure: Re-generated.
927 * utils.c (gdb_realpath): Remove code calling realpath,
928 canonicalize_file_name and pathconf.
929 [!_WIN32]: Call canonicalize_file_name.
930
98399780
YQ
9312014-11-28 Yao Qi <yao@codesourcery.com>
932
933 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
934 canonicalize-lgpl.
935 * aclocal.m4: Re-generated.
936 * config.in: Re-generated.
937 * configure: Re-generated.
938 * import/Makefile.am: Re-generated.
939 * import/Makefile.in: Re-generated.
940 * import/m4/gnulib-cache.m4: Re-generated.
941 * import/m4/gnulib-comp.m4: Re-generated.
942 * import/canonicalize-lgpl.c: New file.
943 * import/extra/snippet/_Noreturn.h: New file.
944 * import/m4/canonicalize.m4: New file.
945 * import/m4/double-slash-root.m4: New file.
946 * import/m4/eealloc.m4: New file.
947 * import/m4/malloca.m4: New file.
948 * import/m4/nocrash.m4: New file.
949 * import/m4/stdlib_h.m4: New file.
950 * import/malloca.c: New file.
951 * import/malloca.h: New file.
952 * import/malloca.valgrind: New file.
953
3332aaf2
YQ
9542014-11-28 Yao Qi <yao@codesourcery.com>
955
956 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
957 * config.in, configure: Regenerate.
958 * symfile.c (find_separate_debug_file_by_debuglink): Remove
959 code checking HAVE_LSTAT is defined.
960
f45c62c4
YQ
9612014-11-28 Yao Qi <yao@codesourcery.com>
962
963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
964 lstat.
965 * gnulib/aclocal.m4: Re-generated.
966 * gnulib/config.in: Re-generated.
967 * gnulib/configure: Re-generated.
968 * gnulib/import/Makefile.am: Re-generated.
969 * gnulib/import/Makefile.in: Re-generated.
970 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
971 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
972 * gnulib/import/lstat.c: New file.
973 * gnulib/import/m4/lstat.m4: New file.
974
bdca27a2
YQ
9752014-11-28 Yao Qi <yao@codesourcery.com>
976
977 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
978 * config.in, configure: Re-generate.
979 * inf-child.c (inf_child_fileio_readlink): Don't check
980 HAVE_READLINK is defined.
981
2196f55f
YQ
9822014-11-28 Yao Qi <yao@codesourcery.com>
983
984 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
985 * gnulib/aclocal.m4: Re-generated.
986 * gnulib/config.in: Likewise.
987 * gnulib/configure: Likewise.
988 * gnulib/import/Makefile.am: Likewise.
989 * gnulib/import/Makefile.in: Likewise.
990 * gnulib/import/m4/gnulib-cache.m4: Likewise.
991 * gnulib/import/m4/gnulib-comp.m4: Likewise.
992 * gnulib/import/dosname.h: New file
993 * gnulib/import/m4/largefile.m4: New file.
994 * gnulib/import/m4/readlink.m4: New file.
995 * gnulib/import/m4/stat.m4: New file.
996 * gnulib/import/readlink.c: New file.
997 * gnulib/import/stat.c: New file.
998
7014e923 9992014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1000
1001 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1002 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1003
aa489395
SL
10042014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1005
1006 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1007 that there can be only one stack adjustment in the prologue
1008 with tests to detect specific disallowed stack adjustments.
1009
7f1659b5
SL
10102014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1011
1012 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1013 adjustments.
1014
d53c26c7
SL
10152014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1016
1017 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1018 the instruction as well as reading it from memory.
1019 (nios2_match_add): New.
1020 (nios2_match_sub): New.
1021 (nios2_match_addi): New.
1022 (nios2_match_orhi): New.
1023 (nios2_match_stw): New.
1024 (nios2_match_ldw): New.
1025 (nios2_match_rdctl): New.
1026 (enum branch_condition): New.
1027 (nios2_match_branch): New.
1028 (nios2_match_jmpi): New.
1029 (nios2_match_calli): New.
1030 (nios2_match_jmpr): New.
1031 (nios2_match_callr): New.
1032 (nios2_match_break): New.
1033 (nios2_match_trap): New.
1034 (nios2_in_epilogue_p): Rewrite to use new functions.
1035 (nios2_analyze_prologue): Likewise.
1036 (nios2_skip_prologue): Delete unused local limit_pc.
1037 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1038 (nios2_get_next_pc): Rewrite to use new functions.
1039
cac9b138
JK
10402014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1041
1042 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1043
a441dfbc
ST
10442014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1045
1046 Pushed by Joel Brobecker <brobecker@adacore.com>
1047 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1048 elements pi_len by the size of the elements before calling
1049 vm_deallocate.
1050 (inf_validate_task_sc): Likewise, and properly deallocate the
1051 noise array.
1052
4c9e8482
DE
10532014-11-23 Doug Evans <xdje42@gmail.com>
1054
1055 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1056 number and name if present. All callers updated.
1057 (dump_fn_fieldlists): Fix indentation of args.
1058
15ee0bbd
PP
10592014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1060
1061 * MAINTAINERS (Write After Approval): Add myself.
1062
e8af5d7a
JB
10632014-11-23 Joel Brobecker <brobecker@adacore.com>
1064
1065 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1066 to a bp_call_dummy breakpoint type.
1067
a344fc09
PP
10682014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1069
1070 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1071 registering the signal handler.
1072
d64e57fa
PP
10732014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1074
1075 * event-top.h (call_stdin_event_handler_again_p): Declare.
1076 * event-top.c (call_stdin_event_handler_again_p): Define.
1077 (stdin_event_handler): Use it.
1078 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1079 handler again if there is pending input following a
1080 start sequence.
1081
6f9d33d8
PP
10822014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1083
1084 Pushed by Joel Brobecker <brobecker@adacore.com>
1085 * linux-fork.c (checkpoint_command): Print index of new
1086 checkpoint in response message.
1087
88db67ef
YQ
10882014-11-23 Yao Qi <yao@codesourcery.com>
1089
1090 * valprint.c (read_string): Move local variables 'found_nul',
1091 'chunksize' and 'limit' to inner scope. Update comments.
1092
01465b56
DE
10932014-11-22 Doug Evans <xdje42@gmail.com>
1094
1095 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1096 function comment.
1097 (search_symbols): Fix comments and whitespace.
1098
07a1c2c3
DE
10992014-11-22 Doug Evans <xdje42@gmail.com>
1100
1101 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1102
b2a919a8
DE
11032014-11-21 Doug Evans <dje@google.com>
1104
1105 * psymtab.c (psymtab_search_name): Fix whitespace.
1106
278289d5
YQ
11072014-11-21 Yao Qi <yao@codesourcery.com>
1108
1109 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1110 errno.
1111 * gnulib/import/Makefile.am: Re-generated.
1112 * gnulib/import/Makefile.in: Likewise.
1113 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1114
e01e2baa
YQ
11152014-11-21 Yao Qi <yao@codesourcery.com>
1116
1117 * gdb_wchar.h: Include wchar.h and wctype.h.
1118 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1119 include wchar.h and wctype.h.
1120 Don't check HAVE_WCHAR_H.
1121
f0c00af8
YQ
11222014-11-21 Yao Qi <yao@codesourcery.com>
1123
1124 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1125 and wctype-h.
1126 * gnulib/import/Makefile.am: Re-generated.
1127 * gnulib/import/Makefile.in: Likewise.
1128 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1129
0cae13bb
YQ
11302014-11-21 Yao Qi <yao@codesourcery.com>
1131
1132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1133 memchr.
1134 * gnulib/import/Makefile.am: Re-generated.
1135 * gnulib/import/Makefile.in: Likewise.
1136 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1137
9c232dda
YQ
11382014-11-21 Yao Qi <yao@codesourcery.com>
1139
1140 * common/common-defs.h: Include alloca.h
1141 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1142 * configure: Re-generated.
1143 * defs.h: Remove code handling alloca.
1144 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1145 or not.
1146
00d7f58f
YQ
11472014-11-21 Yao Qi <yao@codesourcery.com>
1148
1149 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1150 alloca.
1151 * gnulib/import/Makefile.am: Re-generated.
1152 * gnulib/import/Makefile.in: Likewise..
1153 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1154
6068ad5d
YQ
11552014-11-21 Yao Qi <yao@codesourcery.com>
1156
1157 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1158 alphabetical order.
1159
45e44d27
JB
11602014-11-21 Joel Brobecker <brobecker@adacore.com>
1161
1162 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1163 flag_unsigned if HIGH_BOUND is constant and negative.
1164
7e7cbeb3
SDJ
11652014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1166
1167 PR breakpoints/10737
1168 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1169 modifier from "struct gdbarch" when compiling without Expat (XML)
1170 support.
1171 (get_syscall_by_number): Likewise.
1172 (get_syscall_by_name): Likewise.
1173 (get_syscall_names): Likewise.
1174
458c8db8
SDJ
11752014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1176
1177 PR breakpoints/10737
1178 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1179 set_xml_syscall_file_name to provide gdbarch.
1180 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1181 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1182 * breakpoint.c (print_it_catch_syscall): Adjust call to
1183 get_syscall_by_number to provide gdbarch.
1184 (print_one_catch_syscall): Likewise.
1185 (print_mention_catch_syscall): Likewise.
1186 (print_recreate_catch_syscall): Likewise.
1187 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1188 and get_syscall_by_name to provide gdbarch.
1189 (catch_syscall_completer): Adjust call to get_syscall_names to
1190 provide gdbarch.
1191 * gdbarch.c: Regenerate.
1192 * gdbarch.h: Likewise.
1193 * gdbarch.sh: Forward declare "struct syscalls_info".
1194 (xml_syscall_file): New variable.
1195 (syscalls_info): Likewise.
1196 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1197 set_xml_syscall_file_name to provide gdbarch.
1198 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1199 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1200 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1201 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1202 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1203 * xml-syscall.c: Include gdbarch.h.
1204 (set_xml_syscall_file_name): Accept gdbarch parameter.
1205 (get_syscall_by_number): Likewise.
1206 (get_syscall_by_name): Likewise.
1207 (get_syscall_names): Likewise.
1208 (my_gdb_datadir): Delete global variable.
1209 (struct syscalls_info) <my_gdb_datadir>: New variable.
1210 (struct syscalls_info) <sysinfo>: Rename variable to
1211 "syscalls_info".
1212 (sysinfo): Delete global variable.
1213 (have_initialized_sysinfo): Likewise.
1214 (xml_syscall_file): Likewise.
1215 (sysinfo_free_syscalls_desc): Rename to...
1216 (syscalls_info_free_syscalls_desc): ... this.
1217 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1218 code to the new layout of "struct syscalls_info".
1219 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1220 "syscalls_info".
1221 (syscall_create_syscall_desc): Likewise.
1222 (syscall_start_syscall): Likewise.
1223 (syscall_parse_xml): Likewise.
1224 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1225 (init_sysinfo): Rename to...
1226 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1227 Adjust function to deal with gdbarch.
1228 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1229 gdbarch as a parameter. Adjust code.
1230 (xml_get_syscall_name): Likewise.
1231 (xml_list_of_syscalls): Likewise.
1232 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1233 (get_syscall_by_number): Likewise.
1234 (get_syscall_by_name): Likewise.
1235 (get_syscall_names): Likewise.
1236 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1237 (get_syscall_by_number): Likewise.
1238 (get_syscall_by_name): Likewise.
1239 (get_syscall_names): Likewise.
1240
43f3e411
DE
12412014-11-20 Doug Evans <xdje42@gmail.com>
1242
1243 Split struct symtab into two: struct symtab and compunit_symtab.
1244 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1245 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1246 to "struct compunit_symtab *". All callers updated.
1247 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1248 "struct symtab *" argument to "struct compunit_symtab *".
1249 All callers updated.
1250 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1251 result to "struct compunit_symtab *". All callers updated.
1252 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1253 Change result to "struct compunit_symtab *". All callers updated.
1254 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1255 hange type to "struct compunit_symtab *". All uses updated.
1256 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1257 Change type to "struct compunit_symtab *". All uses updated.
1258 * buildsym.c (struct buildsym_compunit): New struct.
1259 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1260 (buildsym_compunit): New static global.
1261 (finish_block_internal): Update to fetch objfile from
1262 buildsym_compunit.
1263 (make_blockvector): Delete objfile argument.
1264 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1265 debugformat, producer.
1266 (start_buildsym_compunit): New function.
1267 (free_buildsym_compunit): Renamed from free_subfiles_list.
1268 All callers updated.
1269 (patch_subfile_names): Rewrite to use buildsym_compunit.
1270 (get_compunit_symtab): New function.
1271 (get_macro_table): Delete argument comp_dir. All callers updated.
1272 (start_symtab): Change result to "struct compunit_symtab *".
1273 All callers updated. Create the subfile of the main source file.
1274 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1275 (reset_symtab_globals): Update.
1276 (end_symtab_get_static_block): Update to use buildsym_compunit.
1277 (end_symtab_without_blockvector): Rewrite.
1278 (end_symtab_with_blockvector): Change result to
1279 "struct compunit_symtab *". All callers updated.
1280 Update to use buildsym_compunit. Don't set symtab->dirname,
1281 instead set it in the compunit.
1282 Explicitly make sure main symtab is first in its list.
1283 Set debugformat, producer, blockvector, block_line_section, and
1284 macrotable in the compunit.
1285 (end_symtab_from_static_block): Change result to
1286 "struct compunit_symtab *". All callers updated.
1287 (end_symtab, end_expandable_symtab): Ditto.
1288 (set_missing_symtab): Change symtab argument to
1289 "struct compunit_symtab *". All callers updated.
1290 (augment_type_symtab): Ditto.
1291 (record_debugformat): Update to use buildsym_compunit.
1292 (record_producer): Update to use buildsym_compunit.
1293 * buildsym.h (struct subfile) <dirname>: Delete.
1294 <producer, debugformat>: Delete.
1295 <buildsym_compunit>: New member.
1296 (get_compunit_symtab): Declare.
1297 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1298 from primary_symtab. Change type to "struct compunit_symtab *".
1299 All uses updated.
1300 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1301 All callers updated.
1302 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1303 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1304 symtab. Change type to "struct compunit_symtab *". All uses updated.
1305 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1306 All callers updated.
1307 (dw2_find_last_source_symtab): Ditto.
1308 (dw2_lookup_symbol): Ditto.
1309 (recursively_find_pc_sect_compunit_symtab): Renamed from
1310 recursively_find_pc_sect_symtab. Change result to
1311 "struct compunit_symtab *". All callers updated.
1312 (dw2_find_pc_sect_compunit_symtab): Renamed from
1313 dw2_find_pc_sect_symtab. Change result to
1314 "struct compunit_symtab *". All callers updated.
1315 (get_compunit_symtab): Renamed from get_symtab. Change result to
1316 "struct compunit_symtab *". All callers updated.
1317 (recursively_compute_inclusions): Change type of immediate_parent
1318 argument to "struct compunit_symtab *". All callers updated.
1319 (compute_compunit_symtab_includes): Renamed from
1320 compute_symtab_includes. All callers updated. Rewrite to compute
1321 includes of compunit_symtabs and not symtabs.
1322 (process_full_comp_unit): Update to work with struct compunit_symtab.
1323 (process_full_type_unit): Ditto.
1324 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1325 (dwarf_decode_lines): Remove special case handling of main subfile.
1326 (macro_start_file): Delete argument comp_dir. All callers updated.
1327 (dwarf_decode_macro_bytes): Ditto.
1328 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1329 use struct compunit_symtab.
1330 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1331 * jit.c (finalize_symtab): Build compunit_symtab.
1332 * jv-lang.c (get_java_class_symtab): Change result to
1333 "struct compunit_symtab *". All callers updated.
1334 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1335 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1336 comp_dir. Change type to "struct compunit_symtab *".
1337 All uses updated.
1338 (new_macro_table): Change comp_dir argument to cust,
1339 "struct compunit_symtab *". All callers updated.
1340 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1341 nr_primary_symtabs. All uses updated.
1342 (count_symtabs_and_blocks): Update to handle compunits.
1343 (report_command_stats): Update output, "primary symtabs" renamed to
1344 "compunits".
1345 * mdebugread.c (new_symtab): Change result to
1346 "struct compunit_symtab *". All callers updated.
1347 (parse_procedure): Change type of search_symtab argument to
1348 "struct compunit_symtab *". All callers updated.
1349 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1350 separate loop.
1351 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1352 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1353 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1354 All uses updated.
1355 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1356 All uses updated.
1357 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1358 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1359 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1360 symtab. Change type to "struct compunit_symtab *". All uses updated.
1361 * psymtab.c (psymtab_to_symtab): Change result type to
1362 "struct compunit_symtab *". All callers updated.
1363 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1364 find_pc_sect_symtab_from_partial. Change result type to
1365 "struct compunit_symtab *". All callers updated.
1366 (lookup_symbol_aux_psymtabs): Change result type to
1367 "struct compunit_symtab *". All callers updated.
1368 (find_last_source_symtab_from_partial): Ditto.
1369 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1370 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1371 and macro_table from compunit.
1372 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1373 type to "struct compunit_symtab *". All callers updated.
1374 (debug_qf_lookup_symbol): Ditto.
1375 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1376 debug_qf_find_pc_sect_symtab, change result type to
1377 "struct compunit_symtab *". All callers updated.
1378 * symfile.c (allocate_symtab): Delete objfile argument.
1379 New argument cust.
1380 (allocate_compunit_symtab): New function.
1381 (add_compunit_symtab_to_objfile): New function.
1382 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1383 Change result type to "struct compunit_symtab *". All uses updated.
1384 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1385 Change result type to "struct compunit_symtab *". All uses updated.
1386 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1387 separate loop.
1388 (dump_symtab_1): Update test for primary source symtab.
1389 (maintenance_info_symtabs): Update to handle compunit symtabs.
1390 (maintenance_check_symtabs): Ditto.
1391 * symtab.c (set_primary_symtab): Delete.
1392 (compunit_primary_filetab): New function.
1393 (compunit_language): New function.
1394 (iterate_over_some_symtabs): Change type of arguments "first",
1395 "after_last" to "struct compunit_symtab *". All callers updated.
1396 Update to loop over symtabs in each compunit.
1397 (error_in_psymtab_expansion): Rename symtab argument to cust,
1398 and change type to "struct compunit_symtab *". All callers updated.
1399 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1400 Change result type to "struct compunit_symtab *". All callers updated.
1401 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1402 Change result type to "struct compunit_symtab *". All callers updated.
1403 (find_pc_sect_line): Only loop over symtabs within selected compunit
1404 instead of all symtabs in the objfile.
1405 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1406 <compunit_symtab> New member.
1407 <block_line_section>: Moved to compunit_symtab.
1408 <locations_valid>: Ditto.
1409 <epilogue_unwind_valid>: Ditto.
1410 <macro_table>: Ditto.
1411 <dirname>: Ditto.
1412 <debugformat>: Ditto.
1413 <producer>: Ditto.
1414 <objfile>: Ditto.
1415 <call_site_htab>: Ditto.
1416 <includes>: Ditto.
1417 <user>: Ditto.
1418 <primary>: Delete
1419 (SYMTAB_COMPUNIT): New macro.
1420 (SYMTAB_BLOCKVECTOR): Update definition.
1421 (SYMTAB_OBJFILE): Update definition.
1422 (SYMTAB_DIRNAME): Update definition.
1423 (struct compunit_symtab): New type. Common members among all source
1424 symtabs within a compilation unit moved here. All uses updated.
1425 (COMPUNIT_OBJFILE): New macro.
1426 (COMPUNIT_FILETABS): New macro.
1427 (COMPUNIT_DEBUGFORMAT): New macro.
1428 (COMPUNIT_PRODUCER): New macro.
1429 (COMPUNIT_DIRNAME): New macro.
1430 (COMPUNIT_BLOCKVECTOR): New macro.
1431 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1432 (COMPUNIT_LOCATIONS_VALID): New macro.
1433 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1434 (COMPUNIT_CALL_SITE_HTAB): New macro.
1435 (COMPUNIT_MACRO_TABLE): New macro.
1436 (ALL_COMPUNIT_FILETABS): New macro.
1437 (compunit_symtab_ptr): New typedef.
1438 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1439
005e2509
JB
14402014-11-20 Joel Brobecker <brobecker@adacore.com>
1441
1442 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1443 if the TYPE_CODE of range_type's base type does not match
1444 the TYPE_CODE of encoding_type's base type.
1445
2b0f535a
JB
14462014-11-19 Joel Brobecker <brobecker@adacore.com>
1447
1448 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1449 it starts with '<'.
1450
8908fca5
JB
14512014-11-19 Joel Brobecker <brobecker@adacore.com>
1452
1453 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1454 (ada_is_redundant_index_type_desc): New function.
1455 (to_fixed_array_type): Ignore parallel XA type if redundant.
1456
4a46959e
JB
14572014-11-19 Joel Brobecker <brobecker@adacore.com>
1458
1459 * ada-lang.c (constrained_packed_array_type): Set the length
1460 of the return array as if both bounds where zero if that
1461 returned array's index type is dynamic.
1462
2acf986b
YQ
14632014-11-19 Yao Qi <yao@codesourcery.com>
1464
1465 * config/i386/go32.mh (CC): Remove.
1466
439247b6
DE
14672014-11-18 Doug Evans <xdje42@gmail.com>
1468
1469 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1470 updated.
1471
4d663531
DE
14722014-11-18 Doug Evans <xdje42@gmail.com>
1473
1474 * buildsym.c (buildsym_objfile): New static global.
1475 (buildsym_comp_dir): New static global.
1476 (finish_block_internal): Delete arg objfile. All callers updated.
1477 (finish_block): Delete arg objfile. All callers updated.
1478 (start_subfile): Delete arg dirname. All callers updated.
1479 (patch_subfile_names): Update buildsym_comp_dir.
1480 (get_macro_table): Delete arg objfile. All callers updated.
1481 (start_symtab): New arg objfile. All callers updated.
1482 Rename arg dirname to comp_dir.
1483 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1484 (end_symtab_get_static_block): Delete arg objfile. All callers
1485 updated.
1486 (end_symtab_without_blockvector): Ditto.
1487 (end_symtab_with_blockvector): Ditto.
1488 (end_symtab_from_static_block): Ditto.
1489 (end_symtab): Ditto.
1490 (end_expandable_symtab): Ditto.
1491 (augment_type_symtab): Ditto.
1492 * coffread.c (coff_start_symtab): New arg objfile. All callers
1493 updated.
1494
8435453b
DE
14952014-11-18 Doug Evans <xdje42@gmail.com>
1496
1497 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1498 updated.
1499
ee6f8984
DE
15002014-11-18 Doug Evans <xdje42@gmail.com>
1501
1502 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1503 symtab.dirname updated to use it.
1504
eb822aa6
DE
15052014-11-18 Doug Evans <xdje42@gmail.com>
1506
1507 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1508 symtab.objfile updated to use it.
1509
98387a29
DE
15102014-11-18 Doug Evans <xdje42@gmail.com>
1511
1512 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1513
aff08958
DE
15142014-11-18 Doug Evans <xdje42@gmail.com>
1515
1516 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1517 SYMBOL_OBJFILE.
1518 * findvar.c (default_read_var_value): Ditto.
1519 * jv-lang.c (add_class_symtab_symbol): Ditto.
1520 * parse.c (operator_check_standard): Ditto.
1521 * printcmd.c (address_info): Ditto.
1522 * symtab.c (fixup_symbol_section): Ditto.
1523 (skip_prologue_sal): Ditto.
1524 * tracepoint.c (scope_info): Ditto.
1525 * valops.c (find_function_in_inferior): Ditto.
1526 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1527 * python/py-symbol.c (set_symbol): Ditto.
1528
7bab9b58
DE
15292014-11-18 Doug Evans <xdje42@gmail.com>
1530
1531 * buildsym.c (main_subfile): New static global.
1532 (free_subfiles_list): New function.
1533 (start_symtab): Set main_subfile.
1534 (restart_symtab): Replace init of subfiles, current_subfile with
1535 call to free_subfiles_list.
1536 (watch_main_source_file_lossage): Use main_subfile.
1537 (reset_symtab_globals): Replace init of current_subfile with call
1538 to free_subfiles_list.
1539 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1540 functions, split out from ...
1541 (end_symtab_from_static_block): ... here. Rewrite to call them.
1542
f194fefb
DE
15432014-11-18 Doug Evans <xdje42@gmail.com>
1544
1545 The result of symtab expansion is always a primary symtab.
1546 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1547 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1548 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1549 (psymtab_to_symtab): Add comment and assert.
1550 (map_matching_symbols_psymtab): Remove unnecessary test for
1551 non-primary symtab.
1552
34248c3a
DE
15532014-11-15 Doug Evans <xdje42@gmail.com>
1554
1555 PR symtab/17559
1556 * symtab.c (find_pc_line_symtab): New function.
1557 * symtab.h (find_pc_line_symtab): Declare.
1558 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1559 find_pc_symtab.
1560 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1561 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1562 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1563 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1564 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1565 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1566
2097ae25
DE
15672014-11-15 Doug Evans <xdje42@gmail.com>
1568
1569 * symtab.c (expand_symtab_containing_pc): Renamed from
1570 find_pc_sect_symtab_via_partial. All callers updated.
1571
1ada499f
YQ
15722014-11-15 Yao Qi <yao@codesourcery.com>
1573
1574 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1575
355e2102
JB
15762014-11-14 Joel Brobecker <brobecker@adacore.com>
1577
1578 * common/common-defs.h: Move <stdarg.h> #include ahead of
1579 <stdio.h> #include.
1580
83030110
PA
15812014-11-14 Pedro Alves <palves@redhat.com>
1582
1583 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1584 [!PHONY_ICONV] (gdb_iconv): New function.
1585 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1586
a8719064
DE
15872014-11-13 Doug Evans <dje@google.com>
1588
1589 PR symtab/17591
1590 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1591 "(anonymous namespace)".
1592
60f7655a
DE
15932014-11-13 Doug Evans <dje@google.com>
1594
1595 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1596 infinite loop.
1597
5784b3ca
JK
15982014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1599
1600 * NEWS (maint set target-async): Fix typo.
1601
6218dc4b
PA
16022014-11-12 Pedro Alves <palves@redhat.com>
1603
1604 * infrun.c (enum infwait_states, infwait_state): Delete.
1605
af48d08f
PA
16062014-11-12 Pedro Alves <palves@redhat.com>
1607
1608 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1609 Rewrite stepping over a permanent breakpoint.
1610 (thread_still_needs_step_over, proceed): Don't set
1611 stepping_over_breakpoint for permanent breakpoints.
1612 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1613 single-step breakpoints out of the target on hardware step
1614 targets.
1615 (process_event_stop_test): If stepping a permanent breakpoint
1616 doesn't hit the step-resume breakpoint, delete the step-resume
1617 breakpoint.
1618 (switch_back_to_stepped_thread): Also check if the stepped thread
1619 has advanced already on hardware step targets.
1620 (currently_stepping): Return true if the thread stepped a
1621 breakpoint.
1622
1a853c52
PA
16232014-11-12 Pedro Alves <palves@redhat.com>
1624
1625 Mark locations as permanent, not the whole breakpoint.
1626 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1627 (mark_breakpoints_out): Don't mark permanent breakpoints as
1628 uninserted.
1629 (breakpoint_init_inferior): Use mark_breakpoints_out.
1630 (breakpoint_here_p): Adjust.
1631 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1632 of permanent breakpoints.
1633 (make_breakpoint_permanent): Mark each location as permanent,
1634 instead of marking the breakpoint.
1635 (add_location_to_breakpoint): If the location is permanent, mark
1636 it as such, and as inserted.
1637 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1638 (bp_location_compare, update_global_location_list): Adjust.
1639 (update_breakpoint_locations): Don't make the breakpoint permanent
1640 here.
1641 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1642 breakpoints.
1643 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1644 (struct bp_location) <permanent>: New field.
1645 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1646 reference to bp_permanent.
1647
ae9bb220
PA
16482014-11-12 Pedro Alves <palves@redhat.com>
1649
1650 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1651 * arch-utils.h (default_skip_permanent_breakpoint): New
1652 declaration.
1653 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1654 Install default_skip_permanent_breakpoint as default method.
1655 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1656 (i386_gdbarch_init): Don't install it.
1657 * infrun.c (resume): Assume there's always a
1658 gdbarch_skip_permanent_breakpoint implementation.
1659 * gdbarch.h, gdbarch.c: Regenerate.
1660
015de688
DC
16612014-11-11 Daniel Colascione <dancol@dancol.org>
1662
1663 Warn about cross-PID-namespace debugging.
1664 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1665 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1666 * linux-thread-db.c (check_pid_namespace_match): New function.
1667 (thread_db_inferior_created): Call it.
1668
26a84859
DE
16692014-11-10 Doug Evans <xdje42@gmail.com>
1670
1671 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1672 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1673
712a2e6d
DE
16742014-11-10 Doug Evans <xdje42@gmail.com>
1675
1676 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1677
af3768e9
DE
16782014-11-10 Doug Evans <xdje42@gmail.com>
1679
1680 PR symtab/17564
1681 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1682 (lookup_static_symbol): Move definition to new location and rewrite.
1683 (lookup_symbol_in_objfile): New function.
1684 (lookup_symbol_global_iterator_cb): Call it.
1685
b1f28d99
UW
16862014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1687
1688 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1689
b7a084be
PA
16902014-11-07 Pedro Alves <palves@redhat.com>
1691
1692 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1693 check if we did a "nexti" inside a prologue.
1694 * symtab.c (in_prologue): Delete function.
1695 * symtab.h (in_prologue): Delete declaration.
1696
67be31e5
DE
16972014-11-06 Doug Evans <xdje42@gmail.com>
1698
1699 * symtab.h (lookup_global_symbol): Improve function comment.
1700
08724ab7
DE
17012014-11-06 Doug Evans <xdje42@gmail.com>
1702
1703 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1704 All callers updated.
1705 * symtab.h (lookup_global_symbol): Update decl.
1706 (lookup_static_symbol): Move decl to better location.
1707
d9060ba6
DE
17082014-11-06 Doug Evans <xdje42@gmail.com>
1709
1710 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1711
74016e12
DE
17122014-11-06 Doug Evans <xdje42@gmail.com>
1713
1714 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1715 All callers updated.
1716 (lookup_symbol_in_all_objfiles): Renamed from
1717 lookup_symbol_aux_symtabs. All callers updated.
1718 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1719 All callers updated.
1720 (lookup_symbol_in_objfile_symtabs): Renamed from
1721 lookup_symbol_aux_objfile. All callers updated.
1722
d1a2d36d
DE
17232014-11-06 Doug Evans <xdje42@gmail.com>
1724
1725 * symtab.c (lookup_symbol_in_block): Renamed from
1726 lookup_symbol_aux_block. All callers updated.
1727
24d864bb
DE
17282014-11-06 Doug Evans <xdje42@gmail.com>
1729
1730 * symtab.c (lookup_static_symbol): Renamed from
1731 lookup_static_symbol_aux. All callers updated.
1732 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1733 All callers updated.
1734
358d6ab3
DE
17352014-11-06 Doug Evans <xdje42@gmail.com>
1736
1737 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1738 * block.c (block_lookup_symbol): Use it.
1739 * cp-support.c (make_symbol_overload_list_block): Use it.
1740 * symtab.c (iterate_over_symbols): Use it.
1741
16b2eaa1
DE
17422014-11-06 Doug Evans <xdje42@gmail.com>
1743
1744 * symtab.c (lookup_block_symbol): Moved to ...
1745 * block.c (block_lookup_symbol): ... here and renamed.
1746 All callers updated.
1747 * block.h (block_lookup_symbol): Declare.
1748 * symtab.h (lookup_block_symbol): Delete.
1749
2dd2cd1c
DE
17502014-11-06 Doug Evans <xdje42@gmail.com>
1751
1752 * ada-lang.c (ada_make_symbol_completion_list): Use
1753 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1754 * symtab.c (lookup_objfile_from_block): Ditto.
1755
d4c58915
DE
17562014-11-06 Doug Evans <xdje42@gmail.com>
1757
1758 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1759 TYPE_CODE_STRUCT.
1760
9c1877ea
DE
17612014-11-06 Doug Evans <xdje42@gmail.com>
1762
1763 * objfiles.c (get_objfile_arch): Constify.
1764 * objfiles.h (get_objfile_arch): Update prototype.
1765 * solib.c (solib_global_lookup): Fetch arch from objfile,
1766 not target_gdbarch.
1767
426a4079
SL
17682014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1769
1770 * nios2-tdep.c (wild_insn): Delete.
1771 (profiler_insn, irqentry_insn): Delete.
1772 (nios2_match_sequence): Delete.
1773 (nios2_analyze_prologue): Update comments. Remove matching
1774 of obsolete profiler_insn and irqentry_insn sequences.
1775
ee11262d
AM
17762014-11-05 Alan Modra <amodra@gmail.com>
1777
1778 * charset.c (convert_between_encodings): Shrink obstack using
1779 obstack_blank_fast.
1780 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1781 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1782 to char* before doing pointer arithmetic.
ee11262d 1783
c87e6d00
SM
17842014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1785
1786 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1787
441ef17f
PA
17882014-11-04 Pedro Alves <palves@redhat.com>
1789
1790 * breakpoint.c (breakpoint_thread_match): Delete function.
1791 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1792
e0f52461
SC
17932014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1794
1795 PR c++/17494
1796 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1797 the method args also under EVAL_SKIP when evaluating method
1798 calls under EVAL_SKIP.
1799
a0b4d890
YQ
18002014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1801
1802 * dwarf2loc.c (read_pieced_value): Do big endian
1803 processing only if gdb_regnum is not -1.
1804 (write_pieced_value): Ditto.
1805
18062014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1807
1808 * arm-linux-tdep.c (arm_linux_init_abi): Use
1809 info.byte_order_for_code to choose endianity of breakpoint
1810 instructions snippets.
1811
18122014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1813
1814 * arm-tdep.c (extract_arm_insn): Use
1815 gdbarch_byte_order_for_code to read arm instruction.
1816
e82149ff
DE
18172014-11-02 Doug Evans <xdje42@gmail.com>
1818
1819 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1820
d7ee84f1
DE
18212014-11-02 Doug Evans <xdje42@gmail.com>
1822
1823 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1824 main_subfile before returning.
1825
4f072d17
DE
18262014-10-31 Doug Evans <xdje42@gmail.com>
1827
1828 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1829 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1830
8301c89e
DE
18312014-10-31 Doug Evans <xdje42@gmail.com>
1832
1833 * valops.c (value_cast_pointers): Fix whitespace.
1834 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1835 Ditto.
1836
02be9a71
DE
18372014-10-30 Doug Evans <dje@google.com>
1838
1839 * NEWS: Mention ability add attributes to gdb.Objfile and
1840 gdb.Progspace objects.
1841 * python/py-objfile.c (objfile_object): New member dict.
1842 (objfpy_dealloc): Py_XDECREF dict.
1843 (objfpy_initialize): Initialize dict.
1844 (objfile_getset): Add __dict__.
1845 (objfile_object_type): Set tp_dictoffset member.
1846 * python/py-progspace.c (progspace_object): New member dict.
1847 (pspy_dealloc): Py_XDECREF dict.
1848 (pspy_initialize): Initialize dict.
1849 (pspace_getset): Add __dict__.
1850 (pspace_object_type): Set tp_dictoffset member.
1851
6427bef6
YQ
18522014-10-30 Yao Qi <yao@codesourcery.com>
1853
1854 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1855 replace '\\' with '\\\\'.
1856
f60325be
JB
18572014-10-29 Joel Brobecker <brobecker@adacore.com>
1858
1859 GDB 7.8.1 released.
1860
ab917dfb
PA
18612014-10-29 Pedro Alves <palves@redhat.com>
1862
1863 PR gdb/17408
1864 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1865 instead of assuming a thread with a stepping range is always
1866 stepping.
1867
d3d4baed
PA
18682014-10-29 Pedro Alves <palves@redhat.com>
1869
1870 PR python/17372
1871 * event-top.c (change_line_handler): Call
1872 gdb_rl_callback_handler_remove instead of
1873 rl_callback_handler_remove.
1874 (callback_handler_installed): New global.
1875 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1876 (gdb_rl_callback_handler_reinstall): New functions.
1877 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1878 gdb_rl_callback_handler_install instead of
1879 rl_callback_handler_remove and rl_callback_handler_install.
1880 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1881 instead of rl_callback_handler_remove.
1882 * event-top.h (gdb_rl_callback_handler_remove)
1883 (gdb_rl_callback_handler_install)
1884 (gdb_rl_callback_handler_reinstall): New declarations.
1885 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1886 cleanup function.
1887 (fetch_inferior_event): Install it.
1888 * top.c (gdb_readline_wrapper_line) Call
1889 gdb_rl_callback_handler_remove instead of
1890 rl_callback_handler_remove.
1891 (gdb_readline_wrapper_cleanup): Don't call
1892 rl_callback_handler_install.
1893
6e5d7f39
PA
18942014-10-29 Pedro Alves <palves@redhat.com>
1895
1896 * event-top.c (command_line_handler): Clear the first byte of
1897 linebuffer, when it is first allocated.
1898
551cb6a5
PA
18992014-10-29 Pedro Alves <palves@redhat.com>
1900
1901 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1902 TRY_CATCH.
1903
1e1e619b
PA
19042014-10-29 Pedro Alves <palves@redhat.com>
1905
1906 PR tui/16138
1907 PR tui/17519
1908 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1909 (tui_allowed_p): Delete function.
1910 * tui/tui.c: Include "interps.h".
1911 (tui_enable): Don't use tui_allowed_p. Error out here with
1912 detailed error messages if the TUI is the top level interpreter,
1913 or if output is not a terminal. Use newterm instead of initscr,
1914 and error out if initializing the terminal fails. Also error out if
1915 the terminal doesn't support cursor addressing.
1916 * tui/tui.h (tui_allowed_p): Delete declaration.
1917
6041179a
JB
19182014-10-29 Joel Brobecker <brobecker@adacore.com>
1919
1920 * arm-tdep.c (arm_skip_stack_protector): Return early if
1921 address loaded by first "ldr" instruction does not have
1922 a corresponding minimal symbol. Update comment.
1923
6ae274b7
YQ
19242014-10-29 Yao Qi <yao@codesourcery.com>
1925
1926 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1927 loaded address correctly of ldr instruction.
1928
7f5ef605
PA
19292014-10-28 Pedro Alves <palves@redhat.com>
1930
1931 PR gdb/12623
1932 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1933 field.
1934 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1935 thread's stepped_breakpoint field. Skip if reverse debugging.
1936 Add comment.
1937 (init_thread_stepping_state, handle_signal_stop): Clear the
1938 thread's stepped_breakpoint field.
1939
7d1a114c
PA
19402014-10-27 Pedro Alves <palves@redhat.com>
1941
1942 * remote.c (remote_thread_alive): New, factored out from ...
1943 (remote_thread_alive): ... this.
1944 (remote_update_thread_list): Bail out before deleting threads if
1945 the target returned an empty list, and, the current thread has a
1946 magic/fake ptid.
1947
e5f8a7cc
PA
19482014-10-27 Pedro Alves <palves@redhat.com>
1949
1950 * infrun.c (handle_signal_stop): Also skip handlers when a random
1951 signal arrives while handling a "stepi" or a "nexti". Set the
1952 thread's 'step_after_step_resume_breakpoint' flag.
1953
71e396f9
LM
19542014-10-27 Luis Machado <lgustavo@codesourcery.com>
1955
1956 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1957 (arm_record_ld_st_imm_offset): Reimplement to cover all
1958 load/store cases for ARM opcode 010.
1959 (arm_record_ld_st_multiple): Reimplement to cover all
1960 load/store cases for ARM opcode 100.
1961
3aee438b
DE
19622014-10-26 Doug Evans <xdje42@gmail.com>
1963
1964 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1965
f88cb4b6
DE
19662014-10-26 Doug Evans <xdje42@gmail.com>
1967
1968 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1969 parameter "kind" to "block_index".
1970 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1971 "block_index".
1972 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1973
a023a30f
DE
19742014-10-26 Doug Evans <xdje42@gmail.com>
1975
1976 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1977
4c35218e
DE
19782014-10-26 Doug Evans <xdje42@gmail.com>
1979
1980 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1981 obstack_alloc.
1982
f08e8df3
DE
19832014-10-26 Doug Evans <xdje42@gmail.com>
1984
1985 * parser-defs.h (block_found): Move decl from here ...
1986 * symtab.h (block_found): ... to here.
1987
cf901d3b
DE
19882014-10-26 Doug Evans <xdje42@gmail.com>
1989
1990 * symtab.h (struct field_of_this_result): Fix typo in comment.
1991 (lookup_symbol_in_language): Move function comment here.
1992 (lookup_symbol): Improve function comment.
1993 (basic_lookup_symbol_nonlocal): Ditto.
1994 (lookup_symbol_static, lookup_symbol_global): Ditto.
1995 (lookup_symbol_aux_block): Ditto.
1996 (lookup_language_this): Add function comment.
1997 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1998 function comment.
1999 (lookup_block_symbol): Improve function comment.
2000 (lookup_struct): Fix capitalization in function comment.
2001 (lookup_transparent_type): Add function comment.
2002 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2003 Improve function comment.
2004 (lookup_objfile_from_block): Add function comment.
2005 * symtab.c (lookup_symbol_in_language): Update function comment.
2006 (lookup_symbol, lookup_language_this): Ditto.
2007 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2008 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2009 (basic_lookup_symbol_nonlocal): Ditto.
2010 (lookup_symbol_static, lookup_symbol_global): Ditto.
2011 (lookup_transparent_type, lookup_block_symbol): Ditto.
2012
ff6c39cf
DE
20132014-10-25 Doug Evans <xdje42@gmail.com>
2014
2015 * symtab.c (types_info): Delete forward decl.
2016 (functions_info, variables_info, sources_info): Ditto.
2017 (_initialize_symtab): Rewrite forward decl to use
2018 initialize_file_ftype.
2019
ec201f0c
DE
20202014-10-25 Doug Evans <xdje42@gmail.com>
2021
2022 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2023
ca040673
DE
20242014-10-25 Doug Evans <xdje42@gmail.com>
2025
2026 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2027 of local var child_die.
2028
6f259a23
DB
20292014-10-24 Don Breazeal <donb@codesourcery.com>
2030
2031 * infrun.c (follow_fork_inferior): Update fork message printing
2032 to use target_terminal_ours_for_output instead of
2033 target_terminal_ours, to use _() for all format strings, to print
2034 "vfork" instead of "fork" for vforks, and to add a detach message.
2035 (handle_vfork_child_exec_or_exit): Update message printing to use
2036 target_terminal_ours_for_output instead of target_terminal_ours, to
2037 use _() for all format strings, and to fix some formatting.
2038
09dd9a69
PA
20392014-10-24 Pedro Alves <palves@redhat.com>
2040
2041 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2042 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2043 * config/vax/vax.mh: Delete.
2044 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2045 obsolete configurations section.
2046 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2047 * vax-nat.c: Delete file.
2048
5ab806de
PA
20492014-10-24 Pedro Alves <palves@redhat.com>
2050
2051 * NEWS (Removed targets): Add OS/arch column.
2052
3433cfa5
SC
20532014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2054
2055 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2056 on the arg type of a constructor only if it is of reference type.
2057
96ba4233
SL
20582014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2059
2060 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2061 accessors and constants from nios2 opcodes update.
2062 (nios2_get_next_pc): Likewise.
2063
28153fd3
DE
20642014-10-19 Doug Evans <xdje42@gmail.com>
2065
2066 * gdbthread.h (set_running): Fix comment.
2067 (set_executing, finish_thread_state): Fix comment.
2068
fc9b8e47
DE
20692014-10-18 Doug Evans <xdje42@gmail.com>
2070
2071 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2072
4ffbba72
DE
20732014-10-17 Doug Evans <dje@google.com>
2074
2075 * NEWS: Mention new event gdb.clear_objfiles.
2076 * python/py-event.h (emit_clear_objfiles_event): Clear
2077 * python/py-events.h (events_object): New member clear_objfiles.
2078 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2079 event.
2080 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2081 emit clear_objfiles event.
2082 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2083 function.
2084 (emit_clear_objfiles_event): New function.
2085 (clear_objfiles): New event.
2086 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2087 Declare.
2088 * python/python.c (_initialize_python): Call
2089 gdbpy_initialize_clear_objfiles_event.
2090
d096d8c1
DE
20912014-10-17 Doug Evans <dje@google.com>
2092
2093 * NEWS: Mention new gdb.Objfile.progspace attribute.
2094 * python/py-objfile.c (objfpy_get_progspace): New function.
2095 (objfile_getset): New entry for "progspace".
2096
6c4486e6
PA
20972014-10-17 Pedro Alves <palves@redhat.com>
2098
2099 PR gdb/17471
2100 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2101 returns a copy of the input.
2102 (run_command_1, continue_command, step_1, jump_command)
2103 (signal_command, until_command, advance_command, finish_command)
2104 (attach_command): Adjust and install a cleanup to free the
2105 stripped args.
2106
0ff33695
PA
21072014-10-17 Pedro Alves <palves@redhat.com>
2108
2109 PR gdb/17300
2110 * infcmd.c (continue_1): If continuing all threads in the
2111 foreground, make sure the inferior's terminal settings are put in
2112 effect.
2113
6fdebc3d
PA
21142014-10-17 Pedro Alves <palves@redhat.com>
2115
2116 PR gdb/17472
2117 * annotate.c (annotate_breakpoints_invalid): Use
2118 target_terminal_our_for_output instead of target_terminal_ours.
2119 Give back the terminal to the target.
2120 (annotate_frames_invalid): Likewise.
2121
5842f62a
PA
21222014-10-17 Pedro Alves <palves@redhat.com>
2123
2124 * target.c (enum terminal_state): New enum.
2125 (terminal_state): New global.
2126 (target_terminal_init): New function.
2127 (target_terminal_inferior): Skip if inferior already owns the
2128 terminal.
2129 (target_terminal_ours, target_terminal_ours_for_output): New
2130 functions.
2131 * target.h (target_terminal_init): Convert to function prototype.
2132 (target_terminal_ours_for_output): Convert to function prototype
2133 and tweak comment.
2134 (target_terminal_ours): Convert to function prototype and tweak
2135 comment.
2136 * windows-nat.c (do_initial_windows_stuff): Call
2137 target_terminal_init instead of child_terminal_init_with_pgrp.
2138
32a8097b
PA
21392014-10-17 Pedro Alves <palves@redhat.com>
2140
2141 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2142 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2143 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2144 solib-osf.c.
2145 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2146 * ada-lang.h [__alpha__ && __osf__]
2147 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2148 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2149 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2150 GDB_OSABI_OSF1.
2151 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2152 files.
2153 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2154 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2155 * configure: Regenerate.
2156 * configure.ac: Remove references to osf.
2157 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2158 section. Remove all other references to osf.
2159 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2160 Remove all other references to osf.
2161 * dec-thread.c: Delete file.
2162 * defs.h (GDB_OSABI_OSF1): Delete.
2163 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2164 defined.
2165 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2166 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2167 Delete code.
2168 (unconditionally_kill_inferior)
2169 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2170 * solib-osf.c: Delete file.
2171
80134cf5
PA
21722014-10-17 Pedro Alves <palves@redhat.com>
2173
2174 * remote.c (clear_threads_listing_context): Move higher up, out of
2175 the HAVE_LIBEXPAT guard.
2176
89c7137f
TG
21772014-10-16 Tristan Gingold <gingold@adacore.com>
2178
2179 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2180 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2181 on amd64.
2182
44ee4a52
PA
21832014-10-15 Pedro Alves <palves@redhat.com>
2184
2185 * dec-thread.c (dec_thread_count_gdb_threads)
2186 (dec_thread_add_gdb_thread): Delete.
2187 (dec_thread_update_thread_list): Delete.
2188 (dec_thread_find_new_threads): Rename to ...
2189 (dec_thread_update_thread_list): ... this. Delete GDB-size
2190 threads that are no longer found in dec_thread_list.
2191 (resync_thread_list): Delete.
2192 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2193 resync_thread_list.
2194
ab970af1
PA
21952014-10-15 Pedro Alves <palves@redhat.com>
2196
2197 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2198 * remote.c (remote_update_thread_list): Skip calling prune_threads
2199 if any thread listing method is supported, and instead walk over
2200 the set of remote threads listed, deleting those that are not
2201 found in GDB's thread list.
2202
e8032dde
PA
22032014-10-15 Pedro Alves <palves@redhat.com>
2204
2205 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2206 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2207 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2208 (bsd_uthread_target): Adjust.
2209 * corelow.c (core_open): Adjust.
2210 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2211 (dec_thread_update_thread_list): New function.
2212 (init_dec_thread_ops): Adjust.
2213 * gdbthread.h (prune_threads): New declaration.
2214 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2215 (thread_db_update_thread_list): ... this. Call prune_threads.
2216 (init_thread_db_ops): Adjust.
2217 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2218 (procfs_update_thread_list): ... this. Call prune_threads.
2219 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2220 Adjust.
2221 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2222 (obsd_update_thread_list): ... this. Call prune_threads.
2223 (obsd_add_target): Adjust.
2224 * procfs.c (procfs_target): Adjust.
2225 (procfs_notice_thread): Update comment.
2226 (procfs_find_new_threads): Rename to ...
2227 (procfs_update_thread_list): ... this. Call prune_threads.
2228 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2229 comment.
2230 (ravenscar_wait): Adjust.
2231 (ravenscar_find_new_threads): Rename to ...
2232 (ravenscar_update_thread_list): ... this. Call prune_threads.
2233 (init_ravenscar_thread_ops): Adjust.
2234 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2235 (record_btrace_update_thread_list): ... this. Adjust comment.
2236 (init_record_btrace_ops): Adjust.
2237 * remote.c (remote_threads_info): Rename to ...
2238 (remote_update_thread_list): ... this. Call prune_threads.
2239 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2240 Adjust.
2241 * sol-thread.c (check_for_thread_db): Adjust.
2242 (sol_find_new_threads_callback): Rename to ...
2243 (sol_update_thread_list_callback): ... this.
2244 (sol_find_new_threads): Rename to ...
2245 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2246 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2247 * target-delegates.c: Regenerate.
2248 * target.c (target_find_new_threads): Rename to ...
2249 (target_update_thread_list): ... this.
2250 * target.h (struct target_ops): Rename to_find_new_threads field
2251 to to_update_thread_list.
2252 (target_find_new_threads): Rename to ...
2253 (target_update_thread_list): ... this.
2254 * thread.c (prune_threads): Make extern.
2255 (update_thread_list): Adjust.
2256
6dc54d91
PA
22572014-10-15 Pedro Alves <palves@redhat.com>
2258
2259 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2260 Add describing comment. Return -1 if the qL packet is not
2261 supported.
2262 (struct thread_item, thread_item_t): Move higher up in
2263 the file. Add comments.
2264 (struct threads_parsing_context): Move higher up in
2265 the file, add comments, and remote to ...
2266 (struct threads_listing_context): ... this.
2267 (remote_newthread_step): Don't add the thread to GDB's thread
2268 database here. Instead push it to the thread_listing_context
2269 list.
2270 (remote_find_new_threads): Rename to ...
2271 (remote_get_threads_with_ql): ... this. Add target_ops and
2272 targets_listing_context parameters. Pass down context.
2273 (start_thread): Adjust.
2274 (clear_threads_parsing_context): Rename to ...
2275 (clear_threads_listing_context): ... this.
2276 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2277 remote_threads_info.
2278 (remote_get_threads_with_qthreadinfo): Ditto.
2279 (remote_threads_info): Reimplement.
2280
36728e82
PA
22812014-10-15 Pedro Alves <palves@redhat.com>
2282
2283 * infrun.c (resume): Don't force displaced-stepping for all
2284 single-steps on software single-stepping archs.
2285
34b7e8a6
PA
22862014-10-15 Pedro Alves <palves@redhat.com>
2287
2288 * breakpoint.c (single_step_breakpoints): Delete global.
2289 (insert_single_step_breakpoint): Adjust to store the breakpoint
2290 pointer in the current thread.
2291 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2292 (cancel_single_step_breakpoints): Delete functions.
2293 (breakpoint_has_location_inserted_here): Make extern.
2294 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2295 breakpoint list.
2296 * breakpoint.h (breakpoint_has_location_inserted_here): New
2297 declaration.
2298 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2299 (cancel_single_step_breakpoints): Remove declarations.
2300 * gdbthread.h (struct thread_control_state)
2301 <single_step_breakpoints>: New field.
2302 (delete_single_step_breakpoints)
2303 (thread_has_single_step_breakpoints_set)
2304 (thread_has_single_step_breakpoint_here): New declarations.
2305 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2306 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2307 (singlestep_pc): Delete globals.
2308 (infrun_thread_ptid_changed): Remove references to removed
2309 globals.
2310 (resume_cleanups): Delete the current thread's single-step
2311 breakpoints.
2312 (maybe_software_singlestep): Remove references to removed globals.
2313 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2314 delete_single_step_breakpoints.
2315 (init_wait_for_inferior): Remove references to removed globals.
2316 (delete_thread_infrun_breakpoints): Delete the thread's
2317 single-step breakpoints too.
2318 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2319 single-step breakpoints here.
2320 (delete_stopped_threads_single_step_breakpoints): New function.
2321 (adjust_pc_after_break): Adjust to use
2322 thread_has_single_step_breakpoints_set.
2323 (handle_inferior_event): Remove references to removed globals.
2324 Use delete_stopped_threads_single_step_breakpoints.
2325 (handle_signal_stop): Adjust to per-thread single-step
2326 breakpoints. Swap test order to do cheaper tests first.
2327 (switch_back_to_stepped_thread): Extend debug output. Remove
2328 references to removed globals.
2329 * record-full.c (record_full_wait_1): Adjust to per-thread
2330 single-step breakpoints.
2331 * thread.c (delete_single_step_breakpoints)
2332 (thread_has_single_step_breakpoints_set)
2333 (thread_has_single_step_breakpoint_here): New functions.
2334 (clear_thread_inferior_resources): Also delete the thread's
2335 single-step breakpoints.
2336
5b834a0a
PA
23372014-10-15 Pedro Alves <palves@redhat.com>
2338
2339 * thread.c (delete_thread_breakpoint): New function.
2340 (delete_step_resume_breakpoint)
2341 (delete_exception_resume_breakpoint): Use it.
2342 (delete_at_next_stop): New function.
2343 (clear_thread_inferior_resources): Use delete_at_next_stop.
2344
a1fd2fa5
PA
23452014-10-15 Pedro Alves <palves@redhat.com>
2346
2347 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2348 (breakpoint_inserted_here_p): ... here. Remove special case for
2349 software single-step breakpoints.
2350 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2351 (software_breakpoint_inserted_here_p): ... here. Remove special
2352 case for software single-step breakpoints.
2353 (bp_target_info_copy_insertion_state)
2354 (deprecated_insert_raw_breakpoint)
2355 (deprecated_remove_raw_breakpoint): Delete functions.
2356 * breakpoint.h (deprecated_insert_raw_breakpoint)
2357 (deprecated_remove_raw_breakpoint): Remove declarations.
2358
7c16b83e
PA
23592014-10-15 Pedro Alves <palves@redhat.com>
2360
2361 PR breakpoints/9649
2362 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2363 Delete array globals.
2364 (single_step_breakpoints): New global.
2365 (breakpoint_xfer_memory): Remove special handling for single-step
2366 breakpoints.
2367 (update_breakpoints_after_exec): Delete bp_single_step
2368 breakpoints.
2369 (detach_breakpoints): Remove special handling for single-step
2370 breakpoints.
2371 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2372 (bpstat_stop_status): Add comment.
2373 (bpstat_what, bptype_string, print_one_breakpoint_location)
2374 (adjust_breakpoint_address, init_bp_location): Handle
2375 bp_single_step.
2376 (new_single_step_breakpoint): New function.
2377 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2378 handling for single-step breakpoints.
2379 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2380 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2381 Rewrite.
2382 (detach_single_step_breakpoints, find_single_step_breakpoint):
2383 Delete functions.
2384 (breakpoint_has_location_inserted_here): New function.
2385 (single_step_breakpoint_inserted_here_p): Rewrite.
2386 * breakpoint.h: Remove FIXME.
2387 (enum bptype) <bp_single_step>: New enum value.
2388 (insert_single_step_breakpoint): Update comment.
2389 * infrun.c (resume_cleanups)
2390 (delete_step_thread_step_resume_breakpoint): Remove single-step
2391 breakpoints.
2392 (fetch_inferior_event): Install a cleanup that removes infrun
2393 breakpoints.
2394 (switch_back_to_stepped_thread) <expect thread advanced also>:
2395 Clear step-over info.
2396
0cbcdb96
PA
23972014-10-15 Pedro Alves <palves@redhat.com>
2398
2399 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2400 (delete_thread_infrun_breakpoints): New function, with parts
2401 salvaged from delete_step_resume_breakpoint_callback.
2402 (delete_step_thread_step_resume_breakpoint): Delete.
2403 (for_each_just_stopped_thread_callback_func): New typedef.
2404 (for_each_just_stopped_thread): New function.
2405 (delete_just_stopped_threads_infrun_breakpoints): New function.
2406 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2407 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2408 ... this. Adjust.
2409 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2410
963f9c80
PA
24112014-10-15 Pedro Alves <palves@redhat.com>
2412
2413 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2414 trying to step past a non-steppable watchpoint.
2415 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2416 field.
2417 * infrun.c (struct step_over_info): Add new field
2418 'nonsteppable_watchpoint_p' and adjust comments.
2419 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2420 Adjust.
2421 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2422 (stepping_past_nonsteppable_watchpoint): New function.
2423 (step_over_info_valid_p): Also return true if stepping past a
2424 nonsteppable watchpoint.
2425 (proceed): Adjust call to set_step_over_info. Remove reference to
2426 init_infwait_state.
2427 (init_wait_for_inferior): Remove reference to init_infwait_state.
2428 (waiton_ptid): Delete global.
2429 (struct execution_control_state)
2430 <stepped_after_stopped_by_watchpoint>: Delete field.
2431 (wait_for_inferior, fetch_inferior_event): Always pass
2432 minus_one_ptid to target_wait.
2433 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2434 field.
2435 (init_infwait_state): Delete function.
2436 (handle_inferior_event): Remove infwait_state handling.
2437 (handle_signal_stop) <watchpoints handling>: Adjust after
2438 stepped_after_stopped_by_watchpoint removal. Don't remove
2439 breakpoints here nor set infwait_state. Set the thread's
2440 stepping_over_watchpoint flag, and call keep_going instead.
2441 (keep_going): Handle stepping_over_watchpoint. Adjust
2442 set_step_over_info calls.
2443 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2444 function.
2445
6cc83d2a
PA
24462014-10-15 Pedro Alves <palves@redhat.com>
2447
2448 * infrun.c (step_over_info_valid_p): New function.
2449 (resume): Use step_over_info_valid_p instead of checking the
2450 threads's trap_expected flag.
2451
6979730b
DE
24522014-10-15 Doug Evans <dje@google.com>
2453 Walfred Tedeschi <walfred.tedeschi@intel.com>
2454
2455 PR python/17364
2456 * python/lib/gdb/__init__.py (packages): Add "printer".
2457 * python/lib/gdb/command/bound_registers.py: Moved to ...
2458 * python/lib/gdb/printer/bound_registers.py: ... here.
2459 Add printer to global set of builtin printers. Rename printer from
2460 "bound" to "mpx_bound128".
2461 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2462 registered as global "builtin" printer.
2463 (add_builtin_pretty_printer): New function.
2464 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2465 gdb/printer/__init__.py.
2466
35a49624
IB
24672014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2468
2469 * Makefile.in (SFILES): Remove d-support.c.
2470 (COMMON_OBS): Remove d-support.o.
2471 * d-lang.h (d_parse_symbol): Remove declaration.
2472 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2473 * d-support.c: Remove file.
2474
8fa0c4f8
AA
24752014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2476
2477 * gdb/infrun.c (process_event_stop_test): Apply
2478 gdbarch_addr_bits_remove to longjmp resume address.
2479
3666da81
PA
24802014-10-15 Pedro Alves <palves@redhat.com>
2481
2482 * regformats/microblaze.dat: Delete file.
2483
449aa9df
AKA
24842014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2485
2486 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2487 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2488
ebb8ece2
SC
24892014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2490
2491 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2492 as non-trivial.
2493
82c48ac7
SC
24942014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2495
2496 PR c++/13403
2497 PR c++/15154
2498 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2499 with qualified args.
2500
c40cc657
JB
25012014-10-14 Joel Brobecker <brobecker@adacore.com>
2502
2503 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2504 of the case where the second operand is a pointer.
2505 <BINOP_SUB>: Likewise.
2506
0ea5cda8
SDJ
25072014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2508
2509 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2510 only if it is not NULL.
2511 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2512 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2513 (struct probe_ops) <clear_semaphore>: Likewise.
2514 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2515 not NULL.
2516 (stop_tracing): Likewise, for clear_semaphore.
2517
f7088df3
SDJ
25182014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2519
2520 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2521 using language_c, instead of current_language.
2522
4e1bbde0
DE
25232014-10-13 Doug Evans <dje@google.com>
2524
6ff5a0f6 2525 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2526 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2527 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2528 (pspy_new, pspace_to_pspace_object): Call it.
2529
c780cc2f
JK
25302014-10-13 Miroslav Franc <mfranc@redhat.com>
2531 Jan Kratochvil <jan.kratochvil@redhat.com>
2532
2533 Fix "save breakpoints" for "catch" command.
2534 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2535 newline.
2536
99894e11
JK
25372014-10-12 Miroslav Franc <mfranc@redhat.com>
2538
2539 Fix "save breakpoints" for "disable $bpnum" command.
2540 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2541
3831839c
PA
25422014-10-10 Pedro Alves <palves@redhat.com>
2543
2544 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2545 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2546 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2547 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2548 and been removed.
2549 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2550 * configure.ac: Remove references to IRIX.
2551 * configure.host: Add *-*-irix* to the obsolete hosts section.
2552 Remove all other references to irix.
2553 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2554 Delete files.
2555
cc3afae2
AKA
25562014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2557
2558 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2559 isn't valid, release the tdesc arch data and return NULL.
2560
cdfa0b0a
PA
25612014-10-10 Pedro Alves <palves@redhat.com>
2562
2563 * linux-tdep.c: Include observer.h.
2564 (linux_inferior_data): New global.
2565 (struct linux_info): New structure.
2566 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2567 (get_linux_inferior_data): New functions.
2568 (linux_vsyscall_range): Rename to ...
2569 (linux_vsyscall_range_raw): ... this.
2570 (linux_vsyscall_range): New function; handles caching.
2571 (_initialize_linux_tdep): Register linux_inferior_data. Install
2572 inferior_exit and inferior_appeared observers.
2573
8b9a549d
PA
25742014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2575 Pedro Alves <palves@redhat.com>
2576
2577 PR symtab/14466
2578 * solib-svr4.c (svr4_read_so_list): Rename to ...
2579 (svr4_current_sos_1): ... this and change the function comment.
2580 (svr4_current_sos): New function.
2581
3437254d
PA
25822014-10-10 Pedro Alves <palves@redhat.com>
2583
2584 * arch-utils.c (default_vsyscall_range): New function.
2585 * arch-utils.h (default_vsyscall_range): New declaration.
2586 * gdbarch.sh (vsyscall_range): New hook.
2587 * gdbarch.h, gdbarch.c: Regenerate.
2588 * linux-tdep.c (linux_vsyscall_range): New function.
2589 (linux_init_abi): Install linux_vsyscall_range as
2590 vsyscall_range gdbarch hook.
2591 * memrange.c (address_in_mem_range): New function.
2592 * memrange.h (address_in_mem_range): New declaration.
2593 * symfile-mem.c (find_vdso_size): Delete function.
2594 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2595
31cc0b80
PA
25962014-10-10 Pedro Alves <palves@redhat.com>
2597
2598 * infrun.c (normal_stop): Fix typo in comment.
2599
3e3286a2
SDJ
26002014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2601
2602 PR tdep/9390
2603 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2604 typo when using logical AND to determine instruction type.
2605
fcbdedf8
YQ
26062014-10-09 Yao Qi <yao@codesourcery.com>
2607
2608 * infrun.c (handle_signal_stop): Remove local variable
2609 'printed'.
2610
db984616
SS
26112014-10-08 Stan Shebs <stan@codesourcery.com>
2612
2613 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2614
3ba37e6c
GB
26152014-10-08 Gary Benson <gbenson@redhat.com>
2616
2617 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2618
a442d071
GB
26192014-10-08 Gary Benson <gbenson@redhat.com>
2620
2621 * common/common-defs.h: Include common-exceptions.h.
2622 * exceptions.h: Do not include common-exceptions.h.
2623
6f1947e8
GB
26242014-10-08 Gary Benson <gbenson@redhat.com>
2625
2626 * common/common-defs.h: Include cleanups.h.
2627 * common/common-exceptions.c: Do not include cleanups.h.
2628 * utils.h: Likewise.
2629
c765fdb9
GB
26302014-10-08 Gary Benson <gbenson@redhat.com>
2631
2632 * ada-lang.c: Do not include exceptions.h.
2633 * ada-valprint.c: Likewise.
2634 * amd64-tdep.c: Likewise.
2635 * auto-load.c: Likewise.
2636 * block.c: Likewise.
2637 * break-catch-throw.c: Likewise.
2638 * breakpoint.c: Likewise.
2639 * btrace.c: Likewise.
2640 * c-lang.c: Likewise.
2641 * cli/cli-cmds.c: Likewise.
2642 * cli/cli-interp.c: Likewise.
2643 * cli/cli-script.c: Likewise.
2644 * completer.c: Likewise.
2645 * corefile.c: Likewise.
2646 * corelow.c: Likewise.
2647 * cp-abi.c: Likewise.
2648 * cp-support.c: Likewise.
2649 * cp-valprint.c: Likewise.
2650 * darwin-nat.c: Likewise.
2651 * dwarf2-frame-tailcall.c: Likewise.
2652 * dwarf2-frame.c: Likewise.
2653 * dwarf2loc.c: Likewise.
2654 * dwarf2read.c: Likewise.
2655 * eval.c: Likewise.
2656 * event-loop.c: Likewise.
2657 * event-top.c: Likewise.
2658 * f-valprint.c: Likewise.
2659 * frame-unwind.c: Likewise.
2660 * frame.c: Likewise.
2661 * gdbtypes.c: Likewise.
2662 * gnu-v2-abi.c: Likewise.
2663 * gnu-v3-abi.c: Likewise.
2664 * guile/scm-auto-load.c: Likewise.
2665 * guile/scm-breakpoint.c: Likewise.
2666 * guile/scm-cmd.c: Likewise.
2667 * guile/scm-frame.c: Likewise.
2668 * guile/scm-lazy-string.c: Likewise.
2669 * guile/scm-param.c: Likewise.
2670 * guile/scm-symbol.c: Likewise.
2671 * guile/scm-type.c: Likewise.
2672 * hppa-hpux-tdep.c: Likewise.
2673 * i386-tdep.c: Likewise.
2674 * inf-loop.c: Likewise.
2675 * infcall.c: Likewise.
2676 * infcmd.c: Likewise.
2677 * infrun.c: Likewise.
2678 * interps.c: Likewise.
2679 * interps.h: Likewise.
2680 * jit.c: Likewise.
2681 * linespec.c: Likewise.
2682 * linux-nat.c: Likewise.
2683 * linux-thread-db.c: Likewise.
2684 * m32r-rom.c: Likewise.
2685 * main.c: Likewise.
2686 * memory-map.c: Likewise.
2687 * mi/mi-cmd-break.c: Likewise.
2688 * mi/mi-cmd-stack.c: Likewise.
2689 * mi/mi-interp.c: Likewise.
2690 * mi/mi-main.c: Likewise.
2691 * monitor.c: Likewise.
2692 * nto-procfs.c: Likewise.
2693 * objc-lang.c: Likewise.
2694 * p-valprint.c: Likewise.
2695 * parse.c: Likewise.
2696 * ppc-linux-tdep.c: Likewise.
2697 * printcmd.c: Likewise.
2698 * probe.c: Likewise.
2699 * python/py-auto-load.c: Likewise.
2700 * python/py-breakpoint.c: Likewise.
2701 * python/py-cmd.c: Likewise.
2702 * python/py-finishbreakpoint.c: Likewise.
2703 * python/py-frame.c: Likewise.
2704 * python/py-framefilter.c: Likewise.
2705 * python/py-function.c: Likewise.
2706 * python/py-gdb-readline.c: Likewise.
2707 * python/py-inferior.c: Likewise.
2708 * python/py-infthread.c: Likewise.
2709 * python/py-lazy-string.c: Likewise.
2710 * python/py-linetable.c: Likewise.
2711 * python/py-param.c: Likewise.
2712 * python/py-prettyprint.c: Likewise.
2713 * python/py-symbol.c: Likewise.
2714 * python/py-type.c: Likewise.
2715 * python/py-value.c: Likewise.
2716 * python/python-internal.h: Likewise.
2717 * python/python.c: Likewise.
2718 * record-btrace.c: Likewise.
2719 * record-full.c: Likewise.
2720 * regcache.c: Likewise.
2721 * remote-fileio.c: Likewise.
2722 * remote-mips.c: Likewise.
2723 * remote.c: Likewise.
2724 * rs6000-aix-tdep.c: Likewise.
2725 * rs6000-nat.c: Likewise.
2726 * skip.c: Likewise.
2727 * solib-darwin.c: Likewise.
2728 * solib-dsbt.c: Likewise.
2729 * solib-frv.c: Likewise.
2730 * solib-ia64-hpux.c: Likewise.
2731 * solib-spu.c: Likewise.
2732 * solib-svr4.c: Likewise.
2733 * solib.c: Likewise.
2734 * spu-tdep.c: Likewise.
2735 * stack.c: Likewise.
2736 * stap-probe.c: Likewise.
2737 * symfile-mem.c: Likewise.
2738 * symmisc.c: Likewise.
2739 * target.c: Likewise.
2740 * thread.c: Likewise.
2741 * top.c: Likewise.
2742 * tracepoint.c: Likewise.
2743 * tui/tui-interp.c: Likewise.
2744 * typeprint.c: Likewise.
2745 * utils.c: Likewise.
2746 * valarith.c: Likewise.
2747 * valops.c: Likewise.
2748 * valprint.c: Likewise.
2749 * value.c: Likewise.
2750 * varobj.c: Likewise.
2751 * windows-nat.c: Likewise.
2752 * xml-support.c: Likewise.
2753
484933d1
MR
27542014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2755
2756 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2757 name implies.
2758 (extended_mips16_next_pc): Update accordingly.
2759
ab50adb6
MR
27602014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2761
2762 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2763 function.
2764 (micromips_instruction_is_compact_branch): Likewise.
2765 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2766 or a compact jump, reaching a jump delay slot, or seeing a
2767 second non-prologue instruction.
2768 (micromips_scan_prologue): Also terminate scanning upon seeing a
2769 compact branch or jump, or reaching a branch or jump delay slot.
2770 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2771 or jump delay slot, or seeing a second non-prologue instruction.
2772 (mips32_instruction_has_delay_slot): Retain instruction
2773 examination code only, update arguments accordingly and move
2774 instruction fetch pieces to...
2775 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2776 (micromips_instruction_has_delay_slot): Likewise and to...
2777 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2778 (mips16_instruction_has_delay_slot): Likewise and to...
2779 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2780 (mips_single_step_through_delay): Update accordingly.
2781 (mips_adjust_breakpoint_address): Likewise.
2782
ae790652
MR
27832014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2784
2785 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2786 !mustbe32 also return 1 for 32-bit instructions.
2787 (mips16_instruction_has_delay_slot): Likewise. Add an
2788 explanatory comment.
2789
9b807e7b
MR
27902014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2791
2792 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2793 symbols special.
2794
0d5ed153
MR
27952014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2796
2797 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2798 update comments.
2799 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2800 for the breakpoint's address. Don't preinitialize `placed_size'.
2801 (insert_bp_location): Set `reqstd_address' rather than
2802 `placed_address'.
2803 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2804 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2805 address.
2806 (bkpt_remove_location): Likewise.
2807 (deprecated_insert_raw_breakpoint): Likewise.
2808 (deprecated_remove_raw_breakpoint): Likewise.
2809 (find_single_step_breakpoint): Likewise.
2810 * mem-break.c (default_memory_insert_breakpoint): Use
2811 `reqstd_address' for the breakpoint's address. Don't set
2812 `placed_address' or `placed_size' if breakpoint contents couldn't
2813 have been determined.
2814 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2815 the breakpoint's address.
2816 (remote_insert_hw_breakpoint): Likewise. Don't set
2817 `placed_address' or `placed_size' if breakpoint couldn't have been
2818 set.
2819 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2820 `reqstd_address' for the breakpoint's address.
2821 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2822 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2823 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2824 * microblaze-linux-tdep.c
2825 (microblaze_linux_memory_remove_breakpoint): Likewise.
2826 * monitor.c (monitor_insert_breakpoint): Likewise.
2827 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2828 (procfs_insert_hw_breakpoint): Likewise.
2829 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2830 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2831 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2832 * remote-mips.c (mips_insert_breakpoint): Likewise.
2833 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2834
3e871532
LM
28352014-10-03 Luis Machado <lgustavo@codesourcery.com>
2836
2837 * valops.c (value_assign): Check for bit field assignments
2838 before calling architecture-specific register value
2839 conversion functions.
2840
ec48dc8b
PM
28412014-10-03 Pierre Muller <muller@sourceware.org>
2842
2843 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2844
b57bacec
PA
28452014-10-02 Pedro Alves <palves@redhat.com>
2846
2847 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2848 threads_are_executing.
2849 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2850 describing comment.
2851 * gdbthread.h (threads_are_executing): Declare.
2852 (handle_signal_stop) <random signals>: Don't print about the
2853 signal here if stopping.
2854 (end_stepping_range): Don't notify observers here.
2855 (normal_stop): Update the thread list. If stopped by a random
2856 signal or a stepping range ended, notify observers.
2857 * thread.c (threads_executing): New global.
2858 (init_thread_list): Clear 'threads_executing'.
2859 (set_executing): Set or clear 'threads_executing'.
2860 (threads_are_executing): New function.
2861 (update_threads_executing): New function.
2862 (update_thread_list): Use it.
2863
13fd3ff3
PA
28642014-10-02 Pedro Alves <palves@redhat.com>
2865
2866 PR breakpoints/17431
2867 * breakpoint.c (update_breakpoints_after_exec): Don't create
2868 overlay, longjmp, std terminate nor exception breakpoints here.
2869
32990ada
PA
28702014-10-02 Pedro Alves <palves@redhat.com>
2871
2872 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2873 Adjust comments.
2874 * inferior.c (find_inferior_for_program_space): Give preference to
2875 the current inferior.
2876 * inferior.h (find_inferior_for_program_space): Update comment.
2877 * progspace.c (switch_to_program_space_and_thread): Prefer the
2878 current inferior if it's bound to the program space requested. If
2879 the inferior found doesn't have a PID yet, don't bother looking up
2880 a thread.
2881 * progspace.h (switch_to_program_space_and_thread): Adjust
2882 comment.
2883 * thread.c (any_thread_of_process, any_live_thread_of_process):
2884 Give preference to the current thread.
2885
0fec99e8
PA
28862014-10-01 Pedro Alves <palves@redhat.com>
2887
2888 * breakpoint.c (insert_bp_location): Error out if inserting a
2889 software breakpoint at a read-only address.
2890 * target.c (memory_xfer_check_region): New function, factored out
2891 from ...
2892 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2893 ULONGEST.
2894 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2895 against the memory region attributes.
2896
2ddf4301
SM
28972014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2898
2899 * NEWS: Announce new exit-code field in -list-thread-groups
2900 output.
2901 * inferior.c (exit_inferior_1): Don't clear exit code.
2902 (inferior_appeared): Clear exit code.
2903 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2904 code.
2905
5fdeec1d
PA
29062014-10-01 Pedro Alves <palves@redhat.com>
2907
2908 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2909 GENERATED" along with emacs/vi read-only markers.
2910 * regformats/aarch64.dat: Regenerate.
2911 * regformats/arm-with-iwmmxt.dat: Regenerate.
2912 * regformats/arm-with-neon.dat: Regenerate.
2913 * regformats/arm-with-vfpv2.dat: Regenerate.
2914 * regformats/arm-with-vfpv3.dat: Regenerate.
2915 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2916 * regformats/i386/amd64-avx.dat: Regenerate.
2917 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2918 * regformats/i386/amd64-avx512.dat: Regenerate.
2919 * regformats/i386/amd64-linux.dat: Regenerate.
2920 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2921 * regformats/i386/amd64-mpx.dat: Regenerate.
2922 * regformats/i386/amd64.dat: Regenerate.
2923 * regformats/i386/i386-avx-linux.dat: Regenerate.
2924 * regformats/i386/i386-avx.dat: Regenerate.
2925 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2926 * regformats/i386/i386-avx512.dat: Regenerate.
2927 * regformats/i386/i386-linux.dat: Regenerate.
2928 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2929 * regformats/i386/i386-mmx.dat: Regenerate.
2930 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2931 * regformats/i386/i386-mpx.dat: Regenerate.
2932 * regformats/i386/i386.dat: Regenerate.
2933 * regformats/i386/x32-avx-linux.dat: Regenerate.
2934 * regformats/i386/x32-avx.dat: Regenerate.
2935 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2936 * regformats/i386/x32-avx512.dat: Regenerate.
2937 * regformats/i386/x32-linux.dat: Regenerate.
2938 * regformats/i386/x32.dat: Regenerate.
2939 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2940 * regformats/mips-dsp-linux.dat: Regenerate.
2941 * regformats/mips-linux.dat: Regenerate.
2942 * regformats/mips64-dsp-linux.dat: Regenerate.
2943 * regformats/mips64-linux.dat: Regenerate.
2944 * regformats/nios2-linux.dat: Regenerate.
2945 * regformats/rs6000/powerpc-32.dat: Regenerate.
2946 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2947 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2948 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2949 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2950 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2951 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2952 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2953 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2954 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2955 * regformats/s390-linux32.dat: Regenerate.
2956 * regformats/s390-linux32v1.dat: Regenerate.
2957 * regformats/s390-linux32v2.dat: Regenerate.
2958 * regformats/s390-linux64.dat: Regenerate.
2959 * regformats/s390-linux64v1.dat: Regenerate.
2960 * regformats/s390-linux64v2.dat: Regenerate.
2961 * regformats/s390-te-linux64.dat: Regenerate.
2962 * regformats/s390x-linux64.dat: Regenerate.
2963 * regformats/s390x-linux64v1.dat: Regenerate.
2964 * regformats/s390x-linux64v2.dat: Regenerate.
2965 * regformats/s390x-te-linux64.dat: Regenerate.
2966 * regformats/tic6x-c62x-linux.dat: Regenerate.
2967 * regformats/tic6x-c62x.dat: Regenerate.
2968 * regformats/tic6x-c64x-linux.dat: Regenerate.
2969 * regformats/tic6x-c64x.dat: Regenerate.
2970 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2971 * regformats/tic6x-c64xp.dat: Regenerate.
2972
db74e4ba
PA
29732014-10-01 Pedro Alves <palves@redhat.com>
2974
2975 * features/Makefile: Update comments.
2976 (XMLTOC): List all xml files we build C files from.
2977 (clean-cfiles): New rule.
2978
d63f2f84
PA
29792014-10-01 Pedro Alves <palves@redhat.com>
2980
2981 * features/i386/amd64-avx512-linux.c: Regenerate.
2982 * features/i386/amd64-avx512.c: Regenerate.
2983 * features/i386/x32-avx512-linux.c: Regenerate.
2984 * features/i386/x32-avx512.c: Regenerate.
2985
20ad026d
PA
29862014-10-01 Pedro Alves <palves@redhat.com>
2987
2988 * features/Makefile (WHICH): Remove arm-with-m,
2989 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2990
acc9fe45
PA
29912014-10-01 Pedro Alves <palves@redhat.com>
2992
2993 * features/Makefile (clean): New rule.
2994
e001e535
PA
29952014-10-01 Pedro Alves <palves@redhat.com>
2996
2997 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2998 (zmm14h): Add missing end quotes.
2999
bdc14417
PA
30002014-10-01 Pedro Alves <palves@redhat.com>
3001
3002 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3003 * features/aarch64.c: Regenerate.
3004
d83ad864
DB
30052014-09-30 Don Breazeal <donb@codesourcery.com>
3006
3007 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3008 code so as to work with follow_fork_inferior.
3009 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3010 (inf_ttrace_create_inferior): Remove reference to
3011 inf_ttrace_vfork_ppid.
3012 (inf_ttrace_attach): Ditto.
3013 (inf_ttrace_detach): Ditto.
3014 (inf_ttrace_kill): Use current_inferior instead of
3015 inf_ttrace_vfork_ppid.
3016 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3017 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3018 inferior away from the parent.
3019 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3020 target_follow_fork.
3021 (follow_fork_inferior): New function.
3022 (follow_inferior_reset_breakpoints): Make function static.
3023 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3024 * linux-nat.c (linux_child_follow_fork): Move target-independent
3025 code to infrun.c:follow_fork_inferior.
3026
29082443
AA
30272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3028
3029 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3030 * gdbarch.c: Regenerate.
3031 * gdbarch.h: Likewise.
3032 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3033 gdbarch method 'regset_from_core_section'.
3034 (get_core_register_section): Remove handling for the case that
3035 regset == NULL and regset_from_core_section is defined.
3036 (get_core_registers): Drop check for deleted method.
3037 * procfs.c (procfs_do_thread_registers): Adjust comment.
3038
f968fe80
AA
30392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3040
3041 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3042 (linux_nat_make_corefile_notes): Remove.
3043 (linux_target_install_ops): Do not set target method
3044 'make_corefile_notes'.
3045 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3046 Remove field.
3047 (linux_corefile_thread_callback): Instead of args->collect, call
3048 linux_collect_thread_registers.
3049 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3050 NULL unless there is a regset iterator.
3051 (linux_make_corefile_notes_1): Remove.
3052 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3053 by linux_make_corefile_notes.
3054 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3055
174ad59a
AA
30562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3057
3058 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3059 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3060 Remove.
3061 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3062
97094034
AA
30632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3064
3065 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3066 (xtensa_iterate_over_regset_sections): New.
3067 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3068
f73d3ce7
AA
30692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3070
3071 * vax-tdep.c (vax_regset_from_core_section): Remove.
3072 (vax_iterate_over_regset_sections): New.
3073 (vax_gdbarch_init): Adjust gdbarch initialization.
3074
cb24567a
AA
30752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3076
3077 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3078 (tilegx_regset_from_core_section): Remove.
3079 (tilegx_iterate_over_regset_sections): New.
3080 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3081
e5139de8
AA
30822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3083
3084 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3085 (sparc_iterate_over_regset_sections): New.
3086 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3087 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3088 targets.
3089 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3090 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3091 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3092 target method 'make_corefile_notes'.
3093
c6d41a6f
AA
30942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095
3096 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3097 'sizeof_gregset' and 'sizeof_fpregset'.
3098 * sh-tdep.c (sh_regset_from_core_section): Remove.
3099 (sh_iterate_over_regset_sections): New.
3100 (sh_gdbarch_init): Adjust gdbarch initialization.
3101 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3102 sizeof_fpregset.
3103 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3104 'sizeof_gregset'.
3105
9845a0b5
AA
31062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3107
3108 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3109 (score7_linux_iterate_over_regset_sections): New.
3110 (score_gdbarch_init): Adjust gdbarch initialization.
3111
23ea9aeb
AA
31122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3113
3114 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3115 FreeBSD targets.
3116 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3117 method 'make_corefile_notes'.
3118 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3119 (ppcfbsd_regset_from_core_section): Remove.
3120 (ppcfbsd_iterate_over_regset_sections): New.
3121 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3122 initialization.
3123 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3124 (ppcnbsd_iterate_over_regset_sections): New.
3125 (ppcnbsd_init_abi): Adjust.
3126 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3127 (ppcobsd_iterate_over_regset_sections): New.
3128 (ppcobsd_init_abi): Adjust.
3129 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3130 (rs6000_aix_iterate_over_regset_sections): New.
3131 (rs6000_aix_init_osabi): Adjust.
3132
c5b8d704
AA
31332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134
3135 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3136 (nios2_regset_from_core_section): Remove.
3137 (nios2_iterate_over_regset_sections): New.
3138 (nios2_linux_init_abi): Adjust gdbarch initialization.
3139
3636e608
AA
31402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3141
3142 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3143 (am33_iterate_over_regset_sections): New.
3144 (am33_linux_init_osabi): Adjust gdbarch initialization.
3145
d4036235
AA
31462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3147
3148 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3149 (mips_linux_iterate_over_regset_sections): New.
3150 (mips_linux_init_abi): Adjust gdbarch initialization.
3151 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3152 (mips64obsd_iterate_over_regset_sections): New.
3153 (mips64obsd_init_abi): Adjust.
3154 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3155 (mipsnbsd_iterate_over_regset_sections): New.
3156 (mipsnbsd_init_abi): Adjust.
3157
b61ddd6e
AA
31582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3159
3160 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3161 (m88k_iterate_over_regset_sections): New.
3162 (m88k_gdbarch_init): Adjust gdbarch initialization.
3163
55a2906a
AA
31642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3165
3166 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3167 (ia64_linux_iterate_over_regset_sections): New.
3168 (ia64_linux_init_abi): Adjust gdbarch initialization.
3169
022c98ab
AA
31702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171
3172 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3173 (m68kbsd_iterate_over_regset_sections): New.
3174 (m68kbsd_init_abi): Adjust gdbarch initialization.
3175 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3176 (m68k_linux_iterate_over_regset_sections): New.
3177 (m68k_linux_init_abi): Adjust gdbarch initialization.
3178
5fac247f
AA
31792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3180
3181 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3182 (m32r_linux_regset_from_core_section): Remove.
3183 (m32r_linux_iterate_over_regset_sections): New.
3184 (m32r_linux_init_abi): Adjust gdbarch initialization.
3185
490496c3
AA
31862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3187
3188 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3189 (amd64obsd_iterate_over_regset_sections): New.
3190 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3191 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3192 Remove.
3193 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3194 regset_from_core_section initialization.
3195 * i386-tdep.c (i386_regset_from_core_section): Remove.
3196 (i386_iterate_over_regset_sections): New.
3197 (i386_gdbarch_init): Adjust gdbarch initialization.
3198 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3199 (i386_iterate_over_regset_sections): New prototype.
3200 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3201 Remove.
3202 (i386obsd_aout_iterate_over_regset_sections): New.
3203 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3204 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3205 targets.
3206 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3207 (amd64fbsd_init_abi): Call fbsd_init_abi.
3208 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3209 (i386fbsd4_init_abi): Call fbsd_init_abi.
3210 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3211 target method 'make_corefile_notes'.
3212 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3213
50c5eb53
AA
32142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3215
3216 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3217 (hppa_hpux_iterate_over_regset_sections): New.
3218 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3219 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3220 (hppa_linux_iterate_over_regset_sections): New.
3221 (hppa_linux_init_abi): Adjust.
3222 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3223 (hppanbsd_iterate_over_regset_sections): New.
3224 (hppanbsd_init_abi): Adjust.
3225 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3226 (hppaobsd_iterate_over_regset_sections): New.
3227 (hppaobsd_init_abi): Adjust.
3228
66afae4f
AA
32292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3230
3231 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3232 (frv_linux_iterate_over_regset_sections): New.
3233 (frv_linux_init_abi): Adjust gdbarch initialization.
3234
ed09174e
AA
32352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3236
3237 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3238 (armbsd_iterate_over_regset_sections): New prototype.
3239 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3240 (armbsd_iterate_over_regset_sections): New.
3241 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3242 initialization.
3243
dff2166e
AA
32442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245
3246 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3247 (alpha_linux_iterate_over_regset_sections): New.
3248 (alpha_linux_init_abi): Adjust gdbarch initialization.
3249 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3250 prototype.
3251 (alphanbsd_iterate_over_regset_sections): New prototype.
3252
4108500a
AA
32532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3254
3255 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3256 Remove.
3257 (aarch64_linux_iterate_over_regset_sections): New.
3258 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3259
a904c024
AA
32602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3261
3262 * fbsd-tdep.c: New file.
3263 * fbsd-tdep.h: New file.
3264 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3265 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3266 (ALLDEPFILES): Add fbsd-tdep.c.
3267
8f0435f7
AA
32682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269
3270 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3271 parameter.
3272 * gdbarch.h: Regenerate.
3273 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3274 iterator.
3275 (get_core_register_section): Add parameter 'regset' and use it, if
3276 set. Add parameter 'min_size' and verify the bfd section size
3277 against it.
3278 (get_core_registers_cb): Add parameter 'regset' and pass it to
3279 get_core_register section. For the "standard" register sections
3280 ".reg" and ".reg2", set an appropriate default for human_name.
3281 (get_core_registers): Don't abort when the gdbarch has an iterator
3282 but no regset_from_core_section. Add NULL/0 for parameters
3283 'regset'/'min_size' in calls to get_core_register_section.
3284 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3285 'regset' and use it instead of calling the
3286 regset_from_core_section gdbarch method.
3287 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3288 * i386-tdep.c (i386_supply_xstateregset)
3289 (i386_collect_xstateregset, i386_xstateregset): Moved to
3290 i386-linux-tdep.c.
3291 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3292 .reg-xstate.
3293 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3294 core file support only if the regset iterator hasn't been set.
3295 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3296 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3297 Moved from i386-tdep.c and renamed to *_linux*.
3298 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3299 each callback invocation. Allow any .reg-xstate size when reading
3300 from a core file.
3301 * amd64-tdep.c (amd64_supply_xstateregset)
3302 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3303 amd64-linux-tdep.c.
3304 (amd64_regset_from_core_section): Remove.
3305 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3306 install an amd64-specific regset_from_core_section gdbarch method.
3307 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3308 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3309 Moved from amd64-tdep.c and renamed to *_linux*.
3310 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3311 to each callback invocation. Allow any .reg-xstate size when
3312 reading from a core file.
3313 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3314 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3315 each callback invocation.
3316 (arm_linux_init_abi): No longer set the regset_from_core_section
3317 gdbarch method.
3318 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3319 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3320 each callback invocation.
3321 (ppc_linux_init_abi): No longer set the regset_from_core_section
3322 gdbarch method.
3323 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3324 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3325 (s390_regset_from_core_section): Remove.
3326 (s390_iterate_over_regset_sections): Add regset parameter to each
3327 callback invocation.
3328 (s390_gdbarch_init): No longer set the regset_from_core_section
3329 gdbarch method. Drop initialization of deleted tdep fields.
3330
5aa82d05
AA
33312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3332
3333 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3334 (amd64_linux_iterate_over_regset_sections): New.
3335 (amd64_linux_init_abi_common): Don't install the regset section
3336 list, but the new iterator in gdbarch.
3337 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3338 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3339 (arm_linux_iterate_over_regset_sections): ...here. New function.
3340 (arm_linux_init_abi): Set iterator instead of section list.
3341 * corelow.c (get_core_registers_cb): New function, logic moved
3342 from...
3343 (get_core_registers): ...loop body here. Use new iterator method
3344 instead of walking through the regset section list.
3345 * gdbarch.sh: Remove 'core_regset_sections'. New method
3346 'iterate_over_regset_sections'. New typedef
3347 'iterate_over_regset_sections_cb'.
3348 * gdbarch.c: Regenerate.
3349 * gdbarch.h: Likewise.
3350 * i386-linux-tdep.c (i386_linux_regset_sections)
3351 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3352 Remove.
3353 (i386_linux_iterate_over_regset_sections): New.
3354 (i386_linux_init_abi): Don't choose a regset section list, but
3355 install new iterator in gdbarch.
3356 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3357 (linux_collect_regset_section_cb): New function, logic moved
3358 from...
3359 (linux_collect_thread_registers): ...loop body here. Use iterator
3360 method instead of walking through list.
3361 (linux_make_corefile_notes_1): Check for presence of iterator
3362 method instead of regset section list.
3363 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3364 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3365 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3366 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3367 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3368 (ppc_linux_init_abi): Don't choose from above regset section
3369 lists, but install new iterator in gdbarch.
3370 * regset.h (struct core_regset_section): Remove.
3371 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3372 have_linux_v1, have_linux_v2, and have_tdb.
3373 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3374 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3375 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3376 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3377 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3378 (s390_iterate_over_regset_sections): ...here. New function. Use
3379 new tdep fields.
3380 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3381 regset section lists, but install new iterator.
3382
2eca4a8d
JK
33832014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3386
a73c2b56
SM
33872014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3388
3389 * progspace.c (print_program_space): Don't prune program spaces
3390 before printing them.
3391
03d46957
PA
33922014-09-25 Pedro Alves <palves@redhat.com>
3393
3394 * infrun.c (user_visible_resume_ptid): Don't check
3395 singlestep_breakpoints_inserted_p.
3396
e558d7c1
PA
33972014-09-25 Pedro Alves <palves@redhat.com>
3398
3399 * breakpoint.c (should_be_inserted): Add debug output.
3400
7f89fd65
PA
34012014-09-25 Pedro Alves <palves@redhat.com>
3402
3403 * infrun.c (stepping_past_instruction_at)
3404 (clear_exit_convenience_vars): Point at infrun.h instead of
3405 inferior.h.
3406 (handle_signal_stop): Fix typo.
3407
b7576e5c
YQ
34082014-09-24 Yao Qi <yao@codesourcery.com>
3409
3410 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3411 bitmask.
3412
9a6cf368
GB
34132014-09-22 Gary Benson <gbenson@redhat.com>
3414
3415 * target.c (target_stop): Updated comment.
3416
03f4463b
GB
34172014-09-22 Gary Benson <gbenson@redhat.com>
3418
3419 * target/target.h (target_stop_ptid): Renamed as...
3420 (target_stop_and_wait): New function. Updated comment.
3421 All uses updated.
3422 (target_continue_ptid): Renamed as...
3423 (target_continue_no_signal): New function. Updated comment.
3424 All uses updated.
3425
a25a5a45
PA
34262014-09-22 Pedro Alves <palves@redhat.com>
3427
3428 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3429 and "auto" merged.
3430 * breakpoint.c (enum ugll_insert_mode): New enum.
3431 (always_inserted_mode): Now a plain boolean.
3432 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3433 (breakpoints_always_inserted_mode): Delete.
3434 (breakpoints_should_be_inserted_now): New function.
3435 (insert_breakpoints): Pass UGLL_INSERT to
3436 update_global_location_list instead of calling
3437 insert_breakpoint_locations manually.
3438 (create_solib_event_breakpoint_1): New, factored out from ...
3439 (create_solib_event_breakpoint): ... this.
3440 (create_and_insert_solib_event_breakpoint): Use
3441 create_solib_event_breakpoint_1 instead of calling
3442 insert_breakpoint_locations manually.
3443 (update_global_location_list): Change parameter type from boolean
3444 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3445 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3446 (update_global_location_list_nothrow): Change parameter type from
3447 boolean to enum ugll_insert_mode.
3448 (_initialize_breakpoint): "breakpoint always-inserted" option is
3449 now a boolean command. Update help text.
3450 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3451 (breakpoints_should_be_inserted_now): New declaration.
3452 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3453 Remove breakpoints_always_inserted_mode check.
3454 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3455 * remote.c (remote_start_remote): Likewise.
3456
04086b45
PA
34572014-09-22 Pedro Alves <palves@redhat.com>
3458
3459 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3460 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3461 Instead, pass UGLL_INSERT to update_global_location_list.
3462 (update_global_location_list): Change parameter type from boolean
3463 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3464 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3465 (create_solib_event_breakpoint_1): New, factored out from ...
3466 (create_solib_event_breakpoint): ... this.
3467 (create_and_insert_solib_event_breakpoint): Use
3468 create_solib_event_breakpoint_1 instead of calling
3469 insert_breakpoint_locations manually.
3470 (update_global_location_list): Handle UGLL_INSERT.
3471
44702360
PA
34722014-09-22 Pedro Alves <palves@redhat.com>
3473
3474 * breakpoint.c (enum ugll_insert_mode): New enum.
3475 (update_global_location_list)
3476 (update_global_location_list_nothrow): Change parameter type from
3477 boolean to enum ugll_insert_mode. All callers adjusted.
3478
93c6145a
JB
34792014-09-19 Joel Brobecker <brobecker@adacore.com>
3480
3481 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3482 SystemTap support in GDB.
3483
89a5711c
DB
34842014-09-19 Don Breazeal <donb@codesourcery.com>
3485
3486 * linux-nat.c (linux_handle_extended_wait): Call
3487 linux_ptrace_get_extended_event.
3488 (wait_lwp): Call linux_is_extended_waitstatus.
3489 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3490 and linux_is_extended_waitstatus.
3491 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3492 linux_ptrace_get_extended_event.
3493 (linux_ptrace_get_extended_event): New function.
3494 (linux_is_extended_waitstatus): New function.
3495 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3496 (linux_is_extended_waitstatus): New declarations.
3497
c3b7b696
YQ
34982014-09-19 Yao Qi <yao@codesourcery.com>
3499
3500 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3501 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3502 comments. Callers update.
3503 (dwarf_decode_lines): Likewise.
3504 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3505 comments. Skip the line table if 'lowpc' is greater than
3506 'address'. Don't check
3507 dwarf2_per_objfile->has_section_at_zero.
3508
2b4fd423
DE
35092014-09-18 Doug Evans <dje@google.com>
3510
3511 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3512 * python/py-symtab.c (stpy_get_producer): New function.
3513 (symtab_object_getset): Add "producer" attribute.
3514
5e43d467
UW
35152014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3516
3517 PR gdb/17384
3518 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3519 (do_captured_read_memory_integer): Remove.
3520 (safe_read_memory_integer): Use target_read_memory directly instead
3521 of catching errors in do_captured_read_memory_integer.
3522
04e79979
MR
35232014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3524
3525 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3526 not gdb/doc.
3527
76aeec5b
SDJ
35282014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3529
3530 * objc-lang.c (find_implementation_from_class): Remove dead code.
3531
2f693f9d
SDJ
35322014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3533
3534 PR cli/7233
3535 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3536 "fprintf_unfiltered (gdb_stdlog...)".
3537
bb9d5f81
PP
35382014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3539
3540 PR breakpoints/12526
3541 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3542 val_bitsize.
3543 * breakpoint.c (watch_command_1): Use these fields to retain
3544 bitfield information.
3545 (extract_bitfield_from_watchpoint_value): New function.
3546 (watchpoint_check): Use it.
3547 (update_watchpoint): Use it. Optimize the address and length of a
3548 HW watchpoint pointing to a bitfield.
3549 * value.h (unpack_value_bitfield): New prototype.
3550 * value.c (unpack_value_bitfield): Make extern.
3551
05db5edd
ST
35522014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3553
3554 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3555 x86-dregs.o.
3556 * gnu-nat.c (inf_threads): New function.
3557 * gnu-nat.h (inf_threads_ftype): New typedef.
3558 (inf_threads): New declaration.
3559 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3560 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3561 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3562 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3563 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3564 (i386_gnu_dr_get_control): New functions.
3565 (reg_addr): New structure.
3566 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3567 i386 debugging register hooks.
3568 * NEWS: Mention this.
3569
5a578da5
OJ
35702014-08-13 Omair Javaid <omair.javaid@linaro.org>
3571
3572 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3573 vector data transfer instructions.
3574 (arm_record_coproc_data_proc): Updated.
3575
f20f80dd
OJ
35762014-08-13 Omair Javaid <omair.javaid@linaro.org>
3577
3578 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3579 arm_record_exreg_ld_st_insn.
3580 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3581 load/store insns.
3582
851f26ae
OJ
35832014-08-13 Omair Javaid <omair.javaid@linaro.org>
3584
3585 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3586 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3587 processing instructions.
3588
1e1b6563
OJ
35892014-08-13 Omair Javaid <omair.javaid@linaro.org>
3590
3591 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3592 for advance SIMD struct ld/st insn.
3593 (thumb2_record_decode_insn_handler): Replace stub handler with
3594 thumb2_record_asimd_struct_ld_st.
3595
60cc5e93
OJ
35962014-08-13 Omair Javaid <omair.javaid@linaro.org>
3597
3598 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3599 for asimd, vfp and coprocessor insns.
3600 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3601 and coprocessor insns.
3602 (thumb2_record_coproc_insn): New function.
3603 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3604 handlers.
3605 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3606 opcode 110 insns.
3607
81219e53
DE
36082014-09-13 Doug Evans <xdje42@gmail.com>
3609
3610 * NEWS: Mention new "queue-signal" command.
3611 * infcmd.c (queue_signal_command): New function.
3612 (_initialize_infcmd): Add new queue-signal command.
3613
d36bf488
DE
36142014-09-13 Doug Evans <xdje42@gmail.com>
3615
3616 * linux-nat.c (wait_lwp): Add debugging printf.
3617 (linux_nat_wait_1): Ditto.
3618
f37f681c
PA
36192014-09-12 Pedro Alves <palves@redhat.com>
3620
3621 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3622 (create_and_insert_solib_event_breakpoint): New functions.
3623 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3624 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3625 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3626 (remove_dbx_link_breakpoint): Delete function.
3627 (insert_dbx_link_bpt_in_file): Use
3628 create_and_insert_solib_event_breakpoint instead of
3629 deprecated_insert_raw_breakpoint.
3630 (procfs_wait): Don't check whether we hit __dbx_link here.
3631 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3632 here.
3633 * solib-irix.c (base_breakpoint): Delete global.
3634 (disable_break): Delete function.
3635 (enable_break): Use create_solib_event_breakpoint
3636 instead of deprecated_insert_raw_breakpoint.
3637 (irix_solib_handle_event): New function.
3638 (irix_solib_create_inferior_hook): Don't run the target or disable
3639 the mapping-complete breakpoint here.
3640 (_initialize_irix_solib): Install irix_solib_handle_event as
3641 so_ops->handle_event hook.
3642
9d9bf2df
EBM
36432014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3644 Ulrich Weigand  <uweigand@de.ibm.com>
3645
3646 PR tdep/17379
3647 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3648 instead of read_memory_unsigned_integer.
3649
b006a80e
GB
36502014-09-12 Gary Benson <gbenson@redhat.com>
3651
3652 * nat/linux-waitpid.c: Include common-defs.h.
3653 [GDBSERVER]: Add FIXME comment.
3654 [!GDBSERVER]: Don't include defs.h or signal.h.
3655 (linux_debug) [!GDBSERVER]: Remove empty block.
3656
296b1496
GB
36572014-09-12 Gary Benson <gbenson@redhat.com>
3658
3659 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3660 Don't include defs.h or server.h.
3661
53f81362
GB
36622014-09-12 Gary Benson <gbenson@redhat.com>
3663
3664 * nat/linux-btrace.c: Include common-defs.h.
3665 Don't include defs.h, server.h or gdbthread.h.
3666 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3667
727605ca
GB
36682014-09-12 Gary Benson <gbenson@redhat.com>
3669
3670 * common/agent.c: Include common-defs.h.
3671 Don't include defs.h or server.h.
3672 * common/buffer.c: Likewise.
3673 * common/common-debug.c: Likewise.
3674 * common/common-utils.c: Likewise.
3675 * common/errors.c: Likewise.
3676 * common/filestuff.c: Likewise.
3677 * common/format.c: Likewise.
3678 * common/gdb_vecs.c: Likewise.
3679 * common/print-utils.c: Likewise.
3680 * common/ptid.c: Likewise.
3681 * common/rsp-low.c: Likewise.
3682 * common/signals.c: Likewise.
3683 * common/vec.c: Likewise.
3684 * common/xml-utils.c: Likewise.
3685 * nat/linux-osdata.c: Likewise.
3686 * nat/linux-procfs.c: Likewise.
3687 * nat/linux-ptrace.c: Likewise.
3688 * nat/mips-linux-watch.c: Likewise.
3689 * target/waitstatus.c: Likewise.
3690
361c8ade
GB
36912014-09-12 Tom Tromey <tromey@redhat.com>
3692 Gary Benson <gbenson@redhat.com>
3693
3694 * common/common-regcache.h: New file.
3695 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3696 * regcache.h: Include common-regcache.h.
3697 (regcache_read_pc): Don't declare.
3698 * regcache.c (get_thread_regcache_for_ptid): New function.
3699 * nat/linux-btrace.c: Don't include regcache.h.
3700 Include common-regcache.h.
3701 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3702
a01cbb49
TS
37032014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3704
3705 * regcache.h (struct regset): Declare.
3706
98880d46
PA
37072014-09-11 Pedro Alves <palves@redhat.com>
3708
3709 PR gdb/17347
3710 * main.c: Include "infrun.h".
3711 (catch_command_errors, catch_command_errors_const): Wait for the
3712 foreground command to complete.
3713 * top.c (maybe_wait_sync_command_done): New function, factored out
3714 from ...
3715 (maybe_wait_sync_command_done): ... here.
3716 * top.h (maybe_wait_sync_command_done): New declaration.
3717
bd9269f7
GB
37182014-09-11 Tom Tromey <tromey@redhat.com>
3719 Gary Benson <gbenson@redhat.com>
3720
3721 * common/symbol.h: New file.
3722 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3723 * minsyms.c (find_minimal_symbol_address): New function.
3724 * common/agent.c: Include common/symbol.h.
3725 [!GDBSERVER]: Don't include objfiles.h.
3726 (agent_look_up_symbols): Use find_minimal_symbol_address.
3727
f8c1d06b
GB
37282014-09-11 Gary Benson <gbenson@redhat.com>
3729
3730 * target/target.h (target_stop_ptid, target_continue_ptid):
3731 Declare.
3732 * target.c (target_stop_ptid, target_continue_ptid): New
3733 functions.
3734 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3735 (agent_run_command): Always use target_stop_ptid and
3736 target_continue_ptid.
3737
721ec300
GB
37382014-09-11 Tom Tromey <tromey@redhat.com>
3739 Gary Benson <gbenson@redhat.com>
3740
3741 * target/target.h: New file.
3742 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3743 * target.h: Include target/target.h.
3744 (target_read_memory, target_write_memory): Don't declare.
3745 * target.c (target_read_uint32): New function.
3746 * common/agent.c: Include target/target.h.
3747 [!GDBSERVER]: Don't include target.h.
3748 (helper_thread_id): Type changed to uint32_t.
3749 (agent_get_helper_thread_id): Use target_read_uint32.
3750 (agent_run_command): Always use target_read_memory and
3751 target_write_memory.
3752 (agent_capability): Type changed to uint32_t.
3753 (agent_capability_check): Use target_read_uint32.
3754
c5e92cca
GB
37552014-09-11 Gary Benson <gbenson@redhat.com>
3756
3757 * common/common-debug.h (show_debug_regs): Declare.
3758 * common/common-debug.c (show_debug_regs): Define.
3759 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3760 all uses with show_debug_regs. Replace all uses that considered
3761 debug_hw_points as a multi-value integer with straight boolean
3762 uses.
3763 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3764 with show_debug_regs.
3765 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3766 all uses with show_debug_regs.
3767 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3768 uses with show_debug_regs.
3769
eeef931a
UW
37702014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3771
3772 * findvar.c (address_from_register): Handle targets requiring
3773 a special conversion routine even for plain pointer types.
3774
8efa9855
UW
37752014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3776
3777 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3778 (store_register): Do not call exec_one_dummy_insn.
3779
eb479039
JB
37802014-09-10 Joel Brobecker <brobecker@adacore.com>
3781
3782 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3783 dereference it first. Use value_enclosing_type instead of
3784 value_type.
3785 (ada_array_length): Likewise.
3786
deede10c
JB
37872014-09-10 Joel Brobecker <brobecker@adacore.com>
3788
3789 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3790 Adjust function implementation and documentation accordingly.
3791 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3792 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3793 Update call to ada_value_ptr_subscript.
3794
7828a5f5
JB
37952014-09-10 Joel Brobecker <brobecker@adacore.com>
3796
3797 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3798 instead of VAL's type.
3799
35782f14
JB
38002014-09-10 Joel Brobecker <brobecker@adacore.com>
3801
3802 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3803
d342a0da
DE
38042014-09-09 Doug Evans <xdje42@gmail.com>
3805
3806 PR guile/17367
3807 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3808 last parameter to pkg-config, not first.
3809 * configure.ac: Pass --with-guile provided pkg-config path to
3810 GDB_GUILE_PROGRAM_NAMES.
3811 * configure: Regenerate.
3812
b4a3d263
GKB
38132014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3814
3815 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3816 Bertazi".
3817
6e466374
MR
38182014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3819
3820 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3821 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3822 the list of sections determining GDB_OSABI_IRIX.
3823
a1ada89a
JH
38242014-09-09 James Hogan <james.hogan@imgtec.com>
3825
3826 * MAINTAINERS (Write After Approval): Add "James Hogan".
3827
86db008d
JH
38282014-09-09 James Hogan <james.hogan@imgtec.com>
3829
3830 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3831
72fde3df
JB
38322014-09-09 Joel Brobecker <brobecker@adacore.com>
3833
3834 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3835
92d8d229
DE
38362014-09-08 Doug Evans <xdje42@gmail.com>
3837
3838 PR 17247
3839 * guile.c: #include <signal.h>.
3840 (_initialize_guile): Block SIGCHLD while initializing Guile.
3841
3842 Replaces the following, which is reverted.
3843
3844 2014-07-26 Doug Evans <xdje42@gmail.com>
3845
3846 PR 17185
3847 * configure.ac: Add check for header gc/gc.h.
3848 Add check for function setenv.
3849 * configure: Regenerate.
3850 * config.in: Regenerate.
3851 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3852
d81412aa
DE
38532014-09-08 Doug Evans <xdje42@gmail.com>
3854
3855 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3856 with named constant. Fix style of pointer comparison.
3857 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3858
a9f116cb
GKB
38592014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3860
3861 PR gdb/17035
3862 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3863 decide whether we display the command on "show user".
3864 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3865 printing command name.
3866 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3867 * cli/cli-decode.c (cli_user_command_p): Create helper function
3868 to verify whether cmd_list_element is a user-defined command.
3869
c75bd3a2
JK
38702014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3871
3872 PR python/17355
3873 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3874 Fix goto out of TRY_CATCH.
3875
faa42425 38762014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3877 Tom Tromey <tromey@redhat.com>
faa42425
DE
3878
3879 PR 15276
3880 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3881 $_any_caller_matches.
3882 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3883 * python/lib/gdb/function/caller_is.py: New file.
3884
0d41ba00
DE
38852014-09-06 Doug Evans <xdje42@gmail.com>
3886
3887 * infcmd.c (program_info): Fix typo.
3888
474ca4f6
SDJ
38892014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3890
3891 PR gdb/17235
3892 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3893 'number'. New variable 'has_digit'. Rewrite code to deal with
3894 subexpressions on SDT probes.
3895
ebf13736
PA
38962014-09-04 Pedro Alves <palves@redhat.com>
3897
3898 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3899 the input is only one character long.
3900
eb0b0463
SDJ
39012014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3902
3903 PR fortran/17237
3904 * f-valprint.c (f_val_print): Specify the correct print option to
3905 use when printing integer values.
3906
5ee44bfa
GB
39072014-09-04 Gary Benson <gbenson@redhat.com>
3908
3909 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3910 Remove code to cope with LWPs wrapped as PIDs.
3911 Add assertions to ensure no wrapped LWPs are passed.
3912
4875ffdb
PA
39132014-09-04 Pedro Alves <palves@redhat.com>
3914
3915 * value.c (value_ranges_copy_adjusted): New function, factored out
3916 from ...
3917 (value_contents_copy_raw): ... here.
3918 (unpack_value_bits_as_long_1): Rename back to ...
3919 (unpack_bits_as_long): ... this. Remove 'original_value' and
3920 'result' parameters. Change return type to LONGEST.
3921 (unpack_value_bits_as_long): Delete.
3922 (unpack_value_field_as_long_1): Delete.
3923 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3924 (unpack_value_bitfield): New function.
3925 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3926 (value_fetch_lazy): Use unpack_value_bitfield.
3927 * value.h (unpack_value_bits_as_long): Delete declaration.
3928
5f3b99cf
SS
39292014-09-03 Sasha Smundak <asmundak@google.com>
3930
3931 * python/py-frame.c (frapy_read_register): New function.
3932
ac740bc7
JH
39332014-09-03 James Hogan <james.hogan@imgtec.com>
3934
3935 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3936 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3937
7d793aa9
SDJ
39382014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3939
3940 PR python/16699
3941 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3942 function.
3943 (add_cmd): Set "completer_handle_brkchars" to NULL.
3944 * cli/cli-decode.h (struct cmd_list_element)
3945 <completer_handle_brkchars>: New field.
3946 * command.h (completer_ftype_void): New typedef.
3947 (set_cmd_completer_handle_brkchars): New prototype.
3948 * completer.c (set_gdb_completion_word_break_characters): New
3949 function.
3950 (complete_line_internal): Call "completer_handle_brkchars"
3951 callback from command.
3952 * completer.h: Include "command.h".
3953 (set_gdb_completion_word_break_characters): New prototype.
3954 * python/py-cmd.c (cmdpy_completer_helper): New function.
3955 (cmdpy_completer_handle_brkchars): New function.
3956 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3957 (cmdpy_init): Set completer_handle_brkchars to
3958 cmdpy_completer_handle_brkchars.
3959
97ea6506
GB
39602014-09-03 Gary Benson <gbenson@redhat.com>
3961
3962 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3963 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3964 Loop conditions changed to equivalent form.
3965 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3966 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3967 ALL_DEBUG_ADDRESS_REGISTERS.
3968
d1437815
JB
39692014-09-03 Joel Brobecker <brobecker@adacore.com>
3970
3971 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3972 description fix.
3973
9b94fcf1
DE
39742014-09-02 Doug Evans <dje@google.com>
3975
3976 * typeprint.c (find_global_typedef): Fix comment.
3977
df7e5265
GB
39782014-09-02 Gary Benson <gbenson@redhat.com>
3979
3980 * i386-nat.h: Renamed as...
3981 * x86-nat.h: New file. All type, function and variable name
3982 prefixes changed from "i386_" to "x86_". All references updated.
3983 * i386-nat.c: Renamed as...
3984 * x86-nat.c: New file. All type, function and variable name
3985 prefixes changed from "i386_" to "x86_". All references updated.
3986 * common/i386-xstate.h: Renamed as...
3987 * common/x86-xstate.h: New file. All type, function and variable
3988 name prefixes changed from "i386_" to "x86_". All references
3989 updated.
3990 * nat/i386-cpuid.h: Renamed as...
3991 * nat/x86-cpuid.h: New file. All type, function and variable name
3992 prefixes changed from "i386_" to "x86_". All references updated.
3993 * nat/i386-gcc-cpuid.h: Renamed as...
3994 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3995 name prefixes changed from "i386_" to "x86_". All references
3996 updated.
3997 * nat/i386-dregs.h: Renamed as...
3998 * nat/x86-dregs.h: New file. All type, function and variable name
3999 prefixes changed from "i386_" to "x86_". All references updated.
4000 * nat/i386-dregs.c: Renamed as...
4001 * nat/x86-dregs.c: New file. All type, function and variable name
4002 prefixes changed from "i386_" to "x86_". All references updated.
4003
1c3569d4
MR
40042014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4005
4006 * varobj.c (_initialize_varobj): Move to the end of file.
4007
ff55e1b5
GB
40082014-08-29 Gary Benson <gbenson@redhat.com>
4009
4010 * common/common-exceptions.h: New file.
4011 * common/common-exceptions.c: Likewise.
4012 * Makefile.in (SFILES): Add common/common-exceptions.c.
4013 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4014 (COMMON_OBS): Add common-exceptions.o.
4015 (common-exceptions.o): New rule.
4016 * exceptions.h (common-exceptions.h): Include.
4017 (gdb_setjmp.h): Do not include.
4018 (return_reason): Moved to common-exceptions.h.
4019 (enum return_reason): Likewise.
4020 (RETURN_MASK): Likewise.
4021 (typedef return_mask): Likewise.
4022 (enum errors): Likewise.
4023 (struct gdb_exception): Likewise.
4024 (exceptions_state_mc_init): Likewise.
4025 (exceptions_state_mc_action_iter): Likewise.
4026 (exceptions_state_mc_action_iter_1): Likewise.
4027 (TRY_CATCH): Likewise.
4028 (throw_exception): Likewise.
4029 (throw_verror): Likewise.
4030 (throw_vquit): Likewise.
4031 (throw_error): Likewise.
4032 (throw_quit): Likewise.
4033 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4034 (enum catcher_action): Likewise.
4035 (struct catcher): Likewise.
4036 (current_catcher): Likewise.
4037 (catcher_list_size): Likewise.
4038 (exceptions_state_mc_init): Likewise.
4039 (catcher_pop): Likewise.
4040 (exceptions_state_mc): Likewise.
4041 (exceptions_state_mc_action_iter): Likewise.
4042 (exceptions_state_mc_action_iter_1): Likewise.
4043 (throw_exception): Likewise.
4044 (exception_messages): Likewise.
4045 (exception_messages_size): Likewise.
4046 (throw_it): Likewise.
4047 (throw_verror): Likewise.
4048 (throw_vquit): Likewise.
4049 (throw_error): Likewise.
4050 (throw_quit): Likewise.
4051 (prepare_to_throw_exception): New function.
4052
e9bcb658
GB
40532014-08-29 Gary Benson <gbenson@redhat.com>
4054
4055 * common/gdb_setjmp.h: New file.
4056 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4057 * configure.ac: Move sigsetjmp check...
4058 * common/common.m4: ...here.
4059 * configure: Regenerate.
4060 * cp-support.c (SIGJMP_BUF): Delete.
4061 (SIGSETJMP): Likewise.
4062 (SIGLONGJMP): Likewise.
4063 * exceptions.h (gdb_setjmp.h): Include.
4064 (setjmp.h): Do not include.
4065 (EXCEPTIONS_SIGJMP_BUF): Delete.
4066 (EXCEPTIONS_SIGSETJMP): Likewise.
4067 (EXCEPTIONS_SIGLONGJMP): Likewise.
4068 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4069 from gdb_setjmp.h.
4070 * exceptions.c: Likewise.
4071
e3180625
GB
40722014-08-29 Gary Benson <gbenson@redhat.com>
4073
4074 * cleanups.h: Moved to...
4075 * common/cleanups.h: New file.
4076 * cleanups.c: Moved to...
4077 * common/cleanups.c: New file. Include common-defs.h and
4078 cleanups.h. Do not include defs.h.
4079 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4080 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4081 (cleanups.o): New rule.
4082
e3d6ba5d
GB
40832014-08-29 Gary Benson <gbenson@redhat.com>
4084
4085 * common/errors.h (internal_warning): New declaration.
4086 (internal_vwarning): Likewise.
4087 * common/errors.c (internal_warning): New function.
4088 * utils.h (internal_warning): Don't declare.
4089 (internal_vwarning): Likewise.
4090 * utils.c (internal_warning): Removed.
4091
075c7033
GB
40922014-08-29 Gary Benson <gbenson@redhat.com>
4093
4094 * main.c (captured_main): Use warning during startup.
4095 Prefix startup warning messages with command name.
4096
91b35fd0
GB
40972014-08-29 Gary Benson <gbenson@redhat.com>
4098
4099 * main.c (captured_main): Handle usage errors with error.
4100
b1ec390e
GB
41012014-08-29 Gary Benson <gbenson@redhat.com>
4102
4103 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4104 exit pair with a call to error. Wrap the message with _().
4105
fd0ef3dd
GB
41062014-08-29 Gary Benson <gbenson@redhat.com>
4107
4108 * main.c (captured_main): Replace a fprintf/exit
4109 pair with a call to error. Wrap the message with _().
4110
e0e6bcab
GB
41112014-08-29 Gary Benson <gbenson@redhat.com>
4112
4113 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4114 pairs with calls to error. Wrap the message with _().
4115
0d2f5c07
GB
41162014-08-29 Gary Benson <gbenson@redhat.com>
4117
4118 * utils.c (vwarning): Protect calls to target_terminal_ours
4119 and wrap_here.
4120
5df43998
GB
41212014-08-29 Gary Benson <gbenson@redhat.com>
4122
4123 * exceptions.c (print_flush): Protect calls to
4124 target_terminal_ours and wrap_here.
4125
2437fd32
GB
41262014-08-29 Gary Benson <gbenson@redhat.com>
4127
4128 * utils.h (filtered_printing_initialized): New declaration.
4129 * utils.c (abort_with_message): New function.
4130 (internal_vproblem): Use abort_with_message for first level
4131 recursive internal problems, and if gdb_stderr is not set up.
4132 Protect calls to target_terminal_ours, begin_line and query.
4133
f1f58506
DE
41342014-08-28 Doug Evans <dje@google.com>
4135
4136 * symtab.c (in_prologue): Move definition to better spot.
4137 (skip_prologue_using_sal): Ditto.
4138
aab2f208
DE
41392014-08-28 Doug Evans <dje@google.com>
4140
4141 * symtab.c (find_function_start_sal): Move definition to better spot.
4142
6b65d1b6
YQ
41432014-08-28 Yao Qi <yao@codesourcery.com>
4144
4145 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4146 found_stack_adjust in forward scan. Remove condition check
4147 on found_stack_adjust which is always true. Indent the code.
4148
a1b34d15
YQ
41492014-08-28 Yao Qi <yao@codesourcery.com>
4150
4151 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4152 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4153 (dwarf_decode_lines): Remove argument
4154 want_line_info. Remove condition check on want_line_info.
4155 Callers update.
4156
d5962de5
DE
41572014-08-27 Doug Evans <dje@google.com>
4158
4159 * dwarf2read.c (dwarf_record_line): Fix typo.
4160
9b139002
SDJ
41612014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4162
4163 * target.h (struct target_ops::to_terminal_save_ours): Remove
4164 declaration.
4165 (target_terminal_save_ours): Remove macro.
4166 * target-delegates.c: Regenerate.
4167 * inf-child.c (inf_child_target): Don't set the nonexistent
4168 field to_terminal_save_ours.
4169 * inferior.h (child_terminal_save_ours): Remove declaration.
4170 * terminal.h (gdb_save_tty_state): New declaration.
4171 * inflow.c (child_terminal_save_ours): Rename to ...
4172 (gdb_save_tty_state): ... this.
4173 * tui/tui.c: Include terminal.h.
4174 (tui_enable): Use gdb_save_tty_state instead of
4175 target_terminal_save_ours.
4176 (tui_disable): Likewise.
4177
9debeba0
DE
41782014-08-25 Doug Evans <dje@google.com>
4179
4180 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4181 Pass NULL instead of 0 for context pointer.
4182
428fc5fc
YQ
41832014-08-25 Yao Qi <yao@codesourcery.com>
4184
4185 * dwarf2read.c: Fix grammatical error.
4186
cdc07690
YQ
41872014-08-24 Yao Qi <yao@codesourcery.com>
4188
4189 * dwarf2read.c (scan_partial_symbols): Update comments.
4190 Rename argument 'need_pc' with 'set_addrmap'.
4191 (add_partial_namespace): Rename argument 'need_pc' with
4192 'set_addrmap'.
4193 (add_partial_module): Likewise.
4194 (add_partial_subprogram): Likewise. Update comments.
4195 (dwarf2_name): Fix typo.
4196
a05a36a5
DE
41972014-08-22 Doug Evans <dje@google.com>
4198
4199 PR 17276
4200 * dwarf2read.c (dwarf_record_line_p): New function.
4201 (dwarf_decode_lines_1): Ignore subsequent line number entries
4202 for the same line if any entry had a non-zero discriminator.
4203
252a6764
DE
42042014-08-22 Doug Evans <dje@google.com>
4205
4206 * buildsym.h (record_line_ftype): New typedef.
4207 (record_line): Use it.
4208 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4209 (dwarf_decode_lines_1): Call them.
4210
510db052
YQ
42112014-08-22 Yao Qi <yao@codesourcery.com>
4212
4213 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4214 (ctf_end): Remove code.
4215
22fd09ae
JK
42162014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4219 (linux_make_corefile_notes): call update_thread_list, protected against
4220 exceptions.
4221
656e8868
PA
42222014-08-21 Pedro Alves <palves@redhat.com>
4223
4224 * infcmd.c (attach_command): Remove comment.
4225
de589d04
WN
42262014-08-21 Bin Cheng <bin.cheng@arm.com>
4227
4228 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4229 unsigned LONGEST to ULONGEST.
4230
2a31c623
PA
42312014-08-20 Pedro Alves <palves@redhat.com>
4232
4233 * Makefile.in (check-read1): New rule.
4234
d36430db
JB
42352014-08-20 Joel Brobecker <brobecker@adacore.com>
4236
4237 * value.c (value_from_contents_and_address): Strip resolved_type's
4238 typedef layers before checking its TYPE_DATA_LOCATION.
4239
000339af
PA
42402014-08-20 Pedro Alves <palves@redhat.com>
4241
4242 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4243
5f52445b
YQ
42442014-08-20 Yao Qi <yao@codesourcery.com>
4245
4246 * amd64-tdep.c (amd64_classify): Add a blank line after the
4247 example. Move "*/" to a new line.
4248 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4249 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4250 * dwarf2read.c (psymtab_include_file_name): Likewise.
4251
9a0dc9e3
PA
42522014-08-19 Andrew Burgess <aburgess@broadcom.com>
4253 Pedro Alves <palves@redhat.com>
4254
4255 PR symtab/14604
4256 PR symtab/14605
4257 * ada-lang.c (coerce_unspec_val_to_type): Use
4258 value_contents_copy_raw.
4259 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4260 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4261 * cp-valprint.c (cp_print_value_fields): Let the common printing
4262 code handle optimized out values.
4263 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4264 * d-valprint.c (dynamic_array_type): Use
4265 value_bits_any_optimized_out.
4266 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4267 check_any_valid fields.
4268 (check_pieced_value_bits): Delete and inline ...
4269 (check_pieced_synthetic_pointer): ... here.
4270 (check_pieced_value_validity): Delete.
4271 (check_pieced_value_invalid): Delete.
4272 (pieced_value_funcs): Remove check_validity and check_any_valid
4273 fields.
4274 (read_pieced_value): Use mark_value_bits_optimized_out.
4275 (write_pieced_value): Switch to use
4276 mark_value_bytes_optimized_out.
4277 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4278 of assuming the whole value is optimized out.
4279 * findvar.c (read_frame_register_value): Remove special handling
4280 of optimized out registers.
4281 (value_from_register): Use mark_value_bytes_optimized_out.
4282 * frame-unwind.c (frame_unwind_got_optimized): Use
4283 mark_value_bytes_optimized_out.
4284 * jv-valprint.c (java_value_print): Adjust.
4285 (java_print_value_fields): Let the common printing code handle
4286 optimized out values.
4287 * mips-tdep.c (mips_print_register): Remove special handling of
4288 optimized out registers.
4289 * opencl-lang.c (lval_func_check_validity): Delete.
4290 (lval_func_check_any_valid): Delete.
4291 (opencl_value_funcs): Remove check_validity and check_any_valid
4292 fields.
4293 * p-valprint.c (pascal_object_print_value_fields): Let the common
4294 printing code handle optimized out values.
4295 * stack.c (read_frame_arg): Remove special handling of optimized
4296 out values. Fetch both VAL and ENTRYVAL before comparing
4297 contents. Adjust to value_available_contents_eq rename.
4298 * valprint.c (valprint_check_validity)
4299 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4300 (val_print_array_elements): Adjust.
4301 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4302 (value_bits_any_optimized_out): New function.
4303 (value_entirely_covered_by_range_vector): New function, factored
4304 out from value_entirely_unavailable.
4305 (value_entirely_unavailable): Reimplement.
4306 (value_entirely_optimized_out): New function.
4307 (insert_into_bit_range_vector): New function, factored out from
4308 mark_value_bits_unavailable.
4309 (mark_value_bits_unavailable): Reimplement.
4310 (struct ranges_and_idx): New struct.
4311 (find_first_range_overlap_and_match): New function, factored out
4312 from value_available_contents_bits_eq.
4313 (value_available_contents_bits_eq): Rename to ...
4314 (value_contents_bits_eq): ... this. Check both unavailable
4315 contents and optimized out contents.
4316 (value_available_contents_eq): Rename to ...
4317 (value_contents_eq): ... this.
4318 (allocate_value_lazy): Remove reference to the old optimized_out
4319 boolean.
4320 (allocate_optimized_out_value): Use
4321 mark_value_bytes_optimized_out.
4322 (require_not_optimized_out): Adjust to check whether the
4323 optimized_out vec is empty.
4324 (ranges_copy_adjusted): New function, factored out from
4325 value_contents_copy_raw.
4326 (value_contents_copy_raw): Also copy the optimized out ranges.
4327 Assert the destination ranges aren't optimized out.
4328 (value_contents_copy): Update comment, remove call to
4329 require_not_optimized_out.
4330 (value_contents_equal): Adjust to check whether the optimized_out
4331 vec is empty.
4332 (set_value_optimized_out, value_optimized_out_const): Delete.
4333 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4334 New functions.
4335 (value_entirely_optimized_out, value_bits_valid): Delete.
4336 (value_copy): Take a VEC copy of the 'optimized_out' field.
4337 (value_primitive_field): Remove special handling of optimized out.
4338 (value_fetch_lazy): Assert that lazy values have no unavailable
4339 regions. Use value_bits_any_optimized_out. Remove some special
4340 handling for optimized out values.
4341 * value.h: Add intro comment about <optimized out> and
4342 <unavailable>.
4343 (struct lval_funcs): Remove check_validity and check_any_valid
4344 fields.
4345 (set_value_optimized_out, value_optimized_out_const): Remove.
4346 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4347 New declarations.
4348 (value_bits_any_optimized_out): New declaration.
4349 (value_bits_valid): Delete declaration.
4350 (value_available_contents_eq): Rename to ...
4351 (value_contents_eq): ... this, and extend comments.
4352
6694c411
JK
43532014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4354
4355 Fix -fsanitize=address on unreadable inferior strings.
4356 * valprint.c (val_print_string): Fix access before BUFFER.
4357
89a1c21a
SM
43582014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4359
4360 * target.c (target_struct_size): Remove.
4361 (target_struct_allocsize): Remove.
4362 (DEFAULT_ALLOCSIZE): Remove.
4363 (target_ops_p): New typedef.
4364 (DEF_VEC_P (target_ops_p)): New vector type.
4365 (target_structs): Change type to VEC (target_ops_p).
4366 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4367 (find_default_run_target): Rewrite for loop following changes to
4368 target_structs.
4369
cb417230
JB
43702014-08-19 Joel Brobecker <brobecker@adacore.com>
4371
4372 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4373 Adjust code accordingly. Adjust function description comment.
4374
817e0957
YQ
43752014-08-19 Yao Qi <yao@codesourcery.com>
4376
4377 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4378 types.
4379
2974be62
AM
43802014-08-19 Alan Modra <amodra@gmail.com>
4381
4382 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4383 * config.in: Regenerate.
4384 * configure: Regenerate.
4385
34abf635
GB
43862014-08-19 Tom Tromey <tromey@redhat.com>
4387 Gary Benson <gbenson@redhat.com>
4388
4389 * common/common-debug.h: New file.
4390 * common/common-debug.c: Likewise.
4391 * debug.c: Likewise.
4392 * Makefile.in (SFILES): Add common/common-debug.c.
4393 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4394 (COMMON_OBS): Add common-debug.o and debug.o.
4395 (common-debug.o): New rule.
4396 * common/common-defs.h: Include common-debug.h.
4397 * common/agent.c (debug_agent_printf): New function.
4398 (DEBUG_AGENT): Redefine.
4399 * nat/i386-dregs.c (debug_printf): Undefine.
4400
f6e94d78
GB
44012014-08-19 Gary Benson <gbenson@redhat.com>
4402
4403 * common/common-defs.h: Include print-utils.h.
4404 * utils.h: Do not include print-utils.h.
4405
9239eeab
GB
44062014-08-19 Tom Tromey <tromey@redhat.com>
4407 Gary Benson <gbenson@redhat.com>
4408
4409 * common/common-types.h: New file.
4410 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4411 * common/common-defs.h: Include common-types.h.
4412 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4413 (ULONGEST): Remove.
4414
ef87c8bb
GB
44152014-08-19 Tom Tromey <tromey@redhat.com>
4416 Gary Benson <gbenson@redhat.com>
4417
4418 * common/errors.h: New file.
4419 * common/errors.c: Likewise.
4420 * Makefile.in (SFILES): Add common/errors.c.
4421 (HFILES_NO_SRCDIR): Add common/errors.h.
4422 (COMMON_OBS): Add errors.o.
4423 (errors.o): New rule.
4424 * common/common-defs.h: Include errors.h.
4425 * utils.h (perror_with_name, error, verror, warning, vwarning):
4426 Don't declare.
4427 * common/common-utils.h: (malloc_failure, internal_error):
4428 Likewise.
4429
196a707b
GB
44302014-08-19 Gary Benson <gbenson@redhat.com>
4431
4432 * utils.c (internal_vproblem): Always print the message.
4433
ded4fc8f
DE
44342014-08-18 Doug Evans <dje@google.com>
4435
4436 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4437
950c97d8
JB
44382014-08-18 Joel Brobecker <brobecker@adacore.com>
4439
4440 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4441 Return 0 if TYPE is dynamic.
4442 (print_range): Add handling of dynamic ranges.
4443
3cdcd0ce
JB
44442014-08-18 Keven Boell <keven.boell@intel.com>
4445 Joel Brobecker <brobecker@adacore.com>
4446
4447 * gdbtypes.h (struct main_type): Add field "data_location".
4448 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4449 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4450 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4451 a dynamic data location.
4452 (resolve_dynamic_type): Add DW_AT_data_location handling.
4453 (copy_recursive, copy_type): Copy the data_location information
4454 when present.
4455 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4456 * value.c (value_from_contents_and_address): Add
4457 DW_AT_data_location handling.
4458
08412b07
JB
44592014-08-18 Keven Boell <keven.boell@intel.com>
4460 Joel Brobecker <brobecker@adacore.com>
4461
4462 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4463 field "get_object_address".
4464 * dwarf2expr.c (execute_stack_op): Add handling for
4465 DW_OP_push_object_address.
4466 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4467 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4468 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4469 (dwarf_expr_get_obj_addr): New function.
4470 (dwarf_expr_ctx_funcs): Add get_object_address field.
4471 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4472 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4473 (dwarf2_evaluate_property): Add parameter "address". Use it.
4474 (needs_get_obj_addr): New function.
4475 (needs_frame_ctx_funcs): Add get_object_address field.
4476 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4477 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4478 (resolve_dynamic_array): Likewise.
4479
84754697
JB
44802014-08-18 Joel Brobecker <brobecker@adacore.com>
4481
4482 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4483 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4484 fixed value for records and unions for which some GNAT encodings
4485 are present.
4486
da5c522f
JB
44872014-08-18 Joel Brobecker <brobecker@adacore.com>
4488
4489 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4490 rewrite to avoid "else if" and "else" constructs. Should be
4491 a no-op in practice.
4492
0d72a7c3
JB
44932014-08-18 Joel Brobecker <brobecker@adacore.com>
4494
4495 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4496 of lexical block.
4497
e66d4446
SC
44982014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4499
4500 PR c++/17132
4501 * eval.c: Update all calls to find_overload_match.
4502 * valarith.c: Likewise.
4503 (value_user_defined_cpp_op, value_user_defined_op): New
4504 argument NOSIDE. Update all callers.
4505 * valops.c (find_overload_match): New argument NOSIDE.
4506 * value.h (find_overload_match): Update signature.
4507
940df408
SC
45082014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4509
4510 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4511 'items' methods instead of 'iteritems' method on dictionaries.
4512
699ca60a
DE
45132014-08-15 Doug Evans <dje@google.com>
4514
4515 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4516 closer to use.
4517
37780ee5
DE
45182014-08-15 Doug Evans <dje@google.com>
4519
4520 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4521
0ad93d4f
DE
45222014-08-15 Doug Evans <dje@google.com>
4523
4524 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4525
20d8c372
DE
45262014-08-15 Doug Evans <dje@google.com>
4527
4528 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4529 unused.
4530
cb039ba4
EZ
45312014-08-15 Eli Zaretskii <eliz@gnu.org>
4532
4533 * dcache.h: Include target.h, to avoid compile time warnings.
4534
eb7a547a
JB
45352014-08-15 Joel Brobecker <brobecker@adacore.com>
4536
4537 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4538 frame_info" partial declaration.
4539 * gdbarch.h: Regenerate.
4540
783cecc8
YQ
45412014-08-15 Yao Qi <yao@codesourcery.com>
4542
4543 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4544 Add parameter 'decode_for_pst_p'. Callers update.
4545
65c749e7
YQ
45462014-08-13 Yao Qi <yao@codesourcery.com>
4547
4548 PR build/17104
4549 * configure.ac: Use local variable 'pos'.
4550 * configure: Regenerated.
4551
d769e349
DE
45522014-08-11 Doug Evans <dje@google.com>
4553
4554 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4555 message, it is redundant with "Reading symbols from ..." message.
4556
24f1235e
DE
45572014-08-10 Doug Evans <xdje42@gmail.com>
4558
4559 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4560
dcd2e6ef
YQ
45612014-08-09 Yao Qi <yao@codesourcery.com>
4562
4563 PR remote/9053
4564 * remote.c (remote_xfer_partial): Remove dead code.
4565
070bdf0b
AA
45662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4567
4568 * ia64-linux-tdep.c: Include "regset.h".
4569 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4570 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4571 (ia64_linux_supply_fpregset): New function.
4572 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4573 (ia64_linux_regset_from_core_section): New function.
4574 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4575 method.
4576
08f9f542
AA
45772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4578
4579 * m68klinux-tdep.c: Include "regset.h".
4580 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4581 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4582 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4583 (m68k_linux_regset_from_core_section): New function.
4584 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4585 method.
4586
8f1cee41
AA
45872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4588
4589 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4590 function. Move logic to...
4591 (tilegx_linux_regmap): ... this new register map.
4592 (tilegx_linux_regset): Refer to register map, replace supply
4593 method by regcache_supply_regset, and add collect method.
4594 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4595 TILEGX_FIRST_EASY_REGNUM.
4596
c5741217
AA
45972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4598
4599 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4600 that calls regcache_supply_regset and handles the EPC register
4601 separately. Move main logic to...
4602 (score7_linux_gregmap): ... this new register map.
4603 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4604 (score7_linux_gregset): Refer to register map. Add collect method.
4605 (score7_linux_regset_from_core_section): Replace
4606 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4607 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4608 (struct regset): Delete unused forward declaraction.
4609 (struct pt_regs): Delete structure definition.
4610 (elf_gregset_t): Delete typedef.
4611
81580573
AA
46122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4613
4614 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4615 (nios2_core_regset): Add collect method.
4616
ba199d7d
AA
46172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4618
4619 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4620 platform-independent and don't write to read-only input buffer.
4621 (m32r_linux_collect_gregset): New function.
4622 (m32r_linux_gregset): Add collect method.
4623
0006a9da
AA
46242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4625
4626 * hppa-linux-tdep.c (greg_map): Rename to...
4627 (hppa_linux_gregmap): ... this. Also convert to
4628 regcache_map_entry format.
4629 (hppa_linux_supply_regset): Delete function.
4630 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4631 (hppa_linux_fpregmap): ... this new register map.
4632 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4633 register map, replace supply method by regcache_supply_regset, and
4634 add collect method regcache_collect_regset.
4635
901e1b23
AA
46362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4637
4638 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4639 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4640 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4641 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4642 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4643 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4644 (frv_linux_supply_gregset): Replace main logic by call to
4645 regcache_supply_regset, but keep clearing gr32-gr63.
4646 (frv_linux_supply_fpregset): Delete function.
4647 (frv_linux_gregset): Refer to appropriate register map and add
4648 regcache_collect_regset as the collect method.
4649 (frv_linux_fpregset): Likewise. Also exchange the supply method
4650 by regcache_supply_regset.
4651
1d6e7555
AA
46522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4653
4654 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4655 by call to alpha_supply_int_regs.
4656 (alpha_linux_collect_gregset): New function.
4657 (alpha_linux_supply_fpregset): Replace logic by call to
4658 alpha_supply_fp_regs.
4659 (alpha_linux_collect_fpregset): New function.
4660 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4661
d4d793bf
AA
46622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4663
4664 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4665 by call to regcache_collect_regset.
4666 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4667 instead of aarch64_linux_supply_gregset/_fpregset.
4668 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4669 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4670 header file instead.
4671 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4672 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4673 functions. Move logic to ...
4674 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4675 register maps.
4676 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4677 refer to new register maps, replace *_regset_from_core by
4678 regcache_supply_regset, and also use regcache_collect_regset.
4679 * aarch64-linux-tdep.h: Include "regset.h".
4680 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4681 Delete prototypes.
4682 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4683 macros, moved from C source file.
4684 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4685 variable declarations.
4686
99b7da5d
AA
46872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4688
4689 * s390-linux-nat.c: Include "regset.h".
4690 (regmap_gregset): Delete macro.
4691 (s390_64_regmap_gregset): New register map for
4692 regcache_supply/_collect_regset.
4693 (s390_64_gregset): New regset.
4694 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4695 (regmap_fpregset): Delete macro.
4696 (s390_native_supply, s390_native_collect): Delete functions.
4697 (supply_gregset, fill_gregset): Replace s390-specific regmap
4698 handling by a call to regcache_supply/_collect_regset.
4699 (supply_fpregset, fill_fpregset): Call regcache_supply/
4700 _collect_regset instead of s390_native_supply/_collect.
4701 (fetch_regset, store_regset): Likewise. Also change the last
4702 parameter to a regset instead of a regmap.
4703 (s390_linux_fetch_inferior_registers)
4704 (390_linux_store_inferior_registers): Adjust last parameter in
4705 calls to fetch_regset and store_regset.
4706 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4707 (s390_gregmap): ... this. Also make static const and convert to
4708 regcache_map_entry format.
4709 (s390x_regmap_gregset): Delete.
4710 (s390_regmap_fpregset): Rename to...
4711 (s390_fpregmap): ... this. Make static const and convert to
4712 regcache_map_entry format.
4713 (s390_regmap_upper, s390_regmap_last_break)
4714 (s390x_regmap_last_break, s390_regmap_system_call)
4715 (s390_regmap_tdb): Likewise.
4716 (s390_supply_regset, s390_collect_regset): Remove functions.
4717 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4718 s390_supply_regset.
4719 (s390_gregset, s390_fpregset, s390_upper_regset)
4720 (s390_last_break_regset, s390x_last_break_regset)
4721 (s390_system_call_regset, s390_tdb_regset): Make global and
4722 replace s390_supply/_collect_regset by regcache_supply/
4723 _collect_regset.
4724 (s390x_gregset): Delete.
4725 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4726 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4727 (s390_regmap_fpregset, s390_regmap_last_break)
4728 (s390x_regmap_last_break, s390_regmap_system_call)
4729 (s390_regmap_tdb): Delete global variable declarations.
4730 (s390_gregset, s390_fpregset, s390_last_break_regset)
4731 (s390x_last_break_regset, s390_system_call_regset)
4732 (s390_tdb_regset): New global variable declarations.
4733
0b309272
AA
47342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4735
4736 * regcache.c: Include "regset.h".
4737 (regcache_transfer_regset): New local function.
4738 (regcache_supply_regset, regcache_collect_regset): New functions.
4739 * regcache.h (struct regcache_map_entry): New structure.
4740 (REGCACHE_MAP_SKIP): New enum value.
4741 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4742
7fefa8d7
AA
47432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4744
4745 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4746 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4747 (ppc_linux_collect_gregset ): Likewise.
4748 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4749 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4750 (ppc_collect_vrregset): Likewise.
4751 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4752 Likewise.
4753
96c4f946
YQ
47542014-08-07 Yao Qi <yao@codesourcery.com>
4755
4756 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4757 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4758 * remote.c (remote_read_bytes): Likewise.
4759
fffbe6a8
YQ
47602014-08-07 Yao Qi <yao@codesourcery.com>
4761
4762 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4763
5ee8a82c
YQ
47642014-08-07 Yao Qi <yao@codesourcery.com>
4765
4766 PR remote/17230
4767 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4768 TARGET_XFER_OK instead of 0.
4769
bb974a24
GB
47702014-08-07 Gary Benson <gbenson@redhat.com>
4771
4772 * common/common-defs.h: Include errno.h.
4773 * defs.h: Do not include errno.h.
4774 * ada-typeprint.c: Likewise.
4775 * c-typeprint.c: Likewise.
4776 * core-regset.c: Likewise.
4777 * corefile.c: Likewise.
4778 * corelow.c: Likewise.
4779 * event-loop.c: Likewise.
4780 * f-typeprint.c: Likewise.
4781 * gnu-nat.c: Likewise.
4782 * go32-nat.c: Likewise.
4783 * i386gnu-nat.c: Likewise.
4784 * m2-typeprint.c: Likewise.
4785 * nat/linux-btrace.c: Likewise.
4786 * p-typeprint.c: Likewise.
4787 * procfs.c: Likewise.
4788 * remote-sim.c: Likewise.
4789 * rs6000-nat.c: Likewise.
4790 * target.c: Likewise.
4791 * typeprint.c: Likewise.
4792 * ui-file.c: Likewise.
4793 * valops.c: Likewise.
4794 * valprint.c: Likewise.
4795
6d3d12eb
GB
47962014-08-07 Gary Benson <gbenson@redhat.com>
4797
4798 * common/common-defs.h: Include string.h.
4799 * aarch64-tdep.c: Do not include string.h.
4800 * ada-exp.y: Likewise.
4801 * ada-lang.c: Likewise.
4802 * ada-lex.l: Likewise.
4803 * ada-typeprint.c: Likewise.
4804 * ada-valprint.c: Likewise.
4805 * aix-thread.c: Likewise.
4806 * alpha-linux-tdep.c: Likewise.
4807 * alpha-mdebug-tdep.c: Likewise.
4808 * alpha-nat.c: Likewise.
4809 * alpha-osf1-tdep.c: Likewise.
4810 * alpha-tdep.c: Likewise.
4811 * alphanbsd-tdep.c: Likewise.
4812 * amd64-dicos-tdep.c: Likewise.
4813 * amd64-linux-tdep.c: Likewise.
4814 * amd64-nat.c: Likewise.
4815 * amd64-sol2-tdep.c: Likewise.
4816 * amd64fbsd-tdep.c: Likewise.
4817 * amd64obsd-tdep.c: Likewise.
4818 * arch-utils.c: Likewise.
4819 * arm-linux-nat.c: Likewise.
4820 * arm-linux-tdep.c: Likewise.
4821 * arm-tdep.c: Likewise.
4822 * arm-wince-tdep.c: Likewise.
4823 * armbsd-tdep.c: Likewise.
4824 * armnbsd-nat.c: Likewise.
4825 * armnbsd-tdep.c: Likewise.
4826 * armobsd-tdep.c: Likewise.
4827 * avr-tdep.c: Likewise.
4828 * ax-gdb.c: Likewise.
4829 * ax-general.c: Likewise.
4830 * bcache.c: Likewise.
4831 * bfin-tdep.c: Likewise.
4832 * breakpoint.c: Likewise.
4833 * build-id.c: Likewise.
4834 * buildsym.c: Likewise.
4835 * c-exp.y: Likewise.
4836 * c-lang.c: Likewise.
4837 * c-typeprint.c: Likewise.
4838 * c-valprint.c: Likewise.
4839 * charset.c: Likewise.
4840 * cli-out.c: Likewise.
4841 * cli/cli-cmds.c: Likewise.
4842 * cli/cli-decode.c: Likewise.
4843 * cli/cli-dump.c: Likewise.
4844 * cli/cli-interp.c: Likewise.
4845 * cli/cli-logging.c: Likewise.
4846 * cli/cli-script.c: Likewise.
4847 * cli/cli-setshow.c: Likewise.
4848 * cli/cli-utils.c: Likewise.
4849 * coffread.c: Likewise.
4850 * common/agent.c: Likewise.
4851 * common/buffer.c: Likewise.
4852 * common/buffer.h: Likewise.
4853 * common/common-utils.c: Likewise.
4854 * common/filestuff.c: Likewise.
4855 * common/filestuff.c: Likewise.
4856 * common/format.c: Likewise.
4857 * common/print-utils.c: Likewise.
4858 * common/rsp-low.c: Likewise.
4859 * common/signals.c: Likewise.
4860 * common/vec.h: Likewise.
4861 * common/xml-utils.c: Likewise.
4862 * core-regset.c: Likewise.
4863 * corefile.c: Likewise.
4864 * corelow.c: Likewise.
4865 * cp-abi.c: Likewise.
4866 * cp-name-parser.y: Likewise.
4867 * cp-support.c: Likewise.
4868 * cp-valprint.c: Likewise.
4869 * cris-tdep.c: Likewise.
4870 * d-exp.y: Likewise.
4871 * darwin-nat.c: Likewise.
4872 * dbxread.c: Likewise.
4873 * dcache.c: Likewise.
4874 * demangle.c: Likewise.
4875 * dicos-tdep.c: Likewise.
4876 * disasm.c: Likewise.
4877 * doublest.c: Likewise.
4878 * dsrec.c: Likewise.
4879 * dummy-frame.c: Likewise.
4880 * dwarf2-frame.c: Likewise.
4881 * dwarf2loc.c: Likewise.
4882 * dwarf2read.c: Likewise.
4883 * elfread.c: Likewise.
4884 * environ.c: Likewise.
4885 * eval.c: Likewise.
4886 * event-loop.c: Likewise.
4887 * exceptions.c: Likewise.
4888 * exec.c: Likewise.
4889 * expprint.c: Likewise.
4890 * f-exp.y: Likewise.
4891 * f-lang.c: Likewise.
4892 * f-typeprint.c: Likewise.
4893 * f-valprint.c: Likewise.
4894 * fbsd-nat.c: Likewise.
4895 * findcmd.c: Likewise.
4896 * findvar.c: Likewise.
4897 * fork-child.c: Likewise.
4898 * frame.c: Likewise.
4899 * frv-linux-tdep.c: Likewise.
4900 * frv-tdep.c: Likewise.
4901 * gdb.c: Likewise.
4902 * gdb_bfd.c: Likewise.
4903 * gdbarch.c: Likewise.
4904 * gdbarch.sh: Likewise.
4905 * gdbtypes.c: Likewise.
4906 * gnu-nat.c: Likewise.
4907 * gnu-v2-abi.c: Likewise.
4908 * gnu-v3-abi.c: Likewise.
4909 * go-exp.y: Likewise.
4910 * go-lang.c: Likewise.
4911 * go32-nat.c: Likewise.
4912 * guile/guile.c: Likewise.
4913 * guile/scm-auto-load.c: Likewise.
4914 * hppa-hpux-tdep.c: Likewise.
4915 * hppa-linux-nat.c: Likewise.
4916 * hppanbsd-tdep.c: Likewise.
4917 * hppaobsd-tdep.c: Likewise.
4918 * i386-cygwin-tdep.c: Likewise.
4919 * i386-dicos-tdep.c: Likewise.
4920 * i386-linux-tdep.c: Likewise.
4921 * i386-nto-tdep.c: Likewise.
4922 * i386-sol2-tdep.c: Likewise.
4923 * i386-tdep.c: Likewise.
4924 * i386bsd-tdep.c: Likewise.
4925 * i386gnu-nat.c: Likewise.
4926 * i386nbsd-tdep.c: Likewise.
4927 * i386obsd-tdep.c: Likewise.
4928 * i387-tdep.c: Likewise.
4929 * ia64-libunwind-tdep.c: Likewise.
4930 * ia64-linux-nat.c: Likewise.
4931 * inf-child.c: Likewise.
4932 * inf-ptrace.c: Likewise.
4933 * inf-ttrace.c: Likewise.
4934 * infcall.c: Likewise.
4935 * infcmd.c: Likewise.
4936 * inflow.c: Likewise.
4937 * infrun.c: Likewise.
4938 * interps.c: Likewise.
4939 * iq2000-tdep.c: Likewise.
4940 * irix5-nat.c: Likewise.
4941 * jv-exp.y: Likewise.
4942 * jv-lang.c: Likewise.
4943 * jv-typeprint.c: Likewise.
4944 * jv-valprint.c: Likewise.
4945 * language.c: Likewise.
4946 * linux-fork.c: Likewise.
4947 * linux-nat.c: Likewise.
4948 * lm32-tdep.c: Likewise.
4949 * m2-exp.y: Likewise.
4950 * m2-typeprint.c: Likewise.
4951 * m32c-tdep.c: Likewise.
4952 * m32r-linux-nat.c: Likewise.
4953 * m32r-linux-tdep.c: Likewise.
4954 * m32r-rom.c: Likewise.
4955 * m32r-tdep.c: Likewise.
4956 * m68hc11-tdep.c: Likewise.
4957 * m68k-tdep.c: Likewise.
4958 * m68kbsd-tdep.c: Likewise.
4959 * m68klinux-nat.c: Likewise.
4960 * m68klinux-tdep.c: Likewise.
4961 * m88k-tdep.c: Likewise.
4962 * machoread.c: Likewise.
4963 * macrocmd.c: Likewise.
4964 * main.c: Likewise.
4965 * mdebugread.c: Likewise.
4966 * mem-break.c: Likewise.
4967 * memattr.c: Likewise.
4968 * memory-map.c: Likewise.
4969 * mep-tdep.c: Likewise.
4970 * mi/mi-cmd-break.c: Likewise.
4971 * mi/mi-cmd-disas.c: Likewise.
4972 * mi/mi-cmd-env.c: Likewise.
4973 * mi/mi-cmd-stack.c: Likewise.
4974 * mi/mi-cmd-var.c: Likewise.
4975 * mi/mi-cmds.c: Likewise.
4976 * mi/mi-console.c: Likewise.
4977 * mi/mi-getopt.c: Likewise.
4978 * mi/mi-interp.c: Likewise.
4979 * mi/mi-main.c: Likewise.
4980 * mi/mi-parse.c: Likewise.
4981 * microblaze-rom.c: Likewise.
4982 * microblaze-tdep.c: Likewise.
4983 * mingw-hdep.c: Likewise.
4984 * minidebug.c: Likewise.
4985 * minsyms.c: Likewise.
4986 * mips-irix-tdep.c: Likewise.
4987 * mips-linux-tdep.c: Likewise.
4988 * mips-tdep.c: Likewise.
4989 * mips64obsd-tdep.c: Likewise.
4990 * mipsnbsd-tdep.c: Likewise.
4991 * mipsread.c: Likewise.
4992 * mn10300-linux-tdep.c: Likewise.
4993 * mn10300-tdep.c: Likewise.
4994 * monitor.c: Likewise.
4995 * moxie-tdep.c: Likewise.
4996 * mt-tdep.c: Likewise.
4997 * nat/linux-btrace.c: Likewise.
4998 * nat/linux-osdata.c: Likewise.
4999 * nat/linux-procfs.c: Likewise.
5000 * nat/linux-ptrace.c: Likewise.
5001 * nat/linux-waitpid.c: Likewise.
5002 * nbsd-tdep.c: Likewise.
5003 * nios2-linux-tdep.c: Likewise.
5004 * nto-procfs.c: Likewise.
5005 * nto-tdep.c: Likewise.
5006 * objc-lang.c: Likewise.
5007 * objfiles.c: Likewise.
5008 * opencl-lang.c: Likewise.
5009 * osabi.c: Likewise.
5010 * osdata.c: Likewise.
5011 * p-exp.y: Likewise.
5012 * p-lang.c: Likewise.
5013 * p-typeprint.c: Likewise.
5014 * parse.c: Likewise.
5015 * posix-hdep.c: Likewise.
5016 * ppc-linux-nat.c: Likewise.
5017 * ppc-sysv-tdep.c: Likewise.
5018 * ppcfbsd-tdep.c: Likewise.
5019 * ppcnbsd-tdep.c: Likewise.
5020 * ppcobsd-tdep.c: Likewise.
5021 * printcmd.c: Likewise.
5022 * procfs.c: Likewise.
5023 * prologue-value.c: Likewise.
5024 * python/py-auto-load.c: Likewise.
5025 * python/py-gdb-readline.c: Likewise.
5026 * ravenscar-thread.c: Likewise.
5027 * regcache.c: Likewise.
5028 * registry.c: Likewise.
5029 * remote-fileio.c: Likewise.
5030 * remote-m32r-sdi.c: Likewise.
5031 * remote-mips.c: Likewise.
5032 * remote-notif.c: Likewise.
5033 * remote-sim.c: Likewise.
5034 * remote.c: Likewise.
5035 * reverse.c: Likewise.
5036 * rs6000-aix-tdep.c: Likewise.
5037 * ser-base.c: Likewise.
5038 * ser-go32.c: Likewise.
5039 * ser-mingw.c: Likewise.
5040 * ser-pipe.c: Likewise.
5041 * ser-tcp.c: Likewise.
5042 * ser-unix.c: Likewise.
5043 * serial.c: Likewise.
5044 * sh-tdep.c: Likewise.
5045 * sh64-tdep.c: Likewise.
5046 * shnbsd-tdep.c: Likewise.
5047 * skip.c: Likewise.
5048 * sol-thread.c: Likewise.
5049 * solib-dsbt.c: Likewise.
5050 * solib-frv.c: Likewise.
5051 * solib-osf.c: Likewise.
5052 * solib-som.c: Likewise.
5053 * solib-spu.c: Likewise.
5054 * solib-target.c: Likewise.
5055 * solib.c: Likewise.
5056 * somread.c: Likewise.
5057 * source.c: Likewise.
5058 * sparc-nat.c: Likewise.
5059 * sparc-sol2-tdep.c: Likewise.
5060 * sparc-tdep.c: Likewise.
5061 * sparc64-tdep.c: Likewise.
5062 * sparc64fbsd-tdep.c: Likewise.
5063 * sparc64nbsd-tdep.c: Likewise.
5064 * sparcnbsd-tdep.c: Likewise.
5065 * spu-linux-nat.c: Likewise.
5066 * spu-multiarch.c: Likewise.
5067 * spu-tdep.c: Likewise.
5068 * stabsread.c: Likewise.
5069 * stack.c: Likewise.
5070 * std-regs.c: Likewise.
5071 * symfile.c: Likewise.
5072 * symmisc.c: Likewise.
5073 * symtab.c: Likewise.
5074 * target.c: Likewise.
5075 * thread.c: Likewise.
5076 * tilegx-linux-nat.c: Likewise.
5077 * tilegx-tdep.c: Likewise.
5078 * top.c: Likewise.
5079 * tracepoint.c: Likewise.
5080 * tui/tui-command.c: Likewise.
5081 * tui/tui-data.c: Likewise.
5082 * tui/tui-disasm.c: Likewise.
5083 * tui/tui-file.c: Likewise.
5084 * tui/tui-layout.c: Likewise.
5085 * tui/tui-out.c: Likewise.
5086 * tui/tui-regs.c: Likewise.
5087 * tui/tui-source.c: Likewise.
5088 * tui/tui-stack.c: Likewise.
5089 * tui/tui-win.c: Likewise.
5090 * tui/tui-windata.c: Likewise.
5091 * tui/tui-winsource.c: Likewise.
5092 * typeprint.c: Likewise.
5093 * ui-file.c: Likewise.
5094 * ui-out.c: Likewise.
5095 * user-regs.c: Likewise.
5096 * utils.c: Likewise.
5097 * v850-tdep.c: Likewise.
5098 * valarith.c: Likewise.
5099 * valops.c: Likewise.
5100 * valprint.c: Likewise.
5101 * value.c: Likewise.
5102 * varobj.c: Likewise.
5103 * vax-tdep.c: Likewise.
5104 * vaxnbsd-tdep.c: Likewise.
5105 * vaxobsd-tdep.c: Likewise.
5106 * windows-nat.c: Likewise.
5107 * xcoffread.c: Likewise.
5108 * xml-support.c: Likewise.
5109 * xstormy16-tdep.c: Likewise.
5110 * xtensa-linux-nat.c: Likewise.
5111
dccbb609
GB
51122014-08-07 Gary Benson <gbenson@redhat.com>
5113
5114 * common/common-defs.h: Include gdb_assert.h.
5115 * aarch64-tdep.c: Do not include gdb_assert.h.
5116 * addrmap.c: Likewise.
5117 * aix-thread.c: Likewise.
5118 * alpha-linux-tdep.c: Likewise.
5119 * alpha-mdebug-tdep.c: Likewise.
5120 * alphanbsd-tdep.c: Likewise.
5121 * amd64-nat.c: Likewise.
5122 * amd64-tdep.c: Likewise.
5123 * amd64bsd-nat.c: Likewise.
5124 * amd64fbsd-nat.c: Likewise.
5125 * amd64fbsd-tdep.c: Likewise.
5126 * amd64nbsd-nat.c: Likewise.
5127 * amd64nbsd-tdep.c: Likewise.
5128 * amd64obsd-nat.c: Likewise.
5129 * amd64obsd-tdep.c: Likewise.
5130 * arch-utils.c: Likewise.
5131 * arm-tdep.c: Likewise.
5132 * armbsd-tdep.c: Likewise.
5133 * auxv.c: Likewise.
5134 * bcache.c: Likewise.
5135 * bfin-tdep.c: Likewise.
5136 * blockframe.c: Likewise.
5137 * breakpoint.c: Likewise.
5138 * bsd-kvm.c: Likewise.
5139 * bsd-uthread.c: Likewise.
5140 * buildsym.c: Likewise.
5141 * c-exp.y: Likewise.
5142 * c-lang.c: Likewise.
5143 * charset.c: Likewise.
5144 * cleanups.c: Likewise.
5145 * cli-out.c: Likewise.
5146 * cli/cli-decode.c: Likewise.
5147 * cli/cli-dump.c: Likewise.
5148 * cli/cli-logging.c: Likewise.
5149 * cli/cli-script.c: Likewise.
5150 * cli/cli-utils.c: Likewise.
5151 * coffread.c: Likewise.
5152 * common/common-utils.c: Likewise.
5153 * common/queue.h: Likewise.
5154 * common/signals.c: Likewise.
5155 * common/vec.h: Likewise.
5156 * complaints.c: Likewise.
5157 * completer.c: Likewise.
5158 * corelow.c: Likewise.
5159 * cp-abi.c: Likewise.
5160 * cp-name-parser.y: Likewise.
5161 * cp-namespace.c: Likewise.
5162 * cp-support.c: Likewise.
5163 * cris-tdep.c: Likewise.
5164 * dbxread.c: Likewise.
5165 * dictionary.c: Likewise.
5166 * doublest.c: Likewise.
5167 * dsrec.c: Likewise.
5168 * dummy-frame.c: Likewise.
5169 * dwarf2-frame-tailcall.c: Likewise.
5170 * dwarf2-frame.c: Likewise.
5171 * dwarf2expr.c: Likewise.
5172 * dwarf2loc.c: Likewise.
5173 * dwarf2read.c: Likewise.
5174 * eval.c: Likewise.
5175 * event-loop.c: Likewise.
5176 * exceptions.c: Likewise.
5177 * expprint.c: Likewise.
5178 * f-valprint.c: Likewise.
5179 * fbsd-nat.c: Likewise.
5180 * findvar.c: Likewise.
5181 * frame-unwind.c: Likewise.
5182 * frame.c: Likewise.
5183 * frv-tdep.c: Likewise.
5184 * gcore.c: Likewise.
5185 * gdb-dlfcn.c: Likewise.
5186 * gdb_bfd.c: Likewise.
5187 * gdbarch.c: Likewise.
5188 * gdbarch.sh: Likewise.
5189 * gdbtypes.c: Likewise.
5190 * gnu-nat.c: Likewise.
5191 * gnu-v3-abi.c: Likewise.
5192 * go-lang.c: Likewise.
5193 * guile/scm-exception.c: Likewise.
5194 * guile/scm-gsmob.c: Likewise.
5195 * guile/scm-lazy-string.c: Likewise.
5196 * guile/scm-math.c: Likewise.
5197 * guile/scm-pretty-print.c: Likewise.
5198 * guile/scm-safe-call.c: Likewise.
5199 * guile/scm-utils.c: Likewise.
5200 * guile/scm-value.c: Likewise.
5201 * h8300-tdep.c: Likewise.
5202 * hppa-hpux-nat.c: Likewise.
5203 * hppa-tdep.c: Likewise.
5204 * hppanbsd-tdep.c: Likewise.
5205 * hppaobsd-tdep.c: Likewise.
5206 * i386-darwin-nat.c: Likewise.
5207 * i386-darwin-tdep.c: Likewise.
5208 * i386-nto-tdep.c: Likewise.
5209 * i386-tdep.c: Likewise.
5210 * i386bsd-nat.c: Likewise.
5211 * i386fbsd-tdep.c: Likewise.
5212 * i386gnu-nat.c: Likewise.
5213 * i386nbsd-tdep.c: Likewise.
5214 * i386obsd-tdep.c: Likewise.
5215 * i387-tdep.c: Likewise.
5216 * ia64-libunwind-tdep.c: Likewise.
5217 * ia64-tdep.c: Likewise.
5218 * inf-ptrace.c: Likewise.
5219 * inf-ttrace.c: Likewise.
5220 * infcall.c: Likewise.
5221 * infcmd.c: Likewise.
5222 * infrun.c: Likewise.
5223 * inline-frame.c: Likewise.
5224 * interps.c: Likewise.
5225 * jv-lang.c: Likewise.
5226 * jv-typeprint.c: Likewise.
5227 * linux-fork.c: Likewise.
5228 * linux-nat.c: Likewise.
5229 * linux-thread-db.c: Likewise.
5230 * m32c-tdep.c: Likewise.
5231 * m32r-linux-nat.c: Likewise.
5232 * m32r-tdep.c: Likewise.
5233 * m68k-tdep.c: Likewise.
5234 * m68kbsd-nat.c: Likewise.
5235 * m68kbsd-tdep.c: Likewise.
5236 * m88k-tdep.c: Likewise.
5237 * machoread.c: Likewise.
5238 * macroexp.c: Likewise.
5239 * macrotab.c: Likewise.
5240 * maint.c: Likewise.
5241 * mdebugread.c: Likewise.
5242 * memory-map.c: Likewise.
5243 * mep-tdep.c: Likewise.
5244 * mi/mi-common.c: Likewise.
5245 * microblaze-tdep.c: Likewise.
5246 * mingw-hdep.c: Likewise.
5247 * mips-linux-nat.c: Likewise.
5248 * mips-linux-tdep.c: Likewise.
5249 * mips-tdep.c: Likewise.
5250 * mips64obsd-tdep.c: Likewise.
5251 * mipsnbsd-tdep.c: Likewise.
5252 * mn10300-linux-tdep.c: Likewise.
5253 * mn10300-tdep.c: Likewise.
5254 * moxie-tdep.c: Likewise.
5255 * mt-tdep.c: Likewise.
5256 * nat/linux-btrace.c: Likewise.
5257 * nat/linux-osdata.c: Likewise.
5258 * nat/linux-ptrace.c: Likewise.
5259 * nat/mips-linux-watch.c: Likewise.
5260 * nios2-linux-tdep.c: Likewise.
5261 * nios2-tdep.c: Likewise.
5262 * objc-lang.c: Likewise.
5263 * objfiles.c: Likewise.
5264 * obsd-nat.c: Likewise.
5265 * opencl-lang.c: Likewise.
5266 * osabi.c: Likewise.
5267 * parse.c: Likewise.
5268 * ppc-linux-nat.c: Likewise.
5269 * ppc-sysv-tdep.c: Likewise.
5270 * ppcfbsd-nat.c: Likewise.
5271 * ppcfbsd-tdep.c: Likewise.
5272 * ppcnbsd-nat.c: Likewise.
5273 * ppcnbsd-tdep.c: Likewise.
5274 * ppcobsd-nat.c: Likewise.
5275 * ppcobsd-tdep.c: Likewise.
5276 * printcmd.c: Likewise.
5277 * procfs.c: Likewise.
5278 * prologue-value.c: Likewise.
5279 * psymtab.c: Likewise.
5280 * python/py-lazy-string.c: Likewise.
5281 * python/py-value.c: Likewise.
5282 * regcache.c: Likewise.
5283 * reggroups.c: Likewise.
5284 * registry.c: Likewise.
5285 * remote-sim.c: Likewise.
5286 * remote.c: Likewise.
5287 * rs6000-aix-tdep.c: Likewise.
5288 * rs6000-tdep.c: Likewise.
5289 * s390-linux-tdep.c: Likewise.
5290 * score-tdep.c: Likewise.
5291 * ser-base.c: Likewise.
5292 * ser-mingw.c: Likewise.
5293 * sh-tdep.c: Likewise.
5294 * sh64-tdep.c: Likewise.
5295 * solib-darwin.c: Likewise.
5296 * solib-spu.c: Likewise.
5297 * solib-svr4.c: Likewise.
5298 * source.c: Likewise.
5299 * sparc-nat.c: Likewise.
5300 * sparc-sol2-tdep.c: Likewise.
5301 * sparc-tdep.c: Likewise.
5302 * sparc64-sol2-tdep.c: Likewise.
5303 * sparc64-tdep.c: Likewise.
5304 * sparc64fbsd-tdep.c: Likewise.
5305 * sparc64nbsd-tdep.c: Likewise.
5306 * sparc64obsd-tdep.c: Likewise.
5307 * sparcnbsd-tdep.c: Likewise.
5308 * sparcobsd-tdep.c: Likewise.
5309 * spu-multiarch.c: Likewise.
5310 * spu-tdep.c: Likewise.
5311 * stabsread.c: Likewise.
5312 * stack.c: Likewise.
5313 * symfile.c: Likewise.
5314 * symtab.c: Likewise.
5315 * target-descriptions.c: Likewise.
5316 * target-memory.c: Likewise.
5317 * target.c: Likewise.
5318 * tic6x-linux-tdep.c: Likewise.
5319 * tic6x-tdep.c: Likewise.
5320 * tilegx-linux-nat.c: Likewise.
5321 * tilegx-tdep.c: Likewise.
5322 * top.c: Likewise.
5323 * tramp-frame.c: Likewise.
5324 * tui/tui-out.c: Likewise.
5325 * tui/tui-winsource.c: Likewise.
5326 * ui-out.c: Likewise.
5327 * user-regs.c: Likewise.
5328 * utils.c: Likewise.
5329 * v850-tdep.c: Likewise.
5330 * valops.c: Likewise.
5331 * value.c: Likewise.
5332 * varobj.c: Likewise.
5333 * vax-nat.c: Likewise.
5334 * xml-syscall.c: Likewise.
5335 * xml-tdesc.c: Likewise.
5336 * xstormy16-tdep.c: Likewise.
5337 * xtensa-linux-nat.c: Likewise.
5338 * xtensa-tdep.c: Likewise.
5339
e76df0d0
GB
53402014-08-07 Gary Benson <gbenson@redhat.com>
5341
5342 * common/common-defs.h: Include common-utils.h.
5343 * defs.h: Do not include common-utils.h.
5344 * common/gdb_assert.h: Likewise.
5345 * darwin-nat.h: Likewise.
5346 * nat/linux-btrace.c: Likewise.
5347 * target/waitstatus.h: Likewise.
5348
4cb9c816
GB
53492014-08-07 Gary Benson <gbenson@redhat.com>
5350
5351 * common/common-defs.h: Include ptid.h.
5352 * defs.h: Do not include ptid.h.
5353 * inferior.h: Likewise.
5354 * infrun.h: Likewise.
5355 * nat/linux-btrace.h: Likewise.
5356 * nat/linux-osdata.h: Likewise.
5357 * target/waitstatus.h: Likewise.
5358
3995eeee
GB
53592014-08-07 Gary Benson <gbenson@redhat.com>
5360
5361 * common/common-defs.h: Include gdb_locale.h.
5362 * defs.h: Do not include gdb_locale.h.
5363
cb9f1a9b
GB
53642014-08-07 Gary Benson <gbenson@redhat.com>
5365
5366 * common/common-defs.h: Include gdb/signals.h.
5367 * defs.h: Do not include gdb/signals.h.
5368
a5fceff8
GB
53692014-08-07 Gary Benson <gbenson@redhat.com>
5370
5371 * common/common-defs.h: Include pathmax.h.
5372 * defs.h: Do not include pathmax.h.
5373
b9391142
GB
53742014-08-07 Gary Benson <gbenson@redhat.com>
5375
5376 * common/common-defs.h: Include libiberty.h.
5377 * defs.h: Do not include libiberty.h.
5378 * common/queue.h: Likewise.
5379 * cp-name-parser.y: Likewise.
5380 * mi/mi-cmd-catch.c: Likewise.
5381 * python/python.c: Likewise.
5382
0e443c87
GB
53832014-08-07 Gary Benson <gbenson@redhat.com>
5384
5385 * common/common-defs.h: Include ansidecl.h.
5386 * defs.h: Do not include ansidecl.h.
5387 * common/buffer.h: Likewise.
5388 * common/common-utils.h: Likewise.
5389
8ebb3f56
GB
53902014-08-07 Gary Benson <gbenson@redhat.com>
5391
5392 * common/common-defs.h: Include stddef.h.
5393 * defs.h: Do not include stddef.h.
5394 * common/common-utils.h: Likewise.
5395 * amd64fbsd-nat.c: Likewise.
5396 * bcache.c: Likewise.
5397 * charset.c: Likewise.
5398 * common/buffer.h: Likewise.
5399 * common/vec.h: Likewise.
5400 * i386bsd-nat.c: Likewise.
5401 * nat/linux-btrace.h: Likewise.
5402 * ppcfbsd-nat.c: Likewise.
5403 * ppcnbsd-tdep.h: Likewise.
5404 * ppcobsd-nat.c: Likewise.
5405 * ppcobsd-tdep.h: Likewise.
5406 * python/py-gdb-readline.c: Likewise.
5407
8980bdf6
GB
54082014-08-07 Gary Benson <gbenson@redhat.com>
5409
5410 * common/common-defs.h: Include stdarg.h.
5411 * defs.h: Do not include stdarg.h.
5412 * ada-lang.c: Likewise.
5413 * common/common-utils.h: Likewise.
5414 * guile/scm-string.c: Likewise.
5415 * guile/scm-utils.c: Likewise.
5416 * m32c-tdep.c: Likewise.
5417
d7096f71
GB
54182014-08-07 Gary Benson <gbenson@redhat.com>
5419
5420 * common/common-defs.h: Include stdlib.h.
5421 * defs.h: Do not include stdlib.h.
5422 * addrmap.c: Likewise.
5423 * bcache.c: Likewise.
5424 * common/buffer.c: Likewise.
5425 * common/common-utils.c: Likewise.
5426 * cp-name-parser.y: Likewise.
5427 * go32-nat.c: Likewise.
5428 * mn10300-linux-tdep.c: Likewise.
5429 * nat/linux-osdata.c: Likewise.
5430 * tui/tui.c: Likewise.
5431 * windows-nat.c: Likewise.
5432
d02f550d
GB
54332014-08-07 Gary Benson <gbenson@redhat.com>
5434
5435 * common/common-defs.h: Include stdio.h.
5436 * defs.h: Do not include stdio.h.
5437 * ada-lang.c: Likewise.
5438 * common/buffer.c: Likewise.
5439 * common/common-utils.c: Likewise.
5440 * cp-name-parser.y: Likewise.
5441 * gnu-nat.c: Likewise.
5442 * go32-nat.c: Likewise.
5443 * i386gnu-nat.c: Likewise.
5444 * proc-api.c: Likewise.
5445 * proc-events.c: Likewise.
5446 * proc-flags.c: Likewise.
5447 * proc-why.c: Likewise.
5448 * python/python-internal.h: Likewise.
5449 * target-memory.c: Likewise.
5450 * tui/tui-io.c: Likewise.
5451 * tui/tui.c: Likewise.
5452
b6d7a4bf
SM
54532014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5454
5455 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5456 (scan_dyntag_auxv): Same.
5457
af19829b
YQ
54582014-08-06 Yao Qi <yao@codesourcery.com>
5459
5460 * amd64-linux-nat.c: Remove duplicated include
5461 "x86-linux-nat.h".
5462 * i386-linux-nat.c: Likewise.
5463
8e07a239
YQ
54642014-08-06 Yao Qi <yao@codesourcery.com>
5465
5466 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5467 operand" with "Special opcode" in comments.
5468
7bfe8241
GB
54692014-08-05 Gary Benson <gbenson@redhat.com>
5470
5471 * interps.c (initialize_interps): Remove prototype.
5472 (interpreter_initialized): Remove static global.
5473 (interp_add): Do not call initialize_interps.
5474 (initialize_interps): Remove function.
5475
d6c95504
GB
54762014-08-05 Gary Benson <gbenson@redhat.com>
5477
5478 * utils.c (vwarning): Remove spurious va_end.
5479
241fd515
AM
54802014-08-05 Alan Modra <amodra@gmail.com>
5481
5482 * charset.c (convert_between_encodings): Cast result of obstack_base.
5483 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5484 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5485 (read_unwind_info): Use size_t for some locals.
5486 * jit.c (finalize_symtab): Likewise.
5487 * utils.c (hashtab_obstack_allocate): Likewise.
5488 * symmisc.c (print_objfile_statistics): Update format strings.
5489
dc304a94
JK
54902014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5491
5492 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5493 (Changes in GDB 7.8): ... here.
5494
3cecbbbe
TT
54952014-08-04 Tom Tromey <tromey@redhat.com>
5496
5497 * target.c (set_targetdebug): New function.
5498 (initialize_targets): Pass set_targetdebug when creating "set
5499 debug target".
5500
6908c509
JB
55012014-08-01 Joel Brobecker <brobecker@adacore.com>
5502
5503 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5504 if detecting a variable-sized field that is not the last field.
5505 Fix struct type length computation.
5506
53e8f97d
JB
55072014-08-01 Joel Brobecker <brobecker@adacore.com>
5508
5509 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5510 Add debug trace.
5511
e068c55d
JB
55122014-08-01 Joel Brobecker <brobecker@adacore.com>
5513
5514 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5515 Remove "+ 8" offset in computation of CHAIN_VMA.
5516
4d4ca2a1
DE
55172014-07-31 Doug Evans <dje@google.com>
5518
5519 * inflow.c (child_terminal_inferior): Add comment.
5520 (child_terminal_ours_for_output): Add comment.
5521 (child_terminal_ours): Add comment.
5522 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5523 (linux_nat_terminal_ours): Add comment.
5524
462f517e
GB
55252014-07-31 Gary Benson <gbenson@redhat.com>
5526
5527 * common/btrace-common.h: Do not include defs.h or server.h.
5528 * nat/mips-linux-watch.h: Likewise.
5529 * gdb-dlfcn.h: Do not include defs.h.
5530 * tracefile.h: Likewise.
5531
74228e77
RM
55322014-07-30 Roland McGrath <mcgrathr@google.com>
5533
5534 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5535
014f9477
TT
55362014-07-30 Tom Tromey <tromey@redhat.com>
5537
5538 * bsd-kvm.c (bsd_kvm_open): Constify.
5539 * corelow.c (core_open): Constify.
5540 * ctf.c (ctf_open): Constify.
5541 * dbug-rom.c (dbug_open): Constify.
5542 * exec.c (exec_open): Constify.
5543 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5544 * microblaze-rom.c (picobug_open): Constify.
5545 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5546 Constify.
5547 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5548 * record-btrace.c (record_btrace_open): Constify.
5549 * record-full.c (record_full_core_open_1, record_full_open_1)
5550 (record_full_open): Constify.
5551 * remote-m32r-sdi.c (m32r_open): Constify.
5552 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5553 (rockhopper_open, lsi_open): Constify.
5554 * remote-sim.c (gdbsim_open): Constify.
5555 * remote.c (remote_open, extended_remote_open, remote_open_1):
5556 Constify.
5557 * target.h (struct target_ops) <to_open>: Make "arg" const.
5558 * tracefile-tfile.c (tfile_open): Constify.
5559
e799154c
TT
55602014-07-30 Tom Tromey <tromey@redhat.com>
5561
5562 * breakpoint.c (map_breakpoint_numbers): Update.
5563 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5564 (get_number_const): New function.
5565 (get_number): Rewrite using get_number_const.
5566 (init_number_or_range): Make "string" const.
5567 (number_is_in_list): Make "list" const.
5568 * cli/cli-utils.h (get_number_const): Declare.
5569 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5570 (init_number_or_range, number_is_in_list): Update.
5571 * printcmd.c (map_display_numbers): Update.
5572 * value.c (value_from_history_ref): Constify.
5573 * value.h (value_from_history_ref): Update.
5574
5f08566b
TT
55752014-07-30 Tom Tromey <tromey@redhat.com>
5576
5577 * corefile.c (hook_type, call_extra_exec_file_hooks)
5578 (specify_exec_file_hook): Constify.
5579 * exec.c (exec_file_attach): Make "filename" const.
5580 * gdbcore.h (deprecated_exec_file_display_hook)
5581 (specify_exec_file_hook, exec_file_attach): Constify.
5582 * main.c (captured_main): Use catch_command_errors_const.
5583
8981c758
TT
55842014-07-30 Tom Tromey <tromey@redhat.com>
5585
5586 * target.c (open_target): New function.
5587 (add_target_with_completer, add_deprecated_target_alias): Use
5588 set_cmd_sfunc, set_cmd_context.
5589 (debug_to_open): Remove.
5590 (setup_target_debug): Update.
5591
a1c7835a
YQ
55922014-07-30 Yao Qi <yao@codesourcery.com>
5593
5594 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5595 comments.
5596 * parse.c (exp_iterate): Update comments.
5597
976411d6
GB
55982014-07-30 Gary Benson <gbenson@redhat.com>
5599
5600 * common/common-defs.h: New file.
5601 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5602 * defs.h: Include common-defs.h.
5603 Do not include config.h or build-gnulib/config.h.
5604
5d4848a4
GB
56052014-07-30 Gary Benson <gbenson@redhat.com>
5606
5607 * common/common-utils.h: Do not include config.h.
5608 * nat/linux-btrace.h: Likewise.
5609
d41f6d8e
GB
56102014-07-30 Gary Benson <gbenson@redhat.com>
5611
5612 * btrace.c: Include defs.h.
5613 * common/ptid.c: Include defs.h or server.h as appropriate.
5614 * nat/mips-linux-watch.c: Likewise.
5615
84202f9c
TT
56162014-07-29 Tom Tromey <tromey@redhat.com>
5617
5618 * target.c (target_is_pushed): Simplify.
5619
2530441c
JB
56202014-07-29 Joel Brobecker <brobecker@adacore.com>
5621
5622 GDB 7.8 released.
5623
7e09a223
YQ
56242014-07-29 Yao Qi <yao@codesourcery.com>
5625
5626 PR gdb/17206
5627 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5628
7ebdbe92
DE
56292014-07-28 Doug Evans <xdje42@gmail.com>
5630
5631 PR guile/17203
5632 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5633 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5634 parameters.
5635
f347ffc9
WN
56362014-07-28 Will Newton <will.newton@linaro.org>
5637
5638 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5639 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5640 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5641 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5642 (THUMB2_EABI_SYSCALL): Likewise.
5643 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5644 struct tramp_frame.
5645 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5646 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5647
37c5f1f7
DE
56482014-07-27 Doug Evans <xdje42@gmail.com>
5649
5650 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5651
0c3abbc7
DE
56522014-07-27 Doug Evans <xdje42@gmail.com>
5653
5654 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5655
e76c5d17
DE
56562014-07-26 Ludovic Courtès <ludo@gnu.org>
5657 Doug Evans <xdje42@gmail.com>
5658
5659 PR guile/17146
5660 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5661 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5662 * configure.ac: Try to use guild to compile an scm file, if it fails
5663 then disable guile support.
5664 * configure: Regenerate.
5665 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5666 GUILE_FILE_LIST.
5667 (GUILE_COMPILED_FILES): New variable.
5668 (GUILE_FILES) Update.
5669 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5670 (stamp-guile): Compile scm files.
5671 * guile/guile.c (boot_guile_support): New function.
5672 (standard_throw_args_p): New function.
5673 (print_standard_throw_error, print_throw_error): New functions.
5674 (handle_boot_error): New function.
5675 (initialize_scheme_side): Rewrite to call boot_guile_support.
5676 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5677 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5678
186fcde0
DE
56792014-07-26 Ludovic Courtès <ludo@gnu.org>
5680 Doug Evans <xdje42@gmail.com>
5681
5682 PR guile/17146
5683 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5684 * guile/lib/gdb/support.scm: New file.
5685 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5686 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5687 All uses updated.
5688 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5689 All uses updated.
5690 (%assert-type): Ditto, and renamed to assert-type.
5691 (%exception-print-style): Delete.
5692
4df42755
DE
56932014-07-26 Doug Evans <xdje42@gmail.com>
5694
5695 PR build/17105
5696 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5697 * configure: Regenerate.
5698 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5699 PYTHON_FILES.
5700 (PYTHON_FILES): New variable.
5701 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5702 (GUILE_FILES): New variable.
5703 (stamp-python, install-python, uninstall-python): Handle empty
5704 file list.
5705 (stamp-guile, install-guile, uninstall-guile): Ditto.
5706
ee7333ae
DE
57072014-07-26 Doug Evans <xdje42@gmail.com>
5708
5709 PR guile/17177
5710 * guile/lib/gdb.scm (pretty-printers): Export.
5711 (set-pretty-printers!): Export.
5712 * guile/lib/gdb/printing.scm (gdb module): Update.
5713 (prepend-pretty-printer!, append-pretty-printer!): Update.
5714 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5715 (pretty_printer_list_var): Delete.
5716 (pretty_printer_list): New static global.
5717 (gdbscm_pretty_printers): New function.
5718 (gdbscm_set_pretty_printers_x): New function.
5719 (ppscm_find_pretty_printer_from_gdb): Update.
5720 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5721 (gdbscm_initialize_pretty_printers): Update.
5722
74edf516
DE
57232014-07-26 Doug Evans <xdje42@gmail.com>
5724
5725 PR 17185
5726 * configure.ac: Add check for header gc/gc.h.
5727 Add check for function setenv.
5728 * configure: Regenerate.
5729 * config.in: Regenerate.
5730 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5731
d54398a7
MR
57322014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5733
5734 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5735 variation in gdbarch matching.
5736
ab16fce8
TT
57372014-07-25 Tom Tromey <tromey@redhat.com>
5738
5739 * exec.c (using_exec_ops): Remove.
5740 (exec_close_1): Update. Remove extraneous block, reindent.
5741 (add_target_sections): Use target_is_pushed.
5742
88056fbb
PA
57432014-07-25 Pedro Alves <palves@redhat.com>
5744
5745 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5746 * monitor.c (monitor_create_inferior): Likewise.
5747 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5748 * remote-sim.c (gdbsim_create_inferior): Likewise.
5749 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5750 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5751 * windows-nat.c (do_initial_windows_stuff): Likewise.
5752
70509625
PA
57532014-07-25 Pedro Alves <palves@redhat.com>
5754
5755 * NEWS: Mention signal passing and "signal" command changes.
5756 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5757 comment.
5758 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5759 call.
5760 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5761 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5762 (jump_command): Adjust clear_proceed_status call.
5763 (signal_command): Warn if other thread that are resumed have
5764 signals that will be delivered. Adjust clear_proceed_status call.
5765 (until_next_command, finish_command)
5766 (proceed_after_attach_callback, attach_command_post_wait)
5767 (attach_command): Adjust clear_proceed_status call.
5768 * infrun.c (proceed_after_vfork_done): Likewise.
5769 (proceed_after_attach_callback): Adjust comment.
5770 (clear_proceed_status_thread): Clear stop_signal if not in pass
5771 state.
5772 (clear_proceed_status_callback): Delete.
5773 (clear_proceed_status): New 'step' parameter. Only clear the
5774 proceed status of threads the command being prepared is about to
5775 resume.
5776 (proceed): If passed in an explicit signal, override stop_signal
5777 with it. Don't pass the last stop signal to the thread we're
5778 resuming.
5779 (init_wait_for_inferior): Adjust clear_proceed_status call.
5780 (switch_back_to_stepped_thread): Clear the signal if it should not
5781 be passed.
5782 * infrun.h (clear_proceed_status): New 'step' parameter.
5783 (user_visible_resume_ptid): Add comment.
5784 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5785 signal is in pass state.
5786 * remote.c (append_pending_thread_resumptions): Likewise.
5787 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5788
d8be2939
TT
57892014-07-25 Tom Tromey <tromey@redhat.com>
5790
5791 * target.h (target_stopped_data_address)
5792 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5793 parentheses.
5794
7d0d9d2b
PL
57952014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5796
5797 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5798 comments.
5799 (avr_pointer_to_address): Likewise.
5800
e9e7f724
TT
58012014-07-24 Tom Tromey <tromey@redhat.com>
5802
5803 * monitor.c (compile_pattern): Update.
5804 * target.h (struct target_ops) <to_shortname, to_longname,
5805 to_doc>: Now const.
5806
1947513d
TT
58072014-07-24 Tom Tromey <tromey@redhat.com>
5808
5809 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5810 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5811 (add_info_alias, add_com): Make "doc" const.
5812 (print_doc_line): Make "str" const.
5813 (delete_cmd): Update.
5814 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5815 (print_doc_line): Update.
5816 * cli/cli-script.c (document_command): Update.
5817 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5818 (add_com, add_info, add_info_alias): Update.
5819 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5820 * python/py-cmd.c (cmdpy_destroyer): Update.
5821
64e61d29
TT
58222014-07-24 Tom Tromey <tromey@redhat.com>
5823
5824 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5825 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5826 (help_cmd_list): Constify.
5827 (lookup_cmd): Update.
5828 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5829 const.
5830 (help_cmd_list, apropos_cmd): Update.
5831 * cli/cli-script.c (show_user): Update.
5832 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5833 * cli/cli-setshow.h (cmd_show_list): Update.
5834 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5835 (cmd_show_list): Update.
5836 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5837 * python/py-cmd.c (cmdpy_destroyer): Update.
5838
429e55ea
TT
58392014-07-24 Tom Tromey <tromey@redhat.com>
5840
5841 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5842 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5843 const.
5844 * command.h (deprecate_cmd): Update.
5845 * maint.c (maintenance_do_deprecate): Add casts.
5846
64669f3b
TT
58472014-07-24 Tom Tromey <tromey@redhat.com>
5848
5849 * cli/cli-decode.c (help_cmd): Make parameter "const".
5850 * cli/cli-decode.h (help_cmd): Update.
5851
d3d3328b
TT
58522014-07-24 Tom Tromey <tromey@redhat.com>
5853
5854 * stack.c (up_silently_base, down_silently_base): Make argument
5855 const.
5856
414842dc
TT
58572014-07-24 Tom Tromey <tromey@redhat.com>
5858
5859 * solib.c (solib_add): Make "pattern" const.
5860 * solib.h (solib_add): Update.
5861
baa336ce
TT
58622014-07-24 Tom Tromey <tromey@redhat.com>
5863
5864 * remote.c (remote_serial_open, print_packet, putpkt)
5865 (putpkt_binary): Constify.
5866 * remote.h (putpkt): Update.
5867
5a19e2d0
TT
58682014-07-24 Tom Tromey <tromey@redhat.com>
5869
5870 * monitor.c (monitor_open): Make "args" const.
5871 * monitor.h (monitor_open): Update.
5872
fc4baa5e
TT
58732014-07-24 Tom Tromey <tromey@redhat.com>
5874
5875 * maint.c (match_bfd_flags): Make "string" const.
5876 (print_bfd_section_info): Remove casts.
5877 (print_objfile_section_info): Make "string" const.
5878
0d5f0dbe
TT
58792014-07-24 Tom Tromey <tromey@redhat.com>
5880
5881 * inf-child.c (inf_child_open_target): Make "arg" const.
5882 * inf-child.h (inf_child_open_target): Update.
5883
41c77899
TT
58842014-07-24 Tom Tromey <tromey@redhat.com>
5885
5886 * environ.c (unset_in_environ): Make "var" const.
5887 * environ.h (unset_in_environ): Update.
5888
93db0d79
TT
58892014-07-24 Tom Tromey <tromey@redhat.com>
5890
5891 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5892 Make "cmd" const.
5893 (scan_filename_with_cleanup): Likewise.
5894 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5895 Make arguments const.
5896 (restore_command): Update.
5897
36d6eb95
PA
58982014-07-24 Pedro Alves <palves@redhat.com>
5899
5900 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5901
8009206a
TT
59022014-07-24 Tom Tromey <tromey@redhat.com>
5903 Gary Benson <gbenson@redhat.com>
5904
5905 * nat/linux-ptrace.c (additional_flags): New global.
5906 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5907 additional_flags; don't check GDBSERVER.
5908 (linux_ptrace_set_additional_flags): New function.
5909 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5910 Declare.
5911 * linux-nat.c (_initialize_linux_nat): Call
5912 linux_ptrace_set_additional_flags.
5913
a7068b60
TT
59142014-07-24 Tom Tromey <tromey@redhat.com>
5915
5916 * make-target-delegates (munge_type, write_debugmethod): New
5917 functions.
5918 (debug_names): New global.
5919 ($TARGET_DEBUG_PRINTER): New global.
5920 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5921 name.
5922 Write debug methods. Generate init_debug_target.
5923 * target-debug.h: New file.
5924 * target-delegates.c: Rebuild.
5925 * target.c: Include target-debug.h.
5926 (debug_target): Hoist definition.
5927 (target_kill, target_get_section_table, target_memory_map)
5928 (target_flash_erase, target_flash_done, target_detach)
5929 (target_disconnect, target_wait, target_resume)
5930 (target_pass_signals, target_program_signals, target_follow_fork)
5931 (target_mourn_inferior, target_search_memory)
5932 (target_thread_address_space, target_close)
5933 (target_find_new_threads, target_core_of_thread)
5934 (target_verify_memory, target_insert_mask_watchpoint)
5935 (target_remove_mask_watchpoint): Remove targetdebug code.
5936 (debug_to_post_attach, debug_to_prepare_to_store)
5937 (debug_to_files_info, debug_to_insert_breakpoint)
5938 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5939 (debug_to_region_ok_for_hw_watchpoint)
5940 (debug_to_can_accel_watchpoint_condition)
5941 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5942 (debug_to_watchpoint_addr_within_range)
5943 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5944 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5945 (debug_to_terminal_init, debug_to_terminal_inferior)
5946 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5947 (debug_to_terminal_save_ours, debug_to_terminal_info)
5948 (debug_to_load, debug_to_post_startup_inferior)
5949 (debug_to_insert_fork_catchpoint)
5950 (debug_to_remove_fork_catchpoint)
5951 (debug_to_insert_vfork_catchpoint)
5952 (debug_to_remove_vfork_catchpoint)
5953 (debug_to_insert_exec_catchpoint)
5954 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5955 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5956 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5957 (setup_target_debug): Call init_debug_target.
5958 * target.h (TARGET_DEBUG_PRINTER): New macro.
5959 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5960 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5961
2c51604d
GB
59622014-07-24 Gary Benson <gbenson@redhat.com>
5963
5964 * exceptions.h (throw_vfatal): Renamed to...
5965 (throw_vquit): New declaration.
5966 (throw_quit): Likewise.
5967 * exceptions.c (throw_vfatal): Renamed to...
5968 (throw_vquit): New function.
5969 (throw_quit): Likewise.
5970 (throw_error): Call throw_verror rather than throw_it.
5971 * utils.h (vfatal): Removed.
5972 (fatal): Likewise.
5973 * utils.c (vfatal): Removed.
5974 (fatal): Likewise.
5975 (internal_verror): Replaced call to fatal with call to throw_quit.
5976 (quit): Replaced calls to fatal with calls to throw_quit.
5977
34211963
ME
59782014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5979
5980 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5981 target_read_code.
5982
a52b4d3e
ME
59832014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5984
5985 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5986 less than zero in conditional expression.
5987
a8bdc56b
TT
59882014-07-23 Tom Tromey <tromey@redhat.com>
5989
5990 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5991 ($INTRO_PART): Don't match whitespace.
5992 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5993 argument matching.
5994 ($METHOD): Add $METHOD_TRAILER.
5995 (trim): Rewrite.
5996 (scan_target_h): New sub.
5997 Change main loop not to collect state.
5998 * target-delegates.c: Rebuild.
5999
91b52240
GB
60002014-07-23 Gary Benson <gbenson@redhat.com>
6001
6002 * cp-support.c (gdb_demangle): Fix build on systems without
6003 sigaltstack.
6004
45326f6f
JK
60052014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6006
6007 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6008 for reference entry value target data value.
6009
e214cf6c
JK
60102014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6011
6012 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6013 value_available_contents_eq.
6014
bddbbedd
PA
60152014-07-22 Pedro Alves <palves@redhat.com>
6016
6017 * value.c (allocate_optimized_out_value): Don't mark value as
6018 non-lazy.
6019
45c71484
JW
60202014-07-22 Jiong Wang <jiong.wang@arm.com>
6021
6022 * MAINTAINERS (Write After Approval): Update my email address.
6023
9597b22a
DE
60242014-07-20 Doug Evans <dje@google.com>
6025
6026 PR server/17147
6027 * remote.c (putpkt_binary): Add text to error message.
6028
91101fe5
YQ
60292014-07-20 Yao Qi <yao@codesourcery.com>
6030
6031 * eval.c: Remove "Chill" from comments.
6032 * gdbtypes.h: Likewise.
6033 * symtab.h: Likewise.
6034
c9402c95
YQ
60352014-07-20 Yao Qi <yao@codesourcery.com>
6036
6037 * std-operator.def: Update comments to TERNOP_SLICE.
6038
ae8fddda
YQ
60392014-07-20 Yao Qi <yao@codesourcery.com>
6040
6041 * std-operator.def: Remove BINOP_RANGE.
6042 * breakpoint.c (watchpoint_exp_is_const): Update.
6043 * expprint.c (dump_subexp_body_standard): Likewise.
6044 * eval.c (init_array_element): Remove dead code.
6045 (evaluate_subexp_standard): Likewise.
6046
9c816640
YQ
60472014-07-20 Yao Qi <yao@codesourcery.com>
6048
6049 * std-operator.def: Remove BINOP_IN.
6050 * breakpoint.c (watchpoint_exp_is_const): Update.
6051 * eval.c (evaluate_subexp_standard): Likewise.
6052 * expprint.c (dump_subexp_body_standard): Likewise.
6053
164224e9
ME
60542014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6055
6056 * microblaze-tdep.c (microblaze_register_names): Add
6057 the rshr and rslr register names.
6058 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6059 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6060 Use of tdesc_numbered_register. Use of
6061 microblaze_register_g_packet_guesses. Use of
6062 tdesc_use_registers. Use of set_gdbarch_register_type.
6063 (microblaze_register_g_packet_guesses): New.
6064 * microblaze-tdep.h (microblaze_reg_num): Add
6065 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6066 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6067 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6068 * features/microblaze-core.xml: New file.
6069 * features/microblaze-stack-protect.xml: New file.
6070 * features/microblaze-with-stack-protect.c: New file.
6071 * features/microblaze-with-stack-protect.xml: New file.
6072 * features/microblaze.xml: New file.
6073 * features/microblaze.c: New file.
6074 * features/Makefile (microblaze-with-stack-protect): Add
6075 microblaze-with-stack-protect microblaze and microblaze-expedite.
6076 * regformats/microblaze-with-stack-protect.dat: New file.
6077 * regformats/microblaze.dat: New file.
6078 * doc/gdb.texinfo (MicroBlaze Features): Added.
6079
e8b2341c
TT
60802014-07-18 Tom Tromey <tromey@redhat.com>
6081
6082 * exec.c (exec_ops): Now static.
6083 * exec.h (exec_ops): Don't declare.
6084
44e89118
TT
60852014-07-18 Tom Tromey <tromey@redhat.com>
6086
6087 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6088 to find_target_beneath.
6089 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6090 find_target_beneath.
6091 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6092
b0ed115f
TT
60932014-07-18 Tom Tromey <tromey@redhat.com>
6094
6095 PR gdb/17130:
6096 * utils.c (quit): Use target_supports_terminal_ours.
6097 * target.h (target_supports_terminal_ours): Declare.
6098 * target.c (target_supports_delete_record): Don't check
6099 to_delete_record against NULL.
6100 (target_supports_terminal_ours): New function.
6101
e75fdfca
TT
61022014-07-18 Tom Tromey <tromey@redhat.com>
6103
6104 PR gdb/17130:
6105 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6106 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6107 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6108 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6109 * windows-nat.c (windows_xfer_partial): Always delegate.
6110 * record-btrace.c (record_btrace_xfer_partial): Simplify
6111 delegation.
6112 (record_btrace_fetch_registers, record_btrace_store_registers)
6113 (record_btrace_prepare_to_store, record_btrace_resume)
6114 (record_btrace_wait, record_btrace_find_new_threads)
6115 (record_btrace_thread_alive): Likewise.
6116 * procfs.c (procfs_xfer_partial): Always delegate.
6117 * corelow.c (core_xfer_partial): Always delegate.
6118 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6119
83814951
TT
61202014-07-18 Tom Tromey <tromey@redhat.com>
6121
6122 * exec.c (exec_make_note_section): Move earlier.
6123
b8b8facf
DE
61242014-07-17 Doug Evans <dje@google.com>
6125
74b49205 6126 PR gdb/17170
b8b8facf
DE
6127 * maint.c (count_symtabs_and_blocks): Handle NULL
6128 current_program_space.
6129 (report_command_stats): Check global enabled flag in addition to
6130 recorded enabled flag.
6131 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6132
69ff6be5
PA
61332014-07-16 Pedro Alves <palves@redhat.com>
6134
6135 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6136
252db1b5
TT
61372014-07-16 Tom Tromey <tromey@redhat.com>
6138
6139 * target.h (struct target_ops) <to_delete_record>: Reformat
6140 comment.
6141
a432721e
TT
61422014-07-16 Tom Tromey <tromey@redhat.com>
6143
6144 * target-delegates.c: Rebuild.
6145
487d9753
PL
61462014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6147
6148 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6149 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6150 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6151 (avr_pointer_to_address): Likewise.
6152 (avr_address_class_type_flags): New function.
6153 (avr_address_class_type_flags_to_name): Likewise.
6154 (avr_address_class_name_to_type_flags): Likewise.
6155 (avr_gdbarch_init): Set address_class_type_flags,
6156 address_class_type_flags_to_name and
6157 address_class_name_to_type_flags.
6158
57745c90
PA
61592014-07-15 Pedro Alves <palves@redhat.com>
6160
6161 * linux-nat.c (kill_callback): Save errno and work with saved
6162 copy.
6163
2d40be18
SM
61642014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6165
6166 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6167
572f6555
EBM
61682014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6169
6170 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6171 breakpoint support correctly.
6172
cc1c52ad
PA
61732014-07-14 Pedro Alves <palves@redhat.com>
6174
6175 * utils.c (prompt_for_continue): Call target_terminal_ours.
6176
1e973570
PA
61772014-07-14 Pedro Alves <palves@redhat.com>
6178
6179 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6180 catch_errors. Don't re-enable stdin or notify observers where,
6181 and rethrow error.
6182 (fetch_inferior_event_wrapper): Delete.
6183
93d6eb10
PA
61842014-07-14 Pedro Alves <palves@redhat.com>
6185
6186 PR gdb/17072
6187 * top.c: Include "inf-loop.h".
6188 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6189 field.
6190 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6191 was async before.
6192 (gdb_readline_wrapper): Store whether the target is async, and
6193 make it sync.
6194
0017922d
PA
61952014-07-14 Pedro Alves <palves@redhat.com>
6196
6197 PR gdb/17072
6198 * top.c (gdb_readline_wrapper_line): Tweak comment.
6199 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6200 the input handler callback.
6201
94696ad3
PA
62022014-07-14 Pedro Alves <palves@redhat.com>
6203
6204 PR gdb/17072
6205 * main.c: Include event-top.h.
6206 (handle_command_errors): New function.
6207 (catch_command_errors, catch_command_errors_const): Use it.
6208
9d1e69a2
PA
62092014-07-14 Pedro Alves <palves@redhat.com>
6210
6211 * exceptions.c (catch_command_errors, catch_command_errors_const):
6212 Moved to main.c.
6213 * exceptions.h (catch_command_errors_ftype)
6214 (catch_command_errors_const_ftype): Moved to main.c.
6215 (catch_command_errors, catch_command_errors_const): Delete
6216 declarations.
6217 * main.c (catch_command_errors_ftype)
6218 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6219 (catch_command_errors, catch_command_errors_const)): Moved here
6220 from exceptions.c and make static.
6221
feefc97b
PA
62222014-07-14 Pedro Alves <palves@redhat.com>
6223
6224 * exceptions.c (print_any_exception): Delete.
6225 (catch_exceptions_with_msg): Use exception_print instead of
6226 print_any_exception.
6227 (catch_errors): Use exception_fprintf instead of
6228 print_any_exception.
6229 (catch_command_errors, catch_command_errors_const): Use
6230 exception_print instead of print_any_exception.
6231
c933f875
PA
62322014-07-14 Pedro Alves <palves@redhat.com>
6233
6234 * infcall.c (run_inferior_call): Set 'sync_execution' while
6235 running the inferior call.
6236
feb6f816
PA
62372014-07-14 Pedro Alves <palves@redhat.com>
6238
6239 * value.c (value_contents_equal): Delete function.
6240 * value.h (value_contents_equal): Delete declaration.
6241
d98b7a16
TT
62422014-07-14 Tom Tromey <tromey@redhat.com>
6243
6244 PR exp/17106:
6245 * gdbtypes.c (is_dynamic_type_internal): New function, from
6246 is_dynamic_type.
6247 (is_dynamic_type): Rewrite.
6248 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6249 (resolve_dynamic_struct): Likewise.
6250 (resolve_dynamic_type_internal): New function, from
6251 resolve_dynamic_type.
6252 (resolve_dynamic_type): Rewrite.
6253
548740d6
TT
62542014-07-14 Tom Tromey <tromey@redhat.com>
6255
6256 * target.c (target_require_runnable): Also check record_stratum.
6257 Update comment.
6258
808f7ab1
YQ
62592014-07-11 Yao Qi <yao@codesourcery.com>
6260
6261 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6262 thumb_instruction_restores_sp return true.
6263
540314bd
YQ
62642014-07-11 Yao Qi <yao@codesourcery.com>
6265
6266 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6267 (thumb_in_function_epilogue_p): Call
6268 thumb_instruction_restores_sp.
6269
1db01f22
YQ
62702014-07-11 Yao Qi <yao@codesourcery.com>
6271
6272 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6273 'add sp, #imm'.
6274 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6275
3116063b
GB
62762014-07-11 Gary Benson <gbenson@redhat.com>
6277
6278 * amd64-linux-nat.c (gdbcore.h): Remove include.
6279 (regset.h): Likewise.
6280 (nat/linux-btrace.h): Likewise.
6281 (btrace.h): Likewise.
6282 (gdb_assert.h): Likewise.
6283 (string.h): Likewise.
6284 (sys/uio.h): Likewise.
6285 (sys/debugreg.h): Likewise.
6286 (sys/syscall.h): Likewise.
6287 (sys/procfs.h): Likewise.
6288 (sys/user.h): Likewise.
6289 (asm/ptrace.h): Likewise.
6290 (i386-nat.h): Likewise.
6291 * i386-linux-nat.c (i386-nat.h): Likewise.
6292 (regset.h): Likewise.
6293 (target.h): Likewise.
6294 (linux-nat.h): Likewise.
6295 (nat/linux-btrace.h): Likewise.
6296 (btrace.h): Likewise.
6297 (gdb_assert.h): Likewise.
6298 (string.h): Likewise.
6299 (sys/uio.h): Likewise.
6300 (sys/user.h): Likewise.
6301 (sys/procfs.h): Likewise.
6302 (sys/reg.h): Likewise.
6303 (sys/debugreg.h): Likewise.
6304 (ORIG_EAX): Remove definition.
6305
040baaf6
GB
63062014-07-11 Gary Benson <gbenson@redhat.com>
6307
6308 * i386-linux-nat.h: New file.
6309 * x86-linux-nat.h: Likewise.
6310 * x86-linux-nat.c: Likewise.
6311 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6312 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6313 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6314 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6315 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6316 (PTRACE_SETREGSET): Likewise.
6317 (arch_lwp_info): Now in x86-linux-nat.c.
6318 (have_ptrace_getregset): Now in x86-linux-nat.h.
6319 (x86_linux_dr_get): Now in x86-linux-nat.c.
6320 (x86_linux_dr_set): Likewise.
6321 (x86_linux_dr_get_addr): Likewise.
6322 (x86_linux_dr_get_control): Likewise.
6323 (x86_linux_dr_get_status): Likewise.
6324 (update_debug_registers_callback): Likewise.
6325 (x86_linux_dr_set_control): Likewise.
6326 (x86_linux_dr_set_addr): Likewise.
6327 (x86_linux_prepare_to_resume): Likewise.
6328 (x86_linux_new_thread): Likewise.
6329 (x86_linux_new_fork): Likewise.
6330 (x86_linux_get_thread_area): Likewise.
6331 (super_post_startup_inferior): Likewise.
6332 (x86_linux_child_post_startup_inferior): Likewise.
6333 (AMD64_LINUX_USER64_CS): Likewise.
6334 (AMD64_LINUX_X32_DS): Likewise.
6335 (x86_linux_read_description): Likewise.
6336 (x86_linux_enable_btrace): Likewise.
6337 (x86_linux_disable_btrace): Likewise.
6338 (x86_linux_teardown_btrace): Likewise.
6339 (x86_linux_read_btrace): Likewise.
6340 (x86_linux_create_target): Likewise.
6341 (x86_linux_add_target): Likewise.
6342 * i386-linux-nat.c (x86-linux-nat.h): New include.
6343 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6344 (PTRACE_SETREGSET): Likewise.
6345 (arch_lwp_info): Now in x86-linux-nat.c.
6346 (have_ptrace_getregset): Now in x86-linux-nat.h.
6347 (x86_linux_dr_get): Now in x86-linux-nat.c.
6348 (x86_linux_dr_set): Likewise.
6349 (x86_linux_dr_get_addr): Likewise.
6350 (x86_linux_dr_get_control): Likewise.
6351 (x86_linux_dr_get_status): Likewise.
6352 (update_debug_registers_callback): Likewise.
6353 (x86_linux_dr_set_control): Likewise.
6354 (x86_linux_dr_set_addr): Likewise.
6355 (x86_linux_prepare_to_resume): Likewise.
6356 (x86_linux_new_thread): Likewise.
6357 (x86_linux_new_fork): Likewise.
6358 (x86_linux_get_thread_area): Likewise.
6359 (super_post_startup_inferior): Likewise.
6360 (x86_linux_child_post_startup_inferior): Likewise.
6361 (AMD64_LINUX_USER64_CS): Likewise.
6362 (AMD64_LINUX_X32_DS): Likewise.
6363 (x86_linux_read_description): Likewise.
6364 (x86_linux_enable_btrace): Likewise.
6365 (x86_linux_disable_btrace): Likewise.
6366 (x86_linux_teardown_btrace): Likewise.
6367 (x86_linux_read_btrace): Likewise.
6368 (x86_linux_create_target): Likewise.
6369 (x86_linux_add_target): Likewise.
6370
1aa7e42c
GB
63712014-07-11 Gary Benson <gbenson@redhat.com>
6372
6373 * amd64-linux-nat.c: Comment and whitespace changes.
6374 * i386-linux-nat.c: Comment and whitespace changes.
6375
c1e246a0
GB
63762014-07-11 Gary Benson <gbenson@redhat.com>
6377
6378 * amd64-linux-nat.c (x86_linux_create_target): New function.
6379 (x86_linux_add_target): Likewise.
6380 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6381 * i386-linux-nat.c (x86_linux_create_target): New function.
6382 (x86_linux_add_target): Likewise.
6383 (_initialize_i386_linux_nat): Delegate to the above new functions.
6384
8c420b8d
GB
63852014-07-11 Gary Benson <gbenson@redhat.com>
6386
6387 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6388 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6389 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6390 (ps_get_thread_area): Delegate to the above.
6391
cb1da100
GB
63922014-07-11 Gary Benson <gbenson@redhat.com>
6393
6394 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6395 x86_linux_read_description. All uses updated. amd64-specific
6396 code conditionalized. Conditionalized i386-specific code added.
6397 Redundant cast removed.
6398 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6399 x86_linux_read_description. All uses updated. i386-specific
6400 code conditionalized. Conditionalized amd64-specific code added.
6401 One sizeof replaced with the actual type it is describing.
6402
2acf3cd0
GB
64032014-07-11 Gary Benson <gbenson@redhat.com>
6404
6405 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6406 x86_linux_dr_get. All uses updated.
6407 (amd64_linux_dr_set): Renamed to
6408 x86_linux_dr_set. All uses updated.
6409 (amd64_linux_dr_get_addr): Renamed to
6410 x86_linux_dr_get_addr. All uses updated.
6411 (amd64_linux_dr_get_control): Renamed to
6412 x86_linux_dr_get_control. All uses updated.
6413 (amd64_linux_dr_get_status): Renamed to
6414 x86_linux_dr_get_status. All uses updated.
6415 (amd64_linux_dr_set_control): Renamed to
6416 x86_linux_dr_set_control. All uses updated.
6417 (amd64_linux_dr_set_addr): Renamed to
6418 x86_linux_dr_set_addr. All uses updated.
6419 (amd64_linux_prepare_to_resume): Renamed to
6420 x86_linux_prepare_to_resume. All uses updated.
6421 (amd64_linux_new_thread): Renamed to
6422 x86_linux_new_thread. All uses updated.
6423 (amd64_linux_new_fork): Renamed to
6424 x86_linux_new_fork. All uses updated.
6425 (amd64_linux_child_post_startup_inferior): Renamed to
6426 x86_linux_child_post_startup_inferior. All uses updated.
6427 (amd64_linux_enable_btrace): Renamed to
6428 x86_linux_enable_btrace. All uses updated.
6429 (amd64_linux_disable_btrace): Renamed to
6430 x86_linux_disable_btrace. All uses updated.
6431 (amd64_linux_teardown_btrace): Renamed to
6432 x86_linux_teardown_btrace. All uses updated.
6433 (amd64_linux_read_btrace): Renamed to
6434 x86_linux_read_btrace. All uses updated.
6435 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6436 x86_linux_dr_get. All uses updated.
6437 (i386_linux_dr_set): Renamed to
6438 x86_linux_dr_set. All uses updated.
6439 (i386_linux_dr_get_addr): Renamed to
6440 x86_linux_dr_get_addr. All uses updated.
6441 (i386_linux_dr_get_control): Renamed to
6442 x86_linux_dr_get_control. All uses updated.
6443 (i386_linux_dr_get_status): Renamed to
6444 x86_linux_dr_get_status. All uses updated.
6445 (i386_linux_dr_set_control): Renamed to
6446 x86_linux_dr_set_control. All uses updated.
6447 (i386_linux_dr_set_addr): Renamed to
6448 x86_linux_dr_set_addr. All uses updated.
6449 (i386_linux_prepare_to_resume): Renamed to
6450 x86_linux_prepare_to_resume. All uses updated.
6451 (i386_linux_new_thread): Renamed to
6452 x86_linux_new_thread. All uses updated.
6453 (i386_linux_new_fork): Renamed to
6454 x86_linux_new_fork. All uses updated.
6455 (i386_linux_child_post_startup_inferior): Renamed to
6456 x86_linux_child_post_startup_inferior. All uses updated.
6457 (i386_linux_enable_btrace): Renamed to
6458 x86_linux_enable_btrace. All uses updated.
6459 (i386_linux_disable_btrace): Renamed to
6460 x86_linux_disable_btrace. All uses updated.
6461 (i386_linux_teardown_btrace): Renamed to
6462 x86_linux_teardown_btrace. All uses updated.
6463 (i386_linux_read_btrace): Renamed to
6464 x86_linux_read_btrace. All uses updated.
6465
b9c1d481
AS
64662014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6467
6468 * remote.c (extended_remote_post_attach): New function.
6469 (init_extended_remote_ops): Install it as to_post_attach method.
6470
7180e04a
PA
64712014-07-09 Pedro Alves <palves@redhat.com>
6472
6473 * infcmd.c (attach_command_post_wait): Don't call
6474 target_terminal_inferior here.
6475 (attach_command): Call it here instead.
6476
9a9a7608
AB
64772014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6478
6479 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6480 field.
6481 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6482 from varobj.c, with additional checks.
6483 (c_varobj_ops): Fill in is_path_expr_parent field.
6484 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6485 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6486 field.
6487 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6488 ops method.
6489 (varobj_default_is_path_expr_parent): New function.
6490 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6491 (varobj_default_is_path_expr_parent): Declare new function.
6492
1f267ae3
MM
64932014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6494
6495 * infcmd.c (finish_backward): Turn internal error into normal error.
6496
b2ee242b
PA
64972014-07-07 Pedro Alves <palves@redhat.com>
6498
8a869bca 6499 PR gdb/17096
b2ee242b
PA
6500 * remote.c (async_handle_remote_sigint)
6501 (async_handle_remote_sigint_twice): Call
6502 gdb_call_async_signal_handler instead of
6503 mark_async_signal_handler.
6504
38e229b2
TT
65052014-07-07 Tom Tromey <tromey@redhat.com>
6506
6507 * target-delegates.c: Rebuild.
6508 * target.c (target_info_record): Remove.
6509 * record.c (info_record_command): Unconditionally call
6510 to_info_record.
6511 * target.h (struct target_ops) <to_info_record>: Use
6512 TARGET_DEFAULT_IGNORE.
6513 (target_info_record): Remove.
6514
f0f9ff95
TT
65152014-07-07 Tom Tromey <tromey@redhat.com>
6516
6517 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6518 TARGET_DEFAULT_NORETURN.
6519 * target.c (generic_tls_error): New function.
6520 (target_translate_tls_address): Don't search target stack.
6521 * target-delegates.c: Rebuild.
6522 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6523 stack.
6524 * linux-thread-db.c (thread_db_get_thread_local_address):
6525 Unconditionally call beneath target.
6526
4a5be5ee
MK
65272014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6528
6529 * cli/cli-logging.c (pop_output_files): Assign targerr to
6530 gdb_stdtargerr.
6531
92c3b204
AB
65322014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * MAINTAINERS (Write After Approval): Update my email address.
6535
9b11e3a7
GB
65362014-07-02 Gary Benson <gbenson@redhat.com>
6537
6538 * proc-service.c (ps_xfer_memory): Update comment.
6539 (ps_pstop): Remove unused function.
6540 (ps_pcontinue): Likewise.
6541 (ps_lstop): Likewise.
6542 (ps_lcontinue): Likewise.
6543 (ps_lgetxregsize): Likewise.
6544 (ps_lgetxregs): Likewise.
6545 (ps_lsetxregs): Likewise.
6546 (ps_plog): Likewise.
6547 (ps_ptread): Likewise.
6548 (ps_ptwrite): Likewise.
6549
cf363f18
MW
65502014-07-01 Mark Wielaard <mjw@redhat.com>
6551
6552 * dwarf2read.c (add_array_cv_type): New function.
6553 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6554 (read_tag_volatile_type): Likewise.
6555
82ae6c8d
TT
65562014-07-01 Tom Tromey <tromey@redhat.com>
6557
6558 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6559 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6560 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6561 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6562 * command.h (cmd_cfunc_ftype): Move earlier.
6563 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6564 (add_com, add_info): Use cmd_cfunc_ftype.
6565
96142726
TT
65662014-06-30 Tom Tromey <tromey@redhat.com>
6567
6568 * symtab.c (operator_chars): Make parameters and return type
6569 const.
6570 (file_matches): Make "files" const.
6571 (struct search_symbols_data) <files>: Now const.
6572 (search_symbols): Make "regexp" and "files" parameters const.
6573 Update.
6574 (symtab_symbol_info): Remove cast.
6575 (rbreak_command): Update.
6576 * symtab.h (search_symbols): Update.
6577
b67a2c6f
YQ
65782014-06-27 Yao Qi <yao@codesourcery.com>
6579
6580 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6581 Change parameter type to 'struct thread_info *'. Caller
6582 updated.
6583 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6584 Update declaration.
6585 * dummy-frame.c (struct dummy_frame_id): New.
6586 (dummy_frame_id_eq): New function.
6587 (struct dummy_frame) <id>: Change its type to 'struct
6588 dummy_frame_id'.
6589 (dummy_frame_push): Add parameter ptid and save it in
6590 dummy_frame_id.
6591 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6592 inferior_ptid.
6593 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6594 to inferior_ptid.
6595 (lookup_dummy_frame): Change parameter type to 'struct
6596 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6597 instead of frame_id_eq.
6598 (dummy_frame_pop): Add parameter ptid. Callers updated.
6599 Update comments. Compose dummy_frame_id and pass it to
6600 lookup_dummy_frame.
6601 (dummy_frame_discard): Add parameter ptid.
6602 (dummy_frame_sniffer): Compose dummy_frame_id and call
6603 dummy_frame_id_eq instead of frame_id_eq.
6604 (fprint_dummy_frames): Print ptid.
6605 * dummy-frame.h: Remove comments.
6606 (dummy_frame_push): Add ptid in declaration.
6607 (dummy_frame_pop, dummy_frame_discard): Likewise.
6608
5b10184c
TT
66092014-06-26 Tom Tromey <tromey@redhat.com>
6610
6611 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6612 * command.h (error_no_arg): Update.
6613
06900326
TT
66142014-06-26 Tom Tromey <tromey@redhat.com>
6615
6616 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6617 (do_show_command): Make "arg" const.
6618 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6619
c2bcbb1d
TT
66202014-06-26 Tom Tromey <tromey@redhat.com>
6621
6622 * record-full.c (record_full_get_bookmark): Make "args" const.
6623 (record_full_goto_bookmark): Make "raw_bookmark" const.
6624 * record.c (record_goto): New function.
6625 (cmd_record_goto): Use it. Now static.
6626 * record.h (record_goto): Declare.
6627 (cmd_record_goto): Remove declaration.
6628 * target-delegates.c: Rebuild.
6629 * target.h (struct target_ops) <to_get_bookmark,
6630 to_goto_bookmark>: Make parameter const.
6631
9cbe5fff
TT
66322014-06-26 Tom Tromey <tromey@redhat.com>
6633
6634 * defs.h (generic_load): Update.
6635 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6636 * monitor.c (monitor_load): Make "args" const.
6637 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6638 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6639 const.
6640 (mips_load): Make "file" const.
6641 * remote-sim.c (gdbsim_load): Make "args" const.
6642 * remote.c (remote_load): Make "name" const.
6643 * symfile.c (generic_load): Make "args" const.
6644 * target-delegates.c: Rebuild.
6645 * target.c (target_load): Make "arg" const.
6646 (debug_to_load): Make "args" const.
6647 * target.h (struct target_ops) <to_load>: Make parameter const.
6648 (target_load): Update.
6649
34a68019
TT
66502014-06-26 Tom Tromey <tromey@redhat.com>
6651
6652 PR symtab/16902:
6653 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6654 (dwarf2_physname, read_partial_die)
6655 (guess_partial_die_structure_name, fixup_partial_die)
6656 (guess_full_die_structure_name, anonymous_struct_prefix)
6657 (dwarf2_name): Use per-BFD obstack.
6658
efc889c1
YQ
66592014-06-26 Yao Qi <yao@codesourcery.com>
6660
6661 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6662 dummyframe and this_id into inner block below.
6663
4395285e
YQ
66642014-06-26 Yao Qi <yao@codesourcery.com>
6665
6666 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6667 with "signal_pass[0]" in the initialization of signal_pass.
6668
aef92902
MM
66692014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6670
6671 * record-btrace.c (record_btrace_generating_corefile)
6672 (record_btrace_prepare_to_generate_core)
6673 (record_btrace_done_generating_core): New.
6674 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6675 (record_btrace_store_registers, record_btrace_prepare_to_store):
6676 Forward request when generating a core file.
6677 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6678 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6679 to_done_generating_core.
6680
5fff78c4
MM
66812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6682
6683 * target.h (target_ops) <to_prepare_to_generate_core>
6684 <to_done_generating_core>: New.
6685 (target_prepare_to_generate_core, target_done_generating_core): New.
6686 * target.c (target_prepare_to_generate_core)
6687 (target_done_generating_core): New.
6688 * target-delegates.c: Regenerate.
6689 * gcore.c: (write_gcore_file): Rename to ...
6690 (write_gcore_file_1): ...this.
6691 (write_gcore_file): Call target_prepare_to_generate_core
6692 and target_done_generating_core.
6693
1d1f1ccb
MM
66942014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6695
6696 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6697 * gcore.c (write_gcore_file): Free memory returned from
6698 make_corefile_notes.
6699 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6700 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6701
3343ef86
YQ
67022014-06-24 Yao Qi <yao@codesourcery.com>
6703
6704 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6705 (arm_linux_init_abi): Set skip_trampoline_code with
6706 gdbarch_skip_trampoline_code instead of
6707 find_solib_trampoline_target.
6708
18d18ac8
YQ
67092014-06-24 Yao Qi <yao@codesourcery.com>
6710
6711 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6712 arm_skip_bx_reg returns non-zero.
6713
80d8d390
YQ
67142014-06-24 Yao Qi <yao@codesourcery.com>
6715
6716 * arm-tdep.c (arm_skip_bx_reg): New function.
6717 (arm_skip_stub): Call arm_skip_bx_reg.
6718
6a18a01c
DB
67192014-06-23 Don Breazeal <donb@codesourcery.com>
6720
6721 * MAINTAINERS: Add myself as write-after-approval maintainer.
6722
8e9db26e
PA
67232014-06-23 Pedro Alves <palves@redhat.com>
6724
6725 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6726 DR_CONTROL before setting DR0..DR3.
6727 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6728 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6729 bits of DR_CONTROL related to the debug register slot being
6730 disabled. If all slots are vacant, clear local slowdown as well,
6731 and assert DR_CONTROL is 0.
6732
70afc5b7
SC
67332014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6734
6735 * python/lib/gdb/command/xmethods.py
6736 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6737 current progspace only if the string "progspace" matches LOCUS_RE.
6738
840ed64d
JK
67392014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 Fix --with-system-readline with readline-6.3 patch 5.
6742 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6743 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6744 types.
6745
26f2dc30
TT
67462014-06-20 Tom Tromey <tromey@redhat.com>
6747
6748 * dwarf2read.c (dw2_get_real_path): Use correct type in
6749 OBSTACK_CALLOC.
6750 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6751
125f8a3d
GB
67522014-06-20 Gary Benson <gbenson@redhat.com>
6753
6754 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6755 * common/glibc_thread_db.h: Likewise.
6756 * common/i386-cpuid.h: Likewise.
6757 * common/i386-gcc-cpuid.h: Likewise.
6758 * common/linux-btrace.h: Likewise.
6759 * common/linux-osdata.h: Likewise.
6760 * common/linux-procfs.h: Likewise.
6761 * common/linux-ptrace.h: Likewise.
6762 * common/mips-linux-watch.h: Likewise.
6763 * common/linux-btrace.c: Moved to nat.
6764 * common/linux-osdata.c: Likewise.
6765 * common/linux-procfs.c: Likewise.
6766 * common/linux-ptrace.c: Likewise.
6767 * common/mips-linux-watch.c: Likewise.
6768 * nat/gdb_thread_db.h: Moved from common.
6769 * nat/glibc_thread_db.h: Likewise.
6770 * nat/i386-cpuid.h: Likewise.
6771 * nat/i386-gcc-cpuid.h: Likewise.
6772 * nat/linux-btrace.c: Likewise.
6773 * nat/linux-btrace.h: Likewise.
6774 * nat/linux-osdata.c: Likewise.
6775 * nat/linux-osdata.h: Likewise.
6776 * nat/linux-procfs.c: Likewise.
6777 * nat/linux-procfs.h: Likewise.
6778 * nat/linux-ptrace.c: Likewise.
6779 * nat/linux-ptrace.h: Likewise.
6780 * nat/mips-linux-watch.c: Likewise.
6781 * nat/mips-linux-watch.h: Likewise.
6782 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6783 (object file files): Reordered.
6784 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6785 of glibc_thread_db.h.
6786
42995dbd
GB
67872014-06-20 Gary Benson <gbenson@redhat.com>
6788
6789 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6790 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6791 (i386_dr_low): Likewise.
6792 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6793 (i386_dr_low_set_addr): Likewise.
6794 (i386_dr_low_get_addr): Likewise.
6795 (i386_dr_low_can_set_control): Likewise.
6796 (i386_dr_low_set_control): Likewise.
6797 (i386_dr_low_get_control): Likewise.
6798 (i386_dr_low_get_status): Likewise.
6799 (i386_get_debug_register_length): Likewise.
6800 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6801 (i386_dr_low): Likewise.
6802 * nat/i386-dregs.c (i386-low.h): Remove include.
6803 (i386-nat.h): Likewise.
6804 (nat/i386-dregs.h): New include.
6805 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6806 (i386_dr_low_set_addr): Likewise.
6807 (i386_dr_low_get_addr): Likewise.
6808 (i386_dr_low_can_set_control): Likewise.
6809 (i386_dr_low_set_control): Likewise.
6810 (i386_dr_low_get_control): Likewise.
6811 (i386_dr_low_get_status): Likewise.
6812 (i386_get_debug_register_length): Likewise.
6813 (debug_hw_points): Likewise.
6814
3ed9baed
IB
68152014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6816
6817 * Makefile.in (SFILES): Add d-exp.y.
6818 (YYFILES): Add d-exp.c.
6819 (YYOBJ): Add d-exp.o.
6820 (local-maintainer-clean): Delete d-exp.c.
6821 * d-exp.y: New file.
6822 * d-lang.h (d_parse): New declaration.
6823 (d_error): New declaration.
6824 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6825 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6826 PREC_ORDER operators.
6827 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6828
78c164b0
YQ
68292014-06-19 Yao Qi <yao@codesourcery.com>
6830
6831 * gdbthread.h (any_running): Remove the declaration.
6832 * thread.c (any_running): Remove.
6833
f6e29b6e
YQ
68342014-06-19 Yao Qi <yao@codesourcery.com>
6835
6836 * gdbthread.h (struct thread_info) <state>: Change its type to
6837 'enum thread_state'. Update comments.
6838
034f788c
PA
68392014-06-19 Pedro Alves <palves@redhat.com>
6840
6841 * gdbthread.h (ALL_THREADS): Delete.
6842 (ALL_NON_EXITED_THREADS): New macro.
6843 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6844 instead of ALL_THREADS.
6845 * infrun.c (find_thread_needs_step_over)
6846 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6847 instead of ALL_THREADS.
6848 * record-btrace.c (record_btrace_open)
6849 (record_btrace_stop_recording, record_btrace_close)
6850 (record_btrace_is_replaying, record_btrace_resume)
6851 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6852 * remote.c (append_pending_thread_resumptions): Likewise.
6853 * thread.c (thread_apply_all_command): Likewise.
6854
46e33252
GB
68552014-06-19 Gary Benson <gbenson@redhat.com>
6856
6857 * i386-nat.c (i386_stopped_by_watchpoint):
6858 Use i386_dr_stopped_by_watchpoint.
6859 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6860 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6861
3a8ee006
GB
68622014-06-19 Gary Benson <gbenson@redhat.com>
6863
6864 * nat/i386-dregs.c: New file.
6865 * Makefile.in (i386-dregs.o): New rule.
6866 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6867 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6868 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6869 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6870 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6871 * config/i386/go32.mh (NATDEPFILES): Likewise.
6872 * config/i386/linux.mh (NATDEPFILES): Likewise.
6873 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6874 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6875 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6876 * i386-nat.h (debug_hw_points): New declaration.
6877 * i386-nat.c (breakpoint.h): Remove include.
6878 (command.h): Likewise.
6879 (target.h): Likewise.
6880 (gdb_assert.h): Likewise.
6881 (debug_hw_points): Made nonstatic.
6882 (debug_printf): Now in i386-dregs.c.
6883 (TARGET_HAS_DR_LEN_8): Likewise.
6884 (DR_CONTROL_SHIFT): Likewise.
6885 (DR_CONTROL_SIZE): Likewise.
6886 (DR_RW_EXECUTE): Likewise.
6887 (DR_RW_WRITE): Likewise.
6888 (DR_RW_READ): Likewise.
6889 (DR_RW_IORW): Likewise.
6890 (DR_LEN_1): Likewise.
6891 (DR_LEN_2): Likewise.
6892 (DR_LEN_4): Likewise.
6893 (DR_LEN_8): Likewise.
6894 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6895 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6896 (DR_ENABLE_SIZE): Likewise.
6897 (DR_LOCAL_SLOWDOWN): Likewise.
6898 (DR_GLOBAL_SLOWDOWN): Likewise.
6899 (DR_CONTROL_RESERVED): Likewise.
6900 (I386_DR_CONTROL_MASK): Likewise.
6901 (I386_DR_VACANT): Likewise.
6902 (I386_DR_LOCAL_ENABLE): Likewise.
6903 (I386_DR_GLOBAL_ENABLE): Likewise.
6904 (I386_DR_DISABLE): Likewise.
6905 (I386_DR_SET_RW_LEN): Likewise.
6906 (I386_DR_GET_RW_LEN): Likewise.
6907 (I386_DR_WATCH_HIT): Likewise.
6908 (i386_wp_op_t): Likewise.
6909 (i386_show_dr): Likewise.
6910 (i386_length_and_rw_bits): Likewise.
6911 (i386_insert_aligned_watchpoint): Likewise.
6912 (i386_remove_aligned_watchpoint): Likewise.
6913 (i386_handle_nonaligned_watchpoint): Likewise.
6914 (i386_update_inferior_debug_regs): Likewise.
6915 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6916 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6917 (i386_region_ok_for_watchpoint):
6918 Use i386_dr_region_ok_for_watchpoint.
6919 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6920
322a8e06
GB
69212014-06-19 Gary Benson <gbenson@redhat.com>
6922
6923 * i386-nat.c (i386_insert_hw_breakpoint): Use
6924 i386_insert_watchpoint.
6925 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6926
8f26655c
GB
69272014-06-19 Gary Benson <gbenson@redhat.com>
6928
6929 * i386-nat.c (i386_dr_show): Renamed to
6930 i386_show_dr and made static. All uses updated.
6931 (i386_dr_length_and_rw_bits): Renamed to
6932 i386_length_and_rw_bits and made static.
6933 All uses updated.
6934 (i386_dr_insert_aligned_watchpoint): Renamed to
6935 i386_insert_aligned_watchpoint and made static.
6936 All uses updated.
6937 (i386_dr_remove_aligned_watchpoint): Renamed to
6938 i386_remove_aligned_watchpoint and made static.
6939 All uses updated.
6940 (i386_dr_update_inferior_debug_regs): Renamed to
6941 i386_update_inferior_debug_regs and made static.
6942 All uses updated.
6943 * nat/i386-dregs.h (i386_dr_show): Removed.
6944 (i386_dr_length_and_rw_bits): Likewise.
6945 (i386_dr_insert_aligned_watchpoint): Likewise.
6946 (i386_dr_remove_aligned_watchpoint): Likewise.
6947 (i386_dr_update_inferior_debug_regs): Likewise.
6948
992c7d70
GB
69492014-06-19 Gary Benson <gbenson@redhat.com>
6950
6951 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6952 * configure: Regenerate.
6953 * config.in: Likewise.
6954 * main.c (signal.h): New include.
6955 (setup_alternate_signal_stack): New function.
6956 (captured_main): Call the above.
6957 * cp-support.c (signal.h): New include.
6958 (catch_demangler_crashes): New flag.
6959 (SIGJMP_BUF): New define.
6960 (SIGSETJMP): Likewise.
6961 (SIGLONGJMP): Likewise.
6962 (gdb_demangle_jmp_buf): New static global.
6963 (gdb_demangle_attempt_core_dump): Likewise.
6964 (gdb_demangle_signal_handler): New function.
6965 (gdb_demangle): If catch_demangler_crashes is set, install the
6966 above signal handler before calling bfd_demangle, and restore
6967 the original signal handler afterwards. Display the offending
6968 symbol and call demangler_warning the first time a segmentation
6969 fault is caught.
6970 (_initialize_cp_support): New maint set/show command.
6971
eae7090b
GB
69722014-06-19 Gary Benson <gbenson@redhat.com>
6973
6974 * utils.h (resource_limit_kind): New enum.
6975 (can_dump_core): New declaration.
6976 (warn_cant_dump_core): Likewise.
6977 (dump_core): Likewise.
6978 * utils.c (dump_core): Made nonstatic. Added new
6979 parameter "limit_kind".
6980 (can_dump_core): Made nonstatic. Moved printing code to...
6981 (warn_cant_dump_core): New function.
6982 (can_dump_core_warn): Likewise.
6983 (internal_vproblem): Replace calls to can_dump_core with
6984 calls to can_dump_core_warn. Supply new argument to each.
6985
57fcfb1b
GB
69862014-06-19 Gary Benson <gbenson@redhat.com>
6987
6988 * utils.h (demangler_vwarning): New declaration.
6989 (demangler_warning): Likewise.
6990 * utils.c (struct internal_problem)
6991 <user_settable_should_quit>: New field.
6992 <user_settable_should_dump_core>: Likewise
6993 (internal_error_problem): Add values for above new fields.
6994 (internal_warning_problem): Likewise.
6995 (demangler_warning_problem): New static global.
6996 (demangler_vwarning): New function.
6997 (demangler_warning): Likewise.
6998 (add_internal_problem_command): Selectively add commands.
6999 (_initialize_utils): New internal problem command.
7000 * maint.c (maintenance_demangler_warning): New function.
7001 (_initialize_maint_cmds): New command.
7002
17a40b44
TT
70032014-06-18 Tom Tromey <tromey@redhat.com>
7004
7005 * f-valprint.c (info_common_command_for_block): Update.
7006 * symtab.h (struct general_symbol_info) <common_block>: Now
7007 const.
7008
346d1dfe
TT
70092014-06-18 Tom Tromey <tromey@redhat.com>
7010
7011 * symtab.h (struct symtab) <blockvector>: Now const.
7012 * ada-lang.c (ada_add_global_exceptions): Update.
7013 * buildsym.c (augment_type_symtab): Update.
7014 * dwarf2read.c (dw2_lookup_symbol): Update.
7015 * jit.c (finalize_symtab): Update.
7016 * jv-lang.c (add_class_symtab_symbol): Update.
7017 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7018 Update.
7019 * objfiles.c (objfile_relocate1): Update.
7020 * psymtab.c (lookup_symbol_aux_psymtabs)
7021 (maintenance_check_psymtabs): Update.
7022 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7023 Update.
7024 * spu-tdep.c (spu_catch_start): Update.
7025 * symmisc.c (dump_symtab_1): Update.
7026 * symtab.c (lookup_global_symbol_from_objfile)
7027 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7028 (basic_lookup_transparent_type_quick)
7029 (basic_lookup_transparent_type, find_pc_sect_symtab)
7030 (find_pc_sect_line, search_symbols): Update.
7031 * block.c (find_block_in_blockvector): Make "bl" const.
7032 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7033 const.
7034 (blockvector_contains_pc): Make "bv" const.
7035 (block_for_pc_sect): Update.
7036 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7037 (blockvector_contains_pc): Update.
7038 * breakpoint.c (resolve_sal_pc): Update.
7039 * inline-frame.c (block_starting_point_at): Update.
7040
1834676b
TT
70412014-06-18 Tom Tromey <tromey@redhat.com>
7042
7043 * completer.c (complete_line): Make "line_buffer" const.
7044 * completer.h (complete_line): Update.
7045
ac1a991b
TT
70462014-06-18 Tom Tromey <tromey@redhat.com>
7047
7048 * symtab.c (add_macro_name): Remove unneeded cast.
7049
5bc98e52
TT
70502014-06-18 Tom Tromey <tromey@redhat.com>
7051
7052 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7053 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7054
8236def8
TT
70552014-06-18 Tom Tromey <tromey@redhat.com>
7056
7057 * probe.c (info_probes_for_ops): Make "arg" const.
7058 * probe.h (info_probes_for_ops): Update.
7059
3977b71f
TT
70602014-06-18 Tom Tromey <tromey@redhat.com>
7061
7062 * varobj.c (varobj_create): Update.
7063 * valops.c (value_of_this): Update.
7064 * tracepoint.c (add_local_symbols, scope_info): Update.
7065 * symtab.h (struct general_symbol_info) <block>: Now const.
7066 * symtab.c (skip_prologue_sal)
7067 (default_make_symbol_completion_list_break_on)
7068 (skip_prologue_using_sal): Update.
7069 * stack.h (iterate_over_block_locals)
7070 (iterate_over_block_local_vars): Update.
7071 * stack.c (print_frame_args): Update.
7072 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7073 parameter const.
7074 (get_selected_block): Make return type const.
7075 * python/py-frame.c (frapy_block): Update.
7076 * python/py-block.c (gdbpy_block_for_pc): Update.
7077 * p-exp.y (%union) <bval>: Now const.
7078 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7079 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7080 * m2-exp.y (%union) <bval>: Now const.
7081 * linespec.c (get_current_search_block): Make return type const.
7082 (create_sals_line_offset, find_label_symbols): Update.
7083 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7084 Update.
7085 (block_starting_point_at): Make "block" const.
7086 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7087 (check_exception_resume): Update.
7088 * guile/scm-frame.c (gdbscm_frame_block): Update.
7089 * guile/scm-block.c (gdbscm_lookup_block): Update.
7090 * frame.h (get_frame_block): Update.
7091 (get_selected_block): Make return type const.
7092 * frame.c (frame_id_inner): Update.
7093 * f-valprint.c (info_common_command_for_block)
7094 (info_common_command): Update.
7095 * dwarf2loc.c (dwarf2_find_location_expression)
7096 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7097 (locexpr_describe_location_piece): Update.
7098 * c-exp.y (%union) <bval>: Now const.
7099 * breakpoint.c (resolve_sal_pc): Update.
7100 * blockframe.c (get_frame_block):Make return type const.
7101 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7102 (block_innermost_frame): Update.
7103 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7104 (block_for_pc, block_for_pc_sect): Update.
7105 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7106 'pblock' const.
7107 (block_for_pc_sect, block_for_pc): Make return type const.
7108 * ax-gdb.c (gen_expr): Update.
7109 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7110 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7111 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7112 (ada_read_var_value): Update.
7113 * ada-exp.y (struct name_info) <block>: Now const.
7114 (%union): Likewise.
7115 (block_lookup): Constify.
7116
b9228891
GB
71172014-06-18 Gary Benson <gbenson@redhat.com>
7118
7119 * nat/i386-dregs.h: New file.
7120 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7121 * i386-nat.h (i386-dregs.h): New include.
7122 (DR_FIRSTADDR): Now in i386-dregs.h.
7123 (DR_LASTADDR): Likewise.
7124 (DR_NADDR): Likewise.
7125 (DR_STATUS): Likewise.
7126 (DR_CONTROL): Likewise.
7127 (i386_debug_reg_state): Likewise.
7128 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7129
a1aa2221
LM
71302014-06-18 Don Breazeal <donb@codesourcery.com>
7131
7132 * breakpoint.c (set_longjmp_breakpoint): Call
7133 momentary_breakpoint_from_master with additional argument.
7134 (set_longjmp_breakpoint_for_call_dummy): Call
7135 momentary_breakpoint_from_master with additional argument.
7136 (set_std_terminate_breakpoint): Call
7137 momentary_breakpoint_from_master with additional argument.
7138 (momentary_breakpoint_from_master): Add argument to function
7139 definition and use it to initialize structure member flag.
74228e77 7140 (clone_momentary_breakpoint): Call
a1aa2221
LM
7141 momentary_breakpoint_from_master with additional argument.
7142 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7143 member flags set in momentary_breakpoint_from_master.
7144
4be83cc2
GB
71452014-06-18 Gary Benson <gbenson@redhat.com>
7146
7147 * i386-nat.c (i386_show_dr): Renamed to
7148 i386_dr_show and made nonstatic. All uses updated.
7149 (i386_length_and_rw_bits): Renamed to
7150 i386_dr_length_and_rw_bits and made nonstatic.
7151 All uses updated.
7152 (i386_insert_aligned_watchpoint): Renamed to
7153 i386_dr_insert_aligned_watchpoint and made nonstatic.
7154 All uses updated.
7155 (i386_remove_aligned_watchpoint): Renamed to
7156 i386_dr_remove_aligned_watchpoint and made nonstatic.
7157 All uses updated.
7158 (i386_update_inferior_debug_regs): Renamed to
7159 i386_dr_update_inferior_debug_regs and made nonstatic.
7160 All uses updated.
7161
131aa0d4
GB
71622014-06-18 Gary Benson <gbenson@redhat.com>
7163
7164 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7165 (i386_dr_low_can_set_control): Likewise.
7166 (i386_dr_low_set_addr): Likewise.
7167 (i386_dr_low_set_control): Likewise.
7168 (i386_dr_low_get_addr): Likewise.
7169 (i386_dr_low_get_status): Likewise.
7170 (i386_dr_low_get_control): Likewise.
7171 (i386_insert_aligned_watchpoint): Use new macros.
7172 (i386_update_inferior_debug_regs): Likewise.
7173 (i386_stopped_data_address): Likewise.
7174
d9305f7f
GB
71752014-06-18 Gary Benson <gbenson@redhat.com>
7176
7177 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7178 New parameter. All uses updated.
7179
ea008da4
GB
71802014-06-18 Gary Benson <gbenson@redhat.com>
7181
7182 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7183 All uses updated.
7184
1b6d4134
GB
71852014-06-18 Gary Benson <gbenson@redhat.com>
7186
7187 * i386-nat.c (debug_printf): New macro.
7188 (i386_get_debug_register_length): Likewise.
7189 (TARGET_HAS_DR_LEN_8): Use above macro.
7190 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7191 and printf_unfiltered. Use phex to format values.
7192
9b4550ef
GB
71932014-06-18 Gary Benson <gbenson@redhat.com>
7194
7195 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7196 Make const.
7197
6e62758f
GB
71982014-06-18 Gary Benson <gbenson@redhat.com>
7199
7200 * i386-nat.c: Comment changes.
7201
51c79e94
GB
72022014-06-18 Gary Benson <gbenson@redhat.com>
7203
7204 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7205
3e11889a
GB
72062014-06-18 Gary Benson <gbenson@redhat.com>
7207
7208 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7209 (i386_insert_aligned_watchpoint): Likewise.
7210 (i386_remove_aligned_watchpoint): Likewise.
7211 (i386_handle_nonaligned_watchpoint): Likewise.
7212
fc6e2f03
GB
72132014-06-18 Gary Benson <gbenson@redhat.com>
7214
7215 * i386-nat.c: Whitespace changes.
7216
2afe7d50
SB
72172014-06-17 Samuel Bronson <naesten@gmail.com>
7218
7219 * MAINTAINERS: Update Roland McGrath's email address.
7220 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7221 Red Hat a while ago, and giving me a current address.
2afe7d50 7222
3bca49ee
TT
72232014-06-17 Tom Tromey <tromey@redhat.com>
7224
7225 * utils.h (savestring): Remove declaration.
7226
6e366df1
TT
72272014-06-17 Tom Tromey <tromey@redhat.com>
7228
7229 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7230
6be47f0c
KS
72312014-06-16 Keith Seitz <keiths@redhat.com>
7232
7233 PR mi/15863
7234 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7235 to update the varobj if inferior_ptid is null_ptid.
7236
7bc112c1
TT
72372014-06-16 Tom Tromey <tromey@redhat.com>
7238
7239 * target.h (struct target_ops) <to_info_proc>: Make parameter
7240 const.
7241 (target_info_proc): Update.
7242 * target.c (target_info_proc): Make "args" const.
7243 * procfs.c (procfs_info_proc): Update.
7244 * linux-tdep.c (linux_info_proc): Update.
7245 (linux_core_info_proc_mappings): Make "args" const.
7246 (linux_core_info_proc): Update.
7247 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7248 * gdbarch.c: Rebuild.
7249 * gdbarch.h: Rebuild.
7250 * corelow.c (core_info_proc): Update.
7251
fee354ee
TT
72522014-06-16 Tom Tromey <tromey@redhat.com>
7253
7254 * target.h (struct target_ops) <to_disconnect>: Make parameter
7255 const.
7256 (target_disconnect): Update.
7257 * target.c (target_disconnect): Make "args" const.
7258 * target-delegates.c: Rebuild.
7259 * remote.c (remote_disconnect): Update.
7260 * record.h (record_disconnect): Update.
7261 * record.c (record_disconnect): Update.
7262 * inf-child.c (inf_child_disconnect): Update.
7263
a30bf1f1
TT
72642014-06-16 Tom Tromey <tromey@redhat.com>
7265
7266 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7267 * target.c (debug_to_rcmd, default_rcmd): Update.
7268 * target-delegates.c: Rebuild.
7269 * remote.c (remote_rcmd): Update.
7270 * monitor.c (monitor_rcmd): Update.
7271
d03de421
PA
72722014-06-16 Pedro Alves <palves@redhat.com>
7273
7274 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7275 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7276 have OBJF_SHARED set.
7277 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7278 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7279 instead of OBJF_USERLOADED.
7280 * objfiles.h (OBJF_SHARED): Update comment.
7281 (userloaded_objfile_contains_address_p): Rename to ...
7282 (shared_objfile_contains_address_p): ... this, and update
7283 comments.
7284 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7285 new objfile.
7286 (remove_symbol_file_command): Skip objfiles that don't have
7287 OBJF_SHARED set.
7288
99f4262f
TT
72892014-06-16 Tom Tromey <tromey@redhat.com>
7290
7291 * minsyms.h (prim_record_minimal_symbol)
7292 (prim_record_minimal_symbol_and_info): Update comments.
7293
97d66cc6
EZ
72942014-06-14 Eli Zaretskii <eliz@gnu.org>
7295
7296 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7297 or --without-guile, according to how GDB was built.
7298
635c7e8a
TT
72992014-06-13 Tom Tromey <tromey@redhat.com>
7300
7301 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7302 to help_list.
7303 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7304 to help_list.
7305 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7306 help_list.
7307 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7308 help_list.Pass all_commands, not -1, to help_list.
7309 * cli/cli-dump.c (dump_command, append_command)
7310 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7311 (binary_dump_command, binary_append_command): Pass all_commands,
7312 not -1, to help_list.
7313 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7314 -1, to help_list.
7315 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7316 -1, to help_list.
7317 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7318 help_list.
7319 * top.c (set_history): Pass all_commands, not -1, to help_list.
7320 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7321 all_commands, not -1, to help_list.
7322 * symfile.c (overlay_command): Pass all_commands, not -1, to
7323 help_list.
7324 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7325 help_list.
7326 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7327 help_list.
7328 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7329 -1, to help_list.
7330 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7331 not -1, to help_list.
7332 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7333 not -1, to help_list.
7334 * maint.c (maintenance_command, maintenance_info_command)
7335 (maintenance_print_command, maintenance_set_cmd): Pass
7336 all_commands, not -1, to help_list.
7337 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7338 help_list.
7339 * language.c (set_check): Pass all_commands, not -1, to help_list.
7340 * infcmd.c (unset_command): Pass all_commands, not -1, to
7341 help_list.
7342 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7343 help_list.
7344 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7345 help_list.
7346 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7347 help_list.
7348 * breakpoint.c (save_command): Pass all_commands, not -1, to
7349 help_list.
7350 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7351 all_commands, not -1, to help_list.
7352
b94ade42
PL
73532014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7354
7355 * regcache.c (struct register_to_invalidate): New structure.
7356 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7357 functions.
7358 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7359
31f628ae
YQ
73602014-06-12 Yao Qi <yao@codesourcery.com>
7361
7362 * varobj.c (varobj_get_num_children): Call
7363 varobj_is_dynamic_p.
7364 (varobj_list_children): Likewise.
7365 (varobj_update): Likewise. Update comments.
7366
cde5ef40
YQ
73672014-06-12 Yao Qi <yao@codesourcery.com>
7368
7369 * varobj.c (varobj_pretty_printed_p): Rename to ...
7370 (varobj_is_dynamic_p): ... this. New function.
7371 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7372 (varobj_is_dynamic_p): Declare.
7373 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7374 (mi_print_value_p, varobj_update_one): Likewise.
7375
576ea091
YQ
73762014-06-12 Pedro Alves <pedro@codesourcery.com>
7377 Yao Qi <yao@codesourcery.com>
7378
7379 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7380 (varobj_get_iterator): Wrap up code for pretty-printer by
7381 "#if HAVE_PYTHON" and "#endif".
7382 (update_dynamic_varobj_children): Likewise.
7383
827f100c
YQ
73842014-06-12 Pedro Alves <pedro@codesourcery.com>
7385 Yao Qi <yao@codesourcery.com>
7386
7387 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7388 gdb_python_initialized is false. Move some code from varobj.c.
7389 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7390 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7391 (struct varobj_item): Moved to varobj-iter.h".
7392 (varobj_clear_saved_item): New function.
7393 (update_dynamic_varobj_children): Move python-related code to
7394 py-varobj.c.
7395 (free_variable): Call varobj_clear_saved_item and
7396 varobj_iter_delete.
7397
e5250216
YQ
73982014-06-12 Pedro Alves <pedro@codesourcery.com>
7399 Yao Qi <yao@codesourcery.com>
7400
7401 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7402 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7403 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7404 (py-varobj.o): New rule.
7405 * python/py-varobj.c: New file.
7406 * python/python-internal.h (py_varobj_get_iterator): Declare.
7407 * varobj-iter.h: New file.
7408 * varobj.c: Include "varobj-iter.h"
7409 (struct varobj) <child_iter>: Change its type from "PyObject *"
7410 to "struct varobj_iter *".
7411 <saved_item>: Likewise.
7412 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7413 [HAVE_PYTHON] (varobj_get_iterator): New function.
7414 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7415 python-specific code to python/py-varobj.c.
7416 (install_visualizer): Call varobj_iter_delete instead of
7417 Py_XDECREF.
7418 * varobj.h (varobj_ensure_python_env): Declare.
7419
5a2e0d6e
YQ
74202014-06-12 Yao Qi <yao@codesourcery.com>
7421
7422 * varobj.c (struct varobj_item): New structure.
7423 (create_child_with_value): Update declaration.
7424 (varobj_add_child): Replace arguments 'name' and 'value' with
7425 'item'. All callers updated.
7426 (install_dynamic_child): Likewise.
7427 (update_dynamic_varobj_children): Likewise.
7428 (varobj_add_child): Likewise.
7429 (create_child_with_value): Likewise.
7430
919b9a93
JB
74312014-06-11 Joel Brobecker <brobecker@adacore.com>
7432
7433 * NEWS: Create a new section for the next release branch.
7434 Rename the section of the current branch, now that it has
7435 been cut.
7436
71a55bdf
JB
74372014-06-11 Joel Brobecker <brobecker@adacore.com>
7438
7439 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7440 * version.in: Bump version to 7.8.50.DATE-cvs.
7441
364fe1f7
PA
74422014-06-11 Pedro Alves <palves@redhat.com>
7443
7444 PR remote/17028
7445 * ser-mingw.c (net_windows_socket_check_pending): New function.
7446 (net_windows_select_thread): Ignore spurious wakeups. Use
7447 net_windows_socket_check_pending.
7448 (net_windows_wait_handle): Check for pending events with
7449 ioctlsocket, through net_windows_socket_check_pending, instead of
7450 checking the socket's event.
7451
5a6c7709
SC
74522014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7453
7454 * python/python-internal.h (gdb_PyObject_GetAttrString)
7455 (gdb_PyObject_HasAttrString): New inline function definitions.
7456 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7457 char * of the second argument to PyObject_GetAttrString.
74228e77 7458
0e58ee40
JB
74592014-06-10 Joel Brobecker <brobecker@adacore.com>
7460
7461 * serial.c (serial_write): Fix index of character to be printed
7462 in call to serial_logchar when serial debug traces are enabled.
7463
d190df30
JB
74642014-06-10 Joel Brobecker <brobecker@adacore.com>
7465
7466 * gdbtypes (resolve_dynamic_range): Add function description.
7467
b4b01d36
PA
74682014-06-09 Pedro Alves <palves@redhat.com>
7469
7470 * linux-nat.c (linux_child_follow_fork): Initialize status with
7471 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7472 inner block. Only pass the signal to PTRACE_DETACH if in pass
7473 state.
7474
3657956b
GB
74752014-06-09 Gary Benson <gbenson@redhat.com>
7476
7477 * common/signals.c (gdb_signal_from_host): Reorder to separate
7478 the always-available ANSI-standard signals from the signals that
7479 require checking.
7480 (do_gdb_signal_to_host): Likewise.
7481 * proc-events.c (signal_table): Likewise.
7482
c077881a
HZ
74832014-06-08 Hui Zhu <hui@codesourcery.com>
7484
7485 * common/linux-ptrace.c (linux_disable_event_reporting): New
7486 function.
7487 * common/linux-ptrace.h (linux_disable_event_reporting): New
7488 declaration.
7489 * linux-nat.c (linux_child_follow_fork): Do a single step before
7490 detach.
7491
4186eb54
KS
74922014-06-07 Keith Seitz <keiths@redhat.com>
7493
7494 Revert:
7495 PR c++/16253
7496 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7497 from symbol_matches_domain in symtab.c. All local callers
7498 of symbol_matches_domain updated.
7499 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7500 search STRUCT_DOMAIN.
7501 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7502 independently. standard_lookup will do that automatically.
7503 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7504 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7505 (cp_lookup_symbol_in_namespace): Likewise.
7506 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7507 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7508 may return a STRUCT_DOMAIN match.
7509 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7510 * cp-support.c: Include language.h.
7511 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7512 VAR_DOMAIN.
7513 * psymtab.c (match_partial_symbol): Compare the requested
7514 domain with the symbol's domain directly.
7515 (lookup_partial_symbol): Likewise.
7516 * symtab.c (lookup_symbol_in_language): Explain when/why
7517 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7518 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7519 appropriate languages.
7520 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7521 and moved to ada-lang.c
7522 (lookup_block_symbol): Explain that this function only returns
7523 symbol matching the requested DOMAIN.
7524 Compare the requested domain with the symbol's domain directly.
7525 (iterate_over_symbols): Compare the requested domain with the
7526 symbol's domain directly.
7527 * symtab.h (symbol_matches_domain): Remove.
7528
25326a28 75292014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7530
7531 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7532 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7533 (gdbscm_guile_version_is_at_least): Declare.
7534 (gdbscm_scm_string_to_int): Declare.
7535 * guile/guile.c (gdbscm_guile_major_version): New global.
7536 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7537 (guile_datadir): New static global.
7538 (gdbscm_guile_data_directory): New function.
7539 (initialize_scheme_side): Update.
7540 (misc_guile_functions): Add guile-data-directory.
7541 (initialize_gdb_module): Fetch guile version number.
7542 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7543 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7544 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7545 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7546 comments.
7547 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7548 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7549 * guile/scm-value.c (gdbscm_value_to_string): Only call
7550 scm_port_conversion_strategy if Guile version >= 2.0.6.
7551
0a770bb2 75522014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7553
7554 * main.c (print_gdb_help): Add -q and --silent.
7555
73ba372c
GB
75562014-06-06 Gary Benson <gbenson@redhat.com>
7557
7558 * common/signals.c: Remove preprocessor conditionals for
7559 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7560 SIGSEGV and SIGTERM.
7561 * proc-events.c: Likewise.
7562
c33b2f12
MM
75632014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7564
7565 * symfile.c (symfile_free_objfile): Remove restriction to
7566 OBJF_USERLOADED.
7567 * symfile-mem.c (symbol_file_add_from_memory): Call
7568 add_target_sections_of_objfile.
7569
fb934770
LC
75702014-06-05 Ludovic Courtès <ludo@gnu.org>
7571
7572 * guile/scm-value.c (gdbscm_history_append_x): Use
7573 'vlscm_get_value_smob_arg_unsafe' instead of
7574 'vlscm_scm_to_value'.
7575
6ef284bd
SM
75762014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7577
7578 PR mi/15806
7579 * utils.c (printchar): Don't escape at all if quoter is NUL.
7580 Update function documentation to clarify effect of parameter
7581 QUOTER.
7582 * remote.c (escape_buffer): Pass '\\' as the quoter to
7583 fputstrn_unfiltered.
7584 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7585 generate the output.
7586 (mi_solib_unloaded): Same.
7587
270c9937
JB
75882014-06-05 Joel Brobecker <brobecker@adacore.com>
7589
7590 * development.sh: Delete.
7591 * Makefile.in (config.status): Adjust dependency on development.sh.
7592 * configure.ac: Adjust development.sh source call.
7593 * configure: Regenerate.
7594
16f691fb
DE
75952014-06-04 Doug Evans <xdje42@gmail.com>
7596
7597 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7598 is_scheme_bkpt, spec.
7599 (bpscm_make_breakpoint_smob): Initialize new members.
7600 (gdbscm_create_breakpoint_x): Split into two ...
7601 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7602 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7603 (scheme_function breakpoint_functions): Update.
7604 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7605 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7606 register-breakpoint!.
7607
ef7cab6b
JB
76082014-06-04 Joel Brobecker <brobecker@adacorer.com>
7609
7610 PR server/17023
7611 * mem-break.c (z_type_supported): Return zero if
7612 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7613
012370f6
TT
76142014-06-04 Tom Tromey <tromey@redhat.com>
7615
7616 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7617 value_from_contents_and_address_unresolved.
7618 (ada_template_to_fixed_record_type_1): Likewise.
7619 (ada_which_variant_applies): Likewise.
7620 * value.h (value_from_contents_and_address_unresolved): Declare.
7621 * value.c (value_from_contents_and_address_unresolved): New
7622 function.
7623 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7624 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7625 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7626
92e2a17f
TT
76272014-06-04 Tom Tromey <tromey@redhat.com>
7628
7629 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7630
c0939df1
TT
76312014-06-04 Tom Tromey <tromey@redhat.com>
7632
7633 * procfs.c (procfs_attach): Make "args" const.
7634 * windows-nat.c (windows_attach): Make "args" const.
7635 * nto-procfs.c (procfs_attach): Make "args" const.
7636 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7637 * go32-nat.c (go32_attach): Make "args" const.
7638 * gnu-nat.c (gnu_attach): Make "args" const.
7639 * darwin-nat.c (darwin_attach): Make "args" const.
7640 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7641 * linux-nat.c (linux_nat_attach): Make "args" const.
7642 * remote.c (extended_remote_attach_1, extended_remote_attach):
7643 Make "args" const.
7644 * target.h (struct target_ops) <to_attach>: Make "args" const.
7645 (find_default_attach): Likewise.
7646 * utils.c (parse_pid_to_attach): Make "args" const.
7647 * utils.h (parse_pid_to_attach): Update.
7648
8eaff7cd
TT
76492014-06-04 Tom Tromey <tromey@redhat.com>
7650
7651 * target-delegates.c: Rebuild.
7652 * target.c (default_thread_address_space): New function.
7653 (target_thread_address_space): Simplify.
7654 * target.h (struct target_ops) <to_thread_address_space>: Add
7655 TARGET_DEFAULT_FUNC.
7656
1913f160
DE
76572014-06-04 Doug Evans <xdje42@gmail.com>
7658
7659 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7660
70ad5bff
MM
76612014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7662
7663 * record-btrace.c: Include event-loop.h and inf-loop.h.
7664 (record_btrace_resume_exec_dir)
7665 (record_btrace_async_inferior_event_handler)
7666 (record_btrace_handle_async_inferior_event): New.
7667 (record_btrace_open): Create async event handler.
7668 (record_btrace_close): Delete async event handler.
7669 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7670 Mark async event handler.
7671 (record_btrace_execution_direction): New.
7672 (init_record_btrace_ops): Initialize to_execution_direction.
7673
b6210538
DE
76742014-06-03 Doug Evans <xdje42@gmail.com>
7675
7676 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7677 (gdbscm_make_parameter): Ditto.
7678
a5b1fd27
DE
76792014-06-03 Doug Evans <dje@google.com>
7680
7681 * exec.c (exec_close_1): Call clear_section_table instead of
7682 resize_section_table.
7683 (clear_section_table): New function.
7684 (resize_section_table): Make static. Rename arg num_added to
7685 adjustment.
7686 * exec.h (clear_section_table): Declare.
7687 (resize_section_table): Delete.
7688 * progspace.c (release_program_space): Call clear_section_table
7689 instead of resize_section_table.
7690
0c6e92a5
SC
76912014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7692
7693 * NEWS (Python Scripting): Add entry about the new xmethods
7694 feature.
7695
883964a7
SC
76962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7697
7698 * python/py-xmethods.c: New file.
7699 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7700 (objfpy_dealloc): XDECREF on the new xmethods field.
7701 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7702 field.
7703 (objfpy_get_xmethods): New function.
7704 (objfile_getset): New entry 'xmethods'.
7705 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7706 (pspy_dealloc): XDECREF on the new xmethods field.
7707 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7708 field.
7709 (pspy_get_xmethods): New function.
7710 (pspace_getset): New entry 'xmethods'.
7711 * python/python-internal.h: Add declarations for new functions.
7712 * python/python.c (_initialize_python): Invoke
7713 gdbpy_initialize_xmethods.
7714 * python/lib/gdb/__init__.py (xmethods): New
7715 attribute.
7716 * python/lib/gdb/xmethod.py: New file.
7717 * python/lib/gdb/command/xmethods.py: New file.
7718
58992dc5
SC
77192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7720
7721 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7722 best match method returned by find_overload_match is an xmethod.
7723 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7724 the best matching operator returned by find_overload_match is an
7725 xmethod.
7726 * valops.c: #include "extension.h".
7727 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7728 Return void. The list of matching source methods is returned in
7729 "fn_list" and a vector of matching debug method workers is
7730 returned in "xm_worker_vec". Update all callers.
7731 (value_find_oload_method_list): Likewise.
7732 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7733 non-NULL, then the index of the best matching method in this
7734 vector is returned. Update all callers.
7735 (find_overload_match): Include xmethods while performing overload
7736 resolution.
7737
e81e7f5e
SC
77382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7739
7740 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7741 * extension-priv.h (struct extension_language_ops): Add the
7742 xmethod interface.
7743 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7744 get_matching_xmethod_workers, get_xmethod_argtypes,
7745 invoke_xmethod, free_xmethod_worker,
7746 free_xmethod_worker_vec): New functions.
7747 * extension.h: #include "common/vec.h".
7748 New function declarations.
7749 (struct xmethod_worker): New struct.
7750 (VEC (xmethod_worker_ptr)): New vector type.
7751 (xmethod_worker_ptr): New typedef.
7752 (xmethod_worker_vec): Likewise.
7753 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7754 builtin_type.
7755 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7756 (struct builtin_type): New field "xmethod".
7757 * valarith.c (value_ptradd): Assert that the value argument is not
7758 lval_xcallable.
7759 * valops.c (value_must_coerce_to_target): Return 0 for
7760 lval_xcallable values.
7761 * value.c (struct value): New field XM_WORKER in the field
7762 LOCATION.
7763 (value_address, value_raw_address): Return 0 for lval_xcallable
7764 values.
7765 (set_value_address): Assert that the value is not an
7766 lval_xcallable.
7767 (value_free): Free the associated xmethod worker when freeing
7768 lval_xcallable values.
7769 (set_value_component_location): Assert that the WHOLE value is not
7770 lval_xcallable.
7771 (value_of_xmethod, call_xmethod): New functions.
7772 * value.h: Declare "struct xmethod_worker".
7773 Declare new functions value_of_xmethod, call_xmethod.
7774
ef370185
JB
77752014-06-03 Joel Brobecker <brobecker@adacore.com>
7776 Pedro Alves <palves@redhat.com>
7777
7778 PR breakpoints/17000
7779 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7780 New function, extracted from software_breakpoint_inserted_here_p.
7781 (software_breakpoint_inserted_here_p): Replace factored out code
7782 by call to find_non_raw_software_breakpoint_inserted_here.
7783 (bp_target_info_copy_insertion_state): New function.
7784 (bkpt_insert_location): Handle the case of a single-step
7785 breakpoint already inserted at the same address.
7786 (bkpt_remove_location): Handle the case of a single-step
7787 breakpoint still inserted at the same address.
7788 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7789 breakpoint already inserted at the same address.
7790 (deprecated_remove_raw_breakpoint): Handle the case of a
7791 non-raw breakpoint still inserted at the same address.
7792 (find_single_step_breakpoint): New function, extracted from
7793 single_step_breakpoint_inserted_here_p.
7794 (find_single_step_breakpoint): New function,
7795 factored out from single_step_breakpoint_inserted_here_p.
7796 (single_step_breakpoint_inserted_here_p): Reimplement.
7797
1e2ccb61
BM
77982014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7799
7800 Pushed by Joel Brobecker <brobecker@adacore.com>
7801 * source.c (show_substitute_path_command): Fix display of matching
7802 substitution rules.
7803
d3448d85
GB
78042014-06-03 Gary Benson <gbenson@redhat.com>
7805
7806 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7807
06eb1586
DE
78082014-06-02 Doug Evans <xdje42@gmail.com>
7809
7810 Add parameter support for Guile.
7811 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7812 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7813 (scm-param.o): New rule.
7814 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7815 (gdbscm_misc_error): Declare.
7816 (gdbscm_canonicalize_command_name): Declare.
7817 (gdbscm_scm_to_host_string): Declare.
7818 (gdbscm_scm_from_host_string): Declare.
7819 (gdbscm_initialize_parameters): Declare.
7820 * guile/guile.c (initialize_gdb_module): Call
7821 gdbscm_initialize_parameters.
7822 * guile/lib/gdb.scm: Export parameter symbols.
7823 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7824 cmdscm_canonicalize_name and made public. All callers updated.
7825 * guile/scm-exception.c (gdbscm_misc_error): New function.
7826 * guile/scm-param.c: New file.
7827 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7828 (gdbscm_scm_to_host_string): New function.
7829 (gdbscm_scm_from_host_string): New function.
7830 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7831
e698b8c4
DE
78322014-06-02 Doug Evans <xdje42@gmail.com>
7833
7834 Add command support for Guile.
7835 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7836 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7837 (scm-cmd.o): New rule.
7838 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7839 (gdbscm_user_error_p): Declare.
7840 (gdbscm_parse_command_name): Declare.
7841 (gdbscm_valid_command_class_p): Declare.
7842 (gdbscm_initialize_commands): Declare.
7843 * guile/guile.c (initialize_gdb_module): Call
7844 gdbscm_initialize_commands.
7845 * guile/lib/gdb.scm: Export command symbols.
7846 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7847 (throw-user-error): New function.
7848 * guile/scm-cmd.c: New file.
7849 * guile/scm-exception.c (user_error_symbol): New static global.
7850 (gdbscm_user_error_p): New function.
7851 (gdbscm_initialize_exceptions): Set user_error_symbol.
7852 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7853
fb1f94b0
PM
78542014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7855
7856 * top.c (command_loop): Handle comments here...
7857 (command_line_input): ... not here.
7858
ded03782
DE
78592014-06-02 Doug Evans <xdje42@gmail.com>
7860
7861 Add progspace support for Guile.
7862 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7863 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7864 (scm-progspace.o): New rule.
7865 * guile/guile-internal.h (pspace_smob): New typedef.
7866 (psscm_pspace_smob_pretty_printers): Declare.
7867 (psscm_pspace_smob_from_pspace): Declare.
7868 (psscm_scm_from_pspace): Declare.
7869 * guile/guile.c (initialize_gdb_module): Call
7870 gdbscm_initialize_pspaces.
7871 * guile/lib/gdb.scm: Export progspace symbols.
7872 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7873 support.
7874 (append-pretty-printer!): Ditto.
7875 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7876 Implement.
7877 * guile/scm-progspace.c: New file.
7878
397998fc
AM
78792014-06-03 Alan Modra <amodra@gmail.com>
7880
7881 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7882 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7883
6aa5f3a6
DE
78842014-06-02 Doug Evans <dje@google.com>
7885
7886 Add support for skeletonless type units.
7887 * dwarf2read.c (struct dwarf2_per_objfile): New member
7888 n_allocated_type_units.
7889 (struct dwarf2_per_objfile) <tu_stats>: New member
7890 nr_all_type_units_reallocs.
7891 (create_signatured_type_table_from_index): Initialize
7892 n_allocated_type_units
7893 (create_all_type_units): Ditto.
7894 (add_type_unit): Move up in file. New arg slot.
7895 All callers updated. Increase space for all_type_units more
7896 efficiently.
7897 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7898 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7899 (lookup_dwp_signatured_type): Ditto.
7900 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7901 All callers updated.
7902 (build_type_psymtabs_1): Leave type_unit_groups as
7903 NULL if no TUs present.
7904 (print_tu_stats): New function.
7905 (process_skeletonless_type_unit): New function.
7906 (process_dwo_file_for_skeletonless_type_units): New
7907 function.
7908 (process_skeletonless_type_units): New function.
7909 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7910 Call print tu_stats if debugging enabled.
7911
41fac0cf
PA
79122014-06-02 Pedro Alves <palves@redhat.com>
7913
7914 * breakpoint.c (build_target_command_list): Don't build a command
7915 list if we have any duplicate location that isn't a dprintf.
7916
cd1608cc
PA
79172014-06-02 Pedro Alves <palves@redhat.com>
7918
7919 * breakpoint.c (dprintf_breakpoint_hit): New function.
7920 (initialize_breakpoint_ops): Install it as dprintf's
7921 breakpoint_hit method.
7922
486ef3b9
JB
79232014-06-02 Joel Brobecker <brobecker@adacore.com>
7924
7925 * source.c (substitute_path_rule_matches): Simplify using
7926 filename_ncmp instead of FILENAME_CMP.
7927
230cd560
JB
79282014-06-02 Joel Brobecker <brobecker@adacore.com>
7929
7930 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7931
16954d5d
LC
79322014-06-01 Ludovic Courtès <ludo@gnu.org>
7933
7934 * configure.ac: When Guile is available, check for the
7935 availability of 'scm_new_smob'.
7936 * configure, config.h.in: Regenerate.
7937 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7938 function.
7939
53e8a631
AB
79402014-05-30 Andrew Burgess <aburgess@broadcom.com>
7941
7942 * frame.c (struct frame_info): Add stop_string field.
7943 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7944 (get_prev_frame_always): Old content moved into
7945 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7946 TRY_CATCH, handle MEMORY_ERROR exceptions.
7947 (frame_stop_reason_string): New function definition.
7948 * frame.h (unwind_stop_reason_to_string): Extend comment to
7949 mention frame_stop_reason_string.
7950 (frame_stop_reason_string): New function declaration.
7951 * stack.c (frame_info): Switch to frame_stop_reason_string.
7952 (backtrace_command_1): Switch to frame_stop_reason_string.
7953 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7954 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7955 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7956
70e38b8e
AB
79572014-05-30 Andrew Burgess <aburgess@broadcom.com>
7958
7959 * frame.c (frame_stop_reason_string): Rename to ...
7960 (unwind_stop_reason_to_string): this.
7961 * frame.h (frame_stop_reason_string): Rename to ...
7962 (unwind_stop_reason_to_string): this.
7963 * stack.c (frame_info): Update call to frame_stop_reason_string.
7964 (backtrace_command_1): Likewise.
7965 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7966 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7967
938f0e2f
AB
79682014-05-30 Andrew Burgess <aburgess@broadcom.com>
7969
7970 * frame.c (remove_prev_frame): New function.
7971 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7972 remove_prev_frame.
7973
a09dd441
PA
79742014-05-29 Pedro Alves <palves@redhat.com>
7975
7976 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7977 and make it const. When a single-step decays to a continue,
7978 clear 'step', not 'hw_step'. Pass whether the caller wanted
7979 to step to user_visible_resume_ptid, not what we ask the
7980 target to do.
7981
bdc36728
PA
79822014-05-29 Pedro Alves <palves@redhat.com>
7983
7984 * infrun.c (process_event_stop_test, handle_step_into_function)
7985 (handle_step_into_function_backward): Adjust.
7986 Don't set the even thread's stop_step and call stop_waiting before
7987 calling end_stepping_range. Instead do that ...
7988 (end_stepping_range): ... here. Take an ecs pointer parameter.
7989
22bcd14b
PA
79902014-05-29 Pedro Alves <palves@redhat.com>
7991
7992 * infrun.c (stop_stepping): Rename to ...
7993 (stop_waiting): ... this.
7994 (proceed): Update comment.
7995 (process_event_stop_test, handle_inferior_event)
7996 (handle_signal_stop, handle_step_into_function)
7997 (handle_step_into_function_backward): Update.
7998
4ae57c05
PA
79992014-05-29 Pedro Alves <palves@redhat.com>
8000
8001 * infcall.c (run_inferior_call): Don't check whether the current
8002 thread is running after the proceed call.
8003
329ea579
PA
80042014-05-29 Pedro Alves <palves@redhat.com>
8005 Tom Tromey <tromey@redhat.com>
8006
8007 * NEWS: Mention "maint set target-async", "set mi-async", and that
8008 background execution commands are now always available.
8009 * target.h (target_async_permitted): Update comment.
8010 * target.c (target_async_permitted, target_async_permitted_1):
8011 Default to 1.
8012 (set_target_async_command): Rename to ...
8013 (maint_set_target_async_command): ... this.
8014 (show_target_async_command): Rename to ...
8015 (maint_show_target_async_command): ... this.
8016 (_initialize_target): Adjust.
8017 * infcmd.c (prepare_execution_command): Make extern.
8018 * inferior.h (prepare_execution_command): Declare.
8019 * infrun.c (set_observer_mode): Leave target async alone.
8020 * mi/mi-interp.c (mi_interpreter_init): Install
8021 mi_on_sync_execution_done as sync_execution_done observer.
8022 (mi_on_sync_execution_done): New function.
8023 (mi_execute_command_input_handler): Don't print the prompt if we
8024 just started a synchronous command with an async target.
8025 (mi_on_resume): Check sync_execution before printing prompt.
8026 * mi/mi-main.h (mi_async_p): Declare.
8027 * mi/mi-main.c: Include gdbcmd.h.
8028 (mi_async_p): New function.
8029 (mi_async, mi_async_1): New globals.
8030 (set_mi_async_command, show_mi_async_command, mi_async): New
8031 functions.
8032 (exec_continue): Call prepare_execution_command.
8033 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8034 (mi_execute_async_cli_command): Use mi_async_p.
8035 (_initialize_mi_main): Install "set mi-async". Make
8036 "target-async" a deprecated alias.
8037
92bcb5f9
PA
80382014-05-29 Pedro Alves <palves@redhat.com>
8039
8040 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8041 (_initialize_cli_interp): Adjust.
8042 * event-loop.c: Include "observer.h".
8043 (start_event_loop): Notify 'command_error' observers instead of
8044 calling display_gdb_prompt. Remove FIXME comment.
8045 * event-top.c (display_gdb_prompt): Remove call into the
8046 interpreters.
8047 * inf-loop.c: Include "observer.h".
8048 (inferior_event_handler): Notify 'command_error' observers instead
8049 of calling display_gdb_prompt.
8050 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8051 observers instead of calling display_gdb_prompt.
8052 * interps.c (interp_set): Don't call display_gdb_prompt.
8053 (current_interp_display_prompt_p): Delete.
8054 * interps.h (interp_prompt_p): Delete declaration.
8055 (interp_prompt_p_ftype): Delete.
8056 (struct interp_procs) <prompt_proc_p>: Delete field.
8057 (current_interp_display_prompt_p): Delete declaration.
8058 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8059 (_initialize_mi_interp): Adjust.
8060 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8061 'command_error' observers.
8062 (tui_on_sync_execution_done, tui_on_command_error): New
8063 functions.
8064 (tui_display_prompt_p): Delete.
8065 (_initialize_tui_interp): Adjust.
8066
fd664c91
PA
80672014-05-29 Pedro Alves <palves@redhat.com>
8068
8069 PR gdb/13860
8070 * cli/cli-interp.c: Include infrun.h and observer.h.
8071 (cli_uiout, cli_interp): New globals.
8072 (cli_on_signal_received, cli_on_end_stepping_range)
8073 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8074 functions.
8075 (cli_interpreter_init): Install them as 'end_stepping_range',
8076 'signal_received' 'signal_exited', 'exited' and 'no_history'
8077 observers.
8078 (_initialize_cli_interp): Remove cli_interp local.
8079 * infrun.c (handle_inferior_event): Call the several stop reason
8080 observers instead of printing the stop reason directly.
8081 (end_stepping_range): New function.
8082 (print_end_stepping_range_reason, print_signal_exited_reason)
8083 (print_exited_reason, print_signal_received_reason)
8084 (print_no_history_reason): Make static, and add an uiout
8085 parameter. Print to that instead of to CURRENT_UIOUT.
8086 * infrun.h (print_end_stepping_range_reason)
8087 (print_signal_exited_reason, print_exited_reason)
8088 (print_signal_received_reason print_no_history_reason): New
8089 declarations.
8090 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8091 'mi_uiout'.
8092 <cli_uiout>: New field.
8093 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8094 uiout for CLI output. Install 'signal_received',
8095 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8096 observers.
8097 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8098 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8099 (mi_on_no_history): New functions.
8100 (ui_out_free_cleanup): Delete function.
8101 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8102 instead use the one already stored in the MI interpreter data.
8103 (mi_ui_out): Adjust.
8104 * tui/tui-interp.c: Include infrun.h and observer.h.
8105 (tui_interp): New global.
8106 (tui_on_signal_received, tui_on_end_stepping_range)
8107 (tui_on_signal_exited, tui_on_exited)
8108 (tui_on_no_history): New functions.
8109 (tui_init): Install them as 'end_stepping_range',
8110 'signal_received' 'signal_exited', 'exited' and 'no_history'
8111 observers.
8112 (_initialize_tui_interp): Delete tui_interp local.
8113
8817a6f2
PA
81142014-05-29 Pedro Alves <palves@redhat.com>
8115
8116 PR gdb/15713
8117 * linux-nat.c (linux_nat_resume_callback): Rename the second
8118 parameter to 'except'. Skip LP if it points to EXCEPT.
8119 (linux_nat_resume): Don't mark the event lwp as not stopped
8120 before resuming sibling lwps. Instead ask
8121 linux_nat_resume_callback to skip the event lwp. Mark it as not
8122 stopped after actually resuming it.
8123 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8124 resuming it.
8125 (wait_lwp): Mark the lwp as stopped here.
8126 (stop_wait_callback): Mark the lwp as not stopped right after
8127 resuming it. Don't mark lwps as stopped here.
8128 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8129 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8130
251bde03
PA
81312014-05-29 Pedro Alves <palves@redhat.com>
8132
8133 PR PR15693
8134 * infrun.c (resume): Determine how much to resume depending on
8135 whether the caller wanted a step, not whether we can hardware step
8136 the target. Mark all threads that we intend to run as running,
8137 unless we're calling an inferior function.
8138 (normal_stop): If the thread is running an infcall, don't finish
8139 thread state.
8140 * target.c (target_resume): Don't mark threads as running here.
8141
7f3c0343
JB
81422014-05-28 Joel Brobecker <brobecker@adacore.com>
8143
8144 * serial.c (_initialize_serial): Remove support for
8145 the "set remotebaud" and "show remotebaud" commands.
8146 * NEWS: Add entry documenting the removal of that command.
8147
ee34b3f9
YQ
81482014-05-28 Yao Qi <yao@codesourcery.com>
8149
8150 * charset.c: Fix typo in comments.
8151
add6c04d
GB
81522014-05-27 Gary Benson <gbenson@redhat.com>
8153
8154 * utils.c (internal_vproblem): Prompt for a bug report.
8155
92c48fc5
AW
81562014-05-26 Andy Wingo <wingo@igalia.com>
8157
8158 * guile/scm-arch.c (arscm_mark_arch_smob):
8159 * guile/scm-block.c (bkscm_mark_block_smob)
8160 (bkscm_mark_block_syms_progress_smob):
8161 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8162 * guile/scm-exception.c (exscm_mark_exception_smob):
8163 * guile/scm-frame.c (frscm_mark_frame_smob):
8164 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8165 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8166 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8167 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8168 (ppscm_mark_pretty_printer_worker_smob):
8169 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8170 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8171 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8172 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8173 mark functions.
8174 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8175 function.
8176
b2715b27
AW
81772014-05-26 Andy Wingo <wingo@igalia.com>
8178 Doug Evans <xdje42@gmail.com>
8179
8180 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8181 empty_base_class. All uses updated.
8182 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8183 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8184 Adapt all callers.
8185 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8186 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8187 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8188 (gdbscm_gsmob_has_property_p, add_property_name)
8189 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8190 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8191 (gdb-object-has-property?, gdb-object-properties): Remove.
8192 (gdb-object-kind): Renamed from gsmob-kind.
8193
214ab2da
AW
81942014-05-26 Andy Wingo <wingo@igalia.com>
8195
8196 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8197 * configure: Regenerate.
8198
589fdceb
MM
81992014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8200
8201 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8202
67b5c0c1
MM
82032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8204
8205 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8206 (replay_memory_access_read_only, replay_memory_access_read_write)
8207 (replay_memory_access_types, replay_memory_access)
8208 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8209 (cmd_set_record_btrace, cmd_show_record_btrace)
8210 (cmd_show_replay_memory_access): New.
8211 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8212 (record_btrace_remove_breakpoint): Replace
8213 record_btrace_allow_memory_access with replay_memory_access.
8214 (_initialize_record_btrace): Add commands.
8215 * NEWS: Announce it.
8216
036cd381
RR
82172014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8218
8219 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8220
c77c1e42
RR
82212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8222
8223 * MAINTAINERS (Write After Approval): Move self back from
8224 paper trail.
8225
45741a9c
PA
82262014-05-22 Pedro Alves <palves@redhat.com>
8227
8228 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8229 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8230 (disable_randomization, enum exec_direction_kind)
8231 (execution_direction, stop_registers, start_remote)
8232 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8233 (wait_for_inferior, normal_stop, get_last_target_status)
8234 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8235 (insert_step_resume_breakpoint_at_sal)
8236 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8237 (set_step_info, print_stop_event, signal_stop_state)
8238 (signal_print_state, signal_pass_state, signal_stop_update)
8239 (signal_print_update, signal_pass_update)
8240 (update_signals_program_target, clear_exit_convenience_vars)
8241 (displaced_step_dump_bytes, update_observer_mode)
8242 (signal_catch_update, gdb_signal_from_command): Move
8243 declarations ...
8244 * infrun.h: ... to this new file.
8245 * amd64-tdep.c: Include infrun.h.
8246 * annotate.c: Include infrun.h.
8247 * arch-utils.c: Include infrun.h.
8248 * arm-linux-tdep.c: Include infrun.h.
8249 * arm-tdep.c: Include infrun.h.
8250 * break-catch-sig.c: Include infrun.h.
8251 * breakpoint.c: Include infrun.h.
8252 * common/agent.c: Include infrun.h instead of inferior.h.
8253 * corelow.c: Include infrun.h.
8254 * event-top.c: Include infrun.h.
8255 * go32-nat.c: Include infrun.h.
8256 * i386-tdep.c: Include infrun.h.
8257 * inf-loop.c: Include infrun.h.
8258 * infcall.c: Include infrun.h.
8259 * infcmd.c: Include infrun.h.
8260 * infrun.c: Include infrun.h.
8261 * linux-fork.c: Include infrun.h.
8262 * linux-nat.c: Include infrun.h.
8263 * linux-thread-db.c: Include infrun.h.
8264 * monitor.c: Include infrun.h.
8265 * nto-tdep.c: Include infrun.h.
8266 * procfs.c: Include infrun.h.
8267 * record-btrace.c: Include infrun.h.
8268 * record-full.c: Include infrun.h.
8269 * remote-m32r-sdi.c: Include infrun.h.
8270 * remote-mips.c: Include infrun.h.
8271 * remote-notif.c: Include infrun.h.
8272 * remote-sim.c: Include infrun.h.
8273 * remote.c: Include infrun.h.
8274 * reverse.c: Include infrun.h.
8275 * rs6000-tdep.c: Include infrun.h.
8276 * s390-linux-tdep.c: Include infrun.h.
8277 * solib-irix.c: Include infrun.h.
8278 * solib-osf.c: Include infrun.h.
8279 * solib-svr4.c: Include infrun.h.
8280 * target.c: Include infrun.h.
8281 * top.c: Include infrun.h.
8282 * windows-nat.c: Include infrun.h.
8283 * mi/mi-interp.c: Include infrun.h.
8284 * mi/mi-main.c: Include infrun.h.
8285 * python/py-threadevent.c: Include infrun.h.
8286
98eb56a4
PA
82872014-05-22 Pedro Alves <palves@redhat.com>
8288
8289 * infrun.c (handle_inferior_event): Store the exit code for
8290 --return-child-result here, instead of ...
8291 (print_exited_reason): ... here.
8292
17b2616c
PA
82932014-05-21 Pedro Alves <palves@redhat.com>
8294
8295 PR gdb/13860
8296 * gdbthread.h (struct thread_control_state): New field
8297 `command_interp'.
8298 * infrun.c (follow_fork): Copy the new thread control field to the
8299 child fork thread.
8300 (clear_proceed_status_thread): Clear the new thread control field.
8301 (proceed): Set the new thread control field.
8302 * interps.h (command_interp): Declare.
8303 * interps.c (command_interpreter): New global.
8304 (command_interp): New function.
8305 (interp_exec): Set `command_interpreter' while here.
8306 * cli-out.c (cli_uiout_dtor): New function.
8307 (cli_ui_out_impl): Install it.
8308 * mi/mi-interp.c: Include cli-out.h.
8309 (mi_cmd_interpreter_exec): Add comment.
8310 (restore_current_uiout_cleanup): New function.
8311 (ui_out_free_cleanup): New function.
8312 (mi_on_normal_stop): If finishing an execution command started by
8313 a CLI command, or any kind of breakpoint-like event triggered,
8314 print the stop event to the output (CLI) stream.
8315 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8316
5166082f
PA
83172014-05-21 Pedro Alves <palves@redhat.com>
8318
8319 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8320 current source line having changed.
8321 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8322 * infrun.c (normal_stop): Adjust call to
8323 set_current_sal_from_frame.
8324 * source.c (clear_lines_listed_range): New function.
8325 (set_current_source_symtab_and_line, identify_source_line): Clear
8326 the lines listed range.
8327 (line_info): Handle the first "info line" after the current source
8328 line having changed.
8329 * stack.c (print_stack_frame): Remove center handling.
8330 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8331 center sal.line.
8332
c1ee2fb3
PA
83332014-05-21 Pedro Alves <palves@redhat.com>
8334
8335 * inf-child.c (inf_child_mourn_inferior): New function.
8336 * inf-child.h (inf_child_mourn_inferior): New declaration.
8337 * darwin-nat.c (darwin_mourn_inferior): Use
8338 inf_child_mourn_inferior.
8339 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8340 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8341 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8342 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8343 * windows-nat.c (windows_mourn_inferior): Likewise.
8344
5c6d4fb2
DE
83452014-05-21 Doug Evans <xdje42@gmail.com>
8346
250748cb 8347 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8348
4a2722c5
DE
83492014-05-21 Doug Evans <xdje42@gmail.com>
8350
17292b30 8351 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8352 (gdbscm_out_of_range_error): Ditto.
8353 (gdbscm_memory_error): Ditto.
250748cb
DE
8354 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8355 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8356 (gdbscm_out_of_range_error): Update.
8357 (gdbscm_memory_error): Update.
8358 (gdbscm_scm_to_target_string_unsafe): Delete.
8359
6a3cb8e8
PA
83602014-05-21 Pedro Alves <palves@redhat.com>
8361
8362 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8363 globals.
8364 (inf_child_open_target): New function.
8365 (inf_child_open): Use inf_child_open_target to push the target
8366 instead of erroring out.
8367 (inf_child_disconnect, inf_child_close)
8368 (inf_child_maybe_unpush_target): New functions.
8369 (inf_child_target): Install inf_child_disconnect and
8370 inf_child_close. Store a pointer to the returned object.
8371 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8372 declarations.
8373 * target.c (auto_connect_native_target): New global.
8374 (show_default_run_target): New function.
8375 (find_default_run_target): Return NULL if automatically connecting
8376 to the native target is disabled.
8377 (_initialize_target): Install set/show auto-connect-native-target.
8378 * NEWS: Mention "set auto-connect-native-target", and "target
8379 native".
8380 * linux-nat.c (super_close): New global.
8381 (linux_nat_close): Call super_close.
8382 (linux_nat_add_target): Store a pointer to the base class's
8383 to_close method.
8384 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8385 inf_child_maybe_unpush.
8386 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8387 already pushed.
8388 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8389 the inferior. Use inf_child_maybe_unpush_target.
8390 (inf_ttrace_attach): Don't push the target if it is already
8391 pushed.
8392 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8393 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8394 after mourning the inferior. Use inf_child_maybe_unpush_target.
8395 (darwin_attach_pid): Don't push the target if it is already
8396 pushed.
8397 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8398 mourning the inferior. Use inf_child_maybe_unpush_target.
8399 (gnu_detach): Use inf_child_maybe_unpush_target.
8400 * go32-nat.c (go32_create_inferior): Don't push the target if it
8401 is already pushed.
8402 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8403 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8404 (procfs_open): Rename to ...
8405 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8406 comments. Can target_preopen before changing node. Call
8407 inf_child_open_target to push the target explicitly.
8408 (procfs_attach): Don't push the target if it is already pushed.
8409 (procfs_detach): Use inf_child_maybe_unpush_target.
8410 (procfs_create_inferior): Don't push the target if it is already
8411 pushed.
8412 (nto_native_ops): New global.
8413 (procfs_open): Reimplement.
8414 (procfs_native_open): New function.
8415 (init_procfs_targets): Install procfs_native_open as to_open of
8416 "target native". Store a pointer to the "native" target in
8417 nto_native_ops.
8418 * procfs.c (procfs_attach): Don't push the target if it is already
8419 pushed.
8420 (procfs_detach): Use inf_child_maybe_unpush_target.
8421 (procfs_mourn_inferior): Only unpush the target after mourning the
8422 inferior. Use inf_child_maybe_unpush_target.
8423 (procfs_init_inferior): Don't push the target if it is already
8424 pushed.
8425 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8426 if it is already pushed.
8427
930ee1b1
PA
84282014-05-21 Pedro Alves <palves@redhat.com>
8429
8430 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8431 and "procfs" targets are now called "native" instead.
8432
1f5d1b13
PA
84332014-05-21 Pedro Alves <palves@redhat.com>
8434
8435 * go32-nat.c (go32_open): Delete.
8436 (go32_target): Don't override the to_open method.
8437
132f8e03
PA
84382014-05-21 Pedro Alves <palves@redhat.com>
8439
8440 * nto-procfs.c (procfs_can_run): New function.
8441 (nto_procfs_ops): New global.
8442 (init_procfs_targets): New, based on procfs_target. Install
8443 "target native" in addition to "target procfs".
8444 (_initialize_procfs): Call init_procfs_targets instead of adding
8445 the target here.
8446
03c136c3
PA
84472014-05-21 Pedro Alves <palves@redhat.com>
8448
8449 * windows-nat.c (windows_target): Don't override to_shortname,
8450 to_longname or to_doc.
8451
a635d0f3
PA
84522014-05-21 Pedro Alves <palves@redhat.com>
8453
8454 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8455 to_doc.
8456
4f9b5133
PA
84572014-05-21 Pedro Alves <palves@redhat.com>
8458
8459 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8460 to_shortname, to_longname or to_doc.
8461
bc85afde
PA
84622014-05-21 Pedro Alves <palves@redhat.com>
8463
8464 * go32-nat.c (go32_target): Don't override to_shortname,
8465 to_longname or to_doc.
8466
4ebfc96e
PA
84672014-05-21 Pedro Alves <palves@redhat.com>
8468
8469 * inf-child.c (inf_child_open): Remove mention of "child".
8470 (inf_child_target): Rename target to "native" instead of "child".
8471
2648dfed
AA
84722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8473
8474 * Makefile.in (SFILES): Delete "regset.c".
8475 (COMMON_OBS): Delete "regset.o".
8476 * regset.c: Remove.
8477 * regset.h (regset_alloc): Delete prototype.
8478
b13feb94
AA
84792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8480
8481 * sparc-linux-tdep.c (sparc32_linux_gregset)
8482 (sparc32_linux_fpregset): New static regset structures.
8483 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8484 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8485 'fpregset' fields.
8486 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8487 (sparc64_linux_fpregset): New static regset structures.
8488 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8489 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8490 New static regset structures.
8491 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8492 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8493 New static regset structures.
8494 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8495 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8496 New static regset structures.
8497 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8498 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8499 New static regset structures.
8500 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8501
b4fd25c9
AA
85022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8503
8504 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8505 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8506 register maps ("regmaps") from "*regset" to "*regmap". Do this
8507 for all regmap types and variables.
8508 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8509 (sparc32_linux_supply_core_gregset)
8510 (sparc32_linux_collect_core_gregset)
8511 (sparc32_linux_supply_core_fpregset)
8512 (sparc32_linux_collect_core_fpregset): Likewise.
8513 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8514 (sparc_gregmap, sparc_fpregmap): ... these.
8515 (sparc_supply_gregset, sparc_collect_gregset)
8516 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8517 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8518 (_initialize_sparc_nat): Rename regmaps.
8519 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8520 (sparc_gregmap, sparc_fpregmap): ... these.
8521 (sparc_supply_gregset, sparc_collect_gregset)
8522 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8523 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8524 Rename macros to...
8525 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8526 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8527 Likewise.
8528 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8529 Rename to...
8530 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8531 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8532 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8533 regmaps.
8534 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8535 (sparc32_bsd_fpregset): Rename to...
8536 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8537 (sparc32_bsd_fpregmap): ... these.
8538 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8539 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8540 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8541 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8542 (struct sparc_gregmap, struct sparc_fpregmap)
8543 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8544 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8545 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8546 (sparc32_supply_regset, sparc32_collect_gregset)
8547 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8548 prototypes.
8549 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8550 (sparc64_linux_ptrace_gregmap): ... this.
8551 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8552 (_initialize_sparc64_linux_nat): Rename regmaps.
8553 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8554 (sparc64_linux_core_gregmap): ... this.
8555 (sparc64_linux_supply_core_gregset)
8556 (sparc64_linux_collect_core_gregset)
8557 (sparc64_linux_supply_core_fpregset)
8558 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8559 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8560 (sparc64_sol2_fpregset): Rename to...
8561 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8562 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8563 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8564 regmaps.
8565 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8566 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8567 (sparc64_bsd_fpregset): Rename to...
8568 (struct sparc_gregmap, sparc64_sol2_gregmap)
8569 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8570 (sparc64_bsd_fpregmap): ... these.
8571 (sparc64_supply_gregset, sparc64_collect_gregset)
8572 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8573 prototypes.
8574 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8575 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8576 (sparc64fbsd_gregmap): ... this.
8577 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8578 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8579 Rename regmaps.
8580 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8581 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8582 (sparc64nbsd_collect_fpregset): Likewise.
8583 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8584 (sparc64nbsd_gregmap): ... this.
8585 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8586 regmaps.
8587 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8588 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8589 (sparc64obsd_gregmap): ... this.
8590 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8591 regmaps.
8592 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8593 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8594 (sparc32nbsd_gregmap): ... this.
8595 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8596 regmaps.
8597
8fea3224
AA
85982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8599
8600 * score-tdep.c (score7_linux_gregset): New static regset
8601 structure.
8602 (score7_linux_regset_from_core_section): Remove dynamic regset
8603 allocation.
8604 (score_gdbarch_init): Drop allocation of tdep structure.
8605 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8606
24534243
AA
86072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8608
8609 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8610 regset structures.
8611 (am33_regset_from_core_section): Remove dynamic regset
8612 allocations.
8613
b7195f27
AA
86142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8615
8616 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8617 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8618 structures.
8619 (mips_linux_regset_from_core_section): Remove dynamic regset
8620 allocations.
8621 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8622 'gregset64', 'fpregset', and 'fpregset64'.
8623 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8624 deleted tdep fields.
8625
ecc37a5a
AA
86262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8627
8628 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8629 regset structures.
8630 (amd64_regset_from_core_section): Remove dynamic regset
8631 allocations.
8632 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8633 structure.
8634 (amd64obsd_regset_from_core_section): Remove dynamic regset
8635 allocation.
8636 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8637 Likewise.
8638 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8639 x86-common regset supply function.
8640 * i386-tdep.c (i386_collect_gregset): Make static.
8641 (i386_gregset): New global regset structure.
8642 (i386_fpregset, i386_xstateregset): New static regset structures.
8643 (i386_regset_from_core_section): Remove dynamic regset
8644 allocations.
8645 (i386_gdbarch_init): Remove initialization of tdep fields
8646 'gregset', 'fpregset', and 'xstateregset'.
8647 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8648 'fpregset', and 'xstateregset'.
8649 (i386_collect_gregset): Remove prototype.
8650 (i386_gregset): New declaration.
8651 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8652 structure.
8653 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8654 allocation.
8655
b7611c43
AA
86562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8657
8658 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8659 (arm_linux_vfpregset): New static regset structures.
8660 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8661 regset structures.
8662 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8663 and 'vfpregset' fields.
8664
a069a2bd
AA
86652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8666
8667 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8668 (aarch64_linux_fpregset): New static regset structures.
8669 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8670 of regset structures.
8671 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8672 'fpregset' fields.
8673
09424cff
AA
86742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8675
8676 * regset.h (struct regset): Remove gdbarch field.
8677 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8678 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8679 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8680 Likewise.
8681 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8682 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8683 (ppc32_linux_vsxregset): Likewise.
8684 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8685 via the regcache instead of the regset.
8686 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8687 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8688 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8689 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8690 Likewise.
8691
3ca7dae4
AA
86922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8693
8694 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8695 Constify structures.
8696 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8697 (alphanbsd_aout_gregset): Likewise.
8698 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8699 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8700 Likewise.
8701 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8702 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8703 Likewise.
8704 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8705 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8706 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8707 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8708 * m88k-tdep.c (m88k_gregset): Likewise.
8709 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8710 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8711 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8712 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8713 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8714 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8715 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8716 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8717 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8718 Likewise.
8719 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8720 * sh-tdep.h (sh_corefile_gregset): Likewise.
8721 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8722 * vax-tdep.c (vax_gregset): Likewise.
8723
5876f503
JK
87242014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8725
8726 Fix TLS access for -static -pthread.
8727 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8728 (try_thread_db_load_1): Initialize it.
8729 (thread_db_get_thread_local_address): Call it if LM is zero.
8730 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8731 * target.h (struct target_ops) (to_get_thread_local_address): Add
8732 load_module_addr comment.
8733
0256a6ac
PA
87342014-05-21 Pedro Alves <palves@redhat.com>
8735
8736 * dcache.c (dcache_read_memory_partial): If reading the cache line
8737 fails, fallback to reading just the memory the caller wanted.
8738
227533ac
DE
87392014-05-20 Doug Evans <dje@google.com>
8740
8741 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8742 instead of get_current_arch.
8743
936d2992
PA
87442014-05-20 Pedro Alves <palves@redhat.com>
8745
8746 * NEWS: Mention that compare-sections now works with all targets.
8747
8748 * remote.c (PACKET_qCRC): New enum value.
8749 (remote_verify_memory): Don't send qCRC if the target has no
8750 execution. Use packet_support/packet_ok. If the target doesn't
8751 support the qCRC packet, fallback to a deep memory copy.
8752 (compare_sections_command): Say "target image" instead of "remote
8753 executable".
8754 (_initialize_remote): Add PACKET_qCRC to the list of config
8755 packets that have no associated command. Extend comment.
8756 * target.c (simple_verify_memory, default_verify_memory): New
8757 function.
8758 * target.h (struct target_ops) <to_verify_memory>: Default to
8759 default_verify_memory.
8760 (simple_verify_memory): New declaration.
8761 * target-delegates.c: Regenerate.
8762
e59fa00f
MM
87632014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8764
8765 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8766
f2205de0
HZ
87672014-05-20 Hui Zhu <hui@codesourcery.com>
8768 Yao Qi <yao@codesourcery.com>
8769
8770 PR backtrace/16558
8771 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8772 and change address of sp and pc.
8773
c4e54771
TT
87742014-05-19 Tom Tromey <tromey@redhat.com>
8775
8776 * gdbtypes.c (rank_function): Use XNEWVEC.
8777 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8778
73051182
DE
87792014-05-19 Doug Evans <dje@google.com>
8780
8781 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8782 build_type_unit_groups and moved closer to only caller. Remove
8783 arguments. All references updated. Remove outdated .gdb_index
8784 comment.
8785 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8786 build_type_psymtabs_1.
8787
8832e7e3
DE
87882014-05-19 Doug Evans <dje@google.com>
8789
8790 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8791 n_type_unit_groups, all_type_unit_groups. All uses removed.
8792 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8793 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8794 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8795 (add_type_unit_group_to_table): Delete.
8796
cd8ae15e
DE
87972014-05-19 Doug Evans <dje@google.com>
8798
8799 * eval.c (evaluate_subexp_standard): Add some comments.
8800
08f4850b
DE
88012014-05-17 Doug Evans <xdje42@gmail.com>
8802
8803 * progspace.c (remove_program_space): Delete, unused.
8804 * progspace.h (remove_program_space): Ditto.
8805
bed8455c
DE
88062014-05-17 Doug Evans <xdje42@gmail.com>
8807
8808 * inferior.c (prune_inferiors): Fix comment.
8809 (remove_inferior_command): Call prune_program_spaces.
8810
8d551b02
DE
88112014-05-16 Doug Evans <dje@google.com>
8812
8813 New command line option -D.
8814 * NEWS: Mention it.
8815 * main.c (set_gdb_data_directory): New function.
8816 (captured_main): Recognize -D. Flag error for --data-directory "".
8817 Call set_gdb_data_directory.
8818 (print_gdb_help): Print --data-directory, -D.
8819 * main.h (set_gdb_data_directory): Declare.
8820 * top.c (staged_gdb_datadir): New static global.
8821 (set_gdb_datadir): Call set_gdb_data_directory
8822 (show_gdb_datadir): New function.
8823 (init_main): Update init of data-directory parameter.
8824
18848e28
GF
88252014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8826
8827 Import the "dirfd" gnulib module.
8828 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8829 * gnulib/aclocal.m4: Update.
8830 * gnulib/config.in: Update.
8831 * gnulib/configure: Update.
8832 * gnulib/import/Makefile.am: Update.
8833 * gnulib/import/Makefile.in: Update.
8834 * gnulib/import/dirfd.c: New.
8835 * gnulib/import/m4/dirfd.m4: New.
8836 * gnulib/import/m4/gnulib-cache.m4: Update.
8837 * gnulib/import/m4/gnulib-comp.m4: Update.
8838
95c64f92
YQ
88392014-05-16 Pierre Muller <muller@sourceware.org>
8840 Yao Qi <yao@codesourcery.com>
8841
8842 * valprint.c (print_wchar): Move the code on checking whether
8843 W is a printable wide char to the default branch of switch
8844 statement below. Call wchar_printable instead of gdb_iswprint.
8845
cac395ea
TM
88462014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8847
19679eca 8848 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8849 ldr.w and ldrd instructions.
8850
83655187
DE
88512014-05-15 Doug Evans <dje@google.com>
8852
8853 * dwarf2read.c (read_structure_type): Delete outdated comments.
8854
dd756689
TT
88552014-05-14 Tom Tromey <tromey@redhat.com>
8856
8857 * macrocmd.c (print_macro_definition): Reindent.
8858
75ddda77
DE
88592014-05-13 Doug Evans <xdje42@gmail.com>
8860
8861 * python/py-cmd.c (cmdpy_completer): Add comment.
8862 (completers): Make const.
8863
b0f16a3e
SM
88642014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8865
8866 * infrun.c (resume): Remove should_resume (unused). Move up
8867 declaration of resume_ptid.
8868
033c3379
TT
88692014-05-13 Tom Tromey <tromey@redhat.com>
8870
8871 * language.h (unop_type_check): Remove.
8872 (binop_type_check): Don't declare.
8873
9b44a3a5
AA
88742014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8875
8876 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8877 call to regcache_raw_collect.
8878
303a33fa
SM
88792014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8880
8881 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8882 mi_console->quote as the quoting character.
8883
196100a0
SM
88842014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8885
8886 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8887
f989a1c8
TT
88882014-04-29 Tom Tromey <tromey@redhat.com>
8889
8890 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8891 "show debug varobj".
8892
9404b58f
KM
88932014-05-07 Kyle McMartin <kyle@redhat.com>
8894
8895 Pushed by Joel Brobecker <brobecker@adacore.com>.
8896 * aarch64-tdep.c (aarch64_software_single_step): New function.
8897 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8898 with aarch64_software_single_step.
8899
5e49ba57
JB
89002014-05-05 Joel Brobecker <brobecker@adacore.com>
8901
8902 GDB 7.7.1 released.
8903
c888a17d
KS
89042014-05-05 Keith Seitz <keiths@redhat.com>
8905
8906 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8907 variable or history value is successfully parsed.
8908
290a839c
YQ
89092014-05-05 Yao Qi <yao@codesourcery.com>
8910 Pedro Alves <palves@redhat.com>
8911
8912 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8913 address of blocks that intersects the requested range. Trim
8914 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8915 sections.
8916 * ctf.c (ctf_xfer_partial): Likewise.
8917
91256dc2
YQ
89182014-05-05 Yao Qi <yao@codesourcery.com>
8919
8920 * printcmd.c (display_command): Remove the check to
8921 target_has_execution.
8922
07284463
MK
89232014-05-03 Mark Kettenis <kettenis@gnu.org>
8924
8925 * ppcobsd-nat.c: Include "obsd-nat.h".
8926 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8927 add_target.
8928 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8929
30a1e6cc
SDJ
89302014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8931
8932 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8933 and 16-bit signed and unsigned arguments. Update comment.
8934 (stap_parse_probe_arguments): Extend code to handle such
8935 arguments. Use warning instead of complaint to notify about
8936 unrecognized bitness.
8937
f33da99a
SDJ
89382014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8939
8940 PR breakpoints/16889
8941 * stap-probe.c (stap_parse_probe_arguments): Simplify
8942 check for non-prefixed probes (i.e., probes whose
8943 arguments do not start with "N@"). Always set the
8944 argument type to a sane value.
8945
95cf3b38
DT
89462014-05-01 David Taylor <dtaylor@emc.com>
8947
8948 * remote.c (compare_sections_command): Add -r option to compare
8949 all loadable read-only sections.
8950
1cfdf534
SC
89512014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8952
8953 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8954 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8955 Update all callers.
8956 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8957 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8958 Remove unused CORE_ADDR argument. Update all callers.
8959
ca4f7f8b
PA
89602014-04-29 Pedro Alves <palves@redhat.com>
8961
8962 * remote.c (struct packet_config) <detect>: Extend comment.
8963 (add_packet_config_cmd): Don't set the config's detect or support
8964 fields here.
8965 (init_all_packet_configs): Also initialize the config's 'detect'
8966 field.
8967 (reset_all_packet_configs_support): New function.
8968 (remote_open_1): Call reset_all_packet_configs_support instead of
8969 init_all_packet_configs.
8970 (_initialize_remote): Initialize all packet configs. Assert that
8971 all packets have an associated command, except a few known
8972 outliers.
8973
11c1ba78
JB
89742014-04-28 Joel Brobecker <brobecker@adacore.com>
8975
8976 * dwarf2read.c (read_subrange_type): Handle dynamic
8977 DW_AT_lower_bound attributes.
8978
8739bc53
JB
89792014-04-28 Joel Brobecker <brobecker@adacore.com>
8980
8981 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8982 dynamic bounds before computing its upper bound.
8983 (ada_discrete_type_low_bound): Same as above with the lower bound.
8984
6f8a3220
JB
89852014-04-28 Joel Brobecker <brobecker@adacore.com>
8986
8987 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8988 range types. Adjust the array handling implementation to
8989 take advantage of this change.
8990 (resolve_dynamic_range): New function, mostly extracted from
8991 resolve_dynamic_bounds.
8992 (resolve_dynamic_array): New function, mostly extracted from
8993 resolve_dynamic_bounds.
8994 (resolve_dynamic_bounds): Delete.
8995 (resolve_dynamic_type): Reimplement. Add handling of
8996 TYPE_CODE_RANGE types.
8997
4d072ce4
JB
89982014-04-28 Joel Brobecker <brobecker@adacore.com>
8999
9000 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9001 handling of parallel ___XA types.
9002
52865325
JB
90032014-04-28 Joel Brobecker <brobecker@adacore.com>
9004
9005 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9006 unnecessary second call to static_unwrap_type.
9007
433e77fa
HZ
90082014-04-27 Hui Zhu <hui@codesourcery.com>
9009
9010 * stack.c (print_frame_info): Call do_gdb_disassembly with
9011 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9012
b51a69ee
DE
90132014-04-26 Doug Evans <xdje42@gmail.com>
9014
9015 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9016
7ae1a6a6
PA
90172014-04-25 Pedro Alves <palves@redhat.com>
9018
9019 PR server/16255
9020 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9021 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9022 and newline from built string.
9023 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9024 (linux_ptrace_attach_fail_reason): ... this.
9025 * linux-nat.c (linux_nat_attach): Adjust to use
9026 linux_ptrace_attach_fail_reason.
9027
4082afcc
PA
90282014-04-25 Pedro Alves <palves@redhat.com>
9029
9030 * remote.c (struct remote_state): Remove multi_process_aware,
9031 non_stop_aware, cond_tracepoints, cond_breakpoints,
9032 breakpoint_commands, fast_tracepoints, static_tracepoints,
9033 install_in_trace, disconnected_tracing,
9034 enable_disable_tracepoints, string_tracing, and
9035 augmented_libraries_svr4_read fields.
9036 (remote_multi_process_p): Move further below in the file.
9037 (struct packet_config): Add comments.
9038 (update_packet_config): Delete function.
9039 (show_packet_config_cmd): Use packet_config_support.
9040 (add_packet_config_cmd): Use NULL as set callback.
9041 (packet_ok): "set remote foo-packet"-style commands no longer
9042 change config->supported -- adjust.
9043 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9044 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9045 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9046 (PACKET_QNonStop, PACKET_multiprocess_feature)
9047 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9048 (PACKET_DisconnectedTracing_feature)
9049 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9050 (set_remote_protocol_packet_cmd): Delete function.
9051 (packet_config_support, packet_support): New functions.
9052 (set_remote_protocol_Z_packet_cmd): Don't call
9053 update_packet_config.
9054 (remote_query_attached, remote_pass_signals)
9055 (remote_program_signals, remote_threads_info)
9056 (remote_threads_extra_info, remote_start_remote): Use
9057 packet_support.
9058 (remote_start_remote): Use packet_config_support and
9059 packet_support.
9060 (init_all_packet_configs): Set all packets to unknown support,
9061 instead of calling update_packet_config.
9062 (remote_check_symbols): Use packet_support.
9063 (remote_supported_packet): Unconditionally set the packet config's
9064 support status.
9065 (remote_multi_process_feature, remote_non_stop_feature)
9066 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9067 (remote_breakpoint_commands_feature)
9068 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9069 (remote_install_in_trace_feature)
9070 (remote_disconnected_tracing_feature)
9071 (remote_enable_disable_tracepoint_feature)
9072 (remote_string_tracing_feature)
9073 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9074 (remote_protocol_features): Adjust to use remote_supported_packet
9075 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9076 "ConditionalTracepoints", "ConditionalBreakpoints",
9077 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9078 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9079 "EnableDisableTracepoints", and "tracenz".
9080 (remote_query_supported): Use packet_support.
9081 (remote_open_1): Adjust.
9082 (extended_remote_attach_1): Use packet_support. Switch on the
9083 result of packet_ok instead of checking whether the packet ended
9084 up disabled.
9085 (remote_vcont_resume): Use packet_support.
9086 (remote_resume, remote_stop_ns, fetch_register_using_p)
9087 (remote_prepare_to_store, store_register_using_P)
9088 (check_binary_download, remote_write_bytes): Use packet_support.
9089 (remote_vkill): Use packet_support. Switch on the result of
9090 packet_ok instead of checking whether the packet ended up
9091 disabled.
9092 (extended_remote_supports_disable_randomization): Use
9093 packet_support.
9094 (extended_remote_run): Switch on the result of packet_ok instead
9095 of checking whether the packet ended up disabled.
9096 (remote_insert_breakpoint, remote_remove_breakpoint)
9097 (remote_insert_watchpoint, remote_remove_watchpoint)
9098 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9099 packet_support.
9100 (remote_search_memory): Use packet_config_support.
9101 (remote_get_thread_local_address, remote_get_tib_address)
9102 (remote_hostio_send_command, remote_can_execute_reverse): Use
9103 packet_support.
9104 (remote_supports_cond_tracepoints)
9105 (remote_supports_cond_breakpoints)
9106 (remote_supports_fast_tracepoints)
9107 (remote_supports_static_tracepoints)
9108 (remote_supports_install_in_trace)
9109 (remote_supports_enable_disable_tracepoint)
9110 (remote_supports_string_tracing)
9111 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9112 the packet config says the feature is enabled or disabled.
9113 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9114 (remote_get_trace_status): Use packet_support.
9115 (remote_set_disconnected_tracing): Adjust to check whether the
9116 feature is enabled with packet_support.
9117 (remote_set_trace_buffer_size, remote_use_agent)
9118 (remote_can_use_agent, remote_supports_btrace): Use
9119 packet_support.
9120 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9121 Use packet_config_support.
9122 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9123 the packet config says the feature is enabled or disabled.
9124 (set_range_stepping): Use packet_support.
9125
bdb52a22
TT
91262014-04-25 Tom Tromey <tromey@redhat.com>
9127
9128 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9129 argument.
9130
e9475ead
SA
91312014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9132
9133 * NEWS: Mention support for C99 variable length arrays.
9134
82eacd52
JB
91352014-04-24 Joel Brobecker <brobecker@adacore.com>
9136
9137 * ada-lang.c (standard_exc): Expand introductory comment.
9138
01f9f808
MS
91392014-04-24 Michael Sturm <michael.sturm@mintel.com>
9140 Walfred Tedeschi <walfred.tedeschi@intel.com>
9141
9142 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9143 AVX512 registers.
9144 (amd64_linux_read_description): Add code to handle AVX512 xstate
9145 mask and return respective tdesc.
9146 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9147 and features/i386/x32-avx512-linux.c.
9148 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9149 (amd64_linux_core_read_description): Add code to handle AVX512
9150 xstate mask and return respective tdesc.
9151 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9152 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9153 calculation.
9154 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9155 (tdesc_amd64_avx512_linux): New prototype.
9156 (tdesc_x32_avx512_linux): Likewise.
9157 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9158 features/i386/x32-avx512.c.
9159 (amd64_ymm_avx512_names): New register names for pseudo
9160 registers YMM16-31.
9161 (amd64_ymmh_avx512_names): New register names for raw registers
9162 YMMH16-31.
9163 (amd64_k_names): New register names for K registers.
9164 (amd64_zmmh_names): New register names for ZMM raw registers.
9165 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9166 (amd64_xmm_avx512_names): New register names for XMM16-31
9167 registers.
9168 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9169 registers.
9170 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9171 if feature is present.
9172 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9173 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9174 (AMD64_NUM_REGS): Adjust to new number of registers.
9175 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9176 registers supplied via XSTATE by AVX512 registers.
9177 (i386_linux_read_description): Add case for AVX512.
9178 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9179 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9180 (i386_linux_core_read_description): Add case for AVX512.
9181 (i386_linux_init_abi): Install supported register note section
9182 for AVX512.
9183 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9184 AVX512.
9185 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9186 registers to be number of zmm7h + 1.
9187 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9188 * i386-tdep.c: Include features/i386/i386-avx512.c.
9189 (i386_zmm_names): Add ZMM pseudo register names array.
9190 (i386_zmmh_names): Add ZMM raw register names array.
9191 (i386_k_names): Add K raw register names array.
9192 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9193 registers. AVX512 has 16 more ZMM registers than there are YMM
9194 registers.
9195 (i386_zmmh_regnum_p): Add function to look up register number of
9196 ZMM raw registers.
9197 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9198 (i386_k_regnum_p): Likewise for K raw registers.
9199 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9200 registers added by AVX512.
9201 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9202 registers added by AVX512.
9203 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9204 added by AVX512.
9205 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9206 (i386_pseudo_register_name): Add ZMM pseudo registers.
9207 (i386_zmm_type): Construct and return vector registers type for ZMM
9208 registers.
9209 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9210 ZMM0-31 pseudo registers and K registers.
9211 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9212 and YMM16-31 registers from register cache.
9213 (i386_pseudo_register_write): Add code to write K, ZMM and
9214 YMM16-31 registers.
9215 (i386_register_reggroup_p): Add code to include/exclude AVX512
9216 registers in/from respective register groups.
9217 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9218 registers if feature is present in xcr0.
9219 (i386_gdbarch_init): Add code to initialize AVX512 feature
9220 variables in tdep structure, wire in pseudo registers and call
9221 initialize_tdesc_i386_avx512.
9222 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9223 variables.
9224 (i386_regnum): Add AVX512 registers.
9225 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9226 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9227 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9228 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9229 512 bits wide.
9230 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9231 (i386_ymm_avx512_regnum_p): Likewise.
9232 (i386_k_regnum_p): Likewise.
9233 (i386_zmm_regnum_p): Likewise.
9234 (i386_zmmh_regnum_p): Likewise.
9235 * i387-tdep.c : Update year in copyright notice.
9236 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9237 XSAVE buffer.
9238 (XSAVE_YMM_AVX512_ADDR): New macro.
9239 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9240 XSAVE buffer.
9241 (XSAVE_XMM_AVX512_ADDR): New macro.
9242 (xsave_avx512_k_offset): New table for K register offsets in
9243 XSAVE buffer.
9244 (XSAVE_AVX512_K_ADDR): New macro.
9245 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9246 in XSAVE buffer.
9247 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9248 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9249 buffer.
9250 (i387_collect_xsave): Add code to collect AVX512 registers from
9251 XSAVE buffer.
9252 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9253 of XMM16-31 registers.
9254 (I387_NUM_K_REGS): New define for number of K registers.
9255 (I387_K0_REGNUM): New define for K0 register number.
9256 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9257 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9258 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9259 registers.
9260 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9261 (I387_XMM16_REGNUM): New define for XMM16 register number.
9262 (I387_YMM0_REGNUM): New define for YMM0 register number.
9263 (I387_KEND_REGNUM): New define for last K register number.
9264 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9265 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9266 number.
9267 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9268 number.
9269 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9270 size.
9271 * features/Makefile: Add AVX512 related files.
9272 * features/i386/32bit-avx512.xml: New file.
9273 * features/i386/64bit-avx512.xml: Likewise.
9274 * features/i386/amd64-avx512-linux.c: Likewise.
9275 * features/i386/amd64-avx512-linux.xml: Likewise.
9276 * features/i386/amd64-avx512.c: Likewise.
9277 * features/i386/amd64-avx512.xml: Likewise.
9278 * features/i386/i386-avx512-linux.c: Likewise.
9279 * features/i386/i386-avx512-linux.xml: Likewise.
9280 * features/i386/i386-avx512.c: Likewise.
9281 * features/i386/i386-avx512.xml: Likewise.
9282 * features/i386/x32-avx512-linux.c: Likewise.
9283 * features/i386/x32-avx512-linux.xml: Likewise.
9284 * features/i386/x32-avx512.c: Likewise.
9285 * features/i386/x32-avx512.xml: Likewise.
9286 * regformats/i386/amd64-avx512-linux.dat: New file.
9287 * regformats/i386/amd64-avx512.dat: Likewise.
9288 * regformats/i386/i386-avx512-linux.dat: Likewise.
9289 * regformats/i386/i386-avx512.dat: Likewise.
9290 * regformats/i386/x32-avx512-linux.dat: Likewise.
9291 * regformats/i386/x32-avx512.dat: Likewise.
9292 * NEWS: Add note about new support for AVX512.
9293
9294
08351840
PA
92952014-04-23 Pedro Alves <palves@redhat.com>
9296
9297 * breakpoint.c (insert_bp_location): Tolerate errors if the
9298 breakpoint is set in a user-loaded objfile.
9299 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9300 location is marked shlib_disabled. If the breakpoint is set in a
9301 user-loaded objfile is a GDB-side memory breakpoint, validate it
9302 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9303 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9304 flag.
9305 * mem-break.c (memory_validate_breakpoint): New function.
9306 * objfiles.c (userloaded_objfile_contains_address_p): New
9307 function.
9308 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9309 * target.h (memory_validate_breakpoint): New declaration.
9310
076855f9
PA
93112014-04-23 Pedro Alves <palves@redhat.com>
9312
9313 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9314 the breakpoint is set in a shared library, only suppress
9315 errors for software breakpoints, not hardware breakpoints.
9316
483805cf
PA
93172014-04-22 Pedro Alves <palves@redhat.com>
9318
9319 * infrun.c (schedlock_applies): New function, factored out from
9320 find_thread_needs_step_over.
9321 (find_thread_needs_step_over): Use it.
9322 (switch_back_to_stepped_thread): Always clear trap_expected if the
9323 step over is finished. Return early if scheduler locking applies.
9324 Look for the stepping thread and a potential step-over thread with
9325 a single loop.
9326 (currently_stepping_or_nexting_callback): Delete.
9327
a75fef0e
NC
93282014-04-22 Nick Clifton <nickc@redhat.com>
9329
9330 * NEWS: Mention that ARM sim now supports tracing.
9331
48b6e87e
YQ
93322014-04-22 Yao Qi <yao@codesourcery.com>
9333
9334 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9335 to ...
9336 * tracefile.c (tracefile_fetch_registers): ... it. New
9337 function.
9338 * tracefile.h (tracefile_fetch_registers): Declare.
9339 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9340 tracefile_fetch_registers.
9341
17617f2d
EZ
93422014-04-19 Eli Zaretskii <eliz@gnu.org>
9343
9344 PR gdb/14018
9345 * windows-nat.c (thread_rec): Don't display a warning when
9346 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9347 fails for any reason, set th->suspended to -1, so that we don't
9348 try to resume such a thread. Also, don't return NULL in these
9349 cases, to avoid completely ruin the session due to "PC register is
9350 not available" error.
9351 (do_windows_fetch_inferior_registers): Check errors in
9352 GetThreadContext call.
9353 (windows_continue): Accept an additional argument KILLED; if not
9354 zero, ignore errors in the SetThreadContext call, since the
9355 inferior was killed and is shutting down.
9356 (windows_resume, get_windows_debug_event)
9357 (windows_create_inferior, windows_mourn_inferior)
9358 (windows_kill_inferior): All callers of windows_continue changed
9359 to adjust to its new calling sequence.
9360
5723a6fd
YQ
93612014-04-19 Yao Qi <yao@codesourcery.com>
9362
9363 * ctf.c (ctf_open): Call post_create_inferior.
9364
614d5099
YQ
93652014-04-19 Yao Qi <yao@codesourcery.com>
9366
9367 * ctf.c (handle_id): New static variable.
9368 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9369 value. Get the declaration of event "register" and get length
9370 of field "contents".
9371
dac3e710
YQ
93722014-04-19 Yao Qi <yao@codesourcery.com>
9373
9374 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9375
2bca57ba
SC
93762014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9377
9378 * valops.c (oload_method_static): Remove unnecessary argument
9379 METHOD. Update all callers.
9380
51d48146
PA
93812014-04-18 Pedro alves <palves@redhat.com>
9382 Tom Tromey <tromey@redhat.com>
9383
9384 PR backtrace/15558
9385 * frame.c (get_prev_frame_1): Rename to ...
9386 (get_prev_frame_always): ... this, and make extern. Adjust.
9387 (skip_artificial_frames): Use get_prev_frame_always.
9388 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9389 (get_frame_unwind_stop_reason): Adjust to rename.
9390 * frame.h (get_prev_frame_always): Declare.
9391 * inline-frame.c: Include frame.h.
9392 (inline_frame_this_id): Use get_prev_frame_always.
9393
1bdad2e0
TG
93942014-04-18 Tristan Gingold <gingold@adacore.com>
9395
9396 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9397 code by using bfd_mach_o_get_base_address.
9398
7ce16bd4
UW
93992014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9400
9401 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9402 (spu_ax_pseudo_register_collect): New function.
9403 (spu_ax_pseudo_register_push_stack): Likewise.
9404 (spu_dwarf_reg_to_regnum): Likewise.
9405 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9406
2ed3c037
UW
94072014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9408
9409 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9410 Replace FRAME argument with FRAME_ID.
9411 * gdbarch.c, gdbarch.h: Regenerate.
9412 * findvar.c (default_value_from_register): Add GDBARCH argument;
9413 replace FRAME by FRAME_ID. No longer call get_frame_id.
9414 (value_from_register): Update call to gdbarch_value_from_register.
9415 * value.h (default_value_from_register): Update prototype.
9416 * s390-linux-tdep.c (s390_value_from_register): Update interface
9417 and call to default_value_from_register.
9418 * spu-tdep.c (spu_value_from_register): Likewise.
9419
9420 * findvar.c (address_from_register): Remove TYPE argument.
9421 Do not call value_from_register; use gdbarch_value_from_register
9422 with null_frame_id instead.
9423 * value.h (address_from_register): Update prototype.
9424 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9425 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9426 address_from_register interface change.
9427
71e50e83
YQ
94282014-04-17 Yao Qi <yao@codesourcery.com>
9429
9430 * gdbtypes.h: Update comments to link to types and macros'
9431 definitions.
9432
7a23c549
SC
94332014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9434
9435 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9436
22869d73
KS
94372014-04-16 Keith Seitz <keiths@redhat.com>
9438
9439 PR gdb/15827
9440 * dwarf2read.c (skip_one_die): Check that all relative-offset
9441 sibling DIEs fall within range of the current reader's buffer.
9442 (read_partial_die): Likewise.
9443
c4f87ca6
KS
94442014-04-16 Keith Seitz <keiths@redhat.com>
9445
9446 PR c++/16597
9447 * cp-namespace.c (lookup_symbol_file): If the type name of
9448 `this' is NULL, return immediately.
9449
b50c8614
KS
94502014-04-14 Keith Seitz <keiths@redhat.com>
9451
9452 PR c++/16253
9453 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9454 from symbol_matches_domain in symtab.c. All local callers
9455 of symbol_matches_domain updated.
9456 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9457 search STRUCT_DOMAIN.
9458 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9459 independently. standard_lookup will do that automatically.
9460 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9461 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9462 (cp_lookup_symbol_in_namespace): Likewise.
9463 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9464 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9465 may return a STRUCT_DOMAIN match.
9466 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9467 * cp-support.c: Include language.h.
9468 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9469 VAR_DOMAIN.
9470 * psymtab.c (match_partial_symbol): Compare the requested
9471 domain with the symbol's domain directly.
9472 (lookup_partial_symbol): Likewise.
9473 * symtab.c (lookup_symbol_in_language): Explain when/why
9474 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9475 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9476 appropriate languages.
9477 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9478 and moved to ada-lang.c
9479 (lookup_block_symbol): Explain that this function only returns
9480 symbol matching the requested DOMAIN.
9481 Compare the requested domain with the symbol's domain directly.
9482 (iterate_over_symbols): Compare the requested domain with the
9483 symbol's domain directly.
9484 * symtab.h (symbol_matches_domain): Remove.
9485
3d567982
TT
94862014-04-14 Tom Tromey <tromey@redhat.com>
9487
9488 PR c++/15246:
9489 * c-exp.y (type_aggregate_p): New function.
9490 (qualified_name, classify_inner_name): Use it.
9491 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9492 and TYPE_TARGET_TYPE of an enum type.
9493 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9494 an enum type.
9495 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9496 handle TYPE_DECLARED_CLASS.
9497 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9498 types.
9499 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9500 * valops.c (enum_constant_from_type): New function.
9501 (value_aggregate_elt): Use it.
9502 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9503 TYPE_CODE_ENUM.
9504
c848d642
TT
95052014-04-14 Tom Tromey <tromey@redhat.com>
9506
9507 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9508 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9509 const.
9510 * value.h (value_aggregate_elt): Update.
9511
0626fc76
TT
95122014-04-14 Tom Tromey <tromey@redhat.com>
9513
9514 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9515
5ecaaa66
SA
95162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9517
9518 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9519 (evaluate_subexp_standard): Pass noside argument.
9520 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9521 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9522 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9523 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9524 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9525
1612e0c0
SA
95262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9527
9528 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9529 points to a constant blob.
9530
c451ebe5
SA
95312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9532
9533 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9534 property and store it as the high bound and flag the range accordingly.
9535 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9536 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9537 * gdbtypes.h (enum range_flags): New enum.
9538 (struct range_bounds): Add flags member.
9539
1d42e4c4
SA
95402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9541
9542 * c-typeprint.c (c_type_print_varspec_suffix): Added
9543 check for not yet resolved high bound. If unresolved, print
9544 "variable length" string to the console instead of random
9545 length.
9546
9f1f738a
SA
95472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9548
9549 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9550 value.
9551 (ada_template_to_fixed_record_type_1): Likewise.
9552 (ada_to_fixed_type_1): Likewise.
9553 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9554 (cp_print_value): Likewise.
9555 * d-valprint.c (dynamic_array_type): Likewise.
9556 * findvar.c (address_of_variable): Likewise.
9557 * jv-valprint.c (java_value_print): Likewise.
9558 * valops.c (value_ind): Likewise.
9559 * value.c (coerce_ref): Likewise.
9560
3c8452d4
SA
95612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9562
9563 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9564 value and retrieve the dynamic type size.
9565
4ad88275
SA
95662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9567
9568 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9569 passed to sizeof is dynamic evaluate the argument to compute the length.
9570
80180f79
SA
95712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9572 Joel Brobecker <brobecker@adacore.com>
9573
9574 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9575 (dwarf2_evaluate_property): New function.
9576 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9577 * dwarf2read.c (attr_to_dynamic_prop): New function.
9578 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9579 attribute.
9580 * gdbtypes.c: Include dwarf2loc.h.
9581 (is_dynamic_type): New function.
9582 (resolve_dynamic_type): New function.
9583 (resolve_dynamic_bounds): New function.
9584 (get_type_length): New function.
9585 (check_typedef): Use get_type_length to compute type length.
9586 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9587 (TYPE_LOW_BOUND_KIND): New macro.
9588 (is_dynamic_type): New function prototype.
9589 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9590 to resolve dynamic properties of the type. Update comment.
9591 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9592
a1556843
RH
95932014-04-14 Richard Henderson <rth@redhat.com>
9594
9595 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9596
0be03e84
DE
95972014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9598 Doug Evans <xdje42@gmail.com>
9599
9600 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9601 dereference TYPE_CODE_REF values.
9602
6b662e19
JB
96032014-04-11 Joel Brobecker <brobecker@adacore.com>
9604
9605 Revert the following changes due to regressions:
9606
9607 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9608 (dwarf2_evaluate_property): New function.
9609 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9610 * dwarf2read.c (attr_to_dynamic_prop): New function.
9611 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9612 attribute.
9613 * gdbtypes.c: Include dwarf2loc.h.
9614 (is_dynamic_type): New function.
9615 (resolve_dynamic_type): New function.
9616 (resolve_dynamic_bounds): New function.
9617 (get_type_length): New function.
9618 (check_typedef): Use get_type_length to compute type length.
9619 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9620 (TYPE_LOW_BOUND_KIND): New macro.
9621 (is_dynamic_type): New function prototype.
9622 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9623 to resolve dynamic properties of the type. Update comment.
9624 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9625
9626 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9627 passed to sizeof is dynamic evaluate the argument to compute the length.
9628
9629 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9630 value and retrieve the dynamic type size.
9631
9632 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9633 (ada_template_to_fixed_record_type_1): Likewise.
9634 (ada_to_fixed_type_1): Likewise.
9635 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9636 (cp_print_value): Likewise.
9637 * d-valprint.c (dynamic_array_type): Likewise.
9638 * eval.c (evaluate_subexp_with_coercion): Likewise.
9639 * findvar.c (address_of_variable): Likewise.
9640 * jv-valprint.c (java_value_print): Likewise.
9641 * valops.c (value_ind): Likewise.
9642 * value.c (coerce_ref): Likewise.
9643
9644 * c-typeprint.c (c_type_print_varspec_suffix): Added
9645 check for not yet resolved high bound. If unresolved, print
9646 "variable length" string to the console instead of random
9647 length.
9648
9649 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9650 property and store it as the high bound and flag the range accordingly.
9651 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9652 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9653 * gdbtypes.h (enum range_flags): New enum.
9654 (struct range_bounds): Add flags member.
9655
9656 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9657 points to a constant blob.
9658
9659 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9660 (evaluate_subexp_standard): Pass noside argument.
9661 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9662 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9663 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9664 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9665 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9666
245a5f0b
KS
96672014-04-11 Keith Seitz <keiths@redhat.com>
9668
9669 PR c++/16675
9670 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9671 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9672 reference types.
9673
3bce8237
SA
96742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9675
9676 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9677 (evaluate_subexp_standard): Pass noside argument.
9678 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9679 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9680 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9681 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9682 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9683
92b09522
SA
96842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9685
9686 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9687 points to a constant blob.
9688
e1969afb
SA
96892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9690
9691 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9692 property and store it as the high bound and flag the range accordingly.
9693 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9694 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9695 * gdbtypes.h (enum range_flags): New enum.
9696 (struct range_bounds): Add flags member.
9697
b86138fb
SA
96982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9699
9700 * c-typeprint.c (c_type_print_varspec_suffix): Added
9701 check for not yet resolved high bound. If unresolved, print
9702 "variable length" string to the console instead of random
9703 length.
9704
bcd629a4
SA
97052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9706
9707 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9708 (ada_template_to_fixed_record_type_1): Likewise.
9709 (ada_to_fixed_type_1): Likewise.
9710 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9711 (cp_print_value): Likewise.
9712 * d-valprint.c (dynamic_array_type): Likewise.
9713 * eval.c (evaluate_subexp_with_coercion): Likewise.
9714 * findvar.c (address_of_variable): Likewise.
9715 * jv-valprint.c (java_value_print): Likewise.
9716 * valops.c (value_ind): Likewise.
9717 * value.c (coerce_ref): Likewise.
9718
04b19544
SA
97192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9720
9721 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9722 value and retrieve the dynamic type size.
9723
26cb189f
SA
97242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9725
9726 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9727 passed to sizeof is dynamic evaluate the argument to compute the length.
9728
37c1ab67
SA
97292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9730
9731 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9732 (dwarf2_evaluate_property): New function.
9733 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9734 * dwarf2read.c (attr_to_dynamic_prop): New function.
9735 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9736 attribute.
9737 * gdbtypes.c: Include dwarf2loc.h.
9738 (is_dynamic_type): New function.
9739 (resolve_dynamic_type): New function.
9740 (resolve_dynamic_bounds): New function.
9741 (get_type_length): New function.
9742 (check_typedef): Use get_type_length to compute type length.
9743 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9744 (TYPE_LOW_BOUND_KIND): New macro.
9745 (is_dynamic_type): New function prototype.
9746 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9747 to resolve dynamic properties of the type. Update comment.
9748 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9749
729efb13
SA
97502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9751
9752 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9753 declaring high/low bounds and change uses accordingly. Call
9754 create_range_type instead of create_static_range_type.
9755 * gdbtypes.c (create_range_type): New function.
9756 (create_range_type): Convert bounds into struct bound_prop and pass
9757 them to create_range_type.
9758 * gdbtypes.h (struct bound_prop): New struct.
9759 (create_range_type): New function prototype.
9760 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9761 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9762 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9763 part of the bound.
9764 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9765
0c9c3474
SA
97662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9767
9768 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9769 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9770 * ada-lang.c: All uses of create_range_type updated.
9771 * coffread.c: All uses of create_range_type updated.
9772 * dwarf2read.c: All uses of create_range_type updated.
9773 * f-exp.y: All uses of create_range_type updated.
9774 * m2-valprint.c: All uses of create_range_type updated.
9775 * mdebugread.c: All uses of create_range_type updated.
9776 * stabsread.c: All uses of create_range_type updated.
9777 * valops.c: All uses of create_range_type updated.
9778 * valprint.c: All uses of create_range_type updated.
9779
9d497a19
PA
97802014-04-10 Pedro Alves <palves@redhat.com>
9781
9782 * breakpoint.c (single_step_breakpoints)
9783 (single_step_gdbarch): Move up in the file.
9784 (one_breakpoint_xfer_memory): New function, factored out from ...
9785 (breakpoint_xfer_memory): ... here. Also process single-step
9786 breakpoints.
9787
15a9128a
TG
97882014-04-09 Tristan Gingold <gingold@adacore.com>
9789
9790 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9791 comments.
9792 (darwin_decode_exception_message): Free port only after use.
9793
9c97a070
PL
97942014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9795
9796 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9797 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9798 when setting the size of call_length.
9799
7af389b8
SC
98002014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9801
9802 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9803 dereference TYPE_CODE_REF values.
9804
86ad98c3
JB
98052014-04-07 Joel Brobecker <brobecker@adacore.com>
9806
9807 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9808 end of warning message.
9809
b0aeadb3
DE
98102014-04-03 Doug Evans <dje@google.com>
9811
9812 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9813 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9814
5979d6b6
AM
98152014-04-02 Alan Modra <amodra@gmail.com>
9816
9817 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9818 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9819 (struct symbol_file_add_from_memory_args): Add size field.
9820 (find_vdso_size): New function.
9821 (add_vsyscall_page): Attempt to find vdso size.
9822
0d60c288
DE
98232014-04-01 Doug Evans <dje@google.com>
9824
9825 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9826
a41f2563
TG
98272014-04-01 Tristan Gingold <gingold@adacore.com>
9828
9829 * darwin-nat.c (darwin_encode_reply): Add prototype.
9830 (darwin_decode_exception_message): Reply to unknown inferiors.
9831 (darwin_decode_message): Handle message by id. Ignore message
9832 to unknown inferior.
9833 (darwin_wait): Discard unknown messages, add debug trace.
9834
11a865c8
DE
98352014-03-31 Doug Evans <dje@google.com>
9836
9837 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9838 comp_dir_string.
9839
770e7fc7
DE
98402014-03-31 Doug Evans <dje@google.com>
9841
9842 New option "set print symbol-loading".
9843 * NEWS: Mention it.
9844 * solib.c (solib_read_symbols): Only print symbol loading messages
9845 if requested.
9846 (solib_add): If symbol loading is in "brief" mode, notify user
9847 symbols are being loaded.
9848 (reload_shared_libraries_1): Ditto.
9849 * symfile.c (print_symbol_loading_off): New static global.
9850 (print_symbol_loading_brief): New static global.
9851 (print_symbol_loading_full): New static global.
9852 (print_symbol_loading_enums): New static global.
9853 (print_symbol_loading): New static global.
9854 (print_symbol_loading_p): New function.
9855 (symbol_file_add_with_addrs): Only print symbol loading messages
9856 if requested.
9857 (_initialize_symfile): Register "print symbol-loading" set/show
9858 command.
9859 * symfile.h (print_symbol_loading_p): Declare.
9860
c32c64b7
DE
98612014-03-30 Doug Evans <xdje42@gmail.com>
9862
9863 * infrun.c (set_last_target_status): New function.
9864 (handle_inferior_event): Call it.
9865
7c0bc051
DE
98662014-03-30 Doug Evans <xdje42@gmail.com>
9867
9868 * inferior.h (enum stop_kind): Improve comment.
9869
8776cfe9
JB
98702014-03-28 Joel Brobecker <brobecker@adacore.com>
9871
9872 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9873 a reference, strip the reference layer before calling
9874 the lang_ops value_has_mutated callback.
9875
410a0ff2
SDJ
98762014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9877
9878 Remove some globals from our parser.
9879 * language.c (unk_lang_parser): Add "struct parser_state"
9880 argument.
9881 * language.h (struct language_defn) <la_parser>: Likewise.
9882 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9883 (initialize_expout): Add "struct parser_state" argument.
9884 Rewrite function to use the parser state.
9885 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9886 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9887 write_exp_elt_longcst, write_exp_elt_dblcst,
9888 write_exp_elt_decfloatcst, write_exp_elt_type,
9889 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9890 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9891 write_dollar_variable): Likewise.
9892 (parse_exp_in_context_1): Use parser state.
9893 (insert_type_address_space): Add "struct parser_state" argument.
9894 Use parser state.
9895 (increase_expout_size): New function.
9896 * parser-defs.h: Forward declare "struct language_defn" and
9897 "struct parser_state".
9898 (expout, expout_size, expout_ptr): Remove extern declarations.
9899 (parse_gdbarch, parse_language): Rewrite macro declarations to
9900 accept the parser state.
9901 (struct parser_state): New struct.
9902 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9903 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9904 write_exp_elt_decfloatcst, write_exp_elt_type,
9905 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9906 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9907 write_exp_msymbol, write_dollar_variable,
9908 mark_struct_expression, insert_type_address_space): Add "struct
9909 parser_state" argument.
9910 (increase_expout_size): New function.
9911 * utils.c (do_clear_parser_state): New function.
9912 (make_cleanup_clear_parser_state): Likewise.
9913 * utils.h (make_cleanup_clear_parser_state): New function
9914 prototype.
9915 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9916 Update calls to write_exp* in order to pass the parser state.
9917 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9918 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9919 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9920 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9921 * stap-probe.c (stap_parse_register_operand): Likewise.
9922 (stap_parse_single_operand): Likewise.
9923 (stap_parse_argument_1): Likewise.
9924 (stap_parse_argument): Use parser state.
9925 * stap-probe.h: Include "parser-defs.h".
9926 (struct stap_parse_info) <pstate>: New field.
9927 * c-exp.y (parse_type): Rewrite to use parser state.
9928 (yyparse): Redefine to c_parse_internal.
9929 (pstate): New global variable.
9930 (parse_number): Add "struct parser_state" argument.
9931 (write_destructor_name): Likewise.
9932 (type_exp): Update calls to write_exp* and similars in order to
9933 use parser state.
9934 (exp1, exp, variable, qualified_name, space_identifier,
9935 typename, typebase): Likewise.
9936 (write_destructor_name, parse_number, lex_one_token,
9937 classify_name, classify_inner_name, c_parse): Add "struct
9938 parser_state" argument. Update function to use parser state.
9939 * c-lang.h: Forward declare "struct parser_state".
9940 (c_parse): Add "struct parser_state" argument.
9941 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9942 (yyparse): Redefine macro to ada_parse_internal.
9943 (pstate): New variable.
9944 (write_int, write_object_renaming, write_var_or_type,
9945 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9946 type_int, type_long, type_long_long, type_float, type_double,
9947 type_long_double, type_char, type_boolean, type_system_address):
9948 Add "struct parser_state" argument.
9949 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9950 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9951 var_or_type, aggregate, aggregate_component_list,
9952 positional_list, others, component_group,
9953 component_associations): Update calls to write_exp* and similar
9954 functions in order to use parser state.
9955 (ada_parse, write_var_from_sym, write_int,
9956 write_exp_op_with_string, write_object_renaming,
9957 find_primitive_type, write_selectors, write_ambiguous_var,
9958 write_var_or_type, write_name_assoc, type_int, type_long,
9959 type_long_long, type_float, type_double, type_long_double,
9960 type_char, type_boolean, type_system_address): Add "struct
9961 parser_state" argument. Adjust function to use parser state.
9962 * ada-lang.c (parse): Likewise.
9963 * ada-lang.h: Forward declare "struct parser_state".
9964 (ada_parse): Add "struct parser_state" argument.
9965 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9966 calls to both functions.
9967 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9968 parser state.
9969 (yyparse): Redefine macro to f_parse_internal.
9970 (pstate): New variable.
9971 (parse_number): Add "struct parser_state" argument.
9972 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9973 and similars in order to use parser state.
9974 (parse_number): Adjust code to use parser state.
9975 (yylex): Likewise.
9976 (f_parse): New function.
9977 * f-lang.h: Forward declare "struct parser_state".
9978 (f_parse): Add "struct parser_state" argument.
9979 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9980 parser state.
9981 (yyparse): Redefine macro for java_parse_internal.
9982 (pstate): New variable.
9983 (push_expression_name, push_expression_name, insert_exp): Add
9984 "struct parser_state" argument.
9985 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9986 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9987 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9988 PostIncrementExpression, PostDecrementExpression,
9989 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9990 UnaryExpressionNotPlusMinus, CastExpression,
9991 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9992 RelationalExpression, EqualityExpression, AndExpression,
9993 ExclusiveOrExpression, InclusiveOrExpression,
9994 ConditionalAndExpression, ConditionalOrExpression,
9995 ConditionalExpression, Assignment, LeftHandSide): Update
9996 calls to write_exp* and similars in order to use parser state.
9997 (parse_number): Ajust code to use parser state.
9998 (yylex): Likewise.
9999 (java_parse): New function.
10000 (push_variable): Add "struct parser_state" argument. Adjust
10001 code to user parser state.
10002 (push_fieldnames, push_qualified_expression_name,
10003 push_expression_name, insert_exp): Likewise.
10004 * jv-lang.h: Forward declare "struct parser_state".
10005 (java_parse): Add "struct parser_state" argument.
10006 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10007 parser state.
10008 (yyparse): Redefine macro to m2_parse_internal.
10009 (pstate): New variable.
10010 (type_exp, exp, fblock, variable, type): Update calls to
10011 write_exp* and similars to use parser state.
10012 (yylex): Likewise.
10013 (m2_parse): New function.
10014 * m2-lang.h: Forward declare "struct parser_state".
10015 (m2_parse): Add "struct parser_state" argument.
10016 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10017 * objc-lang.h: Forward declare "struct parser_state".
10018 (end_msglist): Add "struct parser_state" argument.
10019 * p-exp.y (parse_type): Rewrite macro to use parser state.
10020 (yyparse): Redefine macro to pascal_parse_internal.
10021 (pstate): New variable.
10022 (parse_number): Add "struct parser_state" argument.
10023 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10024 write_exp* and similars in order to use parser state.
10025 (parse_number, yylex): Adjust code to use parser state.
10026 (pascal_parse): New function.
10027 * p-lang.h: Forward declare "struct parser_state".
10028 (pascal_parse): Add "struct parser_state" argument.
10029 * go-exp.y (parse_type): Rewrite macro to use parser state.
10030 (yyparse): Redefine macro to go_parse_internal.
10031 (pstate): New variable.
10032 (parse_number): Add "struct parser_state" argument.
10033 (type_exp, exp1, exp, variable, type): Update calls to
10034 write_exp* and similars in order to use parser state.
10035 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10036 to use parser state.
10037 (go_parse): Likewise.
10038 * go-lang.h: Forward declare "struct parser_state".
10039 (go_parse): Add "struct parser_state" argument.
10040
342587c4
DE
100412014-03-27 Doug Evans <dje@google.com>
10042
10043 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10044
33e80786
DE
100452014-03-27 Doug Evans <dje@google.com>
10046
10047 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10048 Remove argument abbrev_section. All callers updated.
10049
1dbab08b
DE
100502014-03-27 Doug Evans <dje@google.com>
10051
10052 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10053 addr_base, ranges_base.
10054
318d3177
KS
100552014-03-26 Keith Seitz <keiths@redhat.com>
10056
10057 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10058 types, not VAR_DOMAIN.
10059
1e54db15
SL
100602014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10061
10062 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10063 "ra" registers.
10064 * features/nios2-linux.c: Regenerated.
10065 * features/nios2.c: Regenerated.
10066
d3839ede
PA
100672014-03-25 Pedro Alves <palves@redhat.com>
10068
10069 * cli/cli-script.c (script_from_file): Force the interpreter to
10070 sync mode.
10071
7588d2ec
PL
100722014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10073
10074 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10075 small stack allocation.
10076
a6290449
TG
100772014-03-24 Tristan Gingold <gingold@adacore.com>
10078
10079 * darwin-nat.c (exc_server): Remove unused prototype.
10080 (darwin_dump_message): Correctly display data on x86_64.
10081 (darwin_encode_reply): Fix style.
10082 Add comments and fix indentation.
10083
31ae9d24 100842014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10085
10086 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10087
6339bfc4
DE
100882014-03-22 Doug Evans <xdje42@gmail.com>
10089
10090 * infcmd.c: Whitespace fixes.
10091 (interrupt_command): Merge two function comments into one.
10092
0a07590b
DE
100932014-03-22 Doug Evans <xdje42@gmail.com>
10094
10095 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10096 All uses updated.
10097
b55fbac4
YQ
100982014-03-22 Yao Qi <yao@codesourcery.com>
10099
10100 * remote.c (target_read_live_memory): Remove.
10101 (memory_xfer_live_readonly_partial): Rename it to
10102 remote_xfer_live_readonly_partial. Remove argument 'object'.
10103 All callers updated. Call remote_read_bytes_1
10104 instead of target_read_live_memory.
10105 * tracepoint.c (set_traceframe_number): Remove.
10106 (make_cleanup_restore_traceframe_number): Likewise .
10107 * tracepoint.h (set_traceframe_number): Remove declaration.
10108 (make_cleanup_restore_traceframe_number): Likewise.
10109
9217e74e
YQ
101102014-03-22 Yao Qi <yao@codesourcery.com>
10111
10112 * remote.c (remote_read_bytes): Move code on reading from the
10113 remote stub to ...
10114 (remote_read_bytes_1): ... here. New function.
10115
8acf9577
YQ
101162014-03-22 Yao Qi <yao@codesourcery.com>
10117
10118 * ctf.c (ctf_xfer_partial): Check the return value of
10119 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10120 return TARGET_XFER_UNAVAILABLE.
10121 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10122 * target.c (target_read_live_memory): Move it to remote.c.
10123 (memory_xfer_live_readonly_partial): Likewise.
10124 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10125 * remote.c (target_read_live_memory): Moved from target.c.
10126 (memory_xfer_live_readonly_partial): Likewise.
10127 (remote_read_bytes): Factored out from
10128 memory_xfer_partial_1.
10129
feef67ab
DE
101302014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10131
10132 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10133 NULL pointer.
10134
b65dc60b
PA
101352014-03-21 Pedro Alves <palves@redhat.com>
10136
10137 * infrun.c (normal_stop): Extend comment.
10138
b4ab256d
HZ
101392014-03-21 Hui Zhu <hui@codesourcery.com>
10140 Pedro Alves <palves@redhat.com>
10141
10142 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10143 static buffer.
10144 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10145 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10146 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10147
deba7593
MR
101482014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10149
10150 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10151 `z' formatted output modifier.
10152
1bff71c3
SDJ
101532014-03-20 Tom Tromey <tromey@redhat.com>
10154 Sergio Durigan Junior <sergiodj@redhat.com>
10155
10156 * probe.c (parse_probes): Turn assert into an ordinary error.
10157 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10158 exceptions when parsing probes. Rearrange the code for clarity.
10159
90e28950
TT
101602014-03-20 Tom Tromey <tromey@redhat.com>
10161
10162 PR gdb/14135
10163 * top.c (execute_command): Only dispatch events if the command
10164 started the target.
10165
beb460e8
PA
101662014-03-20 Tom Tromey <tromey@redhat.com>
10167
10168 PR cli/15718
10169 * infcall.c: Include event-top.h.
10170 (run_inferior_call): Call async_disable_stdin if needed.
10171
99619bea
PA
101722014-03-20 Pedro Alves <palves@redhat.com>
10173
10174 * infrun.c (prepare_to_proceed): Delete.
10175 (thread_still_needs_step_over): New function.
10176 (find_thread_needs_step_over): New function.
10177 (proceed): If the current thread needs a step-over, set its
10178 steping_over_breakpoint flag. Adjust to use
10179 find_thread_needs_step_over instead of prepare_to_proceed.
10180 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10181 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10182 breakpoint.
10183 (switch_back_to_stepped_thread): Step over breakpoints of all
10184 threads not the stepping thread, before switching back to the
10185 stepping thread.
10186
2adfaa28
PA
101872014-03-20 Pedro Alves <palves@redhat.com>
10188
10189 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10190 extern.
10191 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10192 * infrun.c (saved_singlestep_ptid)
10193 (stepping_past_singlestep_breakpoint): Delete.
10194 (resume): Remove stepping_past_singlestep_breakpoint handling.
10195 (proceed): Store the prev_pc of the stepping thread too.
10196 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10197 singlestep_pc.
10198 (enum infwait_states): Delete infwait_thread_hop_state.
10199 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10200 field.
10201 (handle_inferior_event): Adjust.
10202 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10203 handling and the thread-hop code. Before removing single-step
10204 breakpoints, check whether the thread hit a single-step breakpoint
10205 of another thread. If it did, the trap is not a random signal.
10206 (switch_back_to_stepped_thread): If the event thread hit a
10207 single-step breakpoint, unblock it before switching to the
10208 stepping thread. Handle the case of the stepped thread having
10209 advanced already.
10210 (keep_going): Handle the case of the current thread moving past a
10211 single-step breakpoint.
10212
31e77af2
PA
102132014-03-20 Pedro Alves <palves@redhat.com>
10214
10215 PR breakpoints/7143
10216 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10217 are being stepped over.
10218 (breakpoint_address_match): Make extern.
10219 * breakpoint.h (breakpoint_address_match): New declaration.
10220 * inferior.h (stepping_past_instruction_at): New declaration.
10221 * infrun.c (struct step_over_info): New type.
10222 (step_over_info): New global.
10223 (set_step_over_info, clear_step_over_info)
10224 (stepping_past_instruction_at): New functions.
10225 (handle_inferior_event): Clear the step-over info when
10226 trap_expected is cleared.
10227 (resume): Remove now stale comment.
10228 (clear_proceed_status): Clear step-over info.
10229 (proceed): Adjust step-over handling to set or clear the step-over
10230 info instead of removing all breakpoints.
10231 (handle_signal_stop): When setting up a thread-hop, don't remove
10232 breakpoints here.
10233 (stop_stepping): Clear step-over info.
10234 (keep_going): Adjust step-over handling to set or clear step-over
10235 info and then always inserting breakpoints, instead of removing
10236 all breakpoints when stepping over one.
10237
b9f437de
PA
102382014-03-20 Pedro Alves <palves@redhat.com>
10239
10240 * infrun.c (previous_inferior_ptid): Adjust comment.
10241 (deferred_step_ptid): Delete.
10242 (infrun_thread_ptid_changed, prepare_to_proceed)
10243 (init_wait_for_inferior): Adjust.
10244 (handle_signal_stop): Delete deferred_step_ptid handling.
10245
06c868a8
JK
102462014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10247
10248 PR gdb/15358
10249 * defs.h (sync_quit_force_run): New declaration.
10250 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10251 * event-top.c (async_sigterm_handler): New declaration.
10252 (async_sigterm_token): New variable.
10253 (async_init_signals): Create also async_sigterm_token.
10254 (async_sigterm_handler): New function.
10255 (sync_quit_force_run): New variable.
10256 (handle_sigterm): Replace quit_force call by other calls.
10257 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10258
dea80df0
MR
102592014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10260
10261 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10262 offset into SPE pseudo registers.
10263
0c7e1a46
PA
102642014-03-18 Pedro Alves <palves@redhat.com>
10265
10266 PR gdb/13860
10267 * inferior.h (print_stop_event): Declare.
10268 * infrun.c (print_stop_event): New, factored out from ...
10269 (normal_stop): ... this.
10270 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10271 of bpstat_print/print_stack_frame.
10272
9c1fcd01
TT
102732014-03-17 Tom Tromey <tromey@redhat.com>
10274
10275 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10276
11aa919a
PMR
102772014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10278
10279 * ada-lang.c (decode_constrained_packed_array): Perform a
10280 minimal coercion for reference with coerce_ref instead of
10281 ada_coerce_ref.
10282
d4ccb5e0
TG
102832014-03-17 Tristan Gingold <gingold@adacore.com>
10284
10285 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10286 (darwin_solib_create_inferior_hook): Emit a warning if version
10287 is unhandled.
10288
49840f2a
UW
102892014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10290
10291 * python/py-value.c (get_field_flag): Cast flag_name argument to
10292 PyObject_GetAttrString to support Python 2.4.
10293
ed4123e5
JK
102942014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10295
10296 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10297 (Global Maintainers): Remove Jan Kratochvil.
10298
d6b64346
PA
102992014-03-14 Pedro Alves <palves@redhat.com>
10300
10301 * inferior.h (terminal_ours_for_output): Rename to ...
10302 (child_terminal_ours_for_output): ... this.
10303 (terminal_save_ours): Rename to ...
10304 (child_terminal_save_ours): ... this.
10305 (terminal_ours): Rename to ...
10306 (child_terminal_ours): ... this.
10307 (terminal_inferior): Rename to ...
10308 (child_terminal_inferior): ... this.
10309 (terminal_init_inferior): Rename to ...
10310 (child_terminal_init_inferior): ... this.
10311 (terminal_init_inferior_with_pgrp): Rename to ...
10312 (child_terminal_init_inferior_with_pgrp): ... this.
10313 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10314 (child_terminal_init_with_pgrp): ... this.
10315 (terminal_save_ours): Rename to ...
10316 (child_terminal_save_ours): ... this.
10317 (terminal_init_inferior): Rename to ...
10318 (child_terminal_init): ... this. Adjust.
10319 (terminal_inferior): Rename to ...
10320 (child_terminal_inferior): ... this.
10321 (terminal_ours_for_output): Rename to ...
10322 (child_terminal_ours_for_output): ... this. Adjust.
10323 (terminal_ours): Rename to ...
10324 (child_terminal_ours): ... this.
10325 (terminal_ours_1): Rename to ...
10326 (child_terminal_ours_1): ... this. Adjust.
10327 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10328 * windows-nat.c (do_initial_windows_stuff): Adjust.
10329 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10330 (gnu_terminal_init): ... this. Adjust.
10331 (gnu_target): Adjust.
10332 * inf-child.c (inf_child_target): Adjust.
10333
5a1e8c7a
DE
103342014-03-13 Doug Evans <xdje42@gmail.com>
10335
10336 PR guile/16612
10337 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10338 new eq?-hashtab.
10339
350e1a76
DE
103402014-03-13 Doug Evans <xdje42@gmail.com>
10341
10342 * value.c (record_latest_value): Call release_value_or_incref
10343 instead of release_value.
10344
a69900ae
PA
103452014-03-13 Pedro Alves <palves@redhat.com>
10346
10347 * procfs.c (procfs_target): Don't override to_shortname,
10348 to_longname or to_doc.
10349
5db9f0bd
PA
103502014-03-13 Pedro Alves <palves@redhat.com>
10351
10352 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10353 Unix in user visible strings.
10354
5e3a2c38
SS
103552014-03-12 Stan Shebs <stan@codesourcery.com>
10356
10357 * gdbtypes.h: Annotate comments for Doxygen, add a page
10358 block comment with some general info.
10359
8bc2fe48
PA
103602014-03-12 Pedro Alves <palves@redhat.com>
10361
10362 * infcmd.c (prepare_execution_command): New function, factored out
10363 from several execution commands.
10364 (run_command_1, continue_command, step_1, jump_command)
10365 (signal_command, until_command, advance_command, finish_command)
10366 (attach_command): Use prepare_execution_command.
10367
638c5f49
OJ
103682014-03-12 Omair Javaid <omair.javaid@linaro.org>
10369
10370 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10371 (MAX_BPTS): Define.
10372 (MAX_WPTS): Define.
10373 (struct arm_linux_thread_points): Removed.
10374 (struct arm_linux_process_info): New.
10375 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10376 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10377 (arm_linux_find_breakpoints_by_tid): Removed.
10378 (struct arch_lwp_info): New.
10379 (arm_linux_find_process_pid): New functions.
10380 (arm_linux_add_process): New functions.
10381 (arm_linux_process_info_get): New functions.
10382 (arm_linux_forget_process): New function.
10383 (arm_linux_get_debug_reg_state): New function.
10384 (struct update_registers_data): New.
10385 (update_registers_callback): New function.
10386 (arm_linux_insert_hw_breakpoint1): Updated.
10387 (arm_linux_remove_hw_breakpoint1): Updated.
10388 (arm_linux_insert_hw_breakpoint): Updated.
10389 (arm_linux_remove_hw_breakpoint): Updated.
10390 (arm_linux_insert_watchpoint): Updated.
10391 (arm_linux_remove_watchpoint): Updated.
10392 (arm_linux_new_thread): Updated.
10393 (arm_linux_prepare_to_resume): New function.
10394 (arm_linux_new_fork): New function.
10395 (_initialize_arm_linux_nat): Updated.
10396
6d03af93
PA
103972014-03-12 Pedro Alves <palves@redhat.com>
10398
10399 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10400
b3ccfe11
TT
104012014-03-12 Tom Tromey <tromey@redhat.com>
10402
10403 * inf-child.c (return_zero): New function.
10404 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10405 * aix-thread.c (aix_thread_inferior_created): New function.
10406 (aix_thread_attach): Remove.
10407 (init_aix_thread_ops): Don't set to_attach.
10408 (_initialize_aix_thread): Register inferior_created observer.
10409 * corelow.c (init_core_ops): Don't set to_attach or
10410 to_create_inferior.
10411 * exec.c (init_exec_ops): Don't set to_attach or
10412 to_create_inferior.
10413 * infcmd.c (run_command_1): Use find_run_target. Make direct
10414 target calls.
10415 (attach_command): Use find_attach_target. Make direct target
10416 calls.
10417 * record-btrace.c (init_record_btrace_ops): Don't set
10418 to_create_inferior.
10419 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10420 Remove.
10421 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10422 set to_create_inferior.
10423 * target.c (complete_target_initialization): Add assertion.
10424 (target_create_inferior): Remove.
10425 (find_default_attach, find_default_create_inferior): Remove.
10426 (find_attach_target, find_run_target): New functions.
10427 (find_default_is_async_p, find_default_can_async_p)
10428 (target_supports_non_stop, target_attach): Remove.
10429 (init_dummy_target): Don't set to_create_inferior or
10430 to_supports_non_stop.
10431 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10432 TARGET_DEFAULT_FUNC.
10433 <to_create_inferior>: Add comment.
10434 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10435 TARGET_DEFAULT_RETURN.
10436 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10437 (find_attach_target, find_run_target): Declare.
10438 (target_create_inferior): Remove.
10439 (target_has_execution_1): Update comment.
10440 (target_supports_non_stop): Remove.
10441 * target-delegates.c: Rebuild.
10442
91f83b02
PA
104432014-03-12 Pedro Alves <palves@redhat.com>
10444
10445 * inf-child.h: Update comment to not mention Unix.
10446
f1aea813
PA
104472014-03-12 Pedro Alves <palves@redhat.com>
10448
10449 * inf-child.c: Update top comment to not mention Unix. Add
10450 generic comment describing how this target is meant to be used.
10451 (inf_child_post_attach, inf_child_post_startup_inferior)
10452 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10453 Unix in comment.
10454
ee8e9165
PA
104552014-03-12 Pedro Alves <palves@redhat.com>
10456
10457 * nto-procfs.c: Include inf-child.h.
10458 (procfs_ops): Delete global.
10459 (procfs_can_run): Delete method.
10460 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10461 target pointer instead of referencing procfs_ops.
10462 (procfs_prepare_to_store): Delete.
10463 (init_procfs_ops): Delete function.
10464 (procfs_target): New function, based on init_procfs_ops, but
10465 inherit inf_child_target.
10466 (_initialize_procfs): Use procfs_target.
10467
51a9c8c5
PA
104682014-03-12 Pedro Alves <palves@redhat.com>
10469
10470 * windows-nat.c: Include inf-child.h.
10471 (windows_ops): Delete global.
10472 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10473 methods.
10474 (init_windows_ops): Delete function.
10475 (windows_target): New function, based on init_windows_ops, but
10476 inherit inf_child_target.
10477 (_initialize_windows_nat): Use windows_target. Install x86
10478 specific target methods here.
10479
c1966e26
DE
104802014-03-10 Doug Evans <xdje42@gmail.com>
10481
10482 * guile/guile.c (call_initialize_gdb_module): New function.
10483 (initialize_guile): Replace call to scm_init_guile with call to
10484 scm_with_guile.
10485
023db19c
JB
104862014-03-10 Joel Brobecker <brobecker@adacore.com>
10487
10488 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10489 in call to TYPE_CODE macro.
10490
5ec18f2b
JG
104912014-03-10 Jerome Guitton <guitton@adacore.com>
10492
8668be63
JB
10493 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10494 Resolve tagged types to full view.
5ec18f2b 10495
7d03f2eb
HZ
104962014-03-10 Hui Zhu <hui@codesourcery.com>
10497
10498 * target.h (target_insert_breakpoint): Remove "hardware" from its
10499 comments.
10500
c5164cbc
DE
105012014-03-07 Doug Evans <dje@google.com>
10502
10503 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10504
c4a3fee2
DE
105052014-03-07 Doug Evans <dje@google.com>
10506
10507 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10508 Remove unused local comp_dir_attr. Assert exactly one of
10509 stub_comp_unit_die, stub_comp_dir is non-NULL.
10510
3156469c
JB
105112014-03-07 Joel Brobecker <brobecker@adacore.com>
10512
10513 * target.h (complete_target_initialization, add_target):
10514 Add comment.
10515
c1a7b7c6
PA
105162014-03-07 Pedro Alves <palves@redhat.com>
10517
10518 * go32-nat.c: Include inf-child.h.
10519 (go32_ops): Delete global.
10520 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10521 Delete methods.
10522 (go32_create_inferior): Push the passed in target pointer instead
10523 of referencing go32_ops.
10524 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10525 (go32_target): New function, based on init_go32_ops, but inherit
10526 inf_child_target.
10527 (_initialize_go32_nat): Use go32_target. Move parts of
10528 init_go32_ops here.
10529
d3c1a85f
JB
105302014-03-06 Joel Brobecker <brobecker@adacore.com>
10531
10532 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10533 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10534 SYMBOL_VALUE_ADDRESS.
10535 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10536
5fa1d40e
YQ
105372014-03-06 Yao Qi <yao@codesourcery.com>
10538
10539 * breakpoint.c (get_tracepoint_by_number): Remove argument
10540 optional_p. All callers updated. Adjust comments. Update
10541 output message.
10542 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10543
0c13193f
YQ
105442014-03-06 Yao Qi <yao@codesourcery.com>
10545
10546 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10547 early if get_number returns zero. Use 'p' instead of 'args'.
10548
2217da06
YQ
105492014-03-06 Yao Qi <yao@codesourcery.com>
10550
10551 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10552 message.
10553
cc3da688
YQ
105542014-03-06 Yao Qi <yao@codesourcery.com>
10555
10556 PR breakpoints/16508
10557 * tracepoint.c (check_trace_running): New function.
10558 (trace_find_command): Move code to check_trace_running and
10559 call check_trace_running.
10560 (trace_find_pc_command): Likewise.
10561 (trace_find_tracepoint_command): Likewise.
10562 (trace_find_line_command): Likewise.
10563 (trace_find_range_command): Likewise.
10564 * tracepoint.h (check_trace_running): Likewise.
10565 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10566
6a5f844b
YQ
105672014-03-06 Yao Qi <yao@codesourcery.com>
10568
10569 * target.h (struct target_ops) <to_traceframe_info>: Use
10570 TARGET_DEFAULT_NORETURN (tcomplain ()).
10571 * target-delegates.c: Regenerated.
10572
0f26cec1
PA
105732014-03-05 Pedro Alves <palves@redhat.com>
10574
10575 PR gdb/16575
10576 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10577 void. Update comment.
10578 (dcache_xfer_memory): Delete.
10579 (dcache_read_memory_partial): New, based on the read bits of
10580 dcache_xfer_memory.
10581 (dcache_update): Add status parameter. Use ULONGEST for len, and
10582 adjust. Discard cache lines if the reason for the update was
10583 error.
10584 * dcache.h (dcache_xfer_memory): Delete declaration.
10585 (dcache_read_memory_partial): New declaration.
10586 (dcache_update): Update prototype.
10587 * target.c (raw_memory_xfer_partial): Update the dcache here.
10588 (memory_xfer_partial_1): Don't handle dcache writes here.
10589
b2b255bd
MF
105902014-03-05 Mike Frysinger <vapier@gentoo.org>
10591
10592 * remote-sim.c (gdbsim_load): Add const to prog.
10593
5d9cf8a4
TT
105942014-03-03 Tom Tromey <tromey@redhat.com>
10595
10596 * elfread.c (probe_key): Change to bfd_data.
10597 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10598 now per-BFD, not per-objfile.
10599 * stap-probe.c (stap_probe_destroy): Update comment.
10600 (handle_stap_probe): Allocate on the per-BFD obstack.
10601
729662a5
TT
106022014-03-03 Tom Tromey <tromey@redhat.com>
10603
10604 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10605 * breakpoint.c (create_longjmp_master_breakpoint): Use
10606 get_probe_address.
10607 (add_location_to_breakpoint, bkpt_probe_insert_location)
10608 (bkpt_probe_remove_location): Update.
10609 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10610 * elfread.c (elf_symfile_relocate_probe): Remove.
10611 (elf_probe_fns): Update.
10612 (insert_exception_resume_breakpoint): Change type of "probe"
10613 parameter to bound_probe.
10614 (check_exception_resume): Update.
10615 * objfiles.c (objfile_relocate1): Don't relocate probes.
10616 * probe.c (bound_probe_s): New typedef.
10617 (parse_probes): Use get_probe_address. Set sal's objfile.
10618 (find_probe_by_pc): Return a bound_probe.
10619 (collect_probes): Return a VEC(bound_probe_s).
10620 (compare_probes): Update.
10621 (gen_ui_out_table_header_info): Change type of "probes"
10622 parameter. Update.
10623 (info_probes_for_ops): Update.
10624 (get_probe_address): New function.
10625 (probe_safe_evaluate_at_pc): Update.
10626 * probe.h (struct probe_ops) <get_probe_address>: New field.
10627 <set_semaphore, clear_semaphore>: Add objfile parameter.
10628 (struct probe) <objfile>: Remove field.
10629 <arch>: New field.
10630 <address>: Update comment.
10631 (struct bound_probe): New.
10632 (find_probe_by_pc): Return a bound_probe.
10633 (get_probe_address): Declare.
10634 * solib-svr4.c (struct probe_and_action) <address>: New field.
10635 (hash_probe_and_action, equal_probe_and_action): Update.
10636 (register_solib_event_probe): Add address parameter.
10637 (solib_event_probe_at): Update.
10638 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10639 get_probe_address.
10640 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10641 (stap_get_probe_address): New function.
10642 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10643 (compile_probe_arg): Update.
10644 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10645 address.
10646 (handle_stap_probe): Don't relocate the probe.
10647 (stap_relocate): Remove.
10648 (stap_gen_info_probes_table_values): Update.
10649 (stap_probe_ops): Remove stap_relocate.
10650 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10651 (debug_sym_probe_fns): Update.
10652 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10653 * symtab.c (init_sal): Use memset.
10654 * symtab.h (struct symtab_and_line) <objfile>: New field.
10655 * tracepoint.c (start_tracing, stop_tracing): Update.
10656
ff887920
TT
106572014-03-03 Tom Tromey <tromey@redhat.com>
10658
10659 * probe.h (parse_probes, find_probe_by_pc)
10660 (find_probes_in_objfile): Fix comments.
10661
f0407826
DE
106622014-03-02 Doug Evans <xdje42@gmail.com>
10663
10664 * infrun.c (handle_signal_stop): Replace test for
10665 TARGET_WAITKIND_STOPPED with an assert.
10666
35e6a711
DE
106672014-03-02 Doug Evans <xdje42@gmail.com>
10668
10669 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10670
667f9d0b
DE
106712014-03-02 Doug Evans <xdje42@gmail.com>
10672
10673 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10674
dc92ace0
MK
106752014-03-01 Mark Kettenis <kettenis@gnu.org>
10676
10677 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10678
a900370f
MK
106792014-03-01 Mark Kettenis <kettenis@gnu.org>
10680
10681 * i386obsd-nat.c: Include "obsd-nat.h".
10682 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10683 add_target.
10684 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10685
b72a7981
MK
106862014-03-01 Mark Kettenis <kettenis@gnu.org>
10687
10688 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10689
96c70aba
MK
106902014-03-01 Mark Kettenis <kettenis@gnu.org>
10691
10692 * mips64obsd-nat.c: Include "obsd-nath".
10693 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10694 add_target
10695 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10696
874a80af
MK
106972014-03-01 Mark Kettenis <kettenis@gnu.org>
10698
8fd408f1
MK
10699 * amd64obsd-nat.c: Include "obsd-nat,h.
10700 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10701 add_target.
874a80af
MK
10702 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10703
9cf95373
SC
107042014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10705
10706 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10707 (find_overload_match): Update call to find_oload_champ.
10708 (find_oload_champ_namespace_loop): Likewise
10709
863e4da4
MK
107102014-02-28 Mark Kettenis <kettenis@gnu.org>
10711
025cac40
MK
10712 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10713
1ed586ce
MK
10714 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10715 * config/sparc/obsd64.mh: New file.
10716 * sparc64obsd-nat.c: New file.
10717
863e4da4
MK
10718 * obsd-nat.h: New file.
10719 * obsd-nat.c: New file.
10720 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10721 (ALLDEPFILES): Add obsd-nat.c.
10722
89de4da4
TT
107232014-02-28 Tom Tromey <tromey@redhat.com>
10724
10725 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10726 * cli-out.h (cli_ui_out_impl): Now const.
10727 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10728 * ui-out.c (struct ui_out) <impl>: Now const.
10729 (default_ui_out_impl): Now const.
10730 (ui_out_new): Make 'impl' parameter const.
10731 * ui-out.h (ui_out_new): Update.
10732
c725e7b6
MK
107332014-02-27 Mark Kettenis <kettenis@gnu.org>
10734
10735 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10736
670b46b3
MK
107372014-02-27 Mark Kettenis <kettenis@gnu.org>
10738
10739 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10740
c91550fc
JK
107412014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10742
10743 Additional PR 8882 fix.
10744 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10745
2fa0369e
PA
107462014-02-27 Pedro Alves <palves@redhat.com>
10747
10748 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10749 isn't set.
10750
d632a097
PA
107512014-02-27 Pedro Alves <palves@redhat.com>
10752
10753 PR 12702
10754 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10755 * nat/linux-waitpid.c: Include string.h.
10756 (status_to_str): Moved here and made extern.
10757 * nat/linux-waitpid.h (status_to_str): New declaration.
10758
2ebd5a35
HZ
107592014-02-27 Hui Zhu <hui@codesourcery.com>
10760
10761 PR 12702
10762 * infrun.c (ptid_match): Move ...
10763 * common/ptid.c (ptid_match): ... here.
10764 * inferior.h (ptid_match): Move ...
10765 * common/ptid.h (ptid_match): ... here.
10766
3cdd631f
MK
107672014-02-27 Mark Kettenis <kettenis@gnu.org>
10768
10769 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10770 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10771 gdb_target_obs.
10772
bee30a64
MK
107732014-02-27 Mark Kettenis <kettenis@gnu.org>
10774
10775 * obsd-tdep.c (obsd_auxv_parse): New function.
10776 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10777
10778 * gdbarch.sh (auxv_parse): New.
10779 * gdbarch.h: Regenerated.
10780 * gdbarch.c: Regenerated.
10781 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10782
7a5a839f
LC
107832014-02-26 Ludovic Courtès <ludo@gnu.org>
10784
10785 * guile/scm-value.c (gdbscm_history_append_x): New function.
10786 (value_functions): Add it.
10787
31aa7e4e
JB
107882014-02-27 Joel Brobecker <brobecker@adacore.com>
10789
10790 * dwarf2read.c (attr_value_as_address): New function.
10791 (dwarf2_find_base_address, read_call_site_scope): Use
10792 attr_value_as_address in place of DW_ADDR.
10793 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10794 the low and high addresses. Slight rework of the handling
10795 of the high pc being a constant form, and limit it to
10796 DWARF verson 4 or higher.
10797 (dwarf2_record_block_ranges): Likewise.
10798 (read_partial_die): Likewise.
10799 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10800
9b333ba3
TT
108012014-02-26 Tom Tromey <tromey@redhat.com>
10802
10803 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10804
5f6cac40
TT
108052014-02-26 Tom Tromey <tromey@redhat.com>
10806
10807 * elfread.c (elf_read_minimal_symbols): Return early if
10808 minimal symbols have already been read. Add "ei" parameter.
10809 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10810 * minsyms.c (prim_record_minimal_symbol_full): Update.
10811 * objfiles.h (struct objstats) <n_minsyms>: Move...
10812 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10813 * symmisc.c (print_objfile_statistics): Update.
10814
2750ef27
TT
108152014-02-26 Tom Tromey <tromey@redhat.com>
10816
10817 * elfread.c (elf_read_minimal_symbols): New function, from
10818 elf_symfile_read.
10819 (elf_symfile_read): Call it.
10820
34643a32
TT
108212014-02-26 Tom Tromey <tromey@redhat.com>
10822
10823 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10824 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10825 (lookup_minimal_symbol_solib_trampoline)
10826 (lookup_minimal_symbol_by_pc_section_1)
10827 (lookup_minimal_symbol_and_objfile): Update.
10828 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10829 Don't allocate a minimal symbol if minsyms have already been read.
10830 (build_minimal_symbol_hash_tables): Update.
10831 (install_minimal_symbols): Do nothing if minsyms already read.
10832 Use the per-BFD obstack.
10833 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10834 * objfiles.c (allocate_objfile): Call
10835 terminate_minimal_symbol_table later.
10836 (have_minimal_symbols): Update.
10837 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10838 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10839 Move from struct objfile.
10840 <minsyms_read>: New field.
10841 (struct objfile) <msymbols, minimal_symbol_count,
10842 msymbol_hash, msymbol_demangled_hash>: Move.
10843 (ALL_OBJFILE_MSYMBOLS): Update.
10844 * symfile.c (read_symbols): Set minsyms_read.
10845 (reread_symbols): Update.
10846 * symmisc.c (dump_objfile, dump_msymbols): Update.
10847
2273f0ac
TT
108482014-02-26 Tom Tromey <tromey@redhat.com>
10849
10850 * minsyms.c (msymbols_sort): Remove.
10851 * minsyms.h (msymbols_sort): Remove.
10852 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10853 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10854 * elfread.c (elf_symtab_read): Don't add section offsets.
10855 * xcoffread.c (record_minimal_symbol): Don't add section offset
10856 to minimal symbol address.
10857 * somread.c (text_offset, data_offset): Remove.
10858 (som_symtab_read): Don't add section offsets to minimal symbol
10859 addresses.
10860 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10861 Don't add section offsets to minimal symbols.
10862 * coffread.c (coff_symtab_read): Don't add section offsets
10863 to minimal symbol addresses.
10864 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10865 to minimal symbol addresses.
10866 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10867 section offset to minimal symbol addresses.
10868 * mdebugread.c (parse_partial_symbols): Don't add section
10869 offset to minimal symbol addresses.
10870 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10871 offset to minimal symbol addresses.
10872
77e371c0
TT
108732014-02-26 Tom Tromey <tromey@redhat.com>
10874
10875 * ada-lang.c (ada_main_name): Update.
10876 (ada_add_standard_exceptions): Update.
10877 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10878 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10879 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10880 * auxv.c (ld_so_xfer_auxv): Update.
10881 * avr-tdep.c (avr_scan_prologue): Update.
10882 * ax-gdb.c (gen_var_ref): Update.
10883 * blockframe.c (get_pc_function_start)
10884 (find_pc_partial_function_gnu_ifunc): Update.
10885 * breakpoint.c (create_overlay_event_breakpoint)
10886 (create_longjmp_master_breakpoint)
10887 (create_std_terminate_master_breakpoint)
10888 (create_exception_master_breakpoint): Update.
10889 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10890 * c-valprint.c (c_val_print): Update.
10891 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10892 * common/agent.c (agent_look_up_symbols): Update.
10893 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10894 * dwarf2loc.c (call_site_to_target_addr): Update.
10895 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10896 * elfread.c (elf_gnu_ifunc_record_cache)
10897 (elf_gnu_ifunc_resolve_by_got): Update.
10898 * findvar.c (default_read_var_value): Update.
10899 * frame.c (inside_main_func): Update.
10900 * frv-tdep.c (frv_frame_this_id): Update.
10901 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10902 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10903 Update.
10904 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10905 (hppa_hpux_find_dummy_bpaddr): Update.
10906 * hppa-tdep.c (hppa_symbol_address): Update.
10907 * infcmd.c (until_next_command): Update.
10908 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10909 Update.
10910 * linespec.c (minsym_found, add_minsym): Update.
10911 * linux-nat.c (get_signo): Update.
10912 * linux-thread-db.c (inferior_has_bug): Update.
10913 * m32c-tdep.c (m32c_return_value)
10914 (m32c_m16c_address_to_pointer): Update.
10915 * m32r-tdep.c (m32r_frame_this_id): Update.
10916 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10917 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10918 * maint.c (maintenance_translate_address): Update.
10919 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10920 (frob_address): New function.
10921 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10922 frob_address. Rename parameter to "pc_in".
10923 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10924 addresses.
10925 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10926 Update.
10927 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10928 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10929 * objc-lang.c (find_objc_msgsend): Update.
10930 * objfiles.c (objfile_relocate1): Update.
10931 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10932 * p-valprint.c (pascal_val_print): Update.
10933 * parse.c (write_exp_msymbol): Update.
10934 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10935 (ppc_elfv2_skip_entrypoint): Update.
10936 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10937 * printcmd.c (build_address_symbolic, msym_info)
10938 (address_info): Update.
10939 * proc-service.c (ps_pglobal_lookup): Update.
10940 * psymtab.c (find_pc_sect_psymtab_closer)
10941 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10942 Change msymbol parameter to bound_minimal_symbol.
10943 * ravenscar-thread.c (get_running_thread_id): Update.
10944 * remote.c (remote_check_symbols): Update.
10945 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10946 address.
10947 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10948 * solib-dsbt.c (lm_base): Update.
10949 * solib-frv.c (lm_base, main_got): Update.
10950 * solib-irix.c (locate_base): Update.
10951 * solib-som.c (som_solib_create_inferior_hook)
10952 (link_map_start): Update.
10953 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10954 * solib-svr4.c (elf_locate_base, enable_break): Update.
10955 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10956 (flush_ea_cache): Update.
10957 * stabsread.c (define_symbol, scan_file_globals): Update.
10958 * stack.c (find_frame_funname): Update.
10959 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10960 (debug_qf_find_pc_sect_symtab): Update.
10961 * symfile.c (simple_read_overlay_table)
10962 (simple_overlay_update): Update.
10963 * symfile.h (struct quick_symbol_functions)
10964 <find_pc_sect_symtab>: Change type of msymbol to
10965 bound_minimal_symbol.
10966 * symmisc.c (dump_msymbols): Update.
10967 * symtab.c (find_pc_sect_symtab_via_partial)
10968 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10969 (search_symbols, print_msymbol_info): Update.
10970 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10971 (MSYMBOL_VALUE_ADDRESS): Redefine.
10972 (BMSYMBOL_VALUE_ADDRESS): New macro.
10973 * tracepoint.c (scope_info): Update.
10974 * tui/tui-disasm.c (tui_find_disassembly_address)
10975 (tui_get_begin_asm_address): Update.
10976 * valops.c (find_function_in_inferior): Update.
10977 * value.c (value_static_field, value_fn_field): Update.
10978
3b7344d5
TT
109792014-02-26 Tom Tromey <tromey@redhat.com>
10980
10981 * ada-lang.c (ada_update_initial_language): Update.
10982 (ada_main_name, ada_has_this_exception_support): Update.
10983 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10984 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10985 * arm-tdep.c (arm_skip_stub): Update.
10986 * auxv.c (ld_so_xfer_auxv): Update.
10987 * avr-tdep.c (avr_scan_prologue): Update.
10988 * ax-gdb.c (gen_var_ref): Update.
10989 * breakpoint.c (struct breakpoint_objfile_data)
10990 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10991 type to bound_minimal_symbol.
10992 (create_overlay_event_breakpoint)
10993 (create_longjmp_master_breakpoint)
10994 (create_std_terminate_master_breakpoint)
10995 (create_exception_master_breakpoint): Update.
10996 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10997 * c-exp.y (classify_name): Update.
10998 * coffread.c (coff_symfile_read): Update.
10999 * common/agent.c (agent_look_up_symbols): Update.
11000 * d-lang.c (d_main_name): Update.
11001 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11002 * dec-thread.c (enable_dec_thread): Update.
11003 * dwarf2loc.c (call_site_to_target_addr): Update.
11004 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11005 * eval.c (evaluate_subexp_standard): Update.
11006 * findvar.c (struct minsym_lookup_data) <result>: Change type
11007 to bound_minimal_symbol.
11008 <objfile>: Remove.
11009 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11010 * frame.c (inside_main_func): Update.
11011 * frv-tdep.c (frv_frame_this_id): Update.
11012 * gcore.c (call_target_sbrk): Update.
11013 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11014 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11015 Update.
11016 * go-lang.c (go_main_name): Update.
11017 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11018 (hppa_hpux_find_import_stub_for_addr): Update.
11019 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11020 Update. Change return type.
11021 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11022 type.
11023 * jit.c (jit_breakpoint_re_set_internal): Update.
11024 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11025 Update.
11026 * linux-nat.c (get_signo): Update.
11027 * linux-thread-db.c (inferior_has_bug): Update
11028 * m32c-tdep.c (m32c_return_value)
11029 (m32c_m16c_address_to_pointer): Update.
11030 * m32r-tdep.c (m32r_frame_this_id): Update.
11031 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11032 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11033 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11034 lookup_minimal_symbol. Change return type.
11035 (lookup_minimal_symbol): Remove.
11036 (lookup_bound_minimal_symbol): Update.
11037 (lookup_minimal_symbol_text): Change return type.
11038 (lookup_minimal_symbol_solib_trampoline): Change return type.
11039 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11040 (lookup_minimal_symbol_solib_trampoline): Change return type.
11041 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11042 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11043 (value_nsstring, find_imps): Update.
11044 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11045 * p-lang.c (pascal_main_name): Update.
11046 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11047 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11048 * proc-service.c (ps_pglobal_lookup): Update.
11049 * ravenscar-thread.c (get_running_thread_msymbol): Change
11050 return type.
11051 (has_ravenscar_runtime, get_running_thread_id): Update.
11052 * remote.c (remote_check_symbols): Update.
11053 * sol-thread.c (ps_pglobal_lookup): Update.
11054 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11055 * solib-dsbt.c (lm_base): Update.
11056 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11057 Update.
11058 * solib-irix.c (locate_base): Update.
11059 * solib-som.c (som_solib_create_inferior_hook)
11060 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11061 Update.
11062 * solib-spu.c (spu_enable_break): Update.
11063 * solib-svr4.c (elf_locate_base, enable_break): Update.
11064 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11065 (flush_ea_cache): Update.
11066 * stabsread.c (define_symbol): Update.
11067 * symfile.c (simple_read_overlay_table): Update.
11068 * symtab.c (find_pc_sect_line): Update.
11069 * tracepoint.c (scope_info): Update.
11070 * tui-disasm.c (tui_get_begin_asm_address): Update.
11071 * value.c (value_static_field): Update.
11072
40c1a007
TT
110732014-02-26 Tom Tromey <tromey@redhat.com>
11074
11075 * minsyms.c (prim_record_minimal_symbol_full): Use
11076 SET_MSYMBOL_VALUE_ADDRESS.
11077 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11078 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11079 SET_MSYMBOL_VALUE_ADDRESS.
11080 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11081 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11082
efd66ac6
TT
110832014-02-26 Tom Tromey <tromey@redhat.com>
11084
11085 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11086 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11087 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11088 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11089 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11090 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11091 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11092 * ada-lang.c (ada_main_name): Update.
11093 (ada_lookup_simple_minsym): Update.
11094 (ada_make_symbol_completion_list): Update.
11095 (ada_add_standard_exceptions): Update.
11096 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11097 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11098 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11099 * arm-tdep.c (skip_prologue_function): Update.
11100 (arm_skip_stack_protector, arm_skip_stub): Update.
11101 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11102 (arm_wince_skip_main_prologue): Update.
11103 * auxv.c (ld_so_xfer_auxv): Update.
11104 * avr-tdep.c (avr_scan_prologue): Update.
11105 * ax-gdb.c (gen_var_ref): Update.
11106 * block.c (call_site_for_pc): Update.
11107 * blockframe.c (get_pc_function_start): Update.
11108 (find_pc_partial_function_gnu_ifunc): Update.
11109 * breakpoint.c (create_overlay_event_breakpoint): Update.
11110 (create_longjmp_master_breakpoint): Update.
11111 (create_std_terminate_master_breakpoint): Update.
11112 (create_exception_master_breakpoint): Update.
11113 (resolve_sal_pc): Update.
11114 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11115 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11116 Update.
11117 * c-valprint.c (c_val_print): Update.
11118 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11119 * coffread.c (coff_symfile_read): Update.
11120 * common/agent.c (agent_look_up_symbols): Update.
11121 * dbxread.c (find_stab_function_addr): Update.
11122 (end_psymtab): Update.
11123 * dwarf2loc.c (call_site_to_target_addr): Update.
11124 (func_verify_no_selftailcall): Update.
11125 (tailcall_dump): Update.
11126 (call_site_find_chain_1): Update.
11127 (dwarf_expr_reg_to_entry_parameter): Update.
11128 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11129 (elf_gnu_ifunc_resolve_by_got): Update.
11130 * f-valprint.c (info_common_command): Update.
11131 * findvar.c (read_var_value): Update.
11132 * frame.c (get_prev_frame_1): Update.
11133 (inside_main_func): Update.
11134 * frv-tdep.c (frv_skip_main_prologue): Update.
11135 (frv_frame_this_id): Update.
11136 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11137 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11138 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11139 (gnuv3_skip_trampoline): Update.
11140 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11141 (hppa64_hpux_in_solib_call_trampoline): Update.
11142 (hppa_hpux_skip_trampoline_code): Update.
11143 (hppa64_hpux_search_dummy_call_sequence): Update.
11144 (hppa_hpux_find_import_stub_for_addr): Update.
11145 (hppa_hpux_find_dummy_bpaddr): Update.
11146 * hppa-tdep.c (hppa_symbol_address)
11147 (hppa_lookup_stub_minimal_symbol): Update.
11148 * i386-tdep.c (i386_skip_main_prologue): Update.
11149 (i386_pe_skip_trampoline_code): Update.
11150 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11151 * infcall.c (get_function_name): Update.
11152 * infcmd.c (until_next_command): Update.
11153 * jit.c (jit_breakpoint_re_set_internal): Update.
11154 (jit_inferior_init): Update.
11155 * linespec.c (minsym_found): Update.
11156 (add_minsym): Update.
11157 * linux-fork.c (info_checkpoints_command): Update.
11158 * linux-nat.c (get_signo): Update.
11159 * linux-thread-db.c (inferior_has_bug): Update.
11160 * m32c-tdep.c (m32c_return_value): Update.
11161 (m32c_m16c_address_to_pointer): Update.
11162 (m32c_m16c_pointer_to_address): Update.
11163 * m32r-tdep.c (m32r_frame_this_id): Update.
11164 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11165 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11166 * maint.c (maintenance_translate_address): Update.
11167 * minsyms.c (add_minsym_to_hash_table): Update.
11168 (add_minsym_to_demangled_hash_table): Update.
11169 (msymbol_objfile): Update.
11170 (lookup_minimal_symbol): Update.
11171 (iterate_over_minimal_symbols): Update.
11172 (lookup_minimal_symbol_text): Update.
11173 (lookup_minimal_symbol_by_pc_name): Update.
11174 (lookup_minimal_symbol_solib_trampoline): Update.
11175 (lookup_minimal_symbol_by_pc_section_1): Update.
11176 (lookup_minimal_symbol_and_objfile): Update.
11177 (prim_record_minimal_symbol_full): Update.
11178 (compare_minimal_symbols): Update.
11179 (compact_minimal_symbols): Update.
11180 (build_minimal_symbol_hash_tables): Update.
11181 (install_minimal_symbols): Update.
11182 (terminate_minimal_symbol_table): Update.
11183 (find_solib_trampoline_target): Update.
11184 (minimal_symbol_upper_bound): Update.
11185 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11186 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11187 (mips_skip_pic_trampoline_code): Update.
11188 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11189 * objc-lang.c (selectors_info): Update.
11190 (classes_info): Update.
11191 (find_methods): Update.
11192 (find_imps): Update.
11193 (find_objc_msgsend): Update.
11194 * objfiles.c (objfile_relocate1): Update.
11195 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11196 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11197 * p-valprint.c (pascal_val_print): Update.
11198 * parse.c (write_exp_msymbol): Update.
11199 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11200 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11201 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11202 * printcmd.c (build_address_symbolic): Update.
11203 (sym_info): Update.
11204 (address_info): Update.
11205 * proc-service.c (ps_pglobal_lookup): Update.
11206 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11207 (find_pc_sect_psymtab): Update.
11208 * python/py-framefilter.c (py_print_frame): Update.
11209 * ravenscar-thread.c (get_running_thread_id): Update.
11210 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11211 Update.
11212 * remote.c (remote_check_symbols): Update.
11213 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11214 (rs6000_skip_trampoline_code): Update.
11215 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11216 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11217 * solib-dsbt.c (lm_base): Update.
11218 * solib-frv.c (lm_base): Update.
11219 (main_got): Update.
11220 * solib-irix.c (locate_base): Update.
11221 * solib-som.c (som_solib_create_inferior_hook): Update.
11222 (som_solib_desire_dynamic_linker_symbols): Update.
11223 (link_map_start): Update.
11224 * solib-spu.c (spu_enable_break): Update.
11225 (ocl_enable_break): Update.
11226 * solib-svr4.c (elf_locate_base): Update.
11227 (enable_break): Update.
11228 * spu-tdep.c (spu_get_overlay_table): Update.
11229 (spu_catch_start): Update.
11230 (flush_ea_cache): Update.
11231 * stabsread.c (define_symbol): Update.
11232 (scan_file_globals): Update.
11233 * stack.c (find_frame_funname): Update.
11234 (frame_info): Update.
11235 * symfile.c (simple_read_overlay_table): Update.
11236 (simple_overlay_update): Update.
11237 * symmisc.c (dump_msymbols): Update.
11238 * symtab.c (fixup_section): Update.
11239 (find_pc_sect_line): Update.
11240 (skip_prologue_sal): Update.
11241 (search_symbols): Update.
11242 (print_msymbol_info): Update.
11243 (rbreak_command): Update.
11244 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11245 (completion_list_objc_symbol): Update.
11246 (default_make_symbol_completion_list_break_on): Update.
11247 * tracepoint.c (scope_info): Update.
11248 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11249 (tui_get_begin_asm_address): Update.
11250 * valops.c (find_function_in_inferior): Update.
11251 * value.c (value_static_field): Update.
11252 (value_fn_field): Update.
11253
50e65b17
TT
112542014-02-26 Tom Tromey <tromey@redhat.com>
11255
11256 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11257 bound minimal symbols. Move code that knows about minsym
11258 table layout...
11259 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11260 function.
11261 * minsyms.h (minimal_symbol_upper_bound): Declare.
11262 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11263 minimal_symbol_upper_bound.
11264
1b588015
JB
112652014-02-27 Joel Brobecker <brobecker@adacore.com>
11266
11267 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11268 Use the type's name if its basic type does not have a tag.
11269
dbb9c2b1
JB
112702014-02-27 Joel Brobecker <brobecker@adacore.com>
11271
11272 * dwarf2read.c (read_subrange_type): Add comment.
11273
55426c9d
JB
112742014-02-27 Joel Brobecker <brobecker@adacore.com>
11275
11276 * dwarf2read.c (update_enumeration_type_from_children): New
11277 function, mostly extracted from process_structure_scope.
11278 (read_enumeration_type): Call update_enumeration_type_from_children.
11279 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11280 and flag_flag_enum fields.
11281
f2fce0ca
PA
112822014-02-26 Pedro Alves <palves@redhat.com>
11283
11284 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11285 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11286 to_xfer_partial method.
11287
7a44e40e
PA
112882014-02-26 Pedro Alves <palves@redhat.com>
11289
11290 * target.c (complete_target_initialization): Don't install
11291 default_xfer_partial as to_xfer_partial hook.
11292 (nomemory): Delete.
11293 (update_current_target): Don't INHERIT nor de_fault
11294 deprecated_xfer_memory. Delete de_fault macro.
11295 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11296 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11297 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11298 field.
11299
bd265cd0
PA
113002014-02-26 Pedro Alves <palves@redhat.com>
11301
11302 * go32-nat.c (my_write_child): New function.
11303 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11304 (go32_xfer_partial): New function.
11305 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11306 Instead install a to_xfer_partial hook.
11307
9d46c4e5
PA
113082014-02-26 Pedro Alves <palves@redhat.com>
11309
11310 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11311 to_xfer_partial helper. Rewrite.
11312 (procfs_xfer_partial): New function.
11313 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11314 Install a to_xfer_partial hook.
11315
a1583b1f
PA
113162014-02-26 Pedro Alves <palves@redhat.com>
11317
11318 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11319 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11320 (m32r_xfer_partial): New function.
11321 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11322 Install a to_xfer_partial hook.
11323
6df1b29f
PA
113242014-02-26 Pedro Alves <palves@redhat.com>
11325
11326 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11327 helper.
11328 (mips_xfer_partial): New function.
11329 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11330 hook. Install a to_xfer_partial hook.
11331
dc53a7ad
JB
113322014-02-26 Joel Brobecker <brobecker@adacore.com>
11333
11334 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11335 * gdbtypes.c (create_array_type_with_stride): New function,
11336 renaming create_array_type, but with an added parameter
11337 called "bit_stride".
11338 (create_array_type): Re-implement using
11339 create_array_type_with_stride.
11340 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11341 and DW_AT_bit_stride attributes.
11342
12ab52e9
PA
113432014-02-26 Pedro Alves <palves@redhat.com>
11344
11345 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11346 task-specific breakpoints.
11347
d16461ae
PA
113482014-02-25 Pedro Alves <palves@redhat.com>
11349
11350 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11351 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11352
a8b16220
SS
113532014-02-25 Stan Shebs <stan@codesourcery.com>
11354
11355 * defs.h: Annotate comments for Doxygen.
11356
b9e795ee
TT
113572014-02-25 Tom Tromey <tromey@redhat.com>
11358
11359 * target.h (target_ignore): Don't declare.
11360 * target.c (target_ignore): Remove.
11361
849c862e
JK
113622014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11363
11364 PR gdb/16626
11365 * auto-load.c (auto_load_objfile_script_1): Change filename to
11366 debugfile.
11367
475109d8
JB
113682014-02-25 Joel Brobecker <brobecker@adacore.com>
11369
11370 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11371 documentation. Adjust prototype to match the target_ops
11372 to_xfer_partial method. Adjust implementation accordingly.
11373
e186c3bd
HZ
113742014-02-25 Hui Zhu <hui@codesourcery.com>
11375
11376 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11377 to_traceframe_info.
11378
6d451942
KB
113792014-02-25 Kevin Buettner <kevinb@redhat.com>
11380
041ab8b4 11381 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11382 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11383 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11384 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11385 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11386 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11387 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11388 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11389 New constants.
11390 (rl78_register_type): Use a data pointer type for SP and
11391 new pseudo registers mentioned above. Use a 16 bit integer
11392 type for all other register pairs.
11393 (rl78_register_name, rl78_g10_register_name): Update for
11394 new pseudo registers.
11395 (rl78_pseudo_register_read): Likewise.
11396 (rl78_pseudo_register_write): Likewise.
11397 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11398 to the newly added pseudo registers.
11399
eddf0bae
DE
114002014-02-24 Doug Evans <dje@google.com>
11401
11402 * value.c (record_latest_value): Fix comment.
11403 * printcmd.c (print_command_1): Remove code to handle -1 return from
11404 record_latest_value.
11405
e96027e0
PA
114062014-02-24 Pedro Alves <palves@redhat.com>
11407
11408 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11409 deprecated_xfer_memory hook.
11410 (procfs_xfer_partial): Call procfs_xfer_memory instead
11411 of the deprecated_xfer_memory target hook.
11412 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11413 helper.
11414
0837c976
YZ
114152014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11416
11417 * windows-nat.c (windows_xfer_shared_libraries): Return
11418 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11419 requested object is TARGET_OBJECT_LIBRARIES.
11420
bc113b4e
YQ
114212014-02-24 Yao Qi <yao@codesourcery.com>
11422
11423 * target.h (enum target_xfer_status)
11424 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11425 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11426 explicitly. New.
11427 * corefile.c (memory_error_message): User updated.
11428 * exec.c (section_table_read_available_memory): Likewise.
11429 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11430 * target.c (target_xfer_status_to_string): Likewise.
11431 (raw_memory_xfer_partial): Likewise.
11432 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11433 * valops.c (read_value_memory): Likewise.
11434 * exec.h: Update comments.
11435
01cb8804
YQ
114362014-02-24 Yao Qi <yao@codesourcery.com>
11437
11438 * target.c (target_xfer_status_to_string): Rename argument err
11439 to status.
11440 * target.h (target_xfer_status_to_string): Update declaration.
11441 Replace target_xfer_error_to_string with
11442 target_xfer_status_to_string in comment.
11443
93063aa6
YQ
114442014-02-24 Yao Qi <yao@codesourcery.com>
11445
11446 * mips-linux-nat.c (super_close): Update its type.
11447 (mips_linux_close): Pass 'self' to super_close.
11448
5c328c05
YQ
114492014-02-24 Yao Qi <yao@codesourcery.com>
11450
11451 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11452 * corefile.c (read_memory): Adjusted.
11453 * target.c (target_write_with_progress): Adjusted.
11454
f73023dd
YQ
114552014-02-23 Yao Qi <yao@codesourcery.com>
11456
11457 Revert two patches:
11458
11459 2013-10-25 Yao Qi <yao@codesourcery.com>
11460
11461 * remote.c (remote_traceframe_info): Return early if
11462 traceframe is not selected.
11463
11464 2013-07-19 Yao Qi <yao@codesourcery.com>
11465
11466 * target.c (update_current_target): Change the default action
11467 of 'to_traceframe_info' from tcomplain to return_zero.
11468 * target.h (struct target_ops) <to_traceframe_info>: Add more
11469 comments.
11470
5a2eb0ef
YQ
114712014-02-23 Yao Qi <yao@codesourcery.com>
11472
11473 * valops.c (read_value_memory): Rewrite it. Call
11474 target_xfer_partial in a loop.
11475 * exec.h (section_table_available_memory): Remove declaration.
11476 Move comments to ...
11477 * exec.c (section_table_available_memory): ... here. Make it
11478 static.
11479
1ee79381
YQ
114802014-02-23 Yao Qi <yao@codesourcery.com>
11481
11482 * exec.c (section_table_read_available_memory): New function.
11483 * exec.h (section_table_read_available_memory): Declare.
11484 * ctf.c (ctf_xfer_partial): Call
11485 section_table_read_available_memory.
11486 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11487
1ca49d37
YQ
114882014-02-23 Yao Qi <yao@codesourcery.com>
11489
11490 * ctf.c (ctf_xfer_partial): Move code to ...
11491 * exec.c (exec_read_partial_read_only): ... it. New function.
11492 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11493 * tracefile.c: Include "exec.h".
11494 * exec.h (exec_read_partial_read_only): Declare.
11495
a283690e
YQ
114962014-02-23 Yao Qi <yao@codesourcery.com>
11497
11498 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11499 (tfile_has_memory): Remove.
11500 (init_tfile_ops): Don't set fields to_has_all_memory and
11501 to_has_memory of tfile_ops.
11502 * tracefile.c (tracefile_has_all_memory): New function.
11503 (tracefile_has_memory): New function.
11504 (init_tracefile_ops): Initialize fields to_has_all_memory and
11505 to_has_memory of 'ops'.
11506
12e03cd0
YQ
115072014-02-23 Yao Qi <yao@codesourcery.com>
11508
11509 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11510 (ctf_thread_alive, ctf_get_trace_status): Remove.
11511 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11512 init_tracefile_ops.
11513 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11514 (tfile_has_stack, tfile_has_registers): Remove.
11515 (tfile_thread_alive): Remove.
11516 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11517 init_tracefile_ops.
11518 * tracefile.c (tracefile_has_stack): New function.
11519 (tracefile_has_registers): New function.
11520 (tracefile_thread_alive): New function.
11521 (tracefile_get_trace_status): New function.
11522 (init_tracefile_ops): New function.
11523 * tracefile.h (init_tracefile_ops): Declare.
11524
11395323
YQ
115252014-02-23 Yao Qi <yao@codesourcery.com>
11526
11527 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11528 (O_LARGEFILE): Likewise.
11529 (tfile_ops): Likewise.
11530 (TRACE_HEADER_SIZE): Likewise.
11531 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11532 (cur_data_size): Likewise.
11533 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11534 (tfile_close, tfile_files_info): Likewise.
11535 (tfile_get_trace_status): Likewise.
11536 (tfile_get_tracepoint_status): Likewise.
11537 (tfile_get_traceframe_address): Likewise.
11538 (tfile_trace_find, match_blocktype): Likewise.
11539 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11540 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11541 (tfile_get_trace_state_variable_value): Likewise.
11542 (tfile_has_all_memory, tfile_has_memory): Likewise.
11543 (tfile_has_stack, tfile_has_registers): Likewise.
11544 (tfile_thread_alive, build_traceframe_info): Likewise.
11545 (tfile_traceframe_info, init_tfile_ops): Likewise.
11546 (_initialize_tracepoint): Don't call init_tfile_ops
11547 and add_target_with_completer.
11548 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11549 exec.h, completer.h and filenames.h.
11550 (_initialize_tracefile_tfile): New function.
11551
7951c4eb
YQ
115522014-02-23 Yao Qi <yao@codesourcery.com>
11553
11554 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11555 tracefile-tfile.o.
11556 (HFILES_NO_SRCDIR): Add tracefile.h.
11557 * ctf.c: Include "tracefile.h".
11558 * tracefile.h: New file.
11559 * tracefile.c: New file
11560 * tracefile-tfile.c: New file.
11561 * tracepoint.c: Include "tracefile.h".
11562 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11563 (stop_reason_names): Add const.
11564 (trace_file_writer_xfree): Move it to tracefile.c.
11565 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11566 (trace_save_ctf): Likewise.
11567 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11568 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11569 (tfile_write_header, tfile_write_regblock_type): Likewise.
11570 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11571 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11572 (tfile_write_raw_data, tfile_end): Likewise.
11573 (tfile_trace_file_writer_new): Likewise.
11574 (free_uploaded_tp): Make it extern.
11575 (free_uploaded_tsv): Make it extern.
11576 (_initialize_tracepoint): Move code to register command 'tsave'
11577 to tracefile.c.
11578 * tracepoint.h (stop_reason_names): Declare.
11579 (struct trace_frame_write_ops): Move it to tracefile.h.
11580 (struct trace_file_write_ops): Likewise.
11581 (struct trace_file_writer): Likewise.
11582 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11583
184cd072
JK
115842014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11585
11586 PR gdb/16594
11587 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11588 process name.
11589 (get_cores_used_by_process): New parameter num_cores, use it.
11590 (linux_xfer_osdata_processes): Pass num_cores to it.
11591 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11592 process name.
11593
c63528fc
AK
115942014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11595
11596 * target.c (memory_xfer_partial): Fix length arg in call to
11597 breakpoint_xfer_memory.
11598
d7b30f67
SDJ
115992014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11600
11601 PR tdep/16397
11602 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11603 number comes after the + or - signs. Adjust length of register
11604 name to be extracted.
11605
8838afaf
TT
116062014-02-20 Tom Tromey <tromey@redhat.com>
11607
11608 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11609 (ada_varobj_ops): Mark "extern".
11610
05227d14
TT
116112014-02-20 Tom Tromey <tromey@redhat.com>
11612
11613 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11614
1254eefc
DE
116152014-02-20 Doug Evans <xdje42@gmail.com>
11616
11617 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11618 All callers updated.
11619 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11620 All callers updated.
11621 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11622 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11623
adde2bff
DE
116242014-02-20 lin zuojian <manjian2006@gmail.com>
11625 Joel Brobecker <brobecker@adacore.com>
11626 Doug Evans <xdje42@gmail.com>
11627
11628 PR symtab/16581
11629 * dwarf2read.c (struct die_info): New member in_process.
11630 (reset_die_in_process): New function.
11631 (process_die): Set it at the start, reset when returning.
11632 (inherit_abstract_dies): Only call process_die if origin_child_die
11633 not already being processed.
11634
3be75f87
JB
116352014-02-20 Joel Brobecker <brobecker@adacore.com>
11636
11637 * windows-nat.c (handle_unload_dll): Add function documentation.
11638 (do_initial_windows_stuff): Add comment explaining why we wait
11639 until after inferior initialization has finished before
11640 processing all DLLs.
11641
47f7ffdb
JB
116422014-02-20 Joel Brobecker <brobecker@adacore.com>
11643
11644 * windows-nat.c (get_module_name): Delete.
11645 (windows_get_exec_module_filename): New function, mostly
11646 inspired from get_module_name.
11647 (windows_pid_to_exec_file): Replace call to get_module_name
11648 by call to windows_get_exec_module_filename.
11649
1cd9feab
JB
116502014-02-20 Joel Brobecker <brobecker@adacore.com>
11651
11652 * windows-nat.c (handle_load_dll): Rewrite this function's
11653 introductory comment. Remove code using get_module_name
11654 to get the DLL's name.
11655
ea39ad35
JB
116562014-02-20 Joel Brobecker <brobecker@adacore.com>
11657
11658 * windows-nat.c (get_windows_debug_event): Ignore
11659 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11660 if windows_initialization_done == 0.
11661 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11662 Adjust implementation to always load all DLLs.
11663 (do_initial_windows_stuff): Replace call to
11664 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11665
95060284
JB
116662014-02-20 Joel Brobecker <brobecker@adacore.com>
11667
11668 * windows-nat.c (_initialize_windows_nat): Deprecate the
11669 "dll-symbols" command. Turn the "add-shared-symbol-files"
11670 and "assf" aliases into commands, and deprecate them as well.
11671 * NEWS: Add entry explaining that "dll-symbols" and its two
11672 aliases are now deprecated.
11673
8d4fdb12
JB
116742014-02-20 Joel Brobecker <brobecker@adacore.com>
11675
11676 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11677 new-line in debug string. Remove trailing spaces.
11678
1b281443
SS
116792014-02-19 Stan Shebs <stan@codesourcery.com>
11680
11681 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11682
f7bd0f78
SC
116832014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11684
11685 * NEWS: Add entry for the new feature
11686 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11687 and class values.
11688
399ebc3d
SS
116892014-02-19 Stan Shebs <stan@codesourcery.com>
11690
11691 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11692
c658158d
PA
116932014-02-19 Pedro Alves <palves@redhat.com>
11694
11695 * common/ptid.h (struct ptid): Mention that process_stratum
11696 targets should prefer ptid.lwp.
11697
ba348170
PA
116982014-02-19 Pedro Alves <palves@redhat.com>
11699
11700 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11701 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11702 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11703 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11704 store remote thread ids rather than ptid.tid.
11705 (_initialize_remote): Adjust.
11706
ac01945b
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.c (target_get_unwinder): Rewrite.
11710 (target_get_tailcall_unwinder): Rewrite.
11711 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11712 (record_btrace_to_get_tailcall_unwinder): New function.
11713 (init_record_btrace_ops): Update.
11714 * target.h (struct target_ops) <to_get_unwinder,
11715 to_get_tailcall_unwinder>: Now function pointers. Use
11716 TARGET_DEFAULT_RETURN.
11717
8476dc92
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11721 argument.
11722 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11723
c0eca49f
TT
117242014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11727 directly.
11728 * target-delegates.c: Rebuild.
11729 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11730 TARGET_DEFAULT_FUNC.
11731 * target.c (default_target_decr_pc_after_break): Rename from
11732 forward_target_decr_pc_after_break. Simplify.
11733 (target_decr_pc_after_break): Rely on delegation.
11734
596b6b39
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target.c (update_current_target): Do not INHERIT to_doc or
11738 to_magic. Do not de_fault to_open or to_close.
11739
b427c1bc
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * gcore.h (objfile_find_memory_regions): Declare.
11743 * gcore.c (objfile_find_memory_regions): No longer static. Add
11744 "self" argument.
11745 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11746 * exec.c: Include gcore.h.
11747 (exec_set_find_memory_regions): Remove.
11748 (exec_find_memory_regions): Remove.
11749 (exec_do_find_memory_regions): Remove.
11750 (init_exec_ops): Update.
11751 * defs.h (exec_set_find_memory_regions): Remove.
11752
9b144037
TT
117532014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target-delegates.c: Rebuild.
11756 * target.h (struct target_ops) <to_extra_thread_info,
11757 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11758 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11759 not 0, in TARGET_DEFAULT_RETURN.
11760
555bbdeb
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target.c (complete_target_initialization): Remove casts. Use
11764 return_zero_has_execution.
11765 (return_zero): Add "ignore" argument.
11766 (return_zero_has_execution): New function.
11767 (init_dummy_target): Remove casts. Use
11768 return_zero_has_execution.
11769
be4ddd36
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target.c (update_current_target): Update comments. Do not
11773 INHERIT to_stratum.
11774
2117c711
TT
117752014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11778 needed.
11779 * corelow.c (core_read_description): Delegate when needed.
11780 * remote.c (remote_read_description): Delegate when needed.
11781 * target-delegates.c: Rebuild.
11782 * target.c (target_read_description): Rewrite.
11783 * target.h (struct target_ops) <to_read_description>: Update
11784 comment. Use TARGET_DEFAULT_RETURN.
11785
e88ef65c
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_can_run.
11791 (find_default_run_target): Check against delegate_can_run.
11792 * target.h (struct target_ops) <to_can_run>: Use
11793 TARGET_DEFAULT_RETURN.
11794
86a0854a
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (target_disconnect): Unconditionally delegate.
11799 * target.h (struct target_ops) <to_disconnect>: Use
11800 TARGET_DEFAULT_NORETURN.
11801
ee97f592
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * record.c (record_stop): Unconditionally delegate.
11805 * target-delegates.c: Rebuild.
11806 * target.c (target_stop_recording): Unconditionally delegate.
11807 * target.h (struct target_ops) <to_stop_recording>: Use
11808 TARGET_DEFAULT_IGNORE.
11809
6dc7fcf4
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_enable_btrace): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_enable_btrace>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
eb5b20d4
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_read_btrace): Unconditionally delegate.
11821 * target.h (struct target_ops) <to_read_btrace>: Use
11822 TARGET_DEFAULT_NORETURN.
11823
9ace480d
TT
118242014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target-delegates.c: Rebuild.
11827 * target.c (target_teardown_btrace): Unconditionally delegate.
11828 * target.h (struct target_ops) <to_teardown_btrace>: Use
11829 TARGET_DEFAULT_NORETURN.
11830
8dc292d3
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target-delegates.c: Rebuild.
11834 * target.c (target_disable_btrace): Unconditionally delegate.
11835 * target.h (struct target_ops) <to_disable_btrace>: Use
11836 TARGET_DEFAULT_NORETURN.
11837
58a5184e
TT
118382014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target-delegates.c: Rebuild.
11841 * target.c (default_search_memory): New function.
11842 (simple_search_memory): Update comment.
11843 (target_search_memory): Unconditionally delegate.
11844 * target.h (struct target_ops) <to_search_memory>: Use
11845 TARGET_DEFAULT_FUNC.
11846
8de71aab
TT
118472014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * auxv.c (default_auxv_parse): No longer static.
11850 (target_auxv_parse): Unconditionally delegate.
11851 * auxv.h (default_auxv_parse): Declare.
11852 * target-delegates.c: Rebuild.
11853 * target.c: Include auxv.h.
11854 * target.h (struct target_ops) <to_auxv_parse>: Use
11855 TARGET_DEFAULT_FUNC.
11856
6b2c5a57
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (target_memory_map): Unconditionally delegate.
11861 * target.h (struct target_ops) <to_memory_map>: Use
11862 TARGET_DEFAULT_RETURN.
11863
cbffc065
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * target-delegates.c: Rebuild.
11867 * target.c (target_thread_alive): Unconditionally delegate.
11868 * target.h (struct target_ops) <to_thread_alive>: Use
11869 TARGET_DEFAULT_RETURN.
11870
f09e2107
TT
118712014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (target_save_record): Unconditionally delegate.
11875 * target.h (struct target_ops) <to_save_record>: Use
11876 TARGET_DEFAULT_NORETURN.
11877
07366925
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target-delegates.c: Rebuild.
11881 * target.c (target_delete_record): Unconditionally delegate.
11882 * target.h (struct target_ops) <to_delete_record>: Use
11883 TARGET_DEFAULT_NORETURN.
11884
dd2e9d25
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target-delegates.c: Rebuild.
11888 * target.c (target_record_is_replaying): Unconditionally
11889 delegate.
11890 * target.h (struct target_ops) <to_record_is_replaying>: Use
11891 TARGET_DEFAULT_RETURN.
11892
671e76cc
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_goto_record_begin): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_goto_record_begin>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
e9179bb3
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_goto_record_end): Unconditionally delegate.
11904 * target.h (struct target_ops) <to_goto_record_end>: Use
11905 TARGET_DEFAULT_NORETURN.
11906
05969c84
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (target_goto_record): Unconditionally delegate.
11911 * target.h (struct target_ops) <to_goto_record>: Use
11912 TARGET_DEFAULT_NORETURN.
11913
3679abfa
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_insn_history): Unconditionally delegate.
11918 * target.h (struct target_ops) <to_insn_history>: Use
11919 TARGET_DEFAULT_NORETURN.
11920
8444ab58
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target-delegates.c: Rebuild.
11924 * target.c (target_insn_history_from): Unconditionally delegate.
11925 * target.h (struct target_ops) <to_insn_history_from>: Use
11926 TARGET_DEFAULT_NORETURN.
11927
c29302cc
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (target_insn_history_range): Unconditionally delegate.
11932 * target.h (struct target_ops) <to_insn_history_range>: Use
11933 TARGET_DEFAULT_NORETURN.
11934
170049d4
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (target_call_history): Unconditionally delegate.
11939 * target.h (struct target_ops) <to_call_history>: Use
11940 TARGET_DEFAULT_NORETURN.
11941
16fc27d6
TT
119422014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target-delegates.c: Rebuild.
11945 * target.c (target_call_history_from): Unconditionally delegate.
11946 * target.h (struct target_ops) <to_call_history_from>: Use
11947 TARGET_DEFAULT_NORETURN.
11948
115d9817
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target-delegates.c: Rebuild.
11952 * target.c (target_call_history_range): Unconditionally delegate.
11953 * target.h (struct target_ops) <to_call_history_range>: Use
11954 TARGET_DEFAULT_NORETURN.
11955
eb276a6b
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (target_verify_memory): Unconditionally delegate.
11960 * target.h (struct target_ops) <to_verify_memory>: Use
11961 TARGET_DEFAULT_NORETURN.
11962
9e538d0d
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * target-delegates.c: Rebuild.
11966 * target.c (target_core_of_thread): Unconditionally delegate.
11967 * target.h (struct target_ops) <to_core_of_thread>: Use
11968 TARGET_DEFAULT_RETURN.
11969
f6fb2925
TT
119702014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (target_flash_done): Unconditionally delegate.
11974 * target.h (struct target_ops) <to_flash_done>: Use
11975 TARGET_DEFAULT_NORETURN.
11976
e8a6c6ac
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target-delegates.c: Rebuild.
11980 * target.c (target_flash_erase): Unconditionally delegate.
11981 * target.h (struct target_ops) <to_flash_erase>: Use
11982 TARGET_DEFAULT_NORETURN.
11983
7e35c012
TT
119842014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (target_get_section_table): Unconditionally delegate.
11988 * target.h (struct target_ops) <to_get_section_table>: Use
11989 TARGET_DEFAULT_RETURN.
11990
770234d3
TT
119912014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target-delegates.c: Rebuild.
11994 * target.c (target_pid_to_str): Unconditionally delegate.
11995 (init_dummy_target): Don't initialize to_pid_to_str.
11996 (default_pid_to_str): Rename from dummy_pid_to_str.
11997 * target.h (struct target_ops) <to_pid_to_str>: Use
11998 TARGET_DEFAULT_FUNC.
11999
09b0dc2b
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_find_new_threads): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_find_new_threads>: Use
12005 TARGET_DEFAULT_RETURN.
12006
7d4f8efa
TT
120072014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (target_program_signals): Unconditionally delegate.
12011 * target.h (struct target_ops) <to_program_signals>: Use
12012 TARGET_DEFAULT_IGNORE.
12013
035cad7f
TT
120142014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_pass_signals): Unconditionally delegate.
12018 * target.h (struct target_ops) <to_pass_signals>: Use
12019 TARGET_DEFAULT_IGNORE.
12020
8d657035
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target-delegates.c: Rebuild.
12024 * target.c (default_mourn_inferior): New function.
12025 (target_mourn_inferior): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_mourn_inferior>: Use
12027 TARGET_DEFAULT_FUNC.
12028
098dba18
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (default_follow_fork): New function.
12033 (target_follow_fork): Unconditionally delegate.
12034 * target.h (struct target_ops) <to_follow_fork>: Use
12035 TARGET_DEFAULT_FUNC.
12036
423a4807
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (target_kill): Unconditionally delegate.
12041 * target.h (struct target_ops) <to_kill>: Use
12042 TARGET_DEFAULT_NORETURN.
12043
6c7e5e5c
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (target_masked_watch_num_registers): Unconditionally
12048 delegate.
12049 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12050 Use TARGET_DEFAULT_RETURN.
12051
8b1c364c
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (target_remove_mask_watchpoint): Unconditionally
12056 delegate.
12057 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12058 TARGET_DEFAULT_RETURN.
12059
cd4ae029
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (target_insert_mask_watchpoint): Unconditionally
12064 delegate.
12065 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12066 TARGET_DEFAULT_RETURN.
12067
a134316b
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (target_ranged_break_num_registers): Unconditionally
12072 delegate.
12073 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12074 Use TARGET_DEFAULT_RETURN.
12075
ad5989bd
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (target_fetch_registers): Unconditionally delegate.
12080 * target.h (struct target_ops) <to_fetch_registers>: Use
12081 TARGET_DEFAULT_NORETURN.
12082
46ee7e8d
TT
120832014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target-delegates.c: Rebuild.
12086 * target.c (update_current_target): Don't inherit or default
12087 to_stop.
12088 * target.h (struct target_ops) <to_stop>: Use
12089 TARGET_DEFAULT_IGNORE.
12090
843f59ed
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target-delegates.c: Rebuild.
12094 * target.c (update_current_target): Don't inherit or default
12095 to_can_run_breakpoint_commands.
12096 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12097 Use TARGET_DEFAULT_RETURN.
12098
ccfde2a0
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target-delegates.c: Rebuild.
12102 * target.c (update_current_target): Don't inherit or default
12103 to_supports_evaluation_of_breakpoint_conditions.
12104 * target.h (struct target_ops)
12105 <to_supports_evaluation_of_breakpoint_conditions>: Use
12106 TARGET_DEFAULT_RETURN.
12107
0de91722
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12112 to_augmented_libraries_svr4_read.
12113 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12114 Use TARGET_DEFAULT_RETURN.
12115
9a7d8b48
TT
121162014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * target-delegates.c: Rebuild.
12119 * target.c (update_current_target): Don't inherit or default
12120 to_can_use_agent.
12121 * target.h (struct target_ops) <to_can_use_agent>: Use
12122 TARGET_DEFAULT_RETURN.
12123
d9db5b21
TT
121242014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target-delegates.c: Rebuild.
12127 * target.c (update_current_target): Don't inherit or default
12128 to_use_agent.
12129 * target.h (struct target_ops) <to_use_agent>: Use
12130 TARGET_DEFAULT_NORETURN.
12131
92155eeb
TT
121322014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * target-delegates.c: Rebuild.
12135 * target.c (update_current_target): Don't inherit or default
12136 to_traceframe_info.
12137 (return_null): Remove.
12138 * target.h (struct target_ops) <to_traceframe_info>: Use
12139 TARGET_DEFAULT_RETURN.
12140
d6522a22
TT
121412014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target-delegates.c: Rebuild.
12144 * target.c (update_current_target): Don't inherit or default
12145 to_static_tracepoint_markers_by_strid.
12146 * target.h (struct target_ops)
12147 <to_static_tracepoint_markers_by_strid>: Use
12148 TARGET_DEFAULT_NORETURN.
12149
4c3e4425
TT
121502014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target-delegates.c: Rebuild.
12153 * target.c (update_current_target): Don't inherit or default
12154 to_static_tracepoint_marker_at.
12155 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12156 Use TARGET_DEFAULT_RETURN.
12157
dcd6917f
TT
121582014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target-delegates.c: Rebuild.
12161 * target.c (update_current_target): Don't inherit or default
12162 to_set_permissions.
12163 * target.h (struct target_ops) <to_set_permissions>: Use
12164 TARGET_DEFAULT_IGNORE.
12165
22bcceee
TT
121662014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target-delegates.c: Rebuild.
12169 * target.c (update_current_target): Don't inherit or default
12170 to_get_tib_address.
12171 * target.h (struct target_ops) <to_get_tib_address>: Use
12172 TARGET_DEFAULT_NORETURN.
12173
8586ccaa
TT
121742014-02-19 Tom Tromey <tromey@redhat.com>
12175
12176 * target-delegates.c: Rebuild.
12177 * target.c (update_current_target): Don't inherit or default
12178 to_set_trace_notes.
12179 * target.h (struct target_ops) <to_set_trace_notes>: Use
12180 TARGET_DEFAULT_RETURN.
12181
91df8d1d
TT
121822014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target-delegates.c: Rebuild.
12185 * target.c (update_current_target): Don't initialize
12186 to_set_trace_buffer_size.
12187 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12188 TARGET_DEFAULT_IGNORE.
12189
8d526939
TT
121902014-02-19 Tom Tromey <tromey@redhat.com>
12191
12192 * target-delegates.c: Rebuild.
12193 * target.c (update_current_target): Don't inherit or default
12194 to_set_circular_trace_buffer.
12195 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12196 TARGET_DEFAULT_IGNORE.
12197
0bcfeddf
TT
121982014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * target-delegates.c: Rebuild.
12201 * target.c (update_current_target): Don't inherit or default
12202 to_set_disconnected_tracing.
12203 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12204 TARGET_DEFAULT_IGNORE.
12205
9249843f
TT
122062014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * target-delegates.c: Rebuild.
12209 * target.c (update_current_target): Don't inherit or default
12210 to_get_min_fast_tracepoint_insn_len.
12211 (return_minus_one): Remove.
12212 * target.h (struct target_ops)
12213 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12214
ace92e7d
TT
122152014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * target-delegates.c: Rebuild.
12218 * target.c (update_current_target): Don't inherit or default
12219 to_get_raw_trace_data.
12220 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12221 TARGET_DEFAULT_NORETURN.
12222
08120467
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target-delegates.c: Rebuild.
12226 * target.c (update_current_target): Don't inherit or default
12227 to_upload_trace_state_variables.
12228 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12229 Use TARGET_DEFAULT_RETURN.
12230
1e949b00
TT
122312014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target-delegates.c: Rebuild.
12234 * target.c (update_current_target): Don't inherit or default
12235 to_upload_tracepoints.
12236 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12237 TARGET_DEFAULT_RETURN.
12238
a2e6c147
TT
122392014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target-delegates.c: Rebuild.
12242 * target.c (update_current_target): Don't inherit or default
12243 to_save_trace_data.
12244 * target.h (struct target_ops) <to_save_trace_data>: Use
12245 TARGET_DEFAULT_NORETURN.
12246
959bcd0b
TT
122472014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target-delegates.c: Rebuild.
12250 * target.c (update_current_target): Don't inherit or default
12251 to_get_trace_state_variable_value.
12252 * target.h (struct target_ops)
12253 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12254
afc94e66
TT
122552014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_trace_find.
12260 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12261
e51c07ea
TT
122622014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * target-delegates.c: Rebuild.
12265 * target.c (update_current_target): Don't inherit or default
12266 to_trace_stop.
12267 * target.h (struct target_ops) <to_trace_stop>: Use
12268 TARGET_DEFAULT_NORETURN.
12269
6fea14cd
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target-delegates.c: Rebuild.
12273 * target.c (update_current_target): Don't inherit or default
12274 to_get_tracepoint_status.
12275 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12276 TARGET_DEFAULT_NORETURN.
12277
4072d4ff
TT
122782014-02-19 Tom Tromey <tromey@redhat.com>
12279
12280 * target-delegates.c: Rebuild.
12281 * target.c (update_current_target): Don't inherit or default
12282 to_get_trace_status.
12283 * target.h (struct target_ops) <to_get_trace_status>: Use
12284 TARGET_DEFAULT_RETURN.
12285
25da2e80
TT
122862014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target-delegates.c: Rebuild.
12289 * target.c (update_current_target): Don't inherit or default
12290 to_trace_start.
12291 * target.h (struct target_ops) <to_trace_start>: Use
12292 TARGET_DEFAULT_NORETURN.
12293
86dd181d
TT
122942014-02-19 Tom Tromey <tromey@redhat.com>
12295
12296 * target-delegates.c: Rebuild.
12297 * target.c (update_current_target): Don't inherit or default
12298 to_trace_set_readonly_regions.
12299 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12300 Use TARGET_DEFAULT_NORETURN.
12301
05c41993
TT
123022014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * target-delegates.c: Rebuild.
12305 * target.c (update_current_target): Don't inherit or default
12306 to_disable_tracepoint.
12307 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12308 TARGET_DEFAULT_NORETURN.
12309
151f70f1
TT
123102014-02-19 Tom Tromey <tromey@redhat.com>
12311
12312 * target-delegates.c: Rebuild.
12313 * target.c (update_current_target): Don't inherit or default
12314 to_enable_tracepoint.
12315 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12316 TARGET_DEFAULT_NORETURN.
12317
94eb98b9
TT
123182014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * target-delegates.c: Rebuild.
12321 * target.c (update_current_target): Don't inherit or default
12322 to_download_trace_state_variable.
12323 * target.h (struct target_ops) <to_download_trace_state_variable>:
12324 Use TARGET_DEFAULT_NORETURN.
12325
719acc4a
TT
123262014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target-delegates.c: Rebuild.
12329 * target.c (update_current_target): Don't inherit or default
12330 to_can_download_tracepoint.
12331 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12332 TARGET_DEFAULT_RETURN.
12333
9a980a22
TT
123342014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target-delegates.c: Rebuild.
12337 * target.c (update_current_target): Don't inherit or default
12338 to_download_tracepoint.
12339 * target.h (struct target_ops) <to_download_tracepoint>: Use
12340 TARGET_DEFAULT_NORETURN.
12341
5536135b
TT
123422014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12346 to_trace_init.
12347 * target.h (struct target_ops) <to_trace_init>: Use
12348 TARGET_DEFAULT_RETURN.
12349
9409d39e
TT
123502014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_supports_string_tracing.
12355 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12356 TARGET_DEFAULT_RETURN.
12357
aab1b22d
TT
123582014-02-19 Tom Tromey <tromey@redhat.com>
12359
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_supports_enable_disable_tracepoint.
12363 * target.h (struct target_ops)
12364 <to_supports_enable_disable_tracepoint>: Use
12365 TARGET_DEFAULT_RETURN.
12366
a7304748
TT
123672014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_supports_multi_process.
12372 * target.h (struct target_ops) <to_supports_multi_process>: Use
12373 TARGET_DEFAULT_RETURN.
12374
4229b31d
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target-delegates.c: Rebuild.
12378 * target.c (update_current_target): Don't inherit or default
12379 to_get_ada_task_ptid.
12380 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12381 TARGET_DEFAULT_FUNC.
12382
43eba180
TT
123832014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_thread_architecture.
12388 * target.h (struct target_ops) <to_thread_architecture>: Use
12389 TARGET_DEFAULT_FUNC.
12390
fe31bf5b
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12395 to_execution_direction.
12396 * target.h (struct target_ops) <to_execution_direction>: Use
12397 TARGET_DEFAULT_FUNC.
12398
53e1cfc7
TT
123992014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12403 to_can_execute_reverse.
12404 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12405 TARGET_DEFAULT_RETURN.
12406 (target_can_execute_reverse): Unconditionally delegate.
12407
9bb9d61d
TT
124082014-02-19 Tom Tromey <tromey@redhat.com>
12409
12410 * target-delegates.c: Rebuild.
12411 * target.c (update_current_target): Don't inherit or default
12412 to_goto_bookmark.
12413 (dummy_goto_bookmark): Remove.
12414 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12415 * target.h (struct target_ops) <to_goto_bookmark>: Use
12416 TARGET_DEFAULT_NORETURN.
12417
3dbafbbb
TT
124182014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * target-delegates.c: Rebuild.
12421 * target.c (update_current_target): Don't inherit or default
12422 to_get_bookmark.
12423 (dummy_get_bookmark): Remove.
12424 (init_dummy_target): Don't inherit or default to_get_bookmark.
12425 * target.h (struct target_ops) <to_get_bookmark>: Use
12426 TARGET_DEFAULT_NORETURN
12427
16f796b1
TT
124282014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target-delegates.c: Rebuild.
12431 * target.c (update_current_target): Don't inherit or default
12432 to_make_corefile_notes.
12433 (init_dummy_target): Don't initialize to_make_corefile_notes.
12434 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12435 TARGET_DEFAULT_FUNC.
12436
0b5a2719
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_find_memory_regions.
12442 (init_dummy_target): Don't initialize to_find_memory_regions.
12443 * target.h (struct target_ops) <to_find_memory_regions>: Use
12444 TARGET_DEFAULT_FUNC.
12445
d9cb0195
TT
124462014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target-delegates.c: Rebuild.
12449 * target.c (update_current_target): Don't inherit or default
12450 to_log_command.
12451 * target.h (struct target_ops) <to_log_command>: Use
12452 TARGET_DEFAULT_IGNORE.
12453 (target_log_command): Unconditionally delegate.
12454
830ca330
TT
124552014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * target-delegates.c: Rebuild.
12458 * target.c (update_current_target): Don't inherit or default
12459 to_pid_to_exec_file.
12460 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12461 TARGET_DEFAULT_RETURN.
12462
825828fc
TT
124632014-02-19 Tom Tromey <tromey@redhat.com>
12464
12465 * target-delegates.c: Rebuild.
12466 * target.c (update_current_target): Don't inherit or default
12467 to_thread_name.
12468 (target_thread_name): Unconditionally delegate.
12469 * target.h (struct target_ops) <to_thread_name>: Use
12470 TARGET_DEFAULT_RETURN.
12471
4a7e6dda
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target-delegates.c: Rebuild.
12475 * target.c (update_current_target): Don't inherit or default
12476 to_extra_thread_info.
12477 * target.h (struct target_ops) <to_extra_thread_info>: Use
12478 TARGET_DEFAULT_RETURN.
12479
0db88c1d
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target-delegates.c: Rebuild.
12483 * target.c (update_current_target): Don't inherit or default
12484 to_has_exited.
12485 * target.h (struct target_ops) <to_has_exited>: Use
12486 TARGET_DEFAULT_RETURN..
12487
6a9fa051
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target-delegates.c: Rebuild.
12491 * target.c (update_current_target): Don't inherit or default
12492 to_set_syscall_catchpoint.
12493 (return_one): Remove.
12494 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12495 TARGET_DEFAULT_RETURN.
12496
62f64d7a
TT
124972014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target-delegates.c: Rebuild.
12500 * target.c (update_current_target): Don't inherit or default
12501 to_insert_exec_catchpoint.
12502 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12503 TARGET_DEFAULT_RETURN.
12504
cda0f38c
TT
125052014-01-08 Tom Tromey <tromey@redhat.com>
12506
12507 * target-delegates.c: Rebuild.
12508 * target.c (update_current_target): Don't inherit or default
12509 to_insert_exec_catchpoint.
12510 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12511 TARGET_DEFAULT_RETURN.
12512
95c3375e
TT
125132014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target-delegates.c: Rebuild.
12516 * target.c (update_current_target): Don't inherit or default
12517 to_remove_vfork_catchpoint.
12518 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12519 TARGET_DEFAULT_RETURN.
12520
7e18a8dc
TT
125212014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target-delegates.c: Rebuild.
12524 * target.c (update_current_target): Don't inherit or default
12525 to_insert_vfork_catchpoint.
12526 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12527 TARGET_DEFAULT_RETURN.
12528
e1a21fb7
TT
125292014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * target-delegates.c: Rebuild.
12532 * target.c (update_current_target): Don't inherit or default
12533 to_remove_fork_catchpoint.
12534 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12535 TARGET_DEFAULT_RETURN.
12536
5958ebeb
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * target-delegates.c: Rebuild.
12540 * target.c (update_current_target): Don't inherit or default
12541 to_insert_fork_catchpoint.
12542 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12543 TARGET_DEFAULT_RETURN.
12544
340ba4bf
TT
125452014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target-delegates.c: Rebuild.
12548 * target.c (update_current_target): Don't inherit or default
12549 to_post_startup_inferior.
12550 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12551 TARGET_DEFAULT_IGNORE.
12552
7634da87
TT
125532014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target-delegates.c: Rebuild.
12556 * target.c (update_current_target): Don't inherit or default
12557 to_load.
12558 * target.h (struct target_ops) <to_load>: Use
12559 TARGET_DEFAULT_NORETURN.
12560
e19e919f
TT
125612014-02-19 Tom Tromey <tromey@redhat.com>
12562
12563 * target-delegates.c: Rebuild.
12564 * target.c (update_current_target): Don't inherit or default
12565 to_terminal_info.
12566 * target.h (struct target_ops) <to_terminal_info>: Use
12567 TARGET_DEFAULT_FUNC.
12568
c6ea8f79
TT
125692014-02-19 Tom Tromey <tromey@redhat.com>
12570
12571 * target-delegates.c: Rebuild.
12572 * target.c (update_current_target): Don't inherit or default
12573 to_terminal_save_ours.
12574 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12575 TARGET_DEFAULT_IGNORE.
12576
e4a733f1
TT
125772014-02-19 Tom Tromey <tromey@redhat.com>
12578
12579 * target-delegates.c: Rebuild.
12580 * target.c (update_current_target): Don't inherit or default
12581 to_terminal_ours.
12582 * target.h (struct target_ops) <to_terminal_ours>: Use
12583 TARGET_DEFAULT_IGNORE.
12584
74fcbef9
TT
125852014-02-19 Tom Tromey <tromey@redhat.com>
12586
12587 * target-delegates.c: Rebuild.
12588 * target.c (update_current_target): Don't inherit or default
12589 to_terminal_ours_for_output.
12590 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12591 TARGET_DEFAULT_IGNORE.
12592
ddeaacc9
TT
125932014-02-19 Tom Tromey <tromey@redhat.com>
12594
12595 * target-delegates.c: Rebuild.
12596 * target.c (update_current_target): Don't inherit or default
12597 to_terminal_inferior.
12598 * target.h (struct target_ops) <to_terminal_inferior>: Use
12599 TARGET_DEFAULT_IGNORE.
12600
0343661d
TT
126012014-02-19 Tom Tromey <tromey@redhat.com>
12602
12603 * target-delegates.c: Rebuild.
12604 * target.c (update_current_target): Don't inherit or default
12605 to_terminal_init.
12606 * target.h (struct target_ops) <to_terminal_init>: Use
12607 TARGET_DEFAULT_IGNORE.
12608
77cdffe9
TT
126092014-02-19 Tom Tromey <tromey@redhat.com>
12610
12611 * target-delegates.c: Rebuild.
12612 * target.c (update_current_target): Don't inherit or default
12613 to_can_accel_watchpoint_condition.
12614 * target.h (struct target_ops)
12615 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12616
d03655e4
TT
126172014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target-delegates.c: Rebuild.
12620 * target.c (update_current_target): Don't inherit or default
12621 to_region_ok_for_hw_watchpoint.
12622 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12623 Use TARGET_DEFAULT_FUNC.
12624
65f160a9
TT
126252014-02-19 Tom Tromey <tromey@redhat.com>
12626
12627 * target-delegates.c: Rebuild.
12628 * target.c (update_current_target): Don't inherit or default
12629 to_watchpoint_addr_within_range.
12630 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12631 Use TARGET_DEFAULT_FUNC.
12632
61dd109f
TT
126332014-02-19 Tom Tromey <tromey@redhat.com>
12634
12635 * target-delegates.c: Rebuild.
12636 * target.c (update_current_target): Don't inherit or default
12637 to_remove_watchpoint.
12638 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12639 TARGET_DEFAULT_NORETURN.
12640
016facd4
TT
126412014-02-19 Tom Tromey <tromey@redhat.com>
12642
12643 * target-delegates.c: Rebuild.
12644 * target.c (update_current_target): Don't inherit or default
12645 to_insert_watchpoint.
12646 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12647 TARGET_DEFAULT_RETURN.
12648
418dabac
TT
126492014-02-19 Tom Tromey <tromey@redhat.com>
12650
12651 * target-delegates.c: Rebuild.
12652 * target.c (update_current_target): Don't inherit or default
12653 to_remove_hw_breakpoint.
12654 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12655 TARGET_DEFAULT_RETURN.
12656
61b371f9
TT
126572014-02-19 Tom Tromey <tromey@redhat.com>
12658
12659 * target-delegates.c: Rebuild.
12660 * target.c (update_current_target): Don't inherit or default
12661 to_insert_hw_breakpoint.
12662 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12663 TARGET_DEFAULT_RETURN.
12664
52b51d06
TT
126652014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target-delegates.c: Rebuild.
12668 * target.c (update_current_target): Don't inherit or default
12669 to_can_use_hw_breakpoint.
12670 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12671 TARGET_DEFAULT_RETURN.
12672
f86e59b2
TT
126732014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target-delegates.c: Rebuild.
12676 * target.c (update_current_target): Don't inherit or default
12677 to_files_info.
12678 * target.h (struct target_ops) <to_files_info>: Use
12679 TARGET_DEFAULT_IGNORE.
12680
6c628163
TT
126812014-02-19 Tom Tromey <tromey@redhat.com>
12682
12683 * target-delegates.c: Rebuild.
12684 * target.c (update_current_target): Don't inherit or default
12685 to_store.
12686 * target.h (struct target_ops) <to_store>: Use
12687 TARGET_DEFAULT_NORETURN.
12688
bebd3233
TT
126892014-02-19 Tom Tromey <tromey@redhat.com>
12690
12691 * target-delegates.c: Rebuild.
12692 * target.c (update_current_target): Don't inherit or default
12693 to_post_attach.
12694 * target.h (struct target_ops) <to_post_attach>: Use
12695 TARGET_DEFAULT_IGNORE.
12696
a53f3625
TT
126972014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target-delegates.c: Rebuild.
12700 * target.c (update_current_target): Don't inherit or default
12701 to_rcmd.
12702 (default_rcmd): New function.
12703 (do_monitor_command): Unconditionally delegate.
12704 * target.h (struct target_ops) <to_rmcd>: Use
12705 TARGET_DEFAULT_FUNC.
12706
e9a29200
TT
127072014-02-19 Tom Tromey <tromey@redhat.com>
12708
12709 * target-delegates.c: Rebuild.
12710 * target.c (init_dummy_target): Don't initialize to_attach.
12711 (target_attach): Unconditionally delegate.
12712 * target.h (struct target_ops) <to_attach>: Use
12713 TARGET_DEFAULT_FUNC.
12714
09da0d0a
TT
127152014-02-19 Tom Tromey <tromey@redhat.com>
12716
12717 * target-delegates.c: Rebuild.
12718 * target.c (target_detach): Unconditionally delegate.
12719 (init_dummy_target): Don't initialize to_detach.
12720 * target.h (struct target_ops) <to_detach>: Use
12721 TARGET_DEFAULT_IGNORE.
12722
5436ff03
TT
127232014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12726 Add argument.
12727 (target_augmented_libraries_svr4_read): Add argument.
12728 * target.c (update_current_target): Update.
12729 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12730 argument.
12731
f0d960ea
TT
127322014-02-19 Tom Tromey <tromey@redhat.com>
12733
12734 * target.h (struct target_ops) <to_call_history_range>: Add
12735 argument.
12736 * target.c (target_call_history_range): Add argument.
12737 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12738 argument.
12739 (record_btrace_call_history_from): Update.
12740
ec0aea04
TT
127412014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * target.h (struct target_ops) <to_call_history_from>: Add
12744 argument.
12745 * target.c (target_call_history_from): Add argument.
12746 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12747 argument.
12748
5df2fcba
TT
127492014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * target.h (struct target_ops) <to_call_history>: Add argument.
12752 * target.c (target_call_history): Add argument.
12753 * record-btrace.c (record_btrace_call_history): Add 'self'
12754 argument.
12755
4e99c6b7
TT
127562014-02-19 Tom Tromey <tromey@redhat.com>
12757
12758 * target.h (struct target_ops) <to_insn_history_range>: Add
12759 argument.
12760 * target.c (target_insn_history_range): Add argument.
12761 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12762 argument.
12763 (record_btrace_insn_history_from): Update.
12764
9abc3ff3
TT
127652014-02-19 Tom Tromey <tromey@redhat.com>
12766
12767 * target.h (struct target_ops) <to_insn_history_from>: Add
12768 argument.
12769 * target.c (target_insn_history_from): Add argument.
12770 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12771 argument.
12772
7a6c5609
TT
127732014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * target.h (struct target_ops) <to_insn_history>: Add argument.
12776 * target.c (target_insn_history): Add argument.
12777 * record-btrace.c (record_btrace_insn_history): Add 'self'
12778 argument.
12779
606183ac
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_goto_record>: Add argument.
12783 * target.c (target_goto_record): Add argument.
12784 * record-full.c (record_full_goto): Add 'self' argument.
12785 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12786
307a1b91
TT
127872014-02-19 Tom Tromey <tromey@redhat.com>
12788
12789 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12790 * target.c (target_goto_record_end): Add argument.
12791 * record-full.c (record_full_goto_end): Add 'self' argument.
12792 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12793
08475817
TT
127942014-02-19 Tom Tromey <tromey@redhat.com>
12795
12796 * target.h (struct target_ops) <to_goto_record_begin>: Add
12797 argument.
12798 * target.c (target_goto_record_begin): Add argument.
12799 * record-full.c (record_full_goto_begin): Add 'self' argument.
12800 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12801 argument.
12802
1c63c994
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_record_is_replaying>: Add
12806 argument.
12807 * target.c (target_record_is_replaying): Add argument.
12808 * record-full.c (record_full_is_replaying): Add 'self' argument.
12809 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12810 argument.
12811 (record_btrace_xfer_partial, record_btrace_store_registers)
12812 (record_btrace_prepare_to_store, record_btrace_resume)
12813 (record_btrace_wait, record_btrace_decr_pc_after_break)
12814 (record_btrace_find_new_threads, record_btrace_thread_alive):
12815 Update.
12816
d1b55219
TT
128172014-02-19 Tom Tromey <tromey@redhat.com>
12818
12819 * target.h (struct target_ops) <to_delete_record>: Add argument.
12820 * target.c (target_delete_record): Add argument.
12821 * record-full.c (record_full_delete): Add 'self' argument.
12822
1390f529
TT
128232014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_save_record>: Add argument.
12826 * target.c (target_save_record): Add argument.
12827 * record-full.c (record_full_save): Add 'self' argument.
12828 (record_full_save): Add 'self' argument.
12829
630d6a4a
TT
128302014-02-19 Tom Tromey <tromey@redhat.com>
12831
12832 * target.h (struct target_ops) <to_info_record>: Add argument.
12833 * target.c (target_info_record): Add argument.
12834 * record.c (info_record_command): Add argument.
12835 * record-full.c (record_full_info): Add 'self' argument.
12836 * record-btrace.c (record_btrace_info): Add 'self' argument.
12837
c6cd7c02
TT
128382014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12841 * target.c (target_stop_recording): Add argument.
12842 * record.c (record_stop): Add argument.
12843 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12844 argument.
12845
39c49f83
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12849 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12850 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12851 argument.
12852 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12853 (_initialize_amd64_linux_nat): Use it.
12854 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12855 (_initialize_i386_linux_nat): Use it.
12856
1777056d
TT
128572014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12860 * target.c (target_teardown_btrace): Add argument.
12861 * remote.c (remote_teardown_btrace): Add 'self' argument.
12862 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12863 argument.
12864 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12865 argument.
12866
25e95349
TT
128672014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12870 * target.c (target_disable_btrace): Add argument.
12871 * remote.c (remote_disable_btrace): Add 'self' argument.
12872 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12873 argument.
12874 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12875 argument.
12876
e3c49f88
TT
128772014-02-19 Tom Tromey <tromey@redhat.com>
12878
12879 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12880 * target.c (target_enable_btrace): Add argument.
12881 * remote.c (remote_enable_btrace): Add 'self' argument.
12882 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12883 argument.
12884 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12885 argument.
12886
fe38f897
TT
128872014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12890 (target_can_use_agent): Add argument.
12891 * target.c (update_current_target): Update.
12892 * remote.c (remote_can_use_agent): Add 'self' argument.
12893 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12894
2c152180
TT
128952014-02-19 Tom Tromey <tromey@redhat.com>
12896
12897 * target.h (struct target_ops) <to_use_agent>: Add argument.
12898 (target_use_agent): Add argument.
12899 * target.c (update_current_target): Update.
12900 * remote.c (remote_use_agent): Add 'self' argument.
12901 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12902
a893e81f
TT
129032014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12906 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12907 (target_traceframe_info): Add argument.
12908 * target.c (update_current_target): Update.
12909 * remote.c (remote_traceframe_info): Add 'self' argument.
12910 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12911
c686c57f
TT
129122014-02-19 Tom Tromey <tromey@redhat.com>
12913
12914 * target.h (target_static_tracepoint_markers_by_strid): Add
12915 argument.
12916 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12917 'self' argument.
12918 * target.c (update_current_target): Update.
12919 * remote.c (struct target_ops)
12920 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12921 * linux-nat.c (struct target_ops)
12922 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12923
61fc905d
TT
129242014-02-19 Tom Tromey <tromey@redhat.com>
12925
12926 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12927 Add argument.
12928 (target_static_tracepoint_marker_at): Add argument.
12929 * target.c (update_current_target): Update.
12930 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12931 argument.
12932
c378d69d
TT
129332014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12936 (target_set_permissions): Add argument.
12937 * target.c (update_current_target): Update.
12938 * remote.c (remote_set_permissions): Add 'self' argument.
12939 (remote_start_remote): Update.
12940
bd7ae0f5
TT
129412014-02-19 Tom Tromey <tromey@redhat.com>
12942
12943 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12944 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12945 (target_get_tib_address): Add argument.
12946 * target.c (update_current_target): Update.
12947 * remote.c (remote_get_tib_address): Add 'self' argument.
12948
d9e68a2c
TT
129492014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12952 (target_set_trace_notes): Add argument.
12953 * target.c (update_current_target): Update.
12954 * remote.c (remote_set_trace_notes): Add 'self' argument.
12955
4da384be
TT
129562014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12959 argument.
12960 (target_set_trace_buffer_size): Add argument.
12961 * target.c (update_current_target): Update.
12962 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12963
736d5b1f
TT
129642014-02-19 Tom Tromey <tromey@redhat.com>
12965
12966 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12967 argument.
12968 (target_set_circular_trace_buffer): Add argument.
12969 * target.c (update_current_target): Update.
12970 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12971 argument.
12972
37b25738
TT
129732014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12976 argument.
12977 (target_set_disconnected_tracing): Add argument.
12978 * target.c (update_current_target): Update.
12979 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12980
0e67620a
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops)
12984 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12985 (target_get_min_fast_tracepoint_insn_len): Add argument.
12986 * target.c (update_current_target): Update.
12987 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12988 argument.
12989
88ee6f45
TT
129902014-02-19 Tom Tromey <tromey@redhat.com>
12991
12992 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12993 argument.
12994 (target_get_raw_trace_data): Add argument.
12995 * target.c (update_current_target): Update.
12996 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12997
181e3713
TT
129982014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13001 Add argument.
13002 (target_upload_trace_state_variables): Add argument.
13003 * target.c (update_current_target): Update.
13004 * remote.c (remote_upload_trace_state_variables): Add 'self'
13005 argument.
13006 (remote_start_remote): Update.
13007
ab6617cc
TT
130082014-02-19 Tom Tromey <tromey@redhat.com>
13009
13010 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13011 argument.
13012 (target_upload_tracepoints): Add argument.
13013 * target.c (update_current_target): Update.
13014 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13015 (remote_start_remote): Update.
13016
dc3decaf
TT
130172014-02-19 Tom Tromey <tromey@redhat.com>
13018
13019 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13020 (target_save_trace_data): Add argument.
13021 * target.c (update_current_target): Update.
13022 * remote.c (remote_save_trace_data): Add 'self' argument.
13023
4011015b
TT
130242014-02-19 Tom Tromey <tromey@redhat.com>
13025
13026 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13027 argument.
13028 * target.h (struct target_ops)
13029 <to_get_trace_state_variable_value>: Add argument.
13030 (target_get_trace_state_variable_value): Add argument.
13031 * target.c (update_current_target): Update.
13032 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13033 argument.
13034 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13035
bd4c6793
TT
130362014-02-19 Tom Tromey <tromey@redhat.com>
13037
13038 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13039 * target.h (struct target_ops) <to_trace_find>: Add argument.
13040 (target_trace_find): Add argument.
13041 * target.c (update_current_target): Update.
13042 * remote.c (remote_trace_find): Add 'self' argument.
13043 * ctf.c (ctf_trace_find): Add 'self' argument.
13044
74499f1b
TT
130452014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13048 (target_trace_stop): Add argument.
13049 * target.c (update_current_target): Update.
13050 * remote.c (remote_trace_stop): Add 'self' argument.
13051
db90e85c
TT
130522014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13055 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13056 argument.
13057 (target_get_tracepoint_status): Add argument.
13058 * target.c (update_current_target): Update.
13059 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13060
8bd200f1
TT
130612014-02-19 Tom Tromey <tromey@redhat.com>
13062
13063 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13064 * target.h (struct target_ops) <to_get_trace_status>: Add
13065 argument.
13066 (target_get_trace_status): Add argument.
13067 * target.c (update_current_target): Update.
13068 * remote.c (remote_get_trace_status): Add 'self' argument.
13069 (remote_start_remote, remote_can_download_tracepoint): Update.
13070 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13071
e2d1aae3
TT
130722014-02-19 Tom Tromey <tromey@redhat.com>
13073
13074 * target.h (struct target_ops) <to_trace_start>: Add argument.
13075 (target_trace_start): Add argument.
13076 * target.c (update_current_target): Update.
13077 * remote.c (remote_trace_start): Add 'self' argument.
13078
583f9a86
TT
130792014-02-19 Tom Tromey <tromey@redhat.com>
13080
13081 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13082 Add argument.
13083 (target_trace_set_readonly_regions): Add argument.
13084 * target.c (update_current_target): Update.
13085 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13086 argument.
13087
780b049c
TT
130882014-02-19 Tom Tromey <tromey@redhat.com>
13089
13090 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13091 argument.
13092 (target_disable_tracepoint): Add argument.
13093 * target.c (update_current_target): Update.
13094 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13095
46670d57
TT
130962014-02-19 Tom Tromey <tromey@redhat.com>
13097
13098 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13099 argument.
13100 (target_enable_tracepoint): Add argument.
13101 * target.c (update_current_target): Update.
13102 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13103
559d2b81
TT
131042014-02-19 Tom Tromey <tromey@redhat.com>
13105
13106 * target.h (struct target_ops) <to_download_trace_state_variable>:
13107 Add argument.
13108 (target_download_trace_state_variable): Add argument.
13109 * target.c (update_current_target): Update.
13110 * remote.c (remote_download_trace_state_variable): Add 'self'
13111 argument.
13112
a52a8357
TT
131132014-02-19 Tom Tromey <tromey@redhat.com>
13114
13115 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13116 argument.
13117 (target_can_download_tracepoint): Add argument.
13118 * target.c (update_current_target): Update.
13119 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13120
548f7808
TT
131212014-02-19 Tom Tromey <tromey@redhat.com>
13122
13123 * target.h (struct target_ops) <to_download_tracepoint>: Add
13124 argument.
13125 (target_download_tracepoint): Add argument.
13126 * target.c (update_current_target): Update.
13127 * remote.c (remote_download_tracepoint): Add 'self' argument.
13128
ecae04e1
TT
131292014-02-19 Tom Tromey <tromey@redhat.com>
13130
13131 * target.h (struct target_ops) <to_trace_init>: Add argument.
13132 (target_trace_init): Add argument.
13133 * target.c (update_current_target): Update.
13134 * remote.c (remote_trace_init): Add 'self' argument.
13135
fab5aa7c
TT
131362014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13139 * target.c (target_fileio_readlink): Add argument.
13140 * remote.c (remote_hostio_readlink): Add 'self' argument.
13141 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13142
dbbca37d
TT
131432014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13146 * target.c (target_fileio_unlink): Add argument.
13147 * remote.c (remote_hostio_unlink): Add 'self' argument.
13148 (remote_file_delete): Update.
13149 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13150
df39ea25
TT
131512014-02-19 Tom Tromey <tromey@redhat.com>
13152
13153 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13154 * target.c (target_fileio_close): Add argument.
13155 * remote.c (remote_hostio_close): Add 'self' argument.
13156 (remote_hostio_close_cleanup): Update.
13157 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13158 Update.
13159 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13160
a3be983c
TT
131612014-02-19 Tom Tromey <tromey@redhat.com>
13162
13163 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13164 * target.c (target_fileio_pread): Add argument.
13165 * remote.c (remote_hostio_pread): Add 'self' argument.
13166 (remote_bfd_iovec_pread, remote_file_get): Update.
13167 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13168
0d866f62
TT
131692014-02-19 Tom Tromey <tromey@redhat.com>
13170
13171 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13172 * target.c (target_fileio_pwrite): Add argument.
13173 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13174 (remote_file_put): Update.
13175 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13176
cd897586
TT
131772014-02-19 Tom Tromey <tromey@redhat.com>
13178
13179 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13180 * target.c (target_fileio_open): Add argument.
13181 * remote.c (remote_hostio_open): Add 'self' argument.
13182 (remote_bfd_iovec_open): Add 'self' argument.
13183 (remote_file_put): Add 'self' argument.
13184 (remote_file_get): Add 'self' argument.
13185 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13186
78eff0ec
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13190 Add argument.
13191 (target_can_run_breakpoint_commands): Add argument.
13192 * target.c (update_current_target): Update.
13193 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13194 argument.
13195 (remote_insert_breakpoint): Add 'self' argument.
13196 (remote_insert_hw_breakpoint): Add 'self' argument.
13197 (remote_can_run_breakpoint_commands): Add 'self' argument.
13198
efcc2da7
TT
131992014-02-19 Tom Tromey <tromey@redhat.com>
13200
13201 * target.h (struct target_ops)
13202 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13203 (target_supports_evaluation_of_breakpoint_conditions): Add
13204 argument.
13205 * target.c (update_current_target): Update.
13206 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13207 argument.
13208 (remote_insert_breakpoint): Add 'self' argument.
13209 (remote_insert_hw_breakpoint): Add 'self' argument.
13210 (remote_supports_cond_breakpoints): Add 'self' argument.
13211
6de37a3a
TT
132122014-02-19 Tom Tromey <tromey@redhat.com>
13213
13214 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13215 argument.
13216 (target_supports_string_tracing): Add argument.
13217 * target.c (update_current_target): Update.
13218 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13219
2bfc0540
TT
132202014-02-19 Tom Tromey <tromey@redhat.com>
13221
13222 * target.h (struct target_ops)
13223 <to_supports_disable_randomization>: Add argument.
13224 * target.c (find_default_supports_disable_randomization): Add
13225 argument.
13226 (target_supports_disable_randomization): Add argument.
13227 (find_default_supports_disable_randomization): Add 'self'
13228 argument.
13229 * remote.c (extended_remote_supports_disable_randomization): Add
13230 'self' argument.
13231 (remote_supports_disable_randomization): Add 'self' argument.
13232 (extended_remote_create_inferior): Update.
13233 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13234 'self' argument.
13235
7d178d6a
TT
132362014-02-19 Tom Tromey <tromey@redhat.com>
13237
13238 * target.h (struct target_ops)
13239 <to_supports_enable_disable_tracepoint>: Add argument.
13240 (target_supports_enable_disable_tracepoint): Add argument.
13241 * target.c (update_current_target): Update.
13242 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13243 argument.
13244
86ce2668
TT
132452014-02-19 Tom Tromey <tromey@redhat.com>
13246
13247 * target.h (struct target_ops) <to_supports_multi_process>: Add
13248 argument.
13249 (target_supports_multi_process): Add argument.
13250 * target.c (update_current_target): Update.
13251 * remote.c (remote_supports_multi_process): Add 'self' argument.
13252 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13253 argument.
13254 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13255 argument.
13256
4c612759
TT
132572014-02-19 Tom Tromey <tromey@redhat.com>
13258
13259 * target.h (struct target_ops) <to_execution_direction>: Add
13260 argument.
13261 (target_execution_direction): Add argument.
13262 * target.c (default_execution_direction): Add 'self' argument.
13263 * record-full.c (record_full_execution_direction): Add 'self'
13264 argument.
13265
19db3e69
TT
132662014-02-19 Tom Tromey <tromey@redhat.com>
13267
13268 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13269 argument.
13270 (target_can_execute_reverse): Add argument.
13271 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13272 * record-full.c (record_full_can_execute_reverse): Add 'self'
13273 argument.
13274 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13275 argument.
13276
1e6b91a4
TT
132772014-02-19 Tom Tromey <tromey@redhat.com>
13278
13279 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13280 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13281 argument.
13282 (target_get_ada_task_ptid): Add argument.
13283 * target.c (update_current_target): Update.
13284 (default_get_ada_task_ptid): Add 'self' argument.
13285 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13286 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13287 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13288 argument.
13289 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13290 argument.
13291 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13292 argument.
13293 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13294 argument.
13295 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13296 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13297 argument.
13298
3c80fb48
TT
132992014-02-19 Tom Tromey <tromey@redhat.com>
13300
13301 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13302 (target_goto_bookmark): Add argument.
13303 * target.c (dummy_goto_bookmark): Add 'self' argument.
13304 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13305
dd0e2830
TT
133062014-02-19 Tom Tromey <tromey@redhat.com>
13307
13308 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13309 (target_get_bookmark): Add argument.
13310 * target.c (dummy_get_bookmark): Add 'self' argument.
13311 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13312
fc6691b2
TT
133132014-02-19 Tom Tromey <tromey@redhat.com>
13314
13315 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13316 argument.
13317 (target_make_corefile_notes): Add argument.
13318 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13319 * procfs.c (procfs_make_note_section): Add 'self' argument.
13320 (procfs_make_note_section): Add 'self' argument.
13321 (procfs_make_note_section): Add 'self' argument.
13322 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13323 argument.
13324 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13325 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13326 * exec.c (exec_make_note_section): Add 'self' argument.
13327 (exec_make_note_section): Add 'self' argument.
13328
2e73927c
TT
133292014-02-19 Tom Tromey <tromey@redhat.com>
13330
13331 * target.h (struct target_ops) <to_find_memory_regions>: Add
13332 argument.
13333 (target_find_memory_regions): Add argument.
13334 * target.c (dummy_find_memory_regions): Add 'self' argument.
13335 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13336 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13337 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13338 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13339 * exec. (exec_do_find_memory_regions): New global.
13340 (exec_set_find_memory_regions): Rewrite.
13341 (exec_find_memory_regions): New function.
13342 (init_exec_ops): Use exec_find_memory_regions.
13343
2a9a2795
TT
133442014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * target.h (struct target_ops) <to_supports_non_stop>: Add
13347 argument.
13348 * target.c (find_default_supports_non_stop): Add argument.
13349 (target_supports_non_stop): Add argument.
13350 (find_default_supports_non_stop): Add 'self' argument.
13351 * remote.c (remote_supports_non_stop): Add 'self' argument.
13352 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13353
4ab76ea3
TT
133542014-02-19 Tom Tromey <tromey@redhat.com>
13355
13356 * target.h (struct target_ops) <to_log_command>: Add argument.
13357 (target_log_command): Add argument.
13358 * serial.h (serial_log_command): Add 'self' argument.
13359 * serial.c (serial_log_command): Add 'self' argument.
13360
8dd27370
TT
133612014-02-19 Tom Tromey <tromey@redhat.com>
13362
13363 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13364 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13365 argument.
13366 (target_pid_to_exec_file): Add argument.
13367 * target.c (debug_to_pid_to_exec_file): Add argument.
13368 (update_current_target): Update.
13369 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13370 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13371 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13372 (linux_handle_extended_wait): Update.
13373 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13374 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13375 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13376 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13377
1aac633b
TT
133782014-02-19 Tom Tromey <tromey@redhat.com>
13379
13380 * target.h (struct target_ops) <to_rcmd>: Add argument.
13381 (target_rcmd): Add argument.
13382 * target.c (debug_to_rcmd): Add argument.
13383 (update_current_target, do_monitor_command): Update.
13384 * remote.c (remote_rcmd): Add 'self' argument.
13385 * monitor.c (monitor_rcmd): Add 'self' argument.
13386
1eab8a48
TT
133872014-02-19 Tom Tromey <tromey@redhat.com>
13388
13389 * windows-nat.c (windows_stop): Add 'self' argument.
13390 * target.h (struct target_ops) <to_stop>: Add argument.
13391 * target.c (target_stop): Add argument.
13392 (debug_to_stop): Add argument.
13393 (update_current_target): Update.
13394 * remote.c (remote_stop): Add 'self' argument.
13395 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13396 (gdbsim_cntrl_c): Update.
13397 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13398 * procfs.c (procfs_stop): Add 'self' argument.
13399 * nto-procfs.c (procfs_stop): Add 'self' argument.
13400 * monitor.c (monitor_stop): Add 'self' argument.
13401 (monitor_open): Update.
13402 * linux-nat.c (linux_nat_stop): Add argument.
13403 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13404 * gnu-nat.c (gnu_stop): Add 'self' argument.
13405 * darwin-nat.c (darwin_stop): Add 'self' argument.
13406
503a628d
TT
134072014-02-19 Tom Tromey <tromey@redhat.com>
13408
13409 * target.h (struct target_ops) <to_thread_name>: Add argument.
13410 * target.c (target_thread_name): Add argument.
13411 (update_current_target): Update.
13412 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13413
c15906d8
TT
134142014-02-19 Tom Tromey <tromey@redhat.com>
13415
13416 * target.h (struct target_ops) <to_extra_thread_info>: Add
13417 argument.
13418 (target_extra_thread_info): Add argument.
13419 * target.c (update_current_target): Update.
13420 * remote.c (remote_threads_extra_info): Add 'self' argument.
13421 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13422 argument.
13423 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13424 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13425 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13426 argument.
13427 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13428 argument.
13429 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13430 argument.
13431 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13432 argument.
13433
daf5e9b6
TT
134342014-02-19 Tom Tromey <tromey@redhat.com>
13435
13436 * target.h (struct target_ops) <to_program_signals>: Add argument.
13437 * target.c (target_program_signals): Add argument.
13438 * remote.c (remote_program_signals): Add 'self' argument.
13439
94bedb42
TT
134402014-02-19 Tom Tromey <tromey@redhat.com>
13441
13442 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13443 * target.c (target_pass_signals): Add argument.
13444 * remote.c (remote_pass_signals): Add 'self' argument.
13445 (remote_start_remote): Update.
13446 * procfs.c (procfs_pass_signals): Add 'self' argument.
13447 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13448 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13449 (linux_nat_create_inferior, linux_nat_attach): Update.
13450
da82bd6b
TT
134512014-02-19 Tom Tromey <tromey@redhat.com>
13452
13453 * windows-nat.c (windows_can_run): Add 'self' argument.
13454 * target.h (struct target_ops) <to_can_run>: Add argument.
13455 (target_can_run): Add argument.
13456 * target.c (debug_to_can_run): Add argument.
13457 (update_current_target): Update.
13458 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13459 * inf-child.c (inf_child_can_run): Add 'self' argument.
13460 * go32-nat.c (go32_can_run): Add 'self' argument.
13461
d796e1d6
TT
134622014-02-19 Tom Tromey <tromey@redhat.com>
13463
13464 * target.h (struct target_ops) <to_has_exited>: Add argument.
13465 (target_has_exited): Add argument.
13466 * target.c (debug_to_has_exited): Add argument.
13467 (update_current_target): Update.
13468
ff214e67
TT
134692014-02-19 Tom Tromey <tromey@redhat.com>
13470
13471 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13472 argument.
13473 (target_set_syscall_catchpoint): Add argument.
13474 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13475 argument.
13476 * target.c (update_current_target): Update.
13477
758e29d2
TT
134782014-02-19 Tom Tromey <tromey@redhat.com>
13479
13480 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13481 argument.
13482 (target_remove_exec_catchpoint): Add argument.
13483 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13484 (update_current_target): Update.
13485 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13486 argument.
13487
ba025e51
TT
134882014-02-19 Tom Tromey <tromey@redhat.com>
13489
13490 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13491 argument.
13492 (target_insert_exec_catchpoint): Add argument.
13493 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13494 (update_current_target): Update.
13495 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13496 argument.
13497
e98cf0cd
TT
134982014-02-19 Tom Tromey <tromey@redhat.com>
13499
13500 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13501 argument.
13502 (target_remove_vfork_catchpoint): Add argument.
13503 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13504 (update_current_target): Update.
13505 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13506 argument.
13507
3ecc7da0
TT
135082014-02-19 Tom Tromey <tromey@redhat.com>
13509
13510 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13511 argument.
13512 (target_insert_vfork_catchpoint): Add argument.
13513 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13514 (update_current_target): Update.
13515 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13516 argument.
13517
973fc227
TT
135182014-02-19 Tom Tromey <tromey@redhat.com>
13519
13520 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13521 argument.
13522 (target_remove_fork_catchpoint): Add argument.
13523 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13524 (update_current_target): Update.
13525 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13526 argument.
13527
a863b201
TT
135282014-02-19 Tom Tromey <tromey@redhat.com>
13529
13530 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13531 argument.
13532 (target_insert_fork_catchpoint): Add argument.
13533 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13534 (update_current_target): Update.
13535 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13536 argument.
13537
2e97a79e
TT
135382014-02-19 Tom Tromey <tromey@redhat.com>
13539
13540 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13541 argument.
13542 (target_post_startup_inferior): Add argument.
13543 * target.c (debug_to_post_startup_inferior): Add argument.
13544 (update_current_target): Update.
13545 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13546 argument.
13547 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13548 argument.
13549 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13550 argument.
13551 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13552 argument.
13553 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13554 'self' argument.
13555 (super_post_startup_inferior): Likewise.
13556 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13557 'self' argument.
13558 (super_post_startup_inferior): Likewise.
13559 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13560 Add 'self' argument.
13561 (super_post_startup_inferior): Likewise.
13562
71a9f134
TT
135632014-02-19 Tom Tromey <tromey@redhat.com>
13564
13565 * target.h (struct target_ops) <to_load>: Add argument.
13566 * target.c (target_load): Add argument.
13567 (debug_to_load): Add argument.
13568 (update_current_target): Update.
13569 * remote.c (remote_load): Add 'self' argument.
13570 * remote-sim.c (gdbsim_load): Add 'self' argument.
13571 * remote-mips.c (mips_load): Add 'self' argument.
13572 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13573 * monitor.c (monitor_load): Add 'self' argument.
13574 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13575
0a4f40a2
TT
135762014-02-19 Tom Tromey <tromey@redhat.com>
13577
13578 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13579 (target_terminal_info): Add argument.
13580 * target.c (debug_to_terminal_info): Add argument.
13581 (default_terminal_info): Likewise.
13582 * inflow.c (child_terminal_info): Add 'self' argument.
13583 * inferior.h (child_terminal_info): Add 'self' argument.
13584 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13585
ae3bd431
TT
135862014-02-19 Tom Tromey <tromey@redhat.com>
13587
13588 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13589 argument.
13590 (target_terminal_save_ours): Add argument.
13591 * target.c (debug_to_terminal_save_ours): Add argument.
13592 (update_current_target): Update.
13593 * inflow.c (terminal_save_ours): Add 'self' argument.
13594 * inferior.h (terminal_save_ours): Add 'self' argument.
13595
e3594fd1
TT
135962014-02-19 Tom Tromey <tromey@redhat.com>
13597
13598 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13599 (target_terminal_ours): Add argument.
13600 * target.c (debug_to_terminal_ours): Add argument.
13601 (update_current_target): Update.
13602 * remote.c (remote_terminal_ours): Add 'self' argument.
13603 (remote_close): Update.
13604 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13605 * inflow.c (terminal_ours): Add 'self' argument.
13606 * inferior.h (terminal_ours): Add 'self' argument.
13607 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13608
2e1e1a19
TT
136092014-02-19 Pedro Alves <palves@redhat.com>
13610 Tom Tromey <tromey@redhat.com>
13611
13612 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13613 argument.
13614 (target_terminal_ours_for_output): Add argument.
13615 * target.c (debug_to_terminal_ours_for_output): Add argument.
13616 (update_current_target): Update.
13617 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13618 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13619 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13620
d2f640d4
TT
136212014-02-19 Tom Tromey <tromey@redhat.com>
13622
13623 * target.h (struct target_ops) <to_terminal_inferior>: Add
13624 argument.
13625 * target.c (target_terminal_inferior): Add argument.
13626 (update_current_target): Update.
13627 * remote.c (remote_terminal_inferior): Add 'self' argument.
13628 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13629 * inflow.c (terminal_inferior): Add 'self' argument.
13630 * inferior.h (terminal_inferior): Add 'self' argument.
13631 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13632 (go32_terminal_inferior): Add 'self' argument.
13633
c42bf286
TT
136342014-02-19 Tom Tromey <tromey@redhat.com>
13635
13636 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13637 (target_terminal_init): Add argument.
13638 * target.c (debug_to_terminal_init): Add argument.
13639 (update_current_target): Update.
13640 * inflow.c (terminal_init_inferior): Add 'self' argument.
13641 * inferior.h (terminal_init_inferior): Add 'self' argument.
13642 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13643 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13644
c3a5ff89
TT
136452014-02-19 Tom Tromey <tromey@redhat.com>
13646
13647 * target.h (struct target_ops)
13648 <to_can_accel_watchpoint_condition>: Add argument.
13649 (target_can_accel_watchpoint_condition): Add argument.
13650 * target.c (debug_to_can_accel_watchpoint_condition): Add
13651 argument.
13652 (update_current_target): Update.
13653 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13654 'self' argument.
13655
31568a15
TT
136562014-02-19 Tom Tromey <tromey@redhat.com>
13657
13658 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13659 Add argument.
13660 (target_region_ok_for_hw_watchpoint): Add argument.
13661 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13662 (default_region_ok_for_hw_watchpoint): Add argument.
13663 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13664 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13665 argument.
13666 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13667 argument.
13668 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13669 argument.
13670 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13671 'self' argument.
13672 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13673 'self' argument.
13674 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13675 'self' argument.
13676 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13677 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13678 'self' argument.
13679 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13680 Add 'self' argument.
13681
7bb99c53
TT
136822014-02-19 Tom Tromey <tromey@redhat.com>
13683
13684 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13685 argument.
13686 (target_insert_watchpoint): Add argument.
13687 * target.c (debug_to_insert_watchpoint): Add argument.
13688 (update_current_target): Update.
13689 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13690 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13691 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13692 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13693 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13694 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13695 argument.
13696 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13697 (procfs_insert_hw_watchpoint): Add 'self' argument.
13698 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13699 argument.
13700 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13701 argument.
13702 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13703 argument.
13704 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13705 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13706 argument.
13707 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13708 'self' argument.
13709
11b5219a
TT
137102014-02-19 Tom Tromey <tromey@redhat.com>
13711
13712 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13713 argument.
13714 (target_remove_watchpoint): Add argument.
13715 * target.c (debug_to_remove_watchpoint): Add argument.
13716 (update_current_target): Update.
13717 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13718 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13719 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13720 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13721 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13722 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13723 argument.
13724 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13725 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13726 argument.
13727 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13728 argument.
13729 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13730 argument.
13731 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13732 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13733 argument.
13734 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13735 'self' argument.
13736
a64dc96c
TT
137372014-02-19 Tom Tromey <tromey@redhat.com>
13738
13739 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13740 argument.
13741 (target_remove_hw_breakpoint): Add argument.
13742 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13743 (update_current_target): Update.
13744 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13745 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13746 argument.
13747 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13748 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13749 argument.
13750 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13751 'self' argument.
13752
23a26771
TT
137532014-02-19 Tom Tromey <tromey@redhat.com>
13754
13755 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13756 argument.
13757 (target_insert_hw_breakpoint): Add argument.
13758 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13759 (update_current_target): Update.
13760 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13761 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13762 argument.
13763 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13764 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13765 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13766 argument.
13767 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13768 'self' argument.
13769
5461485a
TT
137702014-02-19 Tom Tromey <tromey@redhat.com>
13771
13772 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13773 argument.
13774 (target_can_use_hardware_watchpoint): Add argument.
13775 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13776 (update_current_target): Update.
13777 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13778 argument.
13779 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13780 argument.
13781 * remote.c (remote_check_watch_resources): Add 'self' argument.
13782 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13783 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13784 argument.
13785 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13786 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13787 argument.
13788 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13789 argument.
13790 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13791 argument.
13792 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13793 argument.
13794 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13795 argument.
13796 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13797 argument.
13798 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13799 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13800 argument.
13801 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13802 'self' argument.
13803
f045800c
TT
138042014-02-19 Tom Tromey <tromey@redhat.com>
13805
13806 * target.h (struct target_ops) <to_post_attach>: Add argument.
13807 (target_post_attach): Add argument.
13808 * target.c (debug_to_post_attach): Add argument.
13809 (update_current_target): Update.
13810 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13811 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13812 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13813 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13814 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13815
de90e03d
TT
138162014-02-19 Tom Tromey <tromey@redhat.com>
13817
13818 * windows-nat.c (windows_close): Add 'self' argument.
13819 * tracepoint.c (tfile_close): Add 'self' argument.
13820 * target.h (struct target_ops) <to_close>: Add argument.
13821 * target.c (target_close): Add argument.
13822 (update_current_target): Update.
13823 * remote.c (remote_close): Add 'self' argument.
13824 * remote-sim.c (gdbsim_close): Add 'self' argument.
13825 * remote-mips.c (mips_close): Add 'self' argument.
13826 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13827 * record-full.c (record_full_close): Add 'self' argument.
13828 * record-btrace.c (record_btrace_close): Add 'self' argument.
13829 * monitor.h (monitor_close): Add 'self' argument.
13830 * monitor.c (monitor_close): Add 'self' argument.
13831 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13832 * linux-nat.c (linux_nat_close): Add argument.
13833 * go32-nat.c (go32_close): Add 'self' argument.
13834 * exec.c (exec_close_1): Add 'self' argument.
13835 * ctf.c (ctf_close): Add 'self' argument.
13836 * corelow.c (core_close): Add 'self' argument.
13837 (core_close_cleanup): Update.
13838 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13839 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13840
9dd130a0
TT
138412014-02-19 Tom Tromey <tromey@redhat.com>
13842
13843 * remote.c (remote_load): New function.
13844 (init_remote_ops): Use it.
13845
46917d26
TT
138462014-02-19 Tom Tromey <tromey@redhat.com>
13847
13848 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13849 argument.
13850 * common/linux-btrace.h (linux_supports_btrace): Update.
13851 * remote.c (remote_supports_btrace): Add "self" argument.
13852 * target-delegates.c: Rebuild.
13853 * target.c (target_supports_btrace): Remove.
13854 * target.h (struct target_ops) <to_supports_btrace>: Add
13855 target_ops argument.
13856 (target_supports_btrace): New define.
13857
6b84065d
TT
138582014-02-19 Tom Tromey <tromey@redhat.com>
13859
13860 * record-full.c (record_full_beneath_to_resume_ops)
13861 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13862 (record_full_beneath_to_wait)
13863 (record_full_beneath_to_store_registers_ops)
13864 (record_full_beneath_to_store_registers)
13865 (record_full_beneath_to_xfer_partial_ops)
13866 (record_full_beneath_to_xfer_partial)
13867 (record_full_beneath_to_insert_breakpoint_ops)
13868 (record_full_beneath_to_insert_breakpoint)
13869 (record_full_beneath_to_remove_breakpoint_ops)
13870 (record_full_beneath_to_remove_breakpoint)
13871 (record_full_beneath_to_stopped_by_watchpoint)
13872 (record_full_beneath_to_stopped_data_address)
13873 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13874 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13875 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13876 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13877 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13878 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13879 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13880 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13881 (record_full_resume, record_full_wait_1)
13882 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13883 (record_full_store_registers, record_full_xfer_partial)
13884 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13885 (record_full_async, record_full_core_xfer_partial): Use target
13886 delegation.
13887 * target-delegates.c: Rebuild.
13888 * target.c (current_xfer_partial): Remove.
13889 (update_current_target): Do not INHERIT or de_fault
13890 to_insert_breakpoint, to_remove_breakpoint,
13891 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13892 to_is_async_p, to_async. Do not set to_xfer_partial field.
13893 (default_xfer_partial): Simplify.
13894 (current_xfer_partial): Remove.
13895 (target_wait, target_resume): Simplify.
13896 (find_default_can_async_p, find_default_is_async_p): Update.
13897 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13898 to_xfer_partial, to_stopped_by_watchpoint,
13899 to_stopped_data_address.
13900 (target_store_registers): Simplify.
13901 (forward_target_remove_breakpoint)
13902 (forward_target_insert_breakpoint): Remove.
13903 (target_remove_breakpoint, target_insert_breakpoint)
13904 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13905 * target.h (struct target_ops) <to_resume, to_wait,
13906 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13907 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13908 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13909 markup.
13910 (forward_target_remove_breakpoint)
13911 (forward_target_insert_breakpoint): Remove.
13912 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13913 directly.
13914 (record_btrace_insert_breakpoint): Delegate directly.
13915
1101cb7b
TT
139162014-02-19 Tom Tromey <tromey@redhat.com>
13917
13918 PR build/7701:
13919 * target-delegates.c: New file.
13920 * target.c: Include target-delegates.c.
13921 (init_dummy_target): Call install_dummy_methods.
13922 (complete_target_initialization): Call install_delegators.
13923 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13924 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13925 * make-target-delegates: New file.
13926
8b06beed
TT
139272014-02-19 Tom Tromey <tromey@redhat.com>
13928
13929 * record.c (find_record_target): Use find_target_at.
13930 * target.c (find_target_at): New function.
13931 * target.h (find_target_at): Declare.
13932
6a109b6b
TT
139332014-02-19 Tom Tromey <tromey@redhat.com>
13934
13935 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13936 Add 'ops' argument.
13937 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13938 'ops' argument.
13939 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13940 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13941 'ops' argument.
13942 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13943 argument.
13944 * linux-nat.c (save_sigtrap): Update.
13945 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13946 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13947 (linux_nat_close): Update.
13948 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13949 argument.
13950 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13951 argument.
13952 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13953 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13954 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13955 (tmp_to_async): Add 'ops' argument.
13956 (record_full_stopped_by_watchpoint, record_full_async)
13957 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13958 argument.
13959 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13960 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13961 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13962 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13963 (remote_is_async_p, remote_async): Add 'ops' argument.
13964 (remote_stopped_data_address): Update.
13965 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13966 * target.c (update_current_target)
13967 (find_default_can_async_p, find_default_is_async_p): Update.
13968 (init_dummy_target): Update.
13969 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13970 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13971 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13972 (target_can_async_p, target_is_async_p, target_async)
13973 (target_stopped_by_watchpoint): Update.
13974
e095146b
YQ
139752014-02-19 Yao Qi <yao@codesourcery.com>
13976
13977 PR gdb/16220
13978 * gdbarch.sh: Remove startup_gdbarch.
13979 * gdbarch.c: Regenerated.
13980 * gdbarch.h: Likewise.
13981
bc3c6b36
KB
139822014-02-17 Kevin Buettner <kevinb@redhat.com>
13983
13984 * rl78-tdep.c (rl78_g10_register_name): New function.
13985 (rl78_return_value): Add g10 support.
13986 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13987 g10.
13988
98dc0167 139892014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13990
13991 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13992 (SUBDIR_GUILE_SRCS): Ditto.
13993 (scm-gsmob.o): Ditto.
13994
842c05cd
YQ
139952014-02-17 Yao Qi <yao@codesourcery.com>
13996
13997 * gnu-nat.c (ILL_RPC): Declare defined function.
13998
25c0bd04
YQ
139992014-02-17 Yao Qi <yao@codesourcery.com>
14000
14001 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14002 mach_msg_type_number_t.
14003 (gnu_write_inferior): Likewise.
14004
a9a758e3
YQ
140052014-02-17 Yao Qi <yao@codesourcery.com>
14006
14007 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14008 in format string.
14009 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14010 (inf_validate_procs, inf_signal): Likewise.
14011 (S_exception_raise_request): Likewise.
14012 (do_mach_notify_dead_name): Likewise.
14013 (steal_exc_port): Likewise.
14014 (gnu_read_inferior): Change 'copy_count''s type to
14015 mach_msg_type_number_t.
14016 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14017 format string.
14018
bae8023e
TS
140192014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14020
c82f56d9
TS
14021 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14022 flag. Adjust all users; in particular...
14023 (gnu_wait): ..., don't decrement its value in here...
14024 (gnu_create_inferior): ..., and instead set the flag in here,
14025 around the startup_inferior call, and call that one with
14026 START_INFERIOR_TRAPS_EXPECTED.
14027
3398af6a
TS
14028 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14029 (ILL_RPC): ... new macro.
14030 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14031 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14032 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14033 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14034 functions with ILL_RPC macro.
14035 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14036 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14037 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14038 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14039 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14040 (S_proc_getlogin_reply, S_proc_getsid_reply)
14041 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14042 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14043 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14044 (S_proc_getnports_reply, S_proc_is_important_reply)
14045 (S_proc_get_code_reply): New stub functions, generated with
14046 ILL_RPC macro.
14047
d47642c9
TS
14048 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14049 collected the type check structures.
14050
bae8023e
TS
14051 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14052
8a55ffb0
DE
140532014-02-14 Doug Evans <dje@google.com>
14054
14055 * target.c (target_write_partial): Fix result type.
14056
c2853f3d
JM
140572014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14058
14059 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14060 the proper offsets to access fpregset_t.
14061
ac61d2db
SA
140622014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14063
14064 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14065 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14066 * h8300-tdep.c (setmachinelist): Remove global.
14067 * hppa-tdep.c (hppa_sigtramp): Remove global.
14068 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14069 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14070 * ravenscar-thread.c (update_target_observer): Remove global.
14071 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14072
9d2d0b8b
TT
140732014-02-12 Tom Tromey <tromey@redhat.com>
14074
14075 * common/rsp-low.c: Update comments.
14076 * common/rsp-low.h: Update comments.
14077
a7191e8b
TT
140782014-02-12 Tom Tromey <tromey@redhat.com>
14079
14080 * common/rsp-low.c (convert_ascii_to_int): Remove.
14081 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14082
ff0e980e
TT
140832014-02-12 Tom Tromey <tromey@redhat.com>
14084
14085 * common/rsp-low.h (unhexify): Don't declare.
14086 * common/rsp-low.c (unhexify): Remove.
14087
e9371aff
TT
140882014-02-12 Tom Tromey <tromey@redhat.com>
14089
14090 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14091 * common/rsp-low.c (convert_int_to_ascii): Remove.
14092
971dc0b8
TT
140932014-02-12 Tom Tromey <tromey@redhat.com>
14094
14095 * common/rsp-low.h (hexify): Don't declare.
14096 * common/rsp-low.c (hexify): Remove.
14097
0a822afb
TT
140982014-02-12 Tom Tromey <tromey@redhat.com>
14099
14100 * common/rsp-low.c (hexify): Never take strlen of argument.
14101
9f1b45b0
TT
141022014-02-12 Tom Tromey <tromey@redhat.com>
14103
14104 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14105 * remote.c (extended_remote_run, remote_rcmd)
14106 (remote_download_trace_state_variable, remote_save_trace_data)
14107 (remote_set_trace_notes): Update.
14108 * tracepoint.c (encode_source_string, tfile_write_status)
14109 (tfile_write_uploaded_tsv): Update.
14110
9c3d6531
TT
141112014-02-12 Tom Tromey <tromey@redhat.com>
14112
14113 * tracepoint.c: Include rsp-low.h.
14114 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14115 * remote.c: Include rsp-low.h.
14116 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14117 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14118 (remote_unescape_input): Move to common/rsp-low.c.
14119 * common/rsp-low.h: New file.
14120 * common/rsp-low.c: New file.
14121 * Makefile.in (SFILES): Add common/rsp-low.c.
14122 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14123 (COMMON_OBS): Add rsp-low.o.
14124 (rsp-low.o): New target.
14125
01fd3ea5
TT
141262014-02-12 Tom Tromey <tromey@redhat.com>
14127
14128 * utils.h: Include print-utils.h.
14129 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14130 (int_string, core_addr_to_string, core_addr_to_string_nz)
14131 (hex_string, hex_string_custom): Don't declare.
14132 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14133 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14134 (hex_string_custom, int_string, core_addr_to_string)
14135 (core_addr_to_string_nz, host_address_to_string): Move to
14136 common/print-utils.c.
14137 * common/print-utils.h: New file.
14138 * common/print-utils.c: New file
14139 * Makefile.in (SFILES): Add common/print-utils.c.
14140 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14141 (COMMON_OBS): Add print-utils.o.
14142 (print-utils.o): New target.
14143
9fb50108
TT
141442014-02-12 Tom Tromey <tromey@redhat.com>
14145
14146 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14147
0548b5db
MK
141482014-02-12 Mark Kettenis <kettenis@gnu.org>
14149
14150 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14151
493443a4
MK
141522014-02-12 Mark Kettenis <kettenis@gnu.org>
14153
14154 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14155 if a PT_IO ptrace request returns sucessfully but indicates that 0
14156 bytes were transferred.
14157
706d0883
PA
141582014-02-12 Pedro Alves <palves@redhat.com>
14159 Kevin Buettner <kevinb@redhat.com>
14160
14161 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14162 TYPE_INSTANCE_FLAG_CODE_SPACE.
14163
5caa2f0b
PA
141642014-02-12 Pedro Alves <palves@redhat.com>
14165
14166 * h8300-tdep.c (pseudo_from_raw_register)
14167 (raw_from_pseudo_register): New functions.
14168 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14169 them.
14170
76fd5f74
PA
141712014-02-12 Pedro Alves <palves@redhat.com>
14172
14173 * h8300-tdep.c (h8300_register_sim_regno): New function.
14174 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14175 gdbarch_register_sim_regno hook.
14176
8f008406
SA
141772014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14178
14179 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14180
195abc10
SA
141812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14182
14183 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14184
93ffa5b9
MK
141852014-02-12 Mark Kettenis <kettenis@gnu.org>
14186
14187 * obsd-tdep.h (obsd_init_abi): New prototype.
14188 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14189 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14190 (obsd_init_abi): New functions.
14191 * i386obsd-tdep.c: Include "obsd-tdep.h".
14192 (i386obsd_init_abi): Call obsd_init_abi.
14193 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14194 (amd64obsd_init_abi): Call obsd_init_abi.
14195 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14196 obsd-tdep.c to gdb_target_obs.
14197
49caec94
JM
141982014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14199
14200 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14201 double float arguments to 16-byte in the argument slots.
14202
e1402065
DE
142032014-02-11 Doug Evans <xdje42@gmail.com>
14204
14205 * configure.ac: Don't crash if pkg-config is not found and guile
14206 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14207 in guile checks.
14208 * configure: Regenerate.
14209
edcc890f
YQ
142102014-02-11 Yao Qi <yao@codesourcery.com>
14211
14212 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14213 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14214 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14215 * gnu-nat.c (gnu_xfer_memory): Likewise.
14216 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14217 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14218 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14219 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14220
9b409511
YQ
142212014-02-11 Yao Qi <yao@codesourcery.com>
14222
14223 * target.h (enum target_xfer_error): Rename to ...
14224 (enum target_xfer_status): ... it. New. All users updated.
14225 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14226 New.
14227 (TARGET_XFER_STATUS_ERROR_P): New macro.
14228 (target_xfer_error_to_string): Remove declaration.
14229 (target_xfer_status_to_string): Declare.
14230 (target_xfer_partial_ftype): Adjust it.
14231 (struct target_ops) <to_xfer_partial>: Return
14232 target_xfer_status. Add argument xfered_len. Update
14233 comments.
14234 * target.c (target_xfer_error_to_string): Rename to ...
14235 (target_xfer_status_to_string): ... it. New. All callers
14236 updated.
14237 (target_read_live_memory): Likewise. Call target_xfer_partial
14238 instead of target_read.
14239 (memory_xfer_live_readonly_partial): Return
14240 target_xfer_status. Add argument xfered_len.
14241 (raw_memory_xfer_partial): Likewise.
14242 (memory_xfer_partial_1): Likewise.
14243 (memory_xfer_partial): Likewise.
14244 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14245 properly. Update debug message.
14246 (default_xfer_partial, current_xfer_partial): Likewise.
14247 (target_write_partial): Likewise.
14248 (target_read_partial): Likewise. All callers updated.
14249 (read_whatever_is_readable): Likewise.
14250 (target_write_with_progress): Likewise.
14251 (target_read_alloc_1): Likewise.
14252
14253 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14254 * auxv.c (procfs_xfer_auxv): Likewise.
14255 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14256 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14257 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14258 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14259 * corefile.c (read_memory): Adjust.
14260 * corelow.c (core_xfer_partial): Likewise.
14261 * ctf.c (ctf_xfer_partial): Likewise.
14262 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14263 updated.
14264 (darwin_xfer_partial): Likewise.
14265 * exec.c (section_table_xfer_memory_partial): Likewise. All
14266 callers updated.
14267 (exec_xfer_partial): Likewise.
14268 * exec.h (section_table_xfer_memory_partial): Update
14269 declaration.
14270 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14271 negative.
14272 (gnu_xfer_partial): Likewise.
14273 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14274 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14275 (ia64_hpux_xfer_solib_got): Likewise.
14276 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14277 type of 'partial_len' to ULONGEST.
14278 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14279 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14280 (linux_nat_xfer_partial): Likewise.
14281 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14282 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14283 * monitor.c (monitor_xfer_memory): Likewise.
14284 (monitor_xfer_partial): Likewise.
14285 * procfs.c (procfs_xfer_partial): Likewise.
14286 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14287 * record-full.c (record_full_xfer_partial): Likewise.
14288 (record_full_core_xfer_partial): Likewise.
14289 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14290 (gdbsim_xfer_partial): Likewise.
14291 * remote.c (remote_write_bytes_aux): Likewise. All callers
14292 updated.
14293 (remote_write_bytes, remote_read_bytes): Likewise. All
14294 callers updated.
14295 (remote_flash_erase): Likewise. All callers updated.
14296 (remote_write_qxfer): Likewise. All callers updated.
14297 (remote_read_qxfer): Likewise. All callers updated.
14298 (remote_xfer_partial): Likewise.
14299 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14300 (rs6000_xfer_shared_libraries): Likewise.
14301 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14302 (sol_thread_xfer_partial): Likewise.
14303 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14304 (sparc_xfer_partial): Likewise.
14305 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14306 updated.
14307 (spu_xfer_partial): Likewise.
14308 * spu-multiarch.c (spu_xfer_partial): Likewise.
14309 * tracepoint.c (tfile_xfer_partial): Likewise.
14310 * windows-nat.c (windows_xfer_memory): Likewise.
14311 (windows_xfer_shared_libraries): Likewise.
14312 (windows_xfer_partial): Likewise.
14313 * valprint.c: Replace 'target_xfer_error' with
14314 'target_xfer_status' in comments.
14315
a8e63083
JB
143162014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14317
14318 Checked in by Joel Brobecker <brobecker@adacore.com>.
14319 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14320
e86b67d3
JB
143212014-02-11 Joel Brobecker <brobecker@adacore.com>
14322
14323 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14324 function parameters.
14325
4b7d1f7f
WN
143262014-02-10 Will Newton <will.newton@linaro.org>
14327
14328 * elfread.c (elf_rel_plt_read): Look for a .got section if
14329 looking up .got.plt fails.
14330 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14331 on address passed to elf_gnu_ifunc_record_cache.
14332 (elf_gnu_ifunc_resolve_addr): Likewise.
14333 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14334
961842b2
JM
143352014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14336
14337 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14338 (X_RETTURN): New macro.
14339 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14340
14341 * sparc64-tdep.c (sparc64_init_abi): Hook
14342 sparc_in_function_epilogue_p.
14343
3f03e7b1
GB
143442014-02-10 Gary Benson <gbenson@redhat.com>
14345
14346 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14347 Rename name_matcher to symbol_matcher.
14348
96f861ef
GB
143492014-02-10 Gary Benson <gbenson@redhat.com>
14350
14351 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14352 Use expand_symtabs_file_matcher_ftype and
14353 expand_symtabs_symbol_matcher_ftype.
14354
ee01b665
JB
143552014-02-10 Joel Brobecker <brobecker@adacore.com>
14356
14357 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14358 (struct ada_symbol_cache): New.
14359 (ada_free_symbol_cache): Forward declare.
14360 (struct ada_pspace_data): New.
14361 (ada_pspace_data_handle): New static global.
14362 (get_ada_pspace_data, ada_pspace_data_cleanup)
14363 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14364 (cache_space, cache): Delete, now folded inside struct
14365 ada_pspace_data.
14366 (ada_get_symbol_cache): New function.
14367 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14368 implementation.
14369 (_initialize_ada_language): Remove initialization of cache_space.
14370 Move call to observer_attach_inferior_exit up, grouping it
14371 with the other observer registrations inside this function.
14372 Rename command to be more general. Add call to
14373 register_program_space_data_with_cleanup.
14374
143adbbf
JB
143752014-02-10 Joel Brobecker <brobecker@adacore.com>
14376
14377 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14378 ada_new_objfile_observer.
14379 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14380 (_initialize_tasks): Update uses of ada_new_objfile_observer
14381 and ada_tasks_normal_stop_observer.
14382
aa4fb036
JB
143832014-02-10 Joel Brobecker <brobecker@adacore.com>
14384
14385 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14386 returned by the 'Length attribute to integer.
14387
9dee8cc6
JB
143882014-02-10 Joel Brobecker <brobecker@adacore.com>
14389
14390 * ada-lang.c (_initialize_ada_language): Initialize
14391 cache_space obstack.
14392
3d9434b5
JB
143932014-02-10 Joel Brobecker <brobecker@adacore.com>
14394
14395 * ada-lang.c (HASH_SIZE): New macro.
14396 (struct cache_entry): New type.
14397 (cache_space, cache): New static globals.
14398 (ada_clear_symbol_cache, find_entry): New functions.
14399 (lookup_cached_symbol, cache_symbol): Implement.
14400 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14401 (_initialize_ada_language): Attach ada_new_objfile_observer
14402 and ada_free_objfile_observer.
14403
f0c5f9b2
JB
144042014-02-10 Joel Brobecker <brobecker@adacore.com>
14405
14406 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14407 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14408 struct block * parameter.
14409 (ada_lookup_symbol_list_worker): Constify local variable "block".
14410 Remove cast which is no longer necessary.
14411
ed3ef339
DE
144122014-02-10 Doug Evans <xdje42@gmail.com>
14413
14414 Add Guile as an extension language.
14415 * NEWS: Mention Guile scripting.
14416 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14417 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14418 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14419 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14420 (CLIBS): Add GUILE_LIBS.
14421 (install-guile): New rule.
14422 (guile.o): New rule.
14423 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14424 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14425 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14426 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14427 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14428 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14429 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14430 * configure.ac: New option --with-guile.
14431 * configure: Regenerate.
14432 * config.in: Regenerate.
14433 * auto-load.c: Remove #include "python/python.h". Add #include
14434 "gdb/section-scripts.h".
14435 (source_section_scripts): Handle Guile scripts.
14436 (_initialize_auto_load): Add name of Guile objfile script to
14437 scripts-directory help text.
14438 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14439 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14440 (struct breakpoint): New member scm_bp_object.
14441 * defs.h (enum command_control_type): New value guile_control.
14442 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14443 "extension.h".
14444 (show_user): Update comment.
14445 (_initialize_cli_cmds): Update help text for "show user". Update help
14446 text for max-user-call-depth.
14447 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14448 "extension.h".
14449 (multi_line_command_p): Add guile_control.
14450 (print_command_lines): Handle guile_control.
14451 (execute_control_command, recurse_read_control_structure): Ditto.
14452 (process_next_line): Recognize "guile" commands.
14453 * disasm.c (gdb_disassemble_info): Make non-static.
14454 * disasm.h: #include "dis-asm.h".
14455 (struct gdbarch): Add forward decl.
14456 (gdb_disassemble_info): Declare.
14457 * extension.c: #include "guile/guile.h".
14458 (extension_languages): Add guile.
14459 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14460 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14461 * gdbtypes.c (get_unsigned_type_max): New function.
14462 (get_signed_type_minmax): New function.
14463 * gdbtypes.h (get_unsigned_type_max): Declare.
14464 (get_signed_type_minmax): Declare.
14465 * guile/README: New file.
14466 * guile/guile-internal.h: New file.
14467 * guile/guile.c: New file.
14468 * guile/guile.h: New file.
14469 * guile/scm-arch.c: New file.
14470 * guile/scm-auto-load.c: New file.
14471 * guile/scm-block.c: New file.
14472 * guile/scm-breakpoint.c: New file.
14473 * guile/scm-disasm.c: New file.
14474 * guile/scm-exception.c: New file.
14475 * guile/scm-frame.c: New file.
14476 * guile/scm-gsmob.c: New file.
14477 * guile/scm-iterator.c: New file.
14478 * guile/scm-lazy-string.c: New file.
14479 * guile/scm-math.c: New file.
14480 * guile/scm-objfile.c: New file.
14481 * guile/scm-ports.c: New file.
14482 * guile/scm-pretty-print.c: New file.
14483 * guile/scm-safe-call.c: New file.
14484 * guile/scm-string.c: New file.
14485 * guile/scm-symbol.c: New file.
14486 * guile/scm-symtab.c: New file.
14487 * guile/scm-type.c: New file.
14488 * guile/scm-utils.c: New file.
14489 * guile/scm-value.c: New file.
14490 * guile/lib/gdb.scm: New file.
14491 * guile/lib/gdb/boot.scm: New file.
14492 * guile/lib/gdb/experimental.scm: New file.
14493 * guile/lib/gdb/init.scm: New file.
14494 * guile/lib/gdb/iterator.scm: New file.
14495 * guile/lib/gdb/printing.scm: New file.
14496 * guile/lib/gdb/types.scm: New file.
14497 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14498 (VPATH): Add $(GUILE_SRCDIR).
14499 (GUILE_DIR): New variable.
14500 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14501 (all): Add stamp-guile dependency.
14502 (stamp-guile): New rule.
14503 (clean-guile, install-guile, uninstall-guile): New rules.
14504 (install-only): Add install-guile dependency.
14505 (uninstall): Add uninstall-guile dependency.
14506 (clean): Add clean-guile dependency.
14507
ac020ec5
DE
145082014-02-09 Doug Evans <xdje42@gmail.com>
14509
14510 Revert this patch (which I approved, mea culpa).
14511
14512 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14513
14514 * Makefile.in (all-lib): Remove.
14515 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14516
2a081c59
JK
145172014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14518
14519 Fix Python stack corruption.
14520 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14521 gdb_py_longest.
14522
0a6bd22d
MK
145232014-02-08 Mark Kettenis <kettenis@gnu.org>
14524
14525 * Makefile.in (all-lib): Remove.
14526 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14527
1a860409
DE
145282014-02-07 Doug Evans <dje@google.com>
14529
14530 * extension-priv.h (extension_language_script_ops): Add comment.
14531 (extension_language_ops): Add comment.
caf5a491 14532 (active_ext_lang_state): Fix typo in comment.
1a860409 14533
d137e6dc
PA
145342014-02-07 Pedro Alves <palves@redhat.com>
14535
0dcb32c3 14536 PR breakpoints/16292
d137e6dc
PA
14537 * infrun.c (handle_signal_stop) <signal arrives while stepping
14538 over a breakpoint>: Switch back to the stepping thread.
14539
ce6d0892
YQ
145402014-02-07 Yao Qi <yao@codesourcery.com>
14541
14542 * target.c (target_xfer_partial): Return zero if LEN is zero.
14543
2ed4b548
YQ
145442014-02-07 Yao Qi <yao@codesourcery.com>
14545
14546 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14547 (ld_so_xfer_auxv): Likewise.
14548 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14549 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14550 * corelow.c (core_xfer_partial): Likewise.
14551 * ctf.c (ctf_xfer_partial): Likewise.
14552 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14553 (darwin_xfer_partial): Likewise.
14554 * exec.c (exec_xfer_partial): Likewise.
14555 * gnu-nat.c (gnu_xfer_partial): Likewise.
14556 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14557 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14558 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14559 * linux-nat.c (linux_xfer_siginfo): Likewise.
14560 (linux_proc_xfer_spu): Likewise.
14561 * procfs.c (procfs_xfer_partial): Likewise.
14562 * record-full.c (record_full_xfer_partial): Likewise.
14563 (record_full_core_xfer_partial): Likewise.
14564 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14565 * remote.c (remote_write_qxfer): Likewise.
14566 (remote_write_qxfer, remote_read_qxfer): Likewise.
14567 (remote_xfer_partial): Likewise.
14568 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14569 (rs6000_xfer_shared_libraries): Likewise.
14570 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14571 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14572 (spu_xfer_partial): Likewise.
14573 * target.c (memory_xfer_partial_1): Likewise.
14574 * tracepoint.c (tfile_xfer_partial): Likewise.
14575 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14576 (windows_xfer_partial): Likewise.
14577
c09f20e4
YQ
145782014-02-07 Yao Qi <yao@codesourcery.com>
14579
14580 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14581 comments.
14582 (core_xfer_shared_libraries_aix): Likewise.
14583 * gdbarch.c, gdbarch.h: Regenerated.
14584 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14585 ULONGEST. Change 'len_avail' type to ULONGEST.
14586 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14587 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14588 declaration.
14589 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14590
8635b3bf
YQ
145912014-02-07 Yao Qi <yao@codesourcery.com>
14592
14593 * corefile.c (memory_error): Get 'exception' from ERR and pass
14594 'exception' to throw_error.
14595
6dddc817
DE
145962014-02-06 Doug Evans <xdje42@gmail.com>
14597
14598 * configure.ac (libpython checking): Remove all but python.o from
14599 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14600 * configure: Regenerate.
14601
14602 * Makefile.in (SFILES): Add extension.c.
14603 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14604 (COMMON_OBS): Add extension.o.
14605 * extension.h: New file.
14606 * extension-priv.h: New file.
14607 * extension.c: New file.
14608
14609 * python/python-internal.h: #include "extension.h".
14610 (gdbpy_auto_load_enabled): Declare.
14611 (gdbpy_apply_val_pretty_printer): Declare.
14612 (gdbpy_apply_frame_filter): Declare.
14613 (gdbpy_preserve_values): Declare.
14614 (gdbpy_breakpoint_cond_says_stop): Declare.
14615 (gdbpy_breakpoint_has_cond): Declare.
14616 (void source_python_script_for_objfile): Delete.
14617 * python/python.c: #include "extension-priv.h".
14618 Delete inclusion of "observer.h".
14619 (extension_language_python): Moved here and renamed from
14620 script_language_python in py-auto-load.c.
14621 Redefined to be of type extension_language_defn.
14622 (python_extension_script_ops): New global.
14623 (python_extension_ops): New global.
14624 (struct python_env): New member previous_active.
14625 (restore_python_env): Call restore_active_ext_lang.
14626 (ensure_python_env): Call set_active_ext_lang.
14627 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14628 New arg extlang.
14629 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14630 New arg extlang.
14631 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14632 New arg extlang.
14633 (gdbpy_eval_from_control_command): Renamed from
14634 eval_python_from_control_command, made static. New arg extlang.
14635 (gdbpy_source_script) Renamed from source_python_script, made static.
14636 New arg extlang.
14637 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14638 result to int. New arg extlang.
14639 (gdbpy_source_objfile_script): Renamed from
14640 source_python_script_for_objfile, made static. New arg extlang.
14641 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14642 static. New args extlang, extlang_printers. Change result type to
14643 "void".
14644 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14645 static. New arg extlang. Rename arg printers to extlang_printers
14646 and change type to ext_lang_type_printers *.
14647 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14648 static. Replace argument arg with extlang, extlang_printers.
14649 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14650 (!HAVE_PYTHON, source_python_script): Delete.
14651 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14652 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14653 (!HAVE_PYTHON, start_type_printers): Delete.
14654 (!HAVE_PYTHON, apply_type_printers): Delete.
14655 (!HAVE_PYTHON, free_type_printers): Delete.
14656 (_initialize_python): Delete call to observer_attach_before_prompt.
14657 (finalize_python): Set/restore active extension language.
14658 (gdbpy_finish_initialization) Renamed from
14659 finish_python_initialization, made static. New arg extlang.
14660 (gdbpy_initialized): New function.
14661 * python/python.h: #include "extension.h". Delete #include
14662 "value.h", "mi/mi-cmds.h".
14663 (extension_language_python): Declare.
14664 (GDBPY_AUTO_FILE_NAME): Delete.
14665 (enum py_bt_status): Moved to extension.h and renamed to
14666 ext_lang_bt_status.
14667 (enum frame_filter_flags): Moved to extension.h.
14668 (enum py_frame_args): Moved to extension.h and renamed to
14669 ext_lang_frame_args.
14670 (finish_python_initialization): Delete.
14671 (eval_python_from_control_command): Delete.
14672 (source_python_script): Delete.
14673 (apply_val_pretty_printer): Delete.
14674 (apply_frame_filter): Delete.
14675 (preserve_python_values): Delete.
14676 (gdbpy_script_language_defn): Delete.
14677 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14678 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14679
14680 * auto-load.c: #include "extension.h".
14681 (GDB_AUTO_FILE_NAME): Delete.
14682 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14683 (script_language_gdb): Delete, moved to extension.c and renamed to
14684 extension_language_gdb.
14685 (source_gdb_script_for_objfile): Delete.
14686 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14687 (loaded_script): Change type of language member to
14688 struct extension_language_defn *.
14689 (init_loaded_scripts_info): Initialize
14690 unsupported_script_warning_printed.
14691 (maybe_add_script): Make static. Change type of language arg to
14692 struct extension_language_defn *.
14693 (clear_section_scripts): Reset unsupported_script_warning_printed.
14694 (auto_load_objfile_script_1): Rewrite to use extension language API.
14695 (auto_load_objfile_script): Make public. Remove support-compiled-in
14696 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14697 (source_section_scripts): Rewrite to use extension language API.
14698 (load_auto_scripts_for_objfile): Rewrite to use
14699 auto_load_scripts_for_objfile.
14700 (collect_matching_scripts_data): Change type of language member to
14701 struct extension_language_defn *.
14702 (auto_load_info_scripts): Change type of language arg to
14703 struct extension_language_defn *.
14704 (unsupported_script_warning_print): New function.
14705 (script_not_found_warning_print): Make static.
14706 (_initialize_auto_load): Rewrite construction of scripts-directory
14707 help.
14708 * auto-load.h (struct objfile): Add forward decl.
14709 (struct script_language): Delete.
14710 (struct auto_load_pspace_info): Add forward decl.
14711 (struct extension_language_defn): Add forward decl.
14712 (maybe_add_script): Delete.
14713 (auto_load_objfile_script): Declare.
14714 (script_not_found_warning_print): Delete.
14715 (auto_load_info_scripts): Update prototype.
14716 (auto_load_gdb_scripts_enabled): Declare.
14717 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14718 auto_load_python_scripts_enabled and made public.
14719 (script_language_python): Delete, moved to python.c.
14720 (gdbpy_script_language_defn): Delete.
14721 (info_auto_load_python_scripts): Update to use
14722 extension_language_python.
14723
14724 * breakpoint.c (condition_command): Replace call to
14725 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14726 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14727 with call to breakpoint_ext_lang_cond_says_stop.
14728 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14729 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14730 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14731 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14732 New arg slang.
14733 (local_setattro): Print name of extension language with existing
14734 stop condition.
14735
14736 * valprint.c (val_print, value_print): Update to call
14737 apply_ext_lang_val_pretty_printer.
14738 * cp-valprint.c (cp_print_value): Update call to
14739 apply_ext_lang_val_pretty_printer.
14740 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14741 (gdbpy_apply_val_pretty_printer): Renamed from
14742 apply_val_pretty_printer. New arg extlang.
14743 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14744
14745 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14746 extension language API.
14747 * cli/cli-script.c (execute_control_command): Update to call
14748 eval_ext_lang_from_control_command.
14749
14750 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14751 enum ext_lang_bt_status values. Update call to
14752 apply_ext_lang_frame_filter.
14753 (mi_cmd_stack_list_locals): Ditto.
14754 (mi_cmd_stack_list_args): Ditto.
14755 (mi_cmd_stack_list_variables): Ditto.
14756 * mi/mi-main.c: Delete #include "python/python-internal.h".
14757 Add #include "extension.h".
14758 (mi_cmd_list_features): Replace reference to python internal variable
14759 gdb_python_initialized with call to ext_lang_initialized_p.
14760
14761 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14762 Update to use enum ext_lang_frame_args. Update to call
14763 apply_ext_lang_frame_filter.
14764 * python/py-framefilter.c (extract_sym): Update to use enum
14765 ext_lang_bt_status.
14766 (extract_value, py_print_type, py_print_value): Ditto.
14767 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14768 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14769 (py_print_frame): Ditto.
14770 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14771 New arg extlang. Update to use enum ext_lang_bt_status.
14772
14773 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14774 finish_python_initialization. Replace with call to
14775 finish_ext_lang_initialization.
14776
14777 * typeprint.c (do_free_global_table): Update to call
14778 free_ext_lang_type_printers.
14779 (create_global_typedef_table): Update to call
14780 start_ext_lang_type_printers.
14781 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14782 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14783 (type_print_options): Change type of global_printers from "void *"
14784 to "struct ext_lang_type_printers *".
14785
14786 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14787 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14788 (gdbpy_preserve_values): Renamed from preserve_python_values.
14789 New arg extlang.
14790 (!HAVE_PYTHON, preserve_python_values): Delete.
14791
14792 * utils.c (quit_flag): Delete, moved to extension.c.
14793 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14794 extension.c.
14795
14796 * eval.c: Delete #include "python/python.h".
14797 * main.c: Delete #include "python/python.h".
14798
14799 * defs.h: Update comment.
14800
6af79985
JB
148012014-02-06 Joel Brobecker <brobecker@adacore.com>
14802
14803 GDB 7.7 released.
14804
12c5175d
MK
148052014-02-05 Mark Kettenis <kettenis@gnu.org>
14806
14807 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14808 defined.
14809
8dc5b319
YQ
148102014-02-05 Yao Qi <yao@codesourcery.com>
14811
14812 * remote.c (remote_pass_signals): Remove local 'buf' and use
14813 rs->buf.
14814 (remote_program_signals): Likewise.
14815
de7b2893
YQ
148162014-02-05 Yao Qi <yao@codesourcery.com>
14817
14818 * ctf.c: Include "inferior.h" and "gdbthread.h".
14819 (CTF_PID): A new macro.
14820 (ctf_open): Call inferior_appeared and add_thread_silent.
14821 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14822 (ctf_thread_alive): New function.
14823 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14824
66d032ac
YQ
148252014-02-05 Yao Qi <yao@codesourcery.com>
14826
14827 Revert this patch:
14828
14829 2013-05-24 Yao Qi <yao@codesourcery.com>
14830
14831 * tracepoint.c (TFILE_PID): Remove.
14832 (tfile_open): Don't add thread and inferior.
14833 (tfile_close): Don't set 'inferior_ptid'. Don't call
14834 exit_inferior_silent.
14835 (tfile_thread_alive): Remove.
14836 (init_tfile_ops): Don't set field 'to_thread_alive' of
14837 tfile_ops.
14838
f4ccffad
CE
148392014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14840
14841 * remote.c (remote_start_remote): Call remote_check_symbols even
14842 if only symbol-file (not file) has been given.
14843
591a12a1
UW
148442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14845
14846 * gdbarch.sh (skip_entrypoint): New callback.
14847 * gdbarch.c, gdbarch.h: Regenerate.
14848 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14849 * infrun.c (fill_in_stop_func): Likewise.
14850 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14851 (ppc_elfv2_elf_make_msymbol_special): New function.
14852 (ppc_elfv2_skip_entrypoint): Likewise.
14853 (ppc_linux_init_abi): Install them for ELFv2.
14854
cc0e89c5
UW
148552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14856
14857 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14858 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14859 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14860 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14861 structures returned in GPRs.
14862
52f548e4
UW
148632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14864
14865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14866 offset to the stack parameter list for the ELFv2 ABI.
14867
d4094b6a
UW
148682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14869
14870 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14871 set_gdbarch_convert_from_func_ptr_addr and
14872 set_gdbarch_elf_make_msymbol_special for ELFv1.
14873 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14874 function descriptors on ELFv1.
14875 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14876 set up r12 at function entry.
14877
cd453cd0
UW
148782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14879
14880 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14881 (struct gdbarch_tdep): New member elf_abi.
14882
14883 * rs6000-tdep.c: Include "elf/ppc64.h".
14884 (rs6000_gdbarch_init): Detect ELF ABI version.
14885
0ff3e01f
UW
148862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14887
14888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14889 within a register pair holding a DFP 128-bit value on little-endian.
14890 (ppc64_sysv_abi_return_value_base): Likewise.
14891 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14892 (dfp_pseudo_register_write): Likewise.
14893
5b757e5d
UW
148942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14895
14896 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14897 offset on little-endian when passing _Decimal32.
14898 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14899
084ee545
UW
149002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14901
14902 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14903 of the overlapped FP register within the VSX register on little-
14904 endian platforms.
14905 (efpr_pseudo_register_write): Likewise.
14906
d63167af
UW
149072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14908
14909 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14910 offset on little-endian when passing small structures.
14911
e765b44c
UW
149122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14913
14914 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14915 (struct ppc64_sysv_argpos): New data structure.
14916 (ppc64_sysv_abi_push_float): Remove.
14917 (ppc64_sysv_abi_push_val): New function.
14918 (ppc64_sysv_abi_push_integer): Likewise.
14919 (ppc64_sysv_abi_push_freg): Likewise.
14920 (ppc64_sysv_abi_push_vreg): Likewise.
14921 (ppc64_sysv_abi_push_param): Likewise.
14922 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14923 (ppc64_sysv_abi_return_value_base): New function.
14924 (ppc64_sysv_abi_return_value): Refactor to use it.
14925
36c24d95
UW
149262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14927
14928 * NEWS: Document new target powerpc64le-*-linux*.
14929
26fd9228
MK
149302014-02-04 Mark Kettenis <kettenis@gnu.org>
14931
14932 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14933 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14934 core dumps.
14935 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14936 register set used in ELF core dumps. Add floating-point register set.
14937
c5bb7362
KB
149382014-02-03 Kevin Buettner <kevinb@redhat.com>
14939
74228e77 14940 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14941 dwarf2_to_gdb[] table using symbolic constants. Adjust
14942 penultimate entry from number representing the PC register
14943 to symbolic constant representing the MDR register. Add
14944 constant for the PC register to the end of the table.
14945
af09351e
MK
149462014-02-03 Mark Kettenis <kettenis@gnu.org>
14947
14948 * bsd-kvm.c: Include <sys/param.h>
14949
8507e05d
MK
149502014-02-03 Mark Kettenis <kettenis@gnu.org>
14951
14952 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14953
ae56bfb8
JB
149542014-01-31 Joel Brobecker <brobecker@adacore.com>
14955
14956 * ada-lang.h (clear_ada_sym_cache): Delete.
14957
718ee4dc
UW
149582014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14959
14960 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14961
401e27fd
JM
149622014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14963
14964 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14965 the sigreturn register save area only if the syscall is
14966 sigreturn.
14967
a7c88acd
JB
149682014-01-29 Joel Brobecker <brobecker@adacore.com>
14969
14970 * valops.c (value_slice): Minor reformatting.
14971
fa0079ea
UW
149722014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14973
14974 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14975
c6044dd1
JB
149762014-01-28 Joel Brobecker <brobecker@adacore.com>
14977
14978 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14979 New static globals.
14980 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14981 (ada_ignore_descriptive_types_p): New static global.
14982 (find_parallel_type_by_descriptive_type): Return immediately
14983 if ada_ignore_descriptive_types_p is set.
14984 (_initialize_ada_language): Register new commands "maintenance
14985 set ada", "maintenance show ada", "maintenance set ada
14986 ignore-descriptive-types" and "maintenance show ada
14987 ignore-descriptive-types".
14988 * NEWS: Add entry for new "maint ada set/show
14989 ignore-descriptive-types" commands.
14990
568e808b
MM
149912014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14992
14993 * record-btrace.c (record_btrace_close): Call btrace_teardown
14994 for all threads.
14995
467d141b
JB
149962014-01-27 Joel Brobecker <brobecker@adacore.com>
14997
14998 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14999 "ui-out.h".
15000
fb151210
JB
150012014-01-27 Joel Brobecker <brobecker@adacore.com>
15002
15003 * ada-typeprint (type_is_full_subrange_of_target_type):
15004 New function.
15005 (print_range): Add parameter bounds_prefered_p. If not set,
15006 try printing range types using the name of their base type.
15007 (print_range_type): Add parameter bounds_prefered_p.
15008 Use it in call to print_range.
15009 (print_array_type, ada_print_type): Update calls to print_range
15010 and print_range_type.
15011
aba02109
JB
150122014-01-27 Joel Brobecker <brobecker@adacore.com>
15013
15014 * ada-typeprint.c (print_array_type, print_choices, print_range)
15015 (print_range_bound, print_dynamic_range_bound, print_range_type):
15016 Remove declaration.
15017
e62e21fd
JB
150182014-01-27 Joel Brobecker <brobecker@adacore.com>
15019
15020 * ada-typeprint.c (print_range): Add missing empty line
15021 after local declaration.
15022
859cf5d1
JB
150232014-01-27 Joel Brobecker <brobecker@adacore.com>
15024
15025 * ada-valprint.c (print_optional_low_bound): Get index_type's
15026 target type for as long as it is a TYPE_CODE_RANGE.
15027
25790f6f
JB
150282014-01-27 Joel Brobecker <brobecker@adacore.com>
15029
15030 * procfs.c (procfs_make_note_section): Remove assertion and
15031 associated comment.
15032
6b6aa828
YQ
150332014-01-24 Yao Qi <yao@codesourcery.com>
15034
15035 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15036 * corelow.c (get_core_siginfo): Likewise.
15037
5d6df423
YQ
150382014-01-24 Yao Qi <yao@codesourcery.com>
15039
15040 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15041 ULONGEST. Don't check 'len' is negative.
15042 (remote_write_bytes): Change type of 'len' to ULONGEST.
15043
83b645b8
TT
150442014-01-23 Tom Tromey <tromey@redhat.com>
15045
15046 PR python/16485:
15047 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15048 Handle exception from frame.block.
15049 (FrameVars.fetch_frame_locals): Likewise.
15050
0740f8d8
TT
150512014-01-23 Tom Tromey <tromey@redhat.com>
15052
15053 PR python/16487:
15054 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15055 on a NULL pointer. Move "goto error" to correct place.
15056
21909fa1
TT
150572014-01-23 Tom Tromey <tromey@redhat.com>
15058
15059 PR python/16491:
15060 * python/py-framefilter.c (apply_frame_filter): Call
15061 ensure_python_env after computing gdbarch.
15062
17fde6d0
YQ
150632014-01-23 Yao Qi <yao@codesourcery.com>
15064
15065 * target.c (raw_memory_xfer_partial): Change argument type
15066 from void * to gdb_byte *.
15067 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15068
87ce2a04
DE
150692014-01-22 Doug Evans <dje@google.com>
15070
15071 New gdbserver option --debug-format=timestamp.
15072 * NEWS: Mention it.
15073
237b092b
AA
150742014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15075
15076 * syscalls/s390x-linux.xml: New file.
15077 * syscalls/s390-linux.xml: New file.
15078 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15079 (XML_SYSCALL_FILENAME_S390X): Likewise.
15080 (op_svc): New enum value for SVC opcode.
15081 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15082 (s390_linux_get_syscall_number): New function.
15083 (s390_gdbarch_init): Register '*get_syscall_number' and the
15084 syscall xml file name.
15085 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15086 "s390-linux.xml" and "s390x-linux.xml".
15087 * NEWS: Announce new feature.
15088
54bff650
BS
150892014-01-22 Baruch Siach <baruch@tkos.co.il>
15090
15091 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15092
14e361d7
PA
150932014-01-22 Pedro Alves <palves@redhat.com>
15094
15095 * xtensa-config.c: Include defs.h.
15096
46bbb3ed
JB
150972014-01-22 Joel Brobecker <brobecker@adacore.com>
15098
15099 * common/common-utils.h: Add "ARI:" comment beside __func__
15100 reference.
15101
3a80edfc
JB
151022014-01-22 Joel Brobecker <brobecker@adacore.com>
15103
15104 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15105 documentation a bit.
15106
4869db5e
RM
151072014-01-21 Roland McGrath <mcgrathr@google.com>
15108
15109 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15110 * configure: Regenerate.
15111 * aclocal.m4: Regenerate.
15112 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15113 New substituted variables.
15114 (install-strip): New target.
15115 (INSTALL_SCRIPT): New substituted variable.
15116 (FLAGS_TO_PASS): Add it.
15117 (install-only): Use $(INSTALL_SCRIPT) rather than
15118 $(INSTALL_PROGRAM) for gcore.
15119
9ea4267d
TT
151202014-01-20 Tom Tromey <tromey@redhat.com>
15121
15122 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15123 together.
15124
1f2bdf09
TT
151252014-01-20 Tom Tromey <tromey@redhat.com>
15126
15127 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15128 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15129 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15130 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15131 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15132 (struct cmd_list_element) <flags>: Remove.
15133 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15134 doc_allocated>: New fields.
15135 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15136 bitfields.
15137 * maint.c (maintenance_do_deprecate): Update.
15138 * top.c (execute_command): Update.
15139
e671835b
BS
151402014-01-20 Baruch Siach <baruch@tkos.co.il>
15141
15142 * xtensa-linux-nat.c: Include asm/ptrace.h.
15143
50367cd2
IB
151442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15145
15146 * Makefile.in (SFILES): Add d-support.c.
15147 (COMMON_OBS): Add d-support.o.
15148 * d-lang.h (d_parse_symbol): Add comment, now defined in
15149 d-support.c.
15150 * d-lang.c (parse_call_convention)
15151 (parse_attributes, parse_function_types)
15152 (parse_function_args, parse_type, parse_identifier)
15153 (call_convention_p, d_parse_symbol): Move functions to ...
15154 * d-support.c: ... New file.
15155
ec9f644a
IB
151562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15157
15158 * d-lang.h (d_parse_symbol): Add declaration.
15159 * d-lang.c (extract_identifiers)
15160 (extract_type_info): Remove functions.
15161 (parse_call_convention, parse_attributes)
15162 (parse_function_types, parse_function_args)
15163 (parse_type, parse_identifier, call_convention_p)
15164 (d_parse_symbol): New functions.
15165 (d_demangle): Use d_parse_symbol to demangle D symbols.
15166
94b1b47e
IB
151672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15168
15169 * d-lang.h (struct builtin_d_type): New data type.
15170 (builtin_d_type): Add declaration.
15171 * d-lang.c (d_language_arch_info, build_d_types)
15172 (builtin_d_type): New functions.
15173 (enum d_primitive_types): New data type.
15174 (d_language_defn): Change c_language_arch_info to
15175 d_language_arch_info.
15176 (d_type_data): New static variable.
15177 (_initialize_d_language): Initialize d_type_data.
15178
63778547
IB
151792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15180
15181 * d-lang.h (d_main_name): Add declaration.
15182 * d-lang.c (d_main_name): New function.
15183 * symtab.c (find_main_name): Add call to d_main_name.
15184
3271ba66
IB
151852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15186
15187 * d-lang.c (d_language_defn): Change macro_expansion_c to
15188 macro_expansion_no.
15189
d36b3012
IB
151902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15191
15192 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15193
c90a6fb7
SDJ
151942014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15195
15196 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15197 gdb_exception" declaration.
15198 * remote.c (getpkt_or_notif_sane): Likewise.
15199
749234e5
DE
152002014-01-17 Doug Evans <dje@google.com>
15201
15202 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15203 function, contents of dirnames_to_char_ptr_vec_append moved here.
15204 (delim_string_to_char_ptr_vec): New function.
15205 (dirnames_to_char_ptr_vec_append): Rewrite.
15206 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15207
df049a58
DE
152082014-01-17 Doug Evans <dje@google.com>
15209
15210 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15211 and moved here ...
15212 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15213 #include "common-utils.h".
15214 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15215 * common/vec.h (VEC_ASSERT_PASS): Update.
15216 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15217 (MACH_CHECK_ERROR): Update.
15218
69f97648
SM
152192014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15220
15221 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15222 comments.
15223 * gdbarch.h: Regenerate.
15224
98b1cfdc
TT
152252014-01-16 Tom Tromey <tromey@redhat.com>
15226
15227 * value.c (struct value) <regnum>: Move earlier.
15228
77a19445
TT
152292014-01-16 Tom Tromey <tromey@redhat.com>
15230
15231 * remote.c (extended_remote_create_inferior): Rename from
15232 extended_remote_create_inferior_1. Add "ops" argument. Remove
15233 old implementation.
15234
62261490
PA
152352014-01-16 Pedro Alves <palves@redhat.com>
15236
15237 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15238 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15239 the backchain.
15240
4d65956b
DE
152412014-01-16 Doug Evans <dje@google.com>
15242
15243 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15244
52834460
MM
152452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15246
15247 * btrace.h (btrace_thread_flag): New.
15248 (struct btrace_thread_info) <flags>: New.
15249 * record-btrace.c (record_btrace_resume_thread)
15250 (record_btrace_find_thread_to_move, btrace_step_no_history)
15251 (btrace_step_stopped, record_btrace_start_replaying)
15252 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15253 (record_btrace_find_resume_thread): New.
15254 (record_btrace_resume, record_btrace_wait): Extend.
15255 (record_btrace_can_execute_reverse): New.
15256 (record_btrace_open): Fail in non-stop mode.
15257 (record_btrace_set_replay): Split into this, ...
15258 (record_btrace_stop_replaying): ... this, ...
15259 (record_btrace_clear_histories): ... and this.
15260 (init_record_btrace_ops): Init to_can_execute_reverse.
15261 * NEWS: Announce it.
15262
118e6252
MM
152632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15264
15265 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15266 (forward_target_decr_pc_after_break)
15267 (target_decr_pc_after_break): New.
15268 * target.c (forward_target_decr_pc_after_break)
15269 (target_decr_pc_after_break): New.
15270 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15271 instead of gdbarch_decr_pc_after_break.
15272 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15273 instead of gdbarch_decr_pc_after_break.
15274 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15275 instead of gdbarch_decr_pc_after_break.
15276 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15277 instead of gdbarch_decr_pc_after_break.
15278 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15279 instead of gdbarch_decr_pc_after_break.
15280 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15281 instead of gdbarch_decr_pc_after_break.
15282
6e07b1d2
MM
152832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15284
15285 * btrace.c: Include regcache.h.
15286 (btrace_add_pc): New.
15287 (btrace_enable): Call btrace_add_pc.
15288 (btrace_is_empty): New.
15289 * btrace.h (btrace_is_empty): New.
15290 * record-btrace.c (require_btrace, record_btrace_info): Call
15291 btrace_is_empty.
15292
969c39fb
MM
152932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15294
15295 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15296 Support delta reads.
15297 (linux_disable_btrace): Change return type.
15298 * common/linux-btrace.h (linux_read_btrace): Change parameters
15299 and return type to allow error reporting. Update users.
15300 (linux_disable_btrace): Change return type. Update users.
15301 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15302 New.
15303 (btrace_error): New.
15304 (btrace_block) <begin>: Comment on BEGIN == 0.
15305 * btrace.c (btrace_compute_ftrace): Start from the end of
15306 the current trace.
15307 (btrace_stitch_trace, btrace_clear_history): New.
15308 (btrace_fetch): Read delta trace, return if replaying.
15309 (btrace_clear): Move clear history code to btrace_clear_history.
15310 (parse_xml_btrace): Throw an error if parsing failed.
15311 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15312 and return type to allow error reporting.
15313 (target_read_btrace): Change parameters and return type to allow
15314 error reporting.
15315 * target.c (target_read_btrace): Update.
15316 * remote.c (remote_read_btrace): Support delta reads. Pass
15317 errors on.
15318 * NEWS: Announce it.
15319
0b722aec
MM
153202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15321
15322 * record.h (record_btrace_frame_unwind)
15323 (record_btrace_tailcall_frame_unwind): New declarations.
15324 * dwarf2-frame: Include record.h
15325 (dwarf2_frame_cfa): Throw an error for btrace frames.
15326 * record-btrace.c: Include hashtab.h.
15327 (btrace_get_bfun_name): New.
15328 (btrace_call_history): Call btrace_get_bfun_name.
15329 (struct btrace_frame_cache): New.
15330 (bfcache): New.
15331 (bfcache_hash, bfcache_eq, bfcache_new): New.
15332 (btrace_get_frame_function): New.
15333 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15334 (record_btrace_frame_this_id): Compute own id.
15335 (record_btrace_frame_prev_register): Provide PC, throw_error
15336 for all other registers.
15337 (record_btrace_frame_sniffer): Detect btrace frames.
15338 (record_btrace_tailcall_frame_sniffer): New.
15339 (record_btrace_frame_dealloc_cache): New.
15340 (record_btrace_frame_unwind): Add new functions.
15341 (record_btrace_tailcall_frame_unwind): New.
15342 (_initialize_record_btrace): Allocate cache.
15343 * btrace.c (btrace_clear): Call reinit_frame_cache.
15344 * NEWS: Announce it.
15345
066ce621
MM
153462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15347
15348 * record-btrace.c (record_btrace_set_replay)
15349 (record_btrace_goto_begin, record_btrace_goto_end)
15350 (record_btrace_goto): New.
15351 (init_record_btrace_ops): Initialize them.
15352 * NEWS: Announce it.
15353
e2887aa3
MM
153542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15355
15356 * record-btrace.c (record_btrace_find_new_threads)
15357 (record_btrace_thread_alive): New.
15358 (init_record_btrace_ops): Initialize to_find_new_threads and
15359 to_thread_alive.
15360
b2f4cfde
MM
153612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15362
15363 * record-btrace.c (record_btrace_resume): New.
15364 (record_btrace_wait): New.
15365 (init_record_btrace_ops): Initialize to_wait and to_resume.
15366
633785ff
MM
153672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15368
15369 * record-btrace.c (record_btrace_xfer_partial)
15370 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15371 (record_btrace_allow_memory_access): New.
15372 (init_record_btrace_ops): Initialize new methods.
15373 * target.c (raw_memory_xfer_partial): Bail out if target reports
15374 that this memory is not available.
15375
3db08215
MM
153762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15377
15378 * target.h (target_ops) <to_insert_breakpoint>
15379 <to_remove_breakpoint>: Add target_ops parameter.
15380 (forward_target_insert_breakpoint): New.
15381 (forward_target_remove_breakpoint): New.
15382 (memory_remove_breakpoint, memory_insert_breakpoint):
15383 Add target_ops parameter.
15384 * target.c (target_insert_breakpoint): Split into this and ...
15385 (forward_target_insert_breakpoint): ... this.
15386 (target_remove_breakpoint): Split into this and ...
15387 (forward_target_remove_breakpoint): ... this.
15388 (debug_to_insert_breakpoint): Add target_ops parameter.
15389 Call forward_target_insert_breakpoint.
15390 (debug_to_remove_breakpoint): Add target_ops parameter.
15391 Call forward_target_remove_breakpoint.
15392 (update_current_target): Do not inherit or default to_insert_breakpoint
15393 and to_remove_breakpoint.
15394 * corelow.c (ignore): Add target_ops parameter.
15395 * exec.c (ignore): Add target_ops parameter.
15396 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15397 Add target_ops parameter.
15398 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15399 Add target_ops parameter.
15400 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15401 Add target_ops parameter.
15402 * record-full.c (record_full_beneath_to_insert_breakpoint)
15403 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15404 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15405 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15406 (record_full_core_remove_breakpoint): Add target_ops parameter.
15407 Update users.
15408 (record_full_beneath_to_insert_breakpoint_ops)
15409 (record_full_beneath_to_remove_breakpoint_ops)
15410 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15411 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15412 tmp_to_remove_breakpoint_ops,
15413 record_full_beneath_to_insert_breakpoint_ops, and
15414 record_full_beneath_to_remove_breakpoint_ops.
15415 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15416 (m32r_remove_breakpoint): Add target_ops parameter.
15417 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15418 Add target_ops parameter.
15419 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15420 Add target_ops parameter.
15421
cecac1ab
MM
154222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15423 Markus Metzger <markus.t.metzger@intel.com>
15424
15425 * record-btrace.c: Include frame-unwind.h.
15426 (record_btrace_frame_unwind_stop_reason)
15427 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15428 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15429 New.
15430 (init_record_btrace_ops): Install it.
15431
824344ca
MM
154322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15433
15434 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15435 get_prev_frame_1.
15436
32261e52
MM
154372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15438
15439 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15440 earlier.
15441
ea001bdc
MM
154422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15443
15444 * frame-unwind.c: Include target.h.
15445 (frame_unwind_try_unwinder): New function with code from ...
15446 (frame_unwind_find_by_frame): ... here. New variable
15447 unwinder_from_target, call also target_get_unwinder)
15448 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15449 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15450 * target.h (struct target_ops): New fields to_get_unwinder and
15451 to_get_tailcall_unwinder.
15452 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15453
1f3ef581
MM
154542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15455
15456 * record-btrace.c (record_btrace_fetch_registers)
15457 (record_btrace_store_registers)
15458 (record_btrace_to_prepare_to_store): New.
15459 (init_record_btrace_ops): Add the above.
15460
f32dbf8c
MM
154612014-01-16 Tom Tromey <tromey@redhat.com>
15462
15463 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15464 * target.h (struct target_ops) <to_prepare_to_store>: Add
15465 argument.
15466 (target_prepare_to_store): Add argument.
15467 * target.c (debug_to_prepare_to_store): Add argument.
15468 (update_current_target): Update.
15469 * remote.c (remote_prepare_to_store): Add 'self' argument.
15470 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15471 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15472 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15473 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15474 argument.
15475 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15476 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15477 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15478 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15479 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15480
07bbe694
MM
154812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15482
15483 * btrace.h (replay) <replay>: New.
15484 (btrace_is_replaying): New.
15485 * btrace.c (btrace_clear): Free replay iterator.
15486 (btrace_is_replaying): New.
15487 * record-btrace.c (record_btrace_is_replaying): New.
15488 (record_btrace_info): Print insn number if replaying.
15489 (record_btrace_insn_history): Start at replay position.
15490 (record_btrace_call_history): Start at replay position.
15491 (init_record_btrace_ops): Init to_record_is_replaying.
15492
0688d04e
MM
154932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15494
15495 * record-btrace.c (record_btrace_insn_history_range): Include
15496 end.
15497 (record_btrace_insn_history_from): Adjust range.
15498 (record_btrace_call_history_range): Include
15499 end.
15500 (record_btrace_call_history_from): Adjust range.
15501 * NEWS: Announce changes.
15502
8710b709
MM
155032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15504
15505 * record.h (enum record_print_flag)
15506 <record_print_indent_calls>: New.
15507 * record.c (get_call_history_modifiers): Recognize /c modifier.
15508 (_initialize_record): Document /c modifier.
15509 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15510 Reorder fields. Optionally indent the function name. Update
15511 all users.
15512 * NEWS: Announce changes.
15513
d0fa7535
MM
155142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15515
15516 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15517
5de9129b
MM
155182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15519
15520 * btrace.c (ftrace_new_function): Start counting at one.
15521 * record-btrace.c (record_btrace_info): Adjust number of calls
15522 and insns.
15523 * NEWS: Announce it.
15524
7acbe133
MM
155252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15526
15527 * record-btrace.c (btrace_call_history_insn_range): Print
15528 insn range as [begin, end].
15529
23a7fe75
MM
155302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15531
15532 * btrace.h (struct btrace_func_link): New.
15533 (enum btrace_function_flag): New.
15534 (struct btrace_inst): Rename to ...
15535 (struct btrace_insn): ...this. Update all users.
15536 (struct btrace_func) <ibegin, iend>: Remove.
15537 (struct btrace_func_link): New.
15538 (struct btrace_func): Rename to ...
15539 (struct btrace_function): ...this. Update all users.
15540 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15541 (number, level, flags>: New.
15542 (struct btrace_insn_iterator): Rename to ...
15543 (struct btrace_insn_history): ...this.
15544 Update all users.
15545 (struct btrace_insn_iterator, btrace_call_iterator): New.
15546 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15547 (struct btrace_target_info) <begin, end, level>
15548 <insn_history, call_history>: New.
15549 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15550 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15551 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15552 (btrace_call_number, btrace_call_begin, btrace_call_end)
15553 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15554 (btrace_find_function_by_number, btrace_set_insn_history)
15555 (btrace_set_call_history): New.
15556 * btrace.c (btrace_init_insn_iterator)
15557 (btrace_init_func_iterator, compute_itrace): Remove.
15558 (ftrace_print_function_name, ftrace_print_filename)
15559 (ftrace_skip_file): Change
15560 parameter to const.
15561 (ftrace_init_func): Remove.
15562 (ftrace_debug): Use new btrace_function fields.
15563 (ftrace_function_switched): Also consider gaining and
15564 losing symbol information).
15565 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15566 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15567 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15568 New.
15569 (ftrace_new_function): Move. Remove debug print.
15570 (ftrace_update_lines, ftrace_update_insns): New.
15571 (ftrace_update_function): Check for call, ret, and jump.
15572 (compute_ftrace): Renamed to ...
15573 (btrace_compute_ftrace): ...this. Rewritten to compute call
15574 stack.
15575 (btrace_fetch, btrace_clear): Updated.
15576 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15577 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15578 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15579 (btrace_call_number, btrace_call_begin, btrace_call_end)
15580 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15581 (btrace_find_function_by_number, btrace_set_insn_history)
15582 (btrace_set_call_history): New.
15583 * record-btrace.c (require_btrace): Use new btrace thread
15584 info fields.
15585 (record_btrace_info, btrace_insn_history)
15586 (record_btrace_insn_history, record_btrace_insn_history_range):
15587 Use new btrace thread info fields and new iterator.
15588 (btrace_func_history_src_line): Rename to ...
15589 (btrace_call_history_src_line): ...this. Use new btrace
15590 thread info fields.
15591 (btrace_func_history): Rename to ...
15592 (btrace_call_history): ...this. Use new btrace thread info
15593 fields and new iterator.
15594 (record_btrace_call_history, record_btrace_call_history_range):
15595 Use new btrace thread info fields and new iterator.
15596
8372a7cb
MM
155972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15598
15599 * frame.h (frame_id_build_unavailable_stack_special): New.
15600 * frame.c (frame_id_build_unavailable_stack_special): New.
15601
c2170eef
MM
156022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15603
15604 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15605 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15606 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15607 to gdbarch.
15608 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15609 (i386_insn_is_jump, i386_jmp_p): New.
15610 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15611 insn_is_jump to gdbarch.
15612 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15613 * gdbarch.h: Regenerated.
15614 * gdbarch.c: Regenerated.
15615 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15616 (default_insn_is_jump): New.
15617 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15618 (default_insn_is_jump): New.
15619
864089d2
MM
156202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15621
15622 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15623 Change to ...
15624 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15625 (btrace_read_type) <btrace_read_new>: Change to ...
15626 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15627
ed9edfb5
MM
156282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15629
15630 * common/linux-btrace.c (linux_read_btrace): Free trace from
15631 previous iteration.
15632
fbcbc3fd
DE
156332014-01-15 Doug Evans <dje@google.com>
15634
15635 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15636 uint32_t.
15637
3d548a53
TT
156382014-01-15 Tom Tromey <tromey@redhat.com>
15639
15640 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15641 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15642 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15643 (set_objfile_main_name): New function.
15644 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15645 language_of_main>: New fields.
15646 (set_objfile_main_name): Declare.
15647 * symtab.c (find_main_name): Loop over objfiles to find the main
15648 name and language.
15649 (set_main_name): Now static.
15650 (get_main_info): Add comment.
15651 * symtab.h (set_main_name): Don't declare.
15652
32ac0d11
TT
156532014-01-15 Tom Tromey <tromey@redhat.com>
15654
15655 * symtab.c (main_progspace_key): New global.
15656 (struct main_info): New.
15657 (name_of_main, language_of_main): Remove.
15658 (get_main_info, main_info_cleanup): New function.
15659 (set_main_name, main_name, main_language): Use get_main_info.
15660 (_initialize_symtab): Initialize main_progspace_key.
15661
9e6c82ad
TT
156622014-01-15 Tom Tromey <tromey@redhat.com>
15663
15664 * dbxread.c (process_one_symbol): Update.
15665 * dwarf2read.c (read_partial_die): Update.
15666 * symfile.c (set_initial_language): Call main_language.
15667 * symtab.c (language_of_main): Now static.
15668 (set_main_name): Add 'lang' parameter.
15669 (find_main_name): Update.
15670 (main_language): New function.
15671 (symtab_observer_executable_changed): Update.
15672 * symtab.h (set_main_name): Update.
15673 (language_of_main): Remove.
15674 (main_language): Declare.
15675
6ef55de7
TT
156762014-01-15 Tom Tromey <tromey@redhat.com>
15677
15678 * symfile.c (init_entry_point_info): Use new "initialized" field.
15679 Update.
15680 * objfiles.h (struct entry_point) <initialized>: New field.
15681 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15682 (struct objfile) <ei>: ...here. Remove.
15683 * objfiles.c (entry_point_address_query): Update.
15684
53eddfa6
TT
156852014-01-15 Tom Tromey <tromey@redhat.com>
15686
15687 * objfiles.c (entry_point_address_query): Relocate entry point
15688 address.
15689 (objfile_relocate1): Do not relocate entry point address.
15690 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15691 <the_bfd_section_index>: New field.
15692 * symfile.c (init_entry_point_info): Find the entry point's
15693 section.
15694
d56e56aa
TT
156952014-01-15 Tom Tromey <tromey@redhat.com>
15696
15697 * solib-frv.c (enable_break): Use entry_point_address_query.
15698
33a97bbe
OJ
156992014-01-15 Omair Javaid <omair.javaid@linaro.org>
15700
15701 * NEWS: Add note on improved process record-replay on
15702 arm*-linux* targets.
15703
c6ec2b30
OJ
157042014-01-15 Omair Javaid <omair.javaid@linaro.org>
15705
15706 * arm-tdep.c (enum arm_record_result): New enum.
15707 (arm_record_unsupported_insn): New function.
15708 (arm_record_coproc_data_proc): Removed.
15709 (thumb2_record_ld_st_multiple): New function.
15710 (thumb2_record_ld_st_dual_ex_tbb): New function.
15711 (thumb2_record_data_proc_sreg_mimm): New function.
15712 (thumb2_record_ps_dest_generic): New function.
15713 (thumb2_record_branch_misc_cntrl): New function.
15714 (thumb2_record_str_single_data): New function.
15715 (thumb2_record_ld_mem_hints): New function.
15716 (thumb2_record_ld_word): New function.
15717 (thumb2_record_lmul_lmla_div): New function.
15718 (thumb2_record_decode_insn_handler): New function.
15719 (decode_insn): Add thumb32 instruction handlers.
15720
97dfe206
OJ
157212014-01-15 Omair Javaid <omair.javaid@linaro.org>
15722
15723 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15724 (struct arm_linux_record_tdep): Declare.
15725 (arm_canonicalize_syscall): New function.
15726 (arm_all_but_pc_registers_record): New function.
15727 (arm_linux_syscall_record): New function.
15728 (arm_linux_init_abi): Add syscall recording constructs.
15729 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15730 decoding. (arm_record_coproc_data_proc): Update arm syscall
15731 decoding.
15732 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15733 <arm_syscall_record>: New field.
15734 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15735 gdb_target_obs.
15736
9904a494
OJ
157372014-01-15 Omair Javaid <omair.javaid@linaro.org>
15738
15739 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15740 register for push instruction recording.
15741
f969241e
OJ
157422014-01-15 Omair Javaid <omair.javaid@linaro.org>
15743
15744 * arm-tdep.c (thumb_record_misc): Update to correct logical
15745 error while recording ldm, ldmia and pop instructions.
15746
bfbbec00
OJ
157472014-01-15 Omair Javaid <omair.javaid@linaro.org>
15748
15749 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15750
e40adcc9
PA
157512014-01-15 Pedro Alves <palves@redhat.com>
15752
15753 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15754 (go32_resume, go32_fetch_registers, store_register)
15755 (go32_store_registers, go32_prepare_to_store)
15756 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15757 (go32_create_inferior, go32_can_run, go32_terminal_init)
15758 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15759 declarations.
15760
b0a16e66
TT
157612014-01-15 Tom Tromey <tromey@redhat.com>
15762
15763 * target.h (async_callback_ftype): New typedef.
15764 (struct target_ops) <to_async>: Use it.
15765
bf7105a4
JB
157662014-01-15 Joel Brobecker <brobecker@adacore.com>
15767
15768 * python/py-value.c (get_field_type): Remove unnecessary curly
15769 braces for single-statement if block.
15770
a8f35c2e
JB
157712014-01-15 Joel Brobecker <brobecker@adacore.com>
15772
15773 * python/py-type.c (convert_field): Add missing empty line
15774 after declarations.
15775
bb4142cf
DE
157762014-01-14 Doug Evans <dje@google.com>
15777
15778 * symfile.h (expand_symtabs_matching): Renamed from
15779 expand_partial_symbol_names. Update prototype.
15780 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15781 * symfile.c (expand_symtabs_matching): Renamed from
15782 expand_partial_symbol_names. New args file_matcher, kind.
15783 Rename arg fun to symbol_matcher.
15784 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15785 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15786 ada_expand_partial_symbol_name.
15787 (ada_make_symbol_completion_list): Update to call
15788 expand_symtabs_matching.
15789 (ada_add_global_exceptions): Call expand_symtabs_matching.
15790 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15791 call map_symbol_filenames.
15792 * symtab.c (sources_info): Update to call map_symbol_filenames.
15793 (search_symbols): Call expand_symtabs_matching.
15794 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15795 (default_make_symbol_completion_list_break_on): Update to call
15796 expand_symtabs_matching.
15797 (make_source_files_completion_list): Update to call
15798 map_symbol_filenames.
15799
206f2a57
DE
158002014-01-14 Doug Evans <dje@google.com>
15801
15802 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15803 (expand_symtabs_symbol_matcher_ftype): New typedef.
15804 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15805 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15806 * symfile.c (expand_partial_symbol_names): Update to use
15807 expand_symtabs_symbol_matcher_ftype.
15808 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15809 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15810 Arg name_matcher renamed to symbol_matcher.
15811 * psymtab.c (recursively_search_psymtabs): Update to use
15812 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15813 sym_matcher.
15814 (expand_symtabs_matching_via_partial): Update to use
15815 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15816 Arg name_matcher renamed to symbol_matcher.
15817
540c2971
DE
158182014-01-14 Doug Evans <dje@google.com>
15819
15820 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15821 (map_partial_symbol_filenames): Ditto.
15822 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15823 (map_partial_symbol_filenames): Ditto.
15824 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15825 (map_partial_symbol_filenames): Ditto.
15826 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15827 (map_partial_symbol_filenames): Ditto.
15828 * symtab.c: Delete #include "psymtab.h".
15829
8213266a
PA
158302014-01-14 Pedro Alves <palves@redhat.com>
15831 Tom Tromey <tromey@redhat.com>
15832
15833 * infrun.c (use_displaced_stepping): Use find_record_target
15834 instead of RECORD_IS_USED.
15835 (adjust_pc_after_break): Use record_full_is_used instead of
15836 RECORD_IS_USED.
15837 * record-btrace.c (record_btrace_open): Call record_preopen
15838 instead of checking RECORD_IS_USED.
15839 * record-full.c (record_full_shortname)
15840 (record_full_core_shortname): New globals.
15841 (record_full_is_used): New function.
15842 (find_full_open): Call record_preopen instead of checking
15843 RECORD_IS_USED.
15844 (init_record_full_ops): Set the target's shortname to
15845 record_full_shortname.
15846 (init_record_full_core_ops): Set the target's shortname to
15847 record_full_core_shortname.
15848 * record-full.h (record_full_is_used): Declare.
15849 * record.c (find_record_target): Make extern.
15850 (record_preopen): New function.
15851 * record.h (RECORD_IS_USED): Delete macro.
15852 (find_record_target, record_preopen): Declare functions.
15853
7ec1862d
YQ
158542014-01-14 Yao Qi <yao@codesourcery.com>
15855
15856 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15857 'len''s type to ULONGEST.
15858 (core_xfer_shared_libraries_aix): Likewise.
15859 * gdbarch.c, gdbarch.h: Regenerated.
15860 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15861 Change type of 'len' to ULONGEST.
15862 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15863 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15864
dea80a27
YQ
158652014-01-14 Yao Qi <yao@codesourcery.com>
15866
15867 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15868 type of 'len' to ULONGEST.
15869 (linux_xfer_osdata_processgroups): Likewise.
15870 (linux_xfer_osdata_threads): Likewise.
15871 (linux_xfer_osdata_fds): Likewise.
15872 (linux_xfer_osdata_isockets): Likewise.
15873 (linux_xfer_osdata_shm): Likewise.
15874 (linux_xfer_osdata_sem): Likewise.
15875 (linux_xfer_osdata_msg): Likewise.
15876 (linux_common_xfer_osdata): Likewise.
15877 (struct osdata_type) <getter>: Likewise.
15878 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15879 the declaration.
15880
b55e14c7
YQ
158812014-01-14 Yao Qi <yao@codesourcery.com>
15882
15883 * target.h (target_xfer_partial_ftype): Update.
15884 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15885 ULONGEST.
15886 * aix-thread.c (aix_thread_xfer_partial): Change type of
15887 argument 'len' to ULONGEST.
15888 * auxv.c (procfs_xfer_auxv): Likewise.
15889 (ld_so_xfer_auxv): Likewise.
15890 (memory_xfer_auxv): Likewise.
15891 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15892 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15893 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15894 * corelow.c (core_xfer_partial): Likewise.
15895 * ctf.c (ctf_xfer_partial): Likewise.
15896 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15897 '%u'.
15898 (darwin_read_dyld_info): Likewise.
15899 (darwin_xfer_partial): Likewise.
15900 * exec.c (section_table_xfer_memory_partial): Likewise.
15901 (exec_xfer_partial): Likewise.
15902 * exec.h (section_table_xfer_memory_partial): Update
15903 declaration.
15904 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15905 instead of plongest.
15906 (gnu_xfer_partial): Likewise.
15907 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15908 (ia64_hpux_xfer_solib_got): Likewise.
15909 (ia64_hpux_xfer_partial): Likewise.
15910 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15911 * inf-ptrace.c (inf_ptrace_xfer_partial):
15912 * inf-ttrace.c (inf_ttrace_xfer_partial):
15913 * linux-nat.c (linux_xfer_siginfo): Likewise.
15914 (linux_nat_xfer_partial): Likewise.
15915 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15916 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15917 * monitor.c (monitor_xfer_memory): Likewise.
15918 (monitor_xfer_partial): Likewise.
15919 * procfs.c (procfs_xfer_partial): Likewise.
15920 * record-full.c (record_full_xfer_partial): Likewise.
15921 (record_full_core_xfer_partial): Likewise.
15922 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15923 instead of plongest.
15924 (gdbsim_xfer_partial): Likewise.
15925 * remote.c (remote_xfer_partial): Likewise.
15926 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15927 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15928 declaration.
15929 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15930 (rs6000_xfer_shared_libraries): Likewise.
15931 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15932 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15933 (sparc_xfer_partial): Likewise.
15934 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15935 (spu_xfer_partial): Likewise.
15936 * spu-multiarch.c (spu_xfer_partial): Likewise.
15937 * target.c (target_read_live_memory): Likewise.
15938 (memory_xfer_live_readonly_partial): Likewise.
15939 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15940 (target_xfer_partial, default_xfer_partial): Likewise.
15941 (current_xfer_partial): Likewise.
15942 * tracepoint.c (tfile_xfer_partial): Likewise.
15943 * windows-nat.c (windows_xfer_memory): Likewise. Call
15944 pulongest instead of plongest.
15945 (windows_xfer_partial): Likewise.
15946 (windows_xfer_shared_libraries): Likewise.
15947
05804640
YQ
159482014-01-14 Yao Qi <yao@codesourcery.com>
15949
15950 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15951 target_xfer_partial_ftype.
15952
b5b08fb4
SC
159532014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15954
15955 PR python/15464
15956 PR python/16113
15957 * valops.c (value_struct_elt_bitpos): New function
15958 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15959 object to 'None' if the field name is an empty string ("").
15960 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15961 attribute to look for a field when 'name' is 'None'.
15962 (get_field_type): New function
15963
13aaf454
DE
159642014-01-13 Doug Evans <dje@google.com>
15965
15966 PR symtab/16426
15967 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15968 (try_open_dwop_file): Ditto.
15969 * gdb_bfd.c: #include "vec.h".
15970 (bfdp): New typedef.
15971 (struct gdb_bfd_data): New member included_bfds.
15972 (gdb_bfd_unref): Unref all included bfds.
15973 (gdb_bfd_record_inclusion): New function.
15974 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15975
c2cec97c
TT
159762014-01-13 Tom Tromey <tromey@redhat.com>
15977
15978 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15979
78e5999d
TT
159802014-01-13 Tom Tromey <tromey@redhat.com>
15981
15982 * defs.h (use_windows): Remove.
15983 * gdb.c (main): Update.
15984 * main.c (captured_main, gdb_main): Update.
15985 * main.h (struct captured_main_args) <use_windows>: Remove.
15986 * top.c (use_windows): Remove.
15987
f2052bbe
TT
159882014-01-13 Tom Tromey <tromey@redhat.com>
15989
15990 * defs.h (deprecated_flush_hook): Remove.
15991
fde4f8ed
JK
159922014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15993
15994 PR threads/16216
15995 * linux-thread-db.c (try_thread_db_load): Add parameter
15996 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15997 (try_thread_db_load_from_pdir_1): Move it there from here.
15998 (try_thread_db_load_from_sdir): Update caller.
15999 (try_thread_db_load_from_dir): Move it there from here.
16000
bdf61915
PP
160012014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16002
16003 * regformats/regdat.sh: Always rewrite the register file.
16004
f71e1a8d
PA
160052014-01-13 Pedro Alves <palves@redhat.com>
16006
16007 * Makefile.in (CHECK_HEADERS): New variable.
16008 (check-headers:): New rule.
16009
42c85435
TT
160102014-01-13 Tom Tromey <tromey@redhat.com>
16011
16012 * cli/cli-setshow.c (do_set_command): Update.
16013 * defs.h (deprecated_set_hook): Remove.
16014 * top.c (deprecated_set_hook): Remove.
16015
f8de5129
PA
160162014-01-13 Pedro Alves <palves@redhat.com>
16017
16018 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16019 the tracepoint if the PC is a pseudo-register.
16020
fc270c35
TT
160212014-01-13 Tom Tromey <tromey@redhat.com>
16022
16023 * defs.h (XCALLOC): Remove.
16024 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16025 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16026 * dwarf2loc.c (allocate_piece_closure): Likewise.
16027 * elfread.c (elf_symfile_segments): Likewise.
16028 (elf_symfile_segments): Likewise.
16029 * gdbtypes.c (copy_type_recursive): Likewise.
16030 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16031 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16032 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16033 XCALLOC.
16034 * mt-tdep.c (mt_gdbarch_init): Likewise.
16035 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16036 XCALLOC.
16037 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16038 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16039 * registry.c (registry_alloc_data): Likewise.
16040 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16041 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16042 * serial.c (serial_fdopen_ops): Likewise.
16043 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16044 XCALLOC.
16045 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16046 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16047 not XCALLOC.
16048
70ba0933
TT
160492014-01-13 Tom Tromey <tromey@redhat.com>
16050
16051 * defs.h (XMALLOC): Remove.
16052 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16053 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16054 * cli-out.c (struct ui_out *): Likewise.
16055 * cli/cli-dump.c (add_dump_command): Likewise.
16056 (add_dump_command): Likewise.
16057 * complaints.c (get_complaints): Likewise.
16058 (find_complaint): Likewise.
16059 * dwarf2-frame.c (execute_cfa_program): Likewise.
16060 * dwarf2read.c (abbrev_table_read_table): Likewise.
16061 * gdbarch.sh: Likewise.
16062 * gdbarch.c: Rebuild.
16063 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16064 * interps.c (interp_new): Likewise.
16065 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16066 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16067 * mi/mi-console.c (mi_console_file_new): Likewise.
16068 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16069 * mi/mi-out.c (mi_out_new): Likewise.
16070 * mi/mi-parse.c (mi_parse): Likewise.
16071 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16072 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16073 * observer.c (xalloc_observer_list_node): Likewise.
16074 * regcache.c (regcache_xmalloc_1): Likewise.
16075 * reggroups.c (reggroup_new): Likewise.
16076 (_initialize_reggroup): Likewise.
16077 * registry.c (register_data_with_cleanup): Likewise.
16078 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16079 * ser-base.c (serial_ttystate): Likewise.
16080 * ser-mingw.c (make_pipe_state): Likewise.
16081 * ser-pipe.c (pipe_open): Likewise.
16082 * serial.c (serial_open): Likewise.
16083 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16084 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16085 (tui_alloc_win_info): Likewise.
16086 (tui_add_content_elements): Likewise.
16087 * tui/tui-file.c (tui_file_new): Likewise.
16088 * tui/tui-out.c (tui_out_new): Likewise.
16089 * ui-file.c (mem_file_new): Likewise.
16090 * ui-out.c (push_level): Likewise.
16091 (make_cleanup_ui_out_end): Likewise.
16092 (append_header_to_list): Likewise.
16093 (ui_out_new): Likewise.
16094 * user-regs.c (user_reg_add_builtin): Likewise.
16095
41bf6aca
TT
160962014-01-13 Tom Tromey <tromey@redhat.com>
16097
16098 * defs.h (XZALLOC): Remove.
16099 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16100 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16101 (get_ada_tasks_inferior_data): Likewise.
16102 * auto-load.c (get_auto_load_pspace_data): Likewise.
16103 * auxv.c (get_auxv_inferior_data): Likewise.
16104 * bfd-target.c (target_bfd_reopen): Likewise.
16105 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16106 (deprecated_insert_raw_breakpoint): Likewise.
16107 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16108 * corelow.c (core_open): Likewise.
16109 * darwin-nat.c (darwin_check_new_threads): Likewise.
16110 (darwin_attach_pid): Likewise.
16111 * dummy-frame.c (dummy_frame_push): Likewise.
16112 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16113 * dwarf2loc.c (allocate_piece_closure): Likewise.
16114 * elfread.c (elf_symfile_segments): Likewise.
16115 * eval.c (ptrmath_type_p): Likewise.
16116 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16117 * gdbtypes.c (alloc_type_arch): Likewise.
16118 (alloc_type_instance): Likewise.
16119 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16120 * inf-child.c (inf_child_can_use_agent): Likewise.
16121 * inflow.c (get_inflow_inferior_data): Likewise.
16122 * infrun.c (save_infcall_suspend_state): Likewise.
16123 * jit.c (jit_reader_load): Likewise.
16124 (get_jit_objfile_data): Likewise.
16125 (get_jit_program_space_data): Likewise.
16126 (jit_object_open_impl): Likewise.
16127 (jit_symtab_open_impl): Likewise.
16128 (jit_block_open_impl): Likewise.
16129 (jit_frame_sniffer): Likewise.
16130 * linux-fork.c (add_fork): Likewise.
16131 * maint.c (make_command_stats_cleanup): Likewise.
16132 * objfiles.c (get_objfile_pspace_data): Likewise.
16133 * opencl-lang.c (struct lval_closure): Likewise.
16134 * osdata.c (osdata_start_osdata): Likewise.
16135 * progspace.c (new_address_space): Likewise.
16136 (add_program_space): Likewise.
16137 * remote-sim.c (get_sim_inferior_data): Likewise.
16138 * sh-tdep.c (sh_gdbarch_init): Likewise.
16139 * skip.c (Ignore): Likewise.
16140 (skip_delete_command): Likewise.
16141 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16142 (library_list_start_library): Likewise.
16143 (solib_aix_current_sos): Likewise.
16144 * solib-darwin.c (get_darwin_info): Likewise.
16145 (darwin_current_sos): Likewise.
16146 * solib-dsbt.c (get_dsbt_info): Likewise.
16147 * solib-ia64-hpux.c (new_so_list): Likewise.
16148 (ia64_hpux_get_solib_linkage_addr): Likewise.
16149 * solib-spu.c (append_ocl_sos): Likewise.
16150 (spu_current_sos): Likewise.
16151 * solib-svr4.c (get_svr4_info): Likewise.
16152 (svr4_keep_data_in_core): Likewise.
16153 (library_list_start_library): Likewise.
16154 (svr4_default_sos): Likewise.
16155 (svr4_read_so_list): Likewise.
16156 * solib-target.c (library_list_start_library): Likewise.
16157 (solib_target_current_sos): Likewise.
16158 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16159 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16160 * symfile.c (default_symfile_segments): Likewise.
16161 * target-descriptions.c (tdesc_data_init): Likewise.
16162 (tdesc_create_reg): Likewise.
16163 (struct tdesc_type *): Likewise.
16164 (tdesc_create_vector): Likewise.
16165 (tdesc_set_struct_size): Likewise.
16166 (struct tdesc_type *): Likewise.
16167 (tdesc_free_feature): Likewise.
16168 (tdesc_create_feature): Likewise.
16169 * windows-nat.c (windows_add_thread): Likewise.
16170 (windows_make_so): Likewise.
16171 * xml-support.c (gdb_xml_body_text): Likewise.
16172 (gdb_xml_create_parser_and_cleanup): Likewise.
16173 (xml_process_xincludes): Likewise.
16174 * xml-syscall.c (allocate_syscalls_info): Likewise.
16175 (syscall_create_syscall_desc): Likewise.
16176
5acfdbae
SDJ
161772014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16178
16179 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16180 function, with code from i386_stap_parse_special_token.
16181 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16182 (i386_stap_parse_special_token): Move code to the two functions
16183 above; simplify it.
16184
0000e5cc
PA
161852014-01-09 Pedro Alves <palves@redhat.com>
16186 Hui Zhu <hui@codesourcery.com>
16187
16188 PR gdb/16101
16189 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16190 bp_err_string. Don't mark the location shlib_disabled if the
16191 error thrown wasn't a generic or memory error. Catch errors
16192 thrown while inserting breakpoints in overlayed code. Output
16193 error message of software breakpoints.
16194 * remote.c (remote_insert_breakpoint): If this breakpoint has
16195 target-side commands but this stub doesn't support Z0 packets,
16196 throw NOT_SUPPORTED_ERROR error.
16197 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16198 * target.h (target_insert_breakpoint): Extend comment.
16199 (target_insert_hw_breakpoint): Add comment.
16200
b7ea362b
PA
162012014-01-08 Pedro Alves <palves@redhat.com>
16202
16203 * remote.c (remote_add_thread): Add threads silently if starting
16204 up.
16205 (remote_notice_new_inferior): If in all-stop, and starting up,
16206 don't call notice_new_inferior.
16207 (get_current_thread): New function, factored out from ...
16208 (add_current_inferior_and_thread): ... this. Adjust.
16209 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16210 found any thread, then select the remote's current thread as GDB's
16211 current thread too.
16212
b7bba001
JB
162132014-01-08 Joel Brobecker <brobecker@adacore.com>
16214
16215 * NEWS: Create a new section for the next release branch.
16216 Rename the section of the current branch, now that it has
16217 been cut.
16218
16dfbded
JB
162192014-01-08 Joel Brobecker <brobecker@adacore.com>
16220
16221 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16222 * version.in: Bump version to 7.7.50.DATE-cvs.
16223
22c90ac1
YQ
162242014-01-08 Yao Qi <yao@codesourcery.com>
16225
16226 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16227 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16228 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16229
d64ad97c
YQ
162302014-01-08 Yao Qi <yao@codesourcery.com>
16231
16232 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16233 return value of bfd_get_filename to symbol_file_add_from_bfd.
16234
f93ba80c
PM
162352014-01-08 Pierre Muller <muller@sourceware.org>
16236
16237 Fix PR16201.
16238 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16239 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16240 to prim_record_mininal_symbol_and_info.
16241 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16242 in call to prim_record_minimal_symbol_and_info.
16243 (read_pe_exported_syms): Set index field of section_data.
16244
a4d9ba85
AP
162452014-01-07 Andrew Pinski <apinski@cavium.com>
16246
16247 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16248 * features/aarch64.c: Regenerate.
16249
1b67eb02
AS
162502014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16251
16252 * target.c (return_null): Define.
16253 (update_current_target): Use it instead of return_zero for
16254 functions that return a pointer.
16255
5e3f4fab
EBM
162562014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16257
16258 * source.c (add_path): Fix check for duplicated paths in the previously
16259 included paths.
16260
e2616788
HK
162612014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16262
16263 * ada-lang.c: Remove duplicated include statements.
16264 * alphabsd-nat.c: Ditto.
16265 * amd64-darwin-tdep.c: Ditto.
16266 * amd64fbsd-nat.c: Ditto.
16267 * auto-load.c: Ditto.
16268 * ax-gdb.c: Ditto.
16269 * breakpoint.c: Ditto.
16270 * dbxread.c: Ditto.
16271 * fork-child.c: Ditto.
16272 * gdb_usleep.c: Ditto.
16273 * i386-darwin-tdep.c: Ditto.
16274 * i386fbsd-nat.c: Ditto.
16275 * infcmd.c: Ditto.
16276 * inferior.c: Ditto.
16277 * jv-lang.c: Ditto.
16278 * linux-nat.c: Ditto.
16279 * linux-tdep.c: Ditto.
16280 * m68kbsd-nat.c: Ditto.
16281 * m68klinux-nat.c: Ditto.
16282 * microblaze-tdep.c: Ditto.
16283 * mips-linux-tdep.c: Ditto.
16284 * mn10300-tdep.c: Ditto.
16285 * nto-tdep.c: Ditto.
16286 * opencl-lang.c: Ditto.
16287 * osdata.c: Ditto.
16288 * printcmd.c: Ditto.
16289 * regcache.c: Ditto.
16290 * remote-m32r-sdi.c: Ditto.
16291 * remote.c: Ditto.
16292 * symfile.c: Ditto.
16293 * symtab.c: Ditto.
16294 * tilegx-linux-nat.c: Ditto.
16295 * tilegx-tdep.c: Ditto.
16296 * tracepoint.c: Ditto.
16297 * valops.c: Ditto.
16298 * vaxbsd-nat.c: Ditto.
16299 * windows-nat.c: Ditto.
16300 * xtensa-tdep.c: Ditto.
16301
bd1f7788
YQ
163022014-01-07 Yao Qi <yao@codesourcery.com>
16303
16304 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16305
79301218
JB
163062014-01-07 Yao Qi <yao@codesourcery.com>
16307 Joel Brobecker <brobecker@adacore.com>
16308
16309 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16310 (pdc_write_regs): Likewise.
16311 (fetch_regs_kernel_thread): Likewise.
16312 (store_regs_kernel_thread): Likewise.
16313
163142014-01-07 Joel Brobecker <brobecker@adacore.com>
16315
16316 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16317 tagged type objects to their actual type.
16318
8e355c5d
JB
163192014-01-07 Joel Brobecker <brobecker@adacore.com>
16320
16321 * ada-valprint.c (print_field_values): Add "language" parameter.
16322 Update calls to print_field_values and print_variant_part.
16323 Pass new parameter "language" in call to val_print instead
16324 of "current_language". Replace call to ada_val_print by call
16325 to val_print.
16326 (print_variant_part): Add "language" parameter.
16327 (ada_val_print_struct_union): Update call to print_field_values.
16328
4fbf5aa5
JB
163292014-01-07 Joel Brobecker <brobecker@adacore.com>
16330
16331 * ada-valprint.c (ui_memcpy): Delete.
16332 (ada_print_floating): Update documentation. Add empty line
16333 between between function documentation and implementation.
16334 Delete variable "buffer". Use ui_file_xstrdup in place of
16335 ui_file_put. Minor adjustments following this change.
16336
71855601
JB
163372014-01-07 Joel Brobecker <brobecker@adacore.com>
16338
16339 * ada-valprint.c (ada_val_print_string): New function,
16340 extracted from ada_val_print_array.
16341 (ada_val_print_array): Replace extracted code by call
16342 to ada_val_print_string followed by a return. Move
16343 "else" branch to the function's top block.
16344
4eb27a30
JB
163452014-01-07 Joel Brobecker <brobecker@adacore.com>
16346
16347 * ada-valprint.c (ada_val_print_array): Move implementation
16348 down. Rename parameter "offset" and "val" into "offset_aligned"
16349 and "original_value" respectively. Add parameter "offset".
16350
34b27950
JB
163512014-01-07 Joel Brobecker <brobecker@adacore.com>
16352
16353 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16354 re-organizing the code. Change the "???" message printed
16355 when target type is a TYPE_CODE_UNDEF into
16356 "<ref to undefined type>".
16357
079e4591
JB
163582014-01-07 Joel Brobecker <brobecker@adacore.com>
16359
16360 * ada-valprint.c (print_record): Delete, implementation inlined...
16361 (ada_val_print_struct_union): ... here. Remove call to
16362 ada_check_typedef in inlined implementation.
16363
8004dfd1
JB
163642014-01-07 Joel Brobecker <brobecker@adacore.com>
16365
16366 * ada-valprint.c (ada_val_print_gnat_array): New function,
16367 extracted from ada_val_print_1;
16368 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16369 (ada_val_print_flt, ada_val_print_struct_union)
16370 (ada_val_print_ref): Likewise.
16371 (ada_val_print_1): Delete variables i and elttype.
16372 Replace extracted-out code by call to corresponding
16373 new functions.
16374
760a2db0
JB
163752014-01-07 Joel Brobecker <brobecker@adacore.com>
16376
16377 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16378
3a92c861
JB
163792014-01-07 Joel Brobecker <brobecker@adacore.com>
16380
16381 * ada-valprint.c (ada_val_print_1): Replace calls to
16382 ada_val_print_1 by calls to val_print.
16383
cd1630f9
JB
163842014-01-07 Joel Brobecker <brobecker@adacore.com>
16385
16386 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16387 Update calls to self accordingly. Replace calls to c_val_print
16388 by calls to val_print.
16389
bdf779a0
JB
163902014-01-07 Joel Brobecker <brobecker@adacore.com>
16391
16392 * ada-valprint.c (print_record): Delete declaration.
16393 (adjust_type_signedness, ada_val_print_1): Likewise.
16394 (ada_val_print): Move function implementation down.
16395 (print_variant_part, print_field_values, print_record):
16396 Move function implementation up.
16397
c0d48811
JB
163982014-01-07 Joel Brobecker <brobecker@adacore.com>
16399
16400 * python/py-type.c (typy_get_name): New function.
16401 (type_object_getset): Add entry for attribute "name".
16402 * NEWS: Add entry mentioning this new attribute.
16403
c26e9cbb
YQ
164042014-01-07 Yao Qi <yao@codesourcery.com>
16405
16406 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16407 statement.
16408
0cc6f43d
YQ
164092014-01-07 Yao Qi <yao@codesourcery.com>
16410
16411 * gnu-nat.c (info_port_rights): Add qualifier const to
16412 argument args.
16413
eec03155
YQ
164142014-01-07 Yao Qi <yao@codesourcery.com>
16415
16416 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16417
f04a82ef
YQ
164182014-01-07 Yao Qi <yao@codesourcery.com>
16419
16420 * gnu-nat.c (make_inf) Update declaration.
16421 (make_inf): Make it static.
16422 (inf_set_traced): Likewise.
16423 (inf_port_to_thread, inf_task_died_status): Likewise.
16424
d57dda0a
YQ
164252014-01-07 Yao Qi <yao@codesourcery.com>
16426
16427 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16428
3aa8c969
YQ
164292014-01-07 Yao Qi <yao@codesourcery.com>
16430
16431 * gnu-nat.c (_initialize_gnu_nat): Declare.
16432
94123b4f
YQ
164332014-01-07 Yao Qi <yao@codesourcery.com>
16434
16435 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16436 'enum bfd_endian'.
16437 (struct gdbarch_info) <byte_order>: Change type to
16438 'enum bfd_endian'.
16439 <byte_order_for_code>: Likewise.
16440 * gdbarch.c, gdbarch.h: Regenerated.
16441
dc81d70a
TT
164422014-01-06 Sasha Smundak <asmundak@google.com>
16443
16444 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16445
cc2f3c35
TT
164462014-01-06 Tom Tromey <tromey@redhat.com>
16447
16448 * doublest.c (convert_doublest_to_floatformat): Use const, not
16449 CONST.
16450 * somread.c (som_symtab_read): Likewise.
16451
adcf2eed
HZ
164522014-01-07 Hui Zhu <hui@codesourcery.com>
16453
16454 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16455 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16456 (gdb_bfd_fopen): Ditto.
16457 (gdb_bfd_openr): Ditto.
16458 (gdb_bfd_openw): Ditto.
16459 (gdb_bfd_openr_iovec): Ditto.
16460 (gdb_bfd_fdopenr): Ditto.
16461 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16462 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16463 with xstrdup.
16464 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16465 with xstrdup.
16466 * symfile-mem.c (symbol_file_add_from_memory): Removed
16467 gdb_bfd_stash_filename.
16468
50722198
DE
164692014-01-03 Doug Evans <dje@google.com>
16470
16471 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16472 output.
16473
2fa4b862
JB
164742014-01-01 Joel Brobecker <brobecker@adacore.com>
16475
16476 Update year range in copyright notice of all files.
16477
28498c42
JB
164782014-01-01 Joel Brobecker <brobecker@adacore.com>
16479
16480 * top.c (print_gdb_version): Set copyright year to 2014.
16481
7b6e1046
JB
164822014-01-01 Joel Brobecker <brobecker@adacore.com>
16483
16484 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16485
df96af55 16486For older changes see ChangeLog-2013.
c906108c
SS
16487\f
16488Local Variables:
16489mode: change-log
16490left-margin: 8
16491fill-column: 74
16492version-control: never
57da7796 16493coding: utf-8
c906108c 16494End:
This page took 2.390653 seconds and 4 git commands to generate.