cp-namespace.c: Whitespace cleanup.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
791244be
DE
12014-12-22 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c: Whitespace cleanup.
4
87186c6a
MMN
52014-12-20 Keith Seitz <keiths@redhat.com>
6 Mihail-Marian Nistor <mihail.nistor@freescale.com>
7
8 PR gdb/17394
9 * linespec.c (struct collect_minsyms): Add new member `symtab'.
10 (add_minsym): Handle cases where info.symtab is non-NULL.
11 (search_minsyms_for_name): Add new parameter `symtab'.
12 Handle limiting searches to a specific symtab.
13 (add_matching_symtabs_to_info): Search through minimal symbols
14 for language_asm files for which no new symbols are found.
15
bb7e3f4d
YQ
162014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
17 Nigel Stephens <nigel@mips.com>
18 Chris Dearman <chris@mips.com>
19 Luis Machado <lgustavo@codesourcery.com>
20
21 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
22 (ALLDEPFILES): Add mips-sde-tdep.c.
23 * mips-sde-tdep.c: New file containg SDE specific code.
24 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
25 gdb_target_obs.
26 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
27 * osabi.c (gdb_osabi_names): Add SDE.
28 * NEWS: Mention the change.
29
db7a9bcd
SM
302014-12-18 Simon Marchi <simon.marchi@ericsson.com>
31
32 * elfread.c (elf_symfile_init): Remove stale comment.
33 (elf_symfile_read): Same.
34 * symfile.h (struct sym_fns): Same.
35
1bab7383
YQ
362014-12-18 Nigel Stephens <nigel@mips.com>
37 Maciej W. Rozycki <macro@codesourcery.com>
38
39 * mips-tdep.c (print_fpu_flags): New function.
40 (mips_print_float_info): Likewise.
41 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
42 print_float_info routine.
43
cc86d1cb
YQ
442014-12-18 Yao Qi <yao@codesourcery.com>
45
46 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
47 * gdbarch.c: Re-generated.
48 * gdbarch.h: Likewise.
49 * infcmd.c (default_print_float_info): New function.
50 (print_float_info): Removed. Move code to
51 default_print_float_info.
52 (float_info): Adjust to call gdbarch_print_float_info.
53 * inferior.h (default_print_float_info): Declare it.
54
2ad47ec4
YQ
552014-12-18 Yao Qi <yao@codesourcery.com>
56
57 * h8300-tdep.c (h8300_print_float_info): Remove.
58 (h8300_gdbarch_init): Remove the call to
59 set_gdbarch_print_float_info.
60
253342b8
DE
612014-12-18 Doug Evans <xdje42@gmail.com>
62
63 * infcmd.c (jump_command): Minor simplification.
64
46b0da17
DE
652014-12-18 Doug Evans <xdje42@gmail.com>
66
67 * language.c (language_lookup_primitive_type): Renamed from
68 language_lookup_primitive_type_by_name. All callers updated.
69
1bc1068a
JK
702014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
71
72 Fix MinGW compilation.
73 * compile/compile.c (get_compile_file_tempdir): Call error if
74 !HAVE_MKDTEMP.
75 * config.in: Regenerate.
76 * configure: Regenerate.
77 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
78
5e3c72e6
DE
792014-12-17 Doug Evans <xdje42@gmail.com>
80
81 * valops.c (value_maybe_namespace_elt): Remove redundant call to
82 lookup_static_symbol.
83
cc485e62
DE
842014-12-17 Doug Evans <xdje42@gmail.com>
85
86 New parameter "debug symbol-lookup".
87 * NEWS: Mention it.
88 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
89 output.
90 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
91 (cp_lookup_nested_symbol): Ditto.
92 * language.c (language_lookup_primitive_type_by_name): Add debug
93 output.
94 * minsyms.c (lookup_minimal_symbol): Add debug output.
95 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
96 * symfile-debug.c (debug_objfile_name): ... from here. All callers
97 updated.
98 * objfiles.h (objfile_debug_name): Declare.
99 * symtab.h (symbol_lookup_debug): Declare.
100 * symtab.c (symbol_lookup_debug): New global.
101 (lookup_language_this): Add debug output.
102 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
103 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
104 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
105 (_initialize_symtab): Add new parameter "debug symbol-lookup".
106
0ab9ce85
DE
1072014-12-16 Doug Evans <xdje42@gmail.com>
108
109 * buildsym.c: Add comments describing how the buildsym machinery
110 is used by the various file formats.
111 (really_free_pendings): Enhance function comment.
112 See pending_macros to NULL. Simplify resetting pending_addrmap.
113 Call free_buildsym_compunit.
114 (free_buildsym_compunit): Set current_subfile to NULL.
115 (prepare_for_building): New function.
116 (start_symtab): Call it. Remove call to set_last_source_file.
117 (restart_symtab): New arg "cust". All callers updated.
118 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
119 (reset_symtab_globals): Enhance function comment.
120 Set local_symbols, file_symbols, global_symbols to NULL.
121 Set pending_macros to NULL. Simplify resetting pending_addrmap.
122 Call free_buildysym_compunit.
123 (end_symtab_without_blockvector): Delete. All callers updated.
124 (end_symtab_with_blockvector): Remove redundant call to
125 free_buildsym_compunit.
126 (augment_type_symtab): Remove arg "cust". All callers updated.
127 (buildsym_init): Remove resetting of free_pendings, file_symbols,
128 global_symbols, pending_blocks, pending_macros. Instead make
129 handling consistent with pending_addrmap: Assert value was reset
130 at end of previous symtab building. Initialize context_stack here.
131
55accf4a
DE
1322014-12-16 Doug Evans <xdje42@gmail.com>
133
134 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
135 cp_lookup_symbol_imports. All callers updated.
136
a07e3e18
DE
1372014-12-16 Doug Evans <xdje42@gmail.com>
138
139 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
140 find_type_baseclass_by_name. All callers updated.
141
d01060f0
DE
1422014-12-16 Doug Evans <xdje42@gmail.com>
143
144 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
145 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
146 (print_symbol_info): Delete arg symtab. All callers updated.
147 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
148
25dda427
AA
1492014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
150
151 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
152 "Name" columns. Assure that the output is always indented.
153
beed38b8
JB
1542014-12-16 Joel Brobecker <brobecker@adacore.com>
155
156 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
157 already defined.
158 (linux_enable_event_reporting): Add parameter "attached".
159 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
160 declaration. New function.
161 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
162 (linux_enable_event_reporting): Add new parameter "attached".
163 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
164 nonzero.
165 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
166 Use it. Update function description.
167 (linux_child_post_attach, linux_child_post_startup_inferior):
168 Update call to linux_enable_event_reporting.
169
8fda9068
YQ
1702014-12-16 Yao Qi <yao@codesourcery.com>
171
172 * NEWS: Move some entries to "Changes since GDB 7.8" section.
173
2a546367
YQ
1742014-12-16 Yao Qi <yao@codesourcery.com>
175
176 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
177 ARG_LAST.
178
c9657e70
SM
1792014-12-15 Simon Marchi <simon.marchi@ericsson.com>
180
181 * inferior.c (find_inferior_ptid): New function.
182 * inferior.h (find_inferior_ptid): New declaration.
183 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
184 * corelow.c (core_pid_to_str): Same.
185 * darwin-nat.c (darwin_resume): Same.
186 * infrun.c (fetch_inferior_event): Same.
187 (get_inferior_stop_soon): Same.
188 (handle_inferior_event): Same.
189 (handle_signal_stop): Same.
190 * linux-nat.c (resume_lwp): Same.
191 (stop_wait_callback): Same.
192 * mi/mi-interp.c (mi_new_thread): Same.
193 (mi_thread_exit): Same.
194 * proc-service.c (ps_pglobal_lookup): Same.
195 * record-btrace.c (record_btrace_step_thread): Same.
196 * remote-sim.c (gdbsim_close_inferior): Same.
197 (gdbsim_resume): Same.
198 (gdbsim_stop): Same.
199 * sol2-tdep.c (sol2_core_pid_to_str): Same.
200 * target.c (memory_xfer_partial_1): Same.
201 (default_thread_address_space): Same.
202 * thread.c (thread_change_ptid): Same.
203 (switch_to_thread): Same.
204 (do_restore_current_thread_cleanup): Same.
205
38bcc89d
SM
2062014-12-15 Simon Marchi <simon.marchi@ericsson.com>
207
208 * defs.h (gdb_readline): Constify argument.
209 (gdb_readline_wrapper): Same.
210 (command_line_input): Same.
211 (deprecated_readline_hook): Same.
212 * top.c (deprecated_readline_hook): Same.
213 (gdb_readline): Same.
214 (gdb_readline_wrapper): Same.
215 (command_line_input): Constify argument. Pass prompt_arg to called
216 functions instead of local_prompt, overwriting prompt_arg if necessary.
217 * event-top.h (display_gdb_prompt): Constify argument.
218 * event-top.c (display_gdb_prompt): Same.
219 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
220 if building with Python 3.4 and up.
221
89ed8ea1
SM
2222014-12-15 Simon Marchi <simon.marchi@ericsson.com>
223
224 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
225 os.getcwdu().
226
aacd3e8c
CU
2272014-12-15 Catalin Udma <catalin.udma@freescale.com>
228
229 PR gdb/15684
230 * memattr.c (mem_info_command): Remove "unsigned long" casts.
231
dc4d6886
DE
2322014-12-13 Doug Evans <xdje42@gmail.com>
233
234 * utils.c (make_hex_string): Fix off-by-one error.
235
c1b5a1a6
JB
2362014-12-13 Joel Brobecker <brobecker@adacore.com>
237
238 * ada-lang.h (ada_ensure_varsize_limit): Declare.
239 * ada-lang.c (check_size): Remove advance declaration.
240 (ada_ensure_varsize_limit): Renames check_size.
241 Replace calls to check_size by calls to ada_ensure_varsize_limit
242 throughout.
243 * ada-valprint.c (ada_val_print_ref): Add call to
244 ada_ensure_varsize_limit. Add comment explaining why.
245
3c46a02f
JB
2462014-12-13 Joel Brobecker <brobecker@adacore.com>
247
248 * utils.c (make_hex_string): Replace use of sprintf by use of
249 xsnprintf.
250
8e8347b8
JB
2512014-12-13 Joel Brobecker <brobecker@adacore.com>
252
253 * compile/compile-object-load.c (link_callbacks_multiple_definition)
254 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
255 newline at end of warning message.
256
f93b65a0
JB
2572014-12-13 Joel Brobecker <brobecker@adacore.com>
258
259 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
260 new "EXTRA-ARGS" parameter.
261 * configure.ac: If large-file support is disabled in GDB,
262 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
263 * configure: Regenerate.
264
5537b577
JK
2652014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 PR symtab/17642
268 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
269 TYPE if not TYPE_CODE_TYPEDEF.
270
e0782980
JB
2712014-12-13 Joel Brobecker <brobecker@adacore.com>
272
273 PR backtrace/16215:
274 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
275 the frame unwinder must either be the dwarf2_frame_unwind
276 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
277 stack_addr is valid before calling get_frame_base. Throw
278 an error if not valid.
279
ae6a105d
DE
2802014-12-12 Doug Evans <xdje42@gmail.com>
281
282 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
283 result != NULL.
284
59da4d04
DE
2852014-12-12 Doug Evans <xdje42@gmail.com>
286
287 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
288 All callers updated. Rename arg "namespace" to "symbol_name".
289
83827540
DE
2902014-12-12 Doug Evans <xdje42@gmail.com>
291
292 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
293 partial_map_symtabs_matching_filename. All uses updated.
294 (psym_find_pc_sect_compunit_symtab): Renamed from
295 find_pc_sect_compunit_symtab_from_partial. All uses updated.
296 Add function comment.
297 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
298 All uses updated. Add function comment.
299 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
300 Add function comment.
301 (psym_find_last_source_symtab): Renamed from
302 find_last_source_symtab_from_partial. All uses updated.
303 Add function comment.
304 (psym_forget_cached_source_info): Renamed from
305 forget_cached_source_info_partial. All uses updated.
306 Add function comment.
307 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
308 All uses updated. Add function comment.
309 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
310 updated. Add function comment.
311 (psym_expand_symtabs_for_function): Renamed from
312 read_symtabs_for_function. All uses updated. Update function comment.
313 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
314 All uses updated. Add function comment.
315 (psym_expand_symtabs_with_fullname): Renamed from
316 read_psymtabs_with_fullname. All uses updated. Add function comment.
317 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
318 All uses updated. Add function comment.
319 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
320 All uses updated.
321 (psym_expand_symtabs_matching): Renamed from
322 expand_symtabs_matching_via_partial. All uses updated.
323 Add function comment.
324 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
325 Add function comment.
326
bb2ec1b3
TT
3272014-12-12 Phil Muldoon <pmuldoon@redhat.com>
328 Jan Kratochvil <jan.kratochvil@redhat.com>
329 Tom Tromey <tromey@redhat.com>
330
331 * NEWS: Update.
332 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
333 field.
334 * p-lang.c (pascal_language_defn): Update.
335 * opencl-lang.c (opencl_language_defn): Update.
336 * objc-lang.c (objc_language_defn): Update.
337 * m2-lang.c (m2_language_defn): Update.
338 * language.h (struct language_defn) <la_get_compile_instance,
339 la_compute_program>: New fields.
340 * language.c (unknown_language_defn, auto_language_defn)
341 (local_language_defn): Update.
342 * jv-lang.c (java_language_defn): Update.
343 * go-lang.c (go_language_defn): Update.
344 * f-lang.c (f_language_defn): Update.
345 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
346 * dwarf2loc.c (dwarf2_compile_property_to_c)
347 (locexpr_generate_c_location, loclist_generate_c_location): New
348 functions.
349 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
350 * defs.h (enum compile_i_scope_types): New.
351 (enum command_control_type) <compile_control>: New constant.
352 (struct command_line) <control_u>: New field.
353 * d-lang.c (d_language_defn): Update.
354 * compile/compile.c: New file.
355 * compile/compile-c-support.c: New file.
356 * compile/compile-c-symbols.c: New file.
357 * compile/compile-c-types.c: New file.
358 * compile/compile.h: New file.
359 * compile/compile-internal.h: New file.
360 * compile/compile-loc2c.c: New file.
361 * compile/compile-object-load.c: New file.
362 * compile/compile-object-load.h: New file.
363 * compile/compile-object-run.c: New file.
364 * compile/compile-object-run.h: New file.
365 * cli/cli-script.c (multi_line_command_p, print_command_lines)
366 (execute_control_command, process_next_line)
367 (recurse_read_control_structure): Handle compile_control.
368 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
369 * c-lang.c (c_language_defn, cplus_language_defn)
370 (asm_language_defn, minimal_language_defn): Update.
371 * ada-lang.c (ada_language_defn): Update.
372 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
373 New variables.
374 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
375 (HFILES_NO_SRCDIR): Add compile.h.
376 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
377 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
378 (compile.o, compile-c-types.o, compile-c-symbols.o)
379 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
380 (compile-c-support.o): New targets.
381
a2658feb
JK
3822014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 * s390-linux-tdep.c (s390_gcc_target_options): New function.
385 (s390_gdbarch_init): Add it to gdbarch.
386
3bc3cebe
JK
3872014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 * linux-tdep.c: Include objfiles.h and infcall.h.
390 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
391 function.
392 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
393
d064d1be
JK
3942014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
395
396 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
397 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
398 translate_register. Now public.
399 (dwarf2_compile_expr_to_ax): Update.
400
af945b75
TT
4012014-12-12 Tom Tromey <tromey@redhat.com>
402 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
405 (dwarf_expr_frame_base): Update caller.
406 (dwarf_expr_frame_base_1): Rename to ...
407 (func_get_frame_base_dwarf_block): ... this and make it public.
408 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
409 callers.
410 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
411
a8fd5589
TT
4122014-12-12 Tom Tromey <tromey@redhat.com>
413
414 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
415 Update.
416 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
417 dwarf2_compile_cfa_to_ax.
418 (dwarf2_compile_cfa_to_ax): Remove.
419 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
420 (dwarf2_compile_cfa_to_ax): Remove.
421
ed12ef62
JK
4222014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * infcall.h (call_function_by_hand_dummy): Declare.
425 * infcall.c (call_function_by_hand): Use
426 call_function_by_hand_dummy.
427 (call_function_by_hand_dummy): Rename from call_function_by_hand.
428 Add arguments. Register a destructor.
429
ac04f72b
TT
4302014-12-12 Tom Tromey <tromey@redhat.com>
431 Jan Kratochvil <jan.kratochvil@redhat.com>
432
433 * osabi.h (osabi_triplet_regexp): Declare.
434 * osabi.c (struct osabi_names): New.
435 (gdb_osabi_names): Change type to struct osabi_names. Update
436 values.
437 (gdbarch_osabi_name): Update.
438 (osabi_triplet_regexp): New function.
439 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
440 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
441 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
442 set_gdbarch_gnu_triplet_regexp.
443 * gdbarch.sh (gnu_triplet_regexp): New method.
444 * gdbarch.c, gdbarch.h: Rebuild.
445 * arch-utils.h (default_gnu_triplet_regexp): Declare.
446 * arch-utils.c (default_gnu_triplet_regexp): New function.
447
f208eee0
JK
4482014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * arch-utils.c (default_infcall_mmap)
451 (default_gcc_target_options): New functions.
452 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
453 (GDB_MMAP_PROT_EXEC): Define.
454 (default_infcall_mmap, default_gcc_target_options): Declare.
455 * gdbarch.h: Rebuild.
456 * gdbarch.c: Rebuild.
457 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
458
233a8fb3
JK
4592014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
462 fields.
463 (pop_dummy_frame): Call the destructor if it exists.
464 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
465 functions.
466 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
467 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
468
f1660027
TT
4692014-12-12 Tom Tromey <tromey@redhat.com>
470
471 * gdbtypes.h (make_unqualified_type): Declare.
472 * gdbtypes.c (make_unqualified_type): New function.
473
de571fc5
TT
4742014-12-12 Tom Tromey <tromey@redhat.com>
475
476 * ui-file.h (ui_file_write_for_put): Declare.
477 * ui-file.c (ui_file_write_for_put): New function.
478 * mi/mi-out.c (do_write): Remove.
479 (mi_out_put): Use ui_file_write_for_put.
480
6dddd6a5
DE
4812014-12-12 Doug Evans <dje@google.com>
482
483 * NEWS: Mention gdb.lookup_objfile.
484 * python/python.c (GdbMethods): Add lookup_objfile.
485 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
486 * python/py-objfile.c: #include "symtab.h".
487 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
488 (objfpy_lookup_objfile_by_name): New function.
489 (objfpy_lookup_objfile_by_build_id): New function.
490 (gdbpy_lookup_objfile): New function.
491
f161c171
MR
4922014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
493
494 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
495 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
496 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
497 macros.
498 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
499 Likewise.
500
71c24708
AA
5012014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
502
503 * completer.c: Include "target.h", "reggroups.h", and
504 "user-regs.h".
505 (reg_or_group_completer): New.
506 * completer.h (reg_or_group_completer): Declare.
507 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
508 the "info registers" and "info all-registers" commands and the
509 dbx-mode "lr" command.
510
f5b95c01
AA
5112014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
512
513 * user-regs.c: Include "arch-utils.h", "command.h", and
514 "cli/cli-cmds.h".
515 (maintenance_print_user_registers): New.
516 (_initialize_user_regs): Register new "maint print user-registers"
517 subcommand.
518 * NEWS: Mention new GDB command "maint print user-registers".
519
3e29f34a
MR
5202014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
521 Maciej W. Rozycki <macro@mips.com>
522 Pedro Alves <pedro@codesourcery.com>
523
524 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
525 remove `predefault' and `invalid_p' initializers.
526 (make_symbol_special): New architecture method.
527 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
528 (objfile, symbol): New declarations.
529 * arch-utils.h (default_elf_make_msymbol_special): Remove
530 prototype.
531 (default_make_symbol_special): New prototype.
532 (default_adjust_dwarf2_addr): Likewise.
533 (default_adjust_dwarf2_line): Likewise.
534 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
535 * arch-utils.c (default_elf_make_msymbol_special): Remove
536 function.
537 (default_make_symbol_special): New function.
538 (default_adjust_dwarf2_addr): Likewise.
539 (default_adjust_dwarf2_line): Likewise.
540 * dwarf2-frame.c (decode_frame_entry_1): Call
541 `gdbarch_adjust_dwarf2_addr'.
542 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
543 * dwarf2read.c (create_addrmap_from_index): Likewise.
544 (process_psymtab_comp_unit_reader): Likewise.
545 (add_partial_symbol): Likewise.
546 (add_partial_subprogram): Likewise.
547 (process_full_comp_unit): Likewise.
548 (read_file_scope): Likewise.
549 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
550 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
551 (read_call_site_scope): Likewise.
552 (dwarf2_ranges_read): Likewise.
553 (dwarf2_record_block_ranges): Likewise.
554 (read_attribute_value): Likewise.
555 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
556 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
557 * elfread.c (elf_symtab_read): Don't call
558 `gdbarch_elf_make_msymbol_special' if unset.
559 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
560 the ISA bit from the PC.
561 * mips-tdep.c (mips_unmake_compact_addr): New function.
562 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
563 address appropriately.
564 (mips_make_symbol_special): New function.
565 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
566 (mips_pc_is_mips16): Likewise.
567 (mips_pc_is_micromips): Likewise.
568 (mips_pc_isa): Likewise.
569 (mips_adjust_dwarf2_addr): New function.
570 (mips_adjust_dwarf2_line): Likewise.
571 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
572 (mips_addr_bits_remove): Likewise.
573 (mips_skip_trampoline_code): Likewise.
574 (mips_write_pc): Don't set the ISA bit.
575 (mips_eabi_push_dummy_call): Likewise.
576 (mips_o64_push_dummy_call): Likewise.
577 (mips_gdbarch_init): Install `mips_make_symbol_special',
578 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
579 handlers.
580 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
581 target-specific symbol address adjustments.
582 * gdbarch.h: Regenerate.
583 * gdbarch.c: Regenerate.
584
21daaaaf
YQ
5852014-12-12 Yao Qi <yao@codesourcery.com>
586
587 PR tdep/14261
588 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
589 'skip_pc'. Remove code skipping prologue instructions, use
590 arm_analyze_prologue instead.
591 (arm_analyze_prologue): Stop the scanning for unrecognized
592 instruction when skipping prologue.
593
f303bc3e
YQ
5942014-12-12 Yao Qi <yao@codesourcery.com>
595
596 * arm-tdep.c (arm_instruction_restores_sp): New function.
597 (arm_analyze_prologue): Call arm_instruction_restores_sp.
598 (arm_in_function_epilogue_p): Move code to
599 arm_instruction_restores_sp.
600
05a6c3c8
DE
6012014-12-11 Doug Evans <xdje42@gmail.com>
602
603 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
604
fe2a438d
DE
6052014-12-11 Doug Evans <xdje42@gmail.com>
606
607 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
608 (symbol *lookup_symbol_via_quick_fns): Ditto.
609 (lookup_symbol_in_objfile): Add forward decl.
610 (lookup_global_symbol_from_objfile): Simplify, call
611 lookup_symbol_in_objfile.
612
540feddf
DE
6132014-12-11 Doug Evans <xdje42@gmail.com>
614
615 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
616
fc126975
SM
6172014-12-10 Simon Marchi <simon.marchi@ericsson.com>
618
619 PR breakpoints/17012
620 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
621 it is marked as persistent.
622
56286edf
DE
6232014-12-10 Doug Evans <xdje42@gmail.com>
624
625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
626 closer to its subroutines.
627
34ef8452
DE
6282014-12-10 Doug Evans <xdje42@gmail.com>
629
630 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
631
9a80057a
DE
6322014-12-10 Doug Evans <xdje42@gmail.com>
633
634 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 635 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 636
1abf3a14
SM
6372014-12-10 Simon Marchi <simon.marchi@ericsson.com>
638
639 PR gdb/17627
640 * target.c (cleanup_restore_target_terminal): New function.
641 (make_cleanup_restore_target_terminal): New function.
642 * target.h (make_cleanup_restore_target_terminal): New declaration.
643 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
644
d4d1e336
DE
6452014-12-08 Doug Evans <dje@google.com>
646
647 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
648
a0be3e44
DE
6492014-12-08 Doug Evans <dje@google.com>
650
651 * NEWS: Mention gdb.Objfile.owner.
652 * python/py-objfile.c (objfpy_get_owner): New function.
653 (objfile_getset): Add "owner".
654
6c1c7be3
JK
6552014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
658 (lookup_global_symbol_from_objfile): Call it.
659
efad9b6a
JK
6602014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
661
662 Remove const from struct objfile *.
663 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
664 symtab.c, symtab.h: In these files.
665
069bb7ec
AF
6662014-12-05 Andreas From <andreas.from@ericsson.com>
667
668 * MAINTAINERS (Write After Approval): Add "Andreas From"
669
642a8d80
DE
6702014-12-05 Doug Evans <xdje42@gmail.com>
671
672 Revert:
673 PR symtab/17602
674 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
675
86e4ed39
DE
6762014-12-04 Doug Evans <dje@google.com>
677
678 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
679 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
680 (objfile_getset): Add "add_separate_debug_file".
681
7c50a931
DE
6822014-12-04 Doug Evans <dje@google.com>
683
684 * NEWS: Mention gdb.Objfile.build_id.
685 * build-id.c (build_id_bfd_get): Make non-static.
686 * build-id.h (build_id_bfd_get): Add declaration.
687 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
688 (OBJFPY_REQUIRE_VALID): New macro.
689 (objfpy_get_build_id): New function.
690 (objfile_getset): Add "build_id".
691 * utils.c (make_hex_string): New function.
692 * utils.h (make_hex_string): Add declaration.
693
ba715d7f
JK
6942014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
695
696 * block.c (block_lookup_symbol_primary): New function.
697 * block.h (block_lookup_symbol_primary): New declaration.
698 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
699 Call block_lookup_symbol_primary.
700
858339f2
MR
7012014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
702
703 * tramp-frame.h (tramp_frame): Add `validate' member.
704 * tramp-frame.c (tramp_frame_start): Validate trampoline before
705 scanning.
706 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
707 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
708 (mips_linux_o32_sigframe): Initialize `validate' member.
709 (mips_linux_o32_rt_sigframe): Likewise.
710 (mips_linux_n32_rt_sigframe): Likewise.
711 (mips_linux_n64_rt_sigframe): Likewise.
712 (micromips_linux_o32_sigframe): New variable.
713 (micromips_linux_o32_rt_sigframe): Likewise.
714 (micromips_linux_n32_rt_sigframe): Likewise.
715 (micromips_linux_n64_rt_sigframe): Likewise.
716 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
717 (mips_linux_n32n64_sigframe_init): Likewise.
718 (mips_linux_sigframe_validate): New function.
719 (micromips_linux_sigframe_validate): Likewise.
720 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
721
ff1eb2b5
UW
7222014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
723
724 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
725 * sparc-sol2-tdep.c: Include "regset.h".
726 (sparc32_sol2_supply_core_gregset): New function.
727 (sparc32_sol2_collect_core_gregset): Likewise.
728 (sparc32_sol2_supply_core_fpregset): Likewise.
729 (sparc32_sol2_collect_core_fpregset): Likewise.
730 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
731 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
732 tdep->fpregset/sizeof_fpregset.
733 * sparc64-sol2-tdep.c: Include "regset.h".
734 (sparc64_sol2_supply_core_gregset): New function.
735 (sparc64_sol2_collect_core_gregset): Likewise.
736 (sparc64_sol2_supply_core_fpregset): Likewise.
737 (sparc64_sol2_collect_core_fpregset): Likewise.
738 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
739 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
740 tdep->fpregset/sizeof_fpregset.
741
75783939
SM
7422014-12-03 Simon Marchi <simon.marchi@ericsson.com>
743
744 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
745 type.
746
7c5fdd25
DE
7472014-12-02 Doug Evans <dje@google.com>
748
749 * symtab.c (symbol_init_cplus_specific): Delete.
750 (symbol_set_demangled_name): Remove special c++ support.
751 (symbol_get_demangled_name, symbol_set_language): Ditto.
752 * symtab.h (struct cplus_specific): Delete.
753 (struct general_symbol_info) <language_specific>: Remove
754 cplus_specific.
755
29f0c3b7
DE
7562014-12-02 Doug Evans <dje@google.com>
757
758 PR symtab/17602
759 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
760
72998fb3
DE
7612014-12-02 Doug Evans <dje@google.com>
762
763 PR symtab/17591
764 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
765 to strip parameters.
766
422b9917
DE
7672014-12-02 Doug Evans <dje@google.com>
768
769 * dwarf2read.c (peek_die_abbrev): Improve error message text.
770
47c6ee49
DE
7712014-12-02 Doug Evans <dje@google.com>
772
773 * valops.c (do_search_struct_field): Remove remnant of Chill support.
774 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
775
5da3ffc9
SM
7762014-12-02 Simon Marchi <simon.marchi@ericsson.com>
777
778 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
779
162078c8
NB
7802014-12-02 Nick Bull <nicholaspbull@gmail.com>
781
782 * NEWS: Mention new Python events.
783 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
784 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
785 (py-infevents.o): New rule.
786 * doc/observer.texi (inferior_call_pre, inferior_call_post)
787 (memory_changed, register_changed): New observers.
788 * infcall.c (call_function_by_hand): Notify observer before and
789 after inferior call.
790 * python/py-event.h (inferior_call_kind): New enum.
791 (emit_inferior_call_event): New prototype.
792 (emit_register_changed_event): New prototype.
793 (emit_memory_changed_event): New prototype.
794 * python/py-events.h (events_object): New registries
795 inferior_call, memory_changed and register_changed.
796 * python/py-evts.c (gdbpy_initialize_py_events): Add the
797 inferior_call, memory_changed and register_changed registries.
798 * python/py-infevents.c: New.
799 * python/py-inferior.c (python_on_inferior_call_pre)
800 (python_on_inferior_call_post, python_on_register_change)
801 (python_on_memory_change): New functions.
802 (gdbpy_initialize_inferior): Attach python handler to new
803 observers.
804 * python/py-infthread.c(gdbpy_create_ptid_object): New.
805 (thpy_get_ptid) Use gdbpy_create_ptid_object.
806 * python/python-internal.h:
807 (gdbpy_create_ptid_object)
808 (gdbpy_initialize_inferior_call_pre_event)
809 (gdbpy_initialize_inferior_call_post_event)
810 (gdbpy_initialize_register_changed_event)
811 (gdbpy_initialize_memory_changed_event): New prototypes.
812 * python/python.c (_initialize_python): Initialize new events.
813 * valops.c (value_assign): Notify register_changed observer.
814
007baf27
DE
8152014-12-02 Doug Evans <dje@google.com>
816
817 * python/py-infthread.c: Whitespace fixes.
818
d5552aab
AA
8192014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
820
821 * features/Makefile (s390-te-linux64-expedite): Replace
822 non-existant r14 and r15 by r14l and r15l, respectively.
823 * regformats/s390-te-linux64.dat: Regenerate.
824
30b5e341
SM
8252014-12-01 Simon Marchi <simon.marchi@ericsson.com>
826
827 * objfiles.c (allocate_objfile): Remove duplicate comment.
828
ac3d87c0
UW
8292014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
830
831 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
832 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
833 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
834 (supply_gregset, supply_fpregset): Remove.
835 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
836 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
837 and sizeof_gregset.
838
f10c5b19
JK
8392014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
840
841 Add add-auto-load-scripts-directory.
842 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
843 * auto-load.c (add_auto_load_dir): New function.
844 (_initialize_auto_load): Install it.
845
f0d4ba1f
MG
8462014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
847
848 Pushed by Joel Brobecker <brobecker@adacore.com>.
849 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
850
18ac6ffc
SC
8512014-11-29 Siva Chandra Reddy <sivachandra@google.com>
852
853 * eval.c (evaluate_subexp): Check that the thread stack temporaries
854 are not already enabled before enabling them.
855
4072f920
YQ
8562014-11-29 Yao Qi <yao@codesourcery.com>
857
858 * arm-tdep.c (arm_analyze_prologue): Move local variables
859 'framereg' and 'framesize' to inner block. Move code to
860 inner block too.
861
6c659fc2
SC
8622014-11-28 Siva Chandra Reddy <sivachandra@google.com>
863
864 * eval.c: Include gdbthread.h.
865 (evaluate_subexp): Enable thread stack temporaries before
866 evaluating a complete expression and clean them up after the
867 evaluation is complete.
868 * gdbthread.h: Include common/vec.h.
869 (value_ptr): New typedef.
870 (VEC (value_ptr)): New vector type.
871 (value_vec): New typedef.
872 (struct thread_info): Add new fields stack_temporaries_enabled
873 and stack_temporaries.
874 (enable_thread_stack_temporaries)
875 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
876 (get_last_thread_stack_temporary)
877 (value_in_thread_stack_temporaries): Declare.
878 * gdbtypes.c (class_or_union_p): New function.
879 * gdbtypes.h (class_or_union_p): Declare.
880 * infcall.c (call_function_by_hand): Store return values of class
881 type as temporaries on stack.
882 * thread.c (enable_thread_stack_temporaries): New function.
883 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
884 (get_last_thread_stack_temporary): Likewise.
885 (value_in_thread_stack_temporaries): Likewise.
886 * value.c (value_force_lval): New function.
887 * value.h (value_force_lval): Declare.
888
f7ca3fcf
PM
8892014-11-28 Pierre Muller <muller@sourceware.org>
890
891 Pushed by Joel Brobecker <brobecker@adacore.com>.
892 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
893 registers.
894
b2859a9a
UW
8952014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
896
897 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
898 * config/sparc/linux.mh (NATDEPFILES): Likewise.
899 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
900 * m68klinux-nat.c (fetch_core_registers): Remove.
901 (linux_elf_core_fns): Remove.
902 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
903
0fa9473f
JB
9042014-11-28 Joel Brobecker <brobecker@adacore.com>
905
906 * utils.c (gdb_realpath): Rework comment about handling on
907 Windows.
908
6a29c58e
YQ
9092014-11-28 Yao Qi <yao@codesourcery.com>
910
911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
912 rename.
913 * gnulib/aclocal.m4: Re-generated.
914 * gnulib/config.in: Re-generated.
915 * gnulib/configure: Re-generated.
916 * gnulib/import/Makefile.am: Re-generated.
917 * gnulib/import/Makefile.in: Re-generated.
918 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
919 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
920 * import/basename-lgpl.c: New file.
921 * import/dirname-lgpl.c: New file.
922 * import/dirname.h: New file.
923 * import/m4/dirname.m4: New file.
924 * import/m4/malloc.m4: New file.
925 * import/m4/rename.m4: New file.
926 * import/m4/rmdir.m4: New file.
927 * import/m4/stdio_h.m4: New file.
928 * import/malloc.c: New file.
929 * import/rename.c: New file.
930 * import/rmdir.c: New file.
931 * import/same-inode.h: New file.
932 * import/stdio.c: New file.
933 * import/stdio.in.h: New file.
934 * import/stripslash.c: New file.
935
abbffc89
YQ
9362014-11-28 Yao Qi <yao@codesourcery.com>
937
938 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
939 and realpath.
940 * config.in: Re-generated.
941 * configure: Re-generated.
942 * utils.c (gdb_realpath): Remove code calling realpath,
943 canonicalize_file_name and pathconf.
944 [!_WIN32]: Call canonicalize_file_name.
945
98399780
YQ
9462014-11-28 Yao Qi <yao@codesourcery.com>
947
948 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
949 canonicalize-lgpl.
950 * aclocal.m4: Re-generated.
951 * config.in: Re-generated.
952 * configure: Re-generated.
953 * import/Makefile.am: Re-generated.
954 * import/Makefile.in: Re-generated.
955 * import/m4/gnulib-cache.m4: Re-generated.
956 * import/m4/gnulib-comp.m4: Re-generated.
957 * import/canonicalize-lgpl.c: New file.
958 * import/extra/snippet/_Noreturn.h: New file.
959 * import/m4/canonicalize.m4: New file.
960 * import/m4/double-slash-root.m4: New file.
961 * import/m4/eealloc.m4: New file.
962 * import/m4/malloca.m4: New file.
963 * import/m4/nocrash.m4: New file.
964 * import/m4/stdlib_h.m4: New file.
965 * import/malloca.c: New file.
966 * import/malloca.h: New file.
967 * import/malloca.valgrind: New file.
968
3332aaf2
YQ
9692014-11-28 Yao Qi <yao@codesourcery.com>
970
971 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
972 * config.in, configure: Regenerate.
973 * symfile.c (find_separate_debug_file_by_debuglink): Remove
974 code checking HAVE_LSTAT is defined.
975
f45c62c4
YQ
9762014-11-28 Yao Qi <yao@codesourcery.com>
977
978 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
979 lstat.
980 * gnulib/aclocal.m4: Re-generated.
981 * gnulib/config.in: Re-generated.
982 * gnulib/configure: Re-generated.
983 * gnulib/import/Makefile.am: Re-generated.
984 * gnulib/import/Makefile.in: Re-generated.
985 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
986 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
987 * gnulib/import/lstat.c: New file.
988 * gnulib/import/m4/lstat.m4: New file.
989
bdca27a2
YQ
9902014-11-28 Yao Qi <yao@codesourcery.com>
991
992 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
993 * config.in, configure: Re-generate.
994 * inf-child.c (inf_child_fileio_readlink): Don't check
995 HAVE_READLINK is defined.
996
2196f55f
YQ
9972014-11-28 Yao Qi <yao@codesourcery.com>
998
999 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1000 * gnulib/aclocal.m4: Re-generated.
1001 * gnulib/config.in: Likewise.
1002 * gnulib/configure: Likewise.
1003 * gnulib/import/Makefile.am: Likewise.
1004 * gnulib/import/Makefile.in: Likewise.
1005 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1006 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1007 * gnulib/import/dosname.h: New file
1008 * gnulib/import/m4/largefile.m4: New file.
1009 * gnulib/import/m4/readlink.m4: New file.
1010 * gnulib/import/m4/stat.m4: New file.
1011 * gnulib/import/readlink.c: New file.
1012 * gnulib/import/stat.c: New file.
1013
7014e923 10142014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1015
1016 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1017 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1018
aa489395
SL
10192014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1020
1021 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1022 that there can be only one stack adjustment in the prologue
1023 with tests to detect specific disallowed stack adjustments.
1024
7f1659b5
SL
10252014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1026
1027 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1028 adjustments.
1029
d53c26c7
SL
10302014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1031
1032 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1033 the instruction as well as reading it from memory.
1034 (nios2_match_add): New.
1035 (nios2_match_sub): New.
1036 (nios2_match_addi): New.
1037 (nios2_match_orhi): New.
1038 (nios2_match_stw): New.
1039 (nios2_match_ldw): New.
1040 (nios2_match_rdctl): New.
1041 (enum branch_condition): New.
1042 (nios2_match_branch): New.
1043 (nios2_match_jmpi): New.
1044 (nios2_match_calli): New.
1045 (nios2_match_jmpr): New.
1046 (nios2_match_callr): New.
1047 (nios2_match_break): New.
1048 (nios2_match_trap): New.
1049 (nios2_in_epilogue_p): Rewrite to use new functions.
1050 (nios2_analyze_prologue): Likewise.
1051 (nios2_skip_prologue): Delete unused local limit_pc.
1052 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1053 (nios2_get_next_pc): Rewrite to use new functions.
1054
cac9b138
JK
10552014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1056
1057 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1058
a441dfbc
ST
10592014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1060
1061 Pushed by Joel Brobecker <brobecker@adacore.com>
1062 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1063 elements pi_len by the size of the elements before calling
1064 vm_deallocate.
1065 (inf_validate_task_sc): Likewise, and properly deallocate the
1066 noise array.
1067
4c9e8482
DE
10682014-11-23 Doug Evans <xdje42@gmail.com>
1069
1070 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1071 number and name if present. All callers updated.
1072 (dump_fn_fieldlists): Fix indentation of args.
1073
15ee0bbd
PP
10742014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1075
1076 * MAINTAINERS (Write After Approval): Add myself.
1077
e8af5d7a
JB
10782014-11-23 Joel Brobecker <brobecker@adacore.com>
1079
1080 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1081 to a bp_call_dummy breakpoint type.
1082
a344fc09
PP
10832014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1084
1085 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1086 registering the signal handler.
1087
d64e57fa
PP
10882014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1089
1090 * event-top.h (call_stdin_event_handler_again_p): Declare.
1091 * event-top.c (call_stdin_event_handler_again_p): Define.
1092 (stdin_event_handler): Use it.
1093 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1094 handler again if there is pending input following a
1095 start sequence.
1096
6f9d33d8
PP
10972014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1098
1099 Pushed by Joel Brobecker <brobecker@adacore.com>
1100 * linux-fork.c (checkpoint_command): Print index of new
1101 checkpoint in response message.
1102
88db67ef
YQ
11032014-11-23 Yao Qi <yao@codesourcery.com>
1104
1105 * valprint.c (read_string): Move local variables 'found_nul',
1106 'chunksize' and 'limit' to inner scope. Update comments.
1107
01465b56
DE
11082014-11-22 Doug Evans <xdje42@gmail.com>
1109
1110 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1111 function comment.
1112 (search_symbols): Fix comments and whitespace.
1113
07a1c2c3
DE
11142014-11-22 Doug Evans <xdje42@gmail.com>
1115
1116 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1117
b2a919a8
DE
11182014-11-21 Doug Evans <dje@google.com>
1119
1120 * psymtab.c (psymtab_search_name): Fix whitespace.
1121
278289d5
YQ
11222014-11-21 Yao Qi <yao@codesourcery.com>
1123
1124 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1125 errno.
1126 * gnulib/import/Makefile.am: Re-generated.
1127 * gnulib/import/Makefile.in: Likewise.
1128 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1129
e01e2baa
YQ
11302014-11-21 Yao Qi <yao@codesourcery.com>
1131
1132 * gdb_wchar.h: Include wchar.h and wctype.h.
1133 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1134 include wchar.h and wctype.h.
1135 Don't check HAVE_WCHAR_H.
1136
f0c00af8
YQ
11372014-11-21 Yao Qi <yao@codesourcery.com>
1138
1139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1140 and wctype-h.
1141 * gnulib/import/Makefile.am: Re-generated.
1142 * gnulib/import/Makefile.in: Likewise.
1143 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1144
0cae13bb
YQ
11452014-11-21 Yao Qi <yao@codesourcery.com>
1146
1147 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1148 memchr.
1149 * gnulib/import/Makefile.am: Re-generated.
1150 * gnulib/import/Makefile.in: Likewise.
1151 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1152
9c232dda
YQ
11532014-11-21 Yao Qi <yao@codesourcery.com>
1154
1155 * common/common-defs.h: Include alloca.h
1156 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1157 * configure: Re-generated.
1158 * defs.h: Remove code handling alloca.
1159 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1160 or not.
1161
00d7f58f
YQ
11622014-11-21 Yao Qi <yao@codesourcery.com>
1163
1164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1165 alloca.
1166 * gnulib/import/Makefile.am: Re-generated.
1167 * gnulib/import/Makefile.in: Likewise..
1168 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1169
6068ad5d
YQ
11702014-11-21 Yao Qi <yao@codesourcery.com>
1171
1172 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1173 alphabetical order.
1174
45e44d27
JB
11752014-11-21 Joel Brobecker <brobecker@adacore.com>
1176
1177 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1178 flag_unsigned if HIGH_BOUND is constant and negative.
1179
7e7cbeb3
SDJ
11802014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1181
1182 PR breakpoints/10737
1183 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1184 modifier from "struct gdbarch" when compiling without Expat (XML)
1185 support.
1186 (get_syscall_by_number): Likewise.
1187 (get_syscall_by_name): Likewise.
1188 (get_syscall_names): Likewise.
1189
458c8db8
SDJ
11902014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1191
1192 PR breakpoints/10737
1193 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1194 set_xml_syscall_file_name to provide gdbarch.
1195 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1196 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1197 * breakpoint.c (print_it_catch_syscall): Adjust call to
1198 get_syscall_by_number to provide gdbarch.
1199 (print_one_catch_syscall): Likewise.
1200 (print_mention_catch_syscall): Likewise.
1201 (print_recreate_catch_syscall): Likewise.
1202 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1203 and get_syscall_by_name to provide gdbarch.
1204 (catch_syscall_completer): Adjust call to get_syscall_names to
1205 provide gdbarch.
1206 * gdbarch.c: Regenerate.
1207 * gdbarch.h: Likewise.
1208 * gdbarch.sh: Forward declare "struct syscalls_info".
1209 (xml_syscall_file): New variable.
1210 (syscalls_info): Likewise.
1211 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1212 set_xml_syscall_file_name to provide gdbarch.
1213 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1214 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1215 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1216 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1217 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1218 * xml-syscall.c: Include gdbarch.h.
1219 (set_xml_syscall_file_name): Accept gdbarch parameter.
1220 (get_syscall_by_number): Likewise.
1221 (get_syscall_by_name): Likewise.
1222 (get_syscall_names): Likewise.
1223 (my_gdb_datadir): Delete global variable.
1224 (struct syscalls_info) <my_gdb_datadir>: New variable.
1225 (struct syscalls_info) <sysinfo>: Rename variable to
1226 "syscalls_info".
1227 (sysinfo): Delete global variable.
1228 (have_initialized_sysinfo): Likewise.
1229 (xml_syscall_file): Likewise.
1230 (sysinfo_free_syscalls_desc): Rename to...
1231 (syscalls_info_free_syscalls_desc): ... this.
1232 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1233 code to the new layout of "struct syscalls_info".
1234 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1235 "syscalls_info".
1236 (syscall_create_syscall_desc): Likewise.
1237 (syscall_start_syscall): Likewise.
1238 (syscall_parse_xml): Likewise.
1239 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1240 (init_sysinfo): Rename to...
1241 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1242 Adjust function to deal with gdbarch.
1243 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1244 gdbarch as a parameter. Adjust code.
1245 (xml_get_syscall_name): Likewise.
1246 (xml_list_of_syscalls): Likewise.
1247 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1248 (get_syscall_by_number): Likewise.
1249 (get_syscall_by_name): Likewise.
1250 (get_syscall_names): Likewise.
1251 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1252 (get_syscall_by_number): Likewise.
1253 (get_syscall_by_name): Likewise.
1254 (get_syscall_names): Likewise.
1255
43f3e411
DE
12562014-11-20 Doug Evans <xdje42@gmail.com>
1257
1258 Split struct symtab into two: struct symtab and compunit_symtab.
1259 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1260 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1261 to "struct compunit_symtab *". All callers updated.
1262 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1263 "struct symtab *" argument to "struct compunit_symtab *".
1264 All callers updated.
1265 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1266 result to "struct compunit_symtab *". All callers updated.
1267 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1268 Change result to "struct compunit_symtab *". All callers updated.
1269 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1270 hange type to "struct compunit_symtab *". All uses updated.
1271 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1272 Change type to "struct compunit_symtab *". All uses updated.
1273 * buildsym.c (struct buildsym_compunit): New struct.
1274 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1275 (buildsym_compunit): New static global.
1276 (finish_block_internal): Update to fetch objfile from
1277 buildsym_compunit.
1278 (make_blockvector): Delete objfile argument.
1279 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1280 debugformat, producer.
1281 (start_buildsym_compunit): New function.
1282 (free_buildsym_compunit): Renamed from free_subfiles_list.
1283 All callers updated.
1284 (patch_subfile_names): Rewrite to use buildsym_compunit.
1285 (get_compunit_symtab): New function.
1286 (get_macro_table): Delete argument comp_dir. All callers updated.
1287 (start_symtab): Change result to "struct compunit_symtab *".
1288 All callers updated. Create the subfile of the main source file.
1289 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1290 (reset_symtab_globals): Update.
1291 (end_symtab_get_static_block): Update to use buildsym_compunit.
1292 (end_symtab_without_blockvector): Rewrite.
1293 (end_symtab_with_blockvector): Change result to
1294 "struct compunit_symtab *". All callers updated.
1295 Update to use buildsym_compunit. Don't set symtab->dirname,
1296 instead set it in the compunit.
1297 Explicitly make sure main symtab is first in its list.
1298 Set debugformat, producer, blockvector, block_line_section, and
1299 macrotable in the compunit.
1300 (end_symtab_from_static_block): Change result to
1301 "struct compunit_symtab *". All callers updated.
1302 (end_symtab, end_expandable_symtab): Ditto.
1303 (set_missing_symtab): Change symtab argument to
1304 "struct compunit_symtab *". All callers updated.
1305 (augment_type_symtab): Ditto.
1306 (record_debugformat): Update to use buildsym_compunit.
1307 (record_producer): Update to use buildsym_compunit.
1308 * buildsym.h (struct subfile) <dirname>: Delete.
1309 <producer, debugformat>: Delete.
1310 <buildsym_compunit>: New member.
1311 (get_compunit_symtab): Declare.
1312 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1313 from primary_symtab. Change type to "struct compunit_symtab *".
1314 All uses updated.
1315 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1316 All callers updated.
1317 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1318 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1319 symtab. Change type to "struct compunit_symtab *". All uses updated.
1320 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1321 All callers updated.
1322 (dw2_find_last_source_symtab): Ditto.
1323 (dw2_lookup_symbol): Ditto.
1324 (recursively_find_pc_sect_compunit_symtab): Renamed from
1325 recursively_find_pc_sect_symtab. Change result to
1326 "struct compunit_symtab *". All callers updated.
1327 (dw2_find_pc_sect_compunit_symtab): Renamed from
1328 dw2_find_pc_sect_symtab. Change result to
1329 "struct compunit_symtab *". All callers updated.
1330 (get_compunit_symtab): Renamed from get_symtab. Change result to
1331 "struct compunit_symtab *". All callers updated.
1332 (recursively_compute_inclusions): Change type of immediate_parent
1333 argument to "struct compunit_symtab *". All callers updated.
1334 (compute_compunit_symtab_includes): Renamed from
1335 compute_symtab_includes. All callers updated. Rewrite to compute
1336 includes of compunit_symtabs and not symtabs.
1337 (process_full_comp_unit): Update to work with struct compunit_symtab.
1338 (process_full_type_unit): Ditto.
1339 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1340 (dwarf_decode_lines): Remove special case handling of main subfile.
1341 (macro_start_file): Delete argument comp_dir. All callers updated.
1342 (dwarf_decode_macro_bytes): Ditto.
1343 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1344 use struct compunit_symtab.
1345 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1346 * jit.c (finalize_symtab): Build compunit_symtab.
1347 * jv-lang.c (get_java_class_symtab): Change result to
1348 "struct compunit_symtab *". All callers updated.
1349 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1350 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1351 comp_dir. Change type to "struct compunit_symtab *".
1352 All uses updated.
1353 (new_macro_table): Change comp_dir argument to cust,
1354 "struct compunit_symtab *". All callers updated.
1355 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1356 nr_primary_symtabs. All uses updated.
1357 (count_symtabs_and_blocks): Update to handle compunits.
1358 (report_command_stats): Update output, "primary symtabs" renamed to
1359 "compunits".
1360 * mdebugread.c (new_symtab): Change result to
1361 "struct compunit_symtab *". All callers updated.
1362 (parse_procedure): Change type of search_symtab argument to
1363 "struct compunit_symtab *". All callers updated.
1364 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1365 separate loop.
1366 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1367 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1368 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1369 All uses updated.
1370 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1371 All uses updated.
1372 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1373 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1374 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1375 symtab. Change type to "struct compunit_symtab *". All uses updated.
1376 * psymtab.c (psymtab_to_symtab): Change result type to
1377 "struct compunit_symtab *". All callers updated.
1378 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1379 find_pc_sect_symtab_from_partial. Change result type to
1380 "struct compunit_symtab *". All callers updated.
1381 (lookup_symbol_aux_psymtabs): Change result type to
1382 "struct compunit_symtab *". All callers updated.
1383 (find_last_source_symtab_from_partial): Ditto.
1384 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1385 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1386 and macro_table from compunit.
1387 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1388 type to "struct compunit_symtab *". All callers updated.
1389 (debug_qf_lookup_symbol): Ditto.
1390 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1391 debug_qf_find_pc_sect_symtab, change result type to
1392 "struct compunit_symtab *". All callers updated.
1393 * symfile.c (allocate_symtab): Delete objfile argument.
1394 New argument cust.
1395 (allocate_compunit_symtab): New function.
1396 (add_compunit_symtab_to_objfile): New function.
1397 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1398 Change result type to "struct compunit_symtab *". All uses updated.
1399 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1400 Change result type to "struct compunit_symtab *". All uses updated.
1401 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1402 separate loop.
1403 (dump_symtab_1): Update test for primary source symtab.
1404 (maintenance_info_symtabs): Update to handle compunit symtabs.
1405 (maintenance_check_symtabs): Ditto.
1406 * symtab.c (set_primary_symtab): Delete.
1407 (compunit_primary_filetab): New function.
1408 (compunit_language): New function.
1409 (iterate_over_some_symtabs): Change type of arguments "first",
1410 "after_last" to "struct compunit_symtab *". All callers updated.
1411 Update to loop over symtabs in each compunit.
1412 (error_in_psymtab_expansion): Rename symtab argument to cust,
1413 and change type to "struct compunit_symtab *". All callers updated.
1414 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1415 Change result type to "struct compunit_symtab *". All callers updated.
1416 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1417 Change result type to "struct compunit_symtab *". All callers updated.
1418 (find_pc_sect_line): Only loop over symtabs within selected compunit
1419 instead of all symtabs in the objfile.
1420 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1421 <compunit_symtab> New member.
1422 <block_line_section>: Moved to compunit_symtab.
1423 <locations_valid>: Ditto.
1424 <epilogue_unwind_valid>: Ditto.
1425 <macro_table>: Ditto.
1426 <dirname>: Ditto.
1427 <debugformat>: Ditto.
1428 <producer>: Ditto.
1429 <objfile>: Ditto.
1430 <call_site_htab>: Ditto.
1431 <includes>: Ditto.
1432 <user>: Ditto.
1433 <primary>: Delete
1434 (SYMTAB_COMPUNIT): New macro.
1435 (SYMTAB_BLOCKVECTOR): Update definition.
1436 (SYMTAB_OBJFILE): Update definition.
1437 (SYMTAB_DIRNAME): Update definition.
1438 (struct compunit_symtab): New type. Common members among all source
1439 symtabs within a compilation unit moved here. All uses updated.
1440 (COMPUNIT_OBJFILE): New macro.
1441 (COMPUNIT_FILETABS): New macro.
1442 (COMPUNIT_DEBUGFORMAT): New macro.
1443 (COMPUNIT_PRODUCER): New macro.
1444 (COMPUNIT_DIRNAME): New macro.
1445 (COMPUNIT_BLOCKVECTOR): New macro.
1446 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1447 (COMPUNIT_LOCATIONS_VALID): New macro.
1448 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1449 (COMPUNIT_CALL_SITE_HTAB): New macro.
1450 (COMPUNIT_MACRO_TABLE): New macro.
1451 (ALL_COMPUNIT_FILETABS): New macro.
1452 (compunit_symtab_ptr): New typedef.
1453 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1454
005e2509
JB
14552014-11-20 Joel Brobecker <brobecker@adacore.com>
1456
1457 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1458 if the TYPE_CODE of range_type's base type does not match
1459 the TYPE_CODE of encoding_type's base type.
1460
2b0f535a
JB
14612014-11-19 Joel Brobecker <brobecker@adacore.com>
1462
1463 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1464 it starts with '<'.
1465
8908fca5
JB
14662014-11-19 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1469 (ada_is_redundant_index_type_desc): New function.
1470 (to_fixed_array_type): Ignore parallel XA type if redundant.
1471
4a46959e
JB
14722014-11-19 Joel Brobecker <brobecker@adacore.com>
1473
1474 * ada-lang.c (constrained_packed_array_type): Set the length
1475 of the return array as if both bounds where zero if that
1476 returned array's index type is dynamic.
1477
2acf986b
YQ
14782014-11-19 Yao Qi <yao@codesourcery.com>
1479
1480 * config/i386/go32.mh (CC): Remove.
1481
439247b6
DE
14822014-11-18 Doug Evans <xdje42@gmail.com>
1483
1484 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1485 updated.
1486
4d663531
DE
14872014-11-18 Doug Evans <xdje42@gmail.com>
1488
1489 * buildsym.c (buildsym_objfile): New static global.
1490 (buildsym_comp_dir): New static global.
1491 (finish_block_internal): Delete arg objfile. All callers updated.
1492 (finish_block): Delete arg objfile. All callers updated.
1493 (start_subfile): Delete arg dirname. All callers updated.
1494 (patch_subfile_names): Update buildsym_comp_dir.
1495 (get_macro_table): Delete arg objfile. All callers updated.
1496 (start_symtab): New arg objfile. All callers updated.
1497 Rename arg dirname to comp_dir.
1498 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1499 (end_symtab_get_static_block): Delete arg objfile. All callers
1500 updated.
1501 (end_symtab_without_blockvector): Ditto.
1502 (end_symtab_with_blockvector): Ditto.
1503 (end_symtab_from_static_block): Ditto.
1504 (end_symtab): Ditto.
1505 (end_expandable_symtab): Ditto.
1506 (augment_type_symtab): Ditto.
1507 * coffread.c (coff_start_symtab): New arg objfile. All callers
1508 updated.
1509
8435453b
DE
15102014-11-18 Doug Evans <xdje42@gmail.com>
1511
1512 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1513 updated.
1514
ee6f8984
DE
15152014-11-18 Doug Evans <xdje42@gmail.com>
1516
1517 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1518 symtab.dirname updated to use it.
1519
eb822aa6
DE
15202014-11-18 Doug Evans <xdje42@gmail.com>
1521
1522 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1523 symtab.objfile updated to use it.
1524
98387a29
DE
15252014-11-18 Doug Evans <xdje42@gmail.com>
1526
1527 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1528
aff08958
DE
15292014-11-18 Doug Evans <xdje42@gmail.com>
1530
1531 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1532 SYMBOL_OBJFILE.
1533 * findvar.c (default_read_var_value): Ditto.
1534 * jv-lang.c (add_class_symtab_symbol): Ditto.
1535 * parse.c (operator_check_standard): Ditto.
1536 * printcmd.c (address_info): Ditto.
1537 * symtab.c (fixup_symbol_section): Ditto.
1538 (skip_prologue_sal): Ditto.
1539 * tracepoint.c (scope_info): Ditto.
1540 * valops.c (find_function_in_inferior): Ditto.
1541 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1542 * python/py-symbol.c (set_symbol): Ditto.
1543
7bab9b58
DE
15442014-11-18 Doug Evans <xdje42@gmail.com>
1545
1546 * buildsym.c (main_subfile): New static global.
1547 (free_subfiles_list): New function.
1548 (start_symtab): Set main_subfile.
1549 (restart_symtab): Replace init of subfiles, current_subfile with
1550 call to free_subfiles_list.
1551 (watch_main_source_file_lossage): Use main_subfile.
1552 (reset_symtab_globals): Replace init of current_subfile with call
1553 to free_subfiles_list.
1554 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1555 functions, split out from ...
1556 (end_symtab_from_static_block): ... here. Rewrite to call them.
1557
f194fefb
DE
15582014-11-18 Doug Evans <xdje42@gmail.com>
1559
1560 The result of symtab expansion is always a primary symtab.
1561 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1562 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1563 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1564 (psymtab_to_symtab): Add comment and assert.
1565 (map_matching_symbols_psymtab): Remove unnecessary test for
1566 non-primary symtab.
1567
34248c3a
DE
15682014-11-15 Doug Evans <xdje42@gmail.com>
1569
1570 PR symtab/17559
1571 * symtab.c (find_pc_line_symtab): New function.
1572 * symtab.h (find_pc_line_symtab): Declare.
1573 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1574 find_pc_symtab.
1575 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1576 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1577 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1578 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1579 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1580 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1581
2097ae25
DE
15822014-11-15 Doug Evans <xdje42@gmail.com>
1583
1584 * symtab.c (expand_symtab_containing_pc): Renamed from
1585 find_pc_sect_symtab_via_partial. All callers updated.
1586
1ada499f
YQ
15872014-11-15 Yao Qi <yao@codesourcery.com>
1588
1589 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1590
355e2102
JB
15912014-11-14 Joel Brobecker <brobecker@adacore.com>
1592
1593 * common/common-defs.h: Move <stdarg.h> #include ahead of
1594 <stdio.h> #include.
1595
83030110
PA
15962014-11-14 Pedro Alves <palves@redhat.com>
1597
1598 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1599 [!PHONY_ICONV] (gdb_iconv): New function.
1600 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1601
a8719064
DE
16022014-11-13 Doug Evans <dje@google.com>
1603
1604 PR symtab/17591
1605 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1606 "(anonymous namespace)".
1607
60f7655a
DE
16082014-11-13 Doug Evans <dje@google.com>
1609
1610 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1611 infinite loop.
1612
5784b3ca
JK
16132014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1614
1615 * NEWS (maint set target-async): Fix typo.
1616
6218dc4b
PA
16172014-11-12 Pedro Alves <palves@redhat.com>
1618
1619 * infrun.c (enum infwait_states, infwait_state): Delete.
1620
af48d08f
PA
16212014-11-12 Pedro Alves <palves@redhat.com>
1622
1623 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1624 Rewrite stepping over a permanent breakpoint.
1625 (thread_still_needs_step_over, proceed): Don't set
1626 stepping_over_breakpoint for permanent breakpoints.
1627 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1628 single-step breakpoints out of the target on hardware step
1629 targets.
1630 (process_event_stop_test): If stepping a permanent breakpoint
1631 doesn't hit the step-resume breakpoint, delete the step-resume
1632 breakpoint.
1633 (switch_back_to_stepped_thread): Also check if the stepped thread
1634 has advanced already on hardware step targets.
1635 (currently_stepping): Return true if the thread stepped a
1636 breakpoint.
1637
1a853c52
PA
16382014-11-12 Pedro Alves <palves@redhat.com>
1639
1640 Mark locations as permanent, not the whole breakpoint.
1641 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1642 (mark_breakpoints_out): Don't mark permanent breakpoints as
1643 uninserted.
1644 (breakpoint_init_inferior): Use mark_breakpoints_out.
1645 (breakpoint_here_p): Adjust.
1646 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1647 of permanent breakpoints.
1648 (make_breakpoint_permanent): Mark each location as permanent,
1649 instead of marking the breakpoint.
1650 (add_location_to_breakpoint): If the location is permanent, mark
1651 it as such, and as inserted.
1652 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1653 (bp_location_compare, update_global_location_list): Adjust.
1654 (update_breakpoint_locations): Don't make the breakpoint permanent
1655 here.
1656 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1657 breakpoints.
1658 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1659 (struct bp_location) <permanent>: New field.
1660 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1661 reference to bp_permanent.
1662
ae9bb220
PA
16632014-11-12 Pedro Alves <palves@redhat.com>
1664
1665 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1666 * arch-utils.h (default_skip_permanent_breakpoint): New
1667 declaration.
1668 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1669 Install default_skip_permanent_breakpoint as default method.
1670 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1671 (i386_gdbarch_init): Don't install it.
1672 * infrun.c (resume): Assume there's always a
1673 gdbarch_skip_permanent_breakpoint implementation.
1674 * gdbarch.h, gdbarch.c: Regenerate.
1675
015de688
DC
16762014-11-11 Daniel Colascione <dancol@dancol.org>
1677
1678 Warn about cross-PID-namespace debugging.
1679 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1680 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1681 * linux-thread-db.c (check_pid_namespace_match): New function.
1682 (thread_db_inferior_created): Call it.
1683
26a84859
DE
16842014-11-10 Doug Evans <xdje42@gmail.com>
1685
1686 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1687 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1688
712a2e6d
DE
16892014-11-10 Doug Evans <xdje42@gmail.com>
1690
1691 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1692
af3768e9
DE
16932014-11-10 Doug Evans <xdje42@gmail.com>
1694
1695 PR symtab/17564
1696 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1697 (lookup_static_symbol): Move definition to new location and rewrite.
1698 (lookup_symbol_in_objfile): New function.
1699 (lookup_symbol_global_iterator_cb): Call it.
1700
b1f28d99
UW
17012014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1702
1703 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1704
b7a084be
PA
17052014-11-07 Pedro Alves <palves@redhat.com>
1706
1707 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1708 check if we did a "nexti" inside a prologue.
1709 * symtab.c (in_prologue): Delete function.
1710 * symtab.h (in_prologue): Delete declaration.
1711
67be31e5
DE
17122014-11-06 Doug Evans <xdje42@gmail.com>
1713
1714 * symtab.h (lookup_global_symbol): Improve function comment.
1715
08724ab7
DE
17162014-11-06 Doug Evans <xdje42@gmail.com>
1717
1718 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1719 All callers updated.
1720 * symtab.h (lookup_global_symbol): Update decl.
1721 (lookup_static_symbol): Move decl to better location.
1722
d9060ba6
DE
17232014-11-06 Doug Evans <xdje42@gmail.com>
1724
1725 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1726
74016e12
DE
17272014-11-06 Doug Evans <xdje42@gmail.com>
1728
1729 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1730 All callers updated.
1731 (lookup_symbol_in_all_objfiles): Renamed from
1732 lookup_symbol_aux_symtabs. All callers updated.
1733 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1734 All callers updated.
1735 (lookup_symbol_in_objfile_symtabs): Renamed from
1736 lookup_symbol_aux_objfile. All callers updated.
1737
d1a2d36d
DE
17382014-11-06 Doug Evans <xdje42@gmail.com>
1739
1740 * symtab.c (lookup_symbol_in_block): Renamed from
1741 lookup_symbol_aux_block. All callers updated.
1742
24d864bb
DE
17432014-11-06 Doug Evans <xdje42@gmail.com>
1744
1745 * symtab.c (lookup_static_symbol): Renamed from
1746 lookup_static_symbol_aux. All callers updated.
1747 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1748 All callers updated.
1749
358d6ab3
DE
17502014-11-06 Doug Evans <xdje42@gmail.com>
1751
1752 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1753 * block.c (block_lookup_symbol): Use it.
1754 * cp-support.c (make_symbol_overload_list_block): Use it.
1755 * symtab.c (iterate_over_symbols): Use it.
1756
16b2eaa1
DE
17572014-11-06 Doug Evans <xdje42@gmail.com>
1758
1759 * symtab.c (lookup_block_symbol): Moved to ...
1760 * block.c (block_lookup_symbol): ... here and renamed.
1761 All callers updated.
1762 * block.h (block_lookup_symbol): Declare.
1763 * symtab.h (lookup_block_symbol): Delete.
1764
2dd2cd1c
DE
17652014-11-06 Doug Evans <xdje42@gmail.com>
1766
1767 * ada-lang.c (ada_make_symbol_completion_list): Use
1768 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1769 * symtab.c (lookup_objfile_from_block): Ditto.
1770
d4c58915
DE
17712014-11-06 Doug Evans <xdje42@gmail.com>
1772
1773 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1774 TYPE_CODE_STRUCT.
1775
9c1877ea
DE
17762014-11-06 Doug Evans <xdje42@gmail.com>
1777
1778 * objfiles.c (get_objfile_arch): Constify.
1779 * objfiles.h (get_objfile_arch): Update prototype.
1780 * solib.c (solib_global_lookup): Fetch arch from objfile,
1781 not target_gdbarch.
1782
426a4079
SL
17832014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1784
1785 * nios2-tdep.c (wild_insn): Delete.
1786 (profiler_insn, irqentry_insn): Delete.
1787 (nios2_match_sequence): Delete.
1788 (nios2_analyze_prologue): Update comments. Remove matching
1789 of obsolete profiler_insn and irqentry_insn sequences.
1790
ee11262d
AM
17912014-11-05 Alan Modra <amodra@gmail.com>
1792
1793 * charset.c (convert_between_encodings): Shrink obstack using
1794 obstack_blank_fast.
1795 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1796 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1797 to char* before doing pointer arithmetic.
ee11262d 1798
c87e6d00
SM
17992014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1802
441ef17f
PA
18032014-11-04 Pedro Alves <palves@redhat.com>
1804
1805 * breakpoint.c (breakpoint_thread_match): Delete function.
1806 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1807
e0f52461
SC
18082014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1809
1810 PR c++/17494
1811 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1812 the method args also under EVAL_SKIP when evaluating method
1813 calls under EVAL_SKIP.
1814
a0b4d890
YQ
18152014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1816
1817 * dwarf2loc.c (read_pieced_value): Do big endian
1818 processing only if gdb_regnum is not -1.
1819 (write_pieced_value): Ditto.
1820
18212014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1822
1823 * arm-linux-tdep.c (arm_linux_init_abi): Use
1824 info.byte_order_for_code to choose endianity of breakpoint
1825 instructions snippets.
1826
18272014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1828
1829 * arm-tdep.c (extract_arm_insn): Use
1830 gdbarch_byte_order_for_code to read arm instruction.
1831
e82149ff
DE
18322014-11-02 Doug Evans <xdje42@gmail.com>
1833
1834 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1835
d7ee84f1
DE
18362014-11-02 Doug Evans <xdje42@gmail.com>
1837
1838 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1839 main_subfile before returning.
1840
4f072d17
DE
18412014-10-31 Doug Evans <xdje42@gmail.com>
1842
1843 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1844 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1845
8301c89e
DE
18462014-10-31 Doug Evans <xdje42@gmail.com>
1847
1848 * valops.c (value_cast_pointers): Fix whitespace.
1849 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1850 Ditto.
1851
02be9a71
DE
18522014-10-30 Doug Evans <dje@google.com>
1853
1854 * NEWS: Mention ability add attributes to gdb.Objfile and
1855 gdb.Progspace objects.
1856 * python/py-objfile.c (objfile_object): New member dict.
1857 (objfpy_dealloc): Py_XDECREF dict.
1858 (objfpy_initialize): Initialize dict.
1859 (objfile_getset): Add __dict__.
1860 (objfile_object_type): Set tp_dictoffset member.
1861 * python/py-progspace.c (progspace_object): New member dict.
1862 (pspy_dealloc): Py_XDECREF dict.
1863 (pspy_initialize): Initialize dict.
1864 (pspace_getset): Add __dict__.
1865 (pspace_object_type): Set tp_dictoffset member.
1866
6427bef6
YQ
18672014-10-30 Yao Qi <yao@codesourcery.com>
1868
1869 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1870 replace '\\' with '\\\\'.
1871
f60325be
JB
18722014-10-29 Joel Brobecker <brobecker@adacore.com>
1873
1874 GDB 7.8.1 released.
1875
ab917dfb
PA
18762014-10-29 Pedro Alves <palves@redhat.com>
1877
1878 PR gdb/17408
1879 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1880 instead of assuming a thread with a stepping range is always
1881 stepping.
1882
d3d4baed
PA
18832014-10-29 Pedro Alves <palves@redhat.com>
1884
1885 PR python/17372
1886 * event-top.c (change_line_handler): Call
1887 gdb_rl_callback_handler_remove instead of
1888 rl_callback_handler_remove.
1889 (callback_handler_installed): New global.
1890 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1891 (gdb_rl_callback_handler_reinstall): New functions.
1892 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1893 gdb_rl_callback_handler_install instead of
1894 rl_callback_handler_remove and rl_callback_handler_install.
1895 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1896 instead of rl_callback_handler_remove.
1897 * event-top.h (gdb_rl_callback_handler_remove)
1898 (gdb_rl_callback_handler_install)
1899 (gdb_rl_callback_handler_reinstall): New declarations.
1900 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1901 cleanup function.
1902 (fetch_inferior_event): Install it.
1903 * top.c (gdb_readline_wrapper_line) Call
1904 gdb_rl_callback_handler_remove instead of
1905 rl_callback_handler_remove.
1906 (gdb_readline_wrapper_cleanup): Don't call
1907 rl_callback_handler_install.
1908
6e5d7f39
PA
19092014-10-29 Pedro Alves <palves@redhat.com>
1910
1911 * event-top.c (command_line_handler): Clear the first byte of
1912 linebuffer, when it is first allocated.
1913
551cb6a5
PA
19142014-10-29 Pedro Alves <palves@redhat.com>
1915
1916 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1917 TRY_CATCH.
1918
1e1e619b
PA
19192014-10-29 Pedro Alves <palves@redhat.com>
1920
1921 PR tui/16138
1922 PR tui/17519
1923 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1924 (tui_allowed_p): Delete function.
1925 * tui/tui.c: Include "interps.h".
1926 (tui_enable): Don't use tui_allowed_p. Error out here with
1927 detailed error messages if the TUI is the top level interpreter,
1928 or if output is not a terminal. Use newterm instead of initscr,
1929 and error out if initializing the terminal fails. Also error out if
1930 the terminal doesn't support cursor addressing.
1931 * tui/tui.h (tui_allowed_p): Delete declaration.
1932
6041179a
JB
19332014-10-29 Joel Brobecker <brobecker@adacore.com>
1934
1935 * arm-tdep.c (arm_skip_stack_protector): Return early if
1936 address loaded by first "ldr" instruction does not have
1937 a corresponding minimal symbol. Update comment.
1938
6ae274b7
YQ
19392014-10-29 Yao Qi <yao@codesourcery.com>
1940
1941 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1942 loaded address correctly of ldr instruction.
1943
7f5ef605
PA
19442014-10-28 Pedro Alves <palves@redhat.com>
1945
1946 PR gdb/12623
1947 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1948 field.
1949 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1950 thread's stepped_breakpoint field. Skip if reverse debugging.
1951 Add comment.
1952 (init_thread_stepping_state, handle_signal_stop): Clear the
1953 thread's stepped_breakpoint field.
1954
7d1a114c
PA
19552014-10-27 Pedro Alves <palves@redhat.com>
1956
1957 * remote.c (remote_thread_alive): New, factored out from ...
1958 (remote_thread_alive): ... this.
1959 (remote_update_thread_list): Bail out before deleting threads if
1960 the target returned an empty list, and, the current thread has a
1961 magic/fake ptid.
1962
e5f8a7cc
PA
19632014-10-27 Pedro Alves <palves@redhat.com>
1964
1965 * infrun.c (handle_signal_stop): Also skip handlers when a random
1966 signal arrives while handling a "stepi" or a "nexti". Set the
1967 thread's 'step_after_step_resume_breakpoint' flag.
1968
71e396f9
LM
19692014-10-27 Luis Machado <lgustavo@codesourcery.com>
1970
1971 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1972 (arm_record_ld_st_imm_offset): Reimplement to cover all
1973 load/store cases for ARM opcode 010.
1974 (arm_record_ld_st_multiple): Reimplement to cover all
1975 load/store cases for ARM opcode 100.
1976
3aee438b
DE
19772014-10-26 Doug Evans <xdje42@gmail.com>
1978
1979 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1980
f88cb4b6
DE
19812014-10-26 Doug Evans <xdje42@gmail.com>
1982
1983 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1984 parameter "kind" to "block_index".
1985 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1986 "block_index".
1987 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1988
a023a30f
DE
19892014-10-26 Doug Evans <xdje42@gmail.com>
1990
1991 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1992
4c35218e
DE
19932014-10-26 Doug Evans <xdje42@gmail.com>
1994
1995 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1996 obstack_alloc.
1997
f08e8df3
DE
19982014-10-26 Doug Evans <xdje42@gmail.com>
1999
2000 * parser-defs.h (block_found): Move decl from here ...
2001 * symtab.h (block_found): ... to here.
2002
cf901d3b
DE
20032014-10-26 Doug Evans <xdje42@gmail.com>
2004
2005 * symtab.h (struct field_of_this_result): Fix typo in comment.
2006 (lookup_symbol_in_language): Move function comment here.
2007 (lookup_symbol): Improve function comment.
2008 (basic_lookup_symbol_nonlocal): Ditto.
2009 (lookup_symbol_static, lookup_symbol_global): Ditto.
2010 (lookup_symbol_aux_block): Ditto.
2011 (lookup_language_this): Add function comment.
2012 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2013 function comment.
2014 (lookup_block_symbol): Improve function comment.
2015 (lookup_struct): Fix capitalization in function comment.
2016 (lookup_transparent_type): Add function comment.
2017 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2018 Improve function comment.
2019 (lookup_objfile_from_block): Add function comment.
2020 * symtab.c (lookup_symbol_in_language): Update function comment.
2021 (lookup_symbol, lookup_language_this): Ditto.
2022 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2023 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2024 (basic_lookup_symbol_nonlocal): Ditto.
2025 (lookup_symbol_static, lookup_symbol_global): Ditto.
2026 (lookup_transparent_type, lookup_block_symbol): Ditto.
2027
ff6c39cf
DE
20282014-10-25 Doug Evans <xdje42@gmail.com>
2029
2030 * symtab.c (types_info): Delete forward decl.
2031 (functions_info, variables_info, sources_info): Ditto.
2032 (_initialize_symtab): Rewrite forward decl to use
2033 initialize_file_ftype.
2034
ec201f0c
DE
20352014-10-25 Doug Evans <xdje42@gmail.com>
2036
2037 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2038
ca040673
DE
20392014-10-25 Doug Evans <xdje42@gmail.com>
2040
2041 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2042 of local var child_die.
2043
6f259a23
DB
20442014-10-24 Don Breazeal <donb@codesourcery.com>
2045
2046 * infrun.c (follow_fork_inferior): Update fork message printing
2047 to use target_terminal_ours_for_output instead of
2048 target_terminal_ours, to use _() for all format strings, to print
2049 "vfork" instead of "fork" for vforks, and to add a detach message.
2050 (handle_vfork_child_exec_or_exit): Update message printing to use
2051 target_terminal_ours_for_output instead of target_terminal_ours, to
2052 use _() for all format strings, and to fix some formatting.
2053
09dd9a69
PA
20542014-10-24 Pedro Alves <palves@redhat.com>
2055
2056 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2057 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2058 * config/vax/vax.mh: Delete.
2059 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2060 obsolete configurations section.
2061 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2062 * vax-nat.c: Delete file.
2063
5ab806de
PA
20642014-10-24 Pedro Alves <palves@redhat.com>
2065
2066 * NEWS (Removed targets): Add OS/arch column.
2067
3433cfa5
SC
20682014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2069
2070 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2071 on the arg type of a constructor only if it is of reference type.
2072
96ba4233
SL
20732014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2074
2075 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2076 accessors and constants from nios2 opcodes update.
2077 (nios2_get_next_pc): Likewise.
2078
28153fd3
DE
20792014-10-19 Doug Evans <xdje42@gmail.com>
2080
2081 * gdbthread.h (set_running): Fix comment.
2082 (set_executing, finish_thread_state): Fix comment.
2083
fc9b8e47
DE
20842014-10-18 Doug Evans <xdje42@gmail.com>
2085
2086 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2087
4ffbba72
DE
20882014-10-17 Doug Evans <dje@google.com>
2089
2090 * NEWS: Mention new event gdb.clear_objfiles.
2091 * python/py-event.h (emit_clear_objfiles_event): Clear
2092 * python/py-events.h (events_object): New member clear_objfiles.
2093 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2094 event.
2095 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2096 emit clear_objfiles event.
2097 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2098 function.
2099 (emit_clear_objfiles_event): New function.
2100 (clear_objfiles): New event.
2101 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2102 Declare.
2103 * python/python.c (_initialize_python): Call
2104 gdbpy_initialize_clear_objfiles_event.
2105
d096d8c1
DE
21062014-10-17 Doug Evans <dje@google.com>
2107
2108 * NEWS: Mention new gdb.Objfile.progspace attribute.
2109 * python/py-objfile.c (objfpy_get_progspace): New function.
2110 (objfile_getset): New entry for "progspace".
2111
6c4486e6
PA
21122014-10-17 Pedro Alves <palves@redhat.com>
2113
2114 PR gdb/17471
2115 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2116 returns a copy of the input.
2117 (run_command_1, continue_command, step_1, jump_command)
2118 (signal_command, until_command, advance_command, finish_command)
2119 (attach_command): Adjust and install a cleanup to free the
2120 stripped args.
2121
0ff33695
PA
21222014-10-17 Pedro Alves <palves@redhat.com>
2123
2124 PR gdb/17300
2125 * infcmd.c (continue_1): If continuing all threads in the
2126 foreground, make sure the inferior's terminal settings are put in
2127 effect.
2128
6fdebc3d
PA
21292014-10-17 Pedro Alves <palves@redhat.com>
2130
2131 PR gdb/17472
2132 * annotate.c (annotate_breakpoints_invalid): Use
2133 target_terminal_our_for_output instead of target_terminal_ours.
2134 Give back the terminal to the target.
2135 (annotate_frames_invalid): Likewise.
2136
5842f62a
PA
21372014-10-17 Pedro Alves <palves@redhat.com>
2138
2139 * target.c (enum terminal_state): New enum.
2140 (terminal_state): New global.
2141 (target_terminal_init): New function.
2142 (target_terminal_inferior): Skip if inferior already owns the
2143 terminal.
2144 (target_terminal_ours, target_terminal_ours_for_output): New
2145 functions.
2146 * target.h (target_terminal_init): Convert to function prototype.
2147 (target_terminal_ours_for_output): Convert to function prototype
2148 and tweak comment.
2149 (target_terminal_ours): Convert to function prototype and tweak
2150 comment.
2151 * windows-nat.c (do_initial_windows_stuff): Call
2152 target_terminal_init instead of child_terminal_init_with_pgrp.
2153
32a8097b
PA
21542014-10-17 Pedro Alves <palves@redhat.com>
2155
2156 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2157 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2158 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2159 solib-osf.c.
2160 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2161 * ada-lang.h [__alpha__ && __osf__]
2162 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2163 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2164 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2165 GDB_OSABI_OSF1.
2166 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2167 files.
2168 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2169 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2170 * configure: Regenerate.
2171 * configure.ac: Remove references to osf.
2172 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2173 section. Remove all other references to osf.
2174 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2175 Remove all other references to osf.
2176 * dec-thread.c: Delete file.
2177 * defs.h (GDB_OSABI_OSF1): Delete.
2178 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2179 defined.
2180 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2181 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2182 Delete code.
2183 (unconditionally_kill_inferior)
2184 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2185 * solib-osf.c: Delete file.
2186
80134cf5
PA
21872014-10-17 Pedro Alves <palves@redhat.com>
2188
2189 * remote.c (clear_threads_listing_context): Move higher up, out of
2190 the HAVE_LIBEXPAT guard.
2191
89c7137f
TG
21922014-10-16 Tristan Gingold <gingold@adacore.com>
2193
2194 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2195 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2196 on amd64.
2197
44ee4a52
PA
21982014-10-15 Pedro Alves <palves@redhat.com>
2199
2200 * dec-thread.c (dec_thread_count_gdb_threads)
2201 (dec_thread_add_gdb_thread): Delete.
2202 (dec_thread_update_thread_list): Delete.
2203 (dec_thread_find_new_threads): Rename to ...
2204 (dec_thread_update_thread_list): ... this. Delete GDB-size
2205 threads that are no longer found in dec_thread_list.
2206 (resync_thread_list): Delete.
2207 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2208 resync_thread_list.
2209
ab970af1
PA
22102014-10-15 Pedro Alves <palves@redhat.com>
2211
2212 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2213 * remote.c (remote_update_thread_list): Skip calling prune_threads
2214 if any thread listing method is supported, and instead walk over
2215 the set of remote threads listed, deleting those that are not
2216 found in GDB's thread list.
2217
e8032dde
PA
22182014-10-15 Pedro Alves <palves@redhat.com>
2219
2220 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2221 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2222 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2223 (bsd_uthread_target): Adjust.
2224 * corelow.c (core_open): Adjust.
2225 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2226 (dec_thread_update_thread_list): New function.
2227 (init_dec_thread_ops): Adjust.
2228 * gdbthread.h (prune_threads): New declaration.
2229 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2230 (thread_db_update_thread_list): ... this. Call prune_threads.
2231 (init_thread_db_ops): Adjust.
2232 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2233 (procfs_update_thread_list): ... this. Call prune_threads.
2234 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2235 Adjust.
2236 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2237 (obsd_update_thread_list): ... this. Call prune_threads.
2238 (obsd_add_target): Adjust.
2239 * procfs.c (procfs_target): Adjust.
2240 (procfs_notice_thread): Update comment.
2241 (procfs_find_new_threads): Rename to ...
2242 (procfs_update_thread_list): ... this. Call prune_threads.
2243 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2244 comment.
2245 (ravenscar_wait): Adjust.
2246 (ravenscar_find_new_threads): Rename to ...
2247 (ravenscar_update_thread_list): ... this. Call prune_threads.
2248 (init_ravenscar_thread_ops): Adjust.
2249 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2250 (record_btrace_update_thread_list): ... this. Adjust comment.
2251 (init_record_btrace_ops): Adjust.
2252 * remote.c (remote_threads_info): Rename to ...
2253 (remote_update_thread_list): ... this. Call prune_threads.
2254 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2255 Adjust.
2256 * sol-thread.c (check_for_thread_db): Adjust.
2257 (sol_find_new_threads_callback): Rename to ...
2258 (sol_update_thread_list_callback): ... this.
2259 (sol_find_new_threads): Rename to ...
2260 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2261 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2262 * target-delegates.c: Regenerate.
2263 * target.c (target_find_new_threads): Rename to ...
2264 (target_update_thread_list): ... this.
2265 * target.h (struct target_ops): Rename to_find_new_threads field
2266 to to_update_thread_list.
2267 (target_find_new_threads): Rename to ...
2268 (target_update_thread_list): ... this.
2269 * thread.c (prune_threads): Make extern.
2270 (update_thread_list): Adjust.
2271
6dc54d91
PA
22722014-10-15 Pedro Alves <palves@redhat.com>
2273
2274 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2275 Add describing comment. Return -1 if the qL packet is not
2276 supported.
2277 (struct thread_item, thread_item_t): Move higher up in
2278 the file. Add comments.
2279 (struct threads_parsing_context): Move higher up in
2280 the file, add comments, and remote to ...
2281 (struct threads_listing_context): ... this.
2282 (remote_newthread_step): Don't add the thread to GDB's thread
2283 database here. Instead push it to the thread_listing_context
2284 list.
2285 (remote_find_new_threads): Rename to ...
2286 (remote_get_threads_with_ql): ... this. Add target_ops and
2287 targets_listing_context parameters. Pass down context.
2288 (start_thread): Adjust.
2289 (clear_threads_parsing_context): Rename to ...
2290 (clear_threads_listing_context): ... this.
2291 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2292 remote_threads_info.
2293 (remote_get_threads_with_qthreadinfo): Ditto.
2294 (remote_threads_info): Reimplement.
2295
36728e82
PA
22962014-10-15 Pedro Alves <palves@redhat.com>
2297
2298 * infrun.c (resume): Don't force displaced-stepping for all
2299 single-steps on software single-stepping archs.
2300
34b7e8a6
PA
23012014-10-15 Pedro Alves <palves@redhat.com>
2302
2303 * breakpoint.c (single_step_breakpoints): Delete global.
2304 (insert_single_step_breakpoint): Adjust to store the breakpoint
2305 pointer in the current thread.
2306 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2307 (cancel_single_step_breakpoints): Delete functions.
2308 (breakpoint_has_location_inserted_here): Make extern.
2309 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2310 breakpoint list.
2311 * breakpoint.h (breakpoint_has_location_inserted_here): New
2312 declaration.
2313 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2314 (cancel_single_step_breakpoints): Remove declarations.
2315 * gdbthread.h (struct thread_control_state)
2316 <single_step_breakpoints>: New field.
2317 (delete_single_step_breakpoints)
2318 (thread_has_single_step_breakpoints_set)
2319 (thread_has_single_step_breakpoint_here): New declarations.
2320 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2321 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2322 (singlestep_pc): Delete globals.
2323 (infrun_thread_ptid_changed): Remove references to removed
2324 globals.
2325 (resume_cleanups): Delete the current thread's single-step
2326 breakpoints.
2327 (maybe_software_singlestep): Remove references to removed globals.
2328 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2329 delete_single_step_breakpoints.
2330 (init_wait_for_inferior): Remove references to removed globals.
2331 (delete_thread_infrun_breakpoints): Delete the thread's
2332 single-step breakpoints too.
2333 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2334 single-step breakpoints here.
2335 (delete_stopped_threads_single_step_breakpoints): New function.
2336 (adjust_pc_after_break): Adjust to use
2337 thread_has_single_step_breakpoints_set.
2338 (handle_inferior_event): Remove references to removed globals.
2339 Use delete_stopped_threads_single_step_breakpoints.
2340 (handle_signal_stop): Adjust to per-thread single-step
2341 breakpoints. Swap test order to do cheaper tests first.
2342 (switch_back_to_stepped_thread): Extend debug output. Remove
2343 references to removed globals.
2344 * record-full.c (record_full_wait_1): Adjust to per-thread
2345 single-step breakpoints.
2346 * thread.c (delete_single_step_breakpoints)
2347 (thread_has_single_step_breakpoints_set)
2348 (thread_has_single_step_breakpoint_here): New functions.
2349 (clear_thread_inferior_resources): Also delete the thread's
2350 single-step breakpoints.
2351
5b834a0a
PA
23522014-10-15 Pedro Alves <palves@redhat.com>
2353
2354 * thread.c (delete_thread_breakpoint): New function.
2355 (delete_step_resume_breakpoint)
2356 (delete_exception_resume_breakpoint): Use it.
2357 (delete_at_next_stop): New function.
2358 (clear_thread_inferior_resources): Use delete_at_next_stop.
2359
a1fd2fa5
PA
23602014-10-15 Pedro Alves <palves@redhat.com>
2361
2362 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2363 (breakpoint_inserted_here_p): ... here. Remove special case for
2364 software single-step breakpoints.
2365 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2366 (software_breakpoint_inserted_here_p): ... here. Remove special
2367 case for software single-step breakpoints.
2368 (bp_target_info_copy_insertion_state)
2369 (deprecated_insert_raw_breakpoint)
2370 (deprecated_remove_raw_breakpoint): Delete functions.
2371 * breakpoint.h (deprecated_insert_raw_breakpoint)
2372 (deprecated_remove_raw_breakpoint): Remove declarations.
2373
7c16b83e
PA
23742014-10-15 Pedro Alves <palves@redhat.com>
2375
2376 PR breakpoints/9649
2377 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2378 Delete array globals.
2379 (single_step_breakpoints): New global.
2380 (breakpoint_xfer_memory): Remove special handling for single-step
2381 breakpoints.
2382 (update_breakpoints_after_exec): Delete bp_single_step
2383 breakpoints.
2384 (detach_breakpoints): Remove special handling for single-step
2385 breakpoints.
2386 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2387 (bpstat_stop_status): Add comment.
2388 (bpstat_what, bptype_string, print_one_breakpoint_location)
2389 (adjust_breakpoint_address, init_bp_location): Handle
2390 bp_single_step.
2391 (new_single_step_breakpoint): New function.
2392 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2393 handling for single-step breakpoints.
2394 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2395 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2396 Rewrite.
2397 (detach_single_step_breakpoints, find_single_step_breakpoint):
2398 Delete functions.
2399 (breakpoint_has_location_inserted_here): New function.
2400 (single_step_breakpoint_inserted_here_p): Rewrite.
2401 * breakpoint.h: Remove FIXME.
2402 (enum bptype) <bp_single_step>: New enum value.
2403 (insert_single_step_breakpoint): Update comment.
2404 * infrun.c (resume_cleanups)
2405 (delete_step_thread_step_resume_breakpoint): Remove single-step
2406 breakpoints.
2407 (fetch_inferior_event): Install a cleanup that removes infrun
2408 breakpoints.
2409 (switch_back_to_stepped_thread) <expect thread advanced also>:
2410 Clear step-over info.
2411
0cbcdb96
PA
24122014-10-15 Pedro Alves <palves@redhat.com>
2413
2414 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2415 (delete_thread_infrun_breakpoints): New function, with parts
2416 salvaged from delete_step_resume_breakpoint_callback.
2417 (delete_step_thread_step_resume_breakpoint): Delete.
2418 (for_each_just_stopped_thread_callback_func): New typedef.
2419 (for_each_just_stopped_thread): New function.
2420 (delete_just_stopped_threads_infrun_breakpoints): New function.
2421 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2422 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2423 ... this. Adjust.
2424 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2425
963f9c80
PA
24262014-10-15 Pedro Alves <palves@redhat.com>
2427
2428 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2429 trying to step past a non-steppable watchpoint.
2430 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2431 field.
2432 * infrun.c (struct step_over_info): Add new field
2433 'nonsteppable_watchpoint_p' and adjust comments.
2434 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2435 Adjust.
2436 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2437 (stepping_past_nonsteppable_watchpoint): New function.
2438 (step_over_info_valid_p): Also return true if stepping past a
2439 nonsteppable watchpoint.
2440 (proceed): Adjust call to set_step_over_info. Remove reference to
2441 init_infwait_state.
2442 (init_wait_for_inferior): Remove reference to init_infwait_state.
2443 (waiton_ptid): Delete global.
2444 (struct execution_control_state)
2445 <stepped_after_stopped_by_watchpoint>: Delete field.
2446 (wait_for_inferior, fetch_inferior_event): Always pass
2447 minus_one_ptid to target_wait.
2448 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2449 field.
2450 (init_infwait_state): Delete function.
2451 (handle_inferior_event): Remove infwait_state handling.
2452 (handle_signal_stop) <watchpoints handling>: Adjust after
2453 stepped_after_stopped_by_watchpoint removal. Don't remove
2454 breakpoints here nor set infwait_state. Set the thread's
2455 stepping_over_watchpoint flag, and call keep_going instead.
2456 (keep_going): Handle stepping_over_watchpoint. Adjust
2457 set_step_over_info calls.
2458 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2459 function.
2460
6cc83d2a
PA
24612014-10-15 Pedro Alves <palves@redhat.com>
2462
2463 * infrun.c (step_over_info_valid_p): New function.
2464 (resume): Use step_over_info_valid_p instead of checking the
2465 threads's trap_expected flag.
2466
6979730b
DE
24672014-10-15 Doug Evans <dje@google.com>
2468 Walfred Tedeschi <walfred.tedeschi@intel.com>
2469
2470 PR python/17364
2471 * python/lib/gdb/__init__.py (packages): Add "printer".
2472 * python/lib/gdb/command/bound_registers.py: Moved to ...
2473 * python/lib/gdb/printer/bound_registers.py: ... here.
2474 Add printer to global set of builtin printers. Rename printer from
2475 "bound" to "mpx_bound128".
2476 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2477 registered as global "builtin" printer.
2478 (add_builtin_pretty_printer): New function.
2479 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2480 gdb/printer/__init__.py.
2481
35a49624
IB
24822014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2483
2484 * Makefile.in (SFILES): Remove d-support.c.
2485 (COMMON_OBS): Remove d-support.o.
2486 * d-lang.h (d_parse_symbol): Remove declaration.
2487 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2488 * d-support.c: Remove file.
2489
8fa0c4f8
AA
24902014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2491
2492 * gdb/infrun.c (process_event_stop_test): Apply
2493 gdbarch_addr_bits_remove to longjmp resume address.
2494
3666da81
PA
24952014-10-15 Pedro Alves <palves@redhat.com>
2496
2497 * regformats/microblaze.dat: Delete file.
2498
449aa9df
AKA
24992014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2500
2501 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2502 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2503
ebb8ece2
SC
25042014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2505
2506 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2507 as non-trivial.
2508
82c48ac7
SC
25092014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2510
2511 PR c++/13403
2512 PR c++/15154
2513 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2514 with qualified args.
2515
c40cc657
JB
25162014-10-14 Joel Brobecker <brobecker@adacore.com>
2517
2518 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2519 of the case where the second operand is a pointer.
2520 <BINOP_SUB>: Likewise.
2521
0ea5cda8
SDJ
25222014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2523
2524 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2525 only if it is not NULL.
2526 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2527 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2528 (struct probe_ops) <clear_semaphore>: Likewise.
2529 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2530 not NULL.
2531 (stop_tracing): Likewise, for clear_semaphore.
2532
f7088df3
SDJ
25332014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2534
2535 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2536 using language_c, instead of current_language.
2537
4e1bbde0
DE
25382014-10-13 Doug Evans <dje@google.com>
2539
6ff5a0f6 2540 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2541 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2542 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2543 (pspy_new, pspace_to_pspace_object): Call it.
2544
c780cc2f
JK
25452014-10-13 Miroslav Franc <mfranc@redhat.com>
2546 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 Fix "save breakpoints" for "catch" command.
2549 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2550 newline.
2551
99894e11
JK
25522014-10-12 Miroslav Franc <mfranc@redhat.com>
2553
2554 Fix "save breakpoints" for "disable $bpnum" command.
2555 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2556
3831839c
PA
25572014-10-10 Pedro Alves <palves@redhat.com>
2558
2559 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2560 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2561 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2562 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2563 and been removed.
2564 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2565 * configure.ac: Remove references to IRIX.
2566 * configure.host: Add *-*-irix* to the obsolete hosts section.
2567 Remove all other references to irix.
2568 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2569 Delete files.
2570
cc3afae2
AKA
25712014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2572
2573 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2574 isn't valid, release the tdesc arch data and return NULL.
2575
cdfa0b0a
PA
25762014-10-10 Pedro Alves <palves@redhat.com>
2577
2578 * linux-tdep.c: Include observer.h.
2579 (linux_inferior_data): New global.
2580 (struct linux_info): New structure.
2581 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2582 (get_linux_inferior_data): New functions.
2583 (linux_vsyscall_range): Rename to ...
2584 (linux_vsyscall_range_raw): ... this.
2585 (linux_vsyscall_range): New function; handles caching.
2586 (_initialize_linux_tdep): Register linux_inferior_data. Install
2587 inferior_exit and inferior_appeared observers.
2588
8b9a549d
PA
25892014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Pedro Alves <palves@redhat.com>
2591
2592 PR symtab/14466
2593 * solib-svr4.c (svr4_read_so_list): Rename to ...
2594 (svr4_current_sos_1): ... this and change the function comment.
2595 (svr4_current_sos): New function.
2596
3437254d
PA
25972014-10-10 Pedro Alves <palves@redhat.com>
2598
2599 * arch-utils.c (default_vsyscall_range): New function.
2600 * arch-utils.h (default_vsyscall_range): New declaration.
2601 * gdbarch.sh (vsyscall_range): New hook.
2602 * gdbarch.h, gdbarch.c: Regenerate.
2603 * linux-tdep.c (linux_vsyscall_range): New function.
2604 (linux_init_abi): Install linux_vsyscall_range as
2605 vsyscall_range gdbarch hook.
2606 * memrange.c (address_in_mem_range): New function.
2607 * memrange.h (address_in_mem_range): New declaration.
2608 * symfile-mem.c (find_vdso_size): Delete function.
2609 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2610
31cc0b80
PA
26112014-10-10 Pedro Alves <palves@redhat.com>
2612
2613 * infrun.c (normal_stop): Fix typo in comment.
2614
3e3286a2
SDJ
26152014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2616
2617 PR tdep/9390
2618 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2619 typo when using logical AND to determine instruction type.
2620
fcbdedf8
YQ
26212014-10-09 Yao Qi <yao@codesourcery.com>
2622
2623 * infrun.c (handle_signal_stop): Remove local variable
2624 'printed'.
2625
db984616
SS
26262014-10-08 Stan Shebs <stan@codesourcery.com>
2627
2628 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2629
3ba37e6c
GB
26302014-10-08 Gary Benson <gbenson@redhat.com>
2631
2632 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2633
a442d071
GB
26342014-10-08 Gary Benson <gbenson@redhat.com>
2635
2636 * common/common-defs.h: Include common-exceptions.h.
2637 * exceptions.h: Do not include common-exceptions.h.
2638
6f1947e8
GB
26392014-10-08 Gary Benson <gbenson@redhat.com>
2640
2641 * common/common-defs.h: Include cleanups.h.
2642 * common/common-exceptions.c: Do not include cleanups.h.
2643 * utils.h: Likewise.
2644
c765fdb9
GB
26452014-10-08 Gary Benson <gbenson@redhat.com>
2646
2647 * ada-lang.c: Do not include exceptions.h.
2648 * ada-valprint.c: Likewise.
2649 * amd64-tdep.c: Likewise.
2650 * auto-load.c: Likewise.
2651 * block.c: Likewise.
2652 * break-catch-throw.c: Likewise.
2653 * breakpoint.c: Likewise.
2654 * btrace.c: Likewise.
2655 * c-lang.c: Likewise.
2656 * cli/cli-cmds.c: Likewise.
2657 * cli/cli-interp.c: Likewise.
2658 * cli/cli-script.c: Likewise.
2659 * completer.c: Likewise.
2660 * corefile.c: Likewise.
2661 * corelow.c: Likewise.
2662 * cp-abi.c: Likewise.
2663 * cp-support.c: Likewise.
2664 * cp-valprint.c: Likewise.
2665 * darwin-nat.c: Likewise.
2666 * dwarf2-frame-tailcall.c: Likewise.
2667 * dwarf2-frame.c: Likewise.
2668 * dwarf2loc.c: Likewise.
2669 * dwarf2read.c: Likewise.
2670 * eval.c: Likewise.
2671 * event-loop.c: Likewise.
2672 * event-top.c: Likewise.
2673 * f-valprint.c: Likewise.
2674 * frame-unwind.c: Likewise.
2675 * frame.c: Likewise.
2676 * gdbtypes.c: Likewise.
2677 * gnu-v2-abi.c: Likewise.
2678 * gnu-v3-abi.c: Likewise.
2679 * guile/scm-auto-load.c: Likewise.
2680 * guile/scm-breakpoint.c: Likewise.
2681 * guile/scm-cmd.c: Likewise.
2682 * guile/scm-frame.c: Likewise.
2683 * guile/scm-lazy-string.c: Likewise.
2684 * guile/scm-param.c: Likewise.
2685 * guile/scm-symbol.c: Likewise.
2686 * guile/scm-type.c: Likewise.
2687 * hppa-hpux-tdep.c: Likewise.
2688 * i386-tdep.c: Likewise.
2689 * inf-loop.c: Likewise.
2690 * infcall.c: Likewise.
2691 * infcmd.c: Likewise.
2692 * infrun.c: Likewise.
2693 * interps.c: Likewise.
2694 * interps.h: Likewise.
2695 * jit.c: Likewise.
2696 * linespec.c: Likewise.
2697 * linux-nat.c: Likewise.
2698 * linux-thread-db.c: Likewise.
2699 * m32r-rom.c: Likewise.
2700 * main.c: Likewise.
2701 * memory-map.c: Likewise.
2702 * mi/mi-cmd-break.c: Likewise.
2703 * mi/mi-cmd-stack.c: Likewise.
2704 * mi/mi-interp.c: Likewise.
2705 * mi/mi-main.c: Likewise.
2706 * monitor.c: Likewise.
2707 * nto-procfs.c: Likewise.
2708 * objc-lang.c: Likewise.
2709 * p-valprint.c: Likewise.
2710 * parse.c: Likewise.
2711 * ppc-linux-tdep.c: Likewise.
2712 * printcmd.c: Likewise.
2713 * probe.c: Likewise.
2714 * python/py-auto-load.c: Likewise.
2715 * python/py-breakpoint.c: Likewise.
2716 * python/py-cmd.c: Likewise.
2717 * python/py-finishbreakpoint.c: Likewise.
2718 * python/py-frame.c: Likewise.
2719 * python/py-framefilter.c: Likewise.
2720 * python/py-function.c: Likewise.
2721 * python/py-gdb-readline.c: Likewise.
2722 * python/py-inferior.c: Likewise.
2723 * python/py-infthread.c: Likewise.
2724 * python/py-lazy-string.c: Likewise.
2725 * python/py-linetable.c: Likewise.
2726 * python/py-param.c: Likewise.
2727 * python/py-prettyprint.c: Likewise.
2728 * python/py-symbol.c: Likewise.
2729 * python/py-type.c: Likewise.
2730 * python/py-value.c: Likewise.
2731 * python/python-internal.h: Likewise.
2732 * python/python.c: Likewise.
2733 * record-btrace.c: Likewise.
2734 * record-full.c: Likewise.
2735 * regcache.c: Likewise.
2736 * remote-fileio.c: Likewise.
2737 * remote-mips.c: Likewise.
2738 * remote.c: Likewise.
2739 * rs6000-aix-tdep.c: Likewise.
2740 * rs6000-nat.c: Likewise.
2741 * skip.c: Likewise.
2742 * solib-darwin.c: Likewise.
2743 * solib-dsbt.c: Likewise.
2744 * solib-frv.c: Likewise.
2745 * solib-ia64-hpux.c: Likewise.
2746 * solib-spu.c: Likewise.
2747 * solib-svr4.c: Likewise.
2748 * solib.c: Likewise.
2749 * spu-tdep.c: Likewise.
2750 * stack.c: Likewise.
2751 * stap-probe.c: Likewise.
2752 * symfile-mem.c: Likewise.
2753 * symmisc.c: Likewise.
2754 * target.c: Likewise.
2755 * thread.c: Likewise.
2756 * top.c: Likewise.
2757 * tracepoint.c: Likewise.
2758 * tui/tui-interp.c: Likewise.
2759 * typeprint.c: Likewise.
2760 * utils.c: Likewise.
2761 * valarith.c: Likewise.
2762 * valops.c: Likewise.
2763 * valprint.c: Likewise.
2764 * value.c: Likewise.
2765 * varobj.c: Likewise.
2766 * windows-nat.c: Likewise.
2767 * xml-support.c: Likewise.
2768
484933d1
MR
27692014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2770
2771 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2772 name implies.
2773 (extended_mips16_next_pc): Update accordingly.
2774
ab50adb6
MR
27752014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2776
2777 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2778 function.
2779 (micromips_instruction_is_compact_branch): Likewise.
2780 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2781 or a compact jump, reaching a jump delay slot, or seeing a
2782 second non-prologue instruction.
2783 (micromips_scan_prologue): Also terminate scanning upon seeing a
2784 compact branch or jump, or reaching a branch or jump delay slot.
2785 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2786 or jump delay slot, or seeing a second non-prologue instruction.
2787 (mips32_instruction_has_delay_slot): Retain instruction
2788 examination code only, update arguments accordingly and move
2789 instruction fetch pieces to...
2790 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2791 (micromips_instruction_has_delay_slot): Likewise and to...
2792 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2793 (mips16_instruction_has_delay_slot): Likewise and to...
2794 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2795 (mips_single_step_through_delay): Update accordingly.
2796 (mips_adjust_breakpoint_address): Likewise.
2797
ae790652
MR
27982014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2799
2800 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2801 !mustbe32 also return 1 for 32-bit instructions.
2802 (mips16_instruction_has_delay_slot): Likewise. Add an
2803 explanatory comment.
2804
9b807e7b
MR
28052014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2806
2807 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2808 symbols special.
2809
0d5ed153
MR
28102014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2811
2812 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2813 update comments.
2814 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2815 for the breakpoint's address. Don't preinitialize `placed_size'.
2816 (insert_bp_location): Set `reqstd_address' rather than
2817 `placed_address'.
2818 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2819 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2820 address.
2821 (bkpt_remove_location): Likewise.
2822 (deprecated_insert_raw_breakpoint): Likewise.
2823 (deprecated_remove_raw_breakpoint): Likewise.
2824 (find_single_step_breakpoint): Likewise.
2825 * mem-break.c (default_memory_insert_breakpoint): Use
2826 `reqstd_address' for the breakpoint's address. Don't set
2827 `placed_address' or `placed_size' if breakpoint contents couldn't
2828 have been determined.
2829 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2830 the breakpoint's address.
2831 (remote_insert_hw_breakpoint): Likewise. Don't set
2832 `placed_address' or `placed_size' if breakpoint couldn't have been
2833 set.
2834 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2835 `reqstd_address' for the breakpoint's address.
2836 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2837 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2838 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2839 * microblaze-linux-tdep.c
2840 (microblaze_linux_memory_remove_breakpoint): Likewise.
2841 * monitor.c (monitor_insert_breakpoint): Likewise.
2842 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2843 (procfs_insert_hw_breakpoint): Likewise.
2844 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2845 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2846 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2847 * remote-mips.c (mips_insert_breakpoint): Likewise.
2848 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2849
3e871532
LM
28502014-10-03 Luis Machado <lgustavo@codesourcery.com>
2851
2852 * valops.c (value_assign): Check for bit field assignments
2853 before calling architecture-specific register value
2854 conversion functions.
2855
ec48dc8b
PM
28562014-10-03 Pierre Muller <muller@sourceware.org>
2857
2858 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2859
b57bacec
PA
28602014-10-02 Pedro Alves <palves@redhat.com>
2861
2862 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2863 threads_are_executing.
2864 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2865 describing comment.
2866 * gdbthread.h (threads_are_executing): Declare.
2867 (handle_signal_stop) <random signals>: Don't print about the
2868 signal here if stopping.
2869 (end_stepping_range): Don't notify observers here.
2870 (normal_stop): Update the thread list. If stopped by a random
2871 signal or a stepping range ended, notify observers.
2872 * thread.c (threads_executing): New global.
2873 (init_thread_list): Clear 'threads_executing'.
2874 (set_executing): Set or clear 'threads_executing'.
2875 (threads_are_executing): New function.
2876 (update_threads_executing): New function.
2877 (update_thread_list): Use it.
2878
13fd3ff3
PA
28792014-10-02 Pedro Alves <palves@redhat.com>
2880
2881 PR breakpoints/17431
2882 * breakpoint.c (update_breakpoints_after_exec): Don't create
2883 overlay, longjmp, std terminate nor exception breakpoints here.
2884
32990ada
PA
28852014-10-02 Pedro Alves <palves@redhat.com>
2886
2887 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2888 Adjust comments.
2889 * inferior.c (find_inferior_for_program_space): Give preference to
2890 the current inferior.
2891 * inferior.h (find_inferior_for_program_space): Update comment.
2892 * progspace.c (switch_to_program_space_and_thread): Prefer the
2893 current inferior if it's bound to the program space requested. If
2894 the inferior found doesn't have a PID yet, don't bother looking up
2895 a thread.
2896 * progspace.h (switch_to_program_space_and_thread): Adjust
2897 comment.
2898 * thread.c (any_thread_of_process, any_live_thread_of_process):
2899 Give preference to the current thread.
2900
0fec99e8
PA
29012014-10-01 Pedro Alves <palves@redhat.com>
2902
2903 * breakpoint.c (insert_bp_location): Error out if inserting a
2904 software breakpoint at a read-only address.
2905 * target.c (memory_xfer_check_region): New function, factored out
2906 from ...
2907 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2908 ULONGEST.
2909 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2910 against the memory region attributes.
2911
2ddf4301
SM
29122014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2913
2914 * NEWS: Announce new exit-code field in -list-thread-groups
2915 output.
2916 * inferior.c (exit_inferior_1): Don't clear exit code.
2917 (inferior_appeared): Clear exit code.
2918 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2919 code.
2920
5fdeec1d
PA
29212014-10-01 Pedro Alves <palves@redhat.com>
2922
2923 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2924 GENERATED" along with emacs/vi read-only markers.
2925 * regformats/aarch64.dat: Regenerate.
2926 * regformats/arm-with-iwmmxt.dat: Regenerate.
2927 * regformats/arm-with-neon.dat: Regenerate.
2928 * regformats/arm-with-vfpv2.dat: Regenerate.
2929 * regformats/arm-with-vfpv3.dat: Regenerate.
2930 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2931 * regformats/i386/amd64-avx.dat: Regenerate.
2932 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2933 * regformats/i386/amd64-avx512.dat: Regenerate.
2934 * regformats/i386/amd64-linux.dat: Regenerate.
2935 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2936 * regformats/i386/amd64-mpx.dat: Regenerate.
2937 * regformats/i386/amd64.dat: Regenerate.
2938 * regformats/i386/i386-avx-linux.dat: Regenerate.
2939 * regformats/i386/i386-avx.dat: Regenerate.
2940 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2941 * regformats/i386/i386-avx512.dat: Regenerate.
2942 * regformats/i386/i386-linux.dat: Regenerate.
2943 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2944 * regformats/i386/i386-mmx.dat: Regenerate.
2945 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2946 * regformats/i386/i386-mpx.dat: Regenerate.
2947 * regformats/i386/i386.dat: Regenerate.
2948 * regformats/i386/x32-avx-linux.dat: Regenerate.
2949 * regformats/i386/x32-avx.dat: Regenerate.
2950 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2951 * regformats/i386/x32-avx512.dat: Regenerate.
2952 * regformats/i386/x32-linux.dat: Regenerate.
2953 * regformats/i386/x32.dat: Regenerate.
2954 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2955 * regformats/mips-dsp-linux.dat: Regenerate.
2956 * regformats/mips-linux.dat: Regenerate.
2957 * regformats/mips64-dsp-linux.dat: Regenerate.
2958 * regformats/mips64-linux.dat: Regenerate.
2959 * regformats/nios2-linux.dat: Regenerate.
2960 * regformats/rs6000/powerpc-32.dat: Regenerate.
2961 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2962 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2963 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2964 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2965 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2966 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2967 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2968 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2969 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2970 * regformats/s390-linux32.dat: Regenerate.
2971 * regformats/s390-linux32v1.dat: Regenerate.
2972 * regformats/s390-linux32v2.dat: Regenerate.
2973 * regformats/s390-linux64.dat: Regenerate.
2974 * regformats/s390-linux64v1.dat: Regenerate.
2975 * regformats/s390-linux64v2.dat: Regenerate.
2976 * regformats/s390-te-linux64.dat: Regenerate.
2977 * regformats/s390x-linux64.dat: Regenerate.
2978 * regformats/s390x-linux64v1.dat: Regenerate.
2979 * regformats/s390x-linux64v2.dat: Regenerate.
2980 * regformats/s390x-te-linux64.dat: Regenerate.
2981 * regformats/tic6x-c62x-linux.dat: Regenerate.
2982 * regformats/tic6x-c62x.dat: Regenerate.
2983 * regformats/tic6x-c64x-linux.dat: Regenerate.
2984 * regformats/tic6x-c64x.dat: Regenerate.
2985 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2986 * regformats/tic6x-c64xp.dat: Regenerate.
2987
db74e4ba
PA
29882014-10-01 Pedro Alves <palves@redhat.com>
2989
2990 * features/Makefile: Update comments.
2991 (XMLTOC): List all xml files we build C files from.
2992 (clean-cfiles): New rule.
2993
d63f2f84
PA
29942014-10-01 Pedro Alves <palves@redhat.com>
2995
2996 * features/i386/amd64-avx512-linux.c: Regenerate.
2997 * features/i386/amd64-avx512.c: Regenerate.
2998 * features/i386/x32-avx512-linux.c: Regenerate.
2999 * features/i386/x32-avx512.c: Regenerate.
3000
20ad026d
PA
30012014-10-01 Pedro Alves <palves@redhat.com>
3002
3003 * features/Makefile (WHICH): Remove arm-with-m,
3004 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3005
acc9fe45
PA
30062014-10-01 Pedro Alves <palves@redhat.com>
3007
3008 * features/Makefile (clean): New rule.
3009
e001e535
PA
30102014-10-01 Pedro Alves <palves@redhat.com>
3011
3012 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3013 (zmm14h): Add missing end quotes.
3014
bdc14417
PA
30152014-10-01 Pedro Alves <palves@redhat.com>
3016
3017 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3018 * features/aarch64.c: Regenerate.
3019
d83ad864
DB
30202014-09-30 Don Breazeal <donb@codesourcery.com>
3021
3022 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3023 code so as to work with follow_fork_inferior.
3024 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3025 (inf_ttrace_create_inferior): Remove reference to
3026 inf_ttrace_vfork_ppid.
3027 (inf_ttrace_attach): Ditto.
3028 (inf_ttrace_detach): Ditto.
3029 (inf_ttrace_kill): Use current_inferior instead of
3030 inf_ttrace_vfork_ppid.
3031 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3032 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3033 inferior away from the parent.
3034 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3035 target_follow_fork.
3036 (follow_fork_inferior): New function.
3037 (follow_inferior_reset_breakpoints): Make function static.
3038 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3039 * linux-nat.c (linux_child_follow_fork): Move target-independent
3040 code to infrun.c:follow_fork_inferior.
3041
29082443
AA
30422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3043
3044 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3045 * gdbarch.c: Regenerate.
3046 * gdbarch.h: Likewise.
3047 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3048 gdbarch method 'regset_from_core_section'.
3049 (get_core_register_section): Remove handling for the case that
3050 regset == NULL and regset_from_core_section is defined.
3051 (get_core_registers): Drop check for deleted method.
3052 * procfs.c (procfs_do_thread_registers): Adjust comment.
3053
f968fe80
AA
30542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3055
3056 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3057 (linux_nat_make_corefile_notes): Remove.
3058 (linux_target_install_ops): Do not set target method
3059 'make_corefile_notes'.
3060 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3061 Remove field.
3062 (linux_corefile_thread_callback): Instead of args->collect, call
3063 linux_collect_thread_registers.
3064 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3065 NULL unless there is a regset iterator.
3066 (linux_make_corefile_notes_1): Remove.
3067 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3068 by linux_make_corefile_notes.
3069 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3070
174ad59a
AA
30712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3072
3073 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3074 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3075 Remove.
3076 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3077
97094034
AA
30782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3079
3080 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3081 (xtensa_iterate_over_regset_sections): New.
3082 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3083
f73d3ce7
AA
30842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3085
3086 * vax-tdep.c (vax_regset_from_core_section): Remove.
3087 (vax_iterate_over_regset_sections): New.
3088 (vax_gdbarch_init): Adjust gdbarch initialization.
3089
cb24567a
AA
30902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3091
3092 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3093 (tilegx_regset_from_core_section): Remove.
3094 (tilegx_iterate_over_regset_sections): New.
3095 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3096
e5139de8
AA
30972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098
3099 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3100 (sparc_iterate_over_regset_sections): New.
3101 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3102 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3103 targets.
3104 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3105 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3106 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3107 target method 'make_corefile_notes'.
3108
c6d41a6f
AA
31092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3110
3111 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3112 'sizeof_gregset' and 'sizeof_fpregset'.
3113 * sh-tdep.c (sh_regset_from_core_section): Remove.
3114 (sh_iterate_over_regset_sections): New.
3115 (sh_gdbarch_init): Adjust gdbarch initialization.
3116 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3117 sizeof_fpregset.
3118 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3119 'sizeof_gregset'.
3120
9845a0b5
AA
31212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3122
3123 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3124 (score7_linux_iterate_over_regset_sections): New.
3125 (score_gdbarch_init): Adjust gdbarch initialization.
3126
23ea9aeb
AA
31272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128
3129 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3130 FreeBSD targets.
3131 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3132 method 'make_corefile_notes'.
3133 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3134 (ppcfbsd_regset_from_core_section): Remove.
3135 (ppcfbsd_iterate_over_regset_sections): New.
3136 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3137 initialization.
3138 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3139 (ppcnbsd_iterate_over_regset_sections): New.
3140 (ppcnbsd_init_abi): Adjust.
3141 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3142 (ppcobsd_iterate_over_regset_sections): New.
3143 (ppcobsd_init_abi): Adjust.
3144 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3145 (rs6000_aix_iterate_over_regset_sections): New.
3146 (rs6000_aix_init_osabi): Adjust.
3147
c5b8d704
AA
31482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3149
3150 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3151 (nios2_regset_from_core_section): Remove.
3152 (nios2_iterate_over_regset_sections): New.
3153 (nios2_linux_init_abi): Adjust gdbarch initialization.
3154
3636e608
AA
31552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3156
3157 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3158 (am33_iterate_over_regset_sections): New.
3159 (am33_linux_init_osabi): Adjust gdbarch initialization.
3160
d4036235
AA
31612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3162
3163 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3164 (mips_linux_iterate_over_regset_sections): New.
3165 (mips_linux_init_abi): Adjust gdbarch initialization.
3166 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3167 (mips64obsd_iterate_over_regset_sections): New.
3168 (mips64obsd_init_abi): Adjust.
3169 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3170 (mipsnbsd_iterate_over_regset_sections): New.
3171 (mipsnbsd_init_abi): Adjust.
3172
b61ddd6e
AA
31732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3174
3175 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3176 (m88k_iterate_over_regset_sections): New.
3177 (m88k_gdbarch_init): Adjust gdbarch initialization.
3178
55a2906a
AA
31792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3180
3181 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3182 (ia64_linux_iterate_over_regset_sections): New.
3183 (ia64_linux_init_abi): Adjust gdbarch initialization.
3184
022c98ab
AA
31852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3186
3187 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3188 (m68kbsd_iterate_over_regset_sections): New.
3189 (m68kbsd_init_abi): Adjust gdbarch initialization.
3190 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3191 (m68k_linux_iterate_over_regset_sections): New.
3192 (m68k_linux_init_abi): Adjust gdbarch initialization.
3193
5fac247f
AA
31942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3195
3196 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3197 (m32r_linux_regset_from_core_section): Remove.
3198 (m32r_linux_iterate_over_regset_sections): New.
3199 (m32r_linux_init_abi): Adjust gdbarch initialization.
3200
490496c3
AA
32012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3202
3203 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3204 (amd64obsd_iterate_over_regset_sections): New.
3205 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3206 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3207 Remove.
3208 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3209 regset_from_core_section initialization.
3210 * i386-tdep.c (i386_regset_from_core_section): Remove.
3211 (i386_iterate_over_regset_sections): New.
3212 (i386_gdbarch_init): Adjust gdbarch initialization.
3213 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3214 (i386_iterate_over_regset_sections): New prototype.
3215 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3216 Remove.
3217 (i386obsd_aout_iterate_over_regset_sections): New.
3218 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3219 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3220 targets.
3221 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3222 (amd64fbsd_init_abi): Call fbsd_init_abi.
3223 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3224 (i386fbsd4_init_abi): Call fbsd_init_abi.
3225 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3226 target method 'make_corefile_notes'.
3227 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3228
50c5eb53
AA
32292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3230
3231 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3232 (hppa_hpux_iterate_over_regset_sections): New.
3233 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3234 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3235 (hppa_linux_iterate_over_regset_sections): New.
3236 (hppa_linux_init_abi): Adjust.
3237 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3238 (hppanbsd_iterate_over_regset_sections): New.
3239 (hppanbsd_init_abi): Adjust.
3240 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3241 (hppaobsd_iterate_over_regset_sections): New.
3242 (hppaobsd_init_abi): Adjust.
3243
66afae4f
AA
32442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245
3246 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3247 (frv_linux_iterate_over_regset_sections): New.
3248 (frv_linux_init_abi): Adjust gdbarch initialization.
3249
ed09174e
AA
32502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251
3252 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3253 (armbsd_iterate_over_regset_sections): New prototype.
3254 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3255 (armbsd_iterate_over_regset_sections): New.
3256 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3257 initialization.
3258
dff2166e
AA
32592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3260
3261 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3262 (alpha_linux_iterate_over_regset_sections): New.
3263 (alpha_linux_init_abi): Adjust gdbarch initialization.
3264 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3265 prototype.
3266 (alphanbsd_iterate_over_regset_sections): New prototype.
3267
4108500a
AA
32682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269
3270 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3271 Remove.
3272 (aarch64_linux_iterate_over_regset_sections): New.
3273 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3274
a904c024
AA
32752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3276
3277 * fbsd-tdep.c: New file.
3278 * fbsd-tdep.h: New file.
3279 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3280 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3281 (ALLDEPFILES): Add fbsd-tdep.c.
3282
8f0435f7
AA
32832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3286 parameter.
3287 * gdbarch.h: Regenerate.
3288 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3289 iterator.
3290 (get_core_register_section): Add parameter 'regset' and use it, if
3291 set. Add parameter 'min_size' and verify the bfd section size
3292 against it.
3293 (get_core_registers_cb): Add parameter 'regset' and pass it to
3294 get_core_register section. For the "standard" register sections
3295 ".reg" and ".reg2", set an appropriate default for human_name.
3296 (get_core_registers): Don't abort when the gdbarch has an iterator
3297 but no regset_from_core_section. Add NULL/0 for parameters
3298 'regset'/'min_size' in calls to get_core_register_section.
3299 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3300 'regset' and use it instead of calling the
3301 regset_from_core_section gdbarch method.
3302 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3303 * i386-tdep.c (i386_supply_xstateregset)
3304 (i386_collect_xstateregset, i386_xstateregset): Moved to
3305 i386-linux-tdep.c.
3306 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3307 .reg-xstate.
3308 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3309 core file support only if the regset iterator hasn't been set.
3310 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3311 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3312 Moved from i386-tdep.c and renamed to *_linux*.
3313 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3314 each callback invocation. Allow any .reg-xstate size when reading
3315 from a core file.
3316 * amd64-tdep.c (amd64_supply_xstateregset)
3317 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3318 amd64-linux-tdep.c.
3319 (amd64_regset_from_core_section): Remove.
3320 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3321 install an amd64-specific regset_from_core_section gdbarch method.
3322 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3323 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3324 Moved from amd64-tdep.c and renamed to *_linux*.
3325 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3326 to each callback invocation. Allow any .reg-xstate size when
3327 reading from a core file.
3328 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3329 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3330 each callback invocation.
3331 (arm_linux_init_abi): No longer set the regset_from_core_section
3332 gdbarch method.
3333 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3334 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3335 each callback invocation.
3336 (ppc_linux_init_abi): No longer set the regset_from_core_section
3337 gdbarch method.
3338 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3339 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3340 (s390_regset_from_core_section): Remove.
3341 (s390_iterate_over_regset_sections): Add regset parameter to each
3342 callback invocation.
3343 (s390_gdbarch_init): No longer set the regset_from_core_section
3344 gdbarch method. Drop initialization of deleted tdep fields.
3345
5aa82d05
AA
33462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3347
3348 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3349 (amd64_linux_iterate_over_regset_sections): New.
3350 (amd64_linux_init_abi_common): Don't install the regset section
3351 list, but the new iterator in gdbarch.
3352 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3353 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3354 (arm_linux_iterate_over_regset_sections): ...here. New function.
3355 (arm_linux_init_abi): Set iterator instead of section list.
3356 * corelow.c (get_core_registers_cb): New function, logic moved
3357 from...
3358 (get_core_registers): ...loop body here. Use new iterator method
3359 instead of walking through the regset section list.
3360 * gdbarch.sh: Remove 'core_regset_sections'. New method
3361 'iterate_over_regset_sections'. New typedef
3362 'iterate_over_regset_sections_cb'.
3363 * gdbarch.c: Regenerate.
3364 * gdbarch.h: Likewise.
3365 * i386-linux-tdep.c (i386_linux_regset_sections)
3366 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3367 Remove.
3368 (i386_linux_iterate_over_regset_sections): New.
3369 (i386_linux_init_abi): Don't choose a regset section list, but
3370 install new iterator in gdbarch.
3371 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3372 (linux_collect_regset_section_cb): New function, logic moved
3373 from...
3374 (linux_collect_thread_registers): ...loop body here. Use iterator
3375 method instead of walking through list.
3376 (linux_make_corefile_notes_1): Check for presence of iterator
3377 method instead of regset section list.
3378 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3379 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3380 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3381 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3382 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3383 (ppc_linux_init_abi): Don't choose from above regset section
3384 lists, but install new iterator in gdbarch.
3385 * regset.h (struct core_regset_section): Remove.
3386 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3387 have_linux_v1, have_linux_v2, and have_tdb.
3388 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3389 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3390 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3391 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3392 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3393 (s390_iterate_over_regset_sections): ...here. New function. Use
3394 new tdep fields.
3395 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3396 regset section lists, but install new iterator.
3397
2eca4a8d
JK
33982014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3401
a73c2b56
SM
34022014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3403
3404 * progspace.c (print_program_space): Don't prune program spaces
3405 before printing them.
3406
03d46957
PA
34072014-09-25 Pedro Alves <palves@redhat.com>
3408
3409 * infrun.c (user_visible_resume_ptid): Don't check
3410 singlestep_breakpoints_inserted_p.
3411
e558d7c1
PA
34122014-09-25 Pedro Alves <palves@redhat.com>
3413
3414 * breakpoint.c (should_be_inserted): Add debug output.
3415
7f89fd65
PA
34162014-09-25 Pedro Alves <palves@redhat.com>
3417
3418 * infrun.c (stepping_past_instruction_at)
3419 (clear_exit_convenience_vars): Point at infrun.h instead of
3420 inferior.h.
3421 (handle_signal_stop): Fix typo.
3422
b7576e5c
YQ
34232014-09-24 Yao Qi <yao@codesourcery.com>
3424
3425 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3426 bitmask.
3427
9a6cf368
GB
34282014-09-22 Gary Benson <gbenson@redhat.com>
3429
3430 * target.c (target_stop): Updated comment.
3431
03f4463b
GB
34322014-09-22 Gary Benson <gbenson@redhat.com>
3433
3434 * target/target.h (target_stop_ptid): Renamed as...
3435 (target_stop_and_wait): New function. Updated comment.
3436 All uses updated.
3437 (target_continue_ptid): Renamed as...
3438 (target_continue_no_signal): New function. Updated comment.
3439 All uses updated.
3440
a25a5a45
PA
34412014-09-22 Pedro Alves <palves@redhat.com>
3442
3443 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3444 and "auto" merged.
3445 * breakpoint.c (enum ugll_insert_mode): New enum.
3446 (always_inserted_mode): Now a plain boolean.
3447 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3448 (breakpoints_always_inserted_mode): Delete.
3449 (breakpoints_should_be_inserted_now): New function.
3450 (insert_breakpoints): Pass UGLL_INSERT to
3451 update_global_location_list instead of calling
3452 insert_breakpoint_locations manually.
3453 (create_solib_event_breakpoint_1): New, factored out from ...
3454 (create_solib_event_breakpoint): ... this.
3455 (create_and_insert_solib_event_breakpoint): Use
3456 create_solib_event_breakpoint_1 instead of calling
3457 insert_breakpoint_locations manually.
3458 (update_global_location_list): Change parameter type from boolean
3459 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3460 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3461 (update_global_location_list_nothrow): Change parameter type from
3462 boolean to enum ugll_insert_mode.
3463 (_initialize_breakpoint): "breakpoint always-inserted" option is
3464 now a boolean command. Update help text.
3465 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3466 (breakpoints_should_be_inserted_now): New declaration.
3467 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3468 Remove breakpoints_always_inserted_mode check.
3469 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3470 * remote.c (remote_start_remote): Likewise.
3471
04086b45
PA
34722014-09-22 Pedro Alves <palves@redhat.com>
3473
3474 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3475 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3476 Instead, pass UGLL_INSERT to update_global_location_list.
3477 (update_global_location_list): Change parameter type from boolean
3478 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3479 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3480 (create_solib_event_breakpoint_1): New, factored out from ...
3481 (create_solib_event_breakpoint): ... this.
3482 (create_and_insert_solib_event_breakpoint): Use
3483 create_solib_event_breakpoint_1 instead of calling
3484 insert_breakpoint_locations manually.
3485 (update_global_location_list): Handle UGLL_INSERT.
3486
44702360
PA
34872014-09-22 Pedro Alves <palves@redhat.com>
3488
3489 * breakpoint.c (enum ugll_insert_mode): New enum.
3490 (update_global_location_list)
3491 (update_global_location_list_nothrow): Change parameter type from
3492 boolean to enum ugll_insert_mode. All callers adjusted.
3493
93c6145a
JB
34942014-09-19 Joel Brobecker <brobecker@adacore.com>
3495
3496 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3497 SystemTap support in GDB.
3498
89a5711c
DB
34992014-09-19 Don Breazeal <donb@codesourcery.com>
3500
3501 * linux-nat.c (linux_handle_extended_wait): Call
3502 linux_ptrace_get_extended_event.
3503 (wait_lwp): Call linux_is_extended_waitstatus.
3504 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3505 and linux_is_extended_waitstatus.
3506 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3507 linux_ptrace_get_extended_event.
3508 (linux_ptrace_get_extended_event): New function.
3509 (linux_is_extended_waitstatus): New function.
3510 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3511 (linux_is_extended_waitstatus): New declarations.
3512
c3b7b696
YQ
35132014-09-19 Yao Qi <yao@codesourcery.com>
3514
3515 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3516 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3517 comments. Callers update.
3518 (dwarf_decode_lines): Likewise.
3519 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3520 comments. Skip the line table if 'lowpc' is greater than
3521 'address'. Don't check
3522 dwarf2_per_objfile->has_section_at_zero.
3523
2b4fd423
DE
35242014-09-18 Doug Evans <dje@google.com>
3525
3526 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3527 * python/py-symtab.c (stpy_get_producer): New function.
3528 (symtab_object_getset): Add "producer" attribute.
3529
5e43d467
UW
35302014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3531
3532 PR gdb/17384
3533 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3534 (do_captured_read_memory_integer): Remove.
3535 (safe_read_memory_integer): Use target_read_memory directly instead
3536 of catching errors in do_captured_read_memory_integer.
3537
04e79979
MR
35382014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3539
3540 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3541 not gdb/doc.
3542
76aeec5b
SDJ
35432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3544
3545 * objc-lang.c (find_implementation_from_class): Remove dead code.
3546
2f693f9d
SDJ
35472014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3548
3549 PR cli/7233
3550 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3551 "fprintf_unfiltered (gdb_stdlog...)".
3552
bb9d5f81
PP
35532014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3554
3555 PR breakpoints/12526
3556 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3557 val_bitsize.
3558 * breakpoint.c (watch_command_1): Use these fields to retain
3559 bitfield information.
3560 (extract_bitfield_from_watchpoint_value): New function.
3561 (watchpoint_check): Use it.
3562 (update_watchpoint): Use it. Optimize the address and length of a
3563 HW watchpoint pointing to a bitfield.
3564 * value.h (unpack_value_bitfield): New prototype.
3565 * value.c (unpack_value_bitfield): Make extern.
3566
05db5edd
ST
35672014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3568
3569 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3570 x86-dregs.o.
3571 * gnu-nat.c (inf_threads): New function.
3572 * gnu-nat.h (inf_threads_ftype): New typedef.
3573 (inf_threads): New declaration.
3574 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3575 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3576 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3577 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3578 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3579 (i386_gnu_dr_get_control): New functions.
3580 (reg_addr): New structure.
3581 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3582 i386 debugging register hooks.
3583 * NEWS: Mention this.
3584
5a578da5
OJ
35852014-08-13 Omair Javaid <omair.javaid@linaro.org>
3586
3587 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3588 vector data transfer instructions.
3589 (arm_record_coproc_data_proc): Updated.
3590
f20f80dd
OJ
35912014-08-13 Omair Javaid <omair.javaid@linaro.org>
3592
3593 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3594 arm_record_exreg_ld_st_insn.
3595 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3596 load/store insns.
3597
851f26ae
OJ
35982014-08-13 Omair Javaid <omair.javaid@linaro.org>
3599
3600 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3601 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3602 processing instructions.
3603
1e1b6563
OJ
36042014-08-13 Omair Javaid <omair.javaid@linaro.org>
3605
3606 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3607 for advance SIMD struct ld/st insn.
3608 (thumb2_record_decode_insn_handler): Replace stub handler with
3609 thumb2_record_asimd_struct_ld_st.
3610
60cc5e93
OJ
36112014-08-13 Omair Javaid <omair.javaid@linaro.org>
3612
3613 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3614 for asimd, vfp and coprocessor insns.
3615 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3616 and coprocessor insns.
3617 (thumb2_record_coproc_insn): New function.
3618 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3619 handlers.
3620 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3621 opcode 110 insns.
3622
81219e53
DE
36232014-09-13 Doug Evans <xdje42@gmail.com>
3624
3625 * NEWS: Mention new "queue-signal" command.
3626 * infcmd.c (queue_signal_command): New function.
3627 (_initialize_infcmd): Add new queue-signal command.
3628
d36bf488
DE
36292014-09-13 Doug Evans <xdje42@gmail.com>
3630
3631 * linux-nat.c (wait_lwp): Add debugging printf.
3632 (linux_nat_wait_1): Ditto.
3633
f37f681c
PA
36342014-09-12 Pedro Alves <palves@redhat.com>
3635
3636 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3637 (create_and_insert_solib_event_breakpoint): New functions.
3638 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3639 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3640 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3641 (remove_dbx_link_breakpoint): Delete function.
3642 (insert_dbx_link_bpt_in_file): Use
3643 create_and_insert_solib_event_breakpoint instead of
3644 deprecated_insert_raw_breakpoint.
3645 (procfs_wait): Don't check whether we hit __dbx_link here.
3646 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3647 here.
3648 * solib-irix.c (base_breakpoint): Delete global.
3649 (disable_break): Delete function.
3650 (enable_break): Use create_solib_event_breakpoint
3651 instead of deprecated_insert_raw_breakpoint.
3652 (irix_solib_handle_event): New function.
3653 (irix_solib_create_inferior_hook): Don't run the target or disable
3654 the mapping-complete breakpoint here.
3655 (_initialize_irix_solib): Install irix_solib_handle_event as
3656 so_ops->handle_event hook.
3657
9d9bf2df
EBM
36582014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3659 Ulrich Weigand  <uweigand@de.ibm.com>
3660
3661 PR tdep/17379
3662 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3663 instead of read_memory_unsigned_integer.
3664
b006a80e
GB
36652014-09-12 Gary Benson <gbenson@redhat.com>
3666
3667 * nat/linux-waitpid.c: Include common-defs.h.
3668 [GDBSERVER]: Add FIXME comment.
3669 [!GDBSERVER]: Don't include defs.h or signal.h.
3670 (linux_debug) [!GDBSERVER]: Remove empty block.
3671
296b1496
GB
36722014-09-12 Gary Benson <gbenson@redhat.com>
3673
3674 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3675 Don't include defs.h or server.h.
3676
53f81362
GB
36772014-09-12 Gary Benson <gbenson@redhat.com>
3678
3679 * nat/linux-btrace.c: Include common-defs.h.
3680 Don't include defs.h, server.h or gdbthread.h.
3681 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3682
727605ca
GB
36832014-09-12 Gary Benson <gbenson@redhat.com>
3684
3685 * common/agent.c: Include common-defs.h.
3686 Don't include defs.h or server.h.
3687 * common/buffer.c: Likewise.
3688 * common/common-debug.c: Likewise.
3689 * common/common-utils.c: Likewise.
3690 * common/errors.c: Likewise.
3691 * common/filestuff.c: Likewise.
3692 * common/format.c: Likewise.
3693 * common/gdb_vecs.c: Likewise.
3694 * common/print-utils.c: Likewise.
3695 * common/ptid.c: Likewise.
3696 * common/rsp-low.c: Likewise.
3697 * common/signals.c: Likewise.
3698 * common/vec.c: Likewise.
3699 * common/xml-utils.c: Likewise.
3700 * nat/linux-osdata.c: Likewise.
3701 * nat/linux-procfs.c: Likewise.
3702 * nat/linux-ptrace.c: Likewise.
3703 * nat/mips-linux-watch.c: Likewise.
3704 * target/waitstatus.c: Likewise.
3705
361c8ade
GB
37062014-09-12 Tom Tromey <tromey@redhat.com>
3707 Gary Benson <gbenson@redhat.com>
3708
3709 * common/common-regcache.h: New file.
3710 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3711 * regcache.h: Include common-regcache.h.
3712 (regcache_read_pc): Don't declare.
3713 * regcache.c (get_thread_regcache_for_ptid): New function.
3714 * nat/linux-btrace.c: Don't include regcache.h.
3715 Include common-regcache.h.
3716 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3717
a01cbb49
TS
37182014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3719
3720 * regcache.h (struct regset): Declare.
3721
98880d46
PA
37222014-09-11 Pedro Alves <palves@redhat.com>
3723
3724 PR gdb/17347
3725 * main.c: Include "infrun.h".
3726 (catch_command_errors, catch_command_errors_const): Wait for the
3727 foreground command to complete.
3728 * top.c (maybe_wait_sync_command_done): New function, factored out
3729 from ...
3730 (maybe_wait_sync_command_done): ... here.
3731 * top.h (maybe_wait_sync_command_done): New declaration.
3732
bd9269f7
GB
37332014-09-11 Tom Tromey <tromey@redhat.com>
3734 Gary Benson <gbenson@redhat.com>
3735
3736 * common/symbol.h: New file.
3737 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3738 * minsyms.c (find_minimal_symbol_address): New function.
3739 * common/agent.c: Include common/symbol.h.
3740 [!GDBSERVER]: Don't include objfiles.h.
3741 (agent_look_up_symbols): Use find_minimal_symbol_address.
3742
f8c1d06b
GB
37432014-09-11 Gary Benson <gbenson@redhat.com>
3744
3745 * target/target.h (target_stop_ptid, target_continue_ptid):
3746 Declare.
3747 * target.c (target_stop_ptid, target_continue_ptid): New
3748 functions.
3749 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3750 (agent_run_command): Always use target_stop_ptid and
3751 target_continue_ptid.
3752
721ec300
GB
37532014-09-11 Tom Tromey <tromey@redhat.com>
3754 Gary Benson <gbenson@redhat.com>
3755
3756 * target/target.h: New file.
3757 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3758 * target.h: Include target/target.h.
3759 (target_read_memory, target_write_memory): Don't declare.
3760 * target.c (target_read_uint32): New function.
3761 * common/agent.c: Include target/target.h.
3762 [!GDBSERVER]: Don't include target.h.
3763 (helper_thread_id): Type changed to uint32_t.
3764 (agent_get_helper_thread_id): Use target_read_uint32.
3765 (agent_run_command): Always use target_read_memory and
3766 target_write_memory.
3767 (agent_capability): Type changed to uint32_t.
3768 (agent_capability_check): Use target_read_uint32.
3769
c5e92cca
GB
37702014-09-11 Gary Benson <gbenson@redhat.com>
3771
3772 * common/common-debug.h (show_debug_regs): Declare.
3773 * common/common-debug.c (show_debug_regs): Define.
3774 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3775 all uses with show_debug_regs. Replace all uses that considered
3776 debug_hw_points as a multi-value integer with straight boolean
3777 uses.
3778 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3779 with show_debug_regs.
3780 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3781 all uses with show_debug_regs.
3782 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3783 uses with show_debug_regs.
3784
eeef931a
UW
37852014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3786
3787 * findvar.c (address_from_register): Handle targets requiring
3788 a special conversion routine even for plain pointer types.
3789
8efa9855
UW
37902014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3791
3792 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3793 (store_register): Do not call exec_one_dummy_insn.
3794
eb479039
JB
37952014-09-10 Joel Brobecker <brobecker@adacore.com>
3796
3797 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3798 dereference it first. Use value_enclosing_type instead of
3799 value_type.
3800 (ada_array_length): Likewise.
3801
deede10c
JB
38022014-09-10 Joel Brobecker <brobecker@adacore.com>
3803
3804 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3805 Adjust function implementation and documentation accordingly.
3806 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3807 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3808 Update call to ada_value_ptr_subscript.
3809
7828a5f5
JB
38102014-09-10 Joel Brobecker <brobecker@adacore.com>
3811
3812 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3813 instead of VAL's type.
3814
35782f14
JB
38152014-09-10 Joel Brobecker <brobecker@adacore.com>
3816
3817 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3818
d342a0da
DE
38192014-09-09 Doug Evans <xdje42@gmail.com>
3820
3821 PR guile/17367
3822 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3823 last parameter to pkg-config, not first.
3824 * configure.ac: Pass --with-guile provided pkg-config path to
3825 GDB_GUILE_PROGRAM_NAMES.
3826 * configure: Regenerate.
3827
b4a3d263
GKB
38282014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3829
3830 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3831 Bertazi".
3832
6e466374
MR
38332014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3834
3835 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3836 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3837 the list of sections determining GDB_OSABI_IRIX.
3838
a1ada89a
JH
38392014-09-09 James Hogan <james.hogan@imgtec.com>
3840
3841 * MAINTAINERS (Write After Approval): Add "James Hogan".
3842
86db008d
JH
38432014-09-09 James Hogan <james.hogan@imgtec.com>
3844
3845 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3846
72fde3df
JB
38472014-09-09 Joel Brobecker <brobecker@adacore.com>
3848
3849 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3850
92d8d229
DE
38512014-09-08 Doug Evans <xdje42@gmail.com>
3852
3853 PR 17247
3854 * guile.c: #include <signal.h>.
3855 (_initialize_guile): Block SIGCHLD while initializing Guile.
3856
3857 Replaces the following, which is reverted.
3858
3859 2014-07-26 Doug Evans <xdje42@gmail.com>
3860
3861 PR 17185
3862 * configure.ac: Add check for header gc/gc.h.
3863 Add check for function setenv.
3864 * configure: Regenerate.
3865 * config.in: Regenerate.
3866 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3867
d81412aa
DE
38682014-09-08 Doug Evans <xdje42@gmail.com>
3869
3870 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3871 with named constant. Fix style of pointer comparison.
3872 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3873
a9f116cb
GKB
38742014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3875
3876 PR gdb/17035
3877 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3878 decide whether we display the command on "show user".
3879 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3880 printing command name.
3881 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3882 * cli/cli-decode.c (cli_user_command_p): Create helper function
3883 to verify whether cmd_list_element is a user-defined command.
3884
c75bd3a2
JK
38852014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3886
3887 PR python/17355
3888 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3889 Fix goto out of TRY_CATCH.
3890
faa42425 38912014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3892 Tom Tromey <tromey@redhat.com>
faa42425
DE
3893
3894 PR 15276
3895 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3896 $_any_caller_matches.
3897 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3898 * python/lib/gdb/function/caller_is.py: New file.
3899
0d41ba00
DE
39002014-09-06 Doug Evans <xdje42@gmail.com>
3901
3902 * infcmd.c (program_info): Fix typo.
3903
474ca4f6
SDJ
39042014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3905
3906 PR gdb/17235
3907 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3908 'number'. New variable 'has_digit'. Rewrite code to deal with
3909 subexpressions on SDT probes.
3910
ebf13736
PA
39112014-09-04 Pedro Alves <palves@redhat.com>
3912
3913 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3914 the input is only one character long.
3915
eb0b0463
SDJ
39162014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3917
3918 PR fortran/17237
3919 * f-valprint.c (f_val_print): Specify the correct print option to
3920 use when printing integer values.
3921
5ee44bfa
GB
39222014-09-04 Gary Benson <gbenson@redhat.com>
3923
3924 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3925 Remove code to cope with LWPs wrapped as PIDs.
3926 Add assertions to ensure no wrapped LWPs are passed.
3927
4875ffdb
PA
39282014-09-04 Pedro Alves <palves@redhat.com>
3929
3930 * value.c (value_ranges_copy_adjusted): New function, factored out
3931 from ...
3932 (value_contents_copy_raw): ... here.
3933 (unpack_value_bits_as_long_1): Rename back to ...
3934 (unpack_bits_as_long): ... this. Remove 'original_value' and
3935 'result' parameters. Change return type to LONGEST.
3936 (unpack_value_bits_as_long): Delete.
3937 (unpack_value_field_as_long_1): Delete.
3938 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3939 (unpack_value_bitfield): New function.
3940 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3941 (value_fetch_lazy): Use unpack_value_bitfield.
3942 * value.h (unpack_value_bits_as_long): Delete declaration.
3943
5f3b99cf
SS
39442014-09-03 Sasha Smundak <asmundak@google.com>
3945
3946 * python/py-frame.c (frapy_read_register): New function.
3947
ac740bc7
JH
39482014-09-03 James Hogan <james.hogan@imgtec.com>
3949
3950 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3951 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3952
7d793aa9
SDJ
39532014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3954
3955 PR python/16699
3956 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3957 function.
3958 (add_cmd): Set "completer_handle_brkchars" to NULL.
3959 * cli/cli-decode.h (struct cmd_list_element)
3960 <completer_handle_brkchars>: New field.
3961 * command.h (completer_ftype_void): New typedef.
3962 (set_cmd_completer_handle_brkchars): New prototype.
3963 * completer.c (set_gdb_completion_word_break_characters): New
3964 function.
3965 (complete_line_internal): Call "completer_handle_brkchars"
3966 callback from command.
3967 * completer.h: Include "command.h".
3968 (set_gdb_completion_word_break_characters): New prototype.
3969 * python/py-cmd.c (cmdpy_completer_helper): New function.
3970 (cmdpy_completer_handle_brkchars): New function.
3971 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3972 (cmdpy_init): Set completer_handle_brkchars to
3973 cmdpy_completer_handle_brkchars.
3974
97ea6506
GB
39752014-09-03 Gary Benson <gbenson@redhat.com>
3976
3977 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3978 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3979 Loop conditions changed to equivalent form.
3980 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3981 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3982 ALL_DEBUG_ADDRESS_REGISTERS.
3983
d1437815
JB
39842014-09-03 Joel Brobecker <brobecker@adacore.com>
3985
3986 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3987 description fix.
3988
9b94fcf1
DE
39892014-09-02 Doug Evans <dje@google.com>
3990
3991 * typeprint.c (find_global_typedef): Fix comment.
3992
df7e5265
GB
39932014-09-02 Gary Benson <gbenson@redhat.com>
3994
3995 * i386-nat.h: Renamed as...
3996 * x86-nat.h: New file. All type, function and variable name
3997 prefixes changed from "i386_" to "x86_". All references updated.
3998 * i386-nat.c: Renamed as...
3999 * x86-nat.c: New file. All type, function and variable name
4000 prefixes changed from "i386_" to "x86_". All references updated.
4001 * common/i386-xstate.h: Renamed as...
4002 * common/x86-xstate.h: New file. All type, function and variable
4003 name prefixes changed from "i386_" to "x86_". All references
4004 updated.
4005 * nat/i386-cpuid.h: Renamed as...
4006 * nat/x86-cpuid.h: New file. All type, function and variable name
4007 prefixes changed from "i386_" to "x86_". All references updated.
4008 * nat/i386-gcc-cpuid.h: Renamed as...
4009 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4010 name prefixes changed from "i386_" to "x86_". All references
4011 updated.
4012 * nat/i386-dregs.h: Renamed as...
4013 * nat/x86-dregs.h: New file. All type, function and variable name
4014 prefixes changed from "i386_" to "x86_". All references updated.
4015 * nat/i386-dregs.c: Renamed as...
4016 * nat/x86-dregs.c: New file. All type, function and variable name
4017 prefixes changed from "i386_" to "x86_". All references updated.
4018
1c3569d4
MR
40192014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4020
4021 * varobj.c (_initialize_varobj): Move to the end of file.
4022
ff55e1b5
GB
40232014-08-29 Gary Benson <gbenson@redhat.com>
4024
4025 * common/common-exceptions.h: New file.
4026 * common/common-exceptions.c: Likewise.
4027 * Makefile.in (SFILES): Add common/common-exceptions.c.
4028 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4029 (COMMON_OBS): Add common-exceptions.o.
4030 (common-exceptions.o): New rule.
4031 * exceptions.h (common-exceptions.h): Include.
4032 (gdb_setjmp.h): Do not include.
4033 (return_reason): Moved to common-exceptions.h.
4034 (enum return_reason): Likewise.
4035 (RETURN_MASK): Likewise.
4036 (typedef return_mask): Likewise.
4037 (enum errors): Likewise.
4038 (struct gdb_exception): Likewise.
4039 (exceptions_state_mc_init): Likewise.
4040 (exceptions_state_mc_action_iter): Likewise.
4041 (exceptions_state_mc_action_iter_1): Likewise.
4042 (TRY_CATCH): Likewise.
4043 (throw_exception): Likewise.
4044 (throw_verror): Likewise.
4045 (throw_vquit): Likewise.
4046 (throw_error): Likewise.
4047 (throw_quit): Likewise.
4048 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4049 (enum catcher_action): Likewise.
4050 (struct catcher): Likewise.
4051 (current_catcher): Likewise.
4052 (catcher_list_size): Likewise.
4053 (exceptions_state_mc_init): Likewise.
4054 (catcher_pop): Likewise.
4055 (exceptions_state_mc): Likewise.
4056 (exceptions_state_mc_action_iter): Likewise.
4057 (exceptions_state_mc_action_iter_1): Likewise.
4058 (throw_exception): Likewise.
4059 (exception_messages): Likewise.
4060 (exception_messages_size): Likewise.
4061 (throw_it): Likewise.
4062 (throw_verror): Likewise.
4063 (throw_vquit): Likewise.
4064 (throw_error): Likewise.
4065 (throw_quit): Likewise.
4066 (prepare_to_throw_exception): New function.
4067
e9bcb658
GB
40682014-08-29 Gary Benson <gbenson@redhat.com>
4069
4070 * common/gdb_setjmp.h: New file.
4071 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4072 * configure.ac: Move sigsetjmp check...
4073 * common/common.m4: ...here.
4074 * configure: Regenerate.
4075 * cp-support.c (SIGJMP_BUF): Delete.
4076 (SIGSETJMP): Likewise.
4077 (SIGLONGJMP): Likewise.
4078 * exceptions.h (gdb_setjmp.h): Include.
4079 (setjmp.h): Do not include.
4080 (EXCEPTIONS_SIGJMP_BUF): Delete.
4081 (EXCEPTIONS_SIGSETJMP): Likewise.
4082 (EXCEPTIONS_SIGLONGJMP): Likewise.
4083 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4084 from gdb_setjmp.h.
4085 * exceptions.c: Likewise.
4086
e3180625
GB
40872014-08-29 Gary Benson <gbenson@redhat.com>
4088
4089 * cleanups.h: Moved to...
4090 * common/cleanups.h: New file.
4091 * cleanups.c: Moved to...
4092 * common/cleanups.c: New file. Include common-defs.h and
4093 cleanups.h. Do not include defs.h.
4094 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4095 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4096 (cleanups.o): New rule.
4097
e3d6ba5d
GB
40982014-08-29 Gary Benson <gbenson@redhat.com>
4099
4100 * common/errors.h (internal_warning): New declaration.
4101 (internal_vwarning): Likewise.
4102 * common/errors.c (internal_warning): New function.
4103 * utils.h (internal_warning): Don't declare.
4104 (internal_vwarning): Likewise.
4105 * utils.c (internal_warning): Removed.
4106
075c7033
GB
41072014-08-29 Gary Benson <gbenson@redhat.com>
4108
4109 * main.c (captured_main): Use warning during startup.
4110 Prefix startup warning messages with command name.
4111
91b35fd0
GB
41122014-08-29 Gary Benson <gbenson@redhat.com>
4113
4114 * main.c (captured_main): Handle usage errors with error.
4115
b1ec390e
GB
41162014-08-29 Gary Benson <gbenson@redhat.com>
4117
4118 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4119 exit pair with a call to error. Wrap the message with _().
4120
fd0ef3dd
GB
41212014-08-29 Gary Benson <gbenson@redhat.com>
4122
4123 * main.c (captured_main): Replace a fprintf/exit
4124 pair with a call to error. Wrap the message with _().
4125
e0e6bcab
GB
41262014-08-29 Gary Benson <gbenson@redhat.com>
4127
4128 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4129 pairs with calls to error. Wrap the message with _().
4130
0d2f5c07
GB
41312014-08-29 Gary Benson <gbenson@redhat.com>
4132
4133 * utils.c (vwarning): Protect calls to target_terminal_ours
4134 and wrap_here.
4135
5df43998
GB
41362014-08-29 Gary Benson <gbenson@redhat.com>
4137
4138 * exceptions.c (print_flush): Protect calls to
4139 target_terminal_ours and wrap_here.
4140
2437fd32
GB
41412014-08-29 Gary Benson <gbenson@redhat.com>
4142
4143 * utils.h (filtered_printing_initialized): New declaration.
4144 * utils.c (abort_with_message): New function.
4145 (internal_vproblem): Use abort_with_message for first level
4146 recursive internal problems, and if gdb_stderr is not set up.
4147 Protect calls to target_terminal_ours, begin_line and query.
4148
f1f58506
DE
41492014-08-28 Doug Evans <dje@google.com>
4150
4151 * symtab.c (in_prologue): Move definition to better spot.
4152 (skip_prologue_using_sal): Ditto.
4153
aab2f208
DE
41542014-08-28 Doug Evans <dje@google.com>
4155
4156 * symtab.c (find_function_start_sal): Move definition to better spot.
4157
6b65d1b6
YQ
41582014-08-28 Yao Qi <yao@codesourcery.com>
4159
4160 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4161 found_stack_adjust in forward scan. Remove condition check
4162 on found_stack_adjust which is always true. Indent the code.
4163
a1b34d15
YQ
41642014-08-28 Yao Qi <yao@codesourcery.com>
4165
4166 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4167 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4168 (dwarf_decode_lines): Remove argument
4169 want_line_info. Remove condition check on want_line_info.
4170 Callers update.
4171
d5962de5
DE
41722014-08-27 Doug Evans <dje@google.com>
4173
4174 * dwarf2read.c (dwarf_record_line): Fix typo.
4175
9b139002
SDJ
41762014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4177
4178 * target.h (struct target_ops::to_terminal_save_ours): Remove
4179 declaration.
4180 (target_terminal_save_ours): Remove macro.
4181 * target-delegates.c: Regenerate.
4182 * inf-child.c (inf_child_target): Don't set the nonexistent
4183 field to_terminal_save_ours.
4184 * inferior.h (child_terminal_save_ours): Remove declaration.
4185 * terminal.h (gdb_save_tty_state): New declaration.
4186 * inflow.c (child_terminal_save_ours): Rename to ...
4187 (gdb_save_tty_state): ... this.
4188 * tui/tui.c: Include terminal.h.
4189 (tui_enable): Use gdb_save_tty_state instead of
4190 target_terminal_save_ours.
4191 (tui_disable): Likewise.
4192
9debeba0
DE
41932014-08-25 Doug Evans <dje@google.com>
4194
4195 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4196 Pass NULL instead of 0 for context pointer.
4197
428fc5fc
YQ
41982014-08-25 Yao Qi <yao@codesourcery.com>
4199
4200 * dwarf2read.c: Fix grammatical error.
4201
cdc07690
YQ
42022014-08-24 Yao Qi <yao@codesourcery.com>
4203
4204 * dwarf2read.c (scan_partial_symbols): Update comments.
4205 Rename argument 'need_pc' with 'set_addrmap'.
4206 (add_partial_namespace): Rename argument 'need_pc' with
4207 'set_addrmap'.
4208 (add_partial_module): Likewise.
4209 (add_partial_subprogram): Likewise. Update comments.
4210 (dwarf2_name): Fix typo.
4211
a05a36a5
DE
42122014-08-22 Doug Evans <dje@google.com>
4213
4214 PR 17276
4215 * dwarf2read.c (dwarf_record_line_p): New function.
4216 (dwarf_decode_lines_1): Ignore subsequent line number entries
4217 for the same line if any entry had a non-zero discriminator.
4218
252a6764
DE
42192014-08-22 Doug Evans <dje@google.com>
4220
4221 * buildsym.h (record_line_ftype): New typedef.
4222 (record_line): Use it.
4223 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4224 (dwarf_decode_lines_1): Call them.
4225
510db052
YQ
42262014-08-22 Yao Qi <yao@codesourcery.com>
4227
4228 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4229 (ctf_end): Remove code.
4230
22fd09ae
JK
42312014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4234 (linux_make_corefile_notes): call update_thread_list, protected against
4235 exceptions.
4236
656e8868
PA
42372014-08-21 Pedro Alves <palves@redhat.com>
4238
4239 * infcmd.c (attach_command): Remove comment.
4240
de589d04
WN
42412014-08-21 Bin Cheng <bin.cheng@arm.com>
4242
4243 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4244 unsigned LONGEST to ULONGEST.
4245
2a31c623
PA
42462014-08-20 Pedro Alves <palves@redhat.com>
4247
4248 * Makefile.in (check-read1): New rule.
4249
d36430db
JB
42502014-08-20 Joel Brobecker <brobecker@adacore.com>
4251
4252 * value.c (value_from_contents_and_address): Strip resolved_type's
4253 typedef layers before checking its TYPE_DATA_LOCATION.
4254
000339af
PA
42552014-08-20 Pedro Alves <palves@redhat.com>
4256
4257 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4258
5f52445b
YQ
42592014-08-20 Yao Qi <yao@codesourcery.com>
4260
4261 * amd64-tdep.c (amd64_classify): Add a blank line after the
4262 example. Move "*/" to a new line.
4263 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4264 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4265 * dwarf2read.c (psymtab_include_file_name): Likewise.
4266
9a0dc9e3
PA
42672014-08-19 Andrew Burgess <aburgess@broadcom.com>
4268 Pedro Alves <palves@redhat.com>
4269
4270 PR symtab/14604
4271 PR symtab/14605
4272 * ada-lang.c (coerce_unspec_val_to_type): Use
4273 value_contents_copy_raw.
4274 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4275 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4276 * cp-valprint.c (cp_print_value_fields): Let the common printing
4277 code handle optimized out values.
4278 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4279 * d-valprint.c (dynamic_array_type): Use
4280 value_bits_any_optimized_out.
4281 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4282 check_any_valid fields.
4283 (check_pieced_value_bits): Delete and inline ...
4284 (check_pieced_synthetic_pointer): ... here.
4285 (check_pieced_value_validity): Delete.
4286 (check_pieced_value_invalid): Delete.
4287 (pieced_value_funcs): Remove check_validity and check_any_valid
4288 fields.
4289 (read_pieced_value): Use mark_value_bits_optimized_out.
4290 (write_pieced_value): Switch to use
4291 mark_value_bytes_optimized_out.
4292 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4293 of assuming the whole value is optimized out.
4294 * findvar.c (read_frame_register_value): Remove special handling
4295 of optimized out registers.
4296 (value_from_register): Use mark_value_bytes_optimized_out.
4297 * frame-unwind.c (frame_unwind_got_optimized): Use
4298 mark_value_bytes_optimized_out.
4299 * jv-valprint.c (java_value_print): Adjust.
4300 (java_print_value_fields): Let the common printing code handle
4301 optimized out values.
4302 * mips-tdep.c (mips_print_register): Remove special handling of
4303 optimized out registers.
4304 * opencl-lang.c (lval_func_check_validity): Delete.
4305 (lval_func_check_any_valid): Delete.
4306 (opencl_value_funcs): Remove check_validity and check_any_valid
4307 fields.
4308 * p-valprint.c (pascal_object_print_value_fields): Let the common
4309 printing code handle optimized out values.
4310 * stack.c (read_frame_arg): Remove special handling of optimized
4311 out values. Fetch both VAL and ENTRYVAL before comparing
4312 contents. Adjust to value_available_contents_eq rename.
4313 * valprint.c (valprint_check_validity)
4314 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4315 (val_print_array_elements): Adjust.
4316 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4317 (value_bits_any_optimized_out): New function.
4318 (value_entirely_covered_by_range_vector): New function, factored
4319 out from value_entirely_unavailable.
4320 (value_entirely_unavailable): Reimplement.
4321 (value_entirely_optimized_out): New function.
4322 (insert_into_bit_range_vector): New function, factored out from
4323 mark_value_bits_unavailable.
4324 (mark_value_bits_unavailable): Reimplement.
4325 (struct ranges_and_idx): New struct.
4326 (find_first_range_overlap_and_match): New function, factored out
4327 from value_available_contents_bits_eq.
4328 (value_available_contents_bits_eq): Rename to ...
4329 (value_contents_bits_eq): ... this. Check both unavailable
4330 contents and optimized out contents.
4331 (value_available_contents_eq): Rename to ...
4332 (value_contents_eq): ... this.
4333 (allocate_value_lazy): Remove reference to the old optimized_out
4334 boolean.
4335 (allocate_optimized_out_value): Use
4336 mark_value_bytes_optimized_out.
4337 (require_not_optimized_out): Adjust to check whether the
4338 optimized_out vec is empty.
4339 (ranges_copy_adjusted): New function, factored out from
4340 value_contents_copy_raw.
4341 (value_contents_copy_raw): Also copy the optimized out ranges.
4342 Assert the destination ranges aren't optimized out.
4343 (value_contents_copy): Update comment, remove call to
4344 require_not_optimized_out.
4345 (value_contents_equal): Adjust to check whether the optimized_out
4346 vec is empty.
4347 (set_value_optimized_out, value_optimized_out_const): Delete.
4348 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4349 New functions.
4350 (value_entirely_optimized_out, value_bits_valid): Delete.
4351 (value_copy): Take a VEC copy of the 'optimized_out' field.
4352 (value_primitive_field): Remove special handling of optimized out.
4353 (value_fetch_lazy): Assert that lazy values have no unavailable
4354 regions. Use value_bits_any_optimized_out. Remove some special
4355 handling for optimized out values.
4356 * value.h: Add intro comment about <optimized out> and
4357 <unavailable>.
4358 (struct lval_funcs): Remove check_validity and check_any_valid
4359 fields.
4360 (set_value_optimized_out, value_optimized_out_const): Remove.
4361 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4362 New declarations.
4363 (value_bits_any_optimized_out): New declaration.
4364 (value_bits_valid): Delete declaration.
4365 (value_available_contents_eq): Rename to ...
4366 (value_contents_eq): ... this, and extend comments.
4367
6694c411
JK
43682014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4369
4370 Fix -fsanitize=address on unreadable inferior strings.
4371 * valprint.c (val_print_string): Fix access before BUFFER.
4372
89a1c21a
SM
43732014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4374
4375 * target.c (target_struct_size): Remove.
4376 (target_struct_allocsize): Remove.
4377 (DEFAULT_ALLOCSIZE): Remove.
4378 (target_ops_p): New typedef.
4379 (DEF_VEC_P (target_ops_p)): New vector type.
4380 (target_structs): Change type to VEC (target_ops_p).
4381 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4382 (find_default_run_target): Rewrite for loop following changes to
4383 target_structs.
4384
cb417230
JB
43852014-08-19 Joel Brobecker <brobecker@adacore.com>
4386
4387 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4388 Adjust code accordingly. Adjust function description comment.
4389
817e0957
YQ
43902014-08-19 Yao Qi <yao@codesourcery.com>
4391
4392 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4393 types.
4394
2974be62
AM
43952014-08-19 Alan Modra <amodra@gmail.com>
4396
4397 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4398 * config.in: Regenerate.
4399 * configure: Regenerate.
4400
34abf635
GB
44012014-08-19 Tom Tromey <tromey@redhat.com>
4402 Gary Benson <gbenson@redhat.com>
4403
4404 * common/common-debug.h: New file.
4405 * common/common-debug.c: Likewise.
4406 * debug.c: Likewise.
4407 * Makefile.in (SFILES): Add common/common-debug.c.
4408 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4409 (COMMON_OBS): Add common-debug.o and debug.o.
4410 (common-debug.o): New rule.
4411 * common/common-defs.h: Include common-debug.h.
4412 * common/agent.c (debug_agent_printf): New function.
4413 (DEBUG_AGENT): Redefine.
4414 * nat/i386-dregs.c (debug_printf): Undefine.
4415
f6e94d78
GB
44162014-08-19 Gary Benson <gbenson@redhat.com>
4417
4418 * common/common-defs.h: Include print-utils.h.
4419 * utils.h: Do not include print-utils.h.
4420
9239eeab
GB
44212014-08-19 Tom Tromey <tromey@redhat.com>
4422 Gary Benson <gbenson@redhat.com>
4423
4424 * common/common-types.h: New file.
4425 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4426 * common/common-defs.h: Include common-types.h.
4427 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4428 (ULONGEST): Remove.
4429
ef87c8bb
GB
44302014-08-19 Tom Tromey <tromey@redhat.com>
4431 Gary Benson <gbenson@redhat.com>
4432
4433 * common/errors.h: New file.
4434 * common/errors.c: Likewise.
4435 * Makefile.in (SFILES): Add common/errors.c.
4436 (HFILES_NO_SRCDIR): Add common/errors.h.
4437 (COMMON_OBS): Add errors.o.
4438 (errors.o): New rule.
4439 * common/common-defs.h: Include errors.h.
4440 * utils.h (perror_with_name, error, verror, warning, vwarning):
4441 Don't declare.
4442 * common/common-utils.h: (malloc_failure, internal_error):
4443 Likewise.
4444
196a707b
GB
44452014-08-19 Gary Benson <gbenson@redhat.com>
4446
4447 * utils.c (internal_vproblem): Always print the message.
4448
ded4fc8f
DE
44492014-08-18 Doug Evans <dje@google.com>
4450
4451 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4452
950c97d8
JB
44532014-08-18 Joel Brobecker <brobecker@adacore.com>
4454
4455 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4456 Return 0 if TYPE is dynamic.
4457 (print_range): Add handling of dynamic ranges.
4458
3cdcd0ce
JB
44592014-08-18 Keven Boell <keven.boell@intel.com>
4460 Joel Brobecker <brobecker@adacore.com>
4461
4462 * gdbtypes.h (struct main_type): Add field "data_location".
4463 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4464 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4465 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4466 a dynamic data location.
4467 (resolve_dynamic_type): Add DW_AT_data_location handling.
4468 (copy_recursive, copy_type): Copy the data_location information
4469 when present.
4470 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4471 * value.c (value_from_contents_and_address): Add
4472 DW_AT_data_location handling.
4473
08412b07
JB
44742014-08-18 Keven Boell <keven.boell@intel.com>
4475 Joel Brobecker <brobecker@adacore.com>
4476
4477 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4478 field "get_object_address".
4479 * dwarf2expr.c (execute_stack_op): Add handling for
4480 DW_OP_push_object_address.
4481 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4482 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4483 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4484 (dwarf_expr_get_obj_addr): New function.
4485 (dwarf_expr_ctx_funcs): Add get_object_address field.
4486 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4487 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4488 (dwarf2_evaluate_property): Add parameter "address". Use it.
4489 (needs_get_obj_addr): New function.
4490 (needs_frame_ctx_funcs): Add get_object_address field.
4491 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4492 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4493 (resolve_dynamic_array): Likewise.
4494
84754697
JB
44952014-08-18 Joel Brobecker <brobecker@adacore.com>
4496
4497 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4498 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4499 fixed value for records and unions for which some GNAT encodings
4500 are present.
4501
da5c522f
JB
45022014-08-18 Joel Brobecker <brobecker@adacore.com>
4503
4504 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4505 rewrite to avoid "else if" and "else" constructs. Should be
4506 a no-op in practice.
4507
0d72a7c3
JB
45082014-08-18 Joel Brobecker <brobecker@adacore.com>
4509
4510 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4511 of lexical block.
4512
e66d4446
SC
45132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4514
4515 PR c++/17132
4516 * eval.c: Update all calls to find_overload_match.
4517 * valarith.c: Likewise.
4518 (value_user_defined_cpp_op, value_user_defined_op): New
4519 argument NOSIDE. Update all callers.
4520 * valops.c (find_overload_match): New argument NOSIDE.
4521 * value.h (find_overload_match): Update signature.
4522
940df408
SC
45232014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4524
4525 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4526 'items' methods instead of 'iteritems' method on dictionaries.
4527
699ca60a
DE
45282014-08-15 Doug Evans <dje@google.com>
4529
4530 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4531 closer to use.
4532
37780ee5
DE
45332014-08-15 Doug Evans <dje@google.com>
4534
4535 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4536
0ad93d4f
DE
45372014-08-15 Doug Evans <dje@google.com>
4538
4539 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4540
20d8c372
DE
45412014-08-15 Doug Evans <dje@google.com>
4542
4543 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4544 unused.
4545
cb039ba4
EZ
45462014-08-15 Eli Zaretskii <eliz@gnu.org>
4547
4548 * dcache.h: Include target.h, to avoid compile time warnings.
4549
eb7a547a
JB
45502014-08-15 Joel Brobecker <brobecker@adacore.com>
4551
4552 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4553 frame_info" partial declaration.
4554 * gdbarch.h: Regenerate.
4555
783cecc8
YQ
45562014-08-15 Yao Qi <yao@codesourcery.com>
4557
4558 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4559 Add parameter 'decode_for_pst_p'. Callers update.
4560
65c749e7
YQ
45612014-08-13 Yao Qi <yao@codesourcery.com>
4562
4563 PR build/17104
4564 * configure.ac: Use local variable 'pos'.
4565 * configure: Regenerated.
4566
d769e349
DE
45672014-08-11 Doug Evans <dje@google.com>
4568
4569 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4570 message, it is redundant with "Reading symbols from ..." message.
4571
24f1235e
DE
45722014-08-10 Doug Evans <xdje42@gmail.com>
4573
4574 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4575
dcd2e6ef
YQ
45762014-08-09 Yao Qi <yao@codesourcery.com>
4577
4578 PR remote/9053
4579 * remote.c (remote_xfer_partial): Remove dead code.
4580
070bdf0b
AA
45812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4582
4583 * ia64-linux-tdep.c: Include "regset.h".
4584 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4585 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4586 (ia64_linux_supply_fpregset): New function.
4587 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4588 (ia64_linux_regset_from_core_section): New function.
4589 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4590 method.
4591
08f9f542
AA
45922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4593
4594 * m68klinux-tdep.c: Include "regset.h".
4595 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4596 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4597 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4598 (m68k_linux_regset_from_core_section): New function.
4599 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4600 method.
4601
8f1cee41
AA
46022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4603
4604 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4605 function. Move logic to...
4606 (tilegx_linux_regmap): ... this new register map.
4607 (tilegx_linux_regset): Refer to register map, replace supply
4608 method by regcache_supply_regset, and add collect method.
4609 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4610 TILEGX_FIRST_EASY_REGNUM.
4611
c5741217
AA
46122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4613
4614 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4615 that calls regcache_supply_regset and handles the EPC register
4616 separately. Move main logic to...
4617 (score7_linux_gregmap): ... this new register map.
4618 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4619 (score7_linux_gregset): Refer to register map. Add collect method.
4620 (score7_linux_regset_from_core_section): Replace
4621 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4622 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4623 (struct regset): Delete unused forward declaraction.
4624 (struct pt_regs): Delete structure definition.
4625 (elf_gregset_t): Delete typedef.
4626
81580573
AA
46272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628
4629 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4630 (nios2_core_regset): Add collect method.
4631
ba199d7d
AA
46322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4633
4634 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4635 platform-independent and don't write to read-only input buffer.
4636 (m32r_linux_collect_gregset): New function.
4637 (m32r_linux_gregset): Add collect method.
4638
0006a9da
AA
46392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640
4641 * hppa-linux-tdep.c (greg_map): Rename to...
4642 (hppa_linux_gregmap): ... this. Also convert to
4643 regcache_map_entry format.
4644 (hppa_linux_supply_regset): Delete function.
4645 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4646 (hppa_linux_fpregmap): ... this new register map.
4647 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4648 register map, replace supply method by regcache_supply_regset, and
4649 add collect method regcache_collect_regset.
4650
901e1b23
AA
46512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4652
4653 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4654 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4655 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4656 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4657 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4658 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4659 (frv_linux_supply_gregset): Replace main logic by call to
4660 regcache_supply_regset, but keep clearing gr32-gr63.
4661 (frv_linux_supply_fpregset): Delete function.
4662 (frv_linux_gregset): Refer to appropriate register map and add
4663 regcache_collect_regset as the collect method.
4664 (frv_linux_fpregset): Likewise. Also exchange the supply method
4665 by regcache_supply_regset.
4666
1d6e7555
AA
46672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4668
4669 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4670 by call to alpha_supply_int_regs.
4671 (alpha_linux_collect_gregset): New function.
4672 (alpha_linux_supply_fpregset): Replace logic by call to
4673 alpha_supply_fp_regs.
4674 (alpha_linux_collect_fpregset): New function.
4675 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4676
d4d793bf
AA
46772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4678
4679 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4680 by call to regcache_collect_regset.
4681 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4682 instead of aarch64_linux_supply_gregset/_fpregset.
4683 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4684 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4685 header file instead.
4686 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4687 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4688 functions. Move logic to ...
4689 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4690 register maps.
4691 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4692 refer to new register maps, replace *_regset_from_core by
4693 regcache_supply_regset, and also use regcache_collect_regset.
4694 * aarch64-linux-tdep.h: Include "regset.h".
4695 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4696 Delete prototypes.
4697 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4698 macros, moved from C source file.
4699 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4700 variable declarations.
4701
99b7da5d
AA
47022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4703
4704 * s390-linux-nat.c: Include "regset.h".
4705 (regmap_gregset): Delete macro.
4706 (s390_64_regmap_gregset): New register map for
4707 regcache_supply/_collect_regset.
4708 (s390_64_gregset): New regset.
4709 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4710 (regmap_fpregset): Delete macro.
4711 (s390_native_supply, s390_native_collect): Delete functions.
4712 (supply_gregset, fill_gregset): Replace s390-specific regmap
4713 handling by a call to regcache_supply/_collect_regset.
4714 (supply_fpregset, fill_fpregset): Call regcache_supply/
4715 _collect_regset instead of s390_native_supply/_collect.
4716 (fetch_regset, store_regset): Likewise. Also change the last
4717 parameter to a regset instead of a regmap.
4718 (s390_linux_fetch_inferior_registers)
4719 (390_linux_store_inferior_registers): Adjust last parameter in
4720 calls to fetch_regset and store_regset.
4721 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4722 (s390_gregmap): ... this. Also make static const and convert to
4723 regcache_map_entry format.
4724 (s390x_regmap_gregset): Delete.
4725 (s390_regmap_fpregset): Rename to...
4726 (s390_fpregmap): ... this. Make static const and convert to
4727 regcache_map_entry format.
4728 (s390_regmap_upper, s390_regmap_last_break)
4729 (s390x_regmap_last_break, s390_regmap_system_call)
4730 (s390_regmap_tdb): Likewise.
4731 (s390_supply_regset, s390_collect_regset): Remove functions.
4732 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4733 s390_supply_regset.
4734 (s390_gregset, s390_fpregset, s390_upper_regset)
4735 (s390_last_break_regset, s390x_last_break_regset)
4736 (s390_system_call_regset, s390_tdb_regset): Make global and
4737 replace s390_supply/_collect_regset by regcache_supply/
4738 _collect_regset.
4739 (s390x_gregset): Delete.
4740 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4741 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4742 (s390_regmap_fpregset, s390_regmap_last_break)
4743 (s390x_regmap_last_break, s390_regmap_system_call)
4744 (s390_regmap_tdb): Delete global variable declarations.
4745 (s390_gregset, s390_fpregset, s390_last_break_regset)
4746 (s390x_last_break_regset, s390_system_call_regset)
4747 (s390_tdb_regset): New global variable declarations.
4748
0b309272
AA
47492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750
4751 * regcache.c: Include "regset.h".
4752 (regcache_transfer_regset): New local function.
4753 (regcache_supply_regset, regcache_collect_regset): New functions.
4754 * regcache.h (struct regcache_map_entry): New structure.
4755 (REGCACHE_MAP_SKIP): New enum value.
4756 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4757
7fefa8d7
AA
47582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4759
4760 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4761 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4762 (ppc_linux_collect_gregset ): Likewise.
4763 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4764 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4765 (ppc_collect_vrregset): Likewise.
4766 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4767 Likewise.
4768
96c4f946
YQ
47692014-08-07 Yao Qi <yao@codesourcery.com>
4770
4771 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4772 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4773 * remote.c (remote_read_bytes): Likewise.
4774
fffbe6a8
YQ
47752014-08-07 Yao Qi <yao@codesourcery.com>
4776
4777 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4778
5ee8a82c
YQ
47792014-08-07 Yao Qi <yao@codesourcery.com>
4780
4781 PR remote/17230
4782 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4783 TARGET_XFER_OK instead of 0.
4784
bb974a24
GB
47852014-08-07 Gary Benson <gbenson@redhat.com>
4786
4787 * common/common-defs.h: Include errno.h.
4788 * defs.h: Do not include errno.h.
4789 * ada-typeprint.c: Likewise.
4790 * c-typeprint.c: Likewise.
4791 * core-regset.c: Likewise.
4792 * corefile.c: Likewise.
4793 * corelow.c: Likewise.
4794 * event-loop.c: Likewise.
4795 * f-typeprint.c: Likewise.
4796 * gnu-nat.c: Likewise.
4797 * go32-nat.c: Likewise.
4798 * i386gnu-nat.c: Likewise.
4799 * m2-typeprint.c: Likewise.
4800 * nat/linux-btrace.c: Likewise.
4801 * p-typeprint.c: Likewise.
4802 * procfs.c: Likewise.
4803 * remote-sim.c: Likewise.
4804 * rs6000-nat.c: Likewise.
4805 * target.c: Likewise.
4806 * typeprint.c: Likewise.
4807 * ui-file.c: Likewise.
4808 * valops.c: Likewise.
4809 * valprint.c: Likewise.
4810
6d3d12eb
GB
48112014-08-07 Gary Benson <gbenson@redhat.com>
4812
4813 * common/common-defs.h: Include string.h.
4814 * aarch64-tdep.c: Do not include string.h.
4815 * ada-exp.y: Likewise.
4816 * ada-lang.c: Likewise.
4817 * ada-lex.l: Likewise.
4818 * ada-typeprint.c: Likewise.
4819 * ada-valprint.c: Likewise.
4820 * aix-thread.c: Likewise.
4821 * alpha-linux-tdep.c: Likewise.
4822 * alpha-mdebug-tdep.c: Likewise.
4823 * alpha-nat.c: Likewise.
4824 * alpha-osf1-tdep.c: Likewise.
4825 * alpha-tdep.c: Likewise.
4826 * alphanbsd-tdep.c: Likewise.
4827 * amd64-dicos-tdep.c: Likewise.
4828 * amd64-linux-tdep.c: Likewise.
4829 * amd64-nat.c: Likewise.
4830 * amd64-sol2-tdep.c: Likewise.
4831 * amd64fbsd-tdep.c: Likewise.
4832 * amd64obsd-tdep.c: Likewise.
4833 * arch-utils.c: Likewise.
4834 * arm-linux-nat.c: Likewise.
4835 * arm-linux-tdep.c: Likewise.
4836 * arm-tdep.c: Likewise.
4837 * arm-wince-tdep.c: Likewise.
4838 * armbsd-tdep.c: Likewise.
4839 * armnbsd-nat.c: Likewise.
4840 * armnbsd-tdep.c: Likewise.
4841 * armobsd-tdep.c: Likewise.
4842 * avr-tdep.c: Likewise.
4843 * ax-gdb.c: Likewise.
4844 * ax-general.c: Likewise.
4845 * bcache.c: Likewise.
4846 * bfin-tdep.c: Likewise.
4847 * breakpoint.c: Likewise.
4848 * build-id.c: Likewise.
4849 * buildsym.c: Likewise.
4850 * c-exp.y: Likewise.
4851 * c-lang.c: Likewise.
4852 * c-typeprint.c: Likewise.
4853 * c-valprint.c: Likewise.
4854 * charset.c: Likewise.
4855 * cli-out.c: Likewise.
4856 * cli/cli-cmds.c: Likewise.
4857 * cli/cli-decode.c: Likewise.
4858 * cli/cli-dump.c: Likewise.
4859 * cli/cli-interp.c: Likewise.
4860 * cli/cli-logging.c: Likewise.
4861 * cli/cli-script.c: Likewise.
4862 * cli/cli-setshow.c: Likewise.
4863 * cli/cli-utils.c: Likewise.
4864 * coffread.c: Likewise.
4865 * common/agent.c: Likewise.
4866 * common/buffer.c: Likewise.
4867 * common/buffer.h: Likewise.
4868 * common/common-utils.c: Likewise.
4869 * common/filestuff.c: Likewise.
4870 * common/filestuff.c: Likewise.
4871 * common/format.c: Likewise.
4872 * common/print-utils.c: Likewise.
4873 * common/rsp-low.c: Likewise.
4874 * common/signals.c: Likewise.
4875 * common/vec.h: Likewise.
4876 * common/xml-utils.c: Likewise.
4877 * core-regset.c: Likewise.
4878 * corefile.c: Likewise.
4879 * corelow.c: Likewise.
4880 * cp-abi.c: Likewise.
4881 * cp-name-parser.y: Likewise.
4882 * cp-support.c: Likewise.
4883 * cp-valprint.c: Likewise.
4884 * cris-tdep.c: Likewise.
4885 * d-exp.y: Likewise.
4886 * darwin-nat.c: Likewise.
4887 * dbxread.c: Likewise.
4888 * dcache.c: Likewise.
4889 * demangle.c: Likewise.
4890 * dicos-tdep.c: Likewise.
4891 * disasm.c: Likewise.
4892 * doublest.c: Likewise.
4893 * dsrec.c: Likewise.
4894 * dummy-frame.c: Likewise.
4895 * dwarf2-frame.c: Likewise.
4896 * dwarf2loc.c: Likewise.
4897 * dwarf2read.c: Likewise.
4898 * elfread.c: Likewise.
4899 * environ.c: Likewise.
4900 * eval.c: Likewise.
4901 * event-loop.c: Likewise.
4902 * exceptions.c: Likewise.
4903 * exec.c: Likewise.
4904 * expprint.c: Likewise.
4905 * f-exp.y: Likewise.
4906 * f-lang.c: Likewise.
4907 * f-typeprint.c: Likewise.
4908 * f-valprint.c: Likewise.
4909 * fbsd-nat.c: Likewise.
4910 * findcmd.c: Likewise.
4911 * findvar.c: Likewise.
4912 * fork-child.c: Likewise.
4913 * frame.c: Likewise.
4914 * frv-linux-tdep.c: Likewise.
4915 * frv-tdep.c: Likewise.
4916 * gdb.c: Likewise.
4917 * gdb_bfd.c: Likewise.
4918 * gdbarch.c: Likewise.
4919 * gdbarch.sh: Likewise.
4920 * gdbtypes.c: Likewise.
4921 * gnu-nat.c: Likewise.
4922 * gnu-v2-abi.c: Likewise.
4923 * gnu-v3-abi.c: Likewise.
4924 * go-exp.y: Likewise.
4925 * go-lang.c: Likewise.
4926 * go32-nat.c: Likewise.
4927 * guile/guile.c: Likewise.
4928 * guile/scm-auto-load.c: Likewise.
4929 * hppa-hpux-tdep.c: Likewise.
4930 * hppa-linux-nat.c: Likewise.
4931 * hppanbsd-tdep.c: Likewise.
4932 * hppaobsd-tdep.c: Likewise.
4933 * i386-cygwin-tdep.c: Likewise.
4934 * i386-dicos-tdep.c: Likewise.
4935 * i386-linux-tdep.c: Likewise.
4936 * i386-nto-tdep.c: Likewise.
4937 * i386-sol2-tdep.c: Likewise.
4938 * i386-tdep.c: Likewise.
4939 * i386bsd-tdep.c: Likewise.
4940 * i386gnu-nat.c: Likewise.
4941 * i386nbsd-tdep.c: Likewise.
4942 * i386obsd-tdep.c: Likewise.
4943 * i387-tdep.c: Likewise.
4944 * ia64-libunwind-tdep.c: Likewise.
4945 * ia64-linux-nat.c: Likewise.
4946 * inf-child.c: Likewise.
4947 * inf-ptrace.c: Likewise.
4948 * inf-ttrace.c: Likewise.
4949 * infcall.c: Likewise.
4950 * infcmd.c: Likewise.
4951 * inflow.c: Likewise.
4952 * infrun.c: Likewise.
4953 * interps.c: Likewise.
4954 * iq2000-tdep.c: Likewise.
4955 * irix5-nat.c: Likewise.
4956 * jv-exp.y: Likewise.
4957 * jv-lang.c: Likewise.
4958 * jv-typeprint.c: Likewise.
4959 * jv-valprint.c: Likewise.
4960 * language.c: Likewise.
4961 * linux-fork.c: Likewise.
4962 * linux-nat.c: Likewise.
4963 * lm32-tdep.c: Likewise.
4964 * m2-exp.y: Likewise.
4965 * m2-typeprint.c: Likewise.
4966 * m32c-tdep.c: Likewise.
4967 * m32r-linux-nat.c: Likewise.
4968 * m32r-linux-tdep.c: Likewise.
4969 * m32r-rom.c: Likewise.
4970 * m32r-tdep.c: Likewise.
4971 * m68hc11-tdep.c: Likewise.
4972 * m68k-tdep.c: Likewise.
4973 * m68kbsd-tdep.c: Likewise.
4974 * m68klinux-nat.c: Likewise.
4975 * m68klinux-tdep.c: Likewise.
4976 * m88k-tdep.c: Likewise.
4977 * machoread.c: Likewise.
4978 * macrocmd.c: Likewise.
4979 * main.c: Likewise.
4980 * mdebugread.c: Likewise.
4981 * mem-break.c: Likewise.
4982 * memattr.c: Likewise.
4983 * memory-map.c: Likewise.
4984 * mep-tdep.c: Likewise.
4985 * mi/mi-cmd-break.c: Likewise.
4986 * mi/mi-cmd-disas.c: Likewise.
4987 * mi/mi-cmd-env.c: Likewise.
4988 * mi/mi-cmd-stack.c: Likewise.
4989 * mi/mi-cmd-var.c: Likewise.
4990 * mi/mi-cmds.c: Likewise.
4991 * mi/mi-console.c: Likewise.
4992 * mi/mi-getopt.c: Likewise.
4993 * mi/mi-interp.c: Likewise.
4994 * mi/mi-main.c: Likewise.
4995 * mi/mi-parse.c: Likewise.
4996 * microblaze-rom.c: Likewise.
4997 * microblaze-tdep.c: Likewise.
4998 * mingw-hdep.c: Likewise.
4999 * minidebug.c: Likewise.
5000 * minsyms.c: Likewise.
5001 * mips-irix-tdep.c: Likewise.
5002 * mips-linux-tdep.c: Likewise.
5003 * mips-tdep.c: Likewise.
5004 * mips64obsd-tdep.c: Likewise.
5005 * mipsnbsd-tdep.c: Likewise.
5006 * mipsread.c: Likewise.
5007 * mn10300-linux-tdep.c: Likewise.
5008 * mn10300-tdep.c: Likewise.
5009 * monitor.c: Likewise.
5010 * moxie-tdep.c: Likewise.
5011 * mt-tdep.c: Likewise.
5012 * nat/linux-btrace.c: Likewise.
5013 * nat/linux-osdata.c: Likewise.
5014 * nat/linux-procfs.c: Likewise.
5015 * nat/linux-ptrace.c: Likewise.
5016 * nat/linux-waitpid.c: Likewise.
5017 * nbsd-tdep.c: Likewise.
5018 * nios2-linux-tdep.c: Likewise.
5019 * nto-procfs.c: Likewise.
5020 * nto-tdep.c: Likewise.
5021 * objc-lang.c: Likewise.
5022 * objfiles.c: Likewise.
5023 * opencl-lang.c: Likewise.
5024 * osabi.c: Likewise.
5025 * osdata.c: Likewise.
5026 * p-exp.y: Likewise.
5027 * p-lang.c: Likewise.
5028 * p-typeprint.c: Likewise.
5029 * parse.c: Likewise.
5030 * posix-hdep.c: Likewise.
5031 * ppc-linux-nat.c: Likewise.
5032 * ppc-sysv-tdep.c: Likewise.
5033 * ppcfbsd-tdep.c: Likewise.
5034 * ppcnbsd-tdep.c: Likewise.
5035 * ppcobsd-tdep.c: Likewise.
5036 * printcmd.c: Likewise.
5037 * procfs.c: Likewise.
5038 * prologue-value.c: Likewise.
5039 * python/py-auto-load.c: Likewise.
5040 * python/py-gdb-readline.c: Likewise.
5041 * ravenscar-thread.c: Likewise.
5042 * regcache.c: Likewise.
5043 * registry.c: Likewise.
5044 * remote-fileio.c: Likewise.
5045 * remote-m32r-sdi.c: Likewise.
5046 * remote-mips.c: Likewise.
5047 * remote-notif.c: Likewise.
5048 * remote-sim.c: Likewise.
5049 * remote.c: Likewise.
5050 * reverse.c: Likewise.
5051 * rs6000-aix-tdep.c: Likewise.
5052 * ser-base.c: Likewise.
5053 * ser-go32.c: Likewise.
5054 * ser-mingw.c: Likewise.
5055 * ser-pipe.c: Likewise.
5056 * ser-tcp.c: Likewise.
5057 * ser-unix.c: Likewise.
5058 * serial.c: Likewise.
5059 * sh-tdep.c: Likewise.
5060 * sh64-tdep.c: Likewise.
5061 * shnbsd-tdep.c: Likewise.
5062 * skip.c: Likewise.
5063 * sol-thread.c: Likewise.
5064 * solib-dsbt.c: Likewise.
5065 * solib-frv.c: Likewise.
5066 * solib-osf.c: Likewise.
5067 * solib-som.c: Likewise.
5068 * solib-spu.c: Likewise.
5069 * solib-target.c: Likewise.
5070 * solib.c: Likewise.
5071 * somread.c: Likewise.
5072 * source.c: Likewise.
5073 * sparc-nat.c: Likewise.
5074 * sparc-sol2-tdep.c: Likewise.
5075 * sparc-tdep.c: Likewise.
5076 * sparc64-tdep.c: Likewise.
5077 * sparc64fbsd-tdep.c: Likewise.
5078 * sparc64nbsd-tdep.c: Likewise.
5079 * sparcnbsd-tdep.c: Likewise.
5080 * spu-linux-nat.c: Likewise.
5081 * spu-multiarch.c: Likewise.
5082 * spu-tdep.c: Likewise.
5083 * stabsread.c: Likewise.
5084 * stack.c: Likewise.
5085 * std-regs.c: Likewise.
5086 * symfile.c: Likewise.
5087 * symmisc.c: Likewise.
5088 * symtab.c: Likewise.
5089 * target.c: Likewise.
5090 * thread.c: Likewise.
5091 * tilegx-linux-nat.c: Likewise.
5092 * tilegx-tdep.c: Likewise.
5093 * top.c: Likewise.
5094 * tracepoint.c: Likewise.
5095 * tui/tui-command.c: Likewise.
5096 * tui/tui-data.c: Likewise.
5097 * tui/tui-disasm.c: Likewise.
5098 * tui/tui-file.c: Likewise.
5099 * tui/tui-layout.c: Likewise.
5100 * tui/tui-out.c: Likewise.
5101 * tui/tui-regs.c: Likewise.
5102 * tui/tui-source.c: Likewise.
5103 * tui/tui-stack.c: Likewise.
5104 * tui/tui-win.c: Likewise.
5105 * tui/tui-windata.c: Likewise.
5106 * tui/tui-winsource.c: Likewise.
5107 * typeprint.c: Likewise.
5108 * ui-file.c: Likewise.
5109 * ui-out.c: Likewise.
5110 * user-regs.c: Likewise.
5111 * utils.c: Likewise.
5112 * v850-tdep.c: Likewise.
5113 * valarith.c: Likewise.
5114 * valops.c: Likewise.
5115 * valprint.c: Likewise.
5116 * value.c: Likewise.
5117 * varobj.c: Likewise.
5118 * vax-tdep.c: Likewise.
5119 * vaxnbsd-tdep.c: Likewise.
5120 * vaxobsd-tdep.c: Likewise.
5121 * windows-nat.c: Likewise.
5122 * xcoffread.c: Likewise.
5123 * xml-support.c: Likewise.
5124 * xstormy16-tdep.c: Likewise.
5125 * xtensa-linux-nat.c: Likewise.
5126
dccbb609
GB
51272014-08-07 Gary Benson <gbenson@redhat.com>
5128
5129 * common/common-defs.h: Include gdb_assert.h.
5130 * aarch64-tdep.c: Do not include gdb_assert.h.
5131 * addrmap.c: Likewise.
5132 * aix-thread.c: Likewise.
5133 * alpha-linux-tdep.c: Likewise.
5134 * alpha-mdebug-tdep.c: Likewise.
5135 * alphanbsd-tdep.c: Likewise.
5136 * amd64-nat.c: Likewise.
5137 * amd64-tdep.c: Likewise.
5138 * amd64bsd-nat.c: Likewise.
5139 * amd64fbsd-nat.c: Likewise.
5140 * amd64fbsd-tdep.c: Likewise.
5141 * amd64nbsd-nat.c: Likewise.
5142 * amd64nbsd-tdep.c: Likewise.
5143 * amd64obsd-nat.c: Likewise.
5144 * amd64obsd-tdep.c: Likewise.
5145 * arch-utils.c: Likewise.
5146 * arm-tdep.c: Likewise.
5147 * armbsd-tdep.c: Likewise.
5148 * auxv.c: Likewise.
5149 * bcache.c: Likewise.
5150 * bfin-tdep.c: Likewise.
5151 * blockframe.c: Likewise.
5152 * breakpoint.c: Likewise.
5153 * bsd-kvm.c: Likewise.
5154 * bsd-uthread.c: Likewise.
5155 * buildsym.c: Likewise.
5156 * c-exp.y: Likewise.
5157 * c-lang.c: Likewise.
5158 * charset.c: Likewise.
5159 * cleanups.c: Likewise.
5160 * cli-out.c: Likewise.
5161 * cli/cli-decode.c: Likewise.
5162 * cli/cli-dump.c: Likewise.
5163 * cli/cli-logging.c: Likewise.
5164 * cli/cli-script.c: Likewise.
5165 * cli/cli-utils.c: Likewise.
5166 * coffread.c: Likewise.
5167 * common/common-utils.c: Likewise.
5168 * common/queue.h: Likewise.
5169 * common/signals.c: Likewise.
5170 * common/vec.h: Likewise.
5171 * complaints.c: Likewise.
5172 * completer.c: Likewise.
5173 * corelow.c: Likewise.
5174 * cp-abi.c: Likewise.
5175 * cp-name-parser.y: Likewise.
5176 * cp-namespace.c: Likewise.
5177 * cp-support.c: Likewise.
5178 * cris-tdep.c: Likewise.
5179 * dbxread.c: Likewise.
5180 * dictionary.c: Likewise.
5181 * doublest.c: Likewise.
5182 * dsrec.c: Likewise.
5183 * dummy-frame.c: Likewise.
5184 * dwarf2-frame-tailcall.c: Likewise.
5185 * dwarf2-frame.c: Likewise.
5186 * dwarf2expr.c: Likewise.
5187 * dwarf2loc.c: Likewise.
5188 * dwarf2read.c: Likewise.
5189 * eval.c: Likewise.
5190 * event-loop.c: Likewise.
5191 * exceptions.c: Likewise.
5192 * expprint.c: Likewise.
5193 * f-valprint.c: Likewise.
5194 * fbsd-nat.c: Likewise.
5195 * findvar.c: Likewise.
5196 * frame-unwind.c: Likewise.
5197 * frame.c: Likewise.
5198 * frv-tdep.c: Likewise.
5199 * gcore.c: Likewise.
5200 * gdb-dlfcn.c: Likewise.
5201 * gdb_bfd.c: Likewise.
5202 * gdbarch.c: Likewise.
5203 * gdbarch.sh: Likewise.
5204 * gdbtypes.c: Likewise.
5205 * gnu-nat.c: Likewise.
5206 * gnu-v3-abi.c: Likewise.
5207 * go-lang.c: Likewise.
5208 * guile/scm-exception.c: Likewise.
5209 * guile/scm-gsmob.c: Likewise.
5210 * guile/scm-lazy-string.c: Likewise.
5211 * guile/scm-math.c: Likewise.
5212 * guile/scm-pretty-print.c: Likewise.
5213 * guile/scm-safe-call.c: Likewise.
5214 * guile/scm-utils.c: Likewise.
5215 * guile/scm-value.c: Likewise.
5216 * h8300-tdep.c: Likewise.
5217 * hppa-hpux-nat.c: Likewise.
5218 * hppa-tdep.c: Likewise.
5219 * hppanbsd-tdep.c: Likewise.
5220 * hppaobsd-tdep.c: Likewise.
5221 * i386-darwin-nat.c: Likewise.
5222 * i386-darwin-tdep.c: Likewise.
5223 * i386-nto-tdep.c: Likewise.
5224 * i386-tdep.c: Likewise.
5225 * i386bsd-nat.c: Likewise.
5226 * i386fbsd-tdep.c: Likewise.
5227 * i386gnu-nat.c: Likewise.
5228 * i386nbsd-tdep.c: Likewise.
5229 * i386obsd-tdep.c: Likewise.
5230 * i387-tdep.c: Likewise.
5231 * ia64-libunwind-tdep.c: Likewise.
5232 * ia64-tdep.c: Likewise.
5233 * inf-ptrace.c: Likewise.
5234 * inf-ttrace.c: Likewise.
5235 * infcall.c: Likewise.
5236 * infcmd.c: Likewise.
5237 * infrun.c: Likewise.
5238 * inline-frame.c: Likewise.
5239 * interps.c: Likewise.
5240 * jv-lang.c: Likewise.
5241 * jv-typeprint.c: Likewise.
5242 * linux-fork.c: Likewise.
5243 * linux-nat.c: Likewise.
5244 * linux-thread-db.c: Likewise.
5245 * m32c-tdep.c: Likewise.
5246 * m32r-linux-nat.c: Likewise.
5247 * m32r-tdep.c: Likewise.
5248 * m68k-tdep.c: Likewise.
5249 * m68kbsd-nat.c: Likewise.
5250 * m68kbsd-tdep.c: Likewise.
5251 * m88k-tdep.c: Likewise.
5252 * machoread.c: Likewise.
5253 * macroexp.c: Likewise.
5254 * macrotab.c: Likewise.
5255 * maint.c: Likewise.
5256 * mdebugread.c: Likewise.
5257 * memory-map.c: Likewise.
5258 * mep-tdep.c: Likewise.
5259 * mi/mi-common.c: Likewise.
5260 * microblaze-tdep.c: Likewise.
5261 * mingw-hdep.c: Likewise.
5262 * mips-linux-nat.c: Likewise.
5263 * mips-linux-tdep.c: Likewise.
5264 * mips-tdep.c: Likewise.
5265 * mips64obsd-tdep.c: Likewise.
5266 * mipsnbsd-tdep.c: Likewise.
5267 * mn10300-linux-tdep.c: Likewise.
5268 * mn10300-tdep.c: Likewise.
5269 * moxie-tdep.c: Likewise.
5270 * mt-tdep.c: Likewise.
5271 * nat/linux-btrace.c: Likewise.
5272 * nat/linux-osdata.c: Likewise.
5273 * nat/linux-ptrace.c: Likewise.
5274 * nat/mips-linux-watch.c: Likewise.
5275 * nios2-linux-tdep.c: Likewise.
5276 * nios2-tdep.c: Likewise.
5277 * objc-lang.c: Likewise.
5278 * objfiles.c: Likewise.
5279 * obsd-nat.c: Likewise.
5280 * opencl-lang.c: Likewise.
5281 * osabi.c: Likewise.
5282 * parse.c: Likewise.
5283 * ppc-linux-nat.c: Likewise.
5284 * ppc-sysv-tdep.c: Likewise.
5285 * ppcfbsd-nat.c: Likewise.
5286 * ppcfbsd-tdep.c: Likewise.
5287 * ppcnbsd-nat.c: Likewise.
5288 * ppcnbsd-tdep.c: Likewise.
5289 * ppcobsd-nat.c: Likewise.
5290 * ppcobsd-tdep.c: Likewise.
5291 * printcmd.c: Likewise.
5292 * procfs.c: Likewise.
5293 * prologue-value.c: Likewise.
5294 * psymtab.c: Likewise.
5295 * python/py-lazy-string.c: Likewise.
5296 * python/py-value.c: Likewise.
5297 * regcache.c: Likewise.
5298 * reggroups.c: Likewise.
5299 * registry.c: Likewise.
5300 * remote-sim.c: Likewise.
5301 * remote.c: Likewise.
5302 * rs6000-aix-tdep.c: Likewise.
5303 * rs6000-tdep.c: Likewise.
5304 * s390-linux-tdep.c: Likewise.
5305 * score-tdep.c: Likewise.
5306 * ser-base.c: Likewise.
5307 * ser-mingw.c: Likewise.
5308 * sh-tdep.c: Likewise.
5309 * sh64-tdep.c: Likewise.
5310 * solib-darwin.c: Likewise.
5311 * solib-spu.c: Likewise.
5312 * solib-svr4.c: Likewise.
5313 * source.c: Likewise.
5314 * sparc-nat.c: Likewise.
5315 * sparc-sol2-tdep.c: Likewise.
5316 * sparc-tdep.c: Likewise.
5317 * sparc64-sol2-tdep.c: Likewise.
5318 * sparc64-tdep.c: Likewise.
5319 * sparc64fbsd-tdep.c: Likewise.
5320 * sparc64nbsd-tdep.c: Likewise.
5321 * sparc64obsd-tdep.c: Likewise.
5322 * sparcnbsd-tdep.c: Likewise.
5323 * sparcobsd-tdep.c: Likewise.
5324 * spu-multiarch.c: Likewise.
5325 * spu-tdep.c: Likewise.
5326 * stabsread.c: Likewise.
5327 * stack.c: Likewise.
5328 * symfile.c: Likewise.
5329 * symtab.c: Likewise.
5330 * target-descriptions.c: Likewise.
5331 * target-memory.c: Likewise.
5332 * target.c: Likewise.
5333 * tic6x-linux-tdep.c: Likewise.
5334 * tic6x-tdep.c: Likewise.
5335 * tilegx-linux-nat.c: Likewise.
5336 * tilegx-tdep.c: Likewise.
5337 * top.c: Likewise.
5338 * tramp-frame.c: Likewise.
5339 * tui/tui-out.c: Likewise.
5340 * tui/tui-winsource.c: Likewise.
5341 * ui-out.c: Likewise.
5342 * user-regs.c: Likewise.
5343 * utils.c: Likewise.
5344 * v850-tdep.c: Likewise.
5345 * valops.c: Likewise.
5346 * value.c: Likewise.
5347 * varobj.c: Likewise.
5348 * vax-nat.c: Likewise.
5349 * xml-syscall.c: Likewise.
5350 * xml-tdesc.c: Likewise.
5351 * xstormy16-tdep.c: Likewise.
5352 * xtensa-linux-nat.c: Likewise.
5353 * xtensa-tdep.c: Likewise.
5354
e76df0d0
GB
53552014-08-07 Gary Benson <gbenson@redhat.com>
5356
5357 * common/common-defs.h: Include common-utils.h.
5358 * defs.h: Do not include common-utils.h.
5359 * common/gdb_assert.h: Likewise.
5360 * darwin-nat.h: Likewise.
5361 * nat/linux-btrace.c: Likewise.
5362 * target/waitstatus.h: Likewise.
5363
4cb9c816
GB
53642014-08-07 Gary Benson <gbenson@redhat.com>
5365
5366 * common/common-defs.h: Include ptid.h.
5367 * defs.h: Do not include ptid.h.
5368 * inferior.h: Likewise.
5369 * infrun.h: Likewise.
5370 * nat/linux-btrace.h: Likewise.
5371 * nat/linux-osdata.h: Likewise.
5372 * target/waitstatus.h: Likewise.
5373
3995eeee
GB
53742014-08-07 Gary Benson <gbenson@redhat.com>
5375
5376 * common/common-defs.h: Include gdb_locale.h.
5377 * defs.h: Do not include gdb_locale.h.
5378
cb9f1a9b
GB
53792014-08-07 Gary Benson <gbenson@redhat.com>
5380
5381 * common/common-defs.h: Include gdb/signals.h.
5382 * defs.h: Do not include gdb/signals.h.
5383
a5fceff8
GB
53842014-08-07 Gary Benson <gbenson@redhat.com>
5385
5386 * common/common-defs.h: Include pathmax.h.
5387 * defs.h: Do not include pathmax.h.
5388
b9391142
GB
53892014-08-07 Gary Benson <gbenson@redhat.com>
5390
5391 * common/common-defs.h: Include libiberty.h.
5392 * defs.h: Do not include libiberty.h.
5393 * common/queue.h: Likewise.
5394 * cp-name-parser.y: Likewise.
5395 * mi/mi-cmd-catch.c: Likewise.
5396 * python/python.c: Likewise.
5397
0e443c87
GB
53982014-08-07 Gary Benson <gbenson@redhat.com>
5399
5400 * common/common-defs.h: Include ansidecl.h.
5401 * defs.h: Do not include ansidecl.h.
5402 * common/buffer.h: Likewise.
5403 * common/common-utils.h: Likewise.
5404
8ebb3f56
GB
54052014-08-07 Gary Benson <gbenson@redhat.com>
5406
5407 * common/common-defs.h: Include stddef.h.
5408 * defs.h: Do not include stddef.h.
5409 * common/common-utils.h: Likewise.
5410 * amd64fbsd-nat.c: Likewise.
5411 * bcache.c: Likewise.
5412 * charset.c: Likewise.
5413 * common/buffer.h: Likewise.
5414 * common/vec.h: Likewise.
5415 * i386bsd-nat.c: Likewise.
5416 * nat/linux-btrace.h: Likewise.
5417 * ppcfbsd-nat.c: Likewise.
5418 * ppcnbsd-tdep.h: Likewise.
5419 * ppcobsd-nat.c: Likewise.
5420 * ppcobsd-tdep.h: Likewise.
5421 * python/py-gdb-readline.c: Likewise.
5422
8980bdf6
GB
54232014-08-07 Gary Benson <gbenson@redhat.com>
5424
5425 * common/common-defs.h: Include stdarg.h.
5426 * defs.h: Do not include stdarg.h.
5427 * ada-lang.c: Likewise.
5428 * common/common-utils.h: Likewise.
5429 * guile/scm-string.c: Likewise.
5430 * guile/scm-utils.c: Likewise.
5431 * m32c-tdep.c: Likewise.
5432
d7096f71
GB
54332014-08-07 Gary Benson <gbenson@redhat.com>
5434
5435 * common/common-defs.h: Include stdlib.h.
5436 * defs.h: Do not include stdlib.h.
5437 * addrmap.c: Likewise.
5438 * bcache.c: Likewise.
5439 * common/buffer.c: Likewise.
5440 * common/common-utils.c: Likewise.
5441 * cp-name-parser.y: Likewise.
5442 * go32-nat.c: Likewise.
5443 * mn10300-linux-tdep.c: Likewise.
5444 * nat/linux-osdata.c: Likewise.
5445 * tui/tui.c: Likewise.
5446 * windows-nat.c: Likewise.
5447
d02f550d
GB
54482014-08-07 Gary Benson <gbenson@redhat.com>
5449
5450 * common/common-defs.h: Include stdio.h.
5451 * defs.h: Do not include stdio.h.
5452 * ada-lang.c: Likewise.
5453 * common/buffer.c: Likewise.
5454 * common/common-utils.c: Likewise.
5455 * cp-name-parser.y: Likewise.
5456 * gnu-nat.c: Likewise.
5457 * go32-nat.c: Likewise.
5458 * i386gnu-nat.c: Likewise.
5459 * proc-api.c: Likewise.
5460 * proc-events.c: Likewise.
5461 * proc-flags.c: Likewise.
5462 * proc-why.c: Likewise.
5463 * python/python-internal.h: Likewise.
5464 * target-memory.c: Likewise.
5465 * tui/tui-io.c: Likewise.
5466 * tui/tui.c: Likewise.
5467
b6d7a4bf
SM
54682014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5469
5470 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5471 (scan_dyntag_auxv): Same.
5472
af19829b
YQ
54732014-08-06 Yao Qi <yao@codesourcery.com>
5474
5475 * amd64-linux-nat.c: Remove duplicated include
5476 "x86-linux-nat.h".
5477 * i386-linux-nat.c: Likewise.
5478
8e07a239
YQ
54792014-08-06 Yao Qi <yao@codesourcery.com>
5480
5481 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5482 operand" with "Special opcode" in comments.
5483
7bfe8241
GB
54842014-08-05 Gary Benson <gbenson@redhat.com>
5485
5486 * interps.c (initialize_interps): Remove prototype.
5487 (interpreter_initialized): Remove static global.
5488 (interp_add): Do not call initialize_interps.
5489 (initialize_interps): Remove function.
5490
d6c95504
GB
54912014-08-05 Gary Benson <gbenson@redhat.com>
5492
5493 * utils.c (vwarning): Remove spurious va_end.
5494
241fd515
AM
54952014-08-05 Alan Modra <amodra@gmail.com>
5496
5497 * charset.c (convert_between_encodings): Cast result of obstack_base.
5498 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5499 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5500 (read_unwind_info): Use size_t for some locals.
5501 * jit.c (finalize_symtab): Likewise.
5502 * utils.c (hashtab_obstack_allocate): Likewise.
5503 * symmisc.c (print_objfile_statistics): Update format strings.
5504
dc304a94
JK
55052014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5506
5507 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5508 (Changes in GDB 7.8): ... here.
5509
3cecbbbe
TT
55102014-08-04 Tom Tromey <tromey@redhat.com>
5511
5512 * target.c (set_targetdebug): New function.
5513 (initialize_targets): Pass set_targetdebug when creating "set
5514 debug target".
5515
6908c509
JB
55162014-08-01 Joel Brobecker <brobecker@adacore.com>
5517
5518 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5519 if detecting a variable-sized field that is not the last field.
5520 Fix struct type length computation.
5521
53e8f97d
JB
55222014-08-01 Joel Brobecker <brobecker@adacore.com>
5523
5524 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5525 Add debug trace.
5526
e068c55d
JB
55272014-08-01 Joel Brobecker <brobecker@adacore.com>
5528
5529 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5530 Remove "+ 8" offset in computation of CHAIN_VMA.
5531
4d4ca2a1
DE
55322014-07-31 Doug Evans <dje@google.com>
5533
5534 * inflow.c (child_terminal_inferior): Add comment.
5535 (child_terminal_ours_for_output): Add comment.
5536 (child_terminal_ours): Add comment.
5537 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5538 (linux_nat_terminal_ours): Add comment.
5539
462f517e
GB
55402014-07-31 Gary Benson <gbenson@redhat.com>
5541
5542 * common/btrace-common.h: Do not include defs.h or server.h.
5543 * nat/mips-linux-watch.h: Likewise.
5544 * gdb-dlfcn.h: Do not include defs.h.
5545 * tracefile.h: Likewise.
5546
74228e77
RM
55472014-07-30 Roland McGrath <mcgrathr@google.com>
5548
5549 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5550
014f9477
TT
55512014-07-30 Tom Tromey <tromey@redhat.com>
5552
5553 * bsd-kvm.c (bsd_kvm_open): Constify.
5554 * corelow.c (core_open): Constify.
5555 * ctf.c (ctf_open): Constify.
5556 * dbug-rom.c (dbug_open): Constify.
5557 * exec.c (exec_open): Constify.
5558 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5559 * microblaze-rom.c (picobug_open): Constify.
5560 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5561 Constify.
5562 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5563 * record-btrace.c (record_btrace_open): Constify.
5564 * record-full.c (record_full_core_open_1, record_full_open_1)
5565 (record_full_open): Constify.
5566 * remote-m32r-sdi.c (m32r_open): Constify.
5567 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5568 (rockhopper_open, lsi_open): Constify.
5569 * remote-sim.c (gdbsim_open): Constify.
5570 * remote.c (remote_open, extended_remote_open, remote_open_1):
5571 Constify.
5572 * target.h (struct target_ops) <to_open>: Make "arg" const.
5573 * tracefile-tfile.c (tfile_open): Constify.
5574
e799154c
TT
55752014-07-30 Tom Tromey <tromey@redhat.com>
5576
5577 * breakpoint.c (map_breakpoint_numbers): Update.
5578 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5579 (get_number_const): New function.
5580 (get_number): Rewrite using get_number_const.
5581 (init_number_or_range): Make "string" const.
5582 (number_is_in_list): Make "list" const.
5583 * cli/cli-utils.h (get_number_const): Declare.
5584 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5585 (init_number_or_range, number_is_in_list): Update.
5586 * printcmd.c (map_display_numbers): Update.
5587 * value.c (value_from_history_ref): Constify.
5588 * value.h (value_from_history_ref): Update.
5589
5f08566b
TT
55902014-07-30 Tom Tromey <tromey@redhat.com>
5591
5592 * corefile.c (hook_type, call_extra_exec_file_hooks)
5593 (specify_exec_file_hook): Constify.
5594 * exec.c (exec_file_attach): Make "filename" const.
5595 * gdbcore.h (deprecated_exec_file_display_hook)
5596 (specify_exec_file_hook, exec_file_attach): Constify.
5597 * main.c (captured_main): Use catch_command_errors_const.
5598
8981c758
TT
55992014-07-30 Tom Tromey <tromey@redhat.com>
5600
5601 * target.c (open_target): New function.
5602 (add_target_with_completer, add_deprecated_target_alias): Use
5603 set_cmd_sfunc, set_cmd_context.
5604 (debug_to_open): Remove.
5605 (setup_target_debug): Update.
5606
a1c7835a
YQ
56072014-07-30 Yao Qi <yao@codesourcery.com>
5608
5609 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5610 comments.
5611 * parse.c (exp_iterate): Update comments.
5612
976411d6
GB
56132014-07-30 Gary Benson <gbenson@redhat.com>
5614
5615 * common/common-defs.h: New file.
5616 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5617 * defs.h: Include common-defs.h.
5618 Do not include config.h or build-gnulib/config.h.
5619
5d4848a4
GB
56202014-07-30 Gary Benson <gbenson@redhat.com>
5621
5622 * common/common-utils.h: Do not include config.h.
5623 * nat/linux-btrace.h: Likewise.
5624
d41f6d8e
GB
56252014-07-30 Gary Benson <gbenson@redhat.com>
5626
5627 * btrace.c: Include defs.h.
5628 * common/ptid.c: Include defs.h or server.h as appropriate.
5629 * nat/mips-linux-watch.c: Likewise.
5630
84202f9c
TT
56312014-07-29 Tom Tromey <tromey@redhat.com>
5632
5633 * target.c (target_is_pushed): Simplify.
5634
2530441c
JB
56352014-07-29 Joel Brobecker <brobecker@adacore.com>
5636
5637 GDB 7.8 released.
5638
7e09a223
YQ
56392014-07-29 Yao Qi <yao@codesourcery.com>
5640
5641 PR gdb/17206
5642 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5643
7ebdbe92
DE
56442014-07-28 Doug Evans <xdje42@gmail.com>
5645
5646 PR guile/17203
5647 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5648 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5649 parameters.
5650
f347ffc9
WN
56512014-07-28 Will Newton <will.newton@linaro.org>
5652
5653 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5654 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5655 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5656 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5657 (THUMB2_EABI_SYSCALL): Likewise.
5658 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5659 struct tramp_frame.
5660 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5661 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5662
37c5f1f7
DE
56632014-07-27 Doug Evans <xdje42@gmail.com>
5664
5665 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5666
0c3abbc7
DE
56672014-07-27 Doug Evans <xdje42@gmail.com>
5668
5669 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5670
e76c5d17
DE
56712014-07-26 Ludovic Courtès <ludo@gnu.org>
5672 Doug Evans <xdje42@gmail.com>
5673
5674 PR guile/17146
5675 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5676 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5677 * configure.ac: Try to use guild to compile an scm file, if it fails
5678 then disable guile support.
5679 * configure: Regenerate.
5680 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5681 GUILE_FILE_LIST.
5682 (GUILE_COMPILED_FILES): New variable.
5683 (GUILE_FILES) Update.
5684 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5685 (stamp-guile): Compile scm files.
5686 * guile/guile.c (boot_guile_support): New function.
5687 (standard_throw_args_p): New function.
5688 (print_standard_throw_error, print_throw_error): New functions.
5689 (handle_boot_error): New function.
5690 (initialize_scheme_side): Rewrite to call boot_guile_support.
5691 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5692 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5693
186fcde0
DE
56942014-07-26 Ludovic Courtès <ludo@gnu.org>
5695 Doug Evans <xdje42@gmail.com>
5696
5697 PR guile/17146
5698 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5699 * guile/lib/gdb/support.scm: New file.
5700 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5701 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5702 All uses updated.
5703 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5704 All uses updated.
5705 (%assert-type): Ditto, and renamed to assert-type.
5706 (%exception-print-style): Delete.
5707
4df42755
DE
57082014-07-26 Doug Evans <xdje42@gmail.com>
5709
5710 PR build/17105
5711 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5712 * configure: Regenerate.
5713 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5714 PYTHON_FILES.
5715 (PYTHON_FILES): New variable.
5716 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5717 (GUILE_FILES): New variable.
5718 (stamp-python, install-python, uninstall-python): Handle empty
5719 file list.
5720 (stamp-guile, install-guile, uninstall-guile): Ditto.
5721
ee7333ae
DE
57222014-07-26 Doug Evans <xdje42@gmail.com>
5723
5724 PR guile/17177
5725 * guile/lib/gdb.scm (pretty-printers): Export.
5726 (set-pretty-printers!): Export.
5727 * guile/lib/gdb/printing.scm (gdb module): Update.
5728 (prepend-pretty-printer!, append-pretty-printer!): Update.
5729 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5730 (pretty_printer_list_var): Delete.
5731 (pretty_printer_list): New static global.
5732 (gdbscm_pretty_printers): New function.
5733 (gdbscm_set_pretty_printers_x): New function.
5734 (ppscm_find_pretty_printer_from_gdb): Update.
5735 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5736 (gdbscm_initialize_pretty_printers): Update.
5737
74edf516
DE
57382014-07-26 Doug Evans <xdje42@gmail.com>
5739
5740 PR 17185
5741 * configure.ac: Add check for header gc/gc.h.
5742 Add check for function setenv.
5743 * configure: Regenerate.
5744 * config.in: Regenerate.
5745 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5746
d54398a7
MR
57472014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5748
5749 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5750 variation in gdbarch matching.
5751
ab16fce8
TT
57522014-07-25 Tom Tromey <tromey@redhat.com>
5753
5754 * exec.c (using_exec_ops): Remove.
5755 (exec_close_1): Update. Remove extraneous block, reindent.
5756 (add_target_sections): Use target_is_pushed.
5757
88056fbb
PA
57582014-07-25 Pedro Alves <palves@redhat.com>
5759
5760 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5761 * monitor.c (monitor_create_inferior): Likewise.
5762 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5763 * remote-sim.c (gdbsim_create_inferior): Likewise.
5764 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5765 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5766 * windows-nat.c (do_initial_windows_stuff): Likewise.
5767
70509625
PA
57682014-07-25 Pedro Alves <palves@redhat.com>
5769
5770 * NEWS: Mention signal passing and "signal" command changes.
5771 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5772 comment.
5773 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5774 call.
5775 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5776 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5777 (jump_command): Adjust clear_proceed_status call.
5778 (signal_command): Warn if other thread that are resumed have
5779 signals that will be delivered. Adjust clear_proceed_status call.
5780 (until_next_command, finish_command)
5781 (proceed_after_attach_callback, attach_command_post_wait)
5782 (attach_command): Adjust clear_proceed_status call.
5783 * infrun.c (proceed_after_vfork_done): Likewise.
5784 (proceed_after_attach_callback): Adjust comment.
5785 (clear_proceed_status_thread): Clear stop_signal if not in pass
5786 state.
5787 (clear_proceed_status_callback): Delete.
5788 (clear_proceed_status): New 'step' parameter. Only clear the
5789 proceed status of threads the command being prepared is about to
5790 resume.
5791 (proceed): If passed in an explicit signal, override stop_signal
5792 with it. Don't pass the last stop signal to the thread we're
5793 resuming.
5794 (init_wait_for_inferior): Adjust clear_proceed_status call.
5795 (switch_back_to_stepped_thread): Clear the signal if it should not
5796 be passed.
5797 * infrun.h (clear_proceed_status): New 'step' parameter.
5798 (user_visible_resume_ptid): Add comment.
5799 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5800 signal is in pass state.
5801 * remote.c (append_pending_thread_resumptions): Likewise.
5802 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5803
d8be2939
TT
58042014-07-25 Tom Tromey <tromey@redhat.com>
5805
5806 * target.h (target_stopped_data_address)
5807 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5808 parentheses.
5809
7d0d9d2b
PL
58102014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5811
5812 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5813 comments.
5814 (avr_pointer_to_address): Likewise.
5815
e9e7f724
TT
58162014-07-24 Tom Tromey <tromey@redhat.com>
5817
5818 * monitor.c (compile_pattern): Update.
5819 * target.h (struct target_ops) <to_shortname, to_longname,
5820 to_doc>: Now const.
5821
1947513d
TT
58222014-07-24 Tom Tromey <tromey@redhat.com>
5823
5824 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5825 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5826 (add_info_alias, add_com): Make "doc" const.
5827 (print_doc_line): Make "str" const.
5828 (delete_cmd): Update.
5829 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5830 (print_doc_line): Update.
5831 * cli/cli-script.c (document_command): Update.
5832 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5833 (add_com, add_info, add_info_alias): Update.
5834 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5835 * python/py-cmd.c (cmdpy_destroyer): Update.
5836
64e61d29
TT
58372014-07-24 Tom Tromey <tromey@redhat.com>
5838
5839 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5840 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5841 (help_cmd_list): Constify.
5842 (lookup_cmd): Update.
5843 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5844 const.
5845 (help_cmd_list, apropos_cmd): Update.
5846 * cli/cli-script.c (show_user): Update.
5847 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5848 * cli/cli-setshow.h (cmd_show_list): Update.
5849 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5850 (cmd_show_list): Update.
5851 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5852 * python/py-cmd.c (cmdpy_destroyer): Update.
5853
429e55ea
TT
58542014-07-24 Tom Tromey <tromey@redhat.com>
5855
5856 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5857 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5858 const.
5859 * command.h (deprecate_cmd): Update.
5860 * maint.c (maintenance_do_deprecate): Add casts.
5861
64669f3b
TT
58622014-07-24 Tom Tromey <tromey@redhat.com>
5863
5864 * cli/cli-decode.c (help_cmd): Make parameter "const".
5865 * cli/cli-decode.h (help_cmd): Update.
5866
d3d3328b
TT
58672014-07-24 Tom Tromey <tromey@redhat.com>
5868
5869 * stack.c (up_silently_base, down_silently_base): Make argument
5870 const.
5871
414842dc
TT
58722014-07-24 Tom Tromey <tromey@redhat.com>
5873
5874 * solib.c (solib_add): Make "pattern" const.
5875 * solib.h (solib_add): Update.
5876
baa336ce
TT
58772014-07-24 Tom Tromey <tromey@redhat.com>
5878
5879 * remote.c (remote_serial_open, print_packet, putpkt)
5880 (putpkt_binary): Constify.
5881 * remote.h (putpkt): Update.
5882
5a19e2d0
TT
58832014-07-24 Tom Tromey <tromey@redhat.com>
5884
5885 * monitor.c (monitor_open): Make "args" const.
5886 * monitor.h (monitor_open): Update.
5887
fc4baa5e
TT
58882014-07-24 Tom Tromey <tromey@redhat.com>
5889
5890 * maint.c (match_bfd_flags): Make "string" const.
5891 (print_bfd_section_info): Remove casts.
5892 (print_objfile_section_info): Make "string" const.
5893
0d5f0dbe
TT
58942014-07-24 Tom Tromey <tromey@redhat.com>
5895
5896 * inf-child.c (inf_child_open_target): Make "arg" const.
5897 * inf-child.h (inf_child_open_target): Update.
5898
41c77899
TT
58992014-07-24 Tom Tromey <tromey@redhat.com>
5900
5901 * environ.c (unset_in_environ): Make "var" const.
5902 * environ.h (unset_in_environ): Update.
5903
93db0d79
TT
59042014-07-24 Tom Tromey <tromey@redhat.com>
5905
5906 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5907 Make "cmd" const.
5908 (scan_filename_with_cleanup): Likewise.
5909 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5910 Make arguments const.
5911 (restore_command): Update.
5912
36d6eb95
PA
59132014-07-24 Pedro Alves <palves@redhat.com>
5914
5915 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5916
8009206a
TT
59172014-07-24 Tom Tromey <tromey@redhat.com>
5918 Gary Benson <gbenson@redhat.com>
5919
5920 * nat/linux-ptrace.c (additional_flags): New global.
5921 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5922 additional_flags; don't check GDBSERVER.
5923 (linux_ptrace_set_additional_flags): New function.
5924 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5925 Declare.
5926 * linux-nat.c (_initialize_linux_nat): Call
5927 linux_ptrace_set_additional_flags.
5928
a7068b60
TT
59292014-07-24 Tom Tromey <tromey@redhat.com>
5930
5931 * make-target-delegates (munge_type, write_debugmethod): New
5932 functions.
5933 (debug_names): New global.
5934 ($TARGET_DEBUG_PRINTER): New global.
5935 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5936 name.
5937 Write debug methods. Generate init_debug_target.
5938 * target-debug.h: New file.
5939 * target-delegates.c: Rebuild.
5940 * target.c: Include target-debug.h.
5941 (debug_target): Hoist definition.
5942 (target_kill, target_get_section_table, target_memory_map)
5943 (target_flash_erase, target_flash_done, target_detach)
5944 (target_disconnect, target_wait, target_resume)
5945 (target_pass_signals, target_program_signals, target_follow_fork)
5946 (target_mourn_inferior, target_search_memory)
5947 (target_thread_address_space, target_close)
5948 (target_find_new_threads, target_core_of_thread)
5949 (target_verify_memory, target_insert_mask_watchpoint)
5950 (target_remove_mask_watchpoint): Remove targetdebug code.
5951 (debug_to_post_attach, debug_to_prepare_to_store)
5952 (debug_to_files_info, debug_to_insert_breakpoint)
5953 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5954 (debug_to_region_ok_for_hw_watchpoint)
5955 (debug_to_can_accel_watchpoint_condition)
5956 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5957 (debug_to_watchpoint_addr_within_range)
5958 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5959 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5960 (debug_to_terminal_init, debug_to_terminal_inferior)
5961 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5962 (debug_to_terminal_save_ours, debug_to_terminal_info)
5963 (debug_to_load, debug_to_post_startup_inferior)
5964 (debug_to_insert_fork_catchpoint)
5965 (debug_to_remove_fork_catchpoint)
5966 (debug_to_insert_vfork_catchpoint)
5967 (debug_to_remove_vfork_catchpoint)
5968 (debug_to_insert_exec_catchpoint)
5969 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5970 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5971 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5972 (setup_target_debug): Call init_debug_target.
5973 * target.h (TARGET_DEBUG_PRINTER): New macro.
5974 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5975 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5976
2c51604d
GB
59772014-07-24 Gary Benson <gbenson@redhat.com>
5978
5979 * exceptions.h (throw_vfatal): Renamed to...
5980 (throw_vquit): New declaration.
5981 (throw_quit): Likewise.
5982 * exceptions.c (throw_vfatal): Renamed to...
5983 (throw_vquit): New function.
5984 (throw_quit): Likewise.
5985 (throw_error): Call throw_verror rather than throw_it.
5986 * utils.h (vfatal): Removed.
5987 (fatal): Likewise.
5988 * utils.c (vfatal): Removed.
5989 (fatal): Likewise.
5990 (internal_verror): Replaced call to fatal with call to throw_quit.
5991 (quit): Replaced calls to fatal with calls to throw_quit.
5992
34211963
ME
59932014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5994
5995 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5996 target_read_code.
5997
a52b4d3e
ME
59982014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5999
6000 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6001 less than zero in conditional expression.
6002
a8bdc56b
TT
60032014-07-23 Tom Tromey <tromey@redhat.com>
6004
6005 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6006 ($INTRO_PART): Don't match whitespace.
6007 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6008 argument matching.
6009 ($METHOD): Add $METHOD_TRAILER.
6010 (trim): Rewrite.
6011 (scan_target_h): New sub.
6012 Change main loop not to collect state.
6013 * target-delegates.c: Rebuild.
6014
91b52240
GB
60152014-07-23 Gary Benson <gbenson@redhat.com>
6016
6017 * cp-support.c (gdb_demangle): Fix build on systems without
6018 sigaltstack.
6019
45326f6f
JK
60202014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6021
6022 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6023 for reference entry value target data value.
6024
e214cf6c
JK
60252014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6026
6027 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6028 value_available_contents_eq.
6029
bddbbedd
PA
60302014-07-22 Pedro Alves <palves@redhat.com>
6031
6032 * value.c (allocate_optimized_out_value): Don't mark value as
6033 non-lazy.
6034
45c71484
JW
60352014-07-22 Jiong Wang <jiong.wang@arm.com>
6036
6037 * MAINTAINERS (Write After Approval): Update my email address.
6038
9597b22a
DE
60392014-07-20 Doug Evans <dje@google.com>
6040
6041 PR server/17147
6042 * remote.c (putpkt_binary): Add text to error message.
6043
91101fe5
YQ
60442014-07-20 Yao Qi <yao@codesourcery.com>
6045
6046 * eval.c: Remove "Chill" from comments.
6047 * gdbtypes.h: Likewise.
6048 * symtab.h: Likewise.
6049
c9402c95
YQ
60502014-07-20 Yao Qi <yao@codesourcery.com>
6051
6052 * std-operator.def: Update comments to TERNOP_SLICE.
6053
ae8fddda
YQ
60542014-07-20 Yao Qi <yao@codesourcery.com>
6055
6056 * std-operator.def: Remove BINOP_RANGE.
6057 * breakpoint.c (watchpoint_exp_is_const): Update.
6058 * expprint.c (dump_subexp_body_standard): Likewise.
6059 * eval.c (init_array_element): Remove dead code.
6060 (evaluate_subexp_standard): Likewise.
6061
9c816640
YQ
60622014-07-20 Yao Qi <yao@codesourcery.com>
6063
6064 * std-operator.def: Remove BINOP_IN.
6065 * breakpoint.c (watchpoint_exp_is_const): Update.
6066 * eval.c (evaluate_subexp_standard): Likewise.
6067 * expprint.c (dump_subexp_body_standard): Likewise.
6068
164224e9
ME
60692014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6070
6071 * microblaze-tdep.c (microblaze_register_names): Add
6072 the rshr and rslr register names.
6073 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6074 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6075 Use of tdesc_numbered_register. Use of
6076 microblaze_register_g_packet_guesses. Use of
6077 tdesc_use_registers. Use of set_gdbarch_register_type.
6078 (microblaze_register_g_packet_guesses): New.
6079 * microblaze-tdep.h (microblaze_reg_num): Add
6080 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6081 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6082 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6083 * features/microblaze-core.xml: New file.
6084 * features/microblaze-stack-protect.xml: New file.
6085 * features/microblaze-with-stack-protect.c: New file.
6086 * features/microblaze-with-stack-protect.xml: New file.
6087 * features/microblaze.xml: New file.
6088 * features/microblaze.c: New file.
6089 * features/Makefile (microblaze-with-stack-protect): Add
6090 microblaze-with-stack-protect microblaze and microblaze-expedite.
6091 * regformats/microblaze-with-stack-protect.dat: New file.
6092 * regformats/microblaze.dat: New file.
6093 * doc/gdb.texinfo (MicroBlaze Features): Added.
6094
e8b2341c
TT
60952014-07-18 Tom Tromey <tromey@redhat.com>
6096
6097 * exec.c (exec_ops): Now static.
6098 * exec.h (exec_ops): Don't declare.
6099
44e89118
TT
61002014-07-18 Tom Tromey <tromey@redhat.com>
6101
6102 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6103 to find_target_beneath.
6104 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6105 find_target_beneath.
6106 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6107
b0ed115f
TT
61082014-07-18 Tom Tromey <tromey@redhat.com>
6109
6110 PR gdb/17130:
6111 * utils.c (quit): Use target_supports_terminal_ours.
6112 * target.h (target_supports_terminal_ours): Declare.
6113 * target.c (target_supports_delete_record): Don't check
6114 to_delete_record against NULL.
6115 (target_supports_terminal_ours): New function.
6116
e75fdfca
TT
61172014-07-18 Tom Tromey <tromey@redhat.com>
6118
6119 PR gdb/17130:
6120 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6121 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6122 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6123 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6124 * windows-nat.c (windows_xfer_partial): Always delegate.
6125 * record-btrace.c (record_btrace_xfer_partial): Simplify
6126 delegation.
6127 (record_btrace_fetch_registers, record_btrace_store_registers)
6128 (record_btrace_prepare_to_store, record_btrace_resume)
6129 (record_btrace_wait, record_btrace_find_new_threads)
6130 (record_btrace_thread_alive): Likewise.
6131 * procfs.c (procfs_xfer_partial): Always delegate.
6132 * corelow.c (core_xfer_partial): Always delegate.
6133 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6134
83814951
TT
61352014-07-18 Tom Tromey <tromey@redhat.com>
6136
6137 * exec.c (exec_make_note_section): Move earlier.
6138
b8b8facf
DE
61392014-07-17 Doug Evans <dje@google.com>
6140
74b49205 6141 PR gdb/17170
b8b8facf
DE
6142 * maint.c (count_symtabs_and_blocks): Handle NULL
6143 current_program_space.
6144 (report_command_stats): Check global enabled flag in addition to
6145 recorded enabled flag.
6146 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6147
69ff6be5
PA
61482014-07-16 Pedro Alves <palves@redhat.com>
6149
6150 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6151
252db1b5
TT
61522014-07-16 Tom Tromey <tromey@redhat.com>
6153
6154 * target.h (struct target_ops) <to_delete_record>: Reformat
6155 comment.
6156
a432721e
TT
61572014-07-16 Tom Tromey <tromey@redhat.com>
6158
6159 * target-delegates.c: Rebuild.
6160
487d9753
PL
61612014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6162
6163 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6164 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6165 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6166 (avr_pointer_to_address): Likewise.
6167 (avr_address_class_type_flags): New function.
6168 (avr_address_class_type_flags_to_name): Likewise.
6169 (avr_address_class_name_to_type_flags): Likewise.
6170 (avr_gdbarch_init): Set address_class_type_flags,
6171 address_class_type_flags_to_name and
6172 address_class_name_to_type_flags.
6173
57745c90
PA
61742014-07-15 Pedro Alves <palves@redhat.com>
6175
6176 * linux-nat.c (kill_callback): Save errno and work with saved
6177 copy.
6178
2d40be18
SM
61792014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6180
6181 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6182
572f6555
EBM
61832014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6184
6185 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6186 breakpoint support correctly.
6187
cc1c52ad
PA
61882014-07-14 Pedro Alves <palves@redhat.com>
6189
6190 * utils.c (prompt_for_continue): Call target_terminal_ours.
6191
1e973570
PA
61922014-07-14 Pedro Alves <palves@redhat.com>
6193
6194 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6195 catch_errors. Don't re-enable stdin or notify observers where,
6196 and rethrow error.
6197 (fetch_inferior_event_wrapper): Delete.
6198
93d6eb10
PA
61992014-07-14 Pedro Alves <palves@redhat.com>
6200
6201 PR gdb/17072
6202 * top.c: Include "inf-loop.h".
6203 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6204 field.
6205 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6206 was async before.
6207 (gdb_readline_wrapper): Store whether the target is async, and
6208 make it sync.
6209
0017922d
PA
62102014-07-14 Pedro Alves <palves@redhat.com>
6211
6212 PR gdb/17072
6213 * top.c (gdb_readline_wrapper_line): Tweak comment.
6214 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6215 the input handler callback.
6216
94696ad3
PA
62172014-07-14 Pedro Alves <palves@redhat.com>
6218
6219 PR gdb/17072
6220 * main.c: Include event-top.h.
6221 (handle_command_errors): New function.
6222 (catch_command_errors, catch_command_errors_const): Use it.
6223
9d1e69a2
PA
62242014-07-14 Pedro Alves <palves@redhat.com>
6225
6226 * exceptions.c (catch_command_errors, catch_command_errors_const):
6227 Moved to main.c.
6228 * exceptions.h (catch_command_errors_ftype)
6229 (catch_command_errors_const_ftype): Moved to main.c.
6230 (catch_command_errors, catch_command_errors_const): Delete
6231 declarations.
6232 * main.c (catch_command_errors_ftype)
6233 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6234 (catch_command_errors, catch_command_errors_const)): Moved here
6235 from exceptions.c and make static.
6236
feefc97b
PA
62372014-07-14 Pedro Alves <palves@redhat.com>
6238
6239 * exceptions.c (print_any_exception): Delete.
6240 (catch_exceptions_with_msg): Use exception_print instead of
6241 print_any_exception.
6242 (catch_errors): Use exception_fprintf instead of
6243 print_any_exception.
6244 (catch_command_errors, catch_command_errors_const): Use
6245 exception_print instead of print_any_exception.
6246
c933f875
PA
62472014-07-14 Pedro Alves <palves@redhat.com>
6248
6249 * infcall.c (run_inferior_call): Set 'sync_execution' while
6250 running the inferior call.
6251
feb6f816
PA
62522014-07-14 Pedro Alves <palves@redhat.com>
6253
6254 * value.c (value_contents_equal): Delete function.
6255 * value.h (value_contents_equal): Delete declaration.
6256
d98b7a16
TT
62572014-07-14 Tom Tromey <tromey@redhat.com>
6258
6259 PR exp/17106:
6260 * gdbtypes.c (is_dynamic_type_internal): New function, from
6261 is_dynamic_type.
6262 (is_dynamic_type): Rewrite.
6263 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6264 (resolve_dynamic_struct): Likewise.
6265 (resolve_dynamic_type_internal): New function, from
6266 resolve_dynamic_type.
6267 (resolve_dynamic_type): Rewrite.
6268
548740d6
TT
62692014-07-14 Tom Tromey <tromey@redhat.com>
6270
6271 * target.c (target_require_runnable): Also check record_stratum.
6272 Update comment.
6273
808f7ab1
YQ
62742014-07-11 Yao Qi <yao@codesourcery.com>
6275
6276 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6277 thumb_instruction_restores_sp return true.
6278
540314bd
YQ
62792014-07-11 Yao Qi <yao@codesourcery.com>
6280
6281 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6282 (thumb_in_function_epilogue_p): Call
6283 thumb_instruction_restores_sp.
6284
1db01f22
YQ
62852014-07-11 Yao Qi <yao@codesourcery.com>
6286
6287 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6288 'add sp, #imm'.
6289 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6290
3116063b
GB
62912014-07-11 Gary Benson <gbenson@redhat.com>
6292
6293 * amd64-linux-nat.c (gdbcore.h): Remove include.
6294 (regset.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/debugreg.h): Likewise.
6301 (sys/syscall.h): Likewise.
6302 (sys/procfs.h): Likewise.
6303 (sys/user.h): Likewise.
6304 (asm/ptrace.h): Likewise.
6305 (i386-nat.h): Likewise.
6306 * i386-linux-nat.c (i386-nat.h): Likewise.
6307 (regset.h): Likewise.
6308 (target.h): Likewise.
6309 (linux-nat.h): Likewise.
6310 (nat/linux-btrace.h): Likewise.
6311 (btrace.h): Likewise.
6312 (gdb_assert.h): Likewise.
6313 (string.h): Likewise.
6314 (sys/uio.h): Likewise.
6315 (sys/user.h): Likewise.
6316 (sys/procfs.h): Likewise.
6317 (sys/reg.h): Likewise.
6318 (sys/debugreg.h): Likewise.
6319 (ORIG_EAX): Remove definition.
6320
040baaf6
GB
63212014-07-11 Gary Benson <gbenson@redhat.com>
6322
6323 * i386-linux-nat.h: New file.
6324 * x86-linux-nat.h: Likewise.
6325 * x86-linux-nat.c: Likewise.
6326 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6327 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6328 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6329 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6330 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6331 (PTRACE_SETREGSET): Likewise.
6332 (arch_lwp_info): Now in x86-linux-nat.c.
6333 (have_ptrace_getregset): Now in x86-linux-nat.h.
6334 (x86_linux_dr_get): Now in x86-linux-nat.c.
6335 (x86_linux_dr_set): Likewise.
6336 (x86_linux_dr_get_addr): Likewise.
6337 (x86_linux_dr_get_control): Likewise.
6338 (x86_linux_dr_get_status): Likewise.
6339 (update_debug_registers_callback): Likewise.
6340 (x86_linux_dr_set_control): Likewise.
6341 (x86_linux_dr_set_addr): Likewise.
6342 (x86_linux_prepare_to_resume): Likewise.
6343 (x86_linux_new_thread): Likewise.
6344 (x86_linux_new_fork): Likewise.
6345 (x86_linux_get_thread_area): Likewise.
6346 (super_post_startup_inferior): Likewise.
6347 (x86_linux_child_post_startup_inferior): Likewise.
6348 (AMD64_LINUX_USER64_CS): Likewise.
6349 (AMD64_LINUX_X32_DS): Likewise.
6350 (x86_linux_read_description): Likewise.
6351 (x86_linux_enable_btrace): Likewise.
6352 (x86_linux_disable_btrace): Likewise.
6353 (x86_linux_teardown_btrace): Likewise.
6354 (x86_linux_read_btrace): Likewise.
6355 (x86_linux_create_target): Likewise.
6356 (x86_linux_add_target): Likewise.
6357 * i386-linux-nat.c (x86-linux-nat.h): New include.
6358 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6359 (PTRACE_SETREGSET): Likewise.
6360 (arch_lwp_info): Now in x86-linux-nat.c.
6361 (have_ptrace_getregset): Now in x86-linux-nat.h.
6362 (x86_linux_dr_get): Now in x86-linux-nat.c.
6363 (x86_linux_dr_set): Likewise.
6364 (x86_linux_dr_get_addr): Likewise.
6365 (x86_linux_dr_get_control): Likewise.
6366 (x86_linux_dr_get_status): Likewise.
6367 (update_debug_registers_callback): Likewise.
6368 (x86_linux_dr_set_control): Likewise.
6369 (x86_linux_dr_set_addr): Likewise.
6370 (x86_linux_prepare_to_resume): Likewise.
6371 (x86_linux_new_thread): Likewise.
6372 (x86_linux_new_fork): Likewise.
6373 (x86_linux_get_thread_area): Likewise.
6374 (super_post_startup_inferior): Likewise.
6375 (x86_linux_child_post_startup_inferior): Likewise.
6376 (AMD64_LINUX_USER64_CS): Likewise.
6377 (AMD64_LINUX_X32_DS): Likewise.
6378 (x86_linux_read_description): Likewise.
6379 (x86_linux_enable_btrace): Likewise.
6380 (x86_linux_disable_btrace): Likewise.
6381 (x86_linux_teardown_btrace): Likewise.
6382 (x86_linux_read_btrace): Likewise.
6383 (x86_linux_create_target): Likewise.
6384 (x86_linux_add_target): Likewise.
6385
1aa7e42c
GB
63862014-07-11 Gary Benson <gbenson@redhat.com>
6387
6388 * amd64-linux-nat.c: Comment and whitespace changes.
6389 * i386-linux-nat.c: Comment and whitespace changes.
6390
c1e246a0
GB
63912014-07-11 Gary Benson <gbenson@redhat.com>
6392
6393 * amd64-linux-nat.c (x86_linux_create_target): New function.
6394 (x86_linux_add_target): Likewise.
6395 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6396 * i386-linux-nat.c (x86_linux_create_target): New function.
6397 (x86_linux_add_target): Likewise.
6398 (_initialize_i386_linux_nat): Delegate to the above new functions.
6399
8c420b8d
GB
64002014-07-11 Gary Benson <gbenson@redhat.com>
6401
6402 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6403 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6404 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6405 (ps_get_thread_area): Delegate to the above.
6406
cb1da100
GB
64072014-07-11 Gary Benson <gbenson@redhat.com>
6408
6409 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6410 x86_linux_read_description. All uses updated. amd64-specific
6411 code conditionalized. Conditionalized i386-specific code added.
6412 Redundant cast removed.
6413 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6414 x86_linux_read_description. All uses updated. i386-specific
6415 code conditionalized. Conditionalized amd64-specific code added.
6416 One sizeof replaced with the actual type it is describing.
6417
2acf3cd0
GB
64182014-07-11 Gary Benson <gbenson@redhat.com>
6419
6420 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6421 x86_linux_dr_get. All uses updated.
6422 (amd64_linux_dr_set): Renamed to
6423 x86_linux_dr_set. All uses updated.
6424 (amd64_linux_dr_get_addr): Renamed to
6425 x86_linux_dr_get_addr. All uses updated.
6426 (amd64_linux_dr_get_control): Renamed to
6427 x86_linux_dr_get_control. All uses updated.
6428 (amd64_linux_dr_get_status): Renamed to
6429 x86_linux_dr_get_status. All uses updated.
6430 (amd64_linux_dr_set_control): Renamed to
6431 x86_linux_dr_set_control. All uses updated.
6432 (amd64_linux_dr_set_addr): Renamed to
6433 x86_linux_dr_set_addr. All uses updated.
6434 (amd64_linux_prepare_to_resume): Renamed to
6435 x86_linux_prepare_to_resume. All uses updated.
6436 (amd64_linux_new_thread): Renamed to
6437 x86_linux_new_thread. All uses updated.
6438 (amd64_linux_new_fork): Renamed to
6439 x86_linux_new_fork. All uses updated.
6440 (amd64_linux_child_post_startup_inferior): Renamed to
6441 x86_linux_child_post_startup_inferior. All uses updated.
6442 (amd64_linux_enable_btrace): Renamed to
6443 x86_linux_enable_btrace. All uses updated.
6444 (amd64_linux_disable_btrace): Renamed to
6445 x86_linux_disable_btrace. All uses updated.
6446 (amd64_linux_teardown_btrace): Renamed to
6447 x86_linux_teardown_btrace. All uses updated.
6448 (amd64_linux_read_btrace): Renamed to
6449 x86_linux_read_btrace. All uses updated.
6450 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6451 x86_linux_dr_get. All uses updated.
6452 (i386_linux_dr_set): Renamed to
6453 x86_linux_dr_set. All uses updated.
6454 (i386_linux_dr_get_addr): Renamed to
6455 x86_linux_dr_get_addr. All uses updated.
6456 (i386_linux_dr_get_control): Renamed to
6457 x86_linux_dr_get_control. All uses updated.
6458 (i386_linux_dr_get_status): Renamed to
6459 x86_linux_dr_get_status. All uses updated.
6460 (i386_linux_dr_set_control): Renamed to
6461 x86_linux_dr_set_control. All uses updated.
6462 (i386_linux_dr_set_addr): Renamed to
6463 x86_linux_dr_set_addr. All uses updated.
6464 (i386_linux_prepare_to_resume): Renamed to
6465 x86_linux_prepare_to_resume. All uses updated.
6466 (i386_linux_new_thread): Renamed to
6467 x86_linux_new_thread. All uses updated.
6468 (i386_linux_new_fork): Renamed to
6469 x86_linux_new_fork. All uses updated.
6470 (i386_linux_child_post_startup_inferior): Renamed to
6471 x86_linux_child_post_startup_inferior. All uses updated.
6472 (i386_linux_enable_btrace): Renamed to
6473 x86_linux_enable_btrace. All uses updated.
6474 (i386_linux_disable_btrace): Renamed to
6475 x86_linux_disable_btrace. All uses updated.
6476 (i386_linux_teardown_btrace): Renamed to
6477 x86_linux_teardown_btrace. All uses updated.
6478 (i386_linux_read_btrace): Renamed to
6479 x86_linux_read_btrace. All uses updated.
6480
b9c1d481
AS
64812014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6482
6483 * remote.c (extended_remote_post_attach): New function.
6484 (init_extended_remote_ops): Install it as to_post_attach method.
6485
7180e04a
PA
64862014-07-09 Pedro Alves <palves@redhat.com>
6487
6488 * infcmd.c (attach_command_post_wait): Don't call
6489 target_terminal_inferior here.
6490 (attach_command): Call it here instead.
6491
9a9a7608
AB
64922014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6495 field.
6496 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6497 from varobj.c, with additional checks.
6498 (c_varobj_ops): Fill in is_path_expr_parent field.
6499 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6500 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6501 field.
6502 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6503 ops method.
6504 (varobj_default_is_path_expr_parent): New function.
6505 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6506 (varobj_default_is_path_expr_parent): Declare new function.
6507
1f267ae3
MM
65082014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6509
6510 * infcmd.c (finish_backward): Turn internal error into normal error.
6511
b2ee242b
PA
65122014-07-07 Pedro Alves <palves@redhat.com>
6513
8a869bca 6514 PR gdb/17096
b2ee242b
PA
6515 * remote.c (async_handle_remote_sigint)
6516 (async_handle_remote_sigint_twice): Call
6517 gdb_call_async_signal_handler instead of
6518 mark_async_signal_handler.
6519
38e229b2
TT
65202014-07-07 Tom Tromey <tromey@redhat.com>
6521
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_info_record): Remove.
6524 * record.c (info_record_command): Unconditionally call
6525 to_info_record.
6526 * target.h (struct target_ops) <to_info_record>: Use
6527 TARGET_DEFAULT_IGNORE.
6528 (target_info_record): Remove.
6529
f0f9ff95
TT
65302014-07-07 Tom Tromey <tromey@redhat.com>
6531
6532 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6533 TARGET_DEFAULT_NORETURN.
6534 * target.c (generic_tls_error): New function.
6535 (target_translate_tls_address): Don't search target stack.
6536 * target-delegates.c: Rebuild.
6537 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6538 stack.
6539 * linux-thread-db.c (thread_db_get_thread_local_address):
6540 Unconditionally call beneath target.
6541
4a5be5ee
MK
65422014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6543
6544 * cli/cli-logging.c (pop_output_files): Assign targerr to
6545 gdb_stdtargerr.
6546
92c3b204
AB
65472014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * MAINTAINERS (Write After Approval): Update my email address.
6550
9b11e3a7
GB
65512014-07-02 Gary Benson <gbenson@redhat.com>
6552
6553 * proc-service.c (ps_xfer_memory): Update comment.
6554 (ps_pstop): Remove unused function.
6555 (ps_pcontinue): Likewise.
6556 (ps_lstop): Likewise.
6557 (ps_lcontinue): Likewise.
6558 (ps_lgetxregsize): Likewise.
6559 (ps_lgetxregs): Likewise.
6560 (ps_lsetxregs): Likewise.
6561 (ps_plog): Likewise.
6562 (ps_ptread): Likewise.
6563 (ps_ptwrite): Likewise.
6564
cf363f18
MW
65652014-07-01 Mark Wielaard <mjw@redhat.com>
6566
6567 * dwarf2read.c (add_array_cv_type): New function.
6568 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6569 (read_tag_volatile_type): Likewise.
6570
82ae6c8d
TT
65712014-07-01 Tom Tromey <tromey@redhat.com>
6572
6573 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6574 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6575 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6576 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6577 * command.h (cmd_cfunc_ftype): Move earlier.
6578 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6579 (add_com, add_info): Use cmd_cfunc_ftype.
6580
96142726
TT
65812014-06-30 Tom Tromey <tromey@redhat.com>
6582
6583 * symtab.c (operator_chars): Make parameters and return type
6584 const.
6585 (file_matches): Make "files" const.
6586 (struct search_symbols_data) <files>: Now const.
6587 (search_symbols): Make "regexp" and "files" parameters const.
6588 Update.
6589 (symtab_symbol_info): Remove cast.
6590 (rbreak_command): Update.
6591 * symtab.h (search_symbols): Update.
6592
b67a2c6f
YQ
65932014-06-27 Yao Qi <yao@codesourcery.com>
6594
6595 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6596 Change parameter type to 'struct thread_info *'. Caller
6597 updated.
6598 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6599 Update declaration.
6600 * dummy-frame.c (struct dummy_frame_id): New.
6601 (dummy_frame_id_eq): New function.
6602 (struct dummy_frame) <id>: Change its type to 'struct
6603 dummy_frame_id'.
6604 (dummy_frame_push): Add parameter ptid and save it in
6605 dummy_frame_id.
6606 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6607 inferior_ptid.
6608 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6609 to inferior_ptid.
6610 (lookup_dummy_frame): Change parameter type to 'struct
6611 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6612 instead of frame_id_eq.
6613 (dummy_frame_pop): Add parameter ptid. Callers updated.
6614 Update comments. Compose dummy_frame_id and pass it to
6615 lookup_dummy_frame.
6616 (dummy_frame_discard): Add parameter ptid.
6617 (dummy_frame_sniffer): Compose dummy_frame_id and call
6618 dummy_frame_id_eq instead of frame_id_eq.
6619 (fprint_dummy_frames): Print ptid.
6620 * dummy-frame.h: Remove comments.
6621 (dummy_frame_push): Add ptid in declaration.
6622 (dummy_frame_pop, dummy_frame_discard): Likewise.
6623
5b10184c
TT
66242014-06-26 Tom Tromey <tromey@redhat.com>
6625
6626 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6627 * command.h (error_no_arg): Update.
6628
06900326
TT
66292014-06-26 Tom Tromey <tromey@redhat.com>
6630
6631 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6632 (do_show_command): Make "arg" const.
6633 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6634
c2bcbb1d
TT
66352014-06-26 Tom Tromey <tromey@redhat.com>
6636
6637 * record-full.c (record_full_get_bookmark): Make "args" const.
6638 (record_full_goto_bookmark): Make "raw_bookmark" const.
6639 * record.c (record_goto): New function.
6640 (cmd_record_goto): Use it. Now static.
6641 * record.h (record_goto): Declare.
6642 (cmd_record_goto): Remove declaration.
6643 * target-delegates.c: Rebuild.
6644 * target.h (struct target_ops) <to_get_bookmark,
6645 to_goto_bookmark>: Make parameter const.
6646
9cbe5fff
TT
66472014-06-26 Tom Tromey <tromey@redhat.com>
6648
6649 * defs.h (generic_load): Update.
6650 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6651 * monitor.c (monitor_load): Make "args" const.
6652 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6653 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6654 const.
6655 (mips_load): Make "file" const.
6656 * remote-sim.c (gdbsim_load): Make "args" const.
6657 * remote.c (remote_load): Make "name" const.
6658 * symfile.c (generic_load): Make "args" const.
6659 * target-delegates.c: Rebuild.
6660 * target.c (target_load): Make "arg" const.
6661 (debug_to_load): Make "args" const.
6662 * target.h (struct target_ops) <to_load>: Make parameter const.
6663 (target_load): Update.
6664
34a68019
TT
66652014-06-26 Tom Tromey <tromey@redhat.com>
6666
6667 PR symtab/16902:
6668 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6669 (dwarf2_physname, read_partial_die)
6670 (guess_partial_die_structure_name, fixup_partial_die)
6671 (guess_full_die_structure_name, anonymous_struct_prefix)
6672 (dwarf2_name): Use per-BFD obstack.
6673
efc889c1
YQ
66742014-06-26 Yao Qi <yao@codesourcery.com>
6675
6676 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6677 dummyframe and this_id into inner block below.
6678
4395285e
YQ
66792014-06-26 Yao Qi <yao@codesourcery.com>
6680
6681 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6682 with "signal_pass[0]" in the initialization of signal_pass.
6683
aef92902
MM
66842014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6685
6686 * record-btrace.c (record_btrace_generating_corefile)
6687 (record_btrace_prepare_to_generate_core)
6688 (record_btrace_done_generating_core): New.
6689 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6690 (record_btrace_store_registers, record_btrace_prepare_to_store):
6691 Forward request when generating a core file.
6692 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6693 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6694 to_done_generating_core.
6695
5fff78c4
MM
66962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6697
6698 * target.h (target_ops) <to_prepare_to_generate_core>
6699 <to_done_generating_core>: New.
6700 (target_prepare_to_generate_core, target_done_generating_core): New.
6701 * target.c (target_prepare_to_generate_core)
6702 (target_done_generating_core): New.
6703 * target-delegates.c: Regenerate.
6704 * gcore.c: (write_gcore_file): Rename to ...
6705 (write_gcore_file_1): ...this.
6706 (write_gcore_file): Call target_prepare_to_generate_core
6707 and target_done_generating_core.
6708
1d1f1ccb
MM
67092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6710
6711 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6712 * gcore.c (write_gcore_file): Free memory returned from
6713 make_corefile_notes.
6714 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6715 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6716
3343ef86
YQ
67172014-06-24 Yao Qi <yao@codesourcery.com>
6718
6719 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6720 (arm_linux_init_abi): Set skip_trampoline_code with
6721 gdbarch_skip_trampoline_code instead of
6722 find_solib_trampoline_target.
6723
18d18ac8
YQ
67242014-06-24 Yao Qi <yao@codesourcery.com>
6725
6726 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6727 arm_skip_bx_reg returns non-zero.
6728
80d8d390
YQ
67292014-06-24 Yao Qi <yao@codesourcery.com>
6730
6731 * arm-tdep.c (arm_skip_bx_reg): New function.
6732 (arm_skip_stub): Call arm_skip_bx_reg.
6733
6a18a01c
DB
67342014-06-23 Don Breazeal <donb@codesourcery.com>
6735
6736 * MAINTAINERS: Add myself as write-after-approval maintainer.
6737
8e9db26e
PA
67382014-06-23 Pedro Alves <palves@redhat.com>
6739
6740 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6741 DR_CONTROL before setting DR0..DR3.
6742 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6743 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6744 bits of DR_CONTROL related to the debug register slot being
6745 disabled. If all slots are vacant, clear local slowdown as well,
6746 and assert DR_CONTROL is 0.
6747
70afc5b7
SC
67482014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6749
6750 * python/lib/gdb/command/xmethods.py
6751 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6752 current progspace only if the string "progspace" matches LOCUS_RE.
6753
840ed64d
JK
67542014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6755
6756 Fix --with-system-readline with readline-6.3 patch 5.
6757 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6758 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6759 types.
6760
26f2dc30
TT
67612014-06-20 Tom Tromey <tromey@redhat.com>
6762
6763 * dwarf2read.c (dw2_get_real_path): Use correct type in
6764 OBSTACK_CALLOC.
6765 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6766
125f8a3d
GB
67672014-06-20 Gary Benson <gbenson@redhat.com>
6768
6769 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6770 * common/glibc_thread_db.h: Likewise.
6771 * common/i386-cpuid.h: Likewise.
6772 * common/i386-gcc-cpuid.h: Likewise.
6773 * common/linux-btrace.h: Likewise.
6774 * common/linux-osdata.h: Likewise.
6775 * common/linux-procfs.h: Likewise.
6776 * common/linux-ptrace.h: Likewise.
6777 * common/mips-linux-watch.h: Likewise.
6778 * common/linux-btrace.c: Moved to nat.
6779 * common/linux-osdata.c: Likewise.
6780 * common/linux-procfs.c: Likewise.
6781 * common/linux-ptrace.c: Likewise.
6782 * common/mips-linux-watch.c: Likewise.
6783 * nat/gdb_thread_db.h: Moved from common.
6784 * nat/glibc_thread_db.h: Likewise.
6785 * nat/i386-cpuid.h: Likewise.
6786 * nat/i386-gcc-cpuid.h: Likewise.
6787 * nat/linux-btrace.c: Likewise.
6788 * nat/linux-btrace.h: Likewise.
6789 * nat/linux-osdata.c: Likewise.
6790 * nat/linux-osdata.h: Likewise.
6791 * nat/linux-procfs.c: Likewise.
6792 * nat/linux-procfs.h: Likewise.
6793 * nat/linux-ptrace.c: Likewise.
6794 * nat/linux-ptrace.h: Likewise.
6795 * nat/mips-linux-watch.c: Likewise.
6796 * nat/mips-linux-watch.h: Likewise.
6797 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6798 (object file files): Reordered.
6799 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6800 of glibc_thread_db.h.
6801
42995dbd
GB
68022014-06-20 Gary Benson <gbenson@redhat.com>
6803
6804 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6805 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6806 (i386_dr_low): Likewise.
6807 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6808 (i386_dr_low_set_addr): Likewise.
6809 (i386_dr_low_get_addr): Likewise.
6810 (i386_dr_low_can_set_control): Likewise.
6811 (i386_dr_low_set_control): Likewise.
6812 (i386_dr_low_get_control): Likewise.
6813 (i386_dr_low_get_status): Likewise.
6814 (i386_get_debug_register_length): Likewise.
6815 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6816 (i386_dr_low): Likewise.
6817 * nat/i386-dregs.c (i386-low.h): Remove include.
6818 (i386-nat.h): Likewise.
6819 (nat/i386-dregs.h): New include.
6820 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6821 (i386_dr_low_set_addr): Likewise.
6822 (i386_dr_low_get_addr): Likewise.
6823 (i386_dr_low_can_set_control): Likewise.
6824 (i386_dr_low_set_control): Likewise.
6825 (i386_dr_low_get_control): Likewise.
6826 (i386_dr_low_get_status): Likewise.
6827 (i386_get_debug_register_length): Likewise.
6828 (debug_hw_points): Likewise.
6829
3ed9baed
IB
68302014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6831
6832 * Makefile.in (SFILES): Add d-exp.y.
6833 (YYFILES): Add d-exp.c.
6834 (YYOBJ): Add d-exp.o.
6835 (local-maintainer-clean): Delete d-exp.c.
6836 * d-exp.y: New file.
6837 * d-lang.h (d_parse): New declaration.
6838 (d_error): New declaration.
6839 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6840 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6841 PREC_ORDER operators.
6842 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6843
78c164b0
YQ
68442014-06-19 Yao Qi <yao@codesourcery.com>
6845
6846 * gdbthread.h (any_running): Remove the declaration.
6847 * thread.c (any_running): Remove.
6848
f6e29b6e
YQ
68492014-06-19 Yao Qi <yao@codesourcery.com>
6850
6851 * gdbthread.h (struct thread_info) <state>: Change its type to
6852 'enum thread_state'. Update comments.
6853
034f788c
PA
68542014-06-19 Pedro Alves <palves@redhat.com>
6855
6856 * gdbthread.h (ALL_THREADS): Delete.
6857 (ALL_NON_EXITED_THREADS): New macro.
6858 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6859 instead of ALL_THREADS.
6860 * infrun.c (find_thread_needs_step_over)
6861 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6862 instead of ALL_THREADS.
6863 * record-btrace.c (record_btrace_open)
6864 (record_btrace_stop_recording, record_btrace_close)
6865 (record_btrace_is_replaying, record_btrace_resume)
6866 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6867 * remote.c (append_pending_thread_resumptions): Likewise.
6868 * thread.c (thread_apply_all_command): Likewise.
6869
46e33252
GB
68702014-06-19 Gary Benson <gbenson@redhat.com>
6871
6872 * i386-nat.c (i386_stopped_by_watchpoint):
6873 Use i386_dr_stopped_by_watchpoint.
6874 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6875 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6876
3a8ee006
GB
68772014-06-19 Gary Benson <gbenson@redhat.com>
6878
6879 * nat/i386-dregs.c: New file.
6880 * Makefile.in (i386-dregs.o): New rule.
6881 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6882 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6883 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6884 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6885 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6886 * config/i386/go32.mh (NATDEPFILES): Likewise.
6887 * config/i386/linux.mh (NATDEPFILES): Likewise.
6888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6889 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6890 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6891 * i386-nat.h (debug_hw_points): New declaration.
6892 * i386-nat.c (breakpoint.h): Remove include.
6893 (command.h): Likewise.
6894 (target.h): Likewise.
6895 (gdb_assert.h): Likewise.
6896 (debug_hw_points): Made nonstatic.
6897 (debug_printf): Now in i386-dregs.c.
6898 (TARGET_HAS_DR_LEN_8): Likewise.
6899 (DR_CONTROL_SHIFT): Likewise.
6900 (DR_CONTROL_SIZE): Likewise.
6901 (DR_RW_EXECUTE): Likewise.
6902 (DR_RW_WRITE): Likewise.
6903 (DR_RW_READ): Likewise.
6904 (DR_RW_IORW): Likewise.
6905 (DR_LEN_1): Likewise.
6906 (DR_LEN_2): Likewise.
6907 (DR_LEN_4): Likewise.
6908 (DR_LEN_8): Likewise.
6909 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6910 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6911 (DR_ENABLE_SIZE): Likewise.
6912 (DR_LOCAL_SLOWDOWN): Likewise.
6913 (DR_GLOBAL_SLOWDOWN): Likewise.
6914 (DR_CONTROL_RESERVED): Likewise.
6915 (I386_DR_CONTROL_MASK): Likewise.
6916 (I386_DR_VACANT): Likewise.
6917 (I386_DR_LOCAL_ENABLE): Likewise.
6918 (I386_DR_GLOBAL_ENABLE): Likewise.
6919 (I386_DR_DISABLE): Likewise.
6920 (I386_DR_SET_RW_LEN): Likewise.
6921 (I386_DR_GET_RW_LEN): Likewise.
6922 (I386_DR_WATCH_HIT): Likewise.
6923 (i386_wp_op_t): Likewise.
6924 (i386_show_dr): Likewise.
6925 (i386_length_and_rw_bits): Likewise.
6926 (i386_insert_aligned_watchpoint): Likewise.
6927 (i386_remove_aligned_watchpoint): Likewise.
6928 (i386_handle_nonaligned_watchpoint): Likewise.
6929 (i386_update_inferior_debug_regs): Likewise.
6930 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6931 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6932 (i386_region_ok_for_watchpoint):
6933 Use i386_dr_region_ok_for_watchpoint.
6934 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6935
322a8e06
GB
69362014-06-19 Gary Benson <gbenson@redhat.com>
6937
6938 * i386-nat.c (i386_insert_hw_breakpoint): Use
6939 i386_insert_watchpoint.
6940 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6941
8f26655c
GB
69422014-06-19 Gary Benson <gbenson@redhat.com>
6943
6944 * i386-nat.c (i386_dr_show): Renamed to
6945 i386_show_dr and made static. All uses updated.
6946 (i386_dr_length_and_rw_bits): Renamed to
6947 i386_length_and_rw_bits and made static.
6948 All uses updated.
6949 (i386_dr_insert_aligned_watchpoint): Renamed to
6950 i386_insert_aligned_watchpoint and made static.
6951 All uses updated.
6952 (i386_dr_remove_aligned_watchpoint): Renamed to
6953 i386_remove_aligned_watchpoint and made static.
6954 All uses updated.
6955 (i386_dr_update_inferior_debug_regs): Renamed to
6956 i386_update_inferior_debug_regs and made static.
6957 All uses updated.
6958 * nat/i386-dregs.h (i386_dr_show): Removed.
6959 (i386_dr_length_and_rw_bits): Likewise.
6960 (i386_dr_insert_aligned_watchpoint): Likewise.
6961 (i386_dr_remove_aligned_watchpoint): Likewise.
6962 (i386_dr_update_inferior_debug_regs): Likewise.
6963
992c7d70
GB
69642014-06-19 Gary Benson <gbenson@redhat.com>
6965
6966 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6967 * configure: Regenerate.
6968 * config.in: Likewise.
6969 * main.c (signal.h): New include.
6970 (setup_alternate_signal_stack): New function.
6971 (captured_main): Call the above.
6972 * cp-support.c (signal.h): New include.
6973 (catch_demangler_crashes): New flag.
6974 (SIGJMP_BUF): New define.
6975 (SIGSETJMP): Likewise.
6976 (SIGLONGJMP): Likewise.
6977 (gdb_demangle_jmp_buf): New static global.
6978 (gdb_demangle_attempt_core_dump): Likewise.
6979 (gdb_demangle_signal_handler): New function.
6980 (gdb_demangle): If catch_demangler_crashes is set, install the
6981 above signal handler before calling bfd_demangle, and restore
6982 the original signal handler afterwards. Display the offending
6983 symbol and call demangler_warning the first time a segmentation
6984 fault is caught.
6985 (_initialize_cp_support): New maint set/show command.
6986
eae7090b
GB
69872014-06-19 Gary Benson <gbenson@redhat.com>
6988
6989 * utils.h (resource_limit_kind): New enum.
6990 (can_dump_core): New declaration.
6991 (warn_cant_dump_core): Likewise.
6992 (dump_core): Likewise.
6993 * utils.c (dump_core): Made nonstatic. Added new
6994 parameter "limit_kind".
6995 (can_dump_core): Made nonstatic. Moved printing code to...
6996 (warn_cant_dump_core): New function.
6997 (can_dump_core_warn): Likewise.
6998 (internal_vproblem): Replace calls to can_dump_core with
6999 calls to can_dump_core_warn. Supply new argument to each.
7000
57fcfb1b
GB
70012014-06-19 Gary Benson <gbenson@redhat.com>
7002
7003 * utils.h (demangler_vwarning): New declaration.
7004 (demangler_warning): Likewise.
7005 * utils.c (struct internal_problem)
7006 <user_settable_should_quit>: New field.
7007 <user_settable_should_dump_core>: Likewise
7008 (internal_error_problem): Add values for above new fields.
7009 (internal_warning_problem): Likewise.
7010 (demangler_warning_problem): New static global.
7011 (demangler_vwarning): New function.
7012 (demangler_warning): Likewise.
7013 (add_internal_problem_command): Selectively add commands.
7014 (_initialize_utils): New internal problem command.
7015 * maint.c (maintenance_demangler_warning): New function.
7016 (_initialize_maint_cmds): New command.
7017
17a40b44
TT
70182014-06-18 Tom Tromey <tromey@redhat.com>
7019
7020 * f-valprint.c (info_common_command_for_block): Update.
7021 * symtab.h (struct general_symbol_info) <common_block>: Now
7022 const.
7023
346d1dfe
TT
70242014-06-18 Tom Tromey <tromey@redhat.com>
7025
7026 * symtab.h (struct symtab) <blockvector>: Now const.
7027 * ada-lang.c (ada_add_global_exceptions): Update.
7028 * buildsym.c (augment_type_symtab): Update.
7029 * dwarf2read.c (dw2_lookup_symbol): Update.
7030 * jit.c (finalize_symtab): Update.
7031 * jv-lang.c (add_class_symtab_symbol): Update.
7032 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7033 Update.
7034 * objfiles.c (objfile_relocate1): Update.
7035 * psymtab.c (lookup_symbol_aux_psymtabs)
7036 (maintenance_check_psymtabs): Update.
7037 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7038 Update.
7039 * spu-tdep.c (spu_catch_start): Update.
7040 * symmisc.c (dump_symtab_1): Update.
7041 * symtab.c (lookup_global_symbol_from_objfile)
7042 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7043 (basic_lookup_transparent_type_quick)
7044 (basic_lookup_transparent_type, find_pc_sect_symtab)
7045 (find_pc_sect_line, search_symbols): Update.
7046 * block.c (find_block_in_blockvector): Make "bl" const.
7047 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7048 const.
7049 (blockvector_contains_pc): Make "bv" const.
7050 (block_for_pc_sect): Update.
7051 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7052 (blockvector_contains_pc): Update.
7053 * breakpoint.c (resolve_sal_pc): Update.
7054 * inline-frame.c (block_starting_point_at): Update.
7055
1834676b
TT
70562014-06-18 Tom Tromey <tromey@redhat.com>
7057
7058 * completer.c (complete_line): Make "line_buffer" const.
7059 * completer.h (complete_line): Update.
7060
ac1a991b
TT
70612014-06-18 Tom Tromey <tromey@redhat.com>
7062
7063 * symtab.c (add_macro_name): Remove unneeded cast.
7064
5bc98e52
TT
70652014-06-18 Tom Tromey <tromey@redhat.com>
7066
7067 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7068 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7069
8236def8
TT
70702014-06-18 Tom Tromey <tromey@redhat.com>
7071
7072 * probe.c (info_probes_for_ops): Make "arg" const.
7073 * probe.h (info_probes_for_ops): Update.
7074
3977b71f
TT
70752014-06-18 Tom Tromey <tromey@redhat.com>
7076
7077 * varobj.c (varobj_create): Update.
7078 * valops.c (value_of_this): Update.
7079 * tracepoint.c (add_local_symbols, scope_info): Update.
7080 * symtab.h (struct general_symbol_info) <block>: Now const.
7081 * symtab.c (skip_prologue_sal)
7082 (default_make_symbol_completion_list_break_on)
7083 (skip_prologue_using_sal): Update.
7084 * stack.h (iterate_over_block_locals)
7085 (iterate_over_block_local_vars): Update.
7086 * stack.c (print_frame_args): Update.
7087 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7088 parameter const.
7089 (get_selected_block): Make return type const.
7090 * python/py-frame.c (frapy_block): Update.
7091 * python/py-block.c (gdbpy_block_for_pc): Update.
7092 * p-exp.y (%union) <bval>: Now const.
7093 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7094 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7095 * m2-exp.y (%union) <bval>: Now const.
7096 * linespec.c (get_current_search_block): Make return type const.
7097 (create_sals_line_offset, find_label_symbols): Update.
7098 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7099 Update.
7100 (block_starting_point_at): Make "block" const.
7101 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7102 (check_exception_resume): Update.
7103 * guile/scm-frame.c (gdbscm_frame_block): Update.
7104 * guile/scm-block.c (gdbscm_lookup_block): Update.
7105 * frame.h (get_frame_block): Update.
7106 (get_selected_block): Make return type const.
7107 * frame.c (frame_id_inner): Update.
7108 * f-valprint.c (info_common_command_for_block)
7109 (info_common_command): Update.
7110 * dwarf2loc.c (dwarf2_find_location_expression)
7111 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7112 (locexpr_describe_location_piece): Update.
7113 * c-exp.y (%union) <bval>: Now const.
7114 * breakpoint.c (resolve_sal_pc): Update.
7115 * blockframe.c (get_frame_block):Make return type const.
7116 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7117 (block_innermost_frame): Update.
7118 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7119 (block_for_pc, block_for_pc_sect): Update.
7120 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7121 'pblock' const.
7122 (block_for_pc_sect, block_for_pc): Make return type const.
7123 * ax-gdb.c (gen_expr): Update.
7124 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7125 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7126 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7127 (ada_read_var_value): Update.
7128 * ada-exp.y (struct name_info) <block>: Now const.
7129 (%union): Likewise.
7130 (block_lookup): Constify.
7131
b9228891
GB
71322014-06-18 Gary Benson <gbenson@redhat.com>
7133
7134 * nat/i386-dregs.h: New file.
7135 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7136 * i386-nat.h (i386-dregs.h): New include.
7137 (DR_FIRSTADDR): Now in i386-dregs.h.
7138 (DR_LASTADDR): Likewise.
7139 (DR_NADDR): Likewise.
7140 (DR_STATUS): Likewise.
7141 (DR_CONTROL): Likewise.
7142 (i386_debug_reg_state): Likewise.
7143 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7144
a1aa2221
LM
71452014-06-18 Don Breazeal <donb@codesourcery.com>
7146
7147 * breakpoint.c (set_longjmp_breakpoint): Call
7148 momentary_breakpoint_from_master with additional argument.
7149 (set_longjmp_breakpoint_for_call_dummy): Call
7150 momentary_breakpoint_from_master with additional argument.
7151 (set_std_terminate_breakpoint): Call
7152 momentary_breakpoint_from_master with additional argument.
7153 (momentary_breakpoint_from_master): Add argument to function
7154 definition and use it to initialize structure member flag.
74228e77 7155 (clone_momentary_breakpoint): Call
a1aa2221
LM
7156 momentary_breakpoint_from_master with additional argument.
7157 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7158 member flags set in momentary_breakpoint_from_master.
7159
4be83cc2
GB
71602014-06-18 Gary Benson <gbenson@redhat.com>
7161
7162 * i386-nat.c (i386_show_dr): Renamed to
7163 i386_dr_show and made nonstatic. All uses updated.
7164 (i386_length_and_rw_bits): Renamed to
7165 i386_dr_length_and_rw_bits and made nonstatic.
7166 All uses updated.
7167 (i386_insert_aligned_watchpoint): Renamed to
7168 i386_dr_insert_aligned_watchpoint and made nonstatic.
7169 All uses updated.
7170 (i386_remove_aligned_watchpoint): Renamed to
7171 i386_dr_remove_aligned_watchpoint and made nonstatic.
7172 All uses updated.
7173 (i386_update_inferior_debug_regs): Renamed to
7174 i386_dr_update_inferior_debug_regs and made nonstatic.
7175 All uses updated.
7176
131aa0d4
GB
71772014-06-18 Gary Benson <gbenson@redhat.com>
7178
7179 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7180 (i386_dr_low_can_set_control): Likewise.
7181 (i386_dr_low_set_addr): Likewise.
7182 (i386_dr_low_set_control): Likewise.
7183 (i386_dr_low_get_addr): Likewise.
7184 (i386_dr_low_get_status): Likewise.
7185 (i386_dr_low_get_control): Likewise.
7186 (i386_insert_aligned_watchpoint): Use new macros.
7187 (i386_update_inferior_debug_regs): Likewise.
7188 (i386_stopped_data_address): Likewise.
7189
d9305f7f
GB
71902014-06-18 Gary Benson <gbenson@redhat.com>
7191
7192 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7193 New parameter. All uses updated.
7194
ea008da4
GB
71952014-06-18 Gary Benson <gbenson@redhat.com>
7196
7197 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7198 All uses updated.
7199
1b6d4134
GB
72002014-06-18 Gary Benson <gbenson@redhat.com>
7201
7202 * i386-nat.c (debug_printf): New macro.
7203 (i386_get_debug_register_length): Likewise.
7204 (TARGET_HAS_DR_LEN_8): Use above macro.
7205 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7206 and printf_unfiltered. Use phex to format values.
7207
9b4550ef
GB
72082014-06-18 Gary Benson <gbenson@redhat.com>
7209
7210 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7211 Make const.
7212
6e62758f
GB
72132014-06-18 Gary Benson <gbenson@redhat.com>
7214
7215 * i386-nat.c: Comment changes.
7216
51c79e94
GB
72172014-06-18 Gary Benson <gbenson@redhat.com>
7218
7219 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7220
3e11889a
GB
72212014-06-18 Gary Benson <gbenson@redhat.com>
7222
7223 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7224 (i386_insert_aligned_watchpoint): Likewise.
7225 (i386_remove_aligned_watchpoint): Likewise.
7226 (i386_handle_nonaligned_watchpoint): Likewise.
7227
fc6e2f03
GB
72282014-06-18 Gary Benson <gbenson@redhat.com>
7229
7230 * i386-nat.c: Whitespace changes.
7231
2afe7d50
SB
72322014-06-17 Samuel Bronson <naesten@gmail.com>
7233
7234 * MAINTAINERS: Update Roland McGrath's email address.
7235 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7236 Red Hat a while ago, and giving me a current address.
2afe7d50 7237
3bca49ee
TT
72382014-06-17 Tom Tromey <tromey@redhat.com>
7239
7240 * utils.h (savestring): Remove declaration.
7241
6e366df1
TT
72422014-06-17 Tom Tromey <tromey@redhat.com>
7243
7244 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7245
6be47f0c
KS
72462014-06-16 Keith Seitz <keiths@redhat.com>
7247
7248 PR mi/15863
7249 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7250 to update the varobj if inferior_ptid is null_ptid.
7251
7bc112c1
TT
72522014-06-16 Tom Tromey <tromey@redhat.com>
7253
7254 * target.h (struct target_ops) <to_info_proc>: Make parameter
7255 const.
7256 (target_info_proc): Update.
7257 * target.c (target_info_proc): Make "args" const.
7258 * procfs.c (procfs_info_proc): Update.
7259 * linux-tdep.c (linux_info_proc): Update.
7260 (linux_core_info_proc_mappings): Make "args" const.
7261 (linux_core_info_proc): Update.
7262 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7263 * gdbarch.c: Rebuild.
7264 * gdbarch.h: Rebuild.
7265 * corelow.c (core_info_proc): Update.
7266
fee354ee
TT
72672014-06-16 Tom Tromey <tromey@redhat.com>
7268
7269 * target.h (struct target_ops) <to_disconnect>: Make parameter
7270 const.
7271 (target_disconnect): Update.
7272 * target.c (target_disconnect): Make "args" const.
7273 * target-delegates.c: Rebuild.
7274 * remote.c (remote_disconnect): Update.
7275 * record.h (record_disconnect): Update.
7276 * record.c (record_disconnect): Update.
7277 * inf-child.c (inf_child_disconnect): Update.
7278
a30bf1f1
TT
72792014-06-16 Tom Tromey <tromey@redhat.com>
7280
7281 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7282 * target.c (debug_to_rcmd, default_rcmd): Update.
7283 * target-delegates.c: Rebuild.
7284 * remote.c (remote_rcmd): Update.
7285 * monitor.c (monitor_rcmd): Update.
7286
d03de421
PA
72872014-06-16 Pedro Alves <palves@redhat.com>
7288
7289 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7290 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7291 have OBJF_SHARED set.
7292 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7293 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7294 instead of OBJF_USERLOADED.
7295 * objfiles.h (OBJF_SHARED): Update comment.
7296 (userloaded_objfile_contains_address_p): Rename to ...
7297 (shared_objfile_contains_address_p): ... this, and update
7298 comments.
7299 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7300 new objfile.
7301 (remove_symbol_file_command): Skip objfiles that don't have
7302 OBJF_SHARED set.
7303
99f4262f
TT
73042014-06-16 Tom Tromey <tromey@redhat.com>
7305
7306 * minsyms.h (prim_record_minimal_symbol)
7307 (prim_record_minimal_symbol_and_info): Update comments.
7308
97d66cc6
EZ
73092014-06-14 Eli Zaretskii <eliz@gnu.org>
7310
7311 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7312 or --without-guile, according to how GDB was built.
7313
635c7e8a
TT
73142014-06-13 Tom Tromey <tromey@redhat.com>
7315
7316 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7317 to help_list.
7318 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7319 to help_list.
7320 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7321 help_list.
7322 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7323 help_list.Pass all_commands, not -1, to help_list.
7324 * cli/cli-dump.c (dump_command, append_command)
7325 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7326 (binary_dump_command, binary_append_command): Pass all_commands,
7327 not -1, to help_list.
7328 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7329 -1, to help_list.
7330 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7331 -1, to help_list.
7332 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7333 help_list.
7334 * top.c (set_history): Pass all_commands, not -1, to help_list.
7335 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7336 all_commands, not -1, to help_list.
7337 * symfile.c (overlay_command): Pass all_commands, not -1, to
7338 help_list.
7339 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7340 help_list.
7341 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7342 help_list.
7343 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7344 -1, to help_list.
7345 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7346 not -1, to help_list.
7347 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7348 not -1, to help_list.
7349 * maint.c (maintenance_command, maintenance_info_command)
7350 (maintenance_print_command, maintenance_set_cmd): Pass
7351 all_commands, not -1, to help_list.
7352 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7353 help_list.
7354 * language.c (set_check): Pass all_commands, not -1, to help_list.
7355 * infcmd.c (unset_command): Pass all_commands, not -1, to
7356 help_list.
7357 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7358 help_list.
7359 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7360 help_list.
7361 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7362 help_list.
7363 * breakpoint.c (save_command): Pass all_commands, not -1, to
7364 help_list.
7365 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7366 all_commands, not -1, to help_list.
7367
b94ade42
PL
73682014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7369
7370 * regcache.c (struct register_to_invalidate): New structure.
7371 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7372 functions.
7373 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7374
31f628ae
YQ
73752014-06-12 Yao Qi <yao@codesourcery.com>
7376
7377 * varobj.c (varobj_get_num_children): Call
7378 varobj_is_dynamic_p.
7379 (varobj_list_children): Likewise.
7380 (varobj_update): Likewise. Update comments.
7381
cde5ef40
YQ
73822014-06-12 Yao Qi <yao@codesourcery.com>
7383
7384 * varobj.c (varobj_pretty_printed_p): Rename to ...
7385 (varobj_is_dynamic_p): ... this. New function.
7386 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7387 (varobj_is_dynamic_p): Declare.
7388 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7389 (mi_print_value_p, varobj_update_one): Likewise.
7390
576ea091
YQ
73912014-06-12 Pedro Alves <pedro@codesourcery.com>
7392 Yao Qi <yao@codesourcery.com>
7393
7394 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7395 (varobj_get_iterator): Wrap up code for pretty-printer by
7396 "#if HAVE_PYTHON" and "#endif".
7397 (update_dynamic_varobj_children): Likewise.
7398
827f100c
YQ
73992014-06-12 Pedro Alves <pedro@codesourcery.com>
7400 Yao Qi <yao@codesourcery.com>
7401
7402 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7403 gdb_python_initialized is false. Move some code from varobj.c.
7404 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7405 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7406 (struct varobj_item): Moved to varobj-iter.h".
7407 (varobj_clear_saved_item): New function.
7408 (update_dynamic_varobj_children): Move python-related code to
7409 py-varobj.c.
7410 (free_variable): Call varobj_clear_saved_item and
7411 varobj_iter_delete.
7412
e5250216
YQ
74132014-06-12 Pedro Alves <pedro@codesourcery.com>
7414 Yao Qi <yao@codesourcery.com>
7415
7416 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7417 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7418 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7419 (py-varobj.o): New rule.
7420 * python/py-varobj.c: New file.
7421 * python/python-internal.h (py_varobj_get_iterator): Declare.
7422 * varobj-iter.h: New file.
7423 * varobj.c: Include "varobj-iter.h"
7424 (struct varobj) <child_iter>: Change its type from "PyObject *"
7425 to "struct varobj_iter *".
7426 <saved_item>: Likewise.
7427 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7428 [HAVE_PYTHON] (varobj_get_iterator): New function.
7429 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7430 python-specific code to python/py-varobj.c.
7431 (install_visualizer): Call varobj_iter_delete instead of
7432 Py_XDECREF.
7433 * varobj.h (varobj_ensure_python_env): Declare.
7434
5a2e0d6e
YQ
74352014-06-12 Yao Qi <yao@codesourcery.com>
7436
7437 * varobj.c (struct varobj_item): New structure.
7438 (create_child_with_value): Update declaration.
7439 (varobj_add_child): Replace arguments 'name' and 'value' with
7440 'item'. All callers updated.
7441 (install_dynamic_child): Likewise.
7442 (update_dynamic_varobj_children): Likewise.
7443 (varobj_add_child): Likewise.
7444 (create_child_with_value): Likewise.
7445
919b9a93
JB
74462014-06-11 Joel Brobecker <brobecker@adacore.com>
7447
7448 * NEWS: Create a new section for the next release branch.
7449 Rename the section of the current branch, now that it has
7450 been cut.
7451
71a55bdf
JB
74522014-06-11 Joel Brobecker <brobecker@adacore.com>
7453
7454 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7455 * version.in: Bump version to 7.8.50.DATE-cvs.
7456
364fe1f7
PA
74572014-06-11 Pedro Alves <palves@redhat.com>
7458
7459 PR remote/17028
7460 * ser-mingw.c (net_windows_socket_check_pending): New function.
7461 (net_windows_select_thread): Ignore spurious wakeups. Use
7462 net_windows_socket_check_pending.
7463 (net_windows_wait_handle): Check for pending events with
7464 ioctlsocket, through net_windows_socket_check_pending, instead of
7465 checking the socket's event.
7466
5a6c7709
SC
74672014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7468
7469 * python/python-internal.h (gdb_PyObject_GetAttrString)
7470 (gdb_PyObject_HasAttrString): New inline function definitions.
7471 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7472 char * of the second argument to PyObject_GetAttrString.
74228e77 7473
0e58ee40
JB
74742014-06-10 Joel Brobecker <brobecker@adacore.com>
7475
7476 * serial.c (serial_write): Fix index of character to be printed
7477 in call to serial_logchar when serial debug traces are enabled.
7478
d190df30
JB
74792014-06-10 Joel Brobecker <brobecker@adacore.com>
7480
7481 * gdbtypes (resolve_dynamic_range): Add function description.
7482
b4b01d36
PA
74832014-06-09 Pedro Alves <palves@redhat.com>
7484
7485 * linux-nat.c (linux_child_follow_fork): Initialize status with
7486 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7487 inner block. Only pass the signal to PTRACE_DETACH if in pass
7488 state.
7489
3657956b
GB
74902014-06-09 Gary Benson <gbenson@redhat.com>
7491
7492 * common/signals.c (gdb_signal_from_host): Reorder to separate
7493 the always-available ANSI-standard signals from the signals that
7494 require checking.
7495 (do_gdb_signal_to_host): Likewise.
7496 * proc-events.c (signal_table): Likewise.
7497
c077881a
HZ
74982014-06-08 Hui Zhu <hui@codesourcery.com>
7499
7500 * common/linux-ptrace.c (linux_disable_event_reporting): New
7501 function.
7502 * common/linux-ptrace.h (linux_disable_event_reporting): New
7503 declaration.
7504 * linux-nat.c (linux_child_follow_fork): Do a single step before
7505 detach.
7506
4186eb54
KS
75072014-06-07 Keith Seitz <keiths@redhat.com>
7508
7509 Revert:
7510 PR c++/16253
7511 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7512 from symbol_matches_domain in symtab.c. All local callers
7513 of symbol_matches_domain updated.
7514 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7515 search STRUCT_DOMAIN.
7516 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7517 independently. standard_lookup will do that automatically.
7518 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7520 (cp_lookup_symbol_in_namespace): Likewise.
7521 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7522 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7523 may return a STRUCT_DOMAIN match.
7524 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7525 * cp-support.c: Include language.h.
7526 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7527 VAR_DOMAIN.
7528 * psymtab.c (match_partial_symbol): Compare the requested
7529 domain with the symbol's domain directly.
7530 (lookup_partial_symbol): Likewise.
7531 * symtab.c (lookup_symbol_in_language): Explain when/why
7532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7533 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7534 appropriate languages.
7535 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7536 and moved to ada-lang.c
7537 (lookup_block_symbol): Explain that this function only returns
7538 symbol matching the requested DOMAIN.
7539 Compare the requested domain with the symbol's domain directly.
7540 (iterate_over_symbols): Compare the requested domain with the
7541 symbol's domain directly.
7542 * symtab.h (symbol_matches_domain): Remove.
7543
25326a28 75442014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7545
7546 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7547 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7548 (gdbscm_guile_version_is_at_least): Declare.
7549 (gdbscm_scm_string_to_int): Declare.
7550 * guile/guile.c (gdbscm_guile_major_version): New global.
7551 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7552 (guile_datadir): New static global.
7553 (gdbscm_guile_data_directory): New function.
7554 (initialize_scheme_side): Update.
7555 (misc_guile_functions): Add guile-data-directory.
7556 (initialize_gdb_module): Fetch guile version number.
7557 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7558 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7559 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7560 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7561 comments.
7562 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7563 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7564 * guile/scm-value.c (gdbscm_value_to_string): Only call
7565 scm_port_conversion_strategy if Guile version >= 2.0.6.
7566
0a770bb2 75672014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7568
7569 * main.c (print_gdb_help): Add -q and --silent.
7570
73ba372c
GB
75712014-06-06 Gary Benson <gbenson@redhat.com>
7572
7573 * common/signals.c: Remove preprocessor conditionals for
7574 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7575 SIGSEGV and SIGTERM.
7576 * proc-events.c: Likewise.
7577
c33b2f12
MM
75782014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7579
7580 * symfile.c (symfile_free_objfile): Remove restriction to
7581 OBJF_USERLOADED.
7582 * symfile-mem.c (symbol_file_add_from_memory): Call
7583 add_target_sections_of_objfile.
7584
fb934770
LC
75852014-06-05 Ludovic Courtès <ludo@gnu.org>
7586
7587 * guile/scm-value.c (gdbscm_history_append_x): Use
7588 'vlscm_get_value_smob_arg_unsafe' instead of
7589 'vlscm_scm_to_value'.
7590
6ef284bd
SM
75912014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7592
7593 PR mi/15806
7594 * utils.c (printchar): Don't escape at all if quoter is NUL.
7595 Update function documentation to clarify effect of parameter
7596 QUOTER.
7597 * remote.c (escape_buffer): Pass '\\' as the quoter to
7598 fputstrn_unfiltered.
7599 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7600 generate the output.
7601 (mi_solib_unloaded): Same.
7602
270c9937
JB
76032014-06-05 Joel Brobecker <brobecker@adacore.com>
7604
7605 * development.sh: Delete.
7606 * Makefile.in (config.status): Adjust dependency on development.sh.
7607 * configure.ac: Adjust development.sh source call.
7608 * configure: Regenerate.
7609
16f691fb
DE
76102014-06-04 Doug Evans <xdje42@gmail.com>
7611
7612 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7613 is_scheme_bkpt, spec.
7614 (bpscm_make_breakpoint_smob): Initialize new members.
7615 (gdbscm_create_breakpoint_x): Split into two ...
7616 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7617 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7618 (scheme_function breakpoint_functions): Update.
7619 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7620 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7621 register-breakpoint!.
7622
ef7cab6b
JB
76232014-06-04 Joel Brobecker <brobecker@adacorer.com>
7624
7625 PR server/17023
7626 * mem-break.c (z_type_supported): Return zero if
7627 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7628
012370f6
TT
76292014-06-04 Tom Tromey <tromey@redhat.com>
7630
7631 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7632 value_from_contents_and_address_unresolved.
7633 (ada_template_to_fixed_record_type_1): Likewise.
7634 (ada_which_variant_applies): Likewise.
7635 * value.h (value_from_contents_and_address_unresolved): Declare.
7636 * value.c (value_from_contents_and_address_unresolved): New
7637 function.
7638 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7639 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7640 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7641
92e2a17f
TT
76422014-06-04 Tom Tromey <tromey@redhat.com>
7643
7644 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7645
c0939df1
TT
76462014-06-04 Tom Tromey <tromey@redhat.com>
7647
7648 * procfs.c (procfs_attach): Make "args" const.
7649 * windows-nat.c (windows_attach): Make "args" const.
7650 * nto-procfs.c (procfs_attach): Make "args" const.
7651 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7652 * go32-nat.c (go32_attach): Make "args" const.
7653 * gnu-nat.c (gnu_attach): Make "args" const.
7654 * darwin-nat.c (darwin_attach): Make "args" const.
7655 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7656 * linux-nat.c (linux_nat_attach): Make "args" const.
7657 * remote.c (extended_remote_attach_1, extended_remote_attach):
7658 Make "args" const.
7659 * target.h (struct target_ops) <to_attach>: Make "args" const.
7660 (find_default_attach): Likewise.
7661 * utils.c (parse_pid_to_attach): Make "args" const.
7662 * utils.h (parse_pid_to_attach): Update.
7663
8eaff7cd
TT
76642014-06-04 Tom Tromey <tromey@redhat.com>
7665
7666 * target-delegates.c: Rebuild.
7667 * target.c (default_thread_address_space): New function.
7668 (target_thread_address_space): Simplify.
7669 * target.h (struct target_ops) <to_thread_address_space>: Add
7670 TARGET_DEFAULT_FUNC.
7671
1913f160
DE
76722014-06-04 Doug Evans <xdje42@gmail.com>
7673
7674 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7675
70ad5bff
MM
76762014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7677
7678 * record-btrace.c: Include event-loop.h and inf-loop.h.
7679 (record_btrace_resume_exec_dir)
7680 (record_btrace_async_inferior_event_handler)
7681 (record_btrace_handle_async_inferior_event): New.
7682 (record_btrace_open): Create async event handler.
7683 (record_btrace_close): Delete async event handler.
7684 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7685 Mark async event handler.
7686 (record_btrace_execution_direction): New.
7687 (init_record_btrace_ops): Initialize to_execution_direction.
7688
b6210538
DE
76892014-06-03 Doug Evans <xdje42@gmail.com>
7690
7691 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7692 (gdbscm_make_parameter): Ditto.
7693
a5b1fd27
DE
76942014-06-03 Doug Evans <dje@google.com>
7695
7696 * exec.c (exec_close_1): Call clear_section_table instead of
7697 resize_section_table.
7698 (clear_section_table): New function.
7699 (resize_section_table): Make static. Rename arg num_added to
7700 adjustment.
7701 * exec.h (clear_section_table): Declare.
7702 (resize_section_table): Delete.
7703 * progspace.c (release_program_space): Call clear_section_table
7704 instead of resize_section_table.
7705
0c6e92a5
SC
77062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7707
7708 * NEWS (Python Scripting): Add entry about the new xmethods
7709 feature.
7710
883964a7
SC
77112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7712
7713 * python/py-xmethods.c: New file.
7714 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7715 (objfpy_dealloc): XDECREF on the new xmethods field.
7716 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7717 field.
7718 (objfpy_get_xmethods): New function.
7719 (objfile_getset): New entry 'xmethods'.
7720 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7721 (pspy_dealloc): XDECREF on the new xmethods field.
7722 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7723 field.
7724 (pspy_get_xmethods): New function.
7725 (pspace_getset): New entry 'xmethods'.
7726 * python/python-internal.h: Add declarations for new functions.
7727 * python/python.c (_initialize_python): Invoke
7728 gdbpy_initialize_xmethods.
7729 * python/lib/gdb/__init__.py (xmethods): New
7730 attribute.
7731 * python/lib/gdb/xmethod.py: New file.
7732 * python/lib/gdb/command/xmethods.py: New file.
7733
58992dc5
SC
77342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7735
7736 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7737 best match method returned by find_overload_match is an xmethod.
7738 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7739 the best matching operator returned by find_overload_match is an
7740 xmethod.
7741 * valops.c: #include "extension.h".
7742 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7743 Return void. The list of matching source methods is returned in
7744 "fn_list" and a vector of matching debug method workers is
7745 returned in "xm_worker_vec". Update all callers.
7746 (value_find_oload_method_list): Likewise.
7747 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7748 non-NULL, then the index of the best matching method in this
7749 vector is returned. Update all callers.
7750 (find_overload_match): Include xmethods while performing overload
7751 resolution.
7752
e81e7f5e
SC
77532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7754
7755 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7756 * extension-priv.h (struct extension_language_ops): Add the
7757 xmethod interface.
7758 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7759 get_matching_xmethod_workers, get_xmethod_argtypes,
7760 invoke_xmethod, free_xmethod_worker,
7761 free_xmethod_worker_vec): New functions.
7762 * extension.h: #include "common/vec.h".
7763 New function declarations.
7764 (struct xmethod_worker): New struct.
7765 (VEC (xmethod_worker_ptr)): New vector type.
7766 (xmethod_worker_ptr): New typedef.
7767 (xmethod_worker_vec): Likewise.
7768 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7769 builtin_type.
7770 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7771 (struct builtin_type): New field "xmethod".
7772 * valarith.c (value_ptradd): Assert that the value argument is not
7773 lval_xcallable.
7774 * valops.c (value_must_coerce_to_target): Return 0 for
7775 lval_xcallable values.
7776 * value.c (struct value): New field XM_WORKER in the field
7777 LOCATION.
7778 (value_address, value_raw_address): Return 0 for lval_xcallable
7779 values.
7780 (set_value_address): Assert that the value is not an
7781 lval_xcallable.
7782 (value_free): Free the associated xmethod worker when freeing
7783 lval_xcallable values.
7784 (set_value_component_location): Assert that the WHOLE value is not
7785 lval_xcallable.
7786 (value_of_xmethod, call_xmethod): New functions.
7787 * value.h: Declare "struct xmethod_worker".
7788 Declare new functions value_of_xmethod, call_xmethod.
7789
ef370185
JB
77902014-06-03 Joel Brobecker <brobecker@adacore.com>
7791 Pedro Alves <palves@redhat.com>
7792
7793 PR breakpoints/17000
7794 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7795 New function, extracted from software_breakpoint_inserted_here_p.
7796 (software_breakpoint_inserted_here_p): Replace factored out code
7797 by call to find_non_raw_software_breakpoint_inserted_here.
7798 (bp_target_info_copy_insertion_state): New function.
7799 (bkpt_insert_location): Handle the case of a single-step
7800 breakpoint already inserted at the same address.
7801 (bkpt_remove_location): Handle the case of a single-step
7802 breakpoint still inserted at the same address.
7803 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7804 breakpoint already inserted at the same address.
7805 (deprecated_remove_raw_breakpoint): Handle the case of a
7806 non-raw breakpoint still inserted at the same address.
7807 (find_single_step_breakpoint): New function, extracted from
7808 single_step_breakpoint_inserted_here_p.
7809 (find_single_step_breakpoint): New function,
7810 factored out from single_step_breakpoint_inserted_here_p.
7811 (single_step_breakpoint_inserted_here_p): Reimplement.
7812
1e2ccb61
BM
78132014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7814
7815 Pushed by Joel Brobecker <brobecker@adacore.com>
7816 * source.c (show_substitute_path_command): Fix display of matching
7817 substitution rules.
7818
d3448d85
GB
78192014-06-03 Gary Benson <gbenson@redhat.com>
7820
7821 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7822
06eb1586
DE
78232014-06-02 Doug Evans <xdje42@gmail.com>
7824
7825 Add parameter support for Guile.
7826 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7827 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7828 (scm-param.o): New rule.
7829 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7830 (gdbscm_misc_error): Declare.
7831 (gdbscm_canonicalize_command_name): Declare.
7832 (gdbscm_scm_to_host_string): Declare.
7833 (gdbscm_scm_from_host_string): Declare.
7834 (gdbscm_initialize_parameters): Declare.
7835 * guile/guile.c (initialize_gdb_module): Call
7836 gdbscm_initialize_parameters.
7837 * guile/lib/gdb.scm: Export parameter symbols.
7838 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7839 cmdscm_canonicalize_name and made public. All callers updated.
7840 * guile/scm-exception.c (gdbscm_misc_error): New function.
7841 * guile/scm-param.c: New file.
7842 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7843 (gdbscm_scm_to_host_string): New function.
7844 (gdbscm_scm_from_host_string): New function.
7845 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7846
e698b8c4
DE
78472014-06-02 Doug Evans <xdje42@gmail.com>
7848
7849 Add command support for Guile.
7850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7851 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7852 (scm-cmd.o): New rule.
7853 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7854 (gdbscm_user_error_p): Declare.
7855 (gdbscm_parse_command_name): Declare.
7856 (gdbscm_valid_command_class_p): Declare.
7857 (gdbscm_initialize_commands): Declare.
7858 * guile/guile.c (initialize_gdb_module): Call
7859 gdbscm_initialize_commands.
7860 * guile/lib/gdb.scm: Export command symbols.
7861 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7862 (throw-user-error): New function.
7863 * guile/scm-cmd.c: New file.
7864 * guile/scm-exception.c (user_error_symbol): New static global.
7865 (gdbscm_user_error_p): New function.
7866 (gdbscm_initialize_exceptions): Set user_error_symbol.
7867 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7868
fb1f94b0
PM
78692014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7870
7871 * top.c (command_loop): Handle comments here...
7872 (command_line_input): ... not here.
7873
ded03782
DE
78742014-06-02 Doug Evans <xdje42@gmail.com>
7875
7876 Add progspace support for Guile.
7877 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7878 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7879 (scm-progspace.o): New rule.
7880 * guile/guile-internal.h (pspace_smob): New typedef.
7881 (psscm_pspace_smob_pretty_printers): Declare.
7882 (psscm_pspace_smob_from_pspace): Declare.
7883 (psscm_scm_from_pspace): Declare.
7884 * guile/guile.c (initialize_gdb_module): Call
7885 gdbscm_initialize_pspaces.
7886 * guile/lib/gdb.scm: Export progspace symbols.
7887 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7888 support.
7889 (append-pretty-printer!): Ditto.
7890 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7891 Implement.
7892 * guile/scm-progspace.c: New file.
7893
397998fc
AM
78942014-06-03 Alan Modra <amodra@gmail.com>
7895
7896 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7897 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7898
6aa5f3a6
DE
78992014-06-02 Doug Evans <dje@google.com>
7900
7901 Add support for skeletonless type units.
7902 * dwarf2read.c (struct dwarf2_per_objfile): New member
7903 n_allocated_type_units.
7904 (struct dwarf2_per_objfile) <tu_stats>: New member
7905 nr_all_type_units_reallocs.
7906 (create_signatured_type_table_from_index): Initialize
7907 n_allocated_type_units
7908 (create_all_type_units): Ditto.
7909 (add_type_unit): Move up in file. New arg slot.
7910 All callers updated. Increase space for all_type_units more
7911 efficiently.
7912 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7913 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7914 (lookup_dwp_signatured_type): Ditto.
7915 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7916 All callers updated.
7917 (build_type_psymtabs_1): Leave type_unit_groups as
7918 NULL if no TUs present.
7919 (print_tu_stats): New function.
7920 (process_skeletonless_type_unit): New function.
7921 (process_dwo_file_for_skeletonless_type_units): New
7922 function.
7923 (process_skeletonless_type_units): New function.
7924 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7925 Call print tu_stats if debugging enabled.
7926
41fac0cf
PA
79272014-06-02 Pedro Alves <palves@redhat.com>
7928
7929 * breakpoint.c (build_target_command_list): Don't build a command
7930 list if we have any duplicate location that isn't a dprintf.
7931
cd1608cc
PA
79322014-06-02 Pedro Alves <palves@redhat.com>
7933
7934 * breakpoint.c (dprintf_breakpoint_hit): New function.
7935 (initialize_breakpoint_ops): Install it as dprintf's
7936 breakpoint_hit method.
7937
486ef3b9
JB
79382014-06-02 Joel Brobecker <brobecker@adacore.com>
7939
7940 * source.c (substitute_path_rule_matches): Simplify using
7941 filename_ncmp instead of FILENAME_CMP.
7942
230cd560
JB
79432014-06-02 Joel Brobecker <brobecker@adacore.com>
7944
7945 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7946
16954d5d
LC
79472014-06-01 Ludovic Courtès <ludo@gnu.org>
7948
7949 * configure.ac: When Guile is available, check for the
7950 availability of 'scm_new_smob'.
7951 * configure, config.h.in: Regenerate.
7952 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7953 function.
7954
53e8a631
AB
79552014-05-30 Andrew Burgess <aburgess@broadcom.com>
7956
7957 * frame.c (struct frame_info): Add stop_string field.
7958 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7959 (get_prev_frame_always): Old content moved into
7960 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7961 TRY_CATCH, handle MEMORY_ERROR exceptions.
7962 (frame_stop_reason_string): New function definition.
7963 * frame.h (unwind_stop_reason_to_string): Extend comment to
7964 mention frame_stop_reason_string.
7965 (frame_stop_reason_string): New function declaration.
7966 * stack.c (frame_info): Switch to frame_stop_reason_string.
7967 (backtrace_command_1): Switch to frame_stop_reason_string.
7968 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7969 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7970 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7971
70e38b8e
AB
79722014-05-30 Andrew Burgess <aburgess@broadcom.com>
7973
7974 * frame.c (frame_stop_reason_string): Rename to ...
7975 (unwind_stop_reason_to_string): this.
7976 * frame.h (frame_stop_reason_string): Rename to ...
7977 (unwind_stop_reason_to_string): this.
7978 * stack.c (frame_info): Update call to frame_stop_reason_string.
7979 (backtrace_command_1): Likewise.
7980 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7981 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7982
938f0e2f
AB
79832014-05-30 Andrew Burgess <aburgess@broadcom.com>
7984
7985 * frame.c (remove_prev_frame): New function.
7986 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7987 remove_prev_frame.
7988
a09dd441
PA
79892014-05-29 Pedro Alves <palves@redhat.com>
7990
7991 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7992 and make it const. When a single-step decays to a continue,
7993 clear 'step', not 'hw_step'. Pass whether the caller wanted
7994 to step to user_visible_resume_ptid, not what we ask the
7995 target to do.
7996
bdc36728
PA
79972014-05-29 Pedro Alves <palves@redhat.com>
7998
7999 * infrun.c (process_event_stop_test, handle_step_into_function)
8000 (handle_step_into_function_backward): Adjust.
8001 Don't set the even thread's stop_step and call stop_waiting before
8002 calling end_stepping_range. Instead do that ...
8003 (end_stepping_range): ... here. Take an ecs pointer parameter.
8004
22bcd14b
PA
80052014-05-29 Pedro Alves <palves@redhat.com>
8006
8007 * infrun.c (stop_stepping): Rename to ...
8008 (stop_waiting): ... this.
8009 (proceed): Update comment.
8010 (process_event_stop_test, handle_inferior_event)
8011 (handle_signal_stop, handle_step_into_function)
8012 (handle_step_into_function_backward): Update.
8013
4ae57c05
PA
80142014-05-29 Pedro Alves <palves@redhat.com>
8015
8016 * infcall.c (run_inferior_call): Don't check whether the current
8017 thread is running after the proceed call.
8018
329ea579
PA
80192014-05-29 Pedro Alves <palves@redhat.com>
8020 Tom Tromey <tromey@redhat.com>
8021
8022 * NEWS: Mention "maint set target-async", "set mi-async", and that
8023 background execution commands are now always available.
8024 * target.h (target_async_permitted): Update comment.
8025 * target.c (target_async_permitted, target_async_permitted_1):
8026 Default to 1.
8027 (set_target_async_command): Rename to ...
8028 (maint_set_target_async_command): ... this.
8029 (show_target_async_command): Rename to ...
8030 (maint_show_target_async_command): ... this.
8031 (_initialize_target): Adjust.
8032 * infcmd.c (prepare_execution_command): Make extern.
8033 * inferior.h (prepare_execution_command): Declare.
8034 * infrun.c (set_observer_mode): Leave target async alone.
8035 * mi/mi-interp.c (mi_interpreter_init): Install
8036 mi_on_sync_execution_done as sync_execution_done observer.
8037 (mi_on_sync_execution_done): New function.
8038 (mi_execute_command_input_handler): Don't print the prompt if we
8039 just started a synchronous command with an async target.
8040 (mi_on_resume): Check sync_execution before printing prompt.
8041 * mi/mi-main.h (mi_async_p): Declare.
8042 * mi/mi-main.c: Include gdbcmd.h.
8043 (mi_async_p): New function.
8044 (mi_async, mi_async_1): New globals.
8045 (set_mi_async_command, show_mi_async_command, mi_async): New
8046 functions.
8047 (exec_continue): Call prepare_execution_command.
8048 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8049 (mi_execute_async_cli_command): Use mi_async_p.
8050 (_initialize_mi_main): Install "set mi-async". Make
8051 "target-async" a deprecated alias.
8052
92bcb5f9
PA
80532014-05-29 Pedro Alves <palves@redhat.com>
8054
8055 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8056 (_initialize_cli_interp): Adjust.
8057 * event-loop.c: Include "observer.h".
8058 (start_event_loop): Notify 'command_error' observers instead of
8059 calling display_gdb_prompt. Remove FIXME comment.
8060 * event-top.c (display_gdb_prompt): Remove call into the
8061 interpreters.
8062 * inf-loop.c: Include "observer.h".
8063 (inferior_event_handler): Notify 'command_error' observers instead
8064 of calling display_gdb_prompt.
8065 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8066 observers instead of calling display_gdb_prompt.
8067 * interps.c (interp_set): Don't call display_gdb_prompt.
8068 (current_interp_display_prompt_p): Delete.
8069 * interps.h (interp_prompt_p): Delete declaration.
8070 (interp_prompt_p_ftype): Delete.
8071 (struct interp_procs) <prompt_proc_p>: Delete field.
8072 (current_interp_display_prompt_p): Delete declaration.
8073 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8074 (_initialize_mi_interp): Adjust.
8075 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8076 'command_error' observers.
8077 (tui_on_sync_execution_done, tui_on_command_error): New
8078 functions.
8079 (tui_display_prompt_p): Delete.
8080 (_initialize_tui_interp): Adjust.
8081
fd664c91
PA
80822014-05-29 Pedro Alves <palves@redhat.com>
8083
8084 PR gdb/13860
8085 * cli/cli-interp.c: Include infrun.h and observer.h.
8086 (cli_uiout, cli_interp): New globals.
8087 (cli_on_signal_received, cli_on_end_stepping_range)
8088 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8089 functions.
8090 (cli_interpreter_init): Install them as 'end_stepping_range',
8091 'signal_received' 'signal_exited', 'exited' and 'no_history'
8092 observers.
8093 (_initialize_cli_interp): Remove cli_interp local.
8094 * infrun.c (handle_inferior_event): Call the several stop reason
8095 observers instead of printing the stop reason directly.
8096 (end_stepping_range): New function.
8097 (print_end_stepping_range_reason, print_signal_exited_reason)
8098 (print_exited_reason, print_signal_received_reason)
8099 (print_no_history_reason): Make static, and add an uiout
8100 parameter. Print to that instead of to CURRENT_UIOUT.
8101 * infrun.h (print_end_stepping_range_reason)
8102 (print_signal_exited_reason, print_exited_reason)
8103 (print_signal_received_reason print_no_history_reason): New
8104 declarations.
8105 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8106 'mi_uiout'.
8107 <cli_uiout>: New field.
8108 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8109 uiout for CLI output. Install 'signal_received',
8110 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8111 observers.
8112 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8113 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8114 (mi_on_no_history): New functions.
8115 (ui_out_free_cleanup): Delete function.
8116 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8117 instead use the one already stored in the MI interpreter data.
8118 (mi_ui_out): Adjust.
8119 * tui/tui-interp.c: Include infrun.h and observer.h.
8120 (tui_interp): New global.
8121 (tui_on_signal_received, tui_on_end_stepping_range)
8122 (tui_on_signal_exited, tui_on_exited)
8123 (tui_on_no_history): New functions.
8124 (tui_init): Install them as 'end_stepping_range',
8125 'signal_received' 'signal_exited', 'exited' and 'no_history'
8126 observers.
8127 (_initialize_tui_interp): Delete tui_interp local.
8128
8817a6f2
PA
81292014-05-29 Pedro Alves <palves@redhat.com>
8130
8131 PR gdb/15713
8132 * linux-nat.c (linux_nat_resume_callback): Rename the second
8133 parameter to 'except'. Skip LP if it points to EXCEPT.
8134 (linux_nat_resume): Don't mark the event lwp as not stopped
8135 before resuming sibling lwps. Instead ask
8136 linux_nat_resume_callback to skip the event lwp. Mark it as not
8137 stopped after actually resuming it.
8138 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8139 resuming it.
8140 (wait_lwp): Mark the lwp as stopped here.
8141 (stop_wait_callback): Mark the lwp as not stopped right after
8142 resuming it. Don't mark lwps as stopped here.
8143 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8144 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8145
251bde03
PA
81462014-05-29 Pedro Alves <palves@redhat.com>
8147
8148 PR PR15693
8149 * infrun.c (resume): Determine how much to resume depending on
8150 whether the caller wanted a step, not whether we can hardware step
8151 the target. Mark all threads that we intend to run as running,
8152 unless we're calling an inferior function.
8153 (normal_stop): If the thread is running an infcall, don't finish
8154 thread state.
8155 * target.c (target_resume): Don't mark threads as running here.
8156
7f3c0343
JB
81572014-05-28 Joel Brobecker <brobecker@adacore.com>
8158
8159 * serial.c (_initialize_serial): Remove support for
8160 the "set remotebaud" and "show remotebaud" commands.
8161 * NEWS: Add entry documenting the removal of that command.
8162
ee34b3f9
YQ
81632014-05-28 Yao Qi <yao@codesourcery.com>
8164
8165 * charset.c: Fix typo in comments.
8166
add6c04d
GB
81672014-05-27 Gary Benson <gbenson@redhat.com>
8168
8169 * utils.c (internal_vproblem): Prompt for a bug report.
8170
92c48fc5
AW
81712014-05-26 Andy Wingo <wingo@igalia.com>
8172
8173 * guile/scm-arch.c (arscm_mark_arch_smob):
8174 * guile/scm-block.c (bkscm_mark_block_smob)
8175 (bkscm_mark_block_syms_progress_smob):
8176 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8177 * guile/scm-exception.c (exscm_mark_exception_smob):
8178 * guile/scm-frame.c (frscm_mark_frame_smob):
8179 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8180 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8181 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8182 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8183 (ppscm_mark_pretty_printer_worker_smob):
8184 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8185 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8186 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8187 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8188 mark functions.
8189 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8190 function.
8191
b2715b27
AW
81922014-05-26 Andy Wingo <wingo@igalia.com>
8193 Doug Evans <xdje42@gmail.com>
8194
8195 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8196 empty_base_class. All uses updated.
8197 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8198 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8199 Adapt all callers.
8200 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8201 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8202 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8203 (gdbscm_gsmob_has_property_p, add_property_name)
8204 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8205 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8206 (gdb-object-has-property?, gdb-object-properties): Remove.
8207 (gdb-object-kind): Renamed from gsmob-kind.
8208
214ab2da
AW
82092014-05-26 Andy Wingo <wingo@igalia.com>
8210
8211 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8212 * configure: Regenerate.
8213
589fdceb
MM
82142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8215
8216 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8217
67b5c0c1
MM
82182014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8219
8220 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8221 (replay_memory_access_read_only, replay_memory_access_read_write)
8222 (replay_memory_access_types, replay_memory_access)
8223 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8224 (cmd_set_record_btrace, cmd_show_record_btrace)
8225 (cmd_show_replay_memory_access): New.
8226 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8227 (record_btrace_remove_breakpoint): Replace
8228 record_btrace_allow_memory_access with replay_memory_access.
8229 (_initialize_record_btrace): Add commands.
8230 * NEWS: Announce it.
8231
036cd381
RR
82322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8233
8234 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8235
c77c1e42
RR
82362014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8237
8238 * MAINTAINERS (Write After Approval): Move self back from
8239 paper trail.
8240
45741a9c
PA
82412014-05-22 Pedro Alves <palves@redhat.com>
8242
8243 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8244 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8245 (disable_randomization, enum exec_direction_kind)
8246 (execution_direction, stop_registers, start_remote)
8247 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8248 (wait_for_inferior, normal_stop, get_last_target_status)
8249 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8250 (insert_step_resume_breakpoint_at_sal)
8251 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8252 (set_step_info, print_stop_event, signal_stop_state)
8253 (signal_print_state, signal_pass_state, signal_stop_update)
8254 (signal_print_update, signal_pass_update)
8255 (update_signals_program_target, clear_exit_convenience_vars)
8256 (displaced_step_dump_bytes, update_observer_mode)
8257 (signal_catch_update, gdb_signal_from_command): Move
8258 declarations ...
8259 * infrun.h: ... to this new file.
8260 * amd64-tdep.c: Include infrun.h.
8261 * annotate.c: Include infrun.h.
8262 * arch-utils.c: Include infrun.h.
8263 * arm-linux-tdep.c: Include infrun.h.
8264 * arm-tdep.c: Include infrun.h.
8265 * break-catch-sig.c: Include infrun.h.
8266 * breakpoint.c: Include infrun.h.
8267 * common/agent.c: Include infrun.h instead of inferior.h.
8268 * corelow.c: Include infrun.h.
8269 * event-top.c: Include infrun.h.
8270 * go32-nat.c: Include infrun.h.
8271 * i386-tdep.c: Include infrun.h.
8272 * inf-loop.c: Include infrun.h.
8273 * infcall.c: Include infrun.h.
8274 * infcmd.c: Include infrun.h.
8275 * infrun.c: Include infrun.h.
8276 * linux-fork.c: Include infrun.h.
8277 * linux-nat.c: Include infrun.h.
8278 * linux-thread-db.c: Include infrun.h.
8279 * monitor.c: Include infrun.h.
8280 * nto-tdep.c: Include infrun.h.
8281 * procfs.c: Include infrun.h.
8282 * record-btrace.c: Include infrun.h.
8283 * record-full.c: Include infrun.h.
8284 * remote-m32r-sdi.c: Include infrun.h.
8285 * remote-mips.c: Include infrun.h.
8286 * remote-notif.c: Include infrun.h.
8287 * remote-sim.c: Include infrun.h.
8288 * remote.c: Include infrun.h.
8289 * reverse.c: Include infrun.h.
8290 * rs6000-tdep.c: Include infrun.h.
8291 * s390-linux-tdep.c: Include infrun.h.
8292 * solib-irix.c: Include infrun.h.
8293 * solib-osf.c: Include infrun.h.
8294 * solib-svr4.c: Include infrun.h.
8295 * target.c: Include infrun.h.
8296 * top.c: Include infrun.h.
8297 * windows-nat.c: Include infrun.h.
8298 * mi/mi-interp.c: Include infrun.h.
8299 * mi/mi-main.c: Include infrun.h.
8300 * python/py-threadevent.c: Include infrun.h.
8301
98eb56a4
PA
83022014-05-22 Pedro Alves <palves@redhat.com>
8303
8304 * infrun.c (handle_inferior_event): Store the exit code for
8305 --return-child-result here, instead of ...
8306 (print_exited_reason): ... here.
8307
17b2616c
PA
83082014-05-21 Pedro Alves <palves@redhat.com>
8309
8310 PR gdb/13860
8311 * gdbthread.h (struct thread_control_state): New field
8312 `command_interp'.
8313 * infrun.c (follow_fork): Copy the new thread control field to the
8314 child fork thread.
8315 (clear_proceed_status_thread): Clear the new thread control field.
8316 (proceed): Set the new thread control field.
8317 * interps.h (command_interp): Declare.
8318 * interps.c (command_interpreter): New global.
8319 (command_interp): New function.
8320 (interp_exec): Set `command_interpreter' while here.
8321 * cli-out.c (cli_uiout_dtor): New function.
8322 (cli_ui_out_impl): Install it.
8323 * mi/mi-interp.c: Include cli-out.h.
8324 (mi_cmd_interpreter_exec): Add comment.
8325 (restore_current_uiout_cleanup): New function.
8326 (ui_out_free_cleanup): New function.
8327 (mi_on_normal_stop): If finishing an execution command started by
8328 a CLI command, or any kind of breakpoint-like event triggered,
8329 print the stop event to the output (CLI) stream.
8330 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8331
5166082f
PA
83322014-05-21 Pedro Alves <palves@redhat.com>
8333
8334 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8335 current source line having changed.
8336 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8337 * infrun.c (normal_stop): Adjust call to
8338 set_current_sal_from_frame.
8339 * source.c (clear_lines_listed_range): New function.
8340 (set_current_source_symtab_and_line, identify_source_line): Clear
8341 the lines listed range.
8342 (line_info): Handle the first "info line" after the current source
8343 line having changed.
8344 * stack.c (print_stack_frame): Remove center handling.
8345 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8346 center sal.line.
8347
c1ee2fb3
PA
83482014-05-21 Pedro Alves <palves@redhat.com>
8349
8350 * inf-child.c (inf_child_mourn_inferior): New function.
8351 * inf-child.h (inf_child_mourn_inferior): New declaration.
8352 * darwin-nat.c (darwin_mourn_inferior): Use
8353 inf_child_mourn_inferior.
8354 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8355 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8356 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8357 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8358 * windows-nat.c (windows_mourn_inferior): Likewise.
8359
5c6d4fb2
DE
83602014-05-21 Doug Evans <xdje42@gmail.com>
8361
250748cb 8362 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8363
4a2722c5
DE
83642014-05-21 Doug Evans <xdje42@gmail.com>
8365
17292b30 8366 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8367 (gdbscm_out_of_range_error): Ditto.
8368 (gdbscm_memory_error): Ditto.
250748cb
DE
8369 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8370 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8371 (gdbscm_out_of_range_error): Update.
8372 (gdbscm_memory_error): Update.
8373 (gdbscm_scm_to_target_string_unsafe): Delete.
8374
6a3cb8e8
PA
83752014-05-21 Pedro Alves <palves@redhat.com>
8376
8377 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8378 globals.
8379 (inf_child_open_target): New function.
8380 (inf_child_open): Use inf_child_open_target to push the target
8381 instead of erroring out.
8382 (inf_child_disconnect, inf_child_close)
8383 (inf_child_maybe_unpush_target): New functions.
8384 (inf_child_target): Install inf_child_disconnect and
8385 inf_child_close. Store a pointer to the returned object.
8386 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8387 declarations.
8388 * target.c (auto_connect_native_target): New global.
8389 (show_default_run_target): New function.
8390 (find_default_run_target): Return NULL if automatically connecting
8391 to the native target is disabled.
8392 (_initialize_target): Install set/show auto-connect-native-target.
8393 * NEWS: Mention "set auto-connect-native-target", and "target
8394 native".
8395 * linux-nat.c (super_close): New global.
8396 (linux_nat_close): Call super_close.
8397 (linux_nat_add_target): Store a pointer to the base class's
8398 to_close method.
8399 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8400 inf_child_maybe_unpush.
8401 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8402 already pushed.
8403 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8404 the inferior. Use inf_child_maybe_unpush_target.
8405 (inf_ttrace_attach): Don't push the target if it is already
8406 pushed.
8407 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8408 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8409 after mourning the inferior. Use inf_child_maybe_unpush_target.
8410 (darwin_attach_pid): Don't push the target if it is already
8411 pushed.
8412 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8413 mourning the inferior. Use inf_child_maybe_unpush_target.
8414 (gnu_detach): Use inf_child_maybe_unpush_target.
8415 * go32-nat.c (go32_create_inferior): Don't push the target if it
8416 is already pushed.
8417 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8418 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8419 (procfs_open): Rename to ...
8420 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8421 comments. Can target_preopen before changing node. Call
8422 inf_child_open_target to push the target explicitly.
8423 (procfs_attach): Don't push the target if it is already pushed.
8424 (procfs_detach): Use inf_child_maybe_unpush_target.
8425 (procfs_create_inferior): Don't push the target if it is already
8426 pushed.
8427 (nto_native_ops): New global.
8428 (procfs_open): Reimplement.
8429 (procfs_native_open): New function.
8430 (init_procfs_targets): Install procfs_native_open as to_open of
8431 "target native". Store a pointer to the "native" target in
8432 nto_native_ops.
8433 * procfs.c (procfs_attach): Don't push the target if it is already
8434 pushed.
8435 (procfs_detach): Use inf_child_maybe_unpush_target.
8436 (procfs_mourn_inferior): Only unpush the target after mourning the
8437 inferior. Use inf_child_maybe_unpush_target.
8438 (procfs_init_inferior): Don't push the target if it is already
8439 pushed.
8440 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8441 if it is already pushed.
8442
930ee1b1
PA
84432014-05-21 Pedro Alves <palves@redhat.com>
8444
8445 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8446 and "procfs" targets are now called "native" instead.
8447
1f5d1b13
PA
84482014-05-21 Pedro Alves <palves@redhat.com>
8449
8450 * go32-nat.c (go32_open): Delete.
8451 (go32_target): Don't override the to_open method.
8452
132f8e03
PA
84532014-05-21 Pedro Alves <palves@redhat.com>
8454
8455 * nto-procfs.c (procfs_can_run): New function.
8456 (nto_procfs_ops): New global.
8457 (init_procfs_targets): New, based on procfs_target. Install
8458 "target native" in addition to "target procfs".
8459 (_initialize_procfs): Call init_procfs_targets instead of adding
8460 the target here.
8461
03c136c3
PA
84622014-05-21 Pedro Alves <palves@redhat.com>
8463
8464 * windows-nat.c (windows_target): Don't override to_shortname,
8465 to_longname or to_doc.
8466
a635d0f3
PA
84672014-05-21 Pedro Alves <palves@redhat.com>
8468
8469 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8470 to_doc.
8471
4f9b5133
PA
84722014-05-21 Pedro Alves <palves@redhat.com>
8473
8474 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8475 to_shortname, to_longname or to_doc.
8476
bc85afde
PA
84772014-05-21 Pedro Alves <palves@redhat.com>
8478
8479 * go32-nat.c (go32_target): Don't override to_shortname,
8480 to_longname or to_doc.
8481
4ebfc96e
PA
84822014-05-21 Pedro Alves <palves@redhat.com>
8483
8484 * inf-child.c (inf_child_open): Remove mention of "child".
8485 (inf_child_target): Rename target to "native" instead of "child".
8486
2648dfed
AA
84872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8488
8489 * Makefile.in (SFILES): Delete "regset.c".
8490 (COMMON_OBS): Delete "regset.o".
8491 * regset.c: Remove.
8492 * regset.h (regset_alloc): Delete prototype.
8493
b13feb94
AA
84942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8495
8496 * sparc-linux-tdep.c (sparc32_linux_gregset)
8497 (sparc32_linux_fpregset): New static regset structures.
8498 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8499 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8500 'fpregset' fields.
8501 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8502 (sparc64_linux_fpregset): New static regset structures.
8503 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8504 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8505 New static regset structures.
8506 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8507 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8508 New static regset structures.
8509 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8510 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8511 New static regset structures.
8512 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8513 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8514 New static regset structures.
8515 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8516
b4fd25c9
AA
85172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8518
8519 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8520 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8521 register maps ("regmaps") from "*regset" to "*regmap". Do this
8522 for all regmap types and variables.
8523 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8524 (sparc32_linux_supply_core_gregset)
8525 (sparc32_linux_collect_core_gregset)
8526 (sparc32_linux_supply_core_fpregset)
8527 (sparc32_linux_collect_core_fpregset): Likewise.
8528 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8529 (sparc_gregmap, sparc_fpregmap): ... these.
8530 (sparc_supply_gregset, sparc_collect_gregset)
8531 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8532 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8533 (_initialize_sparc_nat): Rename regmaps.
8534 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8535 (sparc_gregmap, sparc_fpregmap): ... these.
8536 (sparc_supply_gregset, sparc_collect_gregset)
8537 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8538 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8539 Rename macros to...
8540 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8541 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8542 Likewise.
8543 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8544 Rename to...
8545 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8546 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8547 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8548 regmaps.
8549 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8550 (sparc32_bsd_fpregset): Rename to...
8551 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8552 (sparc32_bsd_fpregmap): ... these.
8553 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8554 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8555 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8556 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8557 (struct sparc_gregmap, struct sparc_fpregmap)
8558 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8559 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8560 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8561 (sparc32_supply_regset, sparc32_collect_gregset)
8562 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8563 prototypes.
8564 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8565 (sparc64_linux_ptrace_gregmap): ... this.
8566 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8567 (_initialize_sparc64_linux_nat): Rename regmaps.
8568 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8569 (sparc64_linux_core_gregmap): ... this.
8570 (sparc64_linux_supply_core_gregset)
8571 (sparc64_linux_collect_core_gregset)
8572 (sparc64_linux_supply_core_fpregset)
8573 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8574 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8575 (sparc64_sol2_fpregset): Rename to...
8576 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8577 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8578 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8579 regmaps.
8580 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8581 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8582 (sparc64_bsd_fpregset): Rename to...
8583 (struct sparc_gregmap, sparc64_sol2_gregmap)
8584 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8585 (sparc64_bsd_fpregmap): ... these.
8586 (sparc64_supply_gregset, sparc64_collect_gregset)
8587 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8588 prototypes.
8589 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8590 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8591 (sparc64fbsd_gregmap): ... this.
8592 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8593 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8594 Rename regmaps.
8595 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8596 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8597 (sparc64nbsd_collect_fpregset): Likewise.
8598 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8599 (sparc64nbsd_gregmap): ... this.
8600 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8601 regmaps.
8602 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8603 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8604 (sparc64obsd_gregmap): ... this.
8605 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8606 regmaps.
8607 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8608 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8609 (sparc32nbsd_gregmap): ... this.
8610 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8611 regmaps.
8612
8fea3224
AA
86132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8614
8615 * score-tdep.c (score7_linux_gregset): New static regset
8616 structure.
8617 (score7_linux_regset_from_core_section): Remove dynamic regset
8618 allocation.
8619 (score_gdbarch_init): Drop allocation of tdep structure.
8620 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8621
24534243
AA
86222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8623
8624 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8625 regset structures.
8626 (am33_regset_from_core_section): Remove dynamic regset
8627 allocations.
8628
b7195f27
AA
86292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8630
8631 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8632 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8633 structures.
8634 (mips_linux_regset_from_core_section): Remove dynamic regset
8635 allocations.
8636 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8637 'gregset64', 'fpregset', and 'fpregset64'.
8638 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8639 deleted tdep fields.
8640
ecc37a5a
AA
86412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8642
8643 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8644 regset structures.
8645 (amd64_regset_from_core_section): Remove dynamic regset
8646 allocations.
8647 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8648 structure.
8649 (amd64obsd_regset_from_core_section): Remove dynamic regset
8650 allocation.
8651 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8652 Likewise.
8653 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8654 x86-common regset supply function.
8655 * i386-tdep.c (i386_collect_gregset): Make static.
8656 (i386_gregset): New global regset structure.
8657 (i386_fpregset, i386_xstateregset): New static regset structures.
8658 (i386_regset_from_core_section): Remove dynamic regset
8659 allocations.
8660 (i386_gdbarch_init): Remove initialization of tdep fields
8661 'gregset', 'fpregset', and 'xstateregset'.
8662 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8663 'fpregset', and 'xstateregset'.
8664 (i386_collect_gregset): Remove prototype.
8665 (i386_gregset): New declaration.
8666 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8667 structure.
8668 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8669 allocation.
8670
b7611c43
AA
86712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8672
8673 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8674 (arm_linux_vfpregset): New static regset structures.
8675 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8676 regset structures.
8677 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8678 and 'vfpregset' fields.
8679
a069a2bd
AA
86802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8681
8682 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8683 (aarch64_linux_fpregset): New static regset structures.
8684 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8685 of regset structures.
8686 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8687 'fpregset' fields.
8688
09424cff
AA
86892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8690
8691 * regset.h (struct regset): Remove gdbarch field.
8692 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8693 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8694 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8695 Likewise.
8696 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8697 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8698 (ppc32_linux_vsxregset): Likewise.
8699 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8700 via the regcache instead of the regset.
8701 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8702 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8703 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8704 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8705 Likewise.
8706
3ca7dae4
AA
87072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8708
8709 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8710 Constify structures.
8711 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8712 (alphanbsd_aout_gregset): Likewise.
8713 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8714 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8715 Likewise.
8716 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8717 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8718 Likewise.
8719 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8720 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8721 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8722 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8723 * m88k-tdep.c (m88k_gregset): Likewise.
8724 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8725 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8726 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8727 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8728 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8729 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8730 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8731 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8732 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8733 Likewise.
8734 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8735 * sh-tdep.h (sh_corefile_gregset): Likewise.
8736 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8737 * vax-tdep.c (vax_gregset): Likewise.
8738
5876f503
JK
87392014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 Fix TLS access for -static -pthread.
8742 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8743 (try_thread_db_load_1): Initialize it.
8744 (thread_db_get_thread_local_address): Call it if LM is zero.
8745 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8746 * target.h (struct target_ops) (to_get_thread_local_address): Add
8747 load_module_addr comment.
8748
0256a6ac
PA
87492014-05-21 Pedro Alves <palves@redhat.com>
8750
8751 * dcache.c (dcache_read_memory_partial): If reading the cache line
8752 fails, fallback to reading just the memory the caller wanted.
8753
227533ac
DE
87542014-05-20 Doug Evans <dje@google.com>
8755
8756 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8757 instead of get_current_arch.
8758
936d2992
PA
87592014-05-20 Pedro Alves <palves@redhat.com>
8760
8761 * NEWS: Mention that compare-sections now works with all targets.
8762
8763 * remote.c (PACKET_qCRC): New enum value.
8764 (remote_verify_memory): Don't send qCRC if the target has no
8765 execution. Use packet_support/packet_ok. If the target doesn't
8766 support the qCRC packet, fallback to a deep memory copy.
8767 (compare_sections_command): Say "target image" instead of "remote
8768 executable".
8769 (_initialize_remote): Add PACKET_qCRC to the list of config
8770 packets that have no associated command. Extend comment.
8771 * target.c (simple_verify_memory, default_verify_memory): New
8772 function.
8773 * target.h (struct target_ops) <to_verify_memory>: Default to
8774 default_verify_memory.
8775 (simple_verify_memory): New declaration.
8776 * target-delegates.c: Regenerate.
8777
e59fa00f
MM
87782014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8779
8780 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8781
f2205de0
HZ
87822014-05-20 Hui Zhu <hui@codesourcery.com>
8783 Yao Qi <yao@codesourcery.com>
8784
8785 PR backtrace/16558
8786 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8787 and change address of sp and pc.
8788
c4e54771
TT
87892014-05-19 Tom Tromey <tromey@redhat.com>
8790
8791 * gdbtypes.c (rank_function): Use XNEWVEC.
8792 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8793
73051182
DE
87942014-05-19 Doug Evans <dje@google.com>
8795
8796 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8797 build_type_unit_groups and moved closer to only caller. Remove
8798 arguments. All references updated. Remove outdated .gdb_index
8799 comment.
8800 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8801 build_type_psymtabs_1.
8802
8832e7e3
DE
88032014-05-19 Doug Evans <dje@google.com>
8804
8805 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8806 n_type_unit_groups, all_type_unit_groups. All uses removed.
8807 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8808 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8809 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8810 (add_type_unit_group_to_table): Delete.
8811
cd8ae15e
DE
88122014-05-19 Doug Evans <dje@google.com>
8813
8814 * eval.c (evaluate_subexp_standard): Add some comments.
8815
08f4850b
DE
88162014-05-17 Doug Evans <xdje42@gmail.com>
8817
8818 * progspace.c (remove_program_space): Delete, unused.
8819 * progspace.h (remove_program_space): Ditto.
8820
bed8455c
DE
88212014-05-17 Doug Evans <xdje42@gmail.com>
8822
8823 * inferior.c (prune_inferiors): Fix comment.
8824 (remove_inferior_command): Call prune_program_spaces.
8825
8d551b02
DE
88262014-05-16 Doug Evans <dje@google.com>
8827
8828 New command line option -D.
8829 * NEWS: Mention it.
8830 * main.c (set_gdb_data_directory): New function.
8831 (captured_main): Recognize -D. Flag error for --data-directory "".
8832 Call set_gdb_data_directory.
8833 (print_gdb_help): Print --data-directory, -D.
8834 * main.h (set_gdb_data_directory): Declare.
8835 * top.c (staged_gdb_datadir): New static global.
8836 (set_gdb_datadir): Call set_gdb_data_directory
8837 (show_gdb_datadir): New function.
8838 (init_main): Update init of data-directory parameter.
8839
18848e28
GF
88402014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8841
8842 Import the "dirfd" gnulib module.
8843 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8844 * gnulib/aclocal.m4: Update.
8845 * gnulib/config.in: Update.
8846 * gnulib/configure: Update.
8847 * gnulib/import/Makefile.am: Update.
8848 * gnulib/import/Makefile.in: Update.
8849 * gnulib/import/dirfd.c: New.
8850 * gnulib/import/m4/dirfd.m4: New.
8851 * gnulib/import/m4/gnulib-cache.m4: Update.
8852 * gnulib/import/m4/gnulib-comp.m4: Update.
8853
95c64f92
YQ
88542014-05-16 Pierre Muller <muller@sourceware.org>
8855 Yao Qi <yao@codesourcery.com>
8856
8857 * valprint.c (print_wchar): Move the code on checking whether
8858 W is a printable wide char to the default branch of switch
8859 statement below. Call wchar_printable instead of gdb_iswprint.
8860
cac395ea
TM
88612014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8862
19679eca 8863 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8864 ldr.w and ldrd instructions.
8865
83655187
DE
88662014-05-15 Doug Evans <dje@google.com>
8867
8868 * dwarf2read.c (read_structure_type): Delete outdated comments.
8869
dd756689
TT
88702014-05-14 Tom Tromey <tromey@redhat.com>
8871
8872 * macrocmd.c (print_macro_definition): Reindent.
8873
75ddda77
DE
88742014-05-13 Doug Evans <xdje42@gmail.com>
8875
8876 * python/py-cmd.c (cmdpy_completer): Add comment.
8877 (completers): Make const.
8878
b0f16a3e
SM
88792014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8880
8881 * infrun.c (resume): Remove should_resume (unused). Move up
8882 declaration of resume_ptid.
8883
033c3379
TT
88842014-05-13 Tom Tromey <tromey@redhat.com>
8885
8886 * language.h (unop_type_check): Remove.
8887 (binop_type_check): Don't declare.
8888
9b44a3a5
AA
88892014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8890
8891 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8892 call to regcache_raw_collect.
8893
303a33fa
SM
88942014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8895
8896 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8897 mi_console->quote as the quoting character.
8898
196100a0
SM
88992014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8900
8901 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8902
f989a1c8
TT
89032014-04-29 Tom Tromey <tromey@redhat.com>
8904
8905 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8906 "show debug varobj".
8907
9404b58f
KM
89082014-05-07 Kyle McMartin <kyle@redhat.com>
8909
8910 Pushed by Joel Brobecker <brobecker@adacore.com>.
8911 * aarch64-tdep.c (aarch64_software_single_step): New function.
8912 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8913 with aarch64_software_single_step.
8914
5e49ba57
JB
89152014-05-05 Joel Brobecker <brobecker@adacore.com>
8916
8917 GDB 7.7.1 released.
8918
c888a17d
KS
89192014-05-05 Keith Seitz <keiths@redhat.com>
8920
8921 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8922 variable or history value is successfully parsed.
8923
290a839c
YQ
89242014-05-05 Yao Qi <yao@codesourcery.com>
8925 Pedro Alves <palves@redhat.com>
8926
8927 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8928 address of blocks that intersects the requested range. Trim
8929 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8930 sections.
8931 * ctf.c (ctf_xfer_partial): Likewise.
8932
91256dc2
YQ
89332014-05-05 Yao Qi <yao@codesourcery.com>
8934
8935 * printcmd.c (display_command): Remove the check to
8936 target_has_execution.
8937
07284463
MK
89382014-05-03 Mark Kettenis <kettenis@gnu.org>
8939
8940 * ppcobsd-nat.c: Include "obsd-nat.h".
8941 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8942 add_target.
8943 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8944
30a1e6cc
SDJ
89452014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8946
8947 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8948 and 16-bit signed and unsigned arguments. Update comment.
8949 (stap_parse_probe_arguments): Extend code to handle such
8950 arguments. Use warning instead of complaint to notify about
8951 unrecognized bitness.
8952
f33da99a
SDJ
89532014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8954
8955 PR breakpoints/16889
8956 * stap-probe.c (stap_parse_probe_arguments): Simplify
8957 check for non-prefixed probes (i.e., probes whose
8958 arguments do not start with "N@"). Always set the
8959 argument type to a sane value.
8960
95cf3b38
DT
89612014-05-01 David Taylor <dtaylor@emc.com>
8962
8963 * remote.c (compare_sections_command): Add -r option to compare
8964 all loadable read-only sections.
8965
1cfdf534
SC
89662014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8967
8968 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8969 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8970 Update all callers.
8971 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8972 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8973 Remove unused CORE_ADDR argument. Update all callers.
8974
ca4f7f8b
PA
89752014-04-29 Pedro Alves <palves@redhat.com>
8976
8977 * remote.c (struct packet_config) <detect>: Extend comment.
8978 (add_packet_config_cmd): Don't set the config's detect or support
8979 fields here.
8980 (init_all_packet_configs): Also initialize the config's 'detect'
8981 field.
8982 (reset_all_packet_configs_support): New function.
8983 (remote_open_1): Call reset_all_packet_configs_support instead of
8984 init_all_packet_configs.
8985 (_initialize_remote): Initialize all packet configs. Assert that
8986 all packets have an associated command, except a few known
8987 outliers.
8988
11c1ba78
JB
89892014-04-28 Joel Brobecker <brobecker@adacore.com>
8990
8991 * dwarf2read.c (read_subrange_type): Handle dynamic
8992 DW_AT_lower_bound attributes.
8993
8739bc53
JB
89942014-04-28 Joel Brobecker <brobecker@adacore.com>
8995
8996 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8997 dynamic bounds before computing its upper bound.
8998 (ada_discrete_type_low_bound): Same as above with the lower bound.
8999
6f8a3220
JB
90002014-04-28 Joel Brobecker <brobecker@adacore.com>
9001
9002 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9003 range types. Adjust the array handling implementation to
9004 take advantage of this change.
9005 (resolve_dynamic_range): New function, mostly extracted from
9006 resolve_dynamic_bounds.
9007 (resolve_dynamic_array): New function, mostly extracted from
9008 resolve_dynamic_bounds.
9009 (resolve_dynamic_bounds): Delete.
9010 (resolve_dynamic_type): Reimplement. Add handling of
9011 TYPE_CODE_RANGE types.
9012
4d072ce4
JB
90132014-04-28 Joel Brobecker <brobecker@adacore.com>
9014
9015 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9016 handling of parallel ___XA types.
9017
52865325
JB
90182014-04-28 Joel Brobecker <brobecker@adacore.com>
9019
9020 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9021 unnecessary second call to static_unwrap_type.
9022
433e77fa
HZ
90232014-04-27 Hui Zhu <hui@codesourcery.com>
9024
9025 * stack.c (print_frame_info): Call do_gdb_disassembly with
9026 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9027
b51a69ee
DE
90282014-04-26 Doug Evans <xdje42@gmail.com>
9029
9030 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9031
7ae1a6a6
PA
90322014-04-25 Pedro Alves <palves@redhat.com>
9033
9034 PR server/16255
9035 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9036 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9037 and newline from built string.
9038 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9039 (linux_ptrace_attach_fail_reason): ... this.
9040 * linux-nat.c (linux_nat_attach): Adjust to use
9041 linux_ptrace_attach_fail_reason.
9042
4082afcc
PA
90432014-04-25 Pedro Alves <palves@redhat.com>
9044
9045 * remote.c (struct remote_state): Remove multi_process_aware,
9046 non_stop_aware, cond_tracepoints, cond_breakpoints,
9047 breakpoint_commands, fast_tracepoints, static_tracepoints,
9048 install_in_trace, disconnected_tracing,
9049 enable_disable_tracepoints, string_tracing, and
9050 augmented_libraries_svr4_read fields.
9051 (remote_multi_process_p): Move further below in the file.
9052 (struct packet_config): Add comments.
9053 (update_packet_config): Delete function.
9054 (show_packet_config_cmd): Use packet_config_support.
9055 (add_packet_config_cmd): Use NULL as set callback.
9056 (packet_ok): "set remote foo-packet"-style commands no longer
9057 change config->supported -- adjust.
9058 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9059 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9060 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9061 (PACKET_QNonStop, PACKET_multiprocess_feature)
9062 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9063 (PACKET_DisconnectedTracing_feature)
9064 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9065 (set_remote_protocol_packet_cmd): Delete function.
9066 (packet_config_support, packet_support): New functions.
9067 (set_remote_protocol_Z_packet_cmd): Don't call
9068 update_packet_config.
9069 (remote_query_attached, remote_pass_signals)
9070 (remote_program_signals, remote_threads_info)
9071 (remote_threads_extra_info, remote_start_remote): Use
9072 packet_support.
9073 (remote_start_remote): Use packet_config_support and
9074 packet_support.
9075 (init_all_packet_configs): Set all packets to unknown support,
9076 instead of calling update_packet_config.
9077 (remote_check_symbols): Use packet_support.
9078 (remote_supported_packet): Unconditionally set the packet config's
9079 support status.
9080 (remote_multi_process_feature, remote_non_stop_feature)
9081 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9082 (remote_breakpoint_commands_feature)
9083 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9084 (remote_install_in_trace_feature)
9085 (remote_disconnected_tracing_feature)
9086 (remote_enable_disable_tracepoint_feature)
9087 (remote_string_tracing_feature)
9088 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9089 (remote_protocol_features): Adjust to use remote_supported_packet
9090 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9091 "ConditionalTracepoints", "ConditionalBreakpoints",
9092 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9093 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9094 "EnableDisableTracepoints", and "tracenz".
9095 (remote_query_supported): Use packet_support.
9096 (remote_open_1): Adjust.
9097 (extended_remote_attach_1): Use packet_support. Switch on the
9098 result of packet_ok instead of checking whether the packet ended
9099 up disabled.
9100 (remote_vcont_resume): Use packet_support.
9101 (remote_resume, remote_stop_ns, fetch_register_using_p)
9102 (remote_prepare_to_store, store_register_using_P)
9103 (check_binary_download, remote_write_bytes): Use packet_support.
9104 (remote_vkill): Use packet_support. Switch on the result of
9105 packet_ok instead of checking whether the packet ended up
9106 disabled.
9107 (extended_remote_supports_disable_randomization): Use
9108 packet_support.
9109 (extended_remote_run): Switch on the result of packet_ok instead
9110 of checking whether the packet ended up disabled.
9111 (remote_insert_breakpoint, remote_remove_breakpoint)
9112 (remote_insert_watchpoint, remote_remove_watchpoint)
9113 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9114 packet_support.
9115 (remote_search_memory): Use packet_config_support.
9116 (remote_get_thread_local_address, remote_get_tib_address)
9117 (remote_hostio_send_command, remote_can_execute_reverse): Use
9118 packet_support.
9119 (remote_supports_cond_tracepoints)
9120 (remote_supports_cond_breakpoints)
9121 (remote_supports_fast_tracepoints)
9122 (remote_supports_static_tracepoints)
9123 (remote_supports_install_in_trace)
9124 (remote_supports_enable_disable_tracepoint)
9125 (remote_supports_string_tracing)
9126 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9127 the packet config says the feature is enabled or disabled.
9128 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9129 (remote_get_trace_status): Use packet_support.
9130 (remote_set_disconnected_tracing): Adjust to check whether the
9131 feature is enabled with packet_support.
9132 (remote_set_trace_buffer_size, remote_use_agent)
9133 (remote_can_use_agent, remote_supports_btrace): Use
9134 packet_support.
9135 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9136 Use packet_config_support.
9137 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9138 the packet config says the feature is enabled or disabled.
9139 (set_range_stepping): Use packet_support.
9140
bdb52a22
TT
91412014-04-25 Tom Tromey <tromey@redhat.com>
9142
9143 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9144 argument.
9145
e9475ead
SA
91462014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9147
9148 * NEWS: Mention support for C99 variable length arrays.
9149
82eacd52
JB
91502014-04-24 Joel Brobecker <brobecker@adacore.com>
9151
9152 * ada-lang.c (standard_exc): Expand introductory comment.
9153
01f9f808
MS
91542014-04-24 Michael Sturm <michael.sturm@mintel.com>
9155 Walfred Tedeschi <walfred.tedeschi@intel.com>
9156
9157 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9158 AVX512 registers.
9159 (amd64_linux_read_description): Add code to handle AVX512 xstate
9160 mask and return respective tdesc.
9161 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9162 and features/i386/x32-avx512-linux.c.
9163 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9164 (amd64_linux_core_read_description): Add code to handle AVX512
9165 xstate mask and return respective tdesc.
9166 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9167 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9168 calculation.
9169 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9170 (tdesc_amd64_avx512_linux): New prototype.
9171 (tdesc_x32_avx512_linux): Likewise.
9172 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9173 features/i386/x32-avx512.c.
9174 (amd64_ymm_avx512_names): New register names for pseudo
9175 registers YMM16-31.
9176 (amd64_ymmh_avx512_names): New register names for raw registers
9177 YMMH16-31.
9178 (amd64_k_names): New register names for K registers.
9179 (amd64_zmmh_names): New register names for ZMM raw registers.
9180 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9181 (amd64_xmm_avx512_names): New register names for XMM16-31
9182 registers.
9183 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9184 registers.
9185 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9186 if feature is present.
9187 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9188 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9189 (AMD64_NUM_REGS): Adjust to new number of registers.
9190 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9191 registers supplied via XSTATE by AVX512 registers.
9192 (i386_linux_read_description): Add case for AVX512.
9193 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9194 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9195 (i386_linux_core_read_description): Add case for AVX512.
9196 (i386_linux_init_abi): Install supported register note section
9197 for AVX512.
9198 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9199 AVX512.
9200 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9201 registers to be number of zmm7h + 1.
9202 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9203 * i386-tdep.c: Include features/i386/i386-avx512.c.
9204 (i386_zmm_names): Add ZMM pseudo register names array.
9205 (i386_zmmh_names): Add ZMM raw register names array.
9206 (i386_k_names): Add K raw register names array.
9207 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9208 registers. AVX512 has 16 more ZMM registers than there are YMM
9209 registers.
9210 (i386_zmmh_regnum_p): Add function to look up register number of
9211 ZMM raw registers.
9212 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9213 (i386_k_regnum_p): Likewise for K raw registers.
9214 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9215 registers added by AVX512.
9216 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9217 registers added by AVX512.
9218 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9219 added by AVX512.
9220 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9221 (i386_pseudo_register_name): Add ZMM pseudo registers.
9222 (i386_zmm_type): Construct and return vector registers type for ZMM
9223 registers.
9224 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9225 ZMM0-31 pseudo registers and K registers.
9226 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9227 and YMM16-31 registers from register cache.
9228 (i386_pseudo_register_write): Add code to write K, ZMM and
9229 YMM16-31 registers.
9230 (i386_register_reggroup_p): Add code to include/exclude AVX512
9231 registers in/from respective register groups.
9232 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9233 registers if feature is present in xcr0.
9234 (i386_gdbarch_init): Add code to initialize AVX512 feature
9235 variables in tdep structure, wire in pseudo registers and call
9236 initialize_tdesc_i386_avx512.
9237 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9238 variables.
9239 (i386_regnum): Add AVX512 registers.
9240 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9241 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9242 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9243 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9244 512 bits wide.
9245 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9246 (i386_ymm_avx512_regnum_p): Likewise.
9247 (i386_k_regnum_p): Likewise.
9248 (i386_zmm_regnum_p): Likewise.
9249 (i386_zmmh_regnum_p): Likewise.
9250 * i387-tdep.c : Update year in copyright notice.
9251 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9252 XSAVE buffer.
9253 (XSAVE_YMM_AVX512_ADDR): New macro.
9254 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9255 XSAVE buffer.
9256 (XSAVE_XMM_AVX512_ADDR): New macro.
9257 (xsave_avx512_k_offset): New table for K register offsets in
9258 XSAVE buffer.
9259 (XSAVE_AVX512_K_ADDR): New macro.
9260 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9261 in XSAVE buffer.
9262 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9263 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9264 buffer.
9265 (i387_collect_xsave): Add code to collect AVX512 registers from
9266 XSAVE buffer.
9267 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9268 of XMM16-31 registers.
9269 (I387_NUM_K_REGS): New define for number of K registers.
9270 (I387_K0_REGNUM): New define for K0 register number.
9271 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9272 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9273 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9274 registers.
9275 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9276 (I387_XMM16_REGNUM): New define for XMM16 register number.
9277 (I387_YMM0_REGNUM): New define for YMM0 register number.
9278 (I387_KEND_REGNUM): New define for last K register number.
9279 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9280 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9281 number.
9282 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9283 number.
9284 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9285 size.
9286 * features/Makefile: Add AVX512 related files.
9287 * features/i386/32bit-avx512.xml: New file.
9288 * features/i386/64bit-avx512.xml: Likewise.
9289 * features/i386/amd64-avx512-linux.c: Likewise.
9290 * features/i386/amd64-avx512-linux.xml: Likewise.
9291 * features/i386/amd64-avx512.c: Likewise.
9292 * features/i386/amd64-avx512.xml: Likewise.
9293 * features/i386/i386-avx512-linux.c: Likewise.
9294 * features/i386/i386-avx512-linux.xml: Likewise.
9295 * features/i386/i386-avx512.c: Likewise.
9296 * features/i386/i386-avx512.xml: Likewise.
9297 * features/i386/x32-avx512-linux.c: Likewise.
9298 * features/i386/x32-avx512-linux.xml: Likewise.
9299 * features/i386/x32-avx512.c: Likewise.
9300 * features/i386/x32-avx512.xml: Likewise.
9301 * regformats/i386/amd64-avx512-linux.dat: New file.
9302 * regformats/i386/amd64-avx512.dat: Likewise.
9303 * regformats/i386/i386-avx512-linux.dat: Likewise.
9304 * regformats/i386/i386-avx512.dat: Likewise.
9305 * regformats/i386/x32-avx512-linux.dat: Likewise.
9306 * regformats/i386/x32-avx512.dat: Likewise.
9307 * NEWS: Add note about new support for AVX512.
9308
9309
08351840
PA
93102014-04-23 Pedro Alves <palves@redhat.com>
9311
9312 * breakpoint.c (insert_bp_location): Tolerate errors if the
9313 breakpoint is set in a user-loaded objfile.
9314 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9315 location is marked shlib_disabled. If the breakpoint is set in a
9316 user-loaded objfile is a GDB-side memory breakpoint, validate it
9317 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9318 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9319 flag.
9320 * mem-break.c (memory_validate_breakpoint): New function.
9321 * objfiles.c (userloaded_objfile_contains_address_p): New
9322 function.
9323 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9324 * target.h (memory_validate_breakpoint): New declaration.
9325
076855f9
PA
93262014-04-23 Pedro Alves <palves@redhat.com>
9327
9328 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9329 the breakpoint is set in a shared library, only suppress
9330 errors for software breakpoints, not hardware breakpoints.
9331
483805cf
PA
93322014-04-22 Pedro Alves <palves@redhat.com>
9333
9334 * infrun.c (schedlock_applies): New function, factored out from
9335 find_thread_needs_step_over.
9336 (find_thread_needs_step_over): Use it.
9337 (switch_back_to_stepped_thread): Always clear trap_expected if the
9338 step over is finished. Return early if scheduler locking applies.
9339 Look for the stepping thread and a potential step-over thread with
9340 a single loop.
9341 (currently_stepping_or_nexting_callback): Delete.
9342
a75fef0e
NC
93432014-04-22 Nick Clifton <nickc@redhat.com>
9344
9345 * NEWS: Mention that ARM sim now supports tracing.
9346
48b6e87e
YQ
93472014-04-22 Yao Qi <yao@codesourcery.com>
9348
9349 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9350 to ...
9351 * tracefile.c (tracefile_fetch_registers): ... it. New
9352 function.
9353 * tracefile.h (tracefile_fetch_registers): Declare.
9354 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9355 tracefile_fetch_registers.
9356
17617f2d
EZ
93572014-04-19 Eli Zaretskii <eliz@gnu.org>
9358
9359 PR gdb/14018
9360 * windows-nat.c (thread_rec): Don't display a warning when
9361 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9362 fails for any reason, set th->suspended to -1, so that we don't
9363 try to resume such a thread. Also, don't return NULL in these
9364 cases, to avoid completely ruin the session due to "PC register is
9365 not available" error.
9366 (do_windows_fetch_inferior_registers): Check errors in
9367 GetThreadContext call.
9368 (windows_continue): Accept an additional argument KILLED; if not
9369 zero, ignore errors in the SetThreadContext call, since the
9370 inferior was killed and is shutting down.
9371 (windows_resume, get_windows_debug_event)
9372 (windows_create_inferior, windows_mourn_inferior)
9373 (windows_kill_inferior): All callers of windows_continue changed
9374 to adjust to its new calling sequence.
9375
5723a6fd
YQ
93762014-04-19 Yao Qi <yao@codesourcery.com>
9377
9378 * ctf.c (ctf_open): Call post_create_inferior.
9379
614d5099
YQ
93802014-04-19 Yao Qi <yao@codesourcery.com>
9381
9382 * ctf.c (handle_id): New static variable.
9383 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9384 value. Get the declaration of event "register" and get length
9385 of field "contents".
9386
dac3e710
YQ
93872014-04-19 Yao Qi <yao@codesourcery.com>
9388
9389 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9390
2bca57ba
SC
93912014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9392
9393 * valops.c (oload_method_static): Remove unnecessary argument
9394 METHOD. Update all callers.
9395
51d48146
PA
93962014-04-18 Pedro alves <palves@redhat.com>
9397 Tom Tromey <tromey@redhat.com>
9398
9399 PR backtrace/15558
9400 * frame.c (get_prev_frame_1): Rename to ...
9401 (get_prev_frame_always): ... this, and make extern. Adjust.
9402 (skip_artificial_frames): Use get_prev_frame_always.
9403 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9404 (get_frame_unwind_stop_reason): Adjust to rename.
9405 * frame.h (get_prev_frame_always): Declare.
9406 * inline-frame.c: Include frame.h.
9407 (inline_frame_this_id): Use get_prev_frame_always.
9408
1bdad2e0
TG
94092014-04-18 Tristan Gingold <gingold@adacore.com>
9410
9411 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9412 code by using bfd_mach_o_get_base_address.
9413
7ce16bd4
UW
94142014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9415
9416 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9417 (spu_ax_pseudo_register_collect): New function.
9418 (spu_ax_pseudo_register_push_stack): Likewise.
9419 (spu_dwarf_reg_to_regnum): Likewise.
9420 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9421
2ed3c037
UW
94222014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9423
9424 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9425 Replace FRAME argument with FRAME_ID.
9426 * gdbarch.c, gdbarch.h: Regenerate.
9427 * findvar.c (default_value_from_register): Add GDBARCH argument;
9428 replace FRAME by FRAME_ID. No longer call get_frame_id.
9429 (value_from_register): Update call to gdbarch_value_from_register.
9430 * value.h (default_value_from_register): Update prototype.
9431 * s390-linux-tdep.c (s390_value_from_register): Update interface
9432 and call to default_value_from_register.
9433 * spu-tdep.c (spu_value_from_register): Likewise.
9434
9435 * findvar.c (address_from_register): Remove TYPE argument.
9436 Do not call value_from_register; use gdbarch_value_from_register
9437 with null_frame_id instead.
9438 * value.h (address_from_register): Update prototype.
9439 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9440 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9441 address_from_register interface change.
9442
71e50e83
YQ
94432014-04-17 Yao Qi <yao@codesourcery.com>
9444
9445 * gdbtypes.h: Update comments to link to types and macros'
9446 definitions.
9447
7a23c549
SC
94482014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9449
9450 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9451
22869d73
KS
94522014-04-16 Keith Seitz <keiths@redhat.com>
9453
9454 PR gdb/15827
9455 * dwarf2read.c (skip_one_die): Check that all relative-offset
9456 sibling DIEs fall within range of the current reader's buffer.
9457 (read_partial_die): Likewise.
9458
c4f87ca6
KS
94592014-04-16 Keith Seitz <keiths@redhat.com>
9460
9461 PR c++/16597
9462 * cp-namespace.c (lookup_symbol_file): If the type name of
9463 `this' is NULL, return immediately.
9464
b50c8614
KS
94652014-04-14 Keith Seitz <keiths@redhat.com>
9466
9467 PR c++/16253
9468 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9469 from symbol_matches_domain in symtab.c. All local callers
9470 of symbol_matches_domain updated.
9471 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9472 search STRUCT_DOMAIN.
9473 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9474 independently. standard_lookup will do that automatically.
9475 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9477 (cp_lookup_symbol_in_namespace): Likewise.
9478 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9479 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9480 may return a STRUCT_DOMAIN match.
9481 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9482 * cp-support.c: Include language.h.
9483 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9484 VAR_DOMAIN.
9485 * psymtab.c (match_partial_symbol): Compare the requested
9486 domain with the symbol's domain directly.
9487 (lookup_partial_symbol): Likewise.
9488 * symtab.c (lookup_symbol_in_language): Explain when/why
9489 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9490 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9491 appropriate languages.
9492 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9493 and moved to ada-lang.c
9494 (lookup_block_symbol): Explain that this function only returns
9495 symbol matching the requested DOMAIN.
9496 Compare the requested domain with the symbol's domain directly.
9497 (iterate_over_symbols): Compare the requested domain with the
9498 symbol's domain directly.
9499 * symtab.h (symbol_matches_domain): Remove.
9500
3d567982
TT
95012014-04-14 Tom Tromey <tromey@redhat.com>
9502
9503 PR c++/15246:
9504 * c-exp.y (type_aggregate_p): New function.
9505 (qualified_name, classify_inner_name): Use it.
9506 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9507 and TYPE_TARGET_TYPE of an enum type.
9508 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9509 an enum type.
9510 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9511 handle TYPE_DECLARED_CLASS.
9512 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9513 types.
9514 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9515 * valops.c (enum_constant_from_type): New function.
9516 (value_aggregate_elt): Use it.
9517 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9518 TYPE_CODE_ENUM.
9519
c848d642
TT
95202014-04-14 Tom Tromey <tromey@redhat.com>
9521
9522 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9523 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9524 const.
9525 * value.h (value_aggregate_elt): Update.
9526
0626fc76
TT
95272014-04-14 Tom Tromey <tromey@redhat.com>
9528
9529 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9530
5ecaaa66
SA
95312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9532
9533 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9534 (evaluate_subexp_standard): Pass noside argument.
9535 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9536 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9537 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9538 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9539 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9540
1612e0c0
SA
95412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9542
9543 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9544 points to a constant blob.
9545
c451ebe5
SA
95462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9547
9548 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9549 property and store it as the high bound and flag the range accordingly.
9550 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9551 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9552 * gdbtypes.h (enum range_flags): New enum.
9553 (struct range_bounds): Add flags member.
9554
1d42e4c4
SA
95552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9556
9557 * c-typeprint.c (c_type_print_varspec_suffix): Added
9558 check for not yet resolved high bound. If unresolved, print
9559 "variable length" string to the console instead of random
9560 length.
9561
9f1f738a
SA
95622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9563
9564 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9565 value.
9566 (ada_template_to_fixed_record_type_1): Likewise.
9567 (ada_to_fixed_type_1): Likewise.
9568 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9569 (cp_print_value): Likewise.
9570 * d-valprint.c (dynamic_array_type): Likewise.
9571 * findvar.c (address_of_variable): Likewise.
9572 * jv-valprint.c (java_value_print): Likewise.
9573 * valops.c (value_ind): Likewise.
9574 * value.c (coerce_ref): Likewise.
9575
3c8452d4
SA
95762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9577
9578 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9579 value and retrieve the dynamic type size.
9580
4ad88275
SA
95812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9582
9583 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9584 passed to sizeof is dynamic evaluate the argument to compute the length.
9585
80180f79
SA
95862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9587 Joel Brobecker <brobecker@adacore.com>
9588
9589 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9590 (dwarf2_evaluate_property): New function.
9591 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9592 * dwarf2read.c (attr_to_dynamic_prop): New function.
9593 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9594 attribute.
9595 * gdbtypes.c: Include dwarf2loc.h.
9596 (is_dynamic_type): New function.
9597 (resolve_dynamic_type): New function.
9598 (resolve_dynamic_bounds): New function.
9599 (get_type_length): New function.
9600 (check_typedef): Use get_type_length to compute type length.
9601 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9602 (TYPE_LOW_BOUND_KIND): New macro.
9603 (is_dynamic_type): New function prototype.
9604 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9605 to resolve dynamic properties of the type. Update comment.
9606 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9607
a1556843
RH
96082014-04-14 Richard Henderson <rth@redhat.com>
9609
9610 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9611
0be03e84
DE
96122014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9613 Doug Evans <xdje42@gmail.com>
9614
9615 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9616 dereference TYPE_CODE_REF values.
9617
6b662e19
JB
96182014-04-11 Joel Brobecker <brobecker@adacore.com>
9619
9620 Revert the following changes due to regressions:
9621
9622 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9623 (dwarf2_evaluate_property): New function.
9624 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9625 * dwarf2read.c (attr_to_dynamic_prop): New function.
9626 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9627 attribute.
9628 * gdbtypes.c: Include dwarf2loc.h.
9629 (is_dynamic_type): New function.
9630 (resolve_dynamic_type): New function.
9631 (resolve_dynamic_bounds): New function.
9632 (get_type_length): New function.
9633 (check_typedef): Use get_type_length to compute type length.
9634 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9635 (TYPE_LOW_BOUND_KIND): New macro.
9636 (is_dynamic_type): New function prototype.
9637 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9638 to resolve dynamic properties of the type. Update comment.
9639 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9640
9641 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9642 passed to sizeof is dynamic evaluate the argument to compute the length.
9643
9644 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9645 value and retrieve the dynamic type size.
9646
9647 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9648 (ada_template_to_fixed_record_type_1): Likewise.
9649 (ada_to_fixed_type_1): Likewise.
9650 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9651 (cp_print_value): Likewise.
9652 * d-valprint.c (dynamic_array_type): Likewise.
9653 * eval.c (evaluate_subexp_with_coercion): Likewise.
9654 * findvar.c (address_of_variable): Likewise.
9655 * jv-valprint.c (java_value_print): Likewise.
9656 * valops.c (value_ind): Likewise.
9657 * value.c (coerce_ref): Likewise.
9658
9659 * c-typeprint.c (c_type_print_varspec_suffix): Added
9660 check for not yet resolved high bound. If unresolved, print
9661 "variable length" string to the console instead of random
9662 length.
9663
9664 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9665 property and store it as the high bound and flag the range accordingly.
9666 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9667 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9668 * gdbtypes.h (enum range_flags): New enum.
9669 (struct range_bounds): Add flags member.
9670
9671 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9672 points to a constant blob.
9673
9674 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9675 (evaluate_subexp_standard): Pass noside argument.
9676 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9677 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9678 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9679 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9680 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9681
245a5f0b
KS
96822014-04-11 Keith Seitz <keiths@redhat.com>
9683
9684 PR c++/16675
9685 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9686 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9687 reference types.
9688
3bce8237
SA
96892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9690
9691 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9692 (evaluate_subexp_standard): Pass noside argument.
9693 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9694 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9695 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9696 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9697 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9698
92b09522
SA
96992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9700
9701 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9702 points to a constant blob.
9703
e1969afb
SA
97042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9705
9706 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9707 property and store it as the high bound and flag the range accordingly.
9708 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9709 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9710 * gdbtypes.h (enum range_flags): New enum.
9711 (struct range_bounds): Add flags member.
9712
b86138fb
SA
97132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9714
9715 * c-typeprint.c (c_type_print_varspec_suffix): Added
9716 check for not yet resolved high bound. If unresolved, print
9717 "variable length" string to the console instead of random
9718 length.
9719
bcd629a4
SA
97202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9721
9722 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9723 (ada_template_to_fixed_record_type_1): Likewise.
9724 (ada_to_fixed_type_1): Likewise.
9725 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9726 (cp_print_value): Likewise.
9727 * d-valprint.c (dynamic_array_type): Likewise.
9728 * eval.c (evaluate_subexp_with_coercion): Likewise.
9729 * findvar.c (address_of_variable): Likewise.
9730 * jv-valprint.c (java_value_print): Likewise.
9731 * valops.c (value_ind): Likewise.
9732 * value.c (coerce_ref): Likewise.
9733
04b19544
SA
97342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9735
9736 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9737 value and retrieve the dynamic type size.
9738
26cb189f
SA
97392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9740
9741 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9742 passed to sizeof is dynamic evaluate the argument to compute the length.
9743
37c1ab67
SA
97442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9745
9746 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9747 (dwarf2_evaluate_property): New function.
9748 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9749 * dwarf2read.c (attr_to_dynamic_prop): New function.
9750 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9751 attribute.
9752 * gdbtypes.c: Include dwarf2loc.h.
9753 (is_dynamic_type): New function.
9754 (resolve_dynamic_type): New function.
9755 (resolve_dynamic_bounds): New function.
9756 (get_type_length): New function.
9757 (check_typedef): Use get_type_length to compute type length.
9758 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9759 (TYPE_LOW_BOUND_KIND): New macro.
9760 (is_dynamic_type): New function prototype.
9761 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9762 to resolve dynamic properties of the type. Update comment.
9763 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9764
729efb13
SA
97652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9766
9767 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9768 declaring high/low bounds and change uses accordingly. Call
9769 create_range_type instead of create_static_range_type.
9770 * gdbtypes.c (create_range_type): New function.
9771 (create_range_type): Convert bounds into struct bound_prop and pass
9772 them to create_range_type.
9773 * gdbtypes.h (struct bound_prop): New struct.
9774 (create_range_type): New function prototype.
9775 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9776 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9777 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9778 part of the bound.
9779 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9780
0c9c3474
SA
97812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9782
9783 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9784 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9785 * ada-lang.c: All uses of create_range_type updated.
9786 * coffread.c: All uses of create_range_type updated.
9787 * dwarf2read.c: All uses of create_range_type updated.
9788 * f-exp.y: All uses of create_range_type updated.
9789 * m2-valprint.c: All uses of create_range_type updated.
9790 * mdebugread.c: All uses of create_range_type updated.
9791 * stabsread.c: All uses of create_range_type updated.
9792 * valops.c: All uses of create_range_type updated.
9793 * valprint.c: All uses of create_range_type updated.
9794
9d497a19
PA
97952014-04-10 Pedro Alves <palves@redhat.com>
9796
9797 * breakpoint.c (single_step_breakpoints)
9798 (single_step_gdbarch): Move up in the file.
9799 (one_breakpoint_xfer_memory): New function, factored out from ...
9800 (breakpoint_xfer_memory): ... here. Also process single-step
9801 breakpoints.
9802
15a9128a
TG
98032014-04-09 Tristan Gingold <gingold@adacore.com>
9804
9805 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9806 comments.
9807 (darwin_decode_exception_message): Free port only after use.
9808
9c97a070
PL
98092014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9810
9811 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9812 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9813 when setting the size of call_length.
9814
7af389b8
SC
98152014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9816
9817 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9818 dereference TYPE_CODE_REF values.
9819
86ad98c3
JB
98202014-04-07 Joel Brobecker <brobecker@adacore.com>
9821
9822 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9823 end of warning message.
9824
b0aeadb3
DE
98252014-04-03 Doug Evans <dje@google.com>
9826
9827 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9828 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9829
5979d6b6
AM
98302014-04-02 Alan Modra <amodra@gmail.com>
9831
9832 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9833 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9834 (struct symbol_file_add_from_memory_args): Add size field.
9835 (find_vdso_size): New function.
9836 (add_vsyscall_page): Attempt to find vdso size.
9837
0d60c288
DE
98382014-04-01 Doug Evans <dje@google.com>
9839
9840 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9841
a41f2563
TG
98422014-04-01 Tristan Gingold <gingold@adacore.com>
9843
9844 * darwin-nat.c (darwin_encode_reply): Add prototype.
9845 (darwin_decode_exception_message): Reply to unknown inferiors.
9846 (darwin_decode_message): Handle message by id. Ignore message
9847 to unknown inferior.
9848 (darwin_wait): Discard unknown messages, add debug trace.
9849
11a865c8
DE
98502014-03-31 Doug Evans <dje@google.com>
9851
9852 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9853 comp_dir_string.
9854
770e7fc7
DE
98552014-03-31 Doug Evans <dje@google.com>
9856
9857 New option "set print symbol-loading".
9858 * NEWS: Mention it.
9859 * solib.c (solib_read_symbols): Only print symbol loading messages
9860 if requested.
9861 (solib_add): If symbol loading is in "brief" mode, notify user
9862 symbols are being loaded.
9863 (reload_shared_libraries_1): Ditto.
9864 * symfile.c (print_symbol_loading_off): New static global.
9865 (print_symbol_loading_brief): New static global.
9866 (print_symbol_loading_full): New static global.
9867 (print_symbol_loading_enums): New static global.
9868 (print_symbol_loading): New static global.
9869 (print_symbol_loading_p): New function.
9870 (symbol_file_add_with_addrs): Only print symbol loading messages
9871 if requested.
9872 (_initialize_symfile): Register "print symbol-loading" set/show
9873 command.
9874 * symfile.h (print_symbol_loading_p): Declare.
9875
c32c64b7
DE
98762014-03-30 Doug Evans <xdje42@gmail.com>
9877
9878 * infrun.c (set_last_target_status): New function.
9879 (handle_inferior_event): Call it.
9880
7c0bc051
DE
98812014-03-30 Doug Evans <xdje42@gmail.com>
9882
9883 * inferior.h (enum stop_kind): Improve comment.
9884
8776cfe9
JB
98852014-03-28 Joel Brobecker <brobecker@adacore.com>
9886
9887 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9888 a reference, strip the reference layer before calling
9889 the lang_ops value_has_mutated callback.
9890
410a0ff2
SDJ
98912014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9892
9893 Remove some globals from our parser.
9894 * language.c (unk_lang_parser): Add "struct parser_state"
9895 argument.
9896 * language.h (struct language_defn) <la_parser>: Likewise.
9897 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9898 (initialize_expout): Add "struct parser_state" argument.
9899 Rewrite function to use the parser state.
9900 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9901 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9902 write_exp_elt_longcst, write_exp_elt_dblcst,
9903 write_exp_elt_decfloatcst, write_exp_elt_type,
9904 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9905 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9906 write_dollar_variable): Likewise.
9907 (parse_exp_in_context_1): Use parser state.
9908 (insert_type_address_space): Add "struct parser_state" argument.
9909 Use parser state.
9910 (increase_expout_size): New function.
9911 * parser-defs.h: Forward declare "struct language_defn" and
9912 "struct parser_state".
9913 (expout, expout_size, expout_ptr): Remove extern declarations.
9914 (parse_gdbarch, parse_language): Rewrite macro declarations to
9915 accept the parser state.
9916 (struct parser_state): New struct.
9917 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9918 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9919 write_exp_elt_decfloatcst, write_exp_elt_type,
9920 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9921 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9922 write_exp_msymbol, write_dollar_variable,
9923 mark_struct_expression, insert_type_address_space): Add "struct
9924 parser_state" argument.
9925 (increase_expout_size): New function.
9926 * utils.c (do_clear_parser_state): New function.
9927 (make_cleanup_clear_parser_state): Likewise.
9928 * utils.h (make_cleanup_clear_parser_state): New function
9929 prototype.
9930 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9931 Update calls to write_exp* in order to pass the parser state.
9932 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9933 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9934 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9935 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9936 * stap-probe.c (stap_parse_register_operand): Likewise.
9937 (stap_parse_single_operand): Likewise.
9938 (stap_parse_argument_1): Likewise.
9939 (stap_parse_argument): Use parser state.
9940 * stap-probe.h: Include "parser-defs.h".
9941 (struct stap_parse_info) <pstate>: New field.
9942 * c-exp.y (parse_type): Rewrite to use parser state.
9943 (yyparse): Redefine to c_parse_internal.
9944 (pstate): New global variable.
9945 (parse_number): Add "struct parser_state" argument.
9946 (write_destructor_name): Likewise.
9947 (type_exp): Update calls to write_exp* and similars in order to
9948 use parser state.
9949 (exp1, exp, variable, qualified_name, space_identifier,
9950 typename, typebase): Likewise.
9951 (write_destructor_name, parse_number, lex_one_token,
9952 classify_name, classify_inner_name, c_parse): Add "struct
9953 parser_state" argument. Update function to use parser state.
9954 * c-lang.h: Forward declare "struct parser_state".
9955 (c_parse): Add "struct parser_state" argument.
9956 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9957 (yyparse): Redefine macro to ada_parse_internal.
9958 (pstate): New variable.
9959 (write_int, write_object_renaming, write_var_or_type,
9960 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9961 type_int, type_long, type_long_long, type_float, type_double,
9962 type_long_double, type_char, type_boolean, type_system_address):
9963 Add "struct parser_state" argument.
9964 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9965 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9966 var_or_type, aggregate, aggregate_component_list,
9967 positional_list, others, component_group,
9968 component_associations): Update calls to write_exp* and similar
9969 functions in order to use parser state.
9970 (ada_parse, write_var_from_sym, write_int,
9971 write_exp_op_with_string, write_object_renaming,
9972 find_primitive_type, write_selectors, write_ambiguous_var,
9973 write_var_or_type, write_name_assoc, type_int, type_long,
9974 type_long_long, type_float, type_double, type_long_double,
9975 type_char, type_boolean, type_system_address): Add "struct
9976 parser_state" argument. Adjust function to use parser state.
9977 * ada-lang.c (parse): Likewise.
9978 * ada-lang.h: Forward declare "struct parser_state".
9979 (ada_parse): Add "struct parser_state" argument.
9980 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9981 calls to both functions.
9982 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9983 parser state.
9984 (yyparse): Redefine macro to f_parse_internal.
9985 (pstate): New variable.
9986 (parse_number): Add "struct parser_state" argument.
9987 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9988 and similars in order to use parser state.
9989 (parse_number): Adjust code to use parser state.
9990 (yylex): Likewise.
9991 (f_parse): New function.
9992 * f-lang.h: Forward declare "struct parser_state".
9993 (f_parse): Add "struct parser_state" argument.
9994 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9995 parser state.
9996 (yyparse): Redefine macro for java_parse_internal.
9997 (pstate): New variable.
9998 (push_expression_name, push_expression_name, insert_exp): Add
9999 "struct parser_state" argument.
10000 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10001 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10002 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10003 PostIncrementExpression, PostDecrementExpression,
10004 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10005 UnaryExpressionNotPlusMinus, CastExpression,
10006 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10007 RelationalExpression, EqualityExpression, AndExpression,
10008 ExclusiveOrExpression, InclusiveOrExpression,
10009 ConditionalAndExpression, ConditionalOrExpression,
10010 ConditionalExpression, Assignment, LeftHandSide): Update
10011 calls to write_exp* and similars in order to use parser state.
10012 (parse_number): Ajust code to use parser state.
10013 (yylex): Likewise.
10014 (java_parse): New function.
10015 (push_variable): Add "struct parser_state" argument. Adjust
10016 code to user parser state.
10017 (push_fieldnames, push_qualified_expression_name,
10018 push_expression_name, insert_exp): Likewise.
10019 * jv-lang.h: Forward declare "struct parser_state".
10020 (java_parse): Add "struct parser_state" argument.
10021 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10022 parser state.
10023 (yyparse): Redefine macro to m2_parse_internal.
10024 (pstate): New variable.
10025 (type_exp, exp, fblock, variable, type): Update calls to
10026 write_exp* and similars to use parser state.
10027 (yylex): Likewise.
10028 (m2_parse): New function.
10029 * m2-lang.h: Forward declare "struct parser_state".
10030 (m2_parse): Add "struct parser_state" argument.
10031 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10032 * objc-lang.h: Forward declare "struct parser_state".
10033 (end_msglist): Add "struct parser_state" argument.
10034 * p-exp.y (parse_type): Rewrite macro to use parser state.
10035 (yyparse): Redefine macro to pascal_parse_internal.
10036 (pstate): New variable.
10037 (parse_number): Add "struct parser_state" argument.
10038 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10039 write_exp* and similars in order to use parser state.
10040 (parse_number, yylex): Adjust code to use parser state.
10041 (pascal_parse): New function.
10042 * p-lang.h: Forward declare "struct parser_state".
10043 (pascal_parse): Add "struct parser_state" argument.
10044 * go-exp.y (parse_type): Rewrite macro to use parser state.
10045 (yyparse): Redefine macro to go_parse_internal.
10046 (pstate): New variable.
10047 (parse_number): Add "struct parser_state" argument.
10048 (type_exp, exp1, exp, variable, type): Update calls to
10049 write_exp* and similars in order to use parser state.
10050 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10051 to use parser state.
10052 (go_parse): Likewise.
10053 * go-lang.h: Forward declare "struct parser_state".
10054 (go_parse): Add "struct parser_state" argument.
10055
342587c4
DE
100562014-03-27 Doug Evans <dje@google.com>
10057
10058 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10059
33e80786
DE
100602014-03-27 Doug Evans <dje@google.com>
10061
10062 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10063 Remove argument abbrev_section. All callers updated.
10064
1dbab08b
DE
100652014-03-27 Doug Evans <dje@google.com>
10066
10067 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10068 addr_base, ranges_base.
10069
318d3177
KS
100702014-03-26 Keith Seitz <keiths@redhat.com>
10071
10072 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10073 types, not VAR_DOMAIN.
10074
1e54db15
SL
100752014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10076
10077 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10078 "ra" registers.
10079 * features/nios2-linux.c: Regenerated.
10080 * features/nios2.c: Regenerated.
10081
d3839ede
PA
100822014-03-25 Pedro Alves <palves@redhat.com>
10083
10084 * cli/cli-script.c (script_from_file): Force the interpreter to
10085 sync mode.
10086
7588d2ec
PL
100872014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10088
10089 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10090 small stack allocation.
10091
a6290449
TG
100922014-03-24 Tristan Gingold <gingold@adacore.com>
10093
10094 * darwin-nat.c (exc_server): Remove unused prototype.
10095 (darwin_dump_message): Correctly display data on x86_64.
10096 (darwin_encode_reply): Fix style.
10097 Add comments and fix indentation.
10098
31ae9d24 100992014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10100
10101 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10102
6339bfc4
DE
101032014-03-22 Doug Evans <xdje42@gmail.com>
10104
10105 * infcmd.c: Whitespace fixes.
10106 (interrupt_command): Merge two function comments into one.
10107
0a07590b
DE
101082014-03-22 Doug Evans <xdje42@gmail.com>
10109
10110 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10111 All uses updated.
10112
b55fbac4
YQ
101132014-03-22 Yao Qi <yao@codesourcery.com>
10114
10115 * remote.c (target_read_live_memory): Remove.
10116 (memory_xfer_live_readonly_partial): Rename it to
10117 remote_xfer_live_readonly_partial. Remove argument 'object'.
10118 All callers updated. Call remote_read_bytes_1
10119 instead of target_read_live_memory.
10120 * tracepoint.c (set_traceframe_number): Remove.
10121 (make_cleanup_restore_traceframe_number): Likewise .
10122 * tracepoint.h (set_traceframe_number): Remove declaration.
10123 (make_cleanup_restore_traceframe_number): Likewise.
10124
9217e74e
YQ
101252014-03-22 Yao Qi <yao@codesourcery.com>
10126
10127 * remote.c (remote_read_bytes): Move code on reading from the
10128 remote stub to ...
10129 (remote_read_bytes_1): ... here. New function.
10130
8acf9577
YQ
101312014-03-22 Yao Qi <yao@codesourcery.com>
10132
10133 * ctf.c (ctf_xfer_partial): Check the return value of
10134 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10135 return TARGET_XFER_UNAVAILABLE.
10136 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10137 * target.c (target_read_live_memory): Move it to remote.c.
10138 (memory_xfer_live_readonly_partial): Likewise.
10139 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10140 * remote.c (target_read_live_memory): Moved from target.c.
10141 (memory_xfer_live_readonly_partial): Likewise.
10142 (remote_read_bytes): Factored out from
10143 memory_xfer_partial_1.
10144
feef67ab
DE
101452014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10146
10147 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10148 NULL pointer.
10149
b65dc60b
PA
101502014-03-21 Pedro Alves <palves@redhat.com>
10151
10152 * infrun.c (normal_stop): Extend comment.
10153
b4ab256d
HZ
101542014-03-21 Hui Zhu <hui@codesourcery.com>
10155 Pedro Alves <palves@redhat.com>
10156
10157 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10158 static buffer.
10159 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10160 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10161 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10162
deba7593
MR
101632014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10164
10165 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10166 `z' formatted output modifier.
10167
1bff71c3
SDJ
101682014-03-20 Tom Tromey <tromey@redhat.com>
10169 Sergio Durigan Junior <sergiodj@redhat.com>
10170
10171 * probe.c (parse_probes): Turn assert into an ordinary error.
10172 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10173 exceptions when parsing probes. Rearrange the code for clarity.
10174
90e28950
TT
101752014-03-20 Tom Tromey <tromey@redhat.com>
10176
10177 PR gdb/14135
10178 * top.c (execute_command): Only dispatch events if the command
10179 started the target.
10180
beb460e8
PA
101812014-03-20 Tom Tromey <tromey@redhat.com>
10182
10183 PR cli/15718
10184 * infcall.c: Include event-top.h.
10185 (run_inferior_call): Call async_disable_stdin if needed.
10186
99619bea
PA
101872014-03-20 Pedro Alves <palves@redhat.com>
10188
10189 * infrun.c (prepare_to_proceed): Delete.
10190 (thread_still_needs_step_over): New function.
10191 (find_thread_needs_step_over): New function.
10192 (proceed): If the current thread needs a step-over, set its
10193 steping_over_breakpoint flag. Adjust to use
10194 find_thread_needs_step_over instead of prepare_to_proceed.
10195 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10196 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10197 breakpoint.
10198 (switch_back_to_stepped_thread): Step over breakpoints of all
10199 threads not the stepping thread, before switching back to the
10200 stepping thread.
10201
2adfaa28
PA
102022014-03-20 Pedro Alves <palves@redhat.com>
10203
10204 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10205 extern.
10206 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10207 * infrun.c (saved_singlestep_ptid)
10208 (stepping_past_singlestep_breakpoint): Delete.
10209 (resume): Remove stepping_past_singlestep_breakpoint handling.
10210 (proceed): Store the prev_pc of the stepping thread too.
10211 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10212 singlestep_pc.
10213 (enum infwait_states): Delete infwait_thread_hop_state.
10214 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10215 field.
10216 (handle_inferior_event): Adjust.
10217 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10218 handling and the thread-hop code. Before removing single-step
10219 breakpoints, check whether the thread hit a single-step breakpoint
10220 of another thread. If it did, the trap is not a random signal.
10221 (switch_back_to_stepped_thread): If the event thread hit a
10222 single-step breakpoint, unblock it before switching to the
10223 stepping thread. Handle the case of the stepped thread having
10224 advanced already.
10225 (keep_going): Handle the case of the current thread moving past a
10226 single-step breakpoint.
10227
31e77af2
PA
102282014-03-20 Pedro Alves <palves@redhat.com>
10229
10230 PR breakpoints/7143
10231 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10232 are being stepped over.
10233 (breakpoint_address_match): Make extern.
10234 * breakpoint.h (breakpoint_address_match): New declaration.
10235 * inferior.h (stepping_past_instruction_at): New declaration.
10236 * infrun.c (struct step_over_info): New type.
10237 (step_over_info): New global.
10238 (set_step_over_info, clear_step_over_info)
10239 (stepping_past_instruction_at): New functions.
10240 (handle_inferior_event): Clear the step-over info when
10241 trap_expected is cleared.
10242 (resume): Remove now stale comment.
10243 (clear_proceed_status): Clear step-over info.
10244 (proceed): Adjust step-over handling to set or clear the step-over
10245 info instead of removing all breakpoints.
10246 (handle_signal_stop): When setting up a thread-hop, don't remove
10247 breakpoints here.
10248 (stop_stepping): Clear step-over info.
10249 (keep_going): Adjust step-over handling to set or clear step-over
10250 info and then always inserting breakpoints, instead of removing
10251 all breakpoints when stepping over one.
10252
b9f437de
PA
102532014-03-20 Pedro Alves <palves@redhat.com>
10254
10255 * infrun.c (previous_inferior_ptid): Adjust comment.
10256 (deferred_step_ptid): Delete.
10257 (infrun_thread_ptid_changed, prepare_to_proceed)
10258 (init_wait_for_inferior): Adjust.
10259 (handle_signal_stop): Delete deferred_step_ptid handling.
10260
06c868a8
JK
102612014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 PR gdb/15358
10264 * defs.h (sync_quit_force_run): New declaration.
10265 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10266 * event-top.c (async_sigterm_handler): New declaration.
10267 (async_sigterm_token): New variable.
10268 (async_init_signals): Create also async_sigterm_token.
10269 (async_sigterm_handler): New function.
10270 (sync_quit_force_run): New variable.
10271 (handle_sigterm): Replace quit_force call by other calls.
10272 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10273
dea80df0
MR
102742014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10275
10276 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10277 offset into SPE pseudo registers.
10278
0c7e1a46
PA
102792014-03-18 Pedro Alves <palves@redhat.com>
10280
10281 PR gdb/13860
10282 * inferior.h (print_stop_event): Declare.
10283 * infrun.c (print_stop_event): New, factored out from ...
10284 (normal_stop): ... this.
10285 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10286 of bpstat_print/print_stack_frame.
10287
9c1fcd01
TT
102882014-03-17 Tom Tromey <tromey@redhat.com>
10289
10290 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10291
11aa919a
PMR
102922014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10293
10294 * ada-lang.c (decode_constrained_packed_array): Perform a
10295 minimal coercion for reference with coerce_ref instead of
10296 ada_coerce_ref.
10297
d4ccb5e0
TG
102982014-03-17 Tristan Gingold <gingold@adacore.com>
10299
10300 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10301 (darwin_solib_create_inferior_hook): Emit a warning if version
10302 is unhandled.
10303
49840f2a
UW
103042014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10305
10306 * python/py-value.c (get_field_flag): Cast flag_name argument to
10307 PyObject_GetAttrString to support Python 2.4.
10308
ed4123e5
JK
103092014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10312 (Global Maintainers): Remove Jan Kratochvil.
10313
d6b64346
PA
103142014-03-14 Pedro Alves <palves@redhat.com>
10315
10316 * inferior.h (terminal_ours_for_output): Rename to ...
10317 (child_terminal_ours_for_output): ... this.
10318 (terminal_save_ours): Rename to ...
10319 (child_terminal_save_ours): ... this.
10320 (terminal_ours): Rename to ...
10321 (child_terminal_ours): ... this.
10322 (terminal_inferior): Rename to ...
10323 (child_terminal_inferior): ... this.
10324 (terminal_init_inferior): Rename to ...
10325 (child_terminal_init_inferior): ... this.
10326 (terminal_init_inferior_with_pgrp): Rename to ...
10327 (child_terminal_init_inferior_with_pgrp): ... this.
10328 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10329 (child_terminal_init_with_pgrp): ... this.
10330 (terminal_save_ours): Rename to ...
10331 (child_terminal_save_ours): ... this.
10332 (terminal_init_inferior): Rename to ...
10333 (child_terminal_init): ... this. Adjust.
10334 (terminal_inferior): Rename to ...
10335 (child_terminal_inferior): ... this.
10336 (terminal_ours_for_output): Rename to ...
10337 (child_terminal_ours_for_output): ... this. Adjust.
10338 (terminal_ours): Rename to ...
10339 (child_terminal_ours): ... this.
10340 (terminal_ours_1): Rename to ...
10341 (child_terminal_ours_1): ... this. Adjust.
10342 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10343 * windows-nat.c (do_initial_windows_stuff): Adjust.
10344 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10345 (gnu_terminal_init): ... this. Adjust.
10346 (gnu_target): Adjust.
10347 * inf-child.c (inf_child_target): Adjust.
10348
5a1e8c7a
DE
103492014-03-13 Doug Evans <xdje42@gmail.com>
10350
10351 PR guile/16612
10352 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10353 new eq?-hashtab.
10354
350e1a76
DE
103552014-03-13 Doug Evans <xdje42@gmail.com>
10356
10357 * value.c (record_latest_value): Call release_value_or_incref
10358 instead of release_value.
10359
a69900ae
PA
103602014-03-13 Pedro Alves <palves@redhat.com>
10361
10362 * procfs.c (procfs_target): Don't override to_shortname,
10363 to_longname or to_doc.
10364
5db9f0bd
PA
103652014-03-13 Pedro Alves <palves@redhat.com>
10366
10367 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10368 Unix in user visible strings.
10369
5e3a2c38
SS
103702014-03-12 Stan Shebs <stan@codesourcery.com>
10371
10372 * gdbtypes.h: Annotate comments for Doxygen, add a page
10373 block comment with some general info.
10374
8bc2fe48
PA
103752014-03-12 Pedro Alves <palves@redhat.com>
10376
10377 * infcmd.c (prepare_execution_command): New function, factored out
10378 from several execution commands.
10379 (run_command_1, continue_command, step_1, jump_command)
10380 (signal_command, until_command, advance_command, finish_command)
10381 (attach_command): Use prepare_execution_command.
10382
638c5f49
OJ
103832014-03-12 Omair Javaid <omair.javaid@linaro.org>
10384
10385 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10386 (MAX_BPTS): Define.
10387 (MAX_WPTS): Define.
10388 (struct arm_linux_thread_points): Removed.
10389 (struct arm_linux_process_info): New.
10390 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10391 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10392 (arm_linux_find_breakpoints_by_tid): Removed.
10393 (struct arch_lwp_info): New.
10394 (arm_linux_find_process_pid): New functions.
10395 (arm_linux_add_process): New functions.
10396 (arm_linux_process_info_get): New functions.
10397 (arm_linux_forget_process): New function.
10398 (arm_linux_get_debug_reg_state): New function.
10399 (struct update_registers_data): New.
10400 (update_registers_callback): New function.
10401 (arm_linux_insert_hw_breakpoint1): Updated.
10402 (arm_linux_remove_hw_breakpoint1): Updated.
10403 (arm_linux_insert_hw_breakpoint): Updated.
10404 (arm_linux_remove_hw_breakpoint): Updated.
10405 (arm_linux_insert_watchpoint): Updated.
10406 (arm_linux_remove_watchpoint): Updated.
10407 (arm_linux_new_thread): Updated.
10408 (arm_linux_prepare_to_resume): New function.
10409 (arm_linux_new_fork): New function.
10410 (_initialize_arm_linux_nat): Updated.
10411
6d03af93
PA
104122014-03-12 Pedro Alves <palves@redhat.com>
10413
10414 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10415
b3ccfe11
TT
104162014-03-12 Tom Tromey <tromey@redhat.com>
10417
10418 * inf-child.c (return_zero): New function.
10419 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10420 * aix-thread.c (aix_thread_inferior_created): New function.
10421 (aix_thread_attach): Remove.
10422 (init_aix_thread_ops): Don't set to_attach.
10423 (_initialize_aix_thread): Register inferior_created observer.
10424 * corelow.c (init_core_ops): Don't set to_attach or
10425 to_create_inferior.
10426 * exec.c (init_exec_ops): Don't set to_attach or
10427 to_create_inferior.
10428 * infcmd.c (run_command_1): Use find_run_target. Make direct
10429 target calls.
10430 (attach_command): Use find_attach_target. Make direct target
10431 calls.
10432 * record-btrace.c (init_record_btrace_ops): Don't set
10433 to_create_inferior.
10434 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10435 Remove.
10436 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10437 set to_create_inferior.
10438 * target.c (complete_target_initialization): Add assertion.
10439 (target_create_inferior): Remove.
10440 (find_default_attach, find_default_create_inferior): Remove.
10441 (find_attach_target, find_run_target): New functions.
10442 (find_default_is_async_p, find_default_can_async_p)
10443 (target_supports_non_stop, target_attach): Remove.
10444 (init_dummy_target): Don't set to_create_inferior or
10445 to_supports_non_stop.
10446 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10447 TARGET_DEFAULT_FUNC.
10448 <to_create_inferior>: Add comment.
10449 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10450 TARGET_DEFAULT_RETURN.
10451 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10452 (find_attach_target, find_run_target): Declare.
10453 (target_create_inferior): Remove.
10454 (target_has_execution_1): Update comment.
10455 (target_supports_non_stop): Remove.
10456 * target-delegates.c: Rebuild.
10457
91f83b02
PA
104582014-03-12 Pedro Alves <palves@redhat.com>
10459
10460 * inf-child.h: Update comment to not mention Unix.
10461
f1aea813
PA
104622014-03-12 Pedro Alves <palves@redhat.com>
10463
10464 * inf-child.c: Update top comment to not mention Unix. Add
10465 generic comment describing how this target is meant to be used.
10466 (inf_child_post_attach, inf_child_post_startup_inferior)
10467 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10468 Unix in comment.
10469
ee8e9165
PA
104702014-03-12 Pedro Alves <palves@redhat.com>
10471
10472 * nto-procfs.c: Include inf-child.h.
10473 (procfs_ops): Delete global.
10474 (procfs_can_run): Delete method.
10475 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10476 target pointer instead of referencing procfs_ops.
10477 (procfs_prepare_to_store): Delete.
10478 (init_procfs_ops): Delete function.
10479 (procfs_target): New function, based on init_procfs_ops, but
10480 inherit inf_child_target.
10481 (_initialize_procfs): Use procfs_target.
10482
51a9c8c5
PA
104832014-03-12 Pedro Alves <palves@redhat.com>
10484
10485 * windows-nat.c: Include inf-child.h.
10486 (windows_ops): Delete global.
10487 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10488 methods.
10489 (init_windows_ops): Delete function.
10490 (windows_target): New function, based on init_windows_ops, but
10491 inherit inf_child_target.
10492 (_initialize_windows_nat): Use windows_target. Install x86
10493 specific target methods here.
10494
c1966e26
DE
104952014-03-10 Doug Evans <xdje42@gmail.com>
10496
10497 * guile/guile.c (call_initialize_gdb_module): New function.
10498 (initialize_guile): Replace call to scm_init_guile with call to
10499 scm_with_guile.
10500
023db19c
JB
105012014-03-10 Joel Brobecker <brobecker@adacore.com>
10502
10503 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10504 in call to TYPE_CODE macro.
10505
5ec18f2b
JG
105062014-03-10 Jerome Guitton <guitton@adacore.com>
10507
8668be63
JB
10508 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10509 Resolve tagged types to full view.
5ec18f2b 10510
7d03f2eb
HZ
105112014-03-10 Hui Zhu <hui@codesourcery.com>
10512
10513 * target.h (target_insert_breakpoint): Remove "hardware" from its
10514 comments.
10515
c5164cbc
DE
105162014-03-07 Doug Evans <dje@google.com>
10517
10518 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10519
c4a3fee2
DE
105202014-03-07 Doug Evans <dje@google.com>
10521
10522 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10523 Remove unused local comp_dir_attr. Assert exactly one of
10524 stub_comp_unit_die, stub_comp_dir is non-NULL.
10525
3156469c
JB
105262014-03-07 Joel Brobecker <brobecker@adacore.com>
10527
10528 * target.h (complete_target_initialization, add_target):
10529 Add comment.
10530
c1a7b7c6
PA
105312014-03-07 Pedro Alves <palves@redhat.com>
10532
10533 * go32-nat.c: Include inf-child.h.
10534 (go32_ops): Delete global.
10535 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10536 Delete methods.
10537 (go32_create_inferior): Push the passed in target pointer instead
10538 of referencing go32_ops.
10539 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10540 (go32_target): New function, based on init_go32_ops, but inherit
10541 inf_child_target.
10542 (_initialize_go32_nat): Use go32_target. Move parts of
10543 init_go32_ops here.
10544
d3c1a85f
JB
105452014-03-06 Joel Brobecker <brobecker@adacore.com>
10546
10547 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10548 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10549 SYMBOL_VALUE_ADDRESS.
10550 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10551
5fa1d40e
YQ
105522014-03-06 Yao Qi <yao@codesourcery.com>
10553
10554 * breakpoint.c (get_tracepoint_by_number): Remove argument
10555 optional_p. All callers updated. Adjust comments. Update
10556 output message.
10557 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10558
0c13193f
YQ
105592014-03-06 Yao Qi <yao@codesourcery.com>
10560
10561 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10562 early if get_number returns zero. Use 'p' instead of 'args'.
10563
2217da06
YQ
105642014-03-06 Yao Qi <yao@codesourcery.com>
10565
10566 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10567 message.
10568
cc3da688
YQ
105692014-03-06 Yao Qi <yao@codesourcery.com>
10570
10571 PR breakpoints/16508
10572 * tracepoint.c (check_trace_running): New function.
10573 (trace_find_command): Move code to check_trace_running and
10574 call check_trace_running.
10575 (trace_find_pc_command): Likewise.
10576 (trace_find_tracepoint_command): Likewise.
10577 (trace_find_line_command): Likewise.
10578 (trace_find_range_command): Likewise.
10579 * tracepoint.h (check_trace_running): Likewise.
10580 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10581
6a5f844b
YQ
105822014-03-06 Yao Qi <yao@codesourcery.com>
10583
10584 * target.h (struct target_ops) <to_traceframe_info>: Use
10585 TARGET_DEFAULT_NORETURN (tcomplain ()).
10586 * target-delegates.c: Regenerated.
10587
0f26cec1
PA
105882014-03-05 Pedro Alves <palves@redhat.com>
10589
10590 PR gdb/16575
10591 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10592 void. Update comment.
10593 (dcache_xfer_memory): Delete.
10594 (dcache_read_memory_partial): New, based on the read bits of
10595 dcache_xfer_memory.
10596 (dcache_update): Add status parameter. Use ULONGEST for len, and
10597 adjust. Discard cache lines if the reason for the update was
10598 error.
10599 * dcache.h (dcache_xfer_memory): Delete declaration.
10600 (dcache_read_memory_partial): New declaration.
10601 (dcache_update): Update prototype.
10602 * target.c (raw_memory_xfer_partial): Update the dcache here.
10603 (memory_xfer_partial_1): Don't handle dcache writes here.
10604
b2b255bd
MF
106052014-03-05 Mike Frysinger <vapier@gentoo.org>
10606
10607 * remote-sim.c (gdbsim_load): Add const to prog.
10608
5d9cf8a4
TT
106092014-03-03 Tom Tromey <tromey@redhat.com>
10610
10611 * elfread.c (probe_key): Change to bfd_data.
10612 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10613 now per-BFD, not per-objfile.
10614 * stap-probe.c (stap_probe_destroy): Update comment.
10615 (handle_stap_probe): Allocate on the per-BFD obstack.
10616
729662a5
TT
106172014-03-03 Tom Tromey <tromey@redhat.com>
10618
10619 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10620 * breakpoint.c (create_longjmp_master_breakpoint): Use
10621 get_probe_address.
10622 (add_location_to_breakpoint, bkpt_probe_insert_location)
10623 (bkpt_probe_remove_location): Update.
10624 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10625 * elfread.c (elf_symfile_relocate_probe): Remove.
10626 (elf_probe_fns): Update.
10627 (insert_exception_resume_breakpoint): Change type of "probe"
10628 parameter to bound_probe.
10629 (check_exception_resume): Update.
10630 * objfiles.c (objfile_relocate1): Don't relocate probes.
10631 * probe.c (bound_probe_s): New typedef.
10632 (parse_probes): Use get_probe_address. Set sal's objfile.
10633 (find_probe_by_pc): Return a bound_probe.
10634 (collect_probes): Return a VEC(bound_probe_s).
10635 (compare_probes): Update.
10636 (gen_ui_out_table_header_info): Change type of "probes"
10637 parameter. Update.
10638 (info_probes_for_ops): Update.
10639 (get_probe_address): New function.
10640 (probe_safe_evaluate_at_pc): Update.
10641 * probe.h (struct probe_ops) <get_probe_address>: New field.
10642 <set_semaphore, clear_semaphore>: Add objfile parameter.
10643 (struct probe) <objfile>: Remove field.
10644 <arch>: New field.
10645 <address>: Update comment.
10646 (struct bound_probe): New.
10647 (find_probe_by_pc): Return a bound_probe.
10648 (get_probe_address): Declare.
10649 * solib-svr4.c (struct probe_and_action) <address>: New field.
10650 (hash_probe_and_action, equal_probe_and_action): Update.
10651 (register_solib_event_probe): Add address parameter.
10652 (solib_event_probe_at): Update.
10653 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10654 get_probe_address.
10655 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10656 (stap_get_probe_address): New function.
10657 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10658 (compile_probe_arg): Update.
10659 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10660 address.
10661 (handle_stap_probe): Don't relocate the probe.
10662 (stap_relocate): Remove.
10663 (stap_gen_info_probes_table_values): Update.
10664 (stap_probe_ops): Remove stap_relocate.
10665 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10666 (debug_sym_probe_fns): Update.
10667 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10668 * symtab.c (init_sal): Use memset.
10669 * symtab.h (struct symtab_and_line) <objfile>: New field.
10670 * tracepoint.c (start_tracing, stop_tracing): Update.
10671
ff887920
TT
106722014-03-03 Tom Tromey <tromey@redhat.com>
10673
10674 * probe.h (parse_probes, find_probe_by_pc)
10675 (find_probes_in_objfile): Fix comments.
10676
f0407826
DE
106772014-03-02 Doug Evans <xdje42@gmail.com>
10678
10679 * infrun.c (handle_signal_stop): Replace test for
10680 TARGET_WAITKIND_STOPPED with an assert.
10681
35e6a711
DE
106822014-03-02 Doug Evans <xdje42@gmail.com>
10683
10684 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10685
667f9d0b
DE
106862014-03-02 Doug Evans <xdje42@gmail.com>
10687
10688 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10689
dc92ace0
MK
106902014-03-01 Mark Kettenis <kettenis@gnu.org>
10691
10692 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10693
a900370f
MK
106942014-03-01 Mark Kettenis <kettenis@gnu.org>
10695
10696 * i386obsd-nat.c: Include "obsd-nat.h".
10697 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10698 add_target.
10699 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10700
b72a7981
MK
107012014-03-01 Mark Kettenis <kettenis@gnu.org>
10702
10703 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10704
96c70aba
MK
107052014-03-01 Mark Kettenis <kettenis@gnu.org>
10706
10707 * mips64obsd-nat.c: Include "obsd-nath".
10708 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10709 add_target
10710 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10711
874a80af
MK
107122014-03-01 Mark Kettenis <kettenis@gnu.org>
10713
8fd408f1
MK
10714 * amd64obsd-nat.c: Include "obsd-nat,h.
10715 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10716 add_target.
874a80af
MK
10717 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10718
9cf95373
SC
107192014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10720
10721 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10722 (find_overload_match): Update call to find_oload_champ.
10723 (find_oload_champ_namespace_loop): Likewise
10724
863e4da4
MK
107252014-02-28 Mark Kettenis <kettenis@gnu.org>
10726
025cac40
MK
10727 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10728
1ed586ce
MK
10729 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10730 * config/sparc/obsd64.mh: New file.
10731 * sparc64obsd-nat.c: New file.
10732
863e4da4
MK
10733 * obsd-nat.h: New file.
10734 * obsd-nat.c: New file.
10735 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10736 (ALLDEPFILES): Add obsd-nat.c.
10737
89de4da4
TT
107382014-02-28 Tom Tromey <tromey@redhat.com>
10739
10740 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10741 * cli-out.h (cli_ui_out_impl): Now const.
10742 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10743 * ui-out.c (struct ui_out) <impl>: Now const.
10744 (default_ui_out_impl): Now const.
10745 (ui_out_new): Make 'impl' parameter const.
10746 * ui-out.h (ui_out_new): Update.
10747
c725e7b6
MK
107482014-02-27 Mark Kettenis <kettenis@gnu.org>
10749
10750 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10751
670b46b3
MK
107522014-02-27 Mark Kettenis <kettenis@gnu.org>
10753
10754 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10755
c91550fc
JK
107562014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10757
10758 Additional PR 8882 fix.
10759 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10760
2fa0369e
PA
107612014-02-27 Pedro Alves <palves@redhat.com>
10762
10763 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10764 isn't set.
10765
d632a097
PA
107662014-02-27 Pedro Alves <palves@redhat.com>
10767
10768 PR 12702
10769 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10770 * nat/linux-waitpid.c: Include string.h.
10771 (status_to_str): Moved here and made extern.
10772 * nat/linux-waitpid.h (status_to_str): New declaration.
10773
2ebd5a35
HZ
107742014-02-27 Hui Zhu <hui@codesourcery.com>
10775
10776 PR 12702
10777 * infrun.c (ptid_match): Move ...
10778 * common/ptid.c (ptid_match): ... here.
10779 * inferior.h (ptid_match): Move ...
10780 * common/ptid.h (ptid_match): ... here.
10781
3cdd631f
MK
107822014-02-27 Mark Kettenis <kettenis@gnu.org>
10783
10784 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10785 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10786 gdb_target_obs.
10787
bee30a64
MK
107882014-02-27 Mark Kettenis <kettenis@gnu.org>
10789
10790 * obsd-tdep.c (obsd_auxv_parse): New function.
10791 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10792
10793 * gdbarch.sh (auxv_parse): New.
10794 * gdbarch.h: Regenerated.
10795 * gdbarch.c: Regenerated.
10796 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10797
7a5a839f
LC
107982014-02-26 Ludovic Courtès <ludo@gnu.org>
10799
10800 * guile/scm-value.c (gdbscm_history_append_x): New function.
10801 (value_functions): Add it.
10802
31aa7e4e
JB
108032014-02-27 Joel Brobecker <brobecker@adacore.com>
10804
10805 * dwarf2read.c (attr_value_as_address): New function.
10806 (dwarf2_find_base_address, read_call_site_scope): Use
10807 attr_value_as_address in place of DW_ADDR.
10808 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10809 the low and high addresses. Slight rework of the handling
10810 of the high pc being a constant form, and limit it to
10811 DWARF verson 4 or higher.
10812 (dwarf2_record_block_ranges): Likewise.
10813 (read_partial_die): Likewise.
10814 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10815
9b333ba3
TT
108162014-02-26 Tom Tromey <tromey@redhat.com>
10817
10818 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10819
5f6cac40
TT
108202014-02-26 Tom Tromey <tromey@redhat.com>
10821
10822 * elfread.c (elf_read_minimal_symbols): Return early if
10823 minimal symbols have already been read. Add "ei" parameter.
10824 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10825 * minsyms.c (prim_record_minimal_symbol_full): Update.
10826 * objfiles.h (struct objstats) <n_minsyms>: Move...
10827 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10828 * symmisc.c (print_objfile_statistics): Update.
10829
2750ef27
TT
108302014-02-26 Tom Tromey <tromey@redhat.com>
10831
10832 * elfread.c (elf_read_minimal_symbols): New function, from
10833 elf_symfile_read.
10834 (elf_symfile_read): Call it.
10835
34643a32
TT
108362014-02-26 Tom Tromey <tromey@redhat.com>
10837
10838 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10839 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10840 (lookup_minimal_symbol_solib_trampoline)
10841 (lookup_minimal_symbol_by_pc_section_1)
10842 (lookup_minimal_symbol_and_objfile): Update.
10843 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10844 Don't allocate a minimal symbol if minsyms have already been read.
10845 (build_minimal_symbol_hash_tables): Update.
10846 (install_minimal_symbols): Do nothing if minsyms already read.
10847 Use the per-BFD obstack.
10848 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10849 * objfiles.c (allocate_objfile): Call
10850 terminate_minimal_symbol_table later.
10851 (have_minimal_symbols): Update.
10852 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10853 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10854 Move from struct objfile.
10855 <minsyms_read>: New field.
10856 (struct objfile) <msymbols, minimal_symbol_count,
10857 msymbol_hash, msymbol_demangled_hash>: Move.
10858 (ALL_OBJFILE_MSYMBOLS): Update.
10859 * symfile.c (read_symbols): Set minsyms_read.
10860 (reread_symbols): Update.
10861 * symmisc.c (dump_objfile, dump_msymbols): Update.
10862
2273f0ac
TT
108632014-02-26 Tom Tromey <tromey@redhat.com>
10864
10865 * minsyms.c (msymbols_sort): Remove.
10866 * minsyms.h (msymbols_sort): Remove.
10867 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10868 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10869 * elfread.c (elf_symtab_read): Don't add section offsets.
10870 * xcoffread.c (record_minimal_symbol): Don't add section offset
10871 to minimal symbol address.
10872 * somread.c (text_offset, data_offset): Remove.
10873 (som_symtab_read): Don't add section offsets to minimal symbol
10874 addresses.
10875 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10876 Don't add section offsets to minimal symbols.
10877 * coffread.c (coff_symtab_read): Don't add section offsets
10878 to minimal symbol addresses.
10879 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10880 to minimal symbol addresses.
10881 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10882 section offset to minimal symbol addresses.
10883 * mdebugread.c (parse_partial_symbols): Don't add section
10884 offset to minimal symbol addresses.
10885 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10886 offset to minimal symbol addresses.
10887
77e371c0
TT
108882014-02-26 Tom Tromey <tromey@redhat.com>
10889
10890 * ada-lang.c (ada_main_name): Update.
10891 (ada_add_standard_exceptions): Update.
10892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10893 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10894 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10895 * auxv.c (ld_so_xfer_auxv): Update.
10896 * avr-tdep.c (avr_scan_prologue): Update.
10897 * ax-gdb.c (gen_var_ref): Update.
10898 * blockframe.c (get_pc_function_start)
10899 (find_pc_partial_function_gnu_ifunc): Update.
10900 * breakpoint.c (create_overlay_event_breakpoint)
10901 (create_longjmp_master_breakpoint)
10902 (create_std_terminate_master_breakpoint)
10903 (create_exception_master_breakpoint): Update.
10904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10905 * c-valprint.c (c_val_print): Update.
10906 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10907 * common/agent.c (agent_look_up_symbols): Update.
10908 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10909 * dwarf2loc.c (call_site_to_target_addr): Update.
10910 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10911 * elfread.c (elf_gnu_ifunc_record_cache)
10912 (elf_gnu_ifunc_resolve_by_got): Update.
10913 * findvar.c (default_read_var_value): Update.
10914 * frame.c (inside_main_func): Update.
10915 * frv-tdep.c (frv_frame_this_id): Update.
10916 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10917 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10918 Update.
10919 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10920 (hppa_hpux_find_dummy_bpaddr): Update.
10921 * hppa-tdep.c (hppa_symbol_address): Update.
10922 * infcmd.c (until_next_command): Update.
10923 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10924 Update.
10925 * linespec.c (minsym_found, add_minsym): Update.
10926 * linux-nat.c (get_signo): Update.
10927 * linux-thread-db.c (inferior_has_bug): Update.
10928 * m32c-tdep.c (m32c_return_value)
10929 (m32c_m16c_address_to_pointer): Update.
10930 * m32r-tdep.c (m32r_frame_this_id): Update.
10931 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10932 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10933 * maint.c (maintenance_translate_address): Update.
10934 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10935 (frob_address): New function.
10936 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10937 frob_address. Rename parameter to "pc_in".
10938 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10939 addresses.
10940 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10941 Update.
10942 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10943 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10944 * objc-lang.c (find_objc_msgsend): Update.
10945 * objfiles.c (objfile_relocate1): Update.
10946 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10947 * p-valprint.c (pascal_val_print): Update.
10948 * parse.c (write_exp_msymbol): Update.
10949 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10950 (ppc_elfv2_skip_entrypoint): Update.
10951 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10952 * printcmd.c (build_address_symbolic, msym_info)
10953 (address_info): Update.
10954 * proc-service.c (ps_pglobal_lookup): Update.
10955 * psymtab.c (find_pc_sect_psymtab_closer)
10956 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10957 Change msymbol parameter to bound_minimal_symbol.
10958 * ravenscar-thread.c (get_running_thread_id): Update.
10959 * remote.c (remote_check_symbols): Update.
10960 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10961 address.
10962 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10963 * solib-dsbt.c (lm_base): Update.
10964 * solib-frv.c (lm_base, main_got): Update.
10965 * solib-irix.c (locate_base): Update.
10966 * solib-som.c (som_solib_create_inferior_hook)
10967 (link_map_start): Update.
10968 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10969 * solib-svr4.c (elf_locate_base, enable_break): Update.
10970 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10971 (flush_ea_cache): Update.
10972 * stabsread.c (define_symbol, scan_file_globals): Update.
10973 * stack.c (find_frame_funname): Update.
10974 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10975 (debug_qf_find_pc_sect_symtab): Update.
10976 * symfile.c (simple_read_overlay_table)
10977 (simple_overlay_update): Update.
10978 * symfile.h (struct quick_symbol_functions)
10979 <find_pc_sect_symtab>: Change type of msymbol to
10980 bound_minimal_symbol.
10981 * symmisc.c (dump_msymbols): Update.
10982 * symtab.c (find_pc_sect_symtab_via_partial)
10983 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10984 (search_symbols, print_msymbol_info): Update.
10985 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10986 (MSYMBOL_VALUE_ADDRESS): Redefine.
10987 (BMSYMBOL_VALUE_ADDRESS): New macro.
10988 * tracepoint.c (scope_info): Update.
10989 * tui/tui-disasm.c (tui_find_disassembly_address)
10990 (tui_get_begin_asm_address): Update.
10991 * valops.c (find_function_in_inferior): Update.
10992 * value.c (value_static_field, value_fn_field): Update.
10993
3b7344d5
TT
109942014-02-26 Tom Tromey <tromey@redhat.com>
10995
10996 * ada-lang.c (ada_update_initial_language): Update.
10997 (ada_main_name, ada_has_this_exception_support): Update.
10998 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10999 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11000 * arm-tdep.c (arm_skip_stub): Update.
11001 * auxv.c (ld_so_xfer_auxv): Update.
11002 * avr-tdep.c (avr_scan_prologue): Update.
11003 * ax-gdb.c (gen_var_ref): Update.
11004 * breakpoint.c (struct breakpoint_objfile_data)
11005 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11006 type to bound_minimal_symbol.
11007 (create_overlay_event_breakpoint)
11008 (create_longjmp_master_breakpoint)
11009 (create_std_terminate_master_breakpoint)
11010 (create_exception_master_breakpoint): Update.
11011 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11012 * c-exp.y (classify_name): Update.
11013 * coffread.c (coff_symfile_read): Update.
11014 * common/agent.c (agent_look_up_symbols): Update.
11015 * d-lang.c (d_main_name): Update.
11016 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11017 * dec-thread.c (enable_dec_thread): Update.
11018 * dwarf2loc.c (call_site_to_target_addr): Update.
11019 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11020 * eval.c (evaluate_subexp_standard): Update.
11021 * findvar.c (struct minsym_lookup_data) <result>: Change type
11022 to bound_minimal_symbol.
11023 <objfile>: Remove.
11024 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11025 * frame.c (inside_main_func): Update.
11026 * frv-tdep.c (frv_frame_this_id): Update.
11027 * gcore.c (call_target_sbrk): Update.
11028 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11029 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11030 Update.
11031 * go-lang.c (go_main_name): Update.
11032 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11033 (hppa_hpux_find_import_stub_for_addr): Update.
11034 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11035 Update. Change return type.
11036 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11037 type.
11038 * jit.c (jit_breakpoint_re_set_internal): Update.
11039 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11040 Update.
11041 * linux-nat.c (get_signo): Update.
11042 * linux-thread-db.c (inferior_has_bug): Update
11043 * m32c-tdep.c (m32c_return_value)
11044 (m32c_m16c_address_to_pointer): Update.
11045 * m32r-tdep.c (m32r_frame_this_id): Update.
11046 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11047 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11048 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11049 lookup_minimal_symbol. Change return type.
11050 (lookup_minimal_symbol): Remove.
11051 (lookup_bound_minimal_symbol): Update.
11052 (lookup_minimal_symbol_text): Change return type.
11053 (lookup_minimal_symbol_solib_trampoline): Change return type.
11054 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11055 (lookup_minimal_symbol_solib_trampoline): Change return type.
11056 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11057 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11058 (value_nsstring, find_imps): Update.
11059 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11060 * p-lang.c (pascal_main_name): Update.
11061 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11062 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11063 * proc-service.c (ps_pglobal_lookup): Update.
11064 * ravenscar-thread.c (get_running_thread_msymbol): Change
11065 return type.
11066 (has_ravenscar_runtime, get_running_thread_id): Update.
11067 * remote.c (remote_check_symbols): Update.
11068 * sol-thread.c (ps_pglobal_lookup): Update.
11069 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11070 * solib-dsbt.c (lm_base): Update.
11071 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11072 Update.
11073 * solib-irix.c (locate_base): Update.
11074 * solib-som.c (som_solib_create_inferior_hook)
11075 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11076 Update.
11077 * solib-spu.c (spu_enable_break): Update.
11078 * solib-svr4.c (elf_locate_base, enable_break): Update.
11079 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11080 (flush_ea_cache): Update.
11081 * stabsread.c (define_symbol): Update.
11082 * symfile.c (simple_read_overlay_table): Update.
11083 * symtab.c (find_pc_sect_line): Update.
11084 * tracepoint.c (scope_info): Update.
11085 * tui-disasm.c (tui_get_begin_asm_address): Update.
11086 * value.c (value_static_field): Update.
11087
40c1a007
TT
110882014-02-26 Tom Tromey <tromey@redhat.com>
11089
11090 * minsyms.c (prim_record_minimal_symbol_full): Use
11091 SET_MSYMBOL_VALUE_ADDRESS.
11092 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11093 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11094 SET_MSYMBOL_VALUE_ADDRESS.
11095 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11096 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11097
efd66ac6
TT
110982014-02-26 Tom Tromey <tromey@redhat.com>
11099
11100 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11101 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11102 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11103 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11104 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11105 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11106 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11107 * ada-lang.c (ada_main_name): Update.
11108 (ada_lookup_simple_minsym): Update.
11109 (ada_make_symbol_completion_list): Update.
11110 (ada_add_standard_exceptions): Update.
11111 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11112 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11113 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11114 * arm-tdep.c (skip_prologue_function): Update.
11115 (arm_skip_stack_protector, arm_skip_stub): Update.
11116 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11117 (arm_wince_skip_main_prologue): Update.
11118 * auxv.c (ld_so_xfer_auxv): Update.
11119 * avr-tdep.c (avr_scan_prologue): Update.
11120 * ax-gdb.c (gen_var_ref): Update.
11121 * block.c (call_site_for_pc): Update.
11122 * blockframe.c (get_pc_function_start): Update.
11123 (find_pc_partial_function_gnu_ifunc): Update.
11124 * breakpoint.c (create_overlay_event_breakpoint): Update.
11125 (create_longjmp_master_breakpoint): Update.
11126 (create_std_terminate_master_breakpoint): Update.
11127 (create_exception_master_breakpoint): Update.
11128 (resolve_sal_pc): Update.
11129 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11130 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11131 Update.
11132 * c-valprint.c (c_val_print): Update.
11133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11134 * coffread.c (coff_symfile_read): Update.
11135 * common/agent.c (agent_look_up_symbols): Update.
11136 * dbxread.c (find_stab_function_addr): Update.
11137 (end_psymtab): Update.
11138 * dwarf2loc.c (call_site_to_target_addr): Update.
11139 (func_verify_no_selftailcall): Update.
11140 (tailcall_dump): Update.
11141 (call_site_find_chain_1): Update.
11142 (dwarf_expr_reg_to_entry_parameter): Update.
11143 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11144 (elf_gnu_ifunc_resolve_by_got): Update.
11145 * f-valprint.c (info_common_command): Update.
11146 * findvar.c (read_var_value): Update.
11147 * frame.c (get_prev_frame_1): Update.
11148 (inside_main_func): Update.
11149 * frv-tdep.c (frv_skip_main_prologue): Update.
11150 (frv_frame_this_id): Update.
11151 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11152 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11153 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11154 (gnuv3_skip_trampoline): Update.
11155 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11156 (hppa64_hpux_in_solib_call_trampoline): Update.
11157 (hppa_hpux_skip_trampoline_code): Update.
11158 (hppa64_hpux_search_dummy_call_sequence): Update.
11159 (hppa_hpux_find_import_stub_for_addr): Update.
11160 (hppa_hpux_find_dummy_bpaddr): Update.
11161 * hppa-tdep.c (hppa_symbol_address)
11162 (hppa_lookup_stub_minimal_symbol): Update.
11163 * i386-tdep.c (i386_skip_main_prologue): Update.
11164 (i386_pe_skip_trampoline_code): Update.
11165 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11166 * infcall.c (get_function_name): Update.
11167 * infcmd.c (until_next_command): Update.
11168 * jit.c (jit_breakpoint_re_set_internal): Update.
11169 (jit_inferior_init): Update.
11170 * linespec.c (minsym_found): Update.
11171 (add_minsym): Update.
11172 * linux-fork.c (info_checkpoints_command): Update.
11173 * linux-nat.c (get_signo): Update.
11174 * linux-thread-db.c (inferior_has_bug): Update.
11175 * m32c-tdep.c (m32c_return_value): Update.
11176 (m32c_m16c_address_to_pointer): Update.
11177 (m32c_m16c_pointer_to_address): Update.
11178 * m32r-tdep.c (m32r_frame_this_id): Update.
11179 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11180 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11181 * maint.c (maintenance_translate_address): Update.
11182 * minsyms.c (add_minsym_to_hash_table): Update.
11183 (add_minsym_to_demangled_hash_table): Update.
11184 (msymbol_objfile): Update.
11185 (lookup_minimal_symbol): Update.
11186 (iterate_over_minimal_symbols): Update.
11187 (lookup_minimal_symbol_text): Update.
11188 (lookup_minimal_symbol_by_pc_name): Update.
11189 (lookup_minimal_symbol_solib_trampoline): Update.
11190 (lookup_minimal_symbol_by_pc_section_1): Update.
11191 (lookup_minimal_symbol_and_objfile): Update.
11192 (prim_record_minimal_symbol_full): Update.
11193 (compare_minimal_symbols): Update.
11194 (compact_minimal_symbols): Update.
11195 (build_minimal_symbol_hash_tables): Update.
11196 (install_minimal_symbols): Update.
11197 (terminate_minimal_symbol_table): Update.
11198 (find_solib_trampoline_target): Update.
11199 (minimal_symbol_upper_bound): Update.
11200 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11201 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11202 (mips_skip_pic_trampoline_code): Update.
11203 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11204 * objc-lang.c (selectors_info): Update.
11205 (classes_info): Update.
11206 (find_methods): Update.
11207 (find_imps): Update.
11208 (find_objc_msgsend): Update.
11209 * objfiles.c (objfile_relocate1): Update.
11210 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11211 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11212 * p-valprint.c (pascal_val_print): Update.
11213 * parse.c (write_exp_msymbol): Update.
11214 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11215 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11217 * printcmd.c (build_address_symbolic): Update.
11218 (sym_info): Update.
11219 (address_info): Update.
11220 * proc-service.c (ps_pglobal_lookup): Update.
11221 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11222 (find_pc_sect_psymtab): Update.
11223 * python/py-framefilter.c (py_print_frame): Update.
11224 * ravenscar-thread.c (get_running_thread_id): Update.
11225 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11226 Update.
11227 * remote.c (remote_check_symbols): Update.
11228 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11229 (rs6000_skip_trampoline_code): Update.
11230 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11231 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11232 * solib-dsbt.c (lm_base): Update.
11233 * solib-frv.c (lm_base): Update.
11234 (main_got): Update.
11235 * solib-irix.c (locate_base): Update.
11236 * solib-som.c (som_solib_create_inferior_hook): Update.
11237 (som_solib_desire_dynamic_linker_symbols): Update.
11238 (link_map_start): Update.
11239 * solib-spu.c (spu_enable_break): Update.
11240 (ocl_enable_break): Update.
11241 * solib-svr4.c (elf_locate_base): Update.
11242 (enable_break): Update.
11243 * spu-tdep.c (spu_get_overlay_table): Update.
11244 (spu_catch_start): Update.
11245 (flush_ea_cache): Update.
11246 * stabsread.c (define_symbol): Update.
11247 (scan_file_globals): Update.
11248 * stack.c (find_frame_funname): Update.
11249 (frame_info): Update.
11250 * symfile.c (simple_read_overlay_table): Update.
11251 (simple_overlay_update): Update.
11252 * symmisc.c (dump_msymbols): Update.
11253 * symtab.c (fixup_section): Update.
11254 (find_pc_sect_line): Update.
11255 (skip_prologue_sal): Update.
11256 (search_symbols): Update.
11257 (print_msymbol_info): Update.
11258 (rbreak_command): Update.
11259 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11260 (completion_list_objc_symbol): Update.
11261 (default_make_symbol_completion_list_break_on): Update.
11262 * tracepoint.c (scope_info): Update.
11263 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11264 (tui_get_begin_asm_address): Update.
11265 * valops.c (find_function_in_inferior): Update.
11266 * value.c (value_static_field): Update.
11267 (value_fn_field): Update.
11268
50e65b17
TT
112692014-02-26 Tom Tromey <tromey@redhat.com>
11270
11271 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11272 bound minimal symbols. Move code that knows about minsym
11273 table layout...
11274 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11275 function.
11276 * minsyms.h (minimal_symbol_upper_bound): Declare.
11277 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11278 minimal_symbol_upper_bound.
11279
1b588015
JB
112802014-02-27 Joel Brobecker <brobecker@adacore.com>
11281
11282 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11283 Use the type's name if its basic type does not have a tag.
11284
dbb9c2b1
JB
112852014-02-27 Joel Brobecker <brobecker@adacore.com>
11286
11287 * dwarf2read.c (read_subrange_type): Add comment.
11288
55426c9d
JB
112892014-02-27 Joel Brobecker <brobecker@adacore.com>
11290
11291 * dwarf2read.c (update_enumeration_type_from_children): New
11292 function, mostly extracted from process_structure_scope.
11293 (read_enumeration_type): Call update_enumeration_type_from_children.
11294 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11295 and flag_flag_enum fields.
11296
f2fce0ca
PA
112972014-02-26 Pedro Alves <palves@redhat.com>
11298
11299 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11300 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11301 to_xfer_partial method.
11302
7a44e40e
PA
113032014-02-26 Pedro Alves <palves@redhat.com>
11304
11305 * target.c (complete_target_initialization): Don't install
11306 default_xfer_partial as to_xfer_partial hook.
11307 (nomemory): Delete.
11308 (update_current_target): Don't INHERIT nor de_fault
11309 deprecated_xfer_memory. Delete de_fault macro.
11310 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11311 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11312 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11313 field.
11314
bd265cd0
PA
113152014-02-26 Pedro Alves <palves@redhat.com>
11316
11317 * go32-nat.c (my_write_child): New function.
11318 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11319 (go32_xfer_partial): New function.
11320 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11321 Instead install a to_xfer_partial hook.
11322
9d46c4e5
PA
113232014-02-26 Pedro Alves <palves@redhat.com>
11324
11325 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11326 to_xfer_partial helper. Rewrite.
11327 (procfs_xfer_partial): New function.
11328 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11329 Install a to_xfer_partial hook.
11330
a1583b1f
PA
113312014-02-26 Pedro Alves <palves@redhat.com>
11332
11333 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11334 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11335 (m32r_xfer_partial): New function.
11336 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11337 Install a to_xfer_partial hook.
11338
6df1b29f
PA
113392014-02-26 Pedro Alves <palves@redhat.com>
11340
11341 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11342 helper.
11343 (mips_xfer_partial): New function.
11344 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11345 hook. Install a to_xfer_partial hook.
11346
dc53a7ad
JB
113472014-02-26 Joel Brobecker <brobecker@adacore.com>
11348
11349 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11350 * gdbtypes.c (create_array_type_with_stride): New function,
11351 renaming create_array_type, but with an added parameter
11352 called "bit_stride".
11353 (create_array_type): Re-implement using
11354 create_array_type_with_stride.
11355 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11356 and DW_AT_bit_stride attributes.
11357
12ab52e9
PA
113582014-02-26 Pedro Alves <palves@redhat.com>
11359
11360 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11361 task-specific breakpoints.
11362
d16461ae
PA
113632014-02-25 Pedro Alves <palves@redhat.com>
11364
11365 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11366 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11367
a8b16220
SS
113682014-02-25 Stan Shebs <stan@codesourcery.com>
11369
11370 * defs.h: Annotate comments for Doxygen.
11371
b9e795ee
TT
113722014-02-25 Tom Tromey <tromey@redhat.com>
11373
11374 * target.h (target_ignore): Don't declare.
11375 * target.c (target_ignore): Remove.
11376
849c862e
JK
113772014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11378
11379 PR gdb/16626
11380 * auto-load.c (auto_load_objfile_script_1): Change filename to
11381 debugfile.
11382
475109d8
JB
113832014-02-25 Joel Brobecker <brobecker@adacore.com>
11384
11385 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11386 documentation. Adjust prototype to match the target_ops
11387 to_xfer_partial method. Adjust implementation accordingly.
11388
e186c3bd
HZ
113892014-02-25 Hui Zhu <hui@codesourcery.com>
11390
11391 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11392 to_traceframe_info.
11393
6d451942
KB
113942014-02-25 Kevin Buettner <kevinb@redhat.com>
11395
041ab8b4 11396 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11397 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11398 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11399 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11400 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11401 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11402 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11403 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11404 New constants.
11405 (rl78_register_type): Use a data pointer type for SP and
11406 new pseudo registers mentioned above. Use a 16 bit integer
11407 type for all other register pairs.
11408 (rl78_register_name, rl78_g10_register_name): Update for
11409 new pseudo registers.
11410 (rl78_pseudo_register_read): Likewise.
11411 (rl78_pseudo_register_write): Likewise.
11412 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11413 to the newly added pseudo registers.
11414
eddf0bae
DE
114152014-02-24 Doug Evans <dje@google.com>
11416
11417 * value.c (record_latest_value): Fix comment.
11418 * printcmd.c (print_command_1): Remove code to handle -1 return from
11419 record_latest_value.
11420
e96027e0
PA
114212014-02-24 Pedro Alves <palves@redhat.com>
11422
11423 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11424 deprecated_xfer_memory hook.
11425 (procfs_xfer_partial): Call procfs_xfer_memory instead
11426 of the deprecated_xfer_memory target hook.
11427 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11428 helper.
11429
0837c976
YZ
114302014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11431
11432 * windows-nat.c (windows_xfer_shared_libraries): Return
11433 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11434 requested object is TARGET_OBJECT_LIBRARIES.
11435
bc113b4e
YQ
114362014-02-24 Yao Qi <yao@codesourcery.com>
11437
11438 * target.h (enum target_xfer_status)
11439 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11440 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11441 explicitly. New.
11442 * corefile.c (memory_error_message): User updated.
11443 * exec.c (section_table_read_available_memory): Likewise.
11444 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11445 * target.c (target_xfer_status_to_string): Likewise.
11446 (raw_memory_xfer_partial): Likewise.
11447 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11448 * valops.c (read_value_memory): Likewise.
11449 * exec.h: Update comments.
11450
01cb8804
YQ
114512014-02-24 Yao Qi <yao@codesourcery.com>
11452
11453 * target.c (target_xfer_status_to_string): Rename argument err
11454 to status.
11455 * target.h (target_xfer_status_to_string): Update declaration.
11456 Replace target_xfer_error_to_string with
11457 target_xfer_status_to_string in comment.
11458
93063aa6
YQ
114592014-02-24 Yao Qi <yao@codesourcery.com>
11460
11461 * mips-linux-nat.c (super_close): Update its type.
11462 (mips_linux_close): Pass 'self' to super_close.
11463
5c328c05
YQ
114642014-02-24 Yao Qi <yao@codesourcery.com>
11465
11466 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11467 * corefile.c (read_memory): Adjusted.
11468 * target.c (target_write_with_progress): Adjusted.
11469
f73023dd
YQ
114702014-02-23 Yao Qi <yao@codesourcery.com>
11471
11472 Revert two patches:
11473
11474 2013-10-25 Yao Qi <yao@codesourcery.com>
11475
11476 * remote.c (remote_traceframe_info): Return early if
11477 traceframe is not selected.
11478
11479 2013-07-19 Yao Qi <yao@codesourcery.com>
11480
11481 * target.c (update_current_target): Change the default action
11482 of 'to_traceframe_info' from tcomplain to return_zero.
11483 * target.h (struct target_ops) <to_traceframe_info>: Add more
11484 comments.
11485
5a2eb0ef
YQ
114862014-02-23 Yao Qi <yao@codesourcery.com>
11487
11488 * valops.c (read_value_memory): Rewrite it. Call
11489 target_xfer_partial in a loop.
11490 * exec.h (section_table_available_memory): Remove declaration.
11491 Move comments to ...
11492 * exec.c (section_table_available_memory): ... here. Make it
11493 static.
11494
1ee79381
YQ
114952014-02-23 Yao Qi <yao@codesourcery.com>
11496
11497 * exec.c (section_table_read_available_memory): New function.
11498 * exec.h (section_table_read_available_memory): Declare.
11499 * ctf.c (ctf_xfer_partial): Call
11500 section_table_read_available_memory.
11501 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11502
1ca49d37
YQ
115032014-02-23 Yao Qi <yao@codesourcery.com>
11504
11505 * ctf.c (ctf_xfer_partial): Move code to ...
11506 * exec.c (exec_read_partial_read_only): ... it. New function.
11507 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11508 * tracefile.c: Include "exec.h".
11509 * exec.h (exec_read_partial_read_only): Declare.
11510
a283690e
YQ
115112014-02-23 Yao Qi <yao@codesourcery.com>
11512
11513 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11514 (tfile_has_memory): Remove.
11515 (init_tfile_ops): Don't set fields to_has_all_memory and
11516 to_has_memory of tfile_ops.
11517 * tracefile.c (tracefile_has_all_memory): New function.
11518 (tracefile_has_memory): New function.
11519 (init_tracefile_ops): Initialize fields to_has_all_memory and
11520 to_has_memory of 'ops'.
11521
12e03cd0
YQ
115222014-02-23 Yao Qi <yao@codesourcery.com>
11523
11524 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11525 (ctf_thread_alive, ctf_get_trace_status): Remove.
11526 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11527 init_tracefile_ops.
11528 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11529 (tfile_has_stack, tfile_has_registers): Remove.
11530 (tfile_thread_alive): Remove.
11531 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11532 init_tracefile_ops.
11533 * tracefile.c (tracefile_has_stack): New function.
11534 (tracefile_has_registers): New function.
11535 (tracefile_thread_alive): New function.
11536 (tracefile_get_trace_status): New function.
11537 (init_tracefile_ops): New function.
11538 * tracefile.h (init_tracefile_ops): Declare.
11539
11395323
YQ
115402014-02-23 Yao Qi <yao@codesourcery.com>
11541
11542 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11543 (O_LARGEFILE): Likewise.
11544 (tfile_ops): Likewise.
11545 (TRACE_HEADER_SIZE): Likewise.
11546 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11547 (cur_data_size): Likewise.
11548 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11549 (tfile_close, tfile_files_info): Likewise.
11550 (tfile_get_trace_status): Likewise.
11551 (tfile_get_tracepoint_status): Likewise.
11552 (tfile_get_traceframe_address): Likewise.
11553 (tfile_trace_find, match_blocktype): Likewise.
11554 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11555 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11556 (tfile_get_trace_state_variable_value): Likewise.
11557 (tfile_has_all_memory, tfile_has_memory): Likewise.
11558 (tfile_has_stack, tfile_has_registers): Likewise.
11559 (tfile_thread_alive, build_traceframe_info): Likewise.
11560 (tfile_traceframe_info, init_tfile_ops): Likewise.
11561 (_initialize_tracepoint): Don't call init_tfile_ops
11562 and add_target_with_completer.
11563 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11564 exec.h, completer.h and filenames.h.
11565 (_initialize_tracefile_tfile): New function.
11566
7951c4eb
YQ
115672014-02-23 Yao Qi <yao@codesourcery.com>
11568
11569 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11570 tracefile-tfile.o.
11571 (HFILES_NO_SRCDIR): Add tracefile.h.
11572 * ctf.c: Include "tracefile.h".
11573 * tracefile.h: New file.
11574 * tracefile.c: New file
11575 * tracefile-tfile.c: New file.
11576 * tracepoint.c: Include "tracefile.h".
11577 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11578 (stop_reason_names): Add const.
11579 (trace_file_writer_xfree): Move it to tracefile.c.
11580 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11581 (trace_save_ctf): Likewise.
11582 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11583 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11584 (tfile_write_header, tfile_write_regblock_type): Likewise.
11585 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11586 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11587 (tfile_write_raw_data, tfile_end): Likewise.
11588 (tfile_trace_file_writer_new): Likewise.
11589 (free_uploaded_tp): Make it extern.
11590 (free_uploaded_tsv): Make it extern.
11591 (_initialize_tracepoint): Move code to register command 'tsave'
11592 to tracefile.c.
11593 * tracepoint.h (stop_reason_names): Declare.
11594 (struct trace_frame_write_ops): Move it to tracefile.h.
11595 (struct trace_file_write_ops): Likewise.
11596 (struct trace_file_writer): Likewise.
11597 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11598
184cd072
JK
115992014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11600
11601 PR gdb/16594
11602 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11603 process name.
11604 (get_cores_used_by_process): New parameter num_cores, use it.
11605 (linux_xfer_osdata_processes): Pass num_cores to it.
11606 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11607 process name.
11608
c63528fc
AK
116092014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11610
11611 * target.c (memory_xfer_partial): Fix length arg in call to
11612 breakpoint_xfer_memory.
11613
d7b30f67
SDJ
116142014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11615
11616 PR tdep/16397
11617 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11618 number comes after the + or - signs. Adjust length of register
11619 name to be extracted.
11620
8838afaf
TT
116212014-02-20 Tom Tromey <tromey@redhat.com>
11622
11623 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11624 (ada_varobj_ops): Mark "extern".
11625
05227d14
TT
116262014-02-20 Tom Tromey <tromey@redhat.com>
11627
11628 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11629
1254eefc
DE
116302014-02-20 Doug Evans <xdje42@gmail.com>
11631
11632 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11633 All callers updated.
11634 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11635 All callers updated.
11636 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11637 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11638
adde2bff
DE
116392014-02-20 lin zuojian <manjian2006@gmail.com>
11640 Joel Brobecker <brobecker@adacore.com>
11641 Doug Evans <xdje42@gmail.com>
11642
11643 PR symtab/16581
11644 * dwarf2read.c (struct die_info): New member in_process.
11645 (reset_die_in_process): New function.
11646 (process_die): Set it at the start, reset when returning.
11647 (inherit_abstract_dies): Only call process_die if origin_child_die
11648 not already being processed.
11649
3be75f87
JB
116502014-02-20 Joel Brobecker <brobecker@adacore.com>
11651
11652 * windows-nat.c (handle_unload_dll): Add function documentation.
11653 (do_initial_windows_stuff): Add comment explaining why we wait
11654 until after inferior initialization has finished before
11655 processing all DLLs.
11656
47f7ffdb
JB
116572014-02-20 Joel Brobecker <brobecker@adacore.com>
11658
11659 * windows-nat.c (get_module_name): Delete.
11660 (windows_get_exec_module_filename): New function, mostly
11661 inspired from get_module_name.
11662 (windows_pid_to_exec_file): Replace call to get_module_name
11663 by call to windows_get_exec_module_filename.
11664
1cd9feab
JB
116652014-02-20 Joel Brobecker <brobecker@adacore.com>
11666
11667 * windows-nat.c (handle_load_dll): Rewrite this function's
11668 introductory comment. Remove code using get_module_name
11669 to get the DLL's name.
11670
ea39ad35
JB
116712014-02-20 Joel Brobecker <brobecker@adacore.com>
11672
11673 * windows-nat.c (get_windows_debug_event): Ignore
11674 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11675 if windows_initialization_done == 0.
11676 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11677 Adjust implementation to always load all DLLs.
11678 (do_initial_windows_stuff): Replace call to
11679 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11680
95060284
JB
116812014-02-20 Joel Brobecker <brobecker@adacore.com>
11682
11683 * windows-nat.c (_initialize_windows_nat): Deprecate the
11684 "dll-symbols" command. Turn the "add-shared-symbol-files"
11685 and "assf" aliases into commands, and deprecate them as well.
11686 * NEWS: Add entry explaining that "dll-symbols" and its two
11687 aliases are now deprecated.
11688
8d4fdb12
JB
116892014-02-20 Joel Brobecker <brobecker@adacore.com>
11690
11691 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11692 new-line in debug string. Remove trailing spaces.
11693
1b281443
SS
116942014-02-19 Stan Shebs <stan@codesourcery.com>
11695
11696 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11697
f7bd0f78
SC
116982014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11699
11700 * NEWS: Add entry for the new feature
11701 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11702 and class values.
11703
399ebc3d
SS
117042014-02-19 Stan Shebs <stan@codesourcery.com>
11705
11706 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11707
c658158d
PA
117082014-02-19 Pedro Alves <palves@redhat.com>
11709
11710 * common/ptid.h (struct ptid): Mention that process_stratum
11711 targets should prefer ptid.lwp.
11712
ba348170
PA
117132014-02-19 Pedro Alves <palves@redhat.com>
11714
11715 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11716 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11717 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11718 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11719 store remote thread ids rather than ptid.tid.
11720 (_initialize_remote): Adjust.
11721
ac01945b
TT
117222014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target.c (target_get_unwinder): Rewrite.
11725 (target_get_tailcall_unwinder): Rewrite.
11726 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11727 (record_btrace_to_get_tailcall_unwinder): New function.
11728 (init_record_btrace_ops): Update.
11729 * target.h (struct target_ops) <to_get_unwinder,
11730 to_get_tailcall_unwinder>: Now function pointers. Use
11731 TARGET_DEFAULT_RETURN.
11732
8476dc92
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11736 argument.
11737 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11738
c0eca49f
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11742 directly.
11743 * target-delegates.c: Rebuild.
11744 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11745 TARGET_DEFAULT_FUNC.
11746 * target.c (default_target_decr_pc_after_break): Rename from
11747 forward_target_decr_pc_after_break. Simplify.
11748 (target_decr_pc_after_break): Rely on delegation.
11749
596b6b39
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target.c (update_current_target): Do not INHERIT to_doc or
11753 to_magic. Do not de_fault to_open or to_close.
11754
b427c1bc
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * gcore.h (objfile_find_memory_regions): Declare.
11758 * gcore.c (objfile_find_memory_regions): No longer static. Add
11759 "self" argument.
11760 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11761 * exec.c: Include gcore.h.
11762 (exec_set_find_memory_regions): Remove.
11763 (exec_find_memory_regions): Remove.
11764 (exec_do_find_memory_regions): Remove.
11765 (init_exec_ops): Update.
11766 * defs.h (exec_set_find_memory_regions): Remove.
11767
9b144037
TT
117682014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target-delegates.c: Rebuild.
11771 * target.h (struct target_ops) <to_extra_thread_info,
11772 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11773 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11774 not 0, in TARGET_DEFAULT_RETURN.
11775
555bbdeb
TT
117762014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target.c (complete_target_initialization): Remove casts. Use
11779 return_zero_has_execution.
11780 (return_zero): Add "ignore" argument.
11781 (return_zero_has_execution): New function.
11782 (init_dummy_target): Remove casts. Use
11783 return_zero_has_execution.
11784
be4ddd36
TT
117852014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target.c (update_current_target): Update comments. Do not
11788 INHERIT to_stratum.
11789
2117c711
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11793 needed.
11794 * corelow.c (core_read_description): Delegate when needed.
11795 * remote.c (remote_read_description): Delegate when needed.
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_read_description): Rewrite.
11798 * target.h (struct target_ops) <to_read_description>: Update
11799 comment. Use TARGET_DEFAULT_RETURN.
11800
e88ef65c
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_can_run.
11806 (find_default_run_target): Check against delegate_can_run.
11807 * target.h (struct target_ops) <to_can_run>: Use
11808 TARGET_DEFAULT_RETURN.
11809
86a0854a
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_disconnect): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_disconnect>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
ee97f592
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * record.c (record_stop): Unconditionally delegate.
11820 * target-delegates.c: Rebuild.
11821 * target.c (target_stop_recording): Unconditionally delegate.
11822 * target.h (struct target_ops) <to_stop_recording>: Use
11823 TARGET_DEFAULT_IGNORE.
11824
6dc7fcf4
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (target_enable_btrace): Unconditionally delegate.
11829 * target.h (struct target_ops) <to_enable_btrace>: Use
11830 TARGET_DEFAULT_NORETURN.
11831
eb5b20d4
TT
118322014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target-delegates.c: Rebuild.
11835 * target.c (target_read_btrace): Unconditionally delegate.
11836 * target.h (struct target_ops) <to_read_btrace>: Use
11837 TARGET_DEFAULT_NORETURN.
11838
9ace480d
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (target_teardown_btrace): Unconditionally delegate.
11843 * target.h (struct target_ops) <to_teardown_btrace>: Use
11844 TARGET_DEFAULT_NORETURN.
11845
8dc292d3
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (target_disable_btrace): Unconditionally delegate.
11850 * target.h (struct target_ops) <to_disable_btrace>: Use
11851 TARGET_DEFAULT_NORETURN.
11852
58a5184e
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (default_search_memory): New function.
11857 (simple_search_memory): Update comment.
11858 (target_search_memory): Unconditionally delegate.
11859 * target.h (struct target_ops) <to_search_memory>: Use
11860 TARGET_DEFAULT_FUNC.
11861
8de71aab
TT
118622014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * auxv.c (default_auxv_parse): No longer static.
11865 (target_auxv_parse): Unconditionally delegate.
11866 * auxv.h (default_auxv_parse): Declare.
11867 * target-delegates.c: Rebuild.
11868 * target.c: Include auxv.h.
11869 * target.h (struct target_ops) <to_auxv_parse>: Use
11870 TARGET_DEFAULT_FUNC.
11871
6b2c5a57
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (target_memory_map): Unconditionally delegate.
11876 * target.h (struct target_ops) <to_memory_map>: Use
11877 TARGET_DEFAULT_RETURN.
11878
cbffc065
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_thread_alive): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_thread_alive>: Use
11884 TARGET_DEFAULT_RETURN.
11885
f09e2107
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_save_record): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_save_record>: Use
11891 TARGET_DEFAULT_NORETURN.
11892
07366925
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_delete_record): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_delete_record>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
dd2e9d25
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_record_is_replaying): Unconditionally
11904 delegate.
11905 * target.h (struct target_ops) <to_record_is_replaying>: Use
11906 TARGET_DEFAULT_RETURN.
11907
671e76cc
TT
119082014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (target_goto_record_begin): Unconditionally delegate.
11912 * target.h (struct target_ops) <to_goto_record_begin>: Use
11913 TARGET_DEFAULT_NORETURN.
11914
e9179bb3
TT
119152014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target-delegates.c: Rebuild.
11918 * target.c (target_goto_record_end): Unconditionally delegate.
11919 * target.h (struct target_ops) <to_goto_record_end>: Use
11920 TARGET_DEFAULT_NORETURN.
11921
05969c84
TT
119222014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target-delegates.c: Rebuild.
11925 * target.c (target_goto_record): Unconditionally delegate.
11926 * target.h (struct target_ops) <to_goto_record>: Use
11927 TARGET_DEFAULT_NORETURN.
11928
3679abfa
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target-delegates.c: Rebuild.
11932 * target.c (target_insn_history): Unconditionally delegate.
11933 * target.h (struct target_ops) <to_insn_history>: Use
11934 TARGET_DEFAULT_NORETURN.
11935
8444ab58
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (target_insn_history_from): Unconditionally delegate.
11940 * target.h (struct target_ops) <to_insn_history_from>: Use
11941 TARGET_DEFAULT_NORETURN.
11942
c29302cc
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (target_insn_history_range): Unconditionally delegate.
11947 * target.h (struct target_ops) <to_insn_history_range>: Use
11948 TARGET_DEFAULT_NORETURN.
11949
170049d4
TT
119502014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target-delegates.c: Rebuild.
11953 * target.c (target_call_history): Unconditionally delegate.
11954 * target.h (struct target_ops) <to_call_history>: Use
11955 TARGET_DEFAULT_NORETURN.
11956
16fc27d6
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target-delegates.c: Rebuild.
11960 * target.c (target_call_history_from): Unconditionally delegate.
11961 * target.h (struct target_ops) <to_call_history_from>: Use
11962 TARGET_DEFAULT_NORETURN.
11963
115d9817
TT
119642014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target-delegates.c: Rebuild.
11967 * target.c (target_call_history_range): Unconditionally delegate.
11968 * target.h (struct target_ops) <to_call_history_range>: Use
11969 TARGET_DEFAULT_NORETURN.
11970
eb276a6b
TT
119712014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * target-delegates.c: Rebuild.
11974 * target.c (target_verify_memory): Unconditionally delegate.
11975 * target.h (struct target_ops) <to_verify_memory>: Use
11976 TARGET_DEFAULT_NORETURN.
11977
9e538d0d
TT
119782014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target-delegates.c: Rebuild.
11981 * target.c (target_core_of_thread): Unconditionally delegate.
11982 * target.h (struct target_ops) <to_core_of_thread>: Use
11983 TARGET_DEFAULT_RETURN.
11984
f6fb2925
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target-delegates.c: Rebuild.
11988 * target.c (target_flash_done): Unconditionally delegate.
11989 * target.h (struct target_ops) <to_flash_done>: Use
11990 TARGET_DEFAULT_NORETURN.
11991
e8a6c6ac
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_flash_erase): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_flash_erase>: Use
11997 TARGET_DEFAULT_NORETURN.
11998
7e35c012
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target-delegates.c: Rebuild.
12002 * target.c (target_get_section_table): Unconditionally delegate.
12003 * target.h (struct target_ops) <to_get_section_table>: Use
12004 TARGET_DEFAULT_RETURN.
12005
770234d3
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target-delegates.c: Rebuild.
12009 * target.c (target_pid_to_str): Unconditionally delegate.
12010 (init_dummy_target): Don't initialize to_pid_to_str.
12011 (default_pid_to_str): Rename from dummy_pid_to_str.
12012 * target.h (struct target_ops) <to_pid_to_str>: Use
12013 TARGET_DEFAULT_FUNC.
12014
09b0dc2b
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target-delegates.c: Rebuild.
12018 * target.c (target_find_new_threads): Unconditionally delegate.
12019 * target.h (struct target_ops) <to_find_new_threads>: Use
12020 TARGET_DEFAULT_RETURN.
12021
7d4f8efa
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target-delegates.c: Rebuild.
12025 * target.c (target_program_signals): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_program_signals>: Use
12027 TARGET_DEFAULT_IGNORE.
12028
035cad7f
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (target_pass_signals): Unconditionally delegate.
12033 * target.h (struct target_ops) <to_pass_signals>: Use
12034 TARGET_DEFAULT_IGNORE.
12035
8d657035
TT
120362014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (default_mourn_inferior): New function.
12040 (target_mourn_inferior): Unconditionally delegate.
12041 * target.h (struct target_ops) <to_mourn_inferior>: Use
12042 TARGET_DEFAULT_FUNC.
12043
098dba18
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (default_follow_fork): New function.
12048 (target_follow_fork): Unconditionally delegate.
12049 * target.h (struct target_ops) <to_follow_fork>: Use
12050 TARGET_DEFAULT_FUNC.
12051
423a4807
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (target_kill): Unconditionally delegate.
12056 * target.h (struct target_ops) <to_kill>: Use
12057 TARGET_DEFAULT_NORETURN.
12058
6c7e5e5c
TT
120592014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target-delegates.c: Rebuild.
12062 * target.c (target_masked_watch_num_registers): Unconditionally
12063 delegate.
12064 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12065 Use TARGET_DEFAULT_RETURN.
12066
8b1c364c
TT
120672014-02-19 Tom Tromey <tromey@redhat.com>
12068
12069 * target-delegates.c: Rebuild.
12070 * target.c (target_remove_mask_watchpoint): Unconditionally
12071 delegate.
12072 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12073 TARGET_DEFAULT_RETURN.
12074
cd4ae029
TT
120752014-02-19 Tom Tromey <tromey@redhat.com>
12076
12077 * target-delegates.c: Rebuild.
12078 * target.c (target_insert_mask_watchpoint): Unconditionally
12079 delegate.
12080 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12081 TARGET_DEFAULT_RETURN.
12082
a134316b
TT
120832014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target-delegates.c: Rebuild.
12086 * target.c (target_ranged_break_num_registers): Unconditionally
12087 delegate.
12088 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12089 Use TARGET_DEFAULT_RETURN.
12090
ad5989bd
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target-delegates.c: Rebuild.
12094 * target.c (target_fetch_registers): Unconditionally delegate.
12095 * target.h (struct target_ops) <to_fetch_registers>: Use
12096 TARGET_DEFAULT_NORETURN.
12097
46ee7e8d
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_stop.
12103 * target.h (struct target_ops) <to_stop>: Use
12104 TARGET_DEFAULT_IGNORE.
12105
843f59ed
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_can_run_breakpoint_commands.
12111 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12112 Use TARGET_DEFAULT_RETURN.
12113
ccfde2a0
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_supports_evaluation_of_breakpoint_conditions.
12119 * target.h (struct target_ops)
12120 <to_supports_evaluation_of_breakpoint_conditions>: Use
12121 TARGET_DEFAULT_RETURN.
12122
0de91722
TT
121232014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12127 to_augmented_libraries_svr4_read.
12128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12129 Use TARGET_DEFAULT_RETURN.
12130
9a7d8b48
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_can_use_agent.
12136 * target.h (struct target_ops) <to_can_use_agent>: Use
12137 TARGET_DEFAULT_RETURN.
12138
d9db5b21
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12143 to_use_agent.
12144 * target.h (struct target_ops) <to_use_agent>: Use
12145 TARGET_DEFAULT_NORETURN.
12146
92155eeb
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_traceframe_info.
12152 (return_null): Remove.
12153 * target.h (struct target_ops) <to_traceframe_info>: Use
12154 TARGET_DEFAULT_RETURN.
12155
d6522a22
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target-delegates.c: Rebuild.
12159 * target.c (update_current_target): Don't inherit or default
12160 to_static_tracepoint_markers_by_strid.
12161 * target.h (struct target_ops)
12162 <to_static_tracepoint_markers_by_strid>: Use
12163 TARGET_DEFAULT_NORETURN.
12164
4c3e4425
TT
121652014-02-19 Tom Tromey <tromey@redhat.com>
12166
12167 * target-delegates.c: Rebuild.
12168 * target.c (update_current_target): Don't inherit or default
12169 to_static_tracepoint_marker_at.
12170 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12171 Use TARGET_DEFAULT_RETURN.
12172
dcd6917f
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target-delegates.c: Rebuild.
12176 * target.c (update_current_target): Don't inherit or default
12177 to_set_permissions.
12178 * target.h (struct target_ops) <to_set_permissions>: Use
12179 TARGET_DEFAULT_IGNORE.
12180
22bcceee
TT
121812014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_get_tib_address.
12186 * target.h (struct target_ops) <to_get_tib_address>: Use
12187 TARGET_DEFAULT_NORETURN.
12188
8586ccaa
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12193 to_set_trace_notes.
12194 * target.h (struct target_ops) <to_set_trace_notes>: Use
12195 TARGET_DEFAULT_RETURN.
12196
91df8d1d
TT
121972014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target-delegates.c: Rebuild.
12200 * target.c (update_current_target): Don't initialize
12201 to_set_trace_buffer_size.
12202 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12203 TARGET_DEFAULT_IGNORE.
12204
8d526939
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_set_circular_trace_buffer.
12210 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12211 TARGET_DEFAULT_IGNORE.
12212
0bcfeddf
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_set_disconnected_tracing.
12218 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12219 TARGET_DEFAULT_IGNORE.
12220
9249843f
TT
122212014-02-19 Tom Tromey <tromey@redhat.com>
12222
12223 * target-delegates.c: Rebuild.
12224 * target.c (update_current_target): Don't inherit or default
12225 to_get_min_fast_tracepoint_insn_len.
12226 (return_minus_one): Remove.
12227 * target.h (struct target_ops)
12228 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12229
ace92e7d
TT
122302014-02-19 Tom Tromey <tromey@redhat.com>
12231
12232 * target-delegates.c: Rebuild.
12233 * target.c (update_current_target): Don't inherit or default
12234 to_get_raw_trace_data.
12235 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12236 TARGET_DEFAULT_NORETURN.
12237
08120467
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target-delegates.c: Rebuild.
12241 * target.c (update_current_target): Don't inherit or default
12242 to_upload_trace_state_variables.
12243 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12244 Use TARGET_DEFAULT_RETURN.
12245
1e949b00
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target-delegates.c: Rebuild.
12249 * target.c (update_current_target): Don't inherit or default
12250 to_upload_tracepoints.
12251 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12252 TARGET_DEFAULT_RETURN.
12253
a2e6c147
TT
122542014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target-delegates.c: Rebuild.
12257 * target.c (update_current_target): Don't inherit or default
12258 to_save_trace_data.
12259 * target.h (struct target_ops) <to_save_trace_data>: Use
12260 TARGET_DEFAULT_NORETURN.
12261
959bcd0b
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_get_trace_state_variable_value.
12267 * target.h (struct target_ops)
12268 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12269
afc94e66
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_trace_find.
12275 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12276
e51c07ea
TT
122772014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12281 to_trace_stop.
12282 * target.h (struct target_ops) <to_trace_stop>: Use
12283 TARGET_DEFAULT_NORETURN.
12284
6fea14cd
TT
122852014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_get_tracepoint_status.
12290 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12291 TARGET_DEFAULT_NORETURN.
12292
4072d4ff
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_get_trace_status.
12298 * target.h (struct target_ops) <to_get_trace_status>: Use
12299 TARGET_DEFAULT_RETURN.
12300
25da2e80
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_trace_start.
12306 * target.h (struct target_ops) <to_trace_start>: Use
12307 TARGET_DEFAULT_NORETURN.
12308
86dd181d
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_trace_set_readonly_regions.
12314 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12315 Use TARGET_DEFAULT_NORETURN.
12316
05c41993
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_disable_tracepoint.
12322 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12323 TARGET_DEFAULT_NORETURN.
12324
151f70f1
TT
123252014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_enable_tracepoint.
12330 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12331 TARGET_DEFAULT_NORETURN.
12332
94eb98b9
TT
123332014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_download_trace_state_variable.
12338 * target.h (struct target_ops) <to_download_trace_state_variable>:
12339 Use TARGET_DEFAULT_NORETURN.
12340
719acc4a
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_can_download_tracepoint.
12346 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12347 TARGET_DEFAULT_RETURN.
12348
9a980a22
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target-delegates.c: Rebuild.
12352 * target.c (update_current_target): Don't inherit or default
12353 to_download_tracepoint.
12354 * target.h (struct target_ops) <to_download_tracepoint>: Use
12355 TARGET_DEFAULT_NORETURN.
12356
5536135b
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target-delegates.c: Rebuild.
12360 * target.c (update_current_target): Don't inherit or default
12361 to_trace_init.
12362 * target.h (struct target_ops) <to_trace_init>: Use
12363 TARGET_DEFAULT_RETURN.
12364
9409d39e
TT
123652014-02-19 Tom Tromey <tromey@redhat.com>
12366
12367 * target-delegates.c: Rebuild.
12368 * target.c (update_current_target): Don't inherit or default
12369 to_supports_string_tracing.
12370 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12371 TARGET_DEFAULT_RETURN.
12372
aab1b22d
TT
123732014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target-delegates.c: Rebuild.
12376 * target.c (update_current_target): Don't inherit or default
12377 to_supports_enable_disable_tracepoint.
12378 * target.h (struct target_ops)
12379 <to_supports_enable_disable_tracepoint>: Use
12380 TARGET_DEFAULT_RETURN.
12381
a7304748
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_supports_multi_process.
12387 * target.h (struct target_ops) <to_supports_multi_process>: Use
12388 TARGET_DEFAULT_RETURN.
12389
4229b31d
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_get_ada_task_ptid.
12395 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12396 TARGET_DEFAULT_FUNC.
12397
43eba180
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12402 to_thread_architecture.
12403 * target.h (struct target_ops) <to_thread_architecture>: Use
12404 TARGET_DEFAULT_FUNC.
12405
fe31bf5b
TT
124062014-02-19 Tom Tromey <tromey@redhat.com>
12407
12408 * target-delegates.c: Rebuild.
12409 * target.c (update_current_target): Don't inherit or default
12410 to_execution_direction.
12411 * target.h (struct target_ops) <to_execution_direction>: Use
12412 TARGET_DEFAULT_FUNC.
12413
53e1cfc7
TT
124142014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12418 to_can_execute_reverse.
12419 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12420 TARGET_DEFAULT_RETURN.
12421 (target_can_execute_reverse): Unconditionally delegate.
12422
9bb9d61d
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12427 to_goto_bookmark.
12428 (dummy_goto_bookmark): Remove.
12429 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12430 * target.h (struct target_ops) <to_goto_bookmark>: Use
12431 TARGET_DEFAULT_NORETURN.
12432
3dbafbbb
TT
124332014-02-19 Tom Tromey <tromey@redhat.com>
12434
12435 * target-delegates.c: Rebuild.
12436 * target.c (update_current_target): Don't inherit or default
12437 to_get_bookmark.
12438 (dummy_get_bookmark): Remove.
12439 (init_dummy_target): Don't inherit or default to_get_bookmark.
12440 * target.h (struct target_ops) <to_get_bookmark>: Use
12441 TARGET_DEFAULT_NORETURN
12442
16f796b1
TT
124432014-02-19 Tom Tromey <tromey@redhat.com>
12444
12445 * target-delegates.c: Rebuild.
12446 * target.c (update_current_target): Don't inherit or default
12447 to_make_corefile_notes.
12448 (init_dummy_target): Don't initialize to_make_corefile_notes.
12449 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12450 TARGET_DEFAULT_FUNC.
12451
0b5a2719
TT
124522014-02-19 Tom Tromey <tromey@redhat.com>
12453
12454 * target-delegates.c: Rebuild.
12455 * target.c (update_current_target): Don't inherit or default
12456 to_find_memory_regions.
12457 (init_dummy_target): Don't initialize to_find_memory_regions.
12458 * target.h (struct target_ops) <to_find_memory_regions>: Use
12459 TARGET_DEFAULT_FUNC.
12460
d9cb0195
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_log_command.
12466 * target.h (struct target_ops) <to_log_command>: Use
12467 TARGET_DEFAULT_IGNORE.
12468 (target_log_command): Unconditionally delegate.
12469
830ca330
TT
124702014-02-19 Tom Tromey <tromey@redhat.com>
12471
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_pid_to_exec_file.
12475 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12476 TARGET_DEFAULT_RETURN.
12477
825828fc
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12482 to_thread_name.
12483 (target_thread_name): Unconditionally delegate.
12484 * target.h (struct target_ops) <to_thread_name>: Use
12485 TARGET_DEFAULT_RETURN.
12486
4a7e6dda
TT
124872014-02-19 Tom Tromey <tromey@redhat.com>
12488
12489 * target-delegates.c: Rebuild.
12490 * target.c (update_current_target): Don't inherit or default
12491 to_extra_thread_info.
12492 * target.h (struct target_ops) <to_extra_thread_info>: Use
12493 TARGET_DEFAULT_RETURN.
12494
0db88c1d
TT
124952014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target-delegates.c: Rebuild.
12498 * target.c (update_current_target): Don't inherit or default
12499 to_has_exited.
12500 * target.h (struct target_ops) <to_has_exited>: Use
12501 TARGET_DEFAULT_RETURN..
12502
6a9fa051
TT
125032014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target-delegates.c: Rebuild.
12506 * target.c (update_current_target): Don't inherit or default
12507 to_set_syscall_catchpoint.
12508 (return_one): Remove.
12509 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12510 TARGET_DEFAULT_RETURN.
12511
62f64d7a
TT
125122014-02-19 Tom Tromey <tromey@redhat.com>
12513
12514 * target-delegates.c: Rebuild.
12515 * target.c (update_current_target): Don't inherit or default
12516 to_insert_exec_catchpoint.
12517 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12518 TARGET_DEFAULT_RETURN.
12519
cda0f38c
TT
125202014-01-08 Tom Tromey <tromey@redhat.com>
12521
12522 * target-delegates.c: Rebuild.
12523 * target.c (update_current_target): Don't inherit or default
12524 to_insert_exec_catchpoint.
12525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12526 TARGET_DEFAULT_RETURN.
12527
95c3375e
TT
125282014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target-delegates.c: Rebuild.
12531 * target.c (update_current_target): Don't inherit or default
12532 to_remove_vfork_catchpoint.
12533 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12534 TARGET_DEFAULT_RETURN.
12535
7e18a8dc
TT
125362014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target-delegates.c: Rebuild.
12539 * target.c (update_current_target): Don't inherit or default
12540 to_insert_vfork_catchpoint.
12541 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12542 TARGET_DEFAULT_RETURN.
12543
e1a21fb7
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target-delegates.c: Rebuild.
12547 * target.c (update_current_target): Don't inherit or default
12548 to_remove_fork_catchpoint.
12549 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12550 TARGET_DEFAULT_RETURN.
12551
5958ebeb
TT
125522014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * target-delegates.c: Rebuild.
12555 * target.c (update_current_target): Don't inherit or default
12556 to_insert_fork_catchpoint.
12557 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12558 TARGET_DEFAULT_RETURN.
12559
340ba4bf
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target-delegates.c: Rebuild.
12563 * target.c (update_current_target): Don't inherit or default
12564 to_post_startup_inferior.
12565 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12566 TARGET_DEFAULT_IGNORE.
12567
7634da87
TT
125682014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target-delegates.c: Rebuild.
12571 * target.c (update_current_target): Don't inherit or default
12572 to_load.
12573 * target.h (struct target_ops) <to_load>: Use
12574 TARGET_DEFAULT_NORETURN.
12575
e19e919f
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target-delegates.c: Rebuild.
12579 * target.c (update_current_target): Don't inherit or default
12580 to_terminal_info.
12581 * target.h (struct target_ops) <to_terminal_info>: Use
12582 TARGET_DEFAULT_FUNC.
12583
c6ea8f79
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target-delegates.c: Rebuild.
12587 * target.c (update_current_target): Don't inherit or default
12588 to_terminal_save_ours.
12589 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12590 TARGET_DEFAULT_IGNORE.
12591
e4a733f1
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target-delegates.c: Rebuild.
12595 * target.c (update_current_target): Don't inherit or default
12596 to_terminal_ours.
12597 * target.h (struct target_ops) <to_terminal_ours>: Use
12598 TARGET_DEFAULT_IGNORE.
12599
74fcbef9
TT
126002014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target-delegates.c: Rebuild.
12603 * target.c (update_current_target): Don't inherit or default
12604 to_terminal_ours_for_output.
12605 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12606 TARGET_DEFAULT_IGNORE.
12607
ddeaacc9
TT
126082014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * target-delegates.c: Rebuild.
12611 * target.c (update_current_target): Don't inherit or default
12612 to_terminal_inferior.
12613 * target.h (struct target_ops) <to_terminal_inferior>: Use
12614 TARGET_DEFAULT_IGNORE.
12615
0343661d
TT
126162014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * target-delegates.c: Rebuild.
12619 * target.c (update_current_target): Don't inherit or default
12620 to_terminal_init.
12621 * target.h (struct target_ops) <to_terminal_init>: Use
12622 TARGET_DEFAULT_IGNORE.
12623
77cdffe9
TT
126242014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target-delegates.c: Rebuild.
12627 * target.c (update_current_target): Don't inherit or default
12628 to_can_accel_watchpoint_condition.
12629 * target.h (struct target_ops)
12630 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12631
d03655e4
TT
126322014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target-delegates.c: Rebuild.
12635 * target.c (update_current_target): Don't inherit or default
12636 to_region_ok_for_hw_watchpoint.
12637 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12638 Use TARGET_DEFAULT_FUNC.
12639
65f160a9
TT
126402014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_watchpoint_addr_within_range.
12645 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12646 Use TARGET_DEFAULT_FUNC.
12647
61dd109f
TT
126482014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target-delegates.c: Rebuild.
12651 * target.c (update_current_target): Don't inherit or default
12652 to_remove_watchpoint.
12653 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12654 TARGET_DEFAULT_NORETURN.
12655
016facd4
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target-delegates.c: Rebuild.
12659 * target.c (update_current_target): Don't inherit or default
12660 to_insert_watchpoint.
12661 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12662 TARGET_DEFAULT_RETURN.
12663
418dabac
TT
126642014-02-19 Tom Tromey <tromey@redhat.com>
12665
12666 * target-delegates.c: Rebuild.
12667 * target.c (update_current_target): Don't inherit or default
12668 to_remove_hw_breakpoint.
12669 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12670 TARGET_DEFAULT_RETURN.
12671
61b371f9
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target-delegates.c: Rebuild.
12675 * target.c (update_current_target): Don't inherit or default
12676 to_insert_hw_breakpoint.
12677 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12678 TARGET_DEFAULT_RETURN.
12679
52b51d06
TT
126802014-02-19 Tom Tromey <tromey@redhat.com>
12681
12682 * target-delegates.c: Rebuild.
12683 * target.c (update_current_target): Don't inherit or default
12684 to_can_use_hw_breakpoint.
12685 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12686 TARGET_DEFAULT_RETURN.
12687
f86e59b2
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target-delegates.c: Rebuild.
12691 * target.c (update_current_target): Don't inherit or default
12692 to_files_info.
12693 * target.h (struct target_ops) <to_files_info>: Use
12694 TARGET_DEFAULT_IGNORE.
12695
6c628163
TT
126962014-02-19 Tom Tromey <tromey@redhat.com>
12697
12698 * target-delegates.c: Rebuild.
12699 * target.c (update_current_target): Don't inherit or default
12700 to_store.
12701 * target.h (struct target_ops) <to_store>: Use
12702 TARGET_DEFAULT_NORETURN.
12703
bebd3233
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target-delegates.c: Rebuild.
12707 * target.c (update_current_target): Don't inherit or default
12708 to_post_attach.
12709 * target.h (struct target_ops) <to_post_attach>: Use
12710 TARGET_DEFAULT_IGNORE.
12711
a53f3625
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target-delegates.c: Rebuild.
12715 * target.c (update_current_target): Don't inherit or default
12716 to_rcmd.
12717 (default_rcmd): New function.
12718 (do_monitor_command): Unconditionally delegate.
12719 * target.h (struct target_ops) <to_rmcd>: Use
12720 TARGET_DEFAULT_FUNC.
12721
e9a29200
TT
127222014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target-delegates.c: Rebuild.
12725 * target.c (init_dummy_target): Don't initialize to_attach.
12726 (target_attach): Unconditionally delegate.
12727 * target.h (struct target_ops) <to_attach>: Use
12728 TARGET_DEFAULT_FUNC.
12729
09da0d0a
TT
127302014-02-19 Tom Tromey <tromey@redhat.com>
12731
12732 * target-delegates.c: Rebuild.
12733 * target.c (target_detach): Unconditionally delegate.
12734 (init_dummy_target): Don't initialize to_detach.
12735 * target.h (struct target_ops) <to_detach>: Use
12736 TARGET_DEFAULT_IGNORE.
12737
5436ff03
TT
127382014-02-19 Tom Tromey <tromey@redhat.com>
12739
12740 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12741 Add argument.
12742 (target_augmented_libraries_svr4_read): Add argument.
12743 * target.c (update_current_target): Update.
12744 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12745 argument.
12746
f0d960ea
TT
127472014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_call_history_range>: Add
12750 argument.
12751 * target.c (target_call_history_range): Add argument.
12752 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12753 argument.
12754 (record_btrace_call_history_from): Update.
12755
ec0aea04
TT
127562014-02-19 Tom Tromey <tromey@redhat.com>
12757
12758 * target.h (struct target_ops) <to_call_history_from>: Add
12759 argument.
12760 * target.c (target_call_history_from): Add argument.
12761 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12762 argument.
12763
5df2fcba
TT
127642014-02-19 Tom Tromey <tromey@redhat.com>
12765
12766 * target.h (struct target_ops) <to_call_history>: Add argument.
12767 * target.c (target_call_history): Add argument.
12768 * record-btrace.c (record_btrace_call_history): Add 'self'
12769 argument.
12770
4e99c6b7
TT
127712014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * target.h (struct target_ops) <to_insn_history_range>: Add
12774 argument.
12775 * target.c (target_insn_history_range): Add argument.
12776 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12777 argument.
12778 (record_btrace_insn_history_from): Update.
12779
9abc3ff3
TT
127802014-02-19 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_insn_history_from>: Add
12783 argument.
12784 * target.c (target_insn_history_from): Add argument.
12785 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12786 argument.
12787
7a6c5609
TT
127882014-02-19 Tom Tromey <tromey@redhat.com>
12789
12790 * target.h (struct target_ops) <to_insn_history>: Add argument.
12791 * target.c (target_insn_history): Add argument.
12792 * record-btrace.c (record_btrace_insn_history): Add 'self'
12793 argument.
12794
606183ac
TT
127952014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 * target.h (struct target_ops) <to_goto_record>: Add argument.
12798 * target.c (target_goto_record): Add argument.
12799 * record-full.c (record_full_goto): Add 'self' argument.
12800 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12801
307a1b91
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12805 * target.c (target_goto_record_end): Add argument.
12806 * record-full.c (record_full_goto_end): Add 'self' argument.
12807 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12808
08475817
TT
128092014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_goto_record_begin>: Add
12812 argument.
12813 * target.c (target_goto_record_begin): Add argument.
12814 * record-full.c (record_full_goto_begin): Add 'self' argument.
12815 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12816 argument.
12817
1c63c994
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_record_is_replaying>: Add
12821 argument.
12822 * target.c (target_record_is_replaying): Add argument.
12823 * record-full.c (record_full_is_replaying): Add 'self' argument.
12824 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12825 argument.
12826 (record_btrace_xfer_partial, record_btrace_store_registers)
12827 (record_btrace_prepare_to_store, record_btrace_resume)
12828 (record_btrace_wait, record_btrace_decr_pc_after_break)
12829 (record_btrace_find_new_threads, record_btrace_thread_alive):
12830 Update.
12831
d1b55219
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_delete_record>: Add argument.
12835 * target.c (target_delete_record): Add argument.
12836 * record-full.c (record_full_delete): Add 'self' argument.
12837
1390f529
TT
128382014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_save_record>: Add argument.
12841 * target.c (target_save_record): Add argument.
12842 * record-full.c (record_full_save): Add 'self' argument.
12843 (record_full_save): Add 'self' argument.
12844
630d6a4a
TT
128452014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * target.h (struct target_ops) <to_info_record>: Add argument.
12848 * target.c (target_info_record): Add argument.
12849 * record.c (info_record_command): Add argument.
12850 * record-full.c (record_full_info): Add 'self' argument.
12851 * record-btrace.c (record_btrace_info): Add 'self' argument.
12852
c6cd7c02
TT
128532014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12856 * target.c (target_stop_recording): Add argument.
12857 * record.c (record_stop): Add argument.
12858 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12859 argument.
12860
39c49f83
TT
128612014-02-19 Tom Tromey <tromey@redhat.com>
12862
12863 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12864 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12865 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12866 argument.
12867 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12868 (_initialize_amd64_linux_nat): Use it.
12869 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12870 (_initialize_i386_linux_nat): Use it.
12871
1777056d
TT
128722014-02-19 Tom Tromey <tromey@redhat.com>
12873
12874 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12875 * target.c (target_teardown_btrace): Add argument.
12876 * remote.c (remote_teardown_btrace): Add 'self' argument.
12877 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12878 argument.
12879 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12880 argument.
12881
25e95349
TT
128822014-02-19 Tom Tromey <tromey@redhat.com>
12883
12884 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12885 * target.c (target_disable_btrace): Add argument.
12886 * remote.c (remote_disable_btrace): Add 'self' argument.
12887 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12888 argument.
12889 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12890 argument.
12891
e3c49f88
TT
128922014-02-19 Tom Tromey <tromey@redhat.com>
12893
12894 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12895 * target.c (target_enable_btrace): Add argument.
12896 * remote.c (remote_enable_btrace): Add 'self' argument.
12897 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12898 argument.
12899 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12900 argument.
12901
fe38f897
TT
129022014-02-19 Tom Tromey <tromey@redhat.com>
12903
12904 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12905 (target_can_use_agent): Add argument.
12906 * target.c (update_current_target): Update.
12907 * remote.c (remote_can_use_agent): Add 'self' argument.
12908 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12909
2c152180
TT
129102014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_use_agent>: Add argument.
12913 (target_use_agent): Add argument.
12914 * target.c (update_current_target): Update.
12915 * remote.c (remote_use_agent): Add 'self' argument.
12916 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12917
a893e81f
TT
129182014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12921 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12922 (target_traceframe_info): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_traceframe_info): Add 'self' argument.
12925 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12926
c686c57f
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (target_static_tracepoint_markers_by_strid): Add
12930 argument.
12931 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12932 'self' argument.
12933 * target.c (update_current_target): Update.
12934 * remote.c (struct target_ops)
12935 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12936 * linux-nat.c (struct target_ops)
12937 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12938
61fc905d
TT
129392014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12942 Add argument.
12943 (target_static_tracepoint_marker_at): Add argument.
12944 * target.c (update_current_target): Update.
12945 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12946 argument.
12947
c378d69d
TT
129482014-02-19 Tom Tromey <tromey@redhat.com>
12949
12950 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12951 (target_set_permissions): Add argument.
12952 * target.c (update_current_target): Update.
12953 * remote.c (remote_set_permissions): Add 'self' argument.
12954 (remote_start_remote): Update.
12955
bd7ae0f5
TT
129562014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12959 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12960 (target_get_tib_address): Add argument.
12961 * target.c (update_current_target): Update.
12962 * remote.c (remote_get_tib_address): Add 'self' argument.
12963
d9e68a2c
TT
129642014-02-19 Tom Tromey <tromey@redhat.com>
12965
12966 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12967 (target_set_trace_notes): Add argument.
12968 * target.c (update_current_target): Update.
12969 * remote.c (remote_set_trace_notes): Add 'self' argument.
12970
4da384be
TT
129712014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12974 argument.
12975 (target_set_trace_buffer_size): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12978
736d5b1f
TT
129792014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12982 argument.
12983 (target_set_circular_trace_buffer): Add argument.
12984 * target.c (update_current_target): Update.
12985 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12986 argument.
12987
37b25738
TT
129882014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12991 argument.
12992 (target_set_disconnected_tracing): Add argument.
12993 * target.c (update_current_target): Update.
12994 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12995
0e67620a
TT
129962014-02-19 Tom Tromey <tromey@redhat.com>
12997
12998 * target.h (struct target_ops)
12999 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13000 (target_get_min_fast_tracepoint_insn_len): Add argument.
13001 * target.c (update_current_target): Update.
13002 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13003 argument.
13004
88ee6f45
TT
130052014-02-19 Tom Tromey <tromey@redhat.com>
13006
13007 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13008 argument.
13009 (target_get_raw_trace_data): Add argument.
13010 * target.c (update_current_target): Update.
13011 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13012
181e3713
TT
130132014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13016 Add argument.
13017 (target_upload_trace_state_variables): Add argument.
13018 * target.c (update_current_target): Update.
13019 * remote.c (remote_upload_trace_state_variables): Add 'self'
13020 argument.
13021 (remote_start_remote): Update.
13022
ab6617cc
TT
130232014-02-19 Tom Tromey <tromey@redhat.com>
13024
13025 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13026 argument.
13027 (target_upload_tracepoints): Add argument.
13028 * target.c (update_current_target): Update.
13029 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13030 (remote_start_remote): Update.
13031
dc3decaf
TT
130322014-02-19 Tom Tromey <tromey@redhat.com>
13033
13034 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13035 (target_save_trace_data): Add argument.
13036 * target.c (update_current_target): Update.
13037 * remote.c (remote_save_trace_data): Add 'self' argument.
13038
4011015b
TT
130392014-02-19 Tom Tromey <tromey@redhat.com>
13040
13041 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13042 argument.
13043 * target.h (struct target_ops)
13044 <to_get_trace_state_variable_value>: Add argument.
13045 (target_get_trace_state_variable_value): Add argument.
13046 * target.c (update_current_target): Update.
13047 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13048 argument.
13049 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13050
bd4c6793
TT
130512014-02-19 Tom Tromey <tromey@redhat.com>
13052
13053 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13054 * target.h (struct target_ops) <to_trace_find>: Add argument.
13055 (target_trace_find): Add argument.
13056 * target.c (update_current_target): Update.
13057 * remote.c (remote_trace_find): Add 'self' argument.
13058 * ctf.c (ctf_trace_find): Add 'self' argument.
13059
74499f1b
TT
130602014-02-19 Tom Tromey <tromey@redhat.com>
13061
13062 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13063 (target_trace_stop): Add argument.
13064 * target.c (update_current_target): Update.
13065 * remote.c (remote_trace_stop): Add 'self' argument.
13066
db90e85c
TT
130672014-02-19 Tom Tromey <tromey@redhat.com>
13068
13069 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13070 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13071 argument.
13072 (target_get_tracepoint_status): Add argument.
13073 * target.c (update_current_target): Update.
13074 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13075
8bd200f1
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13079 * target.h (struct target_ops) <to_get_trace_status>: Add
13080 argument.
13081 (target_get_trace_status): Add argument.
13082 * target.c (update_current_target): Update.
13083 * remote.c (remote_get_trace_status): Add 'self' argument.
13084 (remote_start_remote, remote_can_download_tracepoint): Update.
13085 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13086
e2d1aae3
TT
130872014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * target.h (struct target_ops) <to_trace_start>: Add argument.
13090 (target_trace_start): Add argument.
13091 * target.c (update_current_target): Update.
13092 * remote.c (remote_trace_start): Add 'self' argument.
13093
583f9a86
TT
130942014-02-19 Tom Tromey <tromey@redhat.com>
13095
13096 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13097 Add argument.
13098 (target_trace_set_readonly_regions): Add argument.
13099 * target.c (update_current_target): Update.
13100 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13101 argument.
13102
780b049c
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13106 argument.
13107 (target_disable_tracepoint): Add argument.
13108 * target.c (update_current_target): Update.
13109 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13110
46670d57
TT
131112014-02-19 Tom Tromey <tromey@redhat.com>
13112
13113 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13114 argument.
13115 (target_enable_tracepoint): Add argument.
13116 * target.c (update_current_target): Update.
13117 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13118
559d2b81
TT
131192014-02-19 Tom Tromey <tromey@redhat.com>
13120
13121 * target.h (struct target_ops) <to_download_trace_state_variable>:
13122 Add argument.
13123 (target_download_trace_state_variable): Add argument.
13124 * target.c (update_current_target): Update.
13125 * remote.c (remote_download_trace_state_variable): Add 'self'
13126 argument.
13127
a52a8357
TT
131282014-02-19 Tom Tromey <tromey@redhat.com>
13129
13130 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13131 argument.
13132 (target_can_download_tracepoint): Add argument.
13133 * target.c (update_current_target): Update.
13134 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13135
548f7808
TT
131362014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops) <to_download_tracepoint>: Add
13139 argument.
13140 (target_download_tracepoint): Add argument.
13141 * target.c (update_current_target): Update.
13142 * remote.c (remote_download_tracepoint): Add 'self' argument.
13143
ecae04e1
TT
131442014-02-19 Tom Tromey <tromey@redhat.com>
13145
13146 * target.h (struct target_ops) <to_trace_init>: Add argument.
13147 (target_trace_init): Add argument.
13148 * target.c (update_current_target): Update.
13149 * remote.c (remote_trace_init): Add 'self' argument.
13150
fab5aa7c
TT
131512014-02-19 Tom Tromey <tromey@redhat.com>
13152
13153 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13154 * target.c (target_fileio_readlink): Add argument.
13155 * remote.c (remote_hostio_readlink): Add 'self' argument.
13156 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13157
dbbca37d
TT
131582014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13161 * target.c (target_fileio_unlink): Add argument.
13162 * remote.c (remote_hostio_unlink): Add 'self' argument.
13163 (remote_file_delete): Update.
13164 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13165
df39ea25
TT
131662014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13169 * target.c (target_fileio_close): Add argument.
13170 * remote.c (remote_hostio_close): Add 'self' argument.
13171 (remote_hostio_close_cleanup): Update.
13172 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13173 Update.
13174 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13175
a3be983c
TT
131762014-02-19 Tom Tromey <tromey@redhat.com>
13177
13178 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13179 * target.c (target_fileio_pread): Add argument.
13180 * remote.c (remote_hostio_pread): Add 'self' argument.
13181 (remote_bfd_iovec_pread, remote_file_get): Update.
13182 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13183
0d866f62
TT
131842014-02-19 Tom Tromey <tromey@redhat.com>
13185
13186 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13187 * target.c (target_fileio_pwrite): Add argument.
13188 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13189 (remote_file_put): Update.
13190 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13191
cd897586
TT
131922014-02-19 Tom Tromey <tromey@redhat.com>
13193
13194 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13195 * target.c (target_fileio_open): Add argument.
13196 * remote.c (remote_hostio_open): Add 'self' argument.
13197 (remote_bfd_iovec_open): Add 'self' argument.
13198 (remote_file_put): Add 'self' argument.
13199 (remote_file_get): Add 'self' argument.
13200 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13201
78eff0ec
TT
132022014-02-19 Tom Tromey <tromey@redhat.com>
13203
13204 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13205 Add argument.
13206 (target_can_run_breakpoint_commands): Add argument.
13207 * target.c (update_current_target): Update.
13208 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13209 argument.
13210 (remote_insert_breakpoint): Add 'self' argument.
13211 (remote_insert_hw_breakpoint): Add 'self' argument.
13212 (remote_can_run_breakpoint_commands): Add 'self' argument.
13213
efcc2da7
TT
132142014-02-19 Tom Tromey <tromey@redhat.com>
13215
13216 * target.h (struct target_ops)
13217 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13218 (target_supports_evaluation_of_breakpoint_conditions): Add
13219 argument.
13220 * target.c (update_current_target): Update.
13221 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13222 argument.
13223 (remote_insert_breakpoint): Add 'self' argument.
13224 (remote_insert_hw_breakpoint): Add 'self' argument.
13225 (remote_supports_cond_breakpoints): Add 'self' argument.
13226
6de37a3a
TT
132272014-02-19 Tom Tromey <tromey@redhat.com>
13228
13229 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13230 argument.
13231 (target_supports_string_tracing): Add argument.
13232 * target.c (update_current_target): Update.
13233 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13234
2bfc0540
TT
132352014-02-19 Tom Tromey <tromey@redhat.com>
13236
13237 * target.h (struct target_ops)
13238 <to_supports_disable_randomization>: Add argument.
13239 * target.c (find_default_supports_disable_randomization): Add
13240 argument.
13241 (target_supports_disable_randomization): Add argument.
13242 (find_default_supports_disable_randomization): Add 'self'
13243 argument.
13244 * remote.c (extended_remote_supports_disable_randomization): Add
13245 'self' argument.
13246 (remote_supports_disable_randomization): Add 'self' argument.
13247 (extended_remote_create_inferior): Update.
13248 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13249 'self' argument.
13250
7d178d6a
TT
132512014-02-19 Tom Tromey <tromey@redhat.com>
13252
13253 * target.h (struct target_ops)
13254 <to_supports_enable_disable_tracepoint>: Add argument.
13255 (target_supports_enable_disable_tracepoint): Add argument.
13256 * target.c (update_current_target): Update.
13257 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13258 argument.
13259
86ce2668
TT
132602014-02-19 Tom Tromey <tromey@redhat.com>
13261
13262 * target.h (struct target_ops) <to_supports_multi_process>: Add
13263 argument.
13264 (target_supports_multi_process): Add argument.
13265 * target.c (update_current_target): Update.
13266 * remote.c (remote_supports_multi_process): Add 'self' argument.
13267 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13268 argument.
13269 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13270 argument.
13271
4c612759
TT
132722014-02-19 Tom Tromey <tromey@redhat.com>
13273
13274 * target.h (struct target_ops) <to_execution_direction>: Add
13275 argument.
13276 (target_execution_direction): Add argument.
13277 * target.c (default_execution_direction): Add 'self' argument.
13278 * record-full.c (record_full_execution_direction): Add 'self'
13279 argument.
13280
19db3e69
TT
132812014-02-19 Tom Tromey <tromey@redhat.com>
13282
13283 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13284 argument.
13285 (target_can_execute_reverse): Add argument.
13286 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13287 * record-full.c (record_full_can_execute_reverse): Add 'self'
13288 argument.
13289 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13290 argument.
13291
1e6b91a4
TT
132922014-02-19 Tom Tromey <tromey@redhat.com>
13293
13294 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13295 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13296 argument.
13297 (target_get_ada_task_ptid): Add argument.
13298 * target.c (update_current_target): Update.
13299 (default_get_ada_task_ptid): Add 'self' argument.
13300 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13301 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13302 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13303 argument.
13304 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13305 argument.
13306 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13307 argument.
13308 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13309 argument.
13310 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13311 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13312 argument.
13313
3c80fb48
TT
133142014-02-19 Tom Tromey <tromey@redhat.com>
13315
13316 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13317 (target_goto_bookmark): Add argument.
13318 * target.c (dummy_goto_bookmark): Add 'self' argument.
13319 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13320
dd0e2830
TT
133212014-02-19 Tom Tromey <tromey@redhat.com>
13322
13323 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13324 (target_get_bookmark): Add argument.
13325 * target.c (dummy_get_bookmark): Add 'self' argument.
13326 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13327
fc6691b2
TT
133282014-02-19 Tom Tromey <tromey@redhat.com>
13329
13330 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13331 argument.
13332 (target_make_corefile_notes): Add argument.
13333 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13334 * procfs.c (procfs_make_note_section): Add 'self' argument.
13335 (procfs_make_note_section): Add 'self' argument.
13336 (procfs_make_note_section): Add 'self' argument.
13337 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13338 argument.
13339 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13340 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13341 * exec.c (exec_make_note_section): Add 'self' argument.
13342 (exec_make_note_section): Add 'self' argument.
13343
2e73927c
TT
133442014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * target.h (struct target_ops) <to_find_memory_regions>: Add
13347 argument.
13348 (target_find_memory_regions): Add argument.
13349 * target.c (dummy_find_memory_regions): Add 'self' argument.
13350 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13351 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13352 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13353 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13354 * exec. (exec_do_find_memory_regions): New global.
13355 (exec_set_find_memory_regions): Rewrite.
13356 (exec_find_memory_regions): New function.
13357 (init_exec_ops): Use exec_find_memory_regions.
13358
2a9a2795
TT
133592014-02-19 Tom Tromey <tromey@redhat.com>
13360
13361 * target.h (struct target_ops) <to_supports_non_stop>: Add
13362 argument.
13363 * target.c (find_default_supports_non_stop): Add argument.
13364 (target_supports_non_stop): Add argument.
13365 (find_default_supports_non_stop): Add 'self' argument.
13366 * remote.c (remote_supports_non_stop): Add 'self' argument.
13367 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13368
4ab76ea3
TT
133692014-02-19 Tom Tromey <tromey@redhat.com>
13370
13371 * target.h (struct target_ops) <to_log_command>: Add argument.
13372 (target_log_command): Add argument.
13373 * serial.h (serial_log_command): Add 'self' argument.
13374 * serial.c (serial_log_command): Add 'self' argument.
13375
8dd27370
TT
133762014-02-19 Tom Tromey <tromey@redhat.com>
13377
13378 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13379 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13380 argument.
13381 (target_pid_to_exec_file): Add argument.
13382 * target.c (debug_to_pid_to_exec_file): Add argument.
13383 (update_current_target): Update.
13384 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13385 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13386 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13387 (linux_handle_extended_wait): Update.
13388 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13389 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13390 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13391 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13392
1aac633b
TT
133932014-02-19 Tom Tromey <tromey@redhat.com>
13394
13395 * target.h (struct target_ops) <to_rcmd>: Add argument.
13396 (target_rcmd): Add argument.
13397 * target.c (debug_to_rcmd): Add argument.
13398 (update_current_target, do_monitor_command): Update.
13399 * remote.c (remote_rcmd): Add 'self' argument.
13400 * monitor.c (monitor_rcmd): Add 'self' argument.
13401
1eab8a48
TT
134022014-02-19 Tom Tromey <tromey@redhat.com>
13403
13404 * windows-nat.c (windows_stop): Add 'self' argument.
13405 * target.h (struct target_ops) <to_stop>: Add argument.
13406 * target.c (target_stop): Add argument.
13407 (debug_to_stop): Add argument.
13408 (update_current_target): Update.
13409 * remote.c (remote_stop): Add 'self' argument.
13410 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13411 (gdbsim_cntrl_c): Update.
13412 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13413 * procfs.c (procfs_stop): Add 'self' argument.
13414 * nto-procfs.c (procfs_stop): Add 'self' argument.
13415 * monitor.c (monitor_stop): Add 'self' argument.
13416 (monitor_open): Update.
13417 * linux-nat.c (linux_nat_stop): Add argument.
13418 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13419 * gnu-nat.c (gnu_stop): Add 'self' argument.
13420 * darwin-nat.c (darwin_stop): Add 'self' argument.
13421
503a628d
TT
134222014-02-19 Tom Tromey <tromey@redhat.com>
13423
13424 * target.h (struct target_ops) <to_thread_name>: Add argument.
13425 * target.c (target_thread_name): Add argument.
13426 (update_current_target): Update.
13427 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13428
c15906d8
TT
134292014-02-19 Tom Tromey <tromey@redhat.com>
13430
13431 * target.h (struct target_ops) <to_extra_thread_info>: Add
13432 argument.
13433 (target_extra_thread_info): Add argument.
13434 * target.c (update_current_target): Update.
13435 * remote.c (remote_threads_extra_info): Add 'self' argument.
13436 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13437 argument.
13438 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13439 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13440 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13441 argument.
13442 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13443 argument.
13444 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13445 argument.
13446 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13447 argument.
13448
daf5e9b6
TT
134492014-02-19 Tom Tromey <tromey@redhat.com>
13450
13451 * target.h (struct target_ops) <to_program_signals>: Add argument.
13452 * target.c (target_program_signals): Add argument.
13453 * remote.c (remote_program_signals): Add 'self' argument.
13454
94bedb42
TT
134552014-02-19 Tom Tromey <tromey@redhat.com>
13456
13457 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13458 * target.c (target_pass_signals): Add argument.
13459 * remote.c (remote_pass_signals): Add 'self' argument.
13460 (remote_start_remote): Update.
13461 * procfs.c (procfs_pass_signals): Add 'self' argument.
13462 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13463 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13464 (linux_nat_create_inferior, linux_nat_attach): Update.
13465
da82bd6b
TT
134662014-02-19 Tom Tromey <tromey@redhat.com>
13467
13468 * windows-nat.c (windows_can_run): Add 'self' argument.
13469 * target.h (struct target_ops) <to_can_run>: Add argument.
13470 (target_can_run): Add argument.
13471 * target.c (debug_to_can_run): Add argument.
13472 (update_current_target): Update.
13473 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13474 * inf-child.c (inf_child_can_run): Add 'self' argument.
13475 * go32-nat.c (go32_can_run): Add 'self' argument.
13476
d796e1d6
TT
134772014-02-19 Tom Tromey <tromey@redhat.com>
13478
13479 * target.h (struct target_ops) <to_has_exited>: Add argument.
13480 (target_has_exited): Add argument.
13481 * target.c (debug_to_has_exited): Add argument.
13482 (update_current_target): Update.
13483
ff214e67
TT
134842014-02-19 Tom Tromey <tromey@redhat.com>
13485
13486 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13487 argument.
13488 (target_set_syscall_catchpoint): Add argument.
13489 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13490 argument.
13491 * target.c (update_current_target): Update.
13492
758e29d2
TT
134932014-02-19 Tom Tromey <tromey@redhat.com>
13494
13495 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13496 argument.
13497 (target_remove_exec_catchpoint): Add argument.
13498 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13499 (update_current_target): Update.
13500 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13501 argument.
13502
ba025e51
TT
135032014-02-19 Tom Tromey <tromey@redhat.com>
13504
13505 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13506 argument.
13507 (target_insert_exec_catchpoint): Add argument.
13508 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13509 (update_current_target): Update.
13510 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13511 argument.
13512
e98cf0cd
TT
135132014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13516 argument.
13517 (target_remove_vfork_catchpoint): Add argument.
13518 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13519 (update_current_target): Update.
13520 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13521 argument.
13522
3ecc7da0
TT
135232014-02-19 Tom Tromey <tromey@redhat.com>
13524
13525 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13526 argument.
13527 (target_insert_vfork_catchpoint): Add argument.
13528 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13529 (update_current_target): Update.
13530 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13531 argument.
13532
973fc227
TT
135332014-02-19 Tom Tromey <tromey@redhat.com>
13534
13535 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13536 argument.
13537 (target_remove_fork_catchpoint): Add argument.
13538 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13539 (update_current_target): Update.
13540 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13541 argument.
13542
a863b201
TT
135432014-02-19 Tom Tromey <tromey@redhat.com>
13544
13545 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13546 argument.
13547 (target_insert_fork_catchpoint): Add argument.
13548 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13549 (update_current_target): Update.
13550 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13551 argument.
13552
2e97a79e
TT
135532014-02-19 Tom Tromey <tromey@redhat.com>
13554
13555 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13556 argument.
13557 (target_post_startup_inferior): Add argument.
13558 * target.c (debug_to_post_startup_inferior): Add argument.
13559 (update_current_target): Update.
13560 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13561 argument.
13562 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13563 argument.
13564 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13565 argument.
13566 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13567 argument.
13568 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13569 'self' argument.
13570 (super_post_startup_inferior): Likewise.
13571 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13572 'self' argument.
13573 (super_post_startup_inferior): Likewise.
13574 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13575 Add 'self' argument.
13576 (super_post_startup_inferior): Likewise.
13577
71a9f134
TT
135782014-02-19 Tom Tromey <tromey@redhat.com>
13579
13580 * target.h (struct target_ops) <to_load>: Add argument.
13581 * target.c (target_load): Add argument.
13582 (debug_to_load): Add argument.
13583 (update_current_target): Update.
13584 * remote.c (remote_load): Add 'self' argument.
13585 * remote-sim.c (gdbsim_load): Add 'self' argument.
13586 * remote-mips.c (mips_load): Add 'self' argument.
13587 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13588 * monitor.c (monitor_load): Add 'self' argument.
13589 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13590
0a4f40a2
TT
135912014-02-19 Tom Tromey <tromey@redhat.com>
13592
13593 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13594 (target_terminal_info): Add argument.
13595 * target.c (debug_to_terminal_info): Add argument.
13596 (default_terminal_info): Likewise.
13597 * inflow.c (child_terminal_info): Add 'self' argument.
13598 * inferior.h (child_terminal_info): Add 'self' argument.
13599 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13600
ae3bd431
TT
136012014-02-19 Tom Tromey <tromey@redhat.com>
13602
13603 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13604 argument.
13605 (target_terminal_save_ours): Add argument.
13606 * target.c (debug_to_terminal_save_ours): Add argument.
13607 (update_current_target): Update.
13608 * inflow.c (terminal_save_ours): Add 'self' argument.
13609 * inferior.h (terminal_save_ours): Add 'self' argument.
13610
e3594fd1
TT
136112014-02-19 Tom Tromey <tromey@redhat.com>
13612
13613 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13614 (target_terminal_ours): Add argument.
13615 * target.c (debug_to_terminal_ours): Add argument.
13616 (update_current_target): Update.
13617 * remote.c (remote_terminal_ours): Add 'self' argument.
13618 (remote_close): Update.
13619 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13620 * inflow.c (terminal_ours): Add 'self' argument.
13621 * inferior.h (terminal_ours): Add 'self' argument.
13622 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13623
2e1e1a19
TT
136242014-02-19 Pedro Alves <palves@redhat.com>
13625 Tom Tromey <tromey@redhat.com>
13626
13627 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13628 argument.
13629 (target_terminal_ours_for_output): Add argument.
13630 * target.c (debug_to_terminal_ours_for_output): Add argument.
13631 (update_current_target): Update.
13632 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13633 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13634 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13635
d2f640d4
TT
136362014-02-19 Tom Tromey <tromey@redhat.com>
13637
13638 * target.h (struct target_ops) <to_terminal_inferior>: Add
13639 argument.
13640 * target.c (target_terminal_inferior): Add argument.
13641 (update_current_target): Update.
13642 * remote.c (remote_terminal_inferior): Add 'self' argument.
13643 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13644 * inflow.c (terminal_inferior): Add 'self' argument.
13645 * inferior.h (terminal_inferior): Add 'self' argument.
13646 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13647 (go32_terminal_inferior): Add 'self' argument.
13648
c42bf286
TT
136492014-02-19 Tom Tromey <tromey@redhat.com>
13650
13651 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13652 (target_terminal_init): Add argument.
13653 * target.c (debug_to_terminal_init): Add argument.
13654 (update_current_target): Update.
13655 * inflow.c (terminal_init_inferior): Add 'self' argument.
13656 * inferior.h (terminal_init_inferior): Add 'self' argument.
13657 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13658 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13659
c3a5ff89
TT
136602014-02-19 Tom Tromey <tromey@redhat.com>
13661
13662 * target.h (struct target_ops)
13663 <to_can_accel_watchpoint_condition>: Add argument.
13664 (target_can_accel_watchpoint_condition): Add argument.
13665 * target.c (debug_to_can_accel_watchpoint_condition): Add
13666 argument.
13667 (update_current_target): Update.
13668 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13669 'self' argument.
13670
31568a15
TT
136712014-02-19 Tom Tromey <tromey@redhat.com>
13672
13673 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13674 Add argument.
13675 (target_region_ok_for_hw_watchpoint): Add argument.
13676 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13677 (default_region_ok_for_hw_watchpoint): Add argument.
13678 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13679 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13680 argument.
13681 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13682 argument.
13683 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13684 argument.
13685 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13686 'self' argument.
13687 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13688 'self' argument.
13689 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13690 'self' argument.
13691 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13692 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13693 'self' argument.
13694 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13695 Add 'self' argument.
13696
7bb99c53
TT
136972014-02-19 Tom Tromey <tromey@redhat.com>
13698
13699 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13700 argument.
13701 (target_insert_watchpoint): Add argument.
13702 * target.c (debug_to_insert_watchpoint): Add argument.
13703 (update_current_target): Update.
13704 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13705 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13706 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13707 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13708 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13709 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13710 argument.
13711 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13712 (procfs_insert_hw_watchpoint): Add 'self' argument.
13713 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13714 argument.
13715 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13716 argument.
13717 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13718 argument.
13719 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13720 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13721 argument.
13722 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13723 'self' argument.
13724
11b5219a
TT
137252014-02-19 Tom Tromey <tromey@redhat.com>
13726
13727 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13728 argument.
13729 (target_remove_watchpoint): Add argument.
13730 * target.c (debug_to_remove_watchpoint): Add argument.
13731 (update_current_target): Update.
13732 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13733 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13734 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13735 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13736 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13737 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13738 argument.
13739 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13740 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13741 argument.
13742 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13743 argument.
13744 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13745 argument.
13746 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13747 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13748 argument.
13749 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13750 'self' argument.
13751
a64dc96c
TT
137522014-02-19 Tom Tromey <tromey@redhat.com>
13753
13754 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13755 argument.
13756 (target_remove_hw_breakpoint): Add argument.
13757 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13758 (update_current_target): Update.
13759 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13760 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13761 argument.
13762 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13763 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13764 argument.
13765 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13766 'self' argument.
13767
23a26771
TT
137682014-02-19 Tom Tromey <tromey@redhat.com>
13769
13770 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13771 argument.
13772 (target_insert_hw_breakpoint): Add argument.
13773 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13774 (update_current_target): Update.
13775 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13776 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13777 argument.
13778 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13779 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13780 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13781 argument.
13782 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13783 'self' argument.
13784
5461485a
TT
137852014-02-19 Tom Tromey <tromey@redhat.com>
13786
13787 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13788 argument.
13789 (target_can_use_hardware_watchpoint): Add argument.
13790 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13791 (update_current_target): Update.
13792 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13793 argument.
13794 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13795 argument.
13796 * remote.c (remote_check_watch_resources): Add 'self' argument.
13797 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13798 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13799 argument.
13800 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13801 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13802 argument.
13803 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13804 argument.
13805 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13806 argument.
13807 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13808 argument.
13809 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13810 argument.
13811 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13812 argument.
13813 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13814 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13815 argument.
13816 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13817 'self' argument.
13818
f045800c
TT
138192014-02-19 Tom Tromey <tromey@redhat.com>
13820
13821 * target.h (struct target_ops) <to_post_attach>: Add argument.
13822 (target_post_attach): Add argument.
13823 * target.c (debug_to_post_attach): Add argument.
13824 (update_current_target): Update.
13825 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13826 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13827 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13828 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13829 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13830
de90e03d
TT
138312014-02-19 Tom Tromey <tromey@redhat.com>
13832
13833 * windows-nat.c (windows_close): Add 'self' argument.
13834 * tracepoint.c (tfile_close): Add 'self' argument.
13835 * target.h (struct target_ops) <to_close>: Add argument.
13836 * target.c (target_close): Add argument.
13837 (update_current_target): Update.
13838 * remote.c (remote_close): Add 'self' argument.
13839 * remote-sim.c (gdbsim_close): Add 'self' argument.
13840 * remote-mips.c (mips_close): Add 'self' argument.
13841 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13842 * record-full.c (record_full_close): Add 'self' argument.
13843 * record-btrace.c (record_btrace_close): Add 'self' argument.
13844 * monitor.h (monitor_close): Add 'self' argument.
13845 * monitor.c (monitor_close): Add 'self' argument.
13846 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13847 * linux-nat.c (linux_nat_close): Add argument.
13848 * go32-nat.c (go32_close): Add 'self' argument.
13849 * exec.c (exec_close_1): Add 'self' argument.
13850 * ctf.c (ctf_close): Add 'self' argument.
13851 * corelow.c (core_close): Add 'self' argument.
13852 (core_close_cleanup): Update.
13853 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13854 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13855
9dd130a0
TT
138562014-02-19 Tom Tromey <tromey@redhat.com>
13857
13858 * remote.c (remote_load): New function.
13859 (init_remote_ops): Use it.
13860
46917d26
TT
138612014-02-19 Tom Tromey <tromey@redhat.com>
13862
13863 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13864 argument.
13865 * common/linux-btrace.h (linux_supports_btrace): Update.
13866 * remote.c (remote_supports_btrace): Add "self" argument.
13867 * target-delegates.c: Rebuild.
13868 * target.c (target_supports_btrace): Remove.
13869 * target.h (struct target_ops) <to_supports_btrace>: Add
13870 target_ops argument.
13871 (target_supports_btrace): New define.
13872
6b84065d
TT
138732014-02-19 Tom Tromey <tromey@redhat.com>
13874
13875 * record-full.c (record_full_beneath_to_resume_ops)
13876 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13877 (record_full_beneath_to_wait)
13878 (record_full_beneath_to_store_registers_ops)
13879 (record_full_beneath_to_store_registers)
13880 (record_full_beneath_to_xfer_partial_ops)
13881 (record_full_beneath_to_xfer_partial)
13882 (record_full_beneath_to_insert_breakpoint_ops)
13883 (record_full_beneath_to_insert_breakpoint)
13884 (record_full_beneath_to_remove_breakpoint_ops)
13885 (record_full_beneath_to_remove_breakpoint)
13886 (record_full_beneath_to_stopped_by_watchpoint)
13887 (record_full_beneath_to_stopped_data_address)
13888 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13889 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13890 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13891 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13892 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13893 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13894 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13895 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13896 (record_full_resume, record_full_wait_1)
13897 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13898 (record_full_store_registers, record_full_xfer_partial)
13899 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13900 (record_full_async, record_full_core_xfer_partial): Use target
13901 delegation.
13902 * target-delegates.c: Rebuild.
13903 * target.c (current_xfer_partial): Remove.
13904 (update_current_target): Do not INHERIT or de_fault
13905 to_insert_breakpoint, to_remove_breakpoint,
13906 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13907 to_is_async_p, to_async. Do not set to_xfer_partial field.
13908 (default_xfer_partial): Simplify.
13909 (current_xfer_partial): Remove.
13910 (target_wait, target_resume): Simplify.
13911 (find_default_can_async_p, find_default_is_async_p): Update.
13912 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13913 to_xfer_partial, to_stopped_by_watchpoint,
13914 to_stopped_data_address.
13915 (target_store_registers): Simplify.
13916 (forward_target_remove_breakpoint)
13917 (forward_target_insert_breakpoint): Remove.
13918 (target_remove_breakpoint, target_insert_breakpoint)
13919 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13920 * target.h (struct target_ops) <to_resume, to_wait,
13921 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13922 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13923 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13924 markup.
13925 (forward_target_remove_breakpoint)
13926 (forward_target_insert_breakpoint): Remove.
13927 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13928 directly.
13929 (record_btrace_insert_breakpoint): Delegate directly.
13930
1101cb7b
TT
139312014-02-19 Tom Tromey <tromey@redhat.com>
13932
13933 PR build/7701:
13934 * target-delegates.c: New file.
13935 * target.c: Include target-delegates.c.
13936 (init_dummy_target): Call install_dummy_methods.
13937 (complete_target_initialization): Call install_delegators.
13938 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13939 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13940 * make-target-delegates: New file.
13941
8b06beed
TT
139422014-02-19 Tom Tromey <tromey@redhat.com>
13943
13944 * record.c (find_record_target): Use find_target_at.
13945 * target.c (find_target_at): New function.
13946 * target.h (find_target_at): Declare.
13947
6a109b6b
TT
139482014-02-19 Tom Tromey <tromey@redhat.com>
13949
13950 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13951 Add 'ops' argument.
13952 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13953 'ops' argument.
13954 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13955 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13956 'ops' argument.
13957 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13958 argument.
13959 * linux-nat.c (save_sigtrap): Update.
13960 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13961 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13962 (linux_nat_close): Update.
13963 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13964 argument.
13965 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13966 argument.
13967 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13968 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13969 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13970 (tmp_to_async): Add 'ops' argument.
13971 (record_full_stopped_by_watchpoint, record_full_async)
13972 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13973 argument.
13974 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13975 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13976 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13977 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13978 (remote_is_async_p, remote_async): Add 'ops' argument.
13979 (remote_stopped_data_address): Update.
13980 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13981 * target.c (update_current_target)
13982 (find_default_can_async_p, find_default_is_async_p): Update.
13983 (init_dummy_target): Update.
13984 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13985 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13986 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13987 (target_can_async_p, target_is_async_p, target_async)
13988 (target_stopped_by_watchpoint): Update.
13989
e095146b
YQ
139902014-02-19 Yao Qi <yao@codesourcery.com>
13991
13992 PR gdb/16220
13993 * gdbarch.sh: Remove startup_gdbarch.
13994 * gdbarch.c: Regenerated.
13995 * gdbarch.h: Likewise.
13996
bc3c6b36
KB
139972014-02-17 Kevin Buettner <kevinb@redhat.com>
13998
13999 * rl78-tdep.c (rl78_g10_register_name): New function.
14000 (rl78_return_value): Add g10 support.
14001 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14002 g10.
14003
98dc0167 140042014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
14005
14006 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14007 (SUBDIR_GUILE_SRCS): Ditto.
14008 (scm-gsmob.o): Ditto.
14009
842c05cd
YQ
140102014-02-17 Yao Qi <yao@codesourcery.com>
14011
14012 * gnu-nat.c (ILL_RPC): Declare defined function.
14013
25c0bd04
YQ
140142014-02-17 Yao Qi <yao@codesourcery.com>
14015
14016 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14017 mach_msg_type_number_t.
14018 (gnu_write_inferior): Likewise.
14019
a9a758e3
YQ
140202014-02-17 Yao Qi <yao@codesourcery.com>
14021
14022 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14023 in format string.
14024 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14025 (inf_validate_procs, inf_signal): Likewise.
14026 (S_exception_raise_request): Likewise.
14027 (do_mach_notify_dead_name): Likewise.
14028 (steal_exc_port): Likewise.
14029 (gnu_read_inferior): Change 'copy_count''s type to
14030 mach_msg_type_number_t.
14031 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14032 format string.
14033
bae8023e
TS
140342014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14035
c82f56d9
TS
14036 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14037 flag. Adjust all users; in particular...
14038 (gnu_wait): ..., don't decrement its value in here...
14039 (gnu_create_inferior): ..., and instead set the flag in here,
14040 around the startup_inferior call, and call that one with
14041 START_INFERIOR_TRAPS_EXPECTED.
14042
3398af6a
TS
14043 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14044 (ILL_RPC): ... new macro.
14045 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14046 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14047 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14048 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14049 functions with ILL_RPC macro.
14050 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14051 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14052 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14053 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14054 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14055 (S_proc_getlogin_reply, S_proc_getsid_reply)
14056 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14057 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14058 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14059 (S_proc_getnports_reply, S_proc_is_important_reply)
14060 (S_proc_get_code_reply): New stub functions, generated with
14061 ILL_RPC macro.
14062
d47642c9
TS
14063 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14064 collected the type check structures.
14065
bae8023e
TS
14066 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14067
8a55ffb0
DE
140682014-02-14 Doug Evans <dje@google.com>
14069
14070 * target.c (target_write_partial): Fix result type.
14071
c2853f3d
JM
140722014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14073
14074 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14075 the proper offsets to access fpregset_t.
14076
ac61d2db
SA
140772014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14078
14079 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14080 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14081 * h8300-tdep.c (setmachinelist): Remove global.
14082 * hppa-tdep.c (hppa_sigtramp): Remove global.
14083 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14084 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14085 * ravenscar-thread.c (update_target_observer): Remove global.
14086 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14087
9d2d0b8b
TT
140882014-02-12 Tom Tromey <tromey@redhat.com>
14089
14090 * common/rsp-low.c: Update comments.
14091 * common/rsp-low.h: Update comments.
14092
a7191e8b
TT
140932014-02-12 Tom Tromey <tromey@redhat.com>
14094
14095 * common/rsp-low.c (convert_ascii_to_int): Remove.
14096 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14097
ff0e980e
TT
140982014-02-12 Tom Tromey <tromey@redhat.com>
14099
14100 * common/rsp-low.h (unhexify): Don't declare.
14101 * common/rsp-low.c (unhexify): Remove.
14102
e9371aff
TT
141032014-02-12 Tom Tromey <tromey@redhat.com>
14104
14105 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14106 * common/rsp-low.c (convert_int_to_ascii): Remove.
14107
971dc0b8
TT
141082014-02-12 Tom Tromey <tromey@redhat.com>
14109
14110 * common/rsp-low.h (hexify): Don't declare.
14111 * common/rsp-low.c (hexify): Remove.
14112
0a822afb
TT
141132014-02-12 Tom Tromey <tromey@redhat.com>
14114
14115 * common/rsp-low.c (hexify): Never take strlen of argument.
14116
9f1b45b0
TT
141172014-02-12 Tom Tromey <tromey@redhat.com>
14118
14119 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14120 * remote.c (extended_remote_run, remote_rcmd)
14121 (remote_download_trace_state_variable, remote_save_trace_data)
14122 (remote_set_trace_notes): Update.
14123 * tracepoint.c (encode_source_string, tfile_write_status)
14124 (tfile_write_uploaded_tsv): Update.
14125
9c3d6531
TT
141262014-02-12 Tom Tromey <tromey@redhat.com>
14127
14128 * tracepoint.c: Include rsp-low.h.
14129 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14130 * remote.c: Include rsp-low.h.
14131 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14132 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14133 (remote_unescape_input): Move to common/rsp-low.c.
14134 * common/rsp-low.h: New file.
14135 * common/rsp-low.c: New file.
14136 * Makefile.in (SFILES): Add common/rsp-low.c.
14137 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14138 (COMMON_OBS): Add rsp-low.o.
14139 (rsp-low.o): New target.
14140
01fd3ea5
TT
141412014-02-12 Tom Tromey <tromey@redhat.com>
14142
14143 * utils.h: Include print-utils.h.
14144 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14145 (int_string, core_addr_to_string, core_addr_to_string_nz)
14146 (hex_string, hex_string_custom): Don't declare.
14147 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14148 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14149 (hex_string_custom, int_string, core_addr_to_string)
14150 (core_addr_to_string_nz, host_address_to_string): Move to
14151 common/print-utils.c.
14152 * common/print-utils.h: New file.
14153 * common/print-utils.c: New file
14154 * Makefile.in (SFILES): Add common/print-utils.c.
14155 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14156 (COMMON_OBS): Add print-utils.o.
14157 (print-utils.o): New target.
14158
9fb50108
TT
141592014-02-12 Tom Tromey <tromey@redhat.com>
14160
14161 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14162
0548b5db
MK
141632014-02-12 Mark Kettenis <kettenis@gnu.org>
14164
14165 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14166
493443a4
MK
141672014-02-12 Mark Kettenis <kettenis@gnu.org>
14168
14169 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14170 if a PT_IO ptrace request returns sucessfully but indicates that 0
14171 bytes were transferred.
14172
706d0883
PA
141732014-02-12 Pedro Alves <palves@redhat.com>
14174 Kevin Buettner <kevinb@redhat.com>
14175
14176 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14177 TYPE_INSTANCE_FLAG_CODE_SPACE.
14178
5caa2f0b
PA
141792014-02-12 Pedro Alves <palves@redhat.com>
14180
14181 * h8300-tdep.c (pseudo_from_raw_register)
14182 (raw_from_pseudo_register): New functions.
14183 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14184 them.
14185
76fd5f74
PA
141862014-02-12 Pedro Alves <palves@redhat.com>
14187
14188 * h8300-tdep.c (h8300_register_sim_regno): New function.
14189 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14190 gdbarch_register_sim_regno hook.
14191
8f008406
SA
141922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14193
14194 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14195
195abc10
SA
141962014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14197
14198 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14199
93ffa5b9
MK
142002014-02-12 Mark Kettenis <kettenis@gnu.org>
14201
14202 * obsd-tdep.h (obsd_init_abi): New prototype.
14203 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14204 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14205 (obsd_init_abi): New functions.
14206 * i386obsd-tdep.c: Include "obsd-tdep.h".
14207 (i386obsd_init_abi): Call obsd_init_abi.
14208 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14209 (amd64obsd_init_abi): Call obsd_init_abi.
14210 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14211 obsd-tdep.c to gdb_target_obs.
14212
49caec94
JM
142132014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14214
14215 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14216 double float arguments to 16-byte in the argument slots.
14217
e1402065
DE
142182014-02-11 Doug Evans <xdje42@gmail.com>
14219
14220 * configure.ac: Don't crash if pkg-config is not found and guile
14221 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14222 in guile checks.
14223 * configure: Regenerate.
14224
edcc890f
YQ
142252014-02-11 Yao Qi <yao@codesourcery.com>
14226
14227 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14228 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14229 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14230 * gnu-nat.c (gnu_xfer_memory): Likewise.
14231 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14232 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14233 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14234 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14235
9b409511
YQ
142362014-02-11 Yao Qi <yao@codesourcery.com>
14237
14238 * target.h (enum target_xfer_error): Rename to ...
14239 (enum target_xfer_status): ... it. New. All users updated.
14240 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14241 New.
14242 (TARGET_XFER_STATUS_ERROR_P): New macro.
14243 (target_xfer_error_to_string): Remove declaration.
14244 (target_xfer_status_to_string): Declare.
14245 (target_xfer_partial_ftype): Adjust it.
14246 (struct target_ops) <to_xfer_partial>: Return
14247 target_xfer_status. Add argument xfered_len. Update
14248 comments.
14249 * target.c (target_xfer_error_to_string): Rename to ...
14250 (target_xfer_status_to_string): ... it. New. All callers
14251 updated.
14252 (target_read_live_memory): Likewise. Call target_xfer_partial
14253 instead of target_read.
14254 (memory_xfer_live_readonly_partial): Return
14255 target_xfer_status. Add argument xfered_len.
14256 (raw_memory_xfer_partial): Likewise.
14257 (memory_xfer_partial_1): Likewise.
14258 (memory_xfer_partial): Likewise.
14259 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14260 properly. Update debug message.
14261 (default_xfer_partial, current_xfer_partial): Likewise.
14262 (target_write_partial): Likewise.
14263 (target_read_partial): Likewise. All callers updated.
14264 (read_whatever_is_readable): Likewise.
14265 (target_write_with_progress): Likewise.
14266 (target_read_alloc_1): Likewise.
14267
14268 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14269 * auxv.c (procfs_xfer_auxv): Likewise.
14270 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14271 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14272 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14273 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14274 * corefile.c (read_memory): Adjust.
14275 * corelow.c (core_xfer_partial): Likewise.
14276 * ctf.c (ctf_xfer_partial): Likewise.
14277 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14278 updated.
14279 (darwin_xfer_partial): Likewise.
14280 * exec.c (section_table_xfer_memory_partial): Likewise. All
14281 callers updated.
14282 (exec_xfer_partial): Likewise.
14283 * exec.h (section_table_xfer_memory_partial): Update
14284 declaration.
14285 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14286 negative.
14287 (gnu_xfer_partial): Likewise.
14288 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14289 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14290 (ia64_hpux_xfer_solib_got): Likewise.
14291 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14292 type of 'partial_len' to ULONGEST.
14293 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14294 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14295 (linux_nat_xfer_partial): Likewise.
14296 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14297 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14298 * monitor.c (monitor_xfer_memory): Likewise.
14299 (monitor_xfer_partial): Likewise.
14300 * procfs.c (procfs_xfer_partial): Likewise.
14301 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14302 * record-full.c (record_full_xfer_partial): Likewise.
14303 (record_full_core_xfer_partial): Likewise.
14304 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14305 (gdbsim_xfer_partial): Likewise.
14306 * remote.c (remote_write_bytes_aux): Likewise. All callers
14307 updated.
14308 (remote_write_bytes, remote_read_bytes): Likewise. All
14309 callers updated.
14310 (remote_flash_erase): Likewise. All callers updated.
14311 (remote_write_qxfer): Likewise. All callers updated.
14312 (remote_read_qxfer): Likewise. All callers updated.
14313 (remote_xfer_partial): Likewise.
14314 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14315 (rs6000_xfer_shared_libraries): Likewise.
14316 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14317 (sol_thread_xfer_partial): Likewise.
14318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14319 (sparc_xfer_partial): Likewise.
14320 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14321 updated.
14322 (spu_xfer_partial): Likewise.
14323 * spu-multiarch.c (spu_xfer_partial): Likewise.
14324 * tracepoint.c (tfile_xfer_partial): Likewise.
14325 * windows-nat.c (windows_xfer_memory): Likewise.
14326 (windows_xfer_shared_libraries): Likewise.
14327 (windows_xfer_partial): Likewise.
14328 * valprint.c: Replace 'target_xfer_error' with
14329 'target_xfer_status' in comments.
14330
a8e63083
JB
143312014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14332
14333 Checked in by Joel Brobecker <brobecker@adacore.com>.
14334 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14335
e86b67d3
JB
143362014-02-11 Joel Brobecker <brobecker@adacore.com>
14337
14338 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14339 function parameters.
14340
4b7d1f7f
WN
143412014-02-10 Will Newton <will.newton@linaro.org>
14342
14343 * elfread.c (elf_rel_plt_read): Look for a .got section if
14344 looking up .got.plt fails.
14345 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14346 on address passed to elf_gnu_ifunc_record_cache.
14347 (elf_gnu_ifunc_resolve_addr): Likewise.
14348 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14349
961842b2
JM
143502014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14351
14352 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14353 (X_RETTURN): New macro.
14354 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14355
14356 * sparc64-tdep.c (sparc64_init_abi): Hook
14357 sparc_in_function_epilogue_p.
14358
3f03e7b1
GB
143592014-02-10 Gary Benson <gbenson@redhat.com>
14360
14361 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14362 Rename name_matcher to symbol_matcher.
14363
96f861ef
GB
143642014-02-10 Gary Benson <gbenson@redhat.com>
14365
14366 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14367 Use expand_symtabs_file_matcher_ftype and
14368 expand_symtabs_symbol_matcher_ftype.
14369
ee01b665
JB
143702014-02-10 Joel Brobecker <brobecker@adacore.com>
14371
14372 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14373 (struct ada_symbol_cache): New.
14374 (ada_free_symbol_cache): Forward declare.
14375 (struct ada_pspace_data): New.
14376 (ada_pspace_data_handle): New static global.
14377 (get_ada_pspace_data, ada_pspace_data_cleanup)
14378 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14379 (cache_space, cache): Delete, now folded inside struct
14380 ada_pspace_data.
14381 (ada_get_symbol_cache): New function.
14382 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14383 implementation.
14384 (_initialize_ada_language): Remove initialization of cache_space.
14385 Move call to observer_attach_inferior_exit up, grouping it
14386 with the other observer registrations inside this function.
14387 Rename command to be more general. Add call to
14388 register_program_space_data_with_cleanup.
14389
143adbbf
JB
143902014-02-10 Joel Brobecker <brobecker@adacore.com>
14391
14392 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14393 ada_new_objfile_observer.
14394 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14395 (_initialize_tasks): Update uses of ada_new_objfile_observer
14396 and ada_tasks_normal_stop_observer.
14397
aa4fb036
JB
143982014-02-10 Joel Brobecker <brobecker@adacore.com>
14399
14400 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14401 returned by the 'Length attribute to integer.
14402
9dee8cc6
JB
144032014-02-10 Joel Brobecker <brobecker@adacore.com>
14404
14405 * ada-lang.c (_initialize_ada_language): Initialize
14406 cache_space obstack.
14407
3d9434b5
JB
144082014-02-10 Joel Brobecker <brobecker@adacore.com>
14409
14410 * ada-lang.c (HASH_SIZE): New macro.
14411 (struct cache_entry): New type.
14412 (cache_space, cache): New static globals.
14413 (ada_clear_symbol_cache, find_entry): New functions.
14414 (lookup_cached_symbol, cache_symbol): Implement.
14415 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14416 (_initialize_ada_language): Attach ada_new_objfile_observer
14417 and ada_free_objfile_observer.
14418
f0c5f9b2
JB
144192014-02-10 Joel Brobecker <brobecker@adacore.com>
14420
14421 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14422 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14423 struct block * parameter.
14424 (ada_lookup_symbol_list_worker): Constify local variable "block".
14425 Remove cast which is no longer necessary.
14426
ed3ef339
DE
144272014-02-10 Doug Evans <xdje42@gmail.com>
14428
14429 Add Guile as an extension language.
14430 * NEWS: Mention Guile scripting.
14431 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14432 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14433 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14434 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14435 (CLIBS): Add GUILE_LIBS.
14436 (install-guile): New rule.
14437 (guile.o): New rule.
14438 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14439 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14440 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14441 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14442 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14443 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14444 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14445 * configure.ac: New option --with-guile.
14446 * configure: Regenerate.
14447 * config.in: Regenerate.
14448 * auto-load.c: Remove #include "python/python.h". Add #include
14449 "gdb/section-scripts.h".
14450 (source_section_scripts): Handle Guile scripts.
14451 (_initialize_auto_load): Add name of Guile objfile script to
14452 scripts-directory help text.
14453 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14454 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14455 (struct breakpoint): New member scm_bp_object.
14456 * defs.h (enum command_control_type): New value guile_control.
14457 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14458 "extension.h".
14459 (show_user): Update comment.
14460 (_initialize_cli_cmds): Update help text for "show user". Update help
14461 text for max-user-call-depth.
14462 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14463 "extension.h".
14464 (multi_line_command_p): Add guile_control.
14465 (print_command_lines): Handle guile_control.
14466 (execute_control_command, recurse_read_control_structure): Ditto.
14467 (process_next_line): Recognize "guile" commands.
14468 * disasm.c (gdb_disassemble_info): Make non-static.
14469 * disasm.h: #include "dis-asm.h".
14470 (struct gdbarch): Add forward decl.
14471 (gdb_disassemble_info): Declare.
14472 * extension.c: #include "guile/guile.h".
14473 (extension_languages): Add guile.
14474 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14475 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14476 * gdbtypes.c (get_unsigned_type_max): New function.
14477 (get_signed_type_minmax): New function.
14478 * gdbtypes.h (get_unsigned_type_max): Declare.
14479 (get_signed_type_minmax): Declare.
14480 * guile/README: New file.
14481 * guile/guile-internal.h: New file.
14482 * guile/guile.c: New file.
14483 * guile/guile.h: New file.
14484 * guile/scm-arch.c: New file.
14485 * guile/scm-auto-load.c: New file.
14486 * guile/scm-block.c: New file.
14487 * guile/scm-breakpoint.c: New file.
14488 * guile/scm-disasm.c: New file.
14489 * guile/scm-exception.c: New file.
14490 * guile/scm-frame.c: New file.
14491 * guile/scm-gsmob.c: New file.
14492 * guile/scm-iterator.c: New file.
14493 * guile/scm-lazy-string.c: New file.
14494 * guile/scm-math.c: New file.
14495 * guile/scm-objfile.c: New file.
14496 * guile/scm-ports.c: New file.
14497 * guile/scm-pretty-print.c: New file.
14498 * guile/scm-safe-call.c: New file.
14499 * guile/scm-string.c: New file.
14500 * guile/scm-symbol.c: New file.
14501 * guile/scm-symtab.c: New file.
14502 * guile/scm-type.c: New file.
14503 * guile/scm-utils.c: New file.
14504 * guile/scm-value.c: New file.
14505 * guile/lib/gdb.scm: New file.
14506 * guile/lib/gdb/boot.scm: New file.
14507 * guile/lib/gdb/experimental.scm: New file.
14508 * guile/lib/gdb/init.scm: New file.
14509 * guile/lib/gdb/iterator.scm: New file.
14510 * guile/lib/gdb/printing.scm: New file.
14511 * guile/lib/gdb/types.scm: New file.
14512 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14513 (VPATH): Add $(GUILE_SRCDIR).
14514 (GUILE_DIR): New variable.
14515 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14516 (all): Add stamp-guile dependency.
14517 (stamp-guile): New rule.
14518 (clean-guile, install-guile, uninstall-guile): New rules.
14519 (install-only): Add install-guile dependency.
14520 (uninstall): Add uninstall-guile dependency.
14521 (clean): Add clean-guile dependency.
14522
ac020ec5
DE
145232014-02-09 Doug Evans <xdje42@gmail.com>
14524
14525 Revert this patch (which I approved, mea culpa).
14526
14527 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14528
14529 * Makefile.in (all-lib): Remove.
14530 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14531
2a081c59
JK
145322014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14533
14534 Fix Python stack corruption.
14535 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14536 gdb_py_longest.
14537
0a6bd22d
MK
145382014-02-08 Mark Kettenis <kettenis@gnu.org>
14539
14540 * Makefile.in (all-lib): Remove.
14541 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14542
1a860409
DE
145432014-02-07 Doug Evans <dje@google.com>
14544
14545 * extension-priv.h (extension_language_script_ops): Add comment.
14546 (extension_language_ops): Add comment.
caf5a491 14547 (active_ext_lang_state): Fix typo in comment.
1a860409 14548
d137e6dc
PA
145492014-02-07 Pedro Alves <palves@redhat.com>
14550
0dcb32c3 14551 PR breakpoints/16292
d137e6dc
PA
14552 * infrun.c (handle_signal_stop) <signal arrives while stepping
14553 over a breakpoint>: Switch back to the stepping thread.
14554
ce6d0892
YQ
145552014-02-07 Yao Qi <yao@codesourcery.com>
14556
14557 * target.c (target_xfer_partial): Return zero if LEN is zero.
14558
2ed4b548
YQ
145592014-02-07 Yao Qi <yao@codesourcery.com>
14560
14561 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14562 (ld_so_xfer_auxv): Likewise.
14563 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14564 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14565 * corelow.c (core_xfer_partial): Likewise.
14566 * ctf.c (ctf_xfer_partial): Likewise.
14567 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14568 (darwin_xfer_partial): Likewise.
14569 * exec.c (exec_xfer_partial): Likewise.
14570 * gnu-nat.c (gnu_xfer_partial): Likewise.
14571 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14572 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14573 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14574 * linux-nat.c (linux_xfer_siginfo): Likewise.
14575 (linux_proc_xfer_spu): Likewise.
14576 * procfs.c (procfs_xfer_partial): Likewise.
14577 * record-full.c (record_full_xfer_partial): Likewise.
14578 (record_full_core_xfer_partial): Likewise.
14579 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14580 * remote.c (remote_write_qxfer): Likewise.
14581 (remote_write_qxfer, remote_read_qxfer): Likewise.
14582 (remote_xfer_partial): Likewise.
14583 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14584 (rs6000_xfer_shared_libraries): Likewise.
14585 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14586 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14587 (spu_xfer_partial): Likewise.
14588 * target.c (memory_xfer_partial_1): Likewise.
14589 * tracepoint.c (tfile_xfer_partial): Likewise.
14590 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14591 (windows_xfer_partial): Likewise.
14592
c09f20e4
YQ
145932014-02-07 Yao Qi <yao@codesourcery.com>
14594
14595 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14596 comments.
14597 (core_xfer_shared_libraries_aix): Likewise.
14598 * gdbarch.c, gdbarch.h: Regenerated.
14599 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14600 ULONGEST. Change 'len_avail' type to ULONGEST.
14601 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14602 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14603 declaration.
14604 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14605
8635b3bf
YQ
146062014-02-07 Yao Qi <yao@codesourcery.com>
14607
14608 * corefile.c (memory_error): Get 'exception' from ERR and pass
14609 'exception' to throw_error.
14610
6dddc817
DE
146112014-02-06 Doug Evans <xdje42@gmail.com>
14612
14613 * configure.ac (libpython checking): Remove all but python.o from
14614 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14615 * configure: Regenerate.
14616
14617 * Makefile.in (SFILES): Add extension.c.
14618 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14619 (COMMON_OBS): Add extension.o.
14620 * extension.h: New file.
14621 * extension-priv.h: New file.
14622 * extension.c: New file.
14623
14624 * python/python-internal.h: #include "extension.h".
14625 (gdbpy_auto_load_enabled): Declare.
14626 (gdbpy_apply_val_pretty_printer): Declare.
14627 (gdbpy_apply_frame_filter): Declare.
14628 (gdbpy_preserve_values): Declare.
14629 (gdbpy_breakpoint_cond_says_stop): Declare.
14630 (gdbpy_breakpoint_has_cond): Declare.
14631 (void source_python_script_for_objfile): Delete.
14632 * python/python.c: #include "extension-priv.h".
14633 Delete inclusion of "observer.h".
14634 (extension_language_python): Moved here and renamed from
14635 script_language_python in py-auto-load.c.
14636 Redefined to be of type extension_language_defn.
14637 (python_extension_script_ops): New global.
14638 (python_extension_ops): New global.
14639 (struct python_env): New member previous_active.
14640 (restore_python_env): Call restore_active_ext_lang.
14641 (ensure_python_env): Call set_active_ext_lang.
14642 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14643 New arg extlang.
14644 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14645 New arg extlang.
14646 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14647 New arg extlang.
14648 (gdbpy_eval_from_control_command): Renamed from
14649 eval_python_from_control_command, made static. New arg extlang.
14650 (gdbpy_source_script) Renamed from source_python_script, made static.
14651 New arg extlang.
14652 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14653 result to int. New arg extlang.
14654 (gdbpy_source_objfile_script): Renamed from
14655 source_python_script_for_objfile, made static. New arg extlang.
14656 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14657 static. New args extlang, extlang_printers. Change result type to
14658 "void".
14659 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14660 static. New arg extlang. Rename arg printers to extlang_printers
14661 and change type to ext_lang_type_printers *.
14662 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14663 static. Replace argument arg with extlang, extlang_printers.
14664 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14665 (!HAVE_PYTHON, source_python_script): Delete.
14666 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14667 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14668 (!HAVE_PYTHON, start_type_printers): Delete.
14669 (!HAVE_PYTHON, apply_type_printers): Delete.
14670 (!HAVE_PYTHON, free_type_printers): Delete.
14671 (_initialize_python): Delete call to observer_attach_before_prompt.
14672 (finalize_python): Set/restore active extension language.
14673 (gdbpy_finish_initialization) Renamed from
14674 finish_python_initialization, made static. New arg extlang.
14675 (gdbpy_initialized): New function.
14676 * python/python.h: #include "extension.h". Delete #include
14677 "value.h", "mi/mi-cmds.h".
14678 (extension_language_python): Declare.
14679 (GDBPY_AUTO_FILE_NAME): Delete.
14680 (enum py_bt_status): Moved to extension.h and renamed to
14681 ext_lang_bt_status.
14682 (enum frame_filter_flags): Moved to extension.h.
14683 (enum py_frame_args): Moved to extension.h and renamed to
14684 ext_lang_frame_args.
14685 (finish_python_initialization): Delete.
14686 (eval_python_from_control_command): Delete.
14687 (source_python_script): Delete.
14688 (apply_val_pretty_printer): Delete.
14689 (apply_frame_filter): Delete.
14690 (preserve_python_values): Delete.
14691 (gdbpy_script_language_defn): Delete.
14692 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14693 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14694
14695 * auto-load.c: #include "extension.h".
14696 (GDB_AUTO_FILE_NAME): Delete.
14697 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14698 (script_language_gdb): Delete, moved to extension.c and renamed to
14699 extension_language_gdb.
14700 (source_gdb_script_for_objfile): Delete.
14701 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14702 (loaded_script): Change type of language member to
14703 struct extension_language_defn *.
14704 (init_loaded_scripts_info): Initialize
14705 unsupported_script_warning_printed.
14706 (maybe_add_script): Make static. Change type of language arg to
14707 struct extension_language_defn *.
14708 (clear_section_scripts): Reset unsupported_script_warning_printed.
14709 (auto_load_objfile_script_1): Rewrite to use extension language API.
14710 (auto_load_objfile_script): Make public. Remove support-compiled-in
14711 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14712 (source_section_scripts): Rewrite to use extension language API.
14713 (load_auto_scripts_for_objfile): Rewrite to use
14714 auto_load_scripts_for_objfile.
14715 (collect_matching_scripts_data): Change type of language member to
14716 struct extension_language_defn *.
14717 (auto_load_info_scripts): Change type of language arg to
14718 struct extension_language_defn *.
14719 (unsupported_script_warning_print): New function.
14720 (script_not_found_warning_print): Make static.
14721 (_initialize_auto_load): Rewrite construction of scripts-directory
14722 help.
14723 * auto-load.h (struct objfile): Add forward decl.
14724 (struct script_language): Delete.
14725 (struct auto_load_pspace_info): Add forward decl.
14726 (struct extension_language_defn): Add forward decl.
14727 (maybe_add_script): Delete.
14728 (auto_load_objfile_script): Declare.
14729 (script_not_found_warning_print): Delete.
14730 (auto_load_info_scripts): Update prototype.
14731 (auto_load_gdb_scripts_enabled): Declare.
14732 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14733 auto_load_python_scripts_enabled and made public.
14734 (script_language_python): Delete, moved to python.c.
14735 (gdbpy_script_language_defn): Delete.
14736 (info_auto_load_python_scripts): Update to use
14737 extension_language_python.
14738
14739 * breakpoint.c (condition_command): Replace call to
14740 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14741 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14742 with call to breakpoint_ext_lang_cond_says_stop.
14743 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14744 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14745 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14746 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14747 New arg slang.
14748 (local_setattro): Print name of extension language with existing
14749 stop condition.
14750
14751 * valprint.c (val_print, value_print): Update to call
14752 apply_ext_lang_val_pretty_printer.
14753 * cp-valprint.c (cp_print_value): Update call to
14754 apply_ext_lang_val_pretty_printer.
14755 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14756 (gdbpy_apply_val_pretty_printer): Renamed from
14757 apply_val_pretty_printer. New arg extlang.
14758 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14759
14760 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14761 extension language API.
14762 * cli/cli-script.c (execute_control_command): Update to call
14763 eval_ext_lang_from_control_command.
14764
14765 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14766 enum ext_lang_bt_status values. Update call to
14767 apply_ext_lang_frame_filter.
14768 (mi_cmd_stack_list_locals): Ditto.
14769 (mi_cmd_stack_list_args): Ditto.
14770 (mi_cmd_stack_list_variables): Ditto.
14771 * mi/mi-main.c: Delete #include "python/python-internal.h".
14772 Add #include "extension.h".
14773 (mi_cmd_list_features): Replace reference to python internal variable
14774 gdb_python_initialized with call to ext_lang_initialized_p.
14775
14776 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14777 Update to use enum ext_lang_frame_args. Update to call
14778 apply_ext_lang_frame_filter.
14779 * python/py-framefilter.c (extract_sym): Update to use enum
14780 ext_lang_bt_status.
14781 (extract_value, py_print_type, py_print_value): Ditto.
14782 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14783 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14784 (py_print_frame): Ditto.
14785 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14786 New arg extlang. Update to use enum ext_lang_bt_status.
14787
14788 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14789 finish_python_initialization. Replace with call to
14790 finish_ext_lang_initialization.
14791
14792 * typeprint.c (do_free_global_table): Update to call
14793 free_ext_lang_type_printers.
14794 (create_global_typedef_table): Update to call
14795 start_ext_lang_type_printers.
14796 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14797 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14798 (type_print_options): Change type of global_printers from "void *"
14799 to "struct ext_lang_type_printers *".
14800
14801 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14802 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14803 (gdbpy_preserve_values): Renamed from preserve_python_values.
14804 New arg extlang.
14805 (!HAVE_PYTHON, preserve_python_values): Delete.
14806
14807 * utils.c (quit_flag): Delete, moved to extension.c.
14808 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14809 extension.c.
14810
14811 * eval.c: Delete #include "python/python.h".
14812 * main.c: Delete #include "python/python.h".
14813
14814 * defs.h: Update comment.
14815
6af79985
JB
148162014-02-06 Joel Brobecker <brobecker@adacore.com>
14817
14818 GDB 7.7 released.
14819
12c5175d
MK
148202014-02-05 Mark Kettenis <kettenis@gnu.org>
14821
14822 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14823 defined.
14824
8dc5b319
YQ
148252014-02-05 Yao Qi <yao@codesourcery.com>
14826
14827 * remote.c (remote_pass_signals): Remove local 'buf' and use
14828 rs->buf.
14829 (remote_program_signals): Likewise.
14830
de7b2893
YQ
148312014-02-05 Yao Qi <yao@codesourcery.com>
14832
14833 * ctf.c: Include "inferior.h" and "gdbthread.h".
14834 (CTF_PID): A new macro.
14835 (ctf_open): Call inferior_appeared and add_thread_silent.
14836 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14837 (ctf_thread_alive): New function.
14838 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14839
66d032ac
YQ
148402014-02-05 Yao Qi <yao@codesourcery.com>
14841
14842 Revert this patch:
14843
14844 2013-05-24 Yao Qi <yao@codesourcery.com>
14845
14846 * tracepoint.c (TFILE_PID): Remove.
14847 (tfile_open): Don't add thread and inferior.
14848 (tfile_close): Don't set 'inferior_ptid'. Don't call
14849 exit_inferior_silent.
14850 (tfile_thread_alive): Remove.
14851 (init_tfile_ops): Don't set field 'to_thread_alive' of
14852 tfile_ops.
14853
f4ccffad
CE
148542014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14855
14856 * remote.c (remote_start_remote): Call remote_check_symbols even
14857 if only symbol-file (not file) has been given.
14858
591a12a1
UW
148592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14860
14861 * gdbarch.sh (skip_entrypoint): New callback.
14862 * gdbarch.c, gdbarch.h: Regenerate.
14863 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14864 * infrun.c (fill_in_stop_func): Likewise.
14865 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14866 (ppc_elfv2_elf_make_msymbol_special): New function.
14867 (ppc_elfv2_skip_entrypoint): Likewise.
14868 (ppc_linux_init_abi): Install them for ELFv2.
14869
cc0e89c5
UW
148702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14871
14872 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14873 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14874 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14875 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14876 structures returned in GPRs.
14877
52f548e4
UW
148782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14879
14880 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14881 offset to the stack parameter list for the ELFv2 ABI.
14882
d4094b6a
UW
148832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14884
14885 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14886 set_gdbarch_convert_from_func_ptr_addr and
14887 set_gdbarch_elf_make_msymbol_special for ELFv1.
14888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14889 function descriptors on ELFv1.
14890 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14891 set up r12 at function entry.
14892
cd453cd0
UW
148932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14894
14895 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14896 (struct gdbarch_tdep): New member elf_abi.
14897
14898 * rs6000-tdep.c: Include "elf/ppc64.h".
14899 (rs6000_gdbarch_init): Detect ELF ABI version.
14900
0ff3e01f
UW
149012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14902
14903 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14904 within a register pair holding a DFP 128-bit value on little-endian.
14905 (ppc64_sysv_abi_return_value_base): Likewise.
14906 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14907 (dfp_pseudo_register_write): Likewise.
14908
5b757e5d
UW
149092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14910
14911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14912 offset on little-endian when passing _Decimal32.
14913 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14914
084ee545
UW
149152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14916
14917 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14918 of the overlapped FP register within the VSX register on little-
14919 endian platforms.
14920 (efpr_pseudo_register_write): Likewise.
14921
d63167af
UW
149222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14923
14924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14925 offset on little-endian when passing small structures.
14926
e765b44c
UW
149272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14928
14929 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14930 (struct ppc64_sysv_argpos): New data structure.
14931 (ppc64_sysv_abi_push_float): Remove.
14932 (ppc64_sysv_abi_push_val): New function.
14933 (ppc64_sysv_abi_push_integer): Likewise.
14934 (ppc64_sysv_abi_push_freg): Likewise.
14935 (ppc64_sysv_abi_push_vreg): Likewise.
14936 (ppc64_sysv_abi_push_param): Likewise.
14937 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14938 (ppc64_sysv_abi_return_value_base): New function.
14939 (ppc64_sysv_abi_return_value): Refactor to use it.
14940
36c24d95
UW
149412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14942
14943 * NEWS: Document new target powerpc64le-*-linux*.
14944
26fd9228
MK
149452014-02-04 Mark Kettenis <kettenis@gnu.org>
14946
14947 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14948 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14949 core dumps.
14950 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14951 register set used in ELF core dumps. Add floating-point register set.
14952
c5bb7362
KB
149532014-02-03 Kevin Buettner <kevinb@redhat.com>
14954
74228e77 14955 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14956 dwarf2_to_gdb[] table using symbolic constants. Adjust
14957 penultimate entry from number representing the PC register
14958 to symbolic constant representing the MDR register. Add
14959 constant for the PC register to the end of the table.
14960
af09351e
MK
149612014-02-03 Mark Kettenis <kettenis@gnu.org>
14962
14963 * bsd-kvm.c: Include <sys/param.h>
14964
8507e05d
MK
149652014-02-03 Mark Kettenis <kettenis@gnu.org>
14966
14967 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14968
ae56bfb8
JB
149692014-01-31 Joel Brobecker <brobecker@adacore.com>
14970
14971 * ada-lang.h (clear_ada_sym_cache): Delete.
14972
718ee4dc
UW
149732014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14974
14975 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14976
401e27fd
JM
149772014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14978
14979 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14980 the sigreturn register save area only if the syscall is
14981 sigreturn.
14982
a7c88acd
JB
149832014-01-29 Joel Brobecker <brobecker@adacore.com>
14984
14985 * valops.c (value_slice): Minor reformatting.
14986
fa0079ea
UW
149872014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14988
14989 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14990
c6044dd1
JB
149912014-01-28 Joel Brobecker <brobecker@adacore.com>
14992
14993 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14994 New static globals.
14995 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14996 (ada_ignore_descriptive_types_p): New static global.
14997 (find_parallel_type_by_descriptive_type): Return immediately
14998 if ada_ignore_descriptive_types_p is set.
14999 (_initialize_ada_language): Register new commands "maintenance
15000 set ada", "maintenance show ada", "maintenance set ada
15001 ignore-descriptive-types" and "maintenance show ada
15002 ignore-descriptive-types".
15003 * NEWS: Add entry for new "maint ada set/show
15004 ignore-descriptive-types" commands.
15005
568e808b
MM
150062014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15007
15008 * record-btrace.c (record_btrace_close): Call btrace_teardown
15009 for all threads.
15010
467d141b
JB
150112014-01-27 Joel Brobecker <brobecker@adacore.com>
15012
15013 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15014 "ui-out.h".
15015
fb151210
JB
150162014-01-27 Joel Brobecker <brobecker@adacore.com>
15017
15018 * ada-typeprint (type_is_full_subrange_of_target_type):
15019 New function.
15020 (print_range): Add parameter bounds_prefered_p. If not set,
15021 try printing range types using the name of their base type.
15022 (print_range_type): Add parameter bounds_prefered_p.
15023 Use it in call to print_range.
15024 (print_array_type, ada_print_type): Update calls to print_range
15025 and print_range_type.
15026
aba02109
JB
150272014-01-27 Joel Brobecker <brobecker@adacore.com>
15028
15029 * ada-typeprint.c (print_array_type, print_choices, print_range)
15030 (print_range_bound, print_dynamic_range_bound, print_range_type):
15031 Remove declaration.
15032
e62e21fd
JB
150332014-01-27 Joel Brobecker <brobecker@adacore.com>
15034
15035 * ada-typeprint.c (print_range): Add missing empty line
15036 after local declaration.
15037
859cf5d1
JB
150382014-01-27 Joel Brobecker <brobecker@adacore.com>
15039
15040 * ada-valprint.c (print_optional_low_bound): Get index_type's
15041 target type for as long as it is a TYPE_CODE_RANGE.
15042
25790f6f
JB
150432014-01-27 Joel Brobecker <brobecker@adacore.com>
15044
15045 * procfs.c (procfs_make_note_section): Remove assertion and
15046 associated comment.
15047
6b6aa828
YQ
150482014-01-24 Yao Qi <yao@codesourcery.com>
15049
15050 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15051 * corelow.c (get_core_siginfo): Likewise.
15052
5d6df423
YQ
150532014-01-24 Yao Qi <yao@codesourcery.com>
15054
15055 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15056 ULONGEST. Don't check 'len' is negative.
15057 (remote_write_bytes): Change type of 'len' to ULONGEST.
15058
83b645b8
TT
150592014-01-23 Tom Tromey <tromey@redhat.com>
15060
15061 PR python/16485:
15062 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15063 Handle exception from frame.block.
15064 (FrameVars.fetch_frame_locals): Likewise.
15065
0740f8d8
TT
150662014-01-23 Tom Tromey <tromey@redhat.com>
15067
15068 PR python/16487:
15069 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15070 on a NULL pointer. Move "goto error" to correct place.
15071
21909fa1
TT
150722014-01-23 Tom Tromey <tromey@redhat.com>
15073
15074 PR python/16491:
15075 * python/py-framefilter.c (apply_frame_filter): Call
15076 ensure_python_env after computing gdbarch.
15077
17fde6d0
YQ
150782014-01-23 Yao Qi <yao@codesourcery.com>
15079
15080 * target.c (raw_memory_xfer_partial): Change argument type
15081 from void * to gdb_byte *.
15082 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15083
87ce2a04
DE
150842014-01-22 Doug Evans <dje@google.com>
15085
15086 New gdbserver option --debug-format=timestamp.
15087 * NEWS: Mention it.
15088
237b092b
AA
150892014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15090
15091 * syscalls/s390x-linux.xml: New file.
15092 * syscalls/s390-linux.xml: New file.
15093 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15094 (XML_SYSCALL_FILENAME_S390X): Likewise.
15095 (op_svc): New enum value for SVC opcode.
15096 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15097 (s390_linux_get_syscall_number): New function.
15098 (s390_gdbarch_init): Register '*get_syscall_number' and the
15099 syscall xml file name.
15100 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15101 "s390-linux.xml" and "s390x-linux.xml".
15102 * NEWS: Announce new feature.
15103
54bff650
BS
151042014-01-22 Baruch Siach <baruch@tkos.co.il>
15105
15106 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15107
14e361d7
PA
151082014-01-22 Pedro Alves <palves@redhat.com>
15109
15110 * xtensa-config.c: Include defs.h.
15111
46bbb3ed
JB
151122014-01-22 Joel Brobecker <brobecker@adacore.com>
15113
15114 * common/common-utils.h: Add "ARI:" comment beside __func__
15115 reference.
15116
3a80edfc
JB
151172014-01-22 Joel Brobecker <brobecker@adacore.com>
15118
15119 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15120 documentation a bit.
15121
4869db5e
RM
151222014-01-21 Roland McGrath <mcgrathr@google.com>
15123
15124 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15125 * configure: Regenerate.
15126 * aclocal.m4: Regenerate.
15127 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15128 New substituted variables.
15129 (install-strip): New target.
15130 (INSTALL_SCRIPT): New substituted variable.
15131 (FLAGS_TO_PASS): Add it.
15132 (install-only): Use $(INSTALL_SCRIPT) rather than
15133 $(INSTALL_PROGRAM) for gcore.
15134
9ea4267d
TT
151352014-01-20 Tom Tromey <tromey@redhat.com>
15136
15137 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15138 together.
15139
1f2bdf09
TT
151402014-01-20 Tom Tromey <tromey@redhat.com>
15141
15142 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15143 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15144 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15145 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15146 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15147 (struct cmd_list_element) <flags>: Remove.
15148 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15149 doc_allocated>: New fields.
15150 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15151 bitfields.
15152 * maint.c (maintenance_do_deprecate): Update.
15153 * top.c (execute_command): Update.
15154
e671835b
BS
151552014-01-20 Baruch Siach <baruch@tkos.co.il>
15156
15157 * xtensa-linux-nat.c: Include asm/ptrace.h.
15158
50367cd2
IB
151592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15160
15161 * Makefile.in (SFILES): Add d-support.c.
15162 (COMMON_OBS): Add d-support.o.
15163 * d-lang.h (d_parse_symbol): Add comment, now defined in
15164 d-support.c.
15165 * d-lang.c (parse_call_convention)
15166 (parse_attributes, parse_function_types)
15167 (parse_function_args, parse_type, parse_identifier)
15168 (call_convention_p, d_parse_symbol): Move functions to ...
15169 * d-support.c: ... New file.
15170
ec9f644a
IB
151712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15172
15173 * d-lang.h (d_parse_symbol): Add declaration.
15174 * d-lang.c (extract_identifiers)
15175 (extract_type_info): Remove functions.
15176 (parse_call_convention, parse_attributes)
15177 (parse_function_types, parse_function_args)
15178 (parse_type, parse_identifier, call_convention_p)
15179 (d_parse_symbol): New functions.
15180 (d_demangle): Use d_parse_symbol to demangle D symbols.
15181
94b1b47e
IB
151822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15183
15184 * d-lang.h (struct builtin_d_type): New data type.
15185 (builtin_d_type): Add declaration.
15186 * d-lang.c (d_language_arch_info, build_d_types)
15187 (builtin_d_type): New functions.
15188 (enum d_primitive_types): New data type.
15189 (d_language_defn): Change c_language_arch_info to
15190 d_language_arch_info.
15191 (d_type_data): New static variable.
15192 (_initialize_d_language): Initialize d_type_data.
15193
63778547
IB
151942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15195
15196 * d-lang.h (d_main_name): Add declaration.
15197 * d-lang.c (d_main_name): New function.
15198 * symtab.c (find_main_name): Add call to d_main_name.
15199
3271ba66
IB
152002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15201
15202 * d-lang.c (d_language_defn): Change macro_expansion_c to
15203 macro_expansion_no.
15204
d36b3012
IB
152052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15206
15207 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15208
c90a6fb7
SDJ
152092014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15210
15211 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15212 gdb_exception" declaration.
15213 * remote.c (getpkt_or_notif_sane): Likewise.
15214
749234e5
DE
152152014-01-17 Doug Evans <dje@google.com>
15216
15217 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15218 function, contents of dirnames_to_char_ptr_vec_append moved here.
15219 (delim_string_to_char_ptr_vec): New function.
15220 (dirnames_to_char_ptr_vec_append): Rewrite.
15221 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15222
df049a58
DE
152232014-01-17 Doug Evans <dje@google.com>
15224
15225 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15226 and moved here ...
15227 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15228 #include "common-utils.h".
15229 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15230 * common/vec.h (VEC_ASSERT_PASS): Update.
15231 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15232 (MACH_CHECK_ERROR): Update.
15233
69f97648
SM
152342014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15235
15236 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15237 comments.
15238 * gdbarch.h: Regenerate.
15239
98b1cfdc
TT
152402014-01-16 Tom Tromey <tromey@redhat.com>
15241
15242 * value.c (struct value) <regnum>: Move earlier.
15243
77a19445
TT
152442014-01-16 Tom Tromey <tromey@redhat.com>
15245
15246 * remote.c (extended_remote_create_inferior): Rename from
15247 extended_remote_create_inferior_1. Add "ops" argument. Remove
15248 old implementation.
15249
62261490
PA
152502014-01-16 Pedro Alves <palves@redhat.com>
15251
15252 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15253 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15254 the backchain.
15255
4d65956b
DE
152562014-01-16 Doug Evans <dje@google.com>
15257
15258 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15259
52834460
MM
152602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15261
15262 * btrace.h (btrace_thread_flag): New.
15263 (struct btrace_thread_info) <flags>: New.
15264 * record-btrace.c (record_btrace_resume_thread)
15265 (record_btrace_find_thread_to_move, btrace_step_no_history)
15266 (btrace_step_stopped, record_btrace_start_replaying)
15267 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15268 (record_btrace_find_resume_thread): New.
15269 (record_btrace_resume, record_btrace_wait): Extend.
15270 (record_btrace_can_execute_reverse): New.
15271 (record_btrace_open): Fail in non-stop mode.
15272 (record_btrace_set_replay): Split into this, ...
15273 (record_btrace_stop_replaying): ... this, ...
15274 (record_btrace_clear_histories): ... and this.
15275 (init_record_btrace_ops): Init to_can_execute_reverse.
15276 * NEWS: Announce it.
15277
118e6252
MM
152782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15279
15280 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15281 (forward_target_decr_pc_after_break)
15282 (target_decr_pc_after_break): New.
15283 * target.c (forward_target_decr_pc_after_break)
15284 (target_decr_pc_after_break): New.
15285 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15286 instead of gdbarch_decr_pc_after_break.
15287 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15288 instead of gdbarch_decr_pc_after_break.
15289 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15290 instead of gdbarch_decr_pc_after_break.
15291 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15292 instead of gdbarch_decr_pc_after_break.
15293 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15294 instead of gdbarch_decr_pc_after_break.
15295 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15296 instead of gdbarch_decr_pc_after_break.
15297
6e07b1d2
MM
152982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15299
15300 * btrace.c: Include regcache.h.
15301 (btrace_add_pc): New.
15302 (btrace_enable): Call btrace_add_pc.
15303 (btrace_is_empty): New.
15304 * btrace.h (btrace_is_empty): New.
15305 * record-btrace.c (require_btrace, record_btrace_info): Call
15306 btrace_is_empty.
15307
969c39fb
MM
153082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15309
15310 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15311 Support delta reads.
15312 (linux_disable_btrace): Change return type.
15313 * common/linux-btrace.h (linux_read_btrace): Change parameters
15314 and return type to allow error reporting. Update users.
15315 (linux_disable_btrace): Change return type. Update users.
15316 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15317 New.
15318 (btrace_error): New.
15319 (btrace_block) <begin>: Comment on BEGIN == 0.
15320 * btrace.c (btrace_compute_ftrace): Start from the end of
15321 the current trace.
15322 (btrace_stitch_trace, btrace_clear_history): New.
15323 (btrace_fetch): Read delta trace, return if replaying.
15324 (btrace_clear): Move clear history code to btrace_clear_history.
15325 (parse_xml_btrace): Throw an error if parsing failed.
15326 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15327 and return type to allow error reporting.
15328 (target_read_btrace): Change parameters and return type to allow
15329 error reporting.
15330 * target.c (target_read_btrace): Update.
15331 * remote.c (remote_read_btrace): Support delta reads. Pass
15332 errors on.
15333 * NEWS: Announce it.
15334
0b722aec
MM
153352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15336
15337 * record.h (record_btrace_frame_unwind)
15338 (record_btrace_tailcall_frame_unwind): New declarations.
15339 * dwarf2-frame: Include record.h
15340 (dwarf2_frame_cfa): Throw an error for btrace frames.
15341 * record-btrace.c: Include hashtab.h.
15342 (btrace_get_bfun_name): New.
15343 (btrace_call_history): Call btrace_get_bfun_name.
15344 (struct btrace_frame_cache): New.
15345 (bfcache): New.
15346 (bfcache_hash, bfcache_eq, bfcache_new): New.
15347 (btrace_get_frame_function): New.
15348 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15349 (record_btrace_frame_this_id): Compute own id.
15350 (record_btrace_frame_prev_register): Provide PC, throw_error
15351 for all other registers.
15352 (record_btrace_frame_sniffer): Detect btrace frames.
15353 (record_btrace_tailcall_frame_sniffer): New.
15354 (record_btrace_frame_dealloc_cache): New.
15355 (record_btrace_frame_unwind): Add new functions.
15356 (record_btrace_tailcall_frame_unwind): New.
15357 (_initialize_record_btrace): Allocate cache.
15358 * btrace.c (btrace_clear): Call reinit_frame_cache.
15359 * NEWS: Announce it.
15360
066ce621
MM
153612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15362
15363 * record-btrace.c (record_btrace_set_replay)
15364 (record_btrace_goto_begin, record_btrace_goto_end)
15365 (record_btrace_goto): New.
15366 (init_record_btrace_ops): Initialize them.
15367 * NEWS: Announce it.
15368
e2887aa3
MM
153692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15370
15371 * record-btrace.c (record_btrace_find_new_threads)
15372 (record_btrace_thread_alive): New.
15373 (init_record_btrace_ops): Initialize to_find_new_threads and
15374 to_thread_alive.
15375
b2f4cfde
MM
153762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15377
15378 * record-btrace.c (record_btrace_resume): New.
15379 (record_btrace_wait): New.
15380 (init_record_btrace_ops): Initialize to_wait and to_resume.
15381
633785ff
MM
153822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15383
15384 * record-btrace.c (record_btrace_xfer_partial)
15385 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15386 (record_btrace_allow_memory_access): New.
15387 (init_record_btrace_ops): Initialize new methods.
15388 * target.c (raw_memory_xfer_partial): Bail out if target reports
15389 that this memory is not available.
15390
3db08215
MM
153912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15392
15393 * target.h (target_ops) <to_insert_breakpoint>
15394 <to_remove_breakpoint>: Add target_ops parameter.
15395 (forward_target_insert_breakpoint): New.
15396 (forward_target_remove_breakpoint): New.
15397 (memory_remove_breakpoint, memory_insert_breakpoint):
15398 Add target_ops parameter.
15399 * target.c (target_insert_breakpoint): Split into this and ...
15400 (forward_target_insert_breakpoint): ... this.
15401 (target_remove_breakpoint): Split into this and ...
15402 (forward_target_remove_breakpoint): ... this.
15403 (debug_to_insert_breakpoint): Add target_ops parameter.
15404 Call forward_target_insert_breakpoint.
15405 (debug_to_remove_breakpoint): Add target_ops parameter.
15406 Call forward_target_remove_breakpoint.
15407 (update_current_target): Do not inherit or default to_insert_breakpoint
15408 and to_remove_breakpoint.
15409 * corelow.c (ignore): Add target_ops parameter.
15410 * exec.c (ignore): Add target_ops parameter.
15411 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15412 Add target_ops parameter.
15413 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15414 Add target_ops parameter.
15415 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15416 Add target_ops parameter.
15417 * record-full.c (record_full_beneath_to_insert_breakpoint)
15418 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15419 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15420 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15421 (record_full_core_remove_breakpoint): Add target_ops parameter.
15422 Update users.
15423 (record_full_beneath_to_insert_breakpoint_ops)
15424 (record_full_beneath_to_remove_breakpoint_ops)
15425 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15426 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15427 tmp_to_remove_breakpoint_ops,
15428 record_full_beneath_to_insert_breakpoint_ops, and
15429 record_full_beneath_to_remove_breakpoint_ops.
15430 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15431 (m32r_remove_breakpoint): Add target_ops parameter.
15432 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15433 Add target_ops parameter.
15434 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15435 Add target_ops parameter.
15436
cecac1ab
MM
154372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15438 Markus Metzger <markus.t.metzger@intel.com>
15439
15440 * record-btrace.c: Include frame-unwind.h.
15441 (record_btrace_frame_unwind_stop_reason)
15442 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15443 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15444 New.
15445 (init_record_btrace_ops): Install it.
15446
824344ca
MM
154472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15448
15449 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15450 get_prev_frame_1.
15451
32261e52
MM
154522014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15453
15454 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15455 earlier.
15456
ea001bdc
MM
154572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15458
15459 * frame-unwind.c: Include target.h.
15460 (frame_unwind_try_unwinder): New function with code from ...
15461 (frame_unwind_find_by_frame): ... here. New variable
15462 unwinder_from_target, call also target_get_unwinder)
15463 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15464 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15465 * target.h (struct target_ops): New fields to_get_unwinder and
15466 to_get_tailcall_unwinder.
15467 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15468
1f3ef581
MM
154692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15470
15471 * record-btrace.c (record_btrace_fetch_registers)
15472 (record_btrace_store_registers)
15473 (record_btrace_to_prepare_to_store): New.
15474 (init_record_btrace_ops): Add the above.
15475
f32dbf8c
MM
154762014-01-16 Tom Tromey <tromey@redhat.com>
15477
15478 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15479 * target.h (struct target_ops) <to_prepare_to_store>: Add
15480 argument.
15481 (target_prepare_to_store): Add argument.
15482 * target.c (debug_to_prepare_to_store): Add argument.
15483 (update_current_target): Update.
15484 * remote.c (remote_prepare_to_store): Add 'self' argument.
15485 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15486 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15487 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15488 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15489 argument.
15490 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15491 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15492 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15493 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15494 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15495
07bbe694
MM
154962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15497
15498 * btrace.h (replay) <replay>: New.
15499 (btrace_is_replaying): New.
15500 * btrace.c (btrace_clear): Free replay iterator.
15501 (btrace_is_replaying): New.
15502 * record-btrace.c (record_btrace_is_replaying): New.
15503 (record_btrace_info): Print insn number if replaying.
15504 (record_btrace_insn_history): Start at replay position.
15505 (record_btrace_call_history): Start at replay position.
15506 (init_record_btrace_ops): Init to_record_is_replaying.
15507
0688d04e
MM
155082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15509
15510 * record-btrace.c (record_btrace_insn_history_range): Include
15511 end.
15512 (record_btrace_insn_history_from): Adjust range.
15513 (record_btrace_call_history_range): Include
15514 end.
15515 (record_btrace_call_history_from): Adjust range.
15516 * NEWS: Announce changes.
15517
8710b709
MM
155182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15519
15520 * record.h (enum record_print_flag)
15521 <record_print_indent_calls>: New.
15522 * record.c (get_call_history_modifiers): Recognize /c modifier.
15523 (_initialize_record): Document /c modifier.
15524 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15525 Reorder fields. Optionally indent the function name. Update
15526 all users.
15527 * NEWS: Announce changes.
15528
d0fa7535
MM
155292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15530
15531 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15532
5de9129b
MM
155332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15534
15535 * btrace.c (ftrace_new_function): Start counting at one.
15536 * record-btrace.c (record_btrace_info): Adjust number of calls
15537 and insns.
15538 * NEWS: Announce it.
15539
7acbe133
MM
155402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15541
15542 * record-btrace.c (btrace_call_history_insn_range): Print
15543 insn range as [begin, end].
15544
23a7fe75
MM
155452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15546
15547 * btrace.h (struct btrace_func_link): New.
15548 (enum btrace_function_flag): New.
15549 (struct btrace_inst): Rename to ...
15550 (struct btrace_insn): ...this. Update all users.
15551 (struct btrace_func) <ibegin, iend>: Remove.
15552 (struct btrace_func_link): New.
15553 (struct btrace_func): Rename to ...
15554 (struct btrace_function): ...this. Update all users.
15555 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15556 (number, level, flags>: New.
15557 (struct btrace_insn_iterator): Rename to ...
15558 (struct btrace_insn_history): ...this.
15559 Update all users.
15560 (struct btrace_insn_iterator, btrace_call_iterator): New.
15561 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15562 (struct btrace_target_info) <begin, end, level>
15563 <insn_history, call_history>: New.
15564 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15565 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15566 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15567 (btrace_call_number, btrace_call_begin, btrace_call_end)
15568 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15569 (btrace_find_function_by_number, btrace_set_insn_history)
15570 (btrace_set_call_history): New.
15571 * btrace.c (btrace_init_insn_iterator)
15572 (btrace_init_func_iterator, compute_itrace): Remove.
15573 (ftrace_print_function_name, ftrace_print_filename)
15574 (ftrace_skip_file): Change
15575 parameter to const.
15576 (ftrace_init_func): Remove.
15577 (ftrace_debug): Use new btrace_function fields.
15578 (ftrace_function_switched): Also consider gaining and
15579 losing symbol information).
15580 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15581 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15582 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15583 New.
15584 (ftrace_new_function): Move. Remove debug print.
15585 (ftrace_update_lines, ftrace_update_insns): New.
15586 (ftrace_update_function): Check for call, ret, and jump.
15587 (compute_ftrace): Renamed to ...
15588 (btrace_compute_ftrace): ...this. Rewritten to compute call
15589 stack.
15590 (btrace_fetch, btrace_clear): Updated.
15591 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15592 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15593 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15594 (btrace_call_number, btrace_call_begin, btrace_call_end)
15595 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15596 (btrace_find_function_by_number, btrace_set_insn_history)
15597 (btrace_set_call_history): New.
15598 * record-btrace.c (require_btrace): Use new btrace thread
15599 info fields.
15600 (record_btrace_info, btrace_insn_history)
15601 (record_btrace_insn_history, record_btrace_insn_history_range):
15602 Use new btrace thread info fields and new iterator.
15603 (btrace_func_history_src_line): Rename to ...
15604 (btrace_call_history_src_line): ...this. Use new btrace
15605 thread info fields.
15606 (btrace_func_history): Rename to ...
15607 (btrace_call_history): ...this. Use new btrace thread info
15608 fields and new iterator.
15609 (record_btrace_call_history, record_btrace_call_history_range):
15610 Use new btrace thread info fields and new iterator.
15611
8372a7cb
MM
156122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15613
15614 * frame.h (frame_id_build_unavailable_stack_special): New.
15615 * frame.c (frame_id_build_unavailable_stack_special): New.
15616
c2170eef
MM
156172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15618
15619 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15620 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15621 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15622 to gdbarch.
15623 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15624 (i386_insn_is_jump, i386_jmp_p): New.
15625 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15626 insn_is_jump to gdbarch.
15627 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15628 * gdbarch.h: Regenerated.
15629 * gdbarch.c: Regenerated.
15630 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15631 (default_insn_is_jump): New.
15632 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15633 (default_insn_is_jump): New.
15634
864089d2
MM
156352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15636
15637 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15638 Change to ...
15639 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15640 (btrace_read_type) <btrace_read_new>: Change to ...
15641 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15642
ed9edfb5
MM
156432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15644
15645 * common/linux-btrace.c (linux_read_btrace): Free trace from
15646 previous iteration.
15647
fbcbc3fd
DE
156482014-01-15 Doug Evans <dje@google.com>
15649
15650 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15651 uint32_t.
15652
3d548a53
TT
156532014-01-15 Tom Tromey <tromey@redhat.com>
15654
15655 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15656 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15657 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15658 (set_objfile_main_name): New function.
15659 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15660 language_of_main>: New fields.
15661 (set_objfile_main_name): Declare.
15662 * symtab.c (find_main_name): Loop over objfiles to find the main
15663 name and language.
15664 (set_main_name): Now static.
15665 (get_main_info): Add comment.
15666 * symtab.h (set_main_name): Don't declare.
15667
32ac0d11
TT
156682014-01-15 Tom Tromey <tromey@redhat.com>
15669
15670 * symtab.c (main_progspace_key): New global.
15671 (struct main_info): New.
15672 (name_of_main, language_of_main): Remove.
15673 (get_main_info, main_info_cleanup): New function.
15674 (set_main_name, main_name, main_language): Use get_main_info.
15675 (_initialize_symtab): Initialize main_progspace_key.
15676
9e6c82ad
TT
156772014-01-15 Tom Tromey <tromey@redhat.com>
15678
15679 * dbxread.c (process_one_symbol): Update.
15680 * dwarf2read.c (read_partial_die): Update.
15681 * symfile.c (set_initial_language): Call main_language.
15682 * symtab.c (language_of_main): Now static.
15683 (set_main_name): Add 'lang' parameter.
15684 (find_main_name): Update.
15685 (main_language): New function.
15686 (symtab_observer_executable_changed): Update.
15687 * symtab.h (set_main_name): Update.
15688 (language_of_main): Remove.
15689 (main_language): Declare.
15690
6ef55de7
TT
156912014-01-15 Tom Tromey <tromey@redhat.com>
15692
15693 * symfile.c (init_entry_point_info): Use new "initialized" field.
15694 Update.
15695 * objfiles.h (struct entry_point) <initialized>: New field.
15696 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15697 (struct objfile) <ei>: ...here. Remove.
15698 * objfiles.c (entry_point_address_query): Update.
15699
53eddfa6
TT
157002014-01-15 Tom Tromey <tromey@redhat.com>
15701
15702 * objfiles.c (entry_point_address_query): Relocate entry point
15703 address.
15704 (objfile_relocate1): Do not relocate entry point address.
15705 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15706 <the_bfd_section_index>: New field.
15707 * symfile.c (init_entry_point_info): Find the entry point's
15708 section.
15709
d56e56aa
TT
157102014-01-15 Tom Tromey <tromey@redhat.com>
15711
15712 * solib-frv.c (enable_break): Use entry_point_address_query.
15713
33a97bbe
OJ
157142014-01-15 Omair Javaid <omair.javaid@linaro.org>
15715
15716 * NEWS: Add note on improved process record-replay on
15717 arm*-linux* targets.
15718
c6ec2b30
OJ
157192014-01-15 Omair Javaid <omair.javaid@linaro.org>
15720
15721 * arm-tdep.c (enum arm_record_result): New enum.
15722 (arm_record_unsupported_insn): New function.
15723 (arm_record_coproc_data_proc): Removed.
15724 (thumb2_record_ld_st_multiple): New function.
15725 (thumb2_record_ld_st_dual_ex_tbb): New function.
15726 (thumb2_record_data_proc_sreg_mimm): New function.
15727 (thumb2_record_ps_dest_generic): New function.
15728 (thumb2_record_branch_misc_cntrl): New function.
15729 (thumb2_record_str_single_data): New function.
15730 (thumb2_record_ld_mem_hints): New function.
15731 (thumb2_record_ld_word): New function.
15732 (thumb2_record_lmul_lmla_div): New function.
15733 (thumb2_record_decode_insn_handler): New function.
15734 (decode_insn): Add thumb32 instruction handlers.
15735
97dfe206
OJ
157362014-01-15 Omair Javaid <omair.javaid@linaro.org>
15737
15738 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15739 (struct arm_linux_record_tdep): Declare.
15740 (arm_canonicalize_syscall): New function.
15741 (arm_all_but_pc_registers_record): New function.
15742 (arm_linux_syscall_record): New function.
15743 (arm_linux_init_abi): Add syscall recording constructs.
15744 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15745 decoding. (arm_record_coproc_data_proc): Update arm syscall
15746 decoding.
15747 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15748 <arm_syscall_record>: New field.
15749 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15750 gdb_target_obs.
15751
9904a494
OJ
157522014-01-15 Omair Javaid <omair.javaid@linaro.org>
15753
15754 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15755 register for push instruction recording.
15756
f969241e
OJ
157572014-01-15 Omair Javaid <omair.javaid@linaro.org>
15758
15759 * arm-tdep.c (thumb_record_misc): Update to correct logical
15760 error while recording ldm, ldmia and pop instructions.
15761
bfbbec00
OJ
157622014-01-15 Omair Javaid <omair.javaid@linaro.org>
15763
15764 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15765
e40adcc9
PA
157662014-01-15 Pedro Alves <palves@redhat.com>
15767
15768 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15769 (go32_resume, go32_fetch_registers, store_register)
15770 (go32_store_registers, go32_prepare_to_store)
15771 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15772 (go32_create_inferior, go32_can_run, go32_terminal_init)
15773 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15774 declarations.
15775
b0a16e66
TT
157762014-01-15 Tom Tromey <tromey@redhat.com>
15777
15778 * target.h (async_callback_ftype): New typedef.
15779 (struct target_ops) <to_async>: Use it.
15780
bf7105a4
JB
157812014-01-15 Joel Brobecker <brobecker@adacore.com>
15782
15783 * python/py-value.c (get_field_type): Remove unnecessary curly
15784 braces for single-statement if block.
15785
a8f35c2e
JB
157862014-01-15 Joel Brobecker <brobecker@adacore.com>
15787
15788 * python/py-type.c (convert_field): Add missing empty line
15789 after declarations.
15790
bb4142cf
DE
157912014-01-14 Doug Evans <dje@google.com>
15792
15793 * symfile.h (expand_symtabs_matching): Renamed from
15794 expand_partial_symbol_names. Update prototype.
15795 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15796 * symfile.c (expand_symtabs_matching): Renamed from
15797 expand_partial_symbol_names. New args file_matcher, kind.
15798 Rename arg fun to symbol_matcher.
15799 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15800 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15801 ada_expand_partial_symbol_name.
15802 (ada_make_symbol_completion_list): Update to call
15803 expand_symtabs_matching.
15804 (ada_add_global_exceptions): Call expand_symtabs_matching.
15805 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15806 call map_symbol_filenames.
15807 * symtab.c (sources_info): Update to call map_symbol_filenames.
15808 (search_symbols): Call expand_symtabs_matching.
15809 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15810 (default_make_symbol_completion_list_break_on): Update to call
15811 expand_symtabs_matching.
15812 (make_source_files_completion_list): Update to call
15813 map_symbol_filenames.
15814
206f2a57
DE
158152014-01-14 Doug Evans <dje@google.com>
15816
15817 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15818 (expand_symtabs_symbol_matcher_ftype): New typedef.
15819 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15820 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15821 * symfile.c (expand_partial_symbol_names): Update to use
15822 expand_symtabs_symbol_matcher_ftype.
15823 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15824 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15825 Arg name_matcher renamed to symbol_matcher.
15826 * psymtab.c (recursively_search_psymtabs): Update to use
15827 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15828 sym_matcher.
15829 (expand_symtabs_matching_via_partial): Update to use
15830 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15831 Arg name_matcher renamed to symbol_matcher.
15832
540c2971
DE
158332014-01-14 Doug Evans <dje@google.com>
15834
15835 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15836 (map_partial_symbol_filenames): Ditto.
15837 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15838 (map_partial_symbol_filenames): Ditto.
15839 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15840 (map_partial_symbol_filenames): Ditto.
15841 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15842 (map_partial_symbol_filenames): Ditto.
15843 * symtab.c: Delete #include "psymtab.h".
15844
8213266a
PA
158452014-01-14 Pedro Alves <palves@redhat.com>
15846 Tom Tromey <tromey@redhat.com>
15847
15848 * infrun.c (use_displaced_stepping): Use find_record_target
15849 instead of RECORD_IS_USED.
15850 (adjust_pc_after_break): Use record_full_is_used instead of
15851 RECORD_IS_USED.
15852 * record-btrace.c (record_btrace_open): Call record_preopen
15853 instead of checking RECORD_IS_USED.
15854 * record-full.c (record_full_shortname)
15855 (record_full_core_shortname): New globals.
15856 (record_full_is_used): New function.
15857 (find_full_open): Call record_preopen instead of checking
15858 RECORD_IS_USED.
15859 (init_record_full_ops): Set the target's shortname to
15860 record_full_shortname.
15861 (init_record_full_core_ops): Set the target's shortname to
15862 record_full_core_shortname.
15863 * record-full.h (record_full_is_used): Declare.
15864 * record.c (find_record_target): Make extern.
15865 (record_preopen): New function.
15866 * record.h (RECORD_IS_USED): Delete macro.
15867 (find_record_target, record_preopen): Declare functions.
15868
7ec1862d
YQ
158692014-01-14 Yao Qi <yao@codesourcery.com>
15870
15871 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15872 'len''s type to ULONGEST.
15873 (core_xfer_shared_libraries_aix): Likewise.
15874 * gdbarch.c, gdbarch.h: Regenerated.
15875 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15876 Change type of 'len' to ULONGEST.
15877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15878 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15879
dea80a27
YQ
158802014-01-14 Yao Qi <yao@codesourcery.com>
15881
15882 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15883 type of 'len' to ULONGEST.
15884 (linux_xfer_osdata_processgroups): Likewise.
15885 (linux_xfer_osdata_threads): Likewise.
15886 (linux_xfer_osdata_fds): Likewise.
15887 (linux_xfer_osdata_isockets): Likewise.
15888 (linux_xfer_osdata_shm): Likewise.
15889 (linux_xfer_osdata_sem): Likewise.
15890 (linux_xfer_osdata_msg): Likewise.
15891 (linux_common_xfer_osdata): Likewise.
15892 (struct osdata_type) <getter>: Likewise.
15893 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15894 the declaration.
15895
b55e14c7
YQ
158962014-01-14 Yao Qi <yao@codesourcery.com>
15897
15898 * target.h (target_xfer_partial_ftype): Update.
15899 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15900 ULONGEST.
15901 * aix-thread.c (aix_thread_xfer_partial): Change type of
15902 argument 'len' to ULONGEST.
15903 * auxv.c (procfs_xfer_auxv): Likewise.
15904 (ld_so_xfer_auxv): Likewise.
15905 (memory_xfer_auxv): Likewise.
15906 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15907 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15908 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15909 * corelow.c (core_xfer_partial): Likewise.
15910 * ctf.c (ctf_xfer_partial): Likewise.
15911 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15912 '%u'.
15913 (darwin_read_dyld_info): Likewise.
15914 (darwin_xfer_partial): Likewise.
15915 * exec.c (section_table_xfer_memory_partial): Likewise.
15916 (exec_xfer_partial): Likewise.
15917 * exec.h (section_table_xfer_memory_partial): Update
15918 declaration.
15919 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15920 instead of plongest.
15921 (gnu_xfer_partial): Likewise.
15922 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15923 (ia64_hpux_xfer_solib_got): Likewise.
15924 (ia64_hpux_xfer_partial): Likewise.
15925 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15926 * inf-ptrace.c (inf_ptrace_xfer_partial):
15927 * inf-ttrace.c (inf_ttrace_xfer_partial):
15928 * linux-nat.c (linux_xfer_siginfo): Likewise.
15929 (linux_nat_xfer_partial): Likewise.
15930 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15931 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15932 * monitor.c (monitor_xfer_memory): Likewise.
15933 (monitor_xfer_partial): Likewise.
15934 * procfs.c (procfs_xfer_partial): Likewise.
15935 * record-full.c (record_full_xfer_partial): Likewise.
15936 (record_full_core_xfer_partial): Likewise.
15937 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15938 instead of plongest.
15939 (gdbsim_xfer_partial): Likewise.
15940 * remote.c (remote_xfer_partial): Likewise.
15941 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15942 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15943 declaration.
15944 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15945 (rs6000_xfer_shared_libraries): Likewise.
15946 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15948 (sparc_xfer_partial): Likewise.
15949 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15950 (spu_xfer_partial): Likewise.
15951 * spu-multiarch.c (spu_xfer_partial): Likewise.
15952 * target.c (target_read_live_memory): Likewise.
15953 (memory_xfer_live_readonly_partial): Likewise.
15954 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15955 (target_xfer_partial, default_xfer_partial): Likewise.
15956 (current_xfer_partial): Likewise.
15957 * tracepoint.c (tfile_xfer_partial): Likewise.
15958 * windows-nat.c (windows_xfer_memory): Likewise. Call
15959 pulongest instead of plongest.
15960 (windows_xfer_partial): Likewise.
15961 (windows_xfer_shared_libraries): Likewise.
15962
05804640
YQ
159632014-01-14 Yao Qi <yao@codesourcery.com>
15964
15965 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15966 target_xfer_partial_ftype.
15967
b5b08fb4
SC
159682014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15969
15970 PR python/15464
15971 PR python/16113
15972 * valops.c (value_struct_elt_bitpos): New function
15973 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15974 object to 'None' if the field name is an empty string ("").
15975 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15976 attribute to look for a field when 'name' is 'None'.
15977 (get_field_type): New function
15978
13aaf454
DE
159792014-01-13 Doug Evans <dje@google.com>
15980
15981 PR symtab/16426
15982 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15983 (try_open_dwop_file): Ditto.
15984 * gdb_bfd.c: #include "vec.h".
15985 (bfdp): New typedef.
15986 (struct gdb_bfd_data): New member included_bfds.
15987 (gdb_bfd_unref): Unref all included bfds.
15988 (gdb_bfd_record_inclusion): New function.
15989 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15990
c2cec97c
TT
159912014-01-13 Tom Tromey <tromey@redhat.com>
15992
15993 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15994
78e5999d
TT
159952014-01-13 Tom Tromey <tromey@redhat.com>
15996
15997 * defs.h (use_windows): Remove.
15998 * gdb.c (main): Update.
15999 * main.c (captured_main, gdb_main): Update.
16000 * main.h (struct captured_main_args) <use_windows>: Remove.
16001 * top.c (use_windows): Remove.
16002
f2052bbe
TT
160032014-01-13 Tom Tromey <tromey@redhat.com>
16004
16005 * defs.h (deprecated_flush_hook): Remove.
16006
fde4f8ed
JK
160072014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16008
16009 PR threads/16216
16010 * linux-thread-db.c (try_thread_db_load): Add parameter
16011 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16012 (try_thread_db_load_from_pdir_1): Move it there from here.
16013 (try_thread_db_load_from_sdir): Update caller.
16014 (try_thread_db_load_from_dir): Move it there from here.
16015
bdf61915
PP
160162014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16017
16018 * regformats/regdat.sh: Always rewrite the register file.
16019
f71e1a8d
PA
160202014-01-13 Pedro Alves <palves@redhat.com>
16021
16022 * Makefile.in (CHECK_HEADERS): New variable.
16023 (check-headers:): New rule.
16024
42c85435
TT
160252014-01-13 Tom Tromey <tromey@redhat.com>
16026
16027 * cli/cli-setshow.c (do_set_command): Update.
16028 * defs.h (deprecated_set_hook): Remove.
16029 * top.c (deprecated_set_hook): Remove.
16030
f8de5129
PA
160312014-01-13 Pedro Alves <palves@redhat.com>
16032
16033 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16034 the tracepoint if the PC is a pseudo-register.
16035
fc270c35
TT
160362014-01-13 Tom Tromey <tromey@redhat.com>
16037
16038 * defs.h (XCALLOC): Remove.
16039 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16040 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16041 * dwarf2loc.c (allocate_piece_closure): Likewise.
16042 * elfread.c (elf_symfile_segments): Likewise.
16043 (elf_symfile_segments): Likewise.
16044 * gdbtypes.c (copy_type_recursive): Likewise.
16045 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16046 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16047 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16048 XCALLOC.
16049 * mt-tdep.c (mt_gdbarch_init): Likewise.
16050 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16051 XCALLOC.
16052 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16053 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16054 * registry.c (registry_alloc_data): Likewise.
16055 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16056 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16057 * serial.c (serial_fdopen_ops): Likewise.
16058 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16059 XCALLOC.
16060 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16061 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16062 not XCALLOC.
16063
70ba0933
TT
160642014-01-13 Tom Tromey <tromey@redhat.com>
16065
16066 * defs.h (XMALLOC): Remove.
16067 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16068 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16069 * cli-out.c (struct ui_out *): Likewise.
16070 * cli/cli-dump.c (add_dump_command): Likewise.
16071 (add_dump_command): Likewise.
16072 * complaints.c (get_complaints): Likewise.
16073 (find_complaint): Likewise.
16074 * dwarf2-frame.c (execute_cfa_program): Likewise.
16075 * dwarf2read.c (abbrev_table_read_table): Likewise.
16076 * gdbarch.sh: Likewise.
16077 * gdbarch.c: Rebuild.
16078 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16079 * interps.c (interp_new): Likewise.
16080 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16081 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16082 * mi/mi-console.c (mi_console_file_new): Likewise.
16083 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16084 * mi/mi-out.c (mi_out_new): Likewise.
16085 * mi/mi-parse.c (mi_parse): Likewise.
16086 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16087 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16088 * observer.c (xalloc_observer_list_node): Likewise.
16089 * regcache.c (regcache_xmalloc_1): Likewise.
16090 * reggroups.c (reggroup_new): Likewise.
16091 (_initialize_reggroup): Likewise.
16092 * registry.c (register_data_with_cleanup): Likewise.
16093 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16094 * ser-base.c (serial_ttystate): Likewise.
16095 * ser-mingw.c (make_pipe_state): Likewise.
16096 * ser-pipe.c (pipe_open): Likewise.
16097 * serial.c (serial_open): Likewise.
16098 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16099 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16100 (tui_alloc_win_info): Likewise.
16101 (tui_add_content_elements): Likewise.
16102 * tui/tui-file.c (tui_file_new): Likewise.
16103 * tui/tui-out.c (tui_out_new): Likewise.
16104 * ui-file.c (mem_file_new): Likewise.
16105 * ui-out.c (push_level): Likewise.
16106 (make_cleanup_ui_out_end): Likewise.
16107 (append_header_to_list): Likewise.
16108 (ui_out_new): Likewise.
16109 * user-regs.c (user_reg_add_builtin): Likewise.
16110
41bf6aca
TT
161112014-01-13 Tom Tromey <tromey@redhat.com>
16112
16113 * defs.h (XZALLOC): Remove.
16114 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16115 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16116 (get_ada_tasks_inferior_data): Likewise.
16117 * auto-load.c (get_auto_load_pspace_data): Likewise.
16118 * auxv.c (get_auxv_inferior_data): Likewise.
16119 * bfd-target.c (target_bfd_reopen): Likewise.
16120 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16121 (deprecated_insert_raw_breakpoint): Likewise.
16122 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16123 * corelow.c (core_open): Likewise.
16124 * darwin-nat.c (darwin_check_new_threads): Likewise.
16125 (darwin_attach_pid): Likewise.
16126 * dummy-frame.c (dummy_frame_push): Likewise.
16127 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16128 * dwarf2loc.c (allocate_piece_closure): Likewise.
16129 * elfread.c (elf_symfile_segments): Likewise.
16130 * eval.c (ptrmath_type_p): Likewise.
16131 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16132 * gdbtypes.c (alloc_type_arch): Likewise.
16133 (alloc_type_instance): Likewise.
16134 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16135 * inf-child.c (inf_child_can_use_agent): Likewise.
16136 * inflow.c (get_inflow_inferior_data): Likewise.
16137 * infrun.c (save_infcall_suspend_state): Likewise.
16138 * jit.c (jit_reader_load): Likewise.
16139 (get_jit_objfile_data): Likewise.
16140 (get_jit_program_space_data): Likewise.
16141 (jit_object_open_impl): Likewise.
16142 (jit_symtab_open_impl): Likewise.
16143 (jit_block_open_impl): Likewise.
16144 (jit_frame_sniffer): Likewise.
16145 * linux-fork.c (add_fork): Likewise.
16146 * maint.c (make_command_stats_cleanup): Likewise.
16147 * objfiles.c (get_objfile_pspace_data): Likewise.
16148 * opencl-lang.c (struct lval_closure): Likewise.
16149 * osdata.c (osdata_start_osdata): Likewise.
16150 * progspace.c (new_address_space): Likewise.
16151 (add_program_space): Likewise.
16152 * remote-sim.c (get_sim_inferior_data): Likewise.
16153 * sh-tdep.c (sh_gdbarch_init): Likewise.
16154 * skip.c (Ignore): Likewise.
16155 (skip_delete_command): Likewise.
16156 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16157 (library_list_start_library): Likewise.
16158 (solib_aix_current_sos): Likewise.
16159 * solib-darwin.c (get_darwin_info): Likewise.
16160 (darwin_current_sos): Likewise.
16161 * solib-dsbt.c (get_dsbt_info): Likewise.
16162 * solib-ia64-hpux.c (new_so_list): Likewise.
16163 (ia64_hpux_get_solib_linkage_addr): Likewise.
16164 * solib-spu.c (append_ocl_sos): Likewise.
16165 (spu_current_sos): Likewise.
16166 * solib-svr4.c (get_svr4_info): Likewise.
16167 (svr4_keep_data_in_core): Likewise.
16168 (library_list_start_library): Likewise.
16169 (svr4_default_sos): Likewise.
16170 (svr4_read_so_list): Likewise.
16171 * solib-target.c (library_list_start_library): Likewise.
16172 (solib_target_current_sos): Likewise.
16173 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16174 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16175 * symfile.c (default_symfile_segments): Likewise.
16176 * target-descriptions.c (tdesc_data_init): Likewise.
16177 (tdesc_create_reg): Likewise.
16178 (struct tdesc_type *): Likewise.
16179 (tdesc_create_vector): Likewise.
16180 (tdesc_set_struct_size): Likewise.
16181 (struct tdesc_type *): Likewise.
16182 (tdesc_free_feature): Likewise.
16183 (tdesc_create_feature): Likewise.
16184 * windows-nat.c (windows_add_thread): Likewise.
16185 (windows_make_so): Likewise.
16186 * xml-support.c (gdb_xml_body_text): Likewise.
16187 (gdb_xml_create_parser_and_cleanup): Likewise.
16188 (xml_process_xincludes): Likewise.
16189 * xml-syscall.c (allocate_syscalls_info): Likewise.
16190 (syscall_create_syscall_desc): Likewise.
16191
5acfdbae
SDJ
161922014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16193
16194 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16195 function, with code from i386_stap_parse_special_token.
16196 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16197 (i386_stap_parse_special_token): Move code to the two functions
16198 above; simplify it.
16199
0000e5cc
PA
162002014-01-09 Pedro Alves <palves@redhat.com>
16201 Hui Zhu <hui@codesourcery.com>
16202
16203 PR gdb/16101
16204 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16205 bp_err_string. Don't mark the location shlib_disabled if the
16206 error thrown wasn't a generic or memory error. Catch errors
16207 thrown while inserting breakpoints in overlayed code. Output
16208 error message of software breakpoints.
16209 * remote.c (remote_insert_breakpoint): If this breakpoint has
16210 target-side commands but this stub doesn't support Z0 packets,
16211 throw NOT_SUPPORTED_ERROR error.
16212 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16213 * target.h (target_insert_breakpoint): Extend comment.
16214 (target_insert_hw_breakpoint): Add comment.
16215
b7ea362b
PA
162162014-01-08 Pedro Alves <palves@redhat.com>
16217
16218 * remote.c (remote_add_thread): Add threads silently if starting
16219 up.
16220 (remote_notice_new_inferior): If in all-stop, and starting up,
16221 don't call notice_new_inferior.
16222 (get_current_thread): New function, factored out from ...
16223 (add_current_inferior_and_thread): ... this. Adjust.
16224 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16225 found any thread, then select the remote's current thread as GDB's
16226 current thread too.
16227
b7bba001
JB
162282014-01-08 Joel Brobecker <brobecker@adacore.com>
16229
16230 * NEWS: Create a new section for the next release branch.
16231 Rename the section of the current branch, now that it has
16232 been cut.
16233
16dfbded
JB
162342014-01-08 Joel Brobecker <brobecker@adacore.com>
16235
16236 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16237 * version.in: Bump version to 7.7.50.DATE-cvs.
16238
22c90ac1
YQ
162392014-01-08 Yao Qi <yao@codesourcery.com>
16240
16241 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16242 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16243 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16244
d64ad97c
YQ
162452014-01-08 Yao Qi <yao@codesourcery.com>
16246
16247 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16248 return value of bfd_get_filename to symbol_file_add_from_bfd.
16249
f93ba80c
PM
162502014-01-08 Pierre Muller <muller@sourceware.org>
16251
16252 Fix PR16201.
16253 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16254 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16255 to prim_record_mininal_symbol_and_info.
16256 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16257 in call to prim_record_minimal_symbol_and_info.
16258 (read_pe_exported_syms): Set index field of section_data.
16259
a4d9ba85
AP
162602014-01-07 Andrew Pinski <apinski@cavium.com>
16261
16262 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16263 * features/aarch64.c: Regenerate.
16264
1b67eb02
AS
162652014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16266
16267 * target.c (return_null): Define.
16268 (update_current_target): Use it instead of return_zero for
16269 functions that return a pointer.
16270
5e3f4fab
EBM
162712014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16272
16273 * source.c (add_path): Fix check for duplicated paths in the previously
16274 included paths.
16275
e2616788
HK
162762014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16277
16278 * ada-lang.c: Remove duplicated include statements.
16279 * alphabsd-nat.c: Ditto.
16280 * amd64-darwin-tdep.c: Ditto.
16281 * amd64fbsd-nat.c: Ditto.
16282 * auto-load.c: Ditto.
16283 * ax-gdb.c: Ditto.
16284 * breakpoint.c: Ditto.
16285 * dbxread.c: Ditto.
16286 * fork-child.c: Ditto.
16287 * gdb_usleep.c: Ditto.
16288 * i386-darwin-tdep.c: Ditto.
16289 * i386fbsd-nat.c: Ditto.
16290 * infcmd.c: Ditto.
16291 * inferior.c: Ditto.
16292 * jv-lang.c: Ditto.
16293 * linux-nat.c: Ditto.
16294 * linux-tdep.c: Ditto.
16295 * m68kbsd-nat.c: Ditto.
16296 * m68klinux-nat.c: Ditto.
16297 * microblaze-tdep.c: Ditto.
16298 * mips-linux-tdep.c: Ditto.
16299 * mn10300-tdep.c: Ditto.
16300 * nto-tdep.c: Ditto.
16301 * opencl-lang.c: Ditto.
16302 * osdata.c: Ditto.
16303 * printcmd.c: Ditto.
16304 * regcache.c: Ditto.
16305 * remote-m32r-sdi.c: Ditto.
16306 * remote.c: Ditto.
16307 * symfile.c: Ditto.
16308 * symtab.c: Ditto.
16309 * tilegx-linux-nat.c: Ditto.
16310 * tilegx-tdep.c: Ditto.
16311 * tracepoint.c: Ditto.
16312 * valops.c: Ditto.
16313 * vaxbsd-nat.c: Ditto.
16314 * windows-nat.c: Ditto.
16315 * xtensa-tdep.c: Ditto.
16316
bd1f7788
YQ
163172014-01-07 Yao Qi <yao@codesourcery.com>
16318
16319 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16320
79301218
JB
163212014-01-07 Yao Qi <yao@codesourcery.com>
16322 Joel Brobecker <brobecker@adacore.com>
16323
16324 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16325 (pdc_write_regs): Likewise.
16326 (fetch_regs_kernel_thread): Likewise.
16327 (store_regs_kernel_thread): Likewise.
16328
163292014-01-07 Joel Brobecker <brobecker@adacore.com>
16330
16331 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16332 tagged type objects to their actual type.
16333
8e355c5d
JB
163342014-01-07 Joel Brobecker <brobecker@adacore.com>
16335
16336 * ada-valprint.c (print_field_values): Add "language" parameter.
16337 Update calls to print_field_values and print_variant_part.
16338 Pass new parameter "language" in call to val_print instead
16339 of "current_language". Replace call to ada_val_print by call
16340 to val_print.
16341 (print_variant_part): Add "language" parameter.
16342 (ada_val_print_struct_union): Update call to print_field_values.
16343
4fbf5aa5
JB
163442014-01-07 Joel Brobecker <brobecker@adacore.com>
16345
16346 * ada-valprint.c (ui_memcpy): Delete.
16347 (ada_print_floating): Update documentation. Add empty line
16348 between between function documentation and implementation.
16349 Delete variable "buffer". Use ui_file_xstrdup in place of
16350 ui_file_put. Minor adjustments following this change.
16351
71855601
JB
163522014-01-07 Joel Brobecker <brobecker@adacore.com>
16353
16354 * ada-valprint.c (ada_val_print_string): New function,
16355 extracted from ada_val_print_array.
16356 (ada_val_print_array): Replace extracted code by call
16357 to ada_val_print_string followed by a return. Move
16358 "else" branch to the function's top block.
16359
4eb27a30
JB
163602014-01-07 Joel Brobecker <brobecker@adacore.com>
16361
16362 * ada-valprint.c (ada_val_print_array): Move implementation
16363 down. Rename parameter "offset" and "val" into "offset_aligned"
16364 and "original_value" respectively. Add parameter "offset".
16365
34b27950
JB
163662014-01-07 Joel Brobecker <brobecker@adacore.com>
16367
16368 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16369 re-organizing the code. Change the "???" message printed
16370 when target type is a TYPE_CODE_UNDEF into
16371 "<ref to undefined type>".
16372
079e4591
JB
163732014-01-07 Joel Brobecker <brobecker@adacore.com>
16374
16375 * ada-valprint.c (print_record): Delete, implementation inlined...
16376 (ada_val_print_struct_union): ... here. Remove call to
16377 ada_check_typedef in inlined implementation.
16378
8004dfd1
JB
163792014-01-07 Joel Brobecker <brobecker@adacore.com>
16380
16381 * ada-valprint.c (ada_val_print_gnat_array): New function,
16382 extracted from ada_val_print_1;
16383 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16384 (ada_val_print_flt, ada_val_print_struct_union)
16385 (ada_val_print_ref): Likewise.
16386 (ada_val_print_1): Delete variables i and elttype.
16387 Replace extracted-out code by call to corresponding
16388 new functions.
16389
760a2db0
JB
163902014-01-07 Joel Brobecker <brobecker@adacore.com>
16391
16392 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16393
3a92c861
JB
163942014-01-07 Joel Brobecker <brobecker@adacore.com>
16395
16396 * ada-valprint.c (ada_val_print_1): Replace calls to
16397 ada_val_print_1 by calls to val_print.
16398
cd1630f9
JB
163992014-01-07 Joel Brobecker <brobecker@adacore.com>
16400
16401 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16402 Update calls to self accordingly. Replace calls to c_val_print
16403 by calls to val_print.
16404
bdf779a0
JB
164052014-01-07 Joel Brobecker <brobecker@adacore.com>
16406
16407 * ada-valprint.c (print_record): Delete declaration.
16408 (adjust_type_signedness, ada_val_print_1): Likewise.
16409 (ada_val_print): Move function implementation down.
16410 (print_variant_part, print_field_values, print_record):
16411 Move function implementation up.
16412
c0d48811
JB
164132014-01-07 Joel Brobecker <brobecker@adacore.com>
16414
16415 * python/py-type.c (typy_get_name): New function.
16416 (type_object_getset): Add entry for attribute "name".
16417 * NEWS: Add entry mentioning this new attribute.
16418
c26e9cbb
YQ
164192014-01-07 Yao Qi <yao@codesourcery.com>
16420
16421 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16422 statement.
16423
0cc6f43d
YQ
164242014-01-07 Yao Qi <yao@codesourcery.com>
16425
16426 * gnu-nat.c (info_port_rights): Add qualifier const to
16427 argument args.
16428
eec03155
YQ
164292014-01-07 Yao Qi <yao@codesourcery.com>
16430
16431 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16432
f04a82ef
YQ
164332014-01-07 Yao Qi <yao@codesourcery.com>
16434
16435 * gnu-nat.c (make_inf) Update declaration.
16436 (make_inf): Make it static.
16437 (inf_set_traced): Likewise.
16438 (inf_port_to_thread, inf_task_died_status): Likewise.
16439
d57dda0a
YQ
164402014-01-07 Yao Qi <yao@codesourcery.com>
16441
16442 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16443
3aa8c969
YQ
164442014-01-07 Yao Qi <yao@codesourcery.com>
16445
16446 * gnu-nat.c (_initialize_gnu_nat): Declare.
16447
94123b4f
YQ
164482014-01-07 Yao Qi <yao@codesourcery.com>
16449
16450 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16451 'enum bfd_endian'.
16452 (struct gdbarch_info) <byte_order>: Change type to
16453 'enum bfd_endian'.
16454 <byte_order_for_code>: Likewise.
16455 * gdbarch.c, gdbarch.h: Regenerated.
16456
dc81d70a
TT
164572014-01-06 Sasha Smundak <asmundak@google.com>
16458
16459 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16460
cc2f3c35
TT
164612014-01-06 Tom Tromey <tromey@redhat.com>
16462
16463 * doublest.c (convert_doublest_to_floatformat): Use const, not
16464 CONST.
16465 * somread.c (som_symtab_read): Likewise.
16466
adcf2eed
HZ
164672014-01-07 Hui Zhu <hui@codesourcery.com>
16468
16469 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16470 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16471 (gdb_bfd_fopen): Ditto.
16472 (gdb_bfd_openr): Ditto.
16473 (gdb_bfd_openw): Ditto.
16474 (gdb_bfd_openr_iovec): Ditto.
16475 (gdb_bfd_fdopenr): Ditto.
16476 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16477 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16478 with xstrdup.
16479 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16480 with xstrdup.
16481 * symfile-mem.c (symbol_file_add_from_memory): Removed
16482 gdb_bfd_stash_filename.
16483
50722198
DE
164842014-01-03 Doug Evans <dje@google.com>
16485
16486 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16487 output.
16488
2fa4b862
JB
164892014-01-01 Joel Brobecker <brobecker@adacore.com>
16490
16491 Update year range in copyright notice of all files.
16492
28498c42
JB
164932014-01-01 Joel Brobecker <brobecker@adacore.com>
16494
16495 * top.c (print_gdb_version): Set copyright year to 2014.
16496
7b6e1046
JB
164972014-01-01 Joel Brobecker <brobecker@adacore.com>
16498
16499 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16500
df96af55 16501For older changes see ChangeLog-2013.
c906108c
SS
16502\f
16503Local Variables:
16504mode: change-log
16505left-margin: 8
16506fill-column: 74
16507version-control: never
57da7796 16508coding: utf-8
c906108c 16509End:
This page took 4.638232 seconds and 4 git commands to generate.