Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87186c6a
MMN
12014-12-20 Keith Seitz <keiths@redhat.com>
2 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3
4 PR gdb/17394
5 * linespec.c (struct collect_minsyms): Add new member `symtab'.
6 (add_minsym): Handle cases where info.symtab is non-NULL.
7 (search_minsyms_for_name): Add new parameter `symtab'.
8 Handle limiting searches to a specific symtab.
9 (add_matching_symtabs_to_info): Search through minimal symbols
10 for language_asm files for which no new symbols are found.
11
bb7e3f4d
YQ
122014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
13 Nigel Stephens <nigel@mips.com>
14 Chris Dearman <chris@mips.com>
15 Luis Machado <lgustavo@codesourcery.com>
16
17 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
18 (ALLDEPFILES): Add mips-sde-tdep.c.
19 * mips-sde-tdep.c: New file containg SDE specific code.
20 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
21 gdb_target_obs.
22 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
23 * osabi.c (gdb_osabi_names): Add SDE.
24 * NEWS: Mention the change.
25
db7a9bcd
SM
262014-12-18 Simon Marchi <simon.marchi@ericsson.com>
27
28 * elfread.c (elf_symfile_init): Remove stale comment.
29 (elf_symfile_read): Same.
30 * symfile.h (struct sym_fns): Same.
31
1bab7383
YQ
322014-12-18 Nigel Stephens <nigel@mips.com>
33 Maciej W. Rozycki <macro@codesourcery.com>
34
35 * mips-tdep.c (print_fpu_flags): New function.
36 (mips_print_float_info): Likewise.
37 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
38 print_float_info routine.
39
cc86d1cb
YQ
402014-12-18 Yao Qi <yao@codesourcery.com>
41
42 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
43 * gdbarch.c: Re-generated.
44 * gdbarch.h: Likewise.
45 * infcmd.c (default_print_float_info): New function.
46 (print_float_info): Removed. Move code to
47 default_print_float_info.
48 (float_info): Adjust to call gdbarch_print_float_info.
49 * inferior.h (default_print_float_info): Declare it.
50
2ad47ec4
YQ
512014-12-18 Yao Qi <yao@codesourcery.com>
52
53 * h8300-tdep.c (h8300_print_float_info): Remove.
54 (h8300_gdbarch_init): Remove the call to
55 set_gdbarch_print_float_info.
56
253342b8
DE
572014-12-18 Doug Evans <xdje42@gmail.com>
58
59 * infcmd.c (jump_command): Minor simplification.
60
46b0da17
DE
612014-12-18 Doug Evans <xdje42@gmail.com>
62
63 * language.c (language_lookup_primitive_type): Renamed from
64 language_lookup_primitive_type_by_name. All callers updated.
65
1bc1068a
JK
662014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
67
68 Fix MinGW compilation.
69 * compile/compile.c (get_compile_file_tempdir): Call error if
70 !HAVE_MKDTEMP.
71 * config.in: Regenerate.
72 * configure: Regenerate.
73 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
74
5e3c72e6
DE
752014-12-17 Doug Evans <xdje42@gmail.com>
76
77 * valops.c (value_maybe_namespace_elt): Remove redundant call to
78 lookup_static_symbol.
79
cc485e62
DE
802014-12-17 Doug Evans <xdje42@gmail.com>
81
82 New parameter "debug symbol-lookup".
83 * NEWS: Mention it.
84 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
85 output.
86 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
87 (cp_lookup_nested_symbol): Ditto.
88 * language.c (language_lookup_primitive_type_by_name): Add debug
89 output.
90 * minsyms.c (lookup_minimal_symbol): Add debug output.
91 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
92 * symfile-debug.c (debug_objfile_name): ... from here. All callers
93 updated.
94 * objfiles.h (objfile_debug_name): Declare.
95 * symtab.h (symbol_lookup_debug): Declare.
96 * symtab.c (symbol_lookup_debug): New global.
97 (lookup_language_this): Add debug output.
98 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
99 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
100 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
101 (_initialize_symtab): Add new parameter "debug symbol-lookup".
102
0ab9ce85
DE
1032014-12-16 Doug Evans <xdje42@gmail.com>
104
105 * buildsym.c: Add comments describing how the buildsym machinery
106 is used by the various file formats.
107 (really_free_pendings): Enhance function comment.
108 See pending_macros to NULL. Simplify resetting pending_addrmap.
109 Call free_buildsym_compunit.
110 (free_buildsym_compunit): Set current_subfile to NULL.
111 (prepare_for_building): New function.
112 (start_symtab): Call it. Remove call to set_last_source_file.
113 (restart_symtab): New arg "cust". All callers updated.
114 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
115 (reset_symtab_globals): Enhance function comment.
116 Set local_symbols, file_symbols, global_symbols to NULL.
117 Set pending_macros to NULL. Simplify resetting pending_addrmap.
118 Call free_buildysym_compunit.
119 (end_symtab_without_blockvector): Delete. All callers updated.
120 (end_symtab_with_blockvector): Remove redundant call to
121 free_buildsym_compunit.
122 (augment_type_symtab): Remove arg "cust". All callers updated.
123 (buildsym_init): Remove resetting of free_pendings, file_symbols,
124 global_symbols, pending_blocks, pending_macros. Instead make
125 handling consistent with pending_addrmap: Assert value was reset
126 at end of previous symtab building. Initialize context_stack here.
127
55accf4a
DE
1282014-12-16 Doug Evans <xdje42@gmail.com>
129
130 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
131 cp_lookup_symbol_imports. All callers updated.
132
a07e3e18
DE
1332014-12-16 Doug Evans <xdje42@gmail.com>
134
135 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
136 find_type_baseclass_by_name. All callers updated.
137
d01060f0
DE
1382014-12-16 Doug Evans <xdje42@gmail.com>
139
140 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
141 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
142 (print_symbol_info): Delete arg symtab. All callers updated.
143 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
144
25dda427
AA
1452014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
146
147 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
148 "Name" columns. Assure that the output is always indented.
149
beed38b8
JB
1502014-12-16 Joel Brobecker <brobecker@adacore.com>
151
152 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
153 already defined.
154 (linux_enable_event_reporting): Add parameter "attached".
155 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
156 declaration. New function.
157 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
158 (linux_enable_event_reporting): Add new parameter "attached".
159 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
160 nonzero.
161 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
162 Use it. Update function description.
163 (linux_child_post_attach, linux_child_post_startup_inferior):
164 Update call to linux_enable_event_reporting.
165
8fda9068
YQ
1662014-12-16 Yao Qi <yao@codesourcery.com>
167
168 * NEWS: Move some entries to "Changes since GDB 7.8" section.
169
2a546367
YQ
1702014-12-16 Yao Qi <yao@codesourcery.com>
171
172 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
173 ARG_LAST.
174
c9657e70
SM
1752014-12-15 Simon Marchi <simon.marchi@ericsson.com>
176
177 * inferior.c (find_inferior_ptid): New function.
178 * inferior.h (find_inferior_ptid): New declaration.
179 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
180 * corelow.c (core_pid_to_str): Same.
181 * darwin-nat.c (darwin_resume): Same.
182 * infrun.c (fetch_inferior_event): Same.
183 (get_inferior_stop_soon): Same.
184 (handle_inferior_event): Same.
185 (handle_signal_stop): Same.
186 * linux-nat.c (resume_lwp): Same.
187 (stop_wait_callback): Same.
188 * mi/mi-interp.c (mi_new_thread): Same.
189 (mi_thread_exit): Same.
190 * proc-service.c (ps_pglobal_lookup): Same.
191 * record-btrace.c (record_btrace_step_thread): Same.
192 * remote-sim.c (gdbsim_close_inferior): Same.
193 (gdbsim_resume): Same.
194 (gdbsim_stop): Same.
195 * sol2-tdep.c (sol2_core_pid_to_str): Same.
196 * target.c (memory_xfer_partial_1): Same.
197 (default_thread_address_space): Same.
198 * thread.c (thread_change_ptid): Same.
199 (switch_to_thread): Same.
200 (do_restore_current_thread_cleanup): Same.
201
38bcc89d
SM
2022014-12-15 Simon Marchi <simon.marchi@ericsson.com>
203
204 * defs.h (gdb_readline): Constify argument.
205 (gdb_readline_wrapper): Same.
206 (command_line_input): Same.
207 (deprecated_readline_hook): Same.
208 * top.c (deprecated_readline_hook): Same.
209 (gdb_readline): Same.
210 (gdb_readline_wrapper): Same.
211 (command_line_input): Constify argument. Pass prompt_arg to called
212 functions instead of local_prompt, overwriting prompt_arg if necessary.
213 * event-top.h (display_gdb_prompt): Constify argument.
214 * event-top.c (display_gdb_prompt): Same.
215 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
216 if building with Python 3.4 and up.
217
89ed8ea1
SM
2182014-12-15 Simon Marchi <simon.marchi@ericsson.com>
219
220 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
221 os.getcwdu().
222
aacd3e8c
CU
2232014-12-15 Catalin Udma <catalin.udma@freescale.com>
224
225 PR gdb/15684
226 * memattr.c (mem_info_command): Remove "unsigned long" casts.
227
dc4d6886
DE
2282014-12-13 Doug Evans <xdje42@gmail.com>
229
230 * utils.c (make_hex_string): Fix off-by-one error.
231
c1b5a1a6
JB
2322014-12-13 Joel Brobecker <brobecker@adacore.com>
233
234 * ada-lang.h (ada_ensure_varsize_limit): Declare.
235 * ada-lang.c (check_size): Remove advance declaration.
236 (ada_ensure_varsize_limit): Renames check_size.
237 Replace calls to check_size by calls to ada_ensure_varsize_limit
238 throughout.
239 * ada-valprint.c (ada_val_print_ref): Add call to
240 ada_ensure_varsize_limit. Add comment explaining why.
241
3c46a02f
JB
2422014-12-13 Joel Brobecker <brobecker@adacore.com>
243
244 * utils.c (make_hex_string): Replace use of sprintf by use of
245 xsnprintf.
246
8e8347b8
JB
2472014-12-13 Joel Brobecker <brobecker@adacore.com>
248
249 * compile/compile-object-load.c (link_callbacks_multiple_definition)
250 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
251 newline at end of warning message.
252
f93b65a0
JB
2532014-12-13 Joel Brobecker <brobecker@adacore.com>
254
255 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
256 new "EXTRA-ARGS" parameter.
257 * configure.ac: If large-file support is disabled in GDB,
258 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
259 * configure: Regenerate.
260
5537b577
JK
2612014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 PR symtab/17642
264 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
265 TYPE if not TYPE_CODE_TYPEDEF.
266
e0782980
JB
2672014-12-13 Joel Brobecker <brobecker@adacore.com>
268
269 PR backtrace/16215:
270 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
271 the frame unwinder must either be the dwarf2_frame_unwind
272 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
273 stack_addr is valid before calling get_frame_base. Throw
274 an error if not valid.
275
ae6a105d
DE
2762014-12-12 Doug Evans <xdje42@gmail.com>
277
278 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
279 result != NULL.
280
59da4d04
DE
2812014-12-12 Doug Evans <xdje42@gmail.com>
282
283 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
284 All callers updated. Rename arg "namespace" to "symbol_name".
285
83827540
DE
2862014-12-12 Doug Evans <xdje42@gmail.com>
287
288 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
289 partial_map_symtabs_matching_filename. All uses updated.
290 (psym_find_pc_sect_compunit_symtab): Renamed from
291 find_pc_sect_compunit_symtab_from_partial. All uses updated.
292 Add function comment.
293 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
294 All uses updated. Add function comment.
295 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
296 Add function comment.
297 (psym_find_last_source_symtab): Renamed from
298 find_last_source_symtab_from_partial. All uses updated.
299 Add function comment.
300 (psym_forget_cached_source_info): Renamed from
301 forget_cached_source_info_partial. All uses updated.
302 Add function comment.
303 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
304 All uses updated. Add function comment.
305 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
306 updated. Add function comment.
307 (psym_expand_symtabs_for_function): Renamed from
308 read_symtabs_for_function. All uses updated. Update function comment.
309 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
310 All uses updated. Add function comment.
311 (psym_expand_symtabs_with_fullname): Renamed from
312 read_psymtabs_with_fullname. All uses updated. Add function comment.
313 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
314 All uses updated. Add function comment.
315 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
316 All uses updated.
317 (psym_expand_symtabs_matching): Renamed from
318 expand_symtabs_matching_via_partial. All uses updated.
319 Add function comment.
320 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
321 Add function comment.
322
bb2ec1b3
TT
3232014-12-12 Phil Muldoon <pmuldoon@redhat.com>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
325 Tom Tromey <tromey@redhat.com>
326
327 * NEWS: Update.
328 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
329 field.
330 * p-lang.c (pascal_language_defn): Update.
331 * opencl-lang.c (opencl_language_defn): Update.
332 * objc-lang.c (objc_language_defn): Update.
333 * m2-lang.c (m2_language_defn): Update.
334 * language.h (struct language_defn) <la_get_compile_instance,
335 la_compute_program>: New fields.
336 * language.c (unknown_language_defn, auto_language_defn)
337 (local_language_defn): Update.
338 * jv-lang.c (java_language_defn): Update.
339 * go-lang.c (go_language_defn): Update.
340 * f-lang.c (f_language_defn): Update.
341 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
342 * dwarf2loc.c (dwarf2_compile_property_to_c)
343 (locexpr_generate_c_location, loclist_generate_c_location): New
344 functions.
345 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
346 * defs.h (enum compile_i_scope_types): New.
347 (enum command_control_type) <compile_control>: New constant.
348 (struct command_line) <control_u>: New field.
349 * d-lang.c (d_language_defn): Update.
350 * compile/compile.c: New file.
351 * compile/compile-c-support.c: New file.
352 * compile/compile-c-symbols.c: New file.
353 * compile/compile-c-types.c: New file.
354 * compile/compile.h: New file.
355 * compile/compile-internal.h: New file.
356 * compile/compile-loc2c.c: New file.
357 * compile/compile-object-load.c: New file.
358 * compile/compile-object-load.h: New file.
359 * compile/compile-object-run.c: New file.
360 * compile/compile-object-run.h: New file.
361 * cli/cli-script.c (multi_line_command_p, print_command_lines)
362 (execute_control_command, process_next_line)
363 (recurse_read_control_structure): Handle compile_control.
364 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
365 * c-lang.c (c_language_defn, cplus_language_defn)
366 (asm_language_defn, minimal_language_defn): Update.
367 * ada-lang.c (ada_language_defn): Update.
368 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
369 New variables.
370 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
371 (HFILES_NO_SRCDIR): Add compile.h.
372 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
373 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
374 (compile.o, compile-c-types.o, compile-c-symbols.o)
375 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
376 (compile-c-support.o): New targets.
377
a2658feb
JK
3782014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
379
380 * s390-linux-tdep.c (s390_gcc_target_options): New function.
381 (s390_gdbarch_init): Add it to gdbarch.
382
3bc3cebe
JK
3832014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
384
385 * linux-tdep.c: Include objfiles.h and infcall.h.
386 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
387 function.
388 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
389
d064d1be
JK
3902014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
393 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
394 translate_register. Now public.
395 (dwarf2_compile_expr_to_ax): Update.
396
af945b75
TT
3972014-12-12 Tom Tromey <tromey@redhat.com>
398 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
401 (dwarf_expr_frame_base): Update caller.
402 (dwarf_expr_frame_base_1): Rename to ...
403 (func_get_frame_base_dwarf_block): ... this and make it public.
404 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
405 callers.
406 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
407
a8fd5589
TT
4082014-12-12 Tom Tromey <tromey@redhat.com>
409
410 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
411 Update.
412 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
413 dwarf2_compile_cfa_to_ax.
414 (dwarf2_compile_cfa_to_ax): Remove.
415 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
416 (dwarf2_compile_cfa_to_ax): Remove.
417
ed12ef62
JK
4182014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 * infcall.h (call_function_by_hand_dummy): Declare.
421 * infcall.c (call_function_by_hand): Use
422 call_function_by_hand_dummy.
423 (call_function_by_hand_dummy): Rename from call_function_by_hand.
424 Add arguments. Register a destructor.
425
ac04f72b
TT
4262014-12-12 Tom Tromey <tromey@redhat.com>
427 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 * osabi.h (osabi_triplet_regexp): Declare.
430 * osabi.c (struct osabi_names): New.
431 (gdb_osabi_names): Change type to struct osabi_names. Update
432 values.
433 (gdbarch_osabi_name): Update.
434 (osabi_triplet_regexp): New function.
435 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
436 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
437 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
438 set_gdbarch_gnu_triplet_regexp.
439 * gdbarch.sh (gnu_triplet_regexp): New method.
440 * gdbarch.c, gdbarch.h: Rebuild.
441 * arch-utils.h (default_gnu_triplet_regexp): Declare.
442 * arch-utils.c (default_gnu_triplet_regexp): New function.
443
f208eee0
JK
4442014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 * arch-utils.c (default_infcall_mmap)
447 (default_gcc_target_options): New functions.
448 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
449 (GDB_MMAP_PROT_EXEC): Define.
450 (default_infcall_mmap, default_gcc_target_options): Declare.
451 * gdbarch.h: Rebuild.
452 * gdbarch.c: Rebuild.
453 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
454
233a8fb3
JK
4552014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
458 fields.
459 (pop_dummy_frame): Call the destructor if it exists.
460 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
461 functions.
462 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
463 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
464
f1660027
TT
4652014-12-12 Tom Tromey <tromey@redhat.com>
466
467 * gdbtypes.h (make_unqualified_type): Declare.
468 * gdbtypes.c (make_unqualified_type): New function.
469
de571fc5
TT
4702014-12-12 Tom Tromey <tromey@redhat.com>
471
472 * ui-file.h (ui_file_write_for_put): Declare.
473 * ui-file.c (ui_file_write_for_put): New function.
474 * mi/mi-out.c (do_write): Remove.
475 (mi_out_put): Use ui_file_write_for_put.
476
6dddd6a5
DE
4772014-12-12 Doug Evans <dje@google.com>
478
479 * NEWS: Mention gdb.lookup_objfile.
480 * python/python.c (GdbMethods): Add lookup_objfile.
481 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
482 * python/py-objfile.c: #include "symtab.h".
483 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
484 (objfpy_lookup_objfile_by_name): New function.
485 (objfpy_lookup_objfile_by_build_id): New function.
486 (gdbpy_lookup_objfile): New function.
487
f161c171
MR
4882014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
489
490 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
491 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
492 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
493 macros.
494 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
495 Likewise.
496
71c24708
AA
4972014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
498
499 * completer.c: Include "target.h", "reggroups.h", and
500 "user-regs.h".
501 (reg_or_group_completer): New.
502 * completer.h (reg_or_group_completer): Declare.
503 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
504 the "info registers" and "info all-registers" commands and the
505 dbx-mode "lr" command.
506
f5b95c01
AA
5072014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
508
509 * user-regs.c: Include "arch-utils.h", "command.h", and
510 "cli/cli-cmds.h".
511 (maintenance_print_user_registers): New.
512 (_initialize_user_regs): Register new "maint print user-registers"
513 subcommand.
514 * NEWS: Mention new GDB command "maint print user-registers".
515
3e29f34a
MR
5162014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
517 Maciej W. Rozycki <macro@mips.com>
518 Pedro Alves <pedro@codesourcery.com>
519
520 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
521 remove `predefault' and `invalid_p' initializers.
522 (make_symbol_special): New architecture method.
523 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
524 (objfile, symbol): New declarations.
525 * arch-utils.h (default_elf_make_msymbol_special): Remove
526 prototype.
527 (default_make_symbol_special): New prototype.
528 (default_adjust_dwarf2_addr): Likewise.
529 (default_adjust_dwarf2_line): Likewise.
530 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
531 * arch-utils.c (default_elf_make_msymbol_special): Remove
532 function.
533 (default_make_symbol_special): New function.
534 (default_adjust_dwarf2_addr): Likewise.
535 (default_adjust_dwarf2_line): Likewise.
536 * dwarf2-frame.c (decode_frame_entry_1): Call
537 `gdbarch_adjust_dwarf2_addr'.
538 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
539 * dwarf2read.c (create_addrmap_from_index): Likewise.
540 (process_psymtab_comp_unit_reader): Likewise.
541 (add_partial_symbol): Likewise.
542 (add_partial_subprogram): Likewise.
543 (process_full_comp_unit): Likewise.
544 (read_file_scope): Likewise.
545 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
546 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
547 (read_call_site_scope): Likewise.
548 (dwarf2_ranges_read): Likewise.
549 (dwarf2_record_block_ranges): Likewise.
550 (read_attribute_value): Likewise.
551 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
552 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
553 * elfread.c (elf_symtab_read): Don't call
554 `gdbarch_elf_make_msymbol_special' if unset.
555 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
556 the ISA bit from the PC.
557 * mips-tdep.c (mips_unmake_compact_addr): New function.
558 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
559 address appropriately.
560 (mips_make_symbol_special): New function.
561 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
562 (mips_pc_is_mips16): Likewise.
563 (mips_pc_is_micromips): Likewise.
564 (mips_pc_isa): Likewise.
565 (mips_adjust_dwarf2_addr): New function.
566 (mips_adjust_dwarf2_line): Likewise.
567 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
568 (mips_addr_bits_remove): Likewise.
569 (mips_skip_trampoline_code): Likewise.
570 (mips_write_pc): Don't set the ISA bit.
571 (mips_eabi_push_dummy_call): Likewise.
572 (mips_o64_push_dummy_call): Likewise.
573 (mips_gdbarch_init): Install `mips_make_symbol_special',
574 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
575 handlers.
576 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
577 target-specific symbol address adjustments.
578 * gdbarch.h: Regenerate.
579 * gdbarch.c: Regenerate.
580
21daaaaf
YQ
5812014-12-12 Yao Qi <yao@codesourcery.com>
582
583 PR tdep/14261
584 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
585 'skip_pc'. Remove code skipping prologue instructions, use
586 arm_analyze_prologue instead.
587 (arm_analyze_prologue): Stop the scanning for unrecognized
588 instruction when skipping prologue.
589
f303bc3e
YQ
5902014-12-12 Yao Qi <yao@codesourcery.com>
591
592 * arm-tdep.c (arm_instruction_restores_sp): New function.
593 (arm_analyze_prologue): Call arm_instruction_restores_sp.
594 (arm_in_function_epilogue_p): Move code to
595 arm_instruction_restores_sp.
596
05a6c3c8
DE
5972014-12-11 Doug Evans <xdje42@gmail.com>
598
599 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
600
fe2a438d
DE
6012014-12-11 Doug Evans <xdje42@gmail.com>
602
603 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
604 (symbol *lookup_symbol_via_quick_fns): Ditto.
605 (lookup_symbol_in_objfile): Add forward decl.
606 (lookup_global_symbol_from_objfile): Simplify, call
607 lookup_symbol_in_objfile.
608
540feddf
DE
6092014-12-11 Doug Evans <xdje42@gmail.com>
610
611 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
612
fc126975
SM
6132014-12-10 Simon Marchi <simon.marchi@ericsson.com>
614
615 PR breakpoints/17012
616 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
617 it is marked as persistent.
618
56286edf
DE
6192014-12-10 Doug Evans <xdje42@gmail.com>
620
621 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
622 closer to its subroutines.
623
34ef8452
DE
6242014-12-10 Doug Evans <xdje42@gmail.com>
625
626 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
627
9a80057a
DE
6282014-12-10 Doug Evans <xdje42@gmail.com>
629
630 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 631 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 632
1abf3a14
SM
6332014-12-10 Simon Marchi <simon.marchi@ericsson.com>
634
635 PR gdb/17627
636 * target.c (cleanup_restore_target_terminal): New function.
637 (make_cleanup_restore_target_terminal): New function.
638 * target.h (make_cleanup_restore_target_terminal): New declaration.
639 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
640
d4d1e336
DE
6412014-12-08 Doug Evans <dje@google.com>
642
643 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
644
a0be3e44
DE
6452014-12-08 Doug Evans <dje@google.com>
646
647 * NEWS: Mention gdb.Objfile.owner.
648 * python/py-objfile.c (objfpy_get_owner): New function.
649 (objfile_getset): Add "owner".
650
6c1c7be3
JK
6512014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
652
653 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
654 (lookup_global_symbol_from_objfile): Call it.
655
efad9b6a
JK
6562014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 Remove const from struct objfile *.
659 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
660 symtab.c, symtab.h: In these files.
661
069bb7ec
AF
6622014-12-05 Andreas From <andreas.from@ericsson.com>
663
664 * MAINTAINERS (Write After Approval): Add "Andreas From"
665
642a8d80
DE
6662014-12-05 Doug Evans <xdje42@gmail.com>
667
668 Revert:
669 PR symtab/17602
670 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
671
86e4ed39
DE
6722014-12-04 Doug Evans <dje@google.com>
673
674 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
675 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
676 (objfile_getset): Add "add_separate_debug_file".
677
7c50a931
DE
6782014-12-04 Doug Evans <dje@google.com>
679
680 * NEWS: Mention gdb.Objfile.build_id.
681 * build-id.c (build_id_bfd_get): Make non-static.
682 * build-id.h (build_id_bfd_get): Add declaration.
683 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
684 (OBJFPY_REQUIRE_VALID): New macro.
685 (objfpy_get_build_id): New function.
686 (objfile_getset): Add "build_id".
687 * utils.c (make_hex_string): New function.
688 * utils.h (make_hex_string): Add declaration.
689
ba715d7f
JK
6902014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
691
692 * block.c (block_lookup_symbol_primary): New function.
693 * block.h (block_lookup_symbol_primary): New declaration.
694 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
695 Call block_lookup_symbol_primary.
696
858339f2
MR
6972014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
698
699 * tramp-frame.h (tramp_frame): Add `validate' member.
700 * tramp-frame.c (tramp_frame_start): Validate trampoline before
701 scanning.
702 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
703 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
704 (mips_linux_o32_sigframe): Initialize `validate' member.
705 (mips_linux_o32_rt_sigframe): Likewise.
706 (mips_linux_n32_rt_sigframe): Likewise.
707 (mips_linux_n64_rt_sigframe): Likewise.
708 (micromips_linux_o32_sigframe): New variable.
709 (micromips_linux_o32_rt_sigframe): Likewise.
710 (micromips_linux_n32_rt_sigframe): Likewise.
711 (micromips_linux_n64_rt_sigframe): Likewise.
712 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
713 (mips_linux_n32n64_sigframe_init): Likewise.
714 (mips_linux_sigframe_validate): New function.
715 (micromips_linux_sigframe_validate): Likewise.
716 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
717
ff1eb2b5
UW
7182014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
719
720 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
721 * sparc-sol2-tdep.c: Include "regset.h".
722 (sparc32_sol2_supply_core_gregset): New function.
723 (sparc32_sol2_collect_core_gregset): Likewise.
724 (sparc32_sol2_supply_core_fpregset): Likewise.
725 (sparc32_sol2_collect_core_fpregset): Likewise.
726 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
727 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
728 tdep->fpregset/sizeof_fpregset.
729 * sparc64-sol2-tdep.c: Include "regset.h".
730 (sparc64_sol2_supply_core_gregset): New function.
731 (sparc64_sol2_collect_core_gregset): Likewise.
732 (sparc64_sol2_supply_core_fpregset): Likewise.
733 (sparc64_sol2_collect_core_fpregset): Likewise.
734 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
735 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
736 tdep->fpregset/sizeof_fpregset.
737
75783939
SM
7382014-12-03 Simon Marchi <simon.marchi@ericsson.com>
739
740 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
741 type.
742
7c5fdd25
DE
7432014-12-02 Doug Evans <dje@google.com>
744
745 * symtab.c (symbol_init_cplus_specific): Delete.
746 (symbol_set_demangled_name): Remove special c++ support.
747 (symbol_get_demangled_name, symbol_set_language): Ditto.
748 * symtab.h (struct cplus_specific): Delete.
749 (struct general_symbol_info) <language_specific>: Remove
750 cplus_specific.
751
29f0c3b7
DE
7522014-12-02 Doug Evans <dje@google.com>
753
754 PR symtab/17602
755 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
756
72998fb3
DE
7572014-12-02 Doug Evans <dje@google.com>
758
759 PR symtab/17591
760 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
761 to strip parameters.
762
422b9917
DE
7632014-12-02 Doug Evans <dje@google.com>
764
765 * dwarf2read.c (peek_die_abbrev): Improve error message text.
766
47c6ee49
DE
7672014-12-02 Doug Evans <dje@google.com>
768
769 * valops.c (do_search_struct_field): Remove remnant of Chill support.
770 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
771
5da3ffc9
SM
7722014-12-02 Simon Marchi <simon.marchi@ericsson.com>
773
774 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
775
162078c8
NB
7762014-12-02 Nick Bull <nicholaspbull@gmail.com>
777
778 * NEWS: Mention new Python events.
779 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
780 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
781 (py-infevents.o): New rule.
782 * doc/observer.texi (inferior_call_pre, inferior_call_post)
783 (memory_changed, register_changed): New observers.
784 * infcall.c (call_function_by_hand): Notify observer before and
785 after inferior call.
786 * python/py-event.h (inferior_call_kind): New enum.
787 (emit_inferior_call_event): New prototype.
788 (emit_register_changed_event): New prototype.
789 (emit_memory_changed_event): New prototype.
790 * python/py-events.h (events_object): New registries
791 inferior_call, memory_changed and register_changed.
792 * python/py-evts.c (gdbpy_initialize_py_events): Add the
793 inferior_call, memory_changed and register_changed registries.
794 * python/py-infevents.c: New.
795 * python/py-inferior.c (python_on_inferior_call_pre)
796 (python_on_inferior_call_post, python_on_register_change)
797 (python_on_memory_change): New functions.
798 (gdbpy_initialize_inferior): Attach python handler to new
799 observers.
800 * python/py-infthread.c(gdbpy_create_ptid_object): New.
801 (thpy_get_ptid) Use gdbpy_create_ptid_object.
802 * python/python-internal.h:
803 (gdbpy_create_ptid_object)
804 (gdbpy_initialize_inferior_call_pre_event)
805 (gdbpy_initialize_inferior_call_post_event)
806 (gdbpy_initialize_register_changed_event)
807 (gdbpy_initialize_memory_changed_event): New prototypes.
808 * python/python.c (_initialize_python): Initialize new events.
809 * valops.c (value_assign): Notify register_changed observer.
810
007baf27
DE
8112014-12-02 Doug Evans <dje@google.com>
812
813 * python/py-infthread.c: Whitespace fixes.
814
d5552aab
AA
8152014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
816
817 * features/Makefile (s390-te-linux64-expedite): Replace
818 non-existant r14 and r15 by r14l and r15l, respectively.
819 * regformats/s390-te-linux64.dat: Regenerate.
820
30b5e341
SM
8212014-12-01 Simon Marchi <simon.marchi@ericsson.com>
822
823 * objfiles.c (allocate_objfile): Remove duplicate comment.
824
ac3d87c0
UW
8252014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
826
827 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
828 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
829 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
830 (supply_gregset, supply_fpregset): Remove.
831 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
832 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
833 and sizeof_gregset.
834
f10c5b19
JK
8352014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
836
837 Add add-auto-load-scripts-directory.
838 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
839 * auto-load.c (add_auto_load_dir): New function.
840 (_initialize_auto_load): Install it.
841
f0d4ba1f
MG
8422014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
843
844 Pushed by Joel Brobecker <brobecker@adacore.com>.
845 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
846
18ac6ffc
SC
8472014-11-29 Siva Chandra Reddy <sivachandra@google.com>
848
849 * eval.c (evaluate_subexp): Check that the thread stack temporaries
850 are not already enabled before enabling them.
851
4072f920
YQ
8522014-11-29 Yao Qi <yao@codesourcery.com>
853
854 * arm-tdep.c (arm_analyze_prologue): Move local variables
855 'framereg' and 'framesize' to inner block. Move code to
856 inner block too.
857
6c659fc2
SC
8582014-11-28 Siva Chandra Reddy <sivachandra@google.com>
859
860 * eval.c: Include gdbthread.h.
861 (evaluate_subexp): Enable thread stack temporaries before
862 evaluating a complete expression and clean them up after the
863 evaluation is complete.
864 * gdbthread.h: Include common/vec.h.
865 (value_ptr): New typedef.
866 (VEC (value_ptr)): New vector type.
867 (value_vec): New typedef.
868 (struct thread_info): Add new fields stack_temporaries_enabled
869 and stack_temporaries.
870 (enable_thread_stack_temporaries)
871 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
872 (get_last_thread_stack_temporary)
873 (value_in_thread_stack_temporaries): Declare.
874 * gdbtypes.c (class_or_union_p): New function.
875 * gdbtypes.h (class_or_union_p): Declare.
876 * infcall.c (call_function_by_hand): Store return values of class
877 type as temporaries on stack.
878 * thread.c (enable_thread_stack_temporaries): New function.
879 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
880 (get_last_thread_stack_temporary): Likewise.
881 (value_in_thread_stack_temporaries): Likewise.
882 * value.c (value_force_lval): New function.
883 * value.h (value_force_lval): Declare.
884
f7ca3fcf
PM
8852014-11-28 Pierre Muller <muller@sourceware.org>
886
887 Pushed by Joel Brobecker <brobecker@adacore.com>.
888 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
889 registers.
890
b2859a9a
UW
8912014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
892
893 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
894 * config/sparc/linux.mh (NATDEPFILES): Likewise.
895 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
896 * m68klinux-nat.c (fetch_core_registers): Remove.
897 (linux_elf_core_fns): Remove.
898 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
899
0fa9473f
JB
9002014-11-28 Joel Brobecker <brobecker@adacore.com>
901
902 * utils.c (gdb_realpath): Rework comment about handling on
903 Windows.
904
6a29c58e
YQ
9052014-11-28 Yao Qi <yao@codesourcery.com>
906
907 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
908 rename.
909 * gnulib/aclocal.m4: Re-generated.
910 * gnulib/config.in: Re-generated.
911 * gnulib/configure: Re-generated.
912 * gnulib/import/Makefile.am: Re-generated.
913 * gnulib/import/Makefile.in: Re-generated.
914 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
915 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
916 * import/basename-lgpl.c: New file.
917 * import/dirname-lgpl.c: New file.
918 * import/dirname.h: New file.
919 * import/m4/dirname.m4: New file.
920 * import/m4/malloc.m4: New file.
921 * import/m4/rename.m4: New file.
922 * import/m4/rmdir.m4: New file.
923 * import/m4/stdio_h.m4: New file.
924 * import/malloc.c: New file.
925 * import/rename.c: New file.
926 * import/rmdir.c: New file.
927 * import/same-inode.h: New file.
928 * import/stdio.c: New file.
929 * import/stdio.in.h: New file.
930 * import/stripslash.c: New file.
931
abbffc89
YQ
9322014-11-28 Yao Qi <yao@codesourcery.com>
933
934 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
935 and realpath.
936 * config.in: Re-generated.
937 * configure: Re-generated.
938 * utils.c (gdb_realpath): Remove code calling realpath,
939 canonicalize_file_name and pathconf.
940 [!_WIN32]: Call canonicalize_file_name.
941
98399780
YQ
9422014-11-28 Yao Qi <yao@codesourcery.com>
943
944 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
945 canonicalize-lgpl.
946 * aclocal.m4: Re-generated.
947 * config.in: Re-generated.
948 * configure: Re-generated.
949 * import/Makefile.am: Re-generated.
950 * import/Makefile.in: Re-generated.
951 * import/m4/gnulib-cache.m4: Re-generated.
952 * import/m4/gnulib-comp.m4: Re-generated.
953 * import/canonicalize-lgpl.c: New file.
954 * import/extra/snippet/_Noreturn.h: New file.
955 * import/m4/canonicalize.m4: New file.
956 * import/m4/double-slash-root.m4: New file.
957 * import/m4/eealloc.m4: New file.
958 * import/m4/malloca.m4: New file.
959 * import/m4/nocrash.m4: New file.
960 * import/m4/stdlib_h.m4: New file.
961 * import/malloca.c: New file.
962 * import/malloca.h: New file.
963 * import/malloca.valgrind: New file.
964
3332aaf2
YQ
9652014-11-28 Yao Qi <yao@codesourcery.com>
966
967 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
968 * config.in, configure: Regenerate.
969 * symfile.c (find_separate_debug_file_by_debuglink): Remove
970 code checking HAVE_LSTAT is defined.
971
f45c62c4
YQ
9722014-11-28 Yao Qi <yao@codesourcery.com>
973
974 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
975 lstat.
976 * gnulib/aclocal.m4: Re-generated.
977 * gnulib/config.in: Re-generated.
978 * gnulib/configure: Re-generated.
979 * gnulib/import/Makefile.am: Re-generated.
980 * gnulib/import/Makefile.in: Re-generated.
981 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
982 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
983 * gnulib/import/lstat.c: New file.
984 * gnulib/import/m4/lstat.m4: New file.
985
bdca27a2
YQ
9862014-11-28 Yao Qi <yao@codesourcery.com>
987
988 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
989 * config.in, configure: Re-generate.
990 * inf-child.c (inf_child_fileio_readlink): Don't check
991 HAVE_READLINK is defined.
992
2196f55f
YQ
9932014-11-28 Yao Qi <yao@codesourcery.com>
994
995 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
996 * gnulib/aclocal.m4: Re-generated.
997 * gnulib/config.in: Likewise.
998 * gnulib/configure: Likewise.
999 * gnulib/import/Makefile.am: Likewise.
1000 * gnulib/import/Makefile.in: Likewise.
1001 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1002 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1003 * gnulib/import/dosname.h: New file
1004 * gnulib/import/m4/largefile.m4: New file.
1005 * gnulib/import/m4/readlink.m4: New file.
1006 * gnulib/import/m4/stat.m4: New file.
1007 * gnulib/import/readlink.c: New file.
1008 * gnulib/import/stat.c: New file.
1009
7014e923 10102014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1011
1012 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1013 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1014
aa489395
SL
10152014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1016
1017 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1018 that there can be only one stack adjustment in the prologue
1019 with tests to detect specific disallowed stack adjustments.
1020
7f1659b5
SL
10212014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1022
1023 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1024 adjustments.
1025
d53c26c7
SL
10262014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1027
1028 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1029 the instruction as well as reading it from memory.
1030 (nios2_match_add): New.
1031 (nios2_match_sub): New.
1032 (nios2_match_addi): New.
1033 (nios2_match_orhi): New.
1034 (nios2_match_stw): New.
1035 (nios2_match_ldw): New.
1036 (nios2_match_rdctl): New.
1037 (enum branch_condition): New.
1038 (nios2_match_branch): New.
1039 (nios2_match_jmpi): New.
1040 (nios2_match_calli): New.
1041 (nios2_match_jmpr): New.
1042 (nios2_match_callr): New.
1043 (nios2_match_break): New.
1044 (nios2_match_trap): New.
1045 (nios2_in_epilogue_p): Rewrite to use new functions.
1046 (nios2_analyze_prologue): Likewise.
1047 (nios2_skip_prologue): Delete unused local limit_pc.
1048 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1049 (nios2_get_next_pc): Rewrite to use new functions.
1050
cac9b138
JK
10512014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1052
1053 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1054
a441dfbc
ST
10552014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1056
1057 Pushed by Joel Brobecker <brobecker@adacore.com>
1058 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1059 elements pi_len by the size of the elements before calling
1060 vm_deallocate.
1061 (inf_validate_task_sc): Likewise, and properly deallocate the
1062 noise array.
1063
4c9e8482
DE
10642014-11-23 Doug Evans <xdje42@gmail.com>
1065
1066 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1067 number and name if present. All callers updated.
1068 (dump_fn_fieldlists): Fix indentation of args.
1069
15ee0bbd
PP
10702014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1071
1072 * MAINTAINERS (Write After Approval): Add myself.
1073
e8af5d7a
JB
10742014-11-23 Joel Brobecker <brobecker@adacore.com>
1075
1076 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1077 to a bp_call_dummy breakpoint type.
1078
a344fc09
PP
10792014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1080
1081 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1082 registering the signal handler.
1083
d64e57fa
PP
10842014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1085
1086 * event-top.h (call_stdin_event_handler_again_p): Declare.
1087 * event-top.c (call_stdin_event_handler_again_p): Define.
1088 (stdin_event_handler): Use it.
1089 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1090 handler again if there is pending input following a
1091 start sequence.
1092
6f9d33d8
PP
10932014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1094
1095 Pushed by Joel Brobecker <brobecker@adacore.com>
1096 * linux-fork.c (checkpoint_command): Print index of new
1097 checkpoint in response message.
1098
88db67ef
YQ
10992014-11-23 Yao Qi <yao@codesourcery.com>
1100
1101 * valprint.c (read_string): Move local variables 'found_nul',
1102 'chunksize' and 'limit' to inner scope. Update comments.
1103
01465b56
DE
11042014-11-22 Doug Evans <xdje42@gmail.com>
1105
1106 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1107 function comment.
1108 (search_symbols): Fix comments and whitespace.
1109
07a1c2c3
DE
11102014-11-22 Doug Evans <xdje42@gmail.com>
1111
1112 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1113
b2a919a8
DE
11142014-11-21 Doug Evans <dje@google.com>
1115
1116 * psymtab.c (psymtab_search_name): Fix whitespace.
1117
278289d5
YQ
11182014-11-21 Yao Qi <yao@codesourcery.com>
1119
1120 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1121 errno.
1122 * gnulib/import/Makefile.am: Re-generated.
1123 * gnulib/import/Makefile.in: Likewise.
1124 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1125
e01e2baa
YQ
11262014-11-21 Yao Qi <yao@codesourcery.com>
1127
1128 * gdb_wchar.h: Include wchar.h and wctype.h.
1129 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1130 include wchar.h and wctype.h.
1131 Don't check HAVE_WCHAR_H.
1132
f0c00af8
YQ
11332014-11-21 Yao Qi <yao@codesourcery.com>
1134
1135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1136 and wctype-h.
1137 * gnulib/import/Makefile.am: Re-generated.
1138 * gnulib/import/Makefile.in: Likewise.
1139 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1140
0cae13bb
YQ
11412014-11-21 Yao Qi <yao@codesourcery.com>
1142
1143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1144 memchr.
1145 * gnulib/import/Makefile.am: Re-generated.
1146 * gnulib/import/Makefile.in: Likewise.
1147 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1148
9c232dda
YQ
11492014-11-21 Yao Qi <yao@codesourcery.com>
1150
1151 * common/common-defs.h: Include alloca.h
1152 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1153 * configure: Re-generated.
1154 * defs.h: Remove code handling alloca.
1155 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1156 or not.
1157
00d7f58f
YQ
11582014-11-21 Yao Qi <yao@codesourcery.com>
1159
1160 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1161 alloca.
1162 * gnulib/import/Makefile.am: Re-generated.
1163 * gnulib/import/Makefile.in: Likewise..
1164 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1165
6068ad5d
YQ
11662014-11-21 Yao Qi <yao@codesourcery.com>
1167
1168 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1169 alphabetical order.
1170
45e44d27
JB
11712014-11-21 Joel Brobecker <brobecker@adacore.com>
1172
1173 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1174 flag_unsigned if HIGH_BOUND is constant and negative.
1175
7e7cbeb3
SDJ
11762014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1177
1178 PR breakpoints/10737
1179 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1180 modifier from "struct gdbarch" when compiling without Expat (XML)
1181 support.
1182 (get_syscall_by_number): Likewise.
1183 (get_syscall_by_name): Likewise.
1184 (get_syscall_names): Likewise.
1185
458c8db8
SDJ
11862014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1187
1188 PR breakpoints/10737
1189 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1190 set_xml_syscall_file_name to provide gdbarch.
1191 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1192 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1193 * breakpoint.c (print_it_catch_syscall): Adjust call to
1194 get_syscall_by_number to provide gdbarch.
1195 (print_one_catch_syscall): Likewise.
1196 (print_mention_catch_syscall): Likewise.
1197 (print_recreate_catch_syscall): Likewise.
1198 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1199 and get_syscall_by_name to provide gdbarch.
1200 (catch_syscall_completer): Adjust call to get_syscall_names to
1201 provide gdbarch.
1202 * gdbarch.c: Regenerate.
1203 * gdbarch.h: Likewise.
1204 * gdbarch.sh: Forward declare "struct syscalls_info".
1205 (xml_syscall_file): New variable.
1206 (syscalls_info): Likewise.
1207 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1208 set_xml_syscall_file_name to provide gdbarch.
1209 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1210 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1211 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1212 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1213 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1214 * xml-syscall.c: Include gdbarch.h.
1215 (set_xml_syscall_file_name): Accept gdbarch parameter.
1216 (get_syscall_by_number): Likewise.
1217 (get_syscall_by_name): Likewise.
1218 (get_syscall_names): Likewise.
1219 (my_gdb_datadir): Delete global variable.
1220 (struct syscalls_info) <my_gdb_datadir>: New variable.
1221 (struct syscalls_info) <sysinfo>: Rename variable to
1222 "syscalls_info".
1223 (sysinfo): Delete global variable.
1224 (have_initialized_sysinfo): Likewise.
1225 (xml_syscall_file): Likewise.
1226 (sysinfo_free_syscalls_desc): Rename to...
1227 (syscalls_info_free_syscalls_desc): ... this.
1228 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1229 code to the new layout of "struct syscalls_info".
1230 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1231 "syscalls_info".
1232 (syscall_create_syscall_desc): Likewise.
1233 (syscall_start_syscall): Likewise.
1234 (syscall_parse_xml): Likewise.
1235 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1236 (init_sysinfo): Rename to...
1237 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1238 Adjust function to deal with gdbarch.
1239 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1240 gdbarch as a parameter. Adjust code.
1241 (xml_get_syscall_name): Likewise.
1242 (xml_list_of_syscalls): Likewise.
1243 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1244 (get_syscall_by_number): Likewise.
1245 (get_syscall_by_name): Likewise.
1246 (get_syscall_names): Likewise.
1247 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1248 (get_syscall_by_number): Likewise.
1249 (get_syscall_by_name): Likewise.
1250 (get_syscall_names): Likewise.
1251
43f3e411
DE
12522014-11-20 Doug Evans <xdje42@gmail.com>
1253
1254 Split struct symtab into two: struct symtab and compunit_symtab.
1255 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1256 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1257 to "struct compunit_symtab *". All callers updated.
1258 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1259 "struct symtab *" argument to "struct compunit_symtab *".
1260 All callers updated.
1261 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1262 result to "struct compunit_symtab *". All callers updated.
1263 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1264 Change result to "struct compunit_symtab *". All callers updated.
1265 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1266 hange type to "struct compunit_symtab *". All uses updated.
1267 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1268 Change type to "struct compunit_symtab *". All uses updated.
1269 * buildsym.c (struct buildsym_compunit): New struct.
1270 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1271 (buildsym_compunit): New static global.
1272 (finish_block_internal): Update to fetch objfile from
1273 buildsym_compunit.
1274 (make_blockvector): Delete objfile argument.
1275 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1276 debugformat, producer.
1277 (start_buildsym_compunit): New function.
1278 (free_buildsym_compunit): Renamed from free_subfiles_list.
1279 All callers updated.
1280 (patch_subfile_names): Rewrite to use buildsym_compunit.
1281 (get_compunit_symtab): New function.
1282 (get_macro_table): Delete argument comp_dir. All callers updated.
1283 (start_symtab): Change result to "struct compunit_symtab *".
1284 All callers updated. Create the subfile of the main source file.
1285 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1286 (reset_symtab_globals): Update.
1287 (end_symtab_get_static_block): Update to use buildsym_compunit.
1288 (end_symtab_without_blockvector): Rewrite.
1289 (end_symtab_with_blockvector): Change result to
1290 "struct compunit_symtab *". All callers updated.
1291 Update to use buildsym_compunit. Don't set symtab->dirname,
1292 instead set it in the compunit.
1293 Explicitly make sure main symtab is first in its list.
1294 Set debugformat, producer, blockvector, block_line_section, and
1295 macrotable in the compunit.
1296 (end_symtab_from_static_block): Change result to
1297 "struct compunit_symtab *". All callers updated.
1298 (end_symtab, end_expandable_symtab): Ditto.
1299 (set_missing_symtab): Change symtab argument to
1300 "struct compunit_symtab *". All callers updated.
1301 (augment_type_symtab): Ditto.
1302 (record_debugformat): Update to use buildsym_compunit.
1303 (record_producer): Update to use buildsym_compunit.
1304 * buildsym.h (struct subfile) <dirname>: Delete.
1305 <producer, debugformat>: Delete.
1306 <buildsym_compunit>: New member.
1307 (get_compunit_symtab): Declare.
1308 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1309 from primary_symtab. Change type to "struct compunit_symtab *".
1310 All uses updated.
1311 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1312 All callers updated.
1313 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1314 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1315 symtab. Change type to "struct compunit_symtab *". All uses updated.
1316 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1317 All callers updated.
1318 (dw2_find_last_source_symtab): Ditto.
1319 (dw2_lookup_symbol): Ditto.
1320 (recursively_find_pc_sect_compunit_symtab): Renamed from
1321 recursively_find_pc_sect_symtab. Change result to
1322 "struct compunit_symtab *". All callers updated.
1323 (dw2_find_pc_sect_compunit_symtab): Renamed from
1324 dw2_find_pc_sect_symtab. Change result to
1325 "struct compunit_symtab *". All callers updated.
1326 (get_compunit_symtab): Renamed from get_symtab. Change result to
1327 "struct compunit_symtab *". All callers updated.
1328 (recursively_compute_inclusions): Change type of immediate_parent
1329 argument to "struct compunit_symtab *". All callers updated.
1330 (compute_compunit_symtab_includes): Renamed from
1331 compute_symtab_includes. All callers updated. Rewrite to compute
1332 includes of compunit_symtabs and not symtabs.
1333 (process_full_comp_unit): Update to work with struct compunit_symtab.
1334 (process_full_type_unit): Ditto.
1335 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1336 (dwarf_decode_lines): Remove special case handling of main subfile.
1337 (macro_start_file): Delete argument comp_dir. All callers updated.
1338 (dwarf_decode_macro_bytes): Ditto.
1339 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1340 use struct compunit_symtab.
1341 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1342 * jit.c (finalize_symtab): Build compunit_symtab.
1343 * jv-lang.c (get_java_class_symtab): Change result to
1344 "struct compunit_symtab *". All callers updated.
1345 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1346 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1347 comp_dir. Change type to "struct compunit_symtab *".
1348 All uses updated.
1349 (new_macro_table): Change comp_dir argument to cust,
1350 "struct compunit_symtab *". All callers updated.
1351 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1352 nr_primary_symtabs. All uses updated.
1353 (count_symtabs_and_blocks): Update to handle compunits.
1354 (report_command_stats): Update output, "primary symtabs" renamed to
1355 "compunits".
1356 * mdebugread.c (new_symtab): Change result to
1357 "struct compunit_symtab *". All callers updated.
1358 (parse_procedure): Change type of search_symtab argument to
1359 "struct compunit_symtab *". All callers updated.
1360 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1361 separate loop.
1362 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1363 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1364 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1365 All uses updated.
1366 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1367 All uses updated.
1368 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1369 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1370 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1371 symtab. Change type to "struct compunit_symtab *". All uses updated.
1372 * psymtab.c (psymtab_to_symtab): Change result type to
1373 "struct compunit_symtab *". All callers updated.
1374 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1375 find_pc_sect_symtab_from_partial. Change result type to
1376 "struct compunit_symtab *". All callers updated.
1377 (lookup_symbol_aux_psymtabs): Change result type to
1378 "struct compunit_symtab *". All callers updated.
1379 (find_last_source_symtab_from_partial): Ditto.
1380 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1381 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1382 and macro_table from compunit.
1383 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1384 type to "struct compunit_symtab *". All callers updated.
1385 (debug_qf_lookup_symbol): Ditto.
1386 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1387 debug_qf_find_pc_sect_symtab, change result type to
1388 "struct compunit_symtab *". All callers updated.
1389 * symfile.c (allocate_symtab): Delete objfile argument.
1390 New argument cust.
1391 (allocate_compunit_symtab): New function.
1392 (add_compunit_symtab_to_objfile): New function.
1393 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1394 Change result type to "struct compunit_symtab *". All uses updated.
1395 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1396 Change result type to "struct compunit_symtab *". All uses updated.
1397 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1398 separate loop.
1399 (dump_symtab_1): Update test for primary source symtab.
1400 (maintenance_info_symtabs): Update to handle compunit symtabs.
1401 (maintenance_check_symtabs): Ditto.
1402 * symtab.c (set_primary_symtab): Delete.
1403 (compunit_primary_filetab): New function.
1404 (compunit_language): New function.
1405 (iterate_over_some_symtabs): Change type of arguments "first",
1406 "after_last" to "struct compunit_symtab *". All callers updated.
1407 Update to loop over symtabs in each compunit.
1408 (error_in_psymtab_expansion): Rename symtab argument to cust,
1409 and change type to "struct compunit_symtab *". All callers updated.
1410 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1411 Change result type to "struct compunit_symtab *". All callers updated.
1412 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1413 Change result type to "struct compunit_symtab *". All callers updated.
1414 (find_pc_sect_line): Only loop over symtabs within selected compunit
1415 instead of all symtabs in the objfile.
1416 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1417 <compunit_symtab> New member.
1418 <block_line_section>: Moved to compunit_symtab.
1419 <locations_valid>: Ditto.
1420 <epilogue_unwind_valid>: Ditto.
1421 <macro_table>: Ditto.
1422 <dirname>: Ditto.
1423 <debugformat>: Ditto.
1424 <producer>: Ditto.
1425 <objfile>: Ditto.
1426 <call_site_htab>: Ditto.
1427 <includes>: Ditto.
1428 <user>: Ditto.
1429 <primary>: Delete
1430 (SYMTAB_COMPUNIT): New macro.
1431 (SYMTAB_BLOCKVECTOR): Update definition.
1432 (SYMTAB_OBJFILE): Update definition.
1433 (SYMTAB_DIRNAME): Update definition.
1434 (struct compunit_symtab): New type. Common members among all source
1435 symtabs within a compilation unit moved here. All uses updated.
1436 (COMPUNIT_OBJFILE): New macro.
1437 (COMPUNIT_FILETABS): New macro.
1438 (COMPUNIT_DEBUGFORMAT): New macro.
1439 (COMPUNIT_PRODUCER): New macro.
1440 (COMPUNIT_DIRNAME): New macro.
1441 (COMPUNIT_BLOCKVECTOR): New macro.
1442 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1443 (COMPUNIT_LOCATIONS_VALID): New macro.
1444 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1445 (COMPUNIT_CALL_SITE_HTAB): New macro.
1446 (COMPUNIT_MACRO_TABLE): New macro.
1447 (ALL_COMPUNIT_FILETABS): New macro.
1448 (compunit_symtab_ptr): New typedef.
1449 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1450
005e2509
JB
14512014-11-20 Joel Brobecker <brobecker@adacore.com>
1452
1453 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1454 if the TYPE_CODE of range_type's base type does not match
1455 the TYPE_CODE of encoding_type's base type.
1456
2b0f535a
JB
14572014-11-19 Joel Brobecker <brobecker@adacore.com>
1458
1459 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1460 it starts with '<'.
1461
8908fca5
JB
14622014-11-19 Joel Brobecker <brobecker@adacore.com>
1463
1464 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1465 (ada_is_redundant_index_type_desc): New function.
1466 (to_fixed_array_type): Ignore parallel XA type if redundant.
1467
4a46959e
JB
14682014-11-19 Joel Brobecker <brobecker@adacore.com>
1469
1470 * ada-lang.c (constrained_packed_array_type): Set the length
1471 of the return array as if both bounds where zero if that
1472 returned array's index type is dynamic.
1473
2acf986b
YQ
14742014-11-19 Yao Qi <yao@codesourcery.com>
1475
1476 * config/i386/go32.mh (CC): Remove.
1477
439247b6
DE
14782014-11-18 Doug Evans <xdje42@gmail.com>
1479
1480 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1481 updated.
1482
4d663531
DE
14832014-11-18 Doug Evans <xdje42@gmail.com>
1484
1485 * buildsym.c (buildsym_objfile): New static global.
1486 (buildsym_comp_dir): New static global.
1487 (finish_block_internal): Delete arg objfile. All callers updated.
1488 (finish_block): Delete arg objfile. All callers updated.
1489 (start_subfile): Delete arg dirname. All callers updated.
1490 (patch_subfile_names): Update buildsym_comp_dir.
1491 (get_macro_table): Delete arg objfile. All callers updated.
1492 (start_symtab): New arg objfile. All callers updated.
1493 Rename arg dirname to comp_dir.
1494 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1495 (end_symtab_get_static_block): Delete arg objfile. All callers
1496 updated.
1497 (end_symtab_without_blockvector): Ditto.
1498 (end_symtab_with_blockvector): Ditto.
1499 (end_symtab_from_static_block): Ditto.
1500 (end_symtab): Ditto.
1501 (end_expandable_symtab): Ditto.
1502 (augment_type_symtab): Ditto.
1503 * coffread.c (coff_start_symtab): New arg objfile. All callers
1504 updated.
1505
8435453b
DE
15062014-11-18 Doug Evans <xdje42@gmail.com>
1507
1508 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1509 updated.
1510
ee6f8984
DE
15112014-11-18 Doug Evans <xdje42@gmail.com>
1512
1513 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1514 symtab.dirname updated to use it.
1515
eb822aa6
DE
15162014-11-18 Doug Evans <xdje42@gmail.com>
1517
1518 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1519 symtab.objfile updated to use it.
1520
98387a29
DE
15212014-11-18 Doug Evans <xdje42@gmail.com>
1522
1523 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1524
aff08958
DE
15252014-11-18 Doug Evans <xdje42@gmail.com>
1526
1527 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1528 SYMBOL_OBJFILE.
1529 * findvar.c (default_read_var_value): Ditto.
1530 * jv-lang.c (add_class_symtab_symbol): Ditto.
1531 * parse.c (operator_check_standard): Ditto.
1532 * printcmd.c (address_info): Ditto.
1533 * symtab.c (fixup_symbol_section): Ditto.
1534 (skip_prologue_sal): Ditto.
1535 * tracepoint.c (scope_info): Ditto.
1536 * valops.c (find_function_in_inferior): Ditto.
1537 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1538 * python/py-symbol.c (set_symbol): Ditto.
1539
7bab9b58
DE
15402014-11-18 Doug Evans <xdje42@gmail.com>
1541
1542 * buildsym.c (main_subfile): New static global.
1543 (free_subfiles_list): New function.
1544 (start_symtab): Set main_subfile.
1545 (restart_symtab): Replace init of subfiles, current_subfile with
1546 call to free_subfiles_list.
1547 (watch_main_source_file_lossage): Use main_subfile.
1548 (reset_symtab_globals): Replace init of current_subfile with call
1549 to free_subfiles_list.
1550 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1551 functions, split out from ...
1552 (end_symtab_from_static_block): ... here. Rewrite to call them.
1553
f194fefb
DE
15542014-11-18 Doug Evans <xdje42@gmail.com>
1555
1556 The result of symtab expansion is always a primary symtab.
1557 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1558 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1559 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1560 (psymtab_to_symtab): Add comment and assert.
1561 (map_matching_symbols_psymtab): Remove unnecessary test for
1562 non-primary symtab.
1563
34248c3a
DE
15642014-11-15 Doug Evans <xdje42@gmail.com>
1565
1566 PR symtab/17559
1567 * symtab.c (find_pc_line_symtab): New function.
1568 * symtab.h (find_pc_line_symtab): Declare.
1569 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1570 find_pc_symtab.
1571 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1572 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1573 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1574 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1575 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1576 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1577
2097ae25
DE
15782014-11-15 Doug Evans <xdje42@gmail.com>
1579
1580 * symtab.c (expand_symtab_containing_pc): Renamed from
1581 find_pc_sect_symtab_via_partial. All callers updated.
1582
1ada499f
YQ
15832014-11-15 Yao Qi <yao@codesourcery.com>
1584
1585 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1586
355e2102
JB
15872014-11-14 Joel Brobecker <brobecker@adacore.com>
1588
1589 * common/common-defs.h: Move <stdarg.h> #include ahead of
1590 <stdio.h> #include.
1591
83030110
PA
15922014-11-14 Pedro Alves <palves@redhat.com>
1593
1594 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1595 [!PHONY_ICONV] (gdb_iconv): New function.
1596 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1597
a8719064
DE
15982014-11-13 Doug Evans <dje@google.com>
1599
1600 PR symtab/17591
1601 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1602 "(anonymous namespace)".
1603
60f7655a
DE
16042014-11-13 Doug Evans <dje@google.com>
1605
1606 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1607 infinite loop.
1608
5784b3ca
JK
16092014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1610
1611 * NEWS (maint set target-async): Fix typo.
1612
6218dc4b
PA
16132014-11-12 Pedro Alves <palves@redhat.com>
1614
1615 * infrun.c (enum infwait_states, infwait_state): Delete.
1616
af48d08f
PA
16172014-11-12 Pedro Alves <palves@redhat.com>
1618
1619 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1620 Rewrite stepping over a permanent breakpoint.
1621 (thread_still_needs_step_over, proceed): Don't set
1622 stepping_over_breakpoint for permanent breakpoints.
1623 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1624 single-step breakpoints out of the target on hardware step
1625 targets.
1626 (process_event_stop_test): If stepping a permanent breakpoint
1627 doesn't hit the step-resume breakpoint, delete the step-resume
1628 breakpoint.
1629 (switch_back_to_stepped_thread): Also check if the stepped thread
1630 has advanced already on hardware step targets.
1631 (currently_stepping): Return true if the thread stepped a
1632 breakpoint.
1633
1a853c52
PA
16342014-11-12 Pedro Alves <palves@redhat.com>
1635
1636 Mark locations as permanent, not the whole breakpoint.
1637 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1638 (mark_breakpoints_out): Don't mark permanent breakpoints as
1639 uninserted.
1640 (breakpoint_init_inferior): Use mark_breakpoints_out.
1641 (breakpoint_here_p): Adjust.
1642 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1643 of permanent breakpoints.
1644 (make_breakpoint_permanent): Mark each location as permanent,
1645 instead of marking the breakpoint.
1646 (add_location_to_breakpoint): If the location is permanent, mark
1647 it as such, and as inserted.
1648 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1649 (bp_location_compare, update_global_location_list): Adjust.
1650 (update_breakpoint_locations): Don't make the breakpoint permanent
1651 here.
1652 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1653 breakpoints.
1654 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1655 (struct bp_location) <permanent>: New field.
1656 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1657 reference to bp_permanent.
1658
ae9bb220
PA
16592014-11-12 Pedro Alves <palves@redhat.com>
1660
1661 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1662 * arch-utils.h (default_skip_permanent_breakpoint): New
1663 declaration.
1664 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1665 Install default_skip_permanent_breakpoint as default method.
1666 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1667 (i386_gdbarch_init): Don't install it.
1668 * infrun.c (resume): Assume there's always a
1669 gdbarch_skip_permanent_breakpoint implementation.
1670 * gdbarch.h, gdbarch.c: Regenerate.
1671
015de688
DC
16722014-11-11 Daniel Colascione <dancol@dancol.org>
1673
1674 Warn about cross-PID-namespace debugging.
1675 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1676 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1677 * linux-thread-db.c (check_pid_namespace_match): New function.
1678 (thread_db_inferior_created): Call it.
1679
26a84859
DE
16802014-11-10 Doug Evans <xdje42@gmail.com>
1681
1682 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1683 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1684
712a2e6d
DE
16852014-11-10 Doug Evans <xdje42@gmail.com>
1686
1687 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1688
af3768e9
DE
16892014-11-10 Doug Evans <xdje42@gmail.com>
1690
1691 PR symtab/17564
1692 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1693 (lookup_static_symbol): Move definition to new location and rewrite.
1694 (lookup_symbol_in_objfile): New function.
1695 (lookup_symbol_global_iterator_cb): Call it.
1696
b1f28d99
UW
16972014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1698
1699 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1700
b7a084be
PA
17012014-11-07 Pedro Alves <palves@redhat.com>
1702
1703 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1704 check if we did a "nexti" inside a prologue.
1705 * symtab.c (in_prologue): Delete function.
1706 * symtab.h (in_prologue): Delete declaration.
1707
67be31e5
DE
17082014-11-06 Doug Evans <xdje42@gmail.com>
1709
1710 * symtab.h (lookup_global_symbol): Improve function comment.
1711
08724ab7
DE
17122014-11-06 Doug Evans <xdje42@gmail.com>
1713
1714 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1715 All callers updated.
1716 * symtab.h (lookup_global_symbol): Update decl.
1717 (lookup_static_symbol): Move decl to better location.
1718
d9060ba6
DE
17192014-11-06 Doug Evans <xdje42@gmail.com>
1720
1721 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1722
74016e12
DE
17232014-11-06 Doug Evans <xdje42@gmail.com>
1724
1725 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1726 All callers updated.
1727 (lookup_symbol_in_all_objfiles): Renamed from
1728 lookup_symbol_aux_symtabs. All callers updated.
1729 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1730 All callers updated.
1731 (lookup_symbol_in_objfile_symtabs): Renamed from
1732 lookup_symbol_aux_objfile. All callers updated.
1733
d1a2d36d
DE
17342014-11-06 Doug Evans <xdje42@gmail.com>
1735
1736 * symtab.c (lookup_symbol_in_block): Renamed from
1737 lookup_symbol_aux_block. All callers updated.
1738
24d864bb
DE
17392014-11-06 Doug Evans <xdje42@gmail.com>
1740
1741 * symtab.c (lookup_static_symbol): Renamed from
1742 lookup_static_symbol_aux. All callers updated.
1743 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1744 All callers updated.
1745
358d6ab3
DE
17462014-11-06 Doug Evans <xdje42@gmail.com>
1747
1748 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1749 * block.c (block_lookup_symbol): Use it.
1750 * cp-support.c (make_symbol_overload_list_block): Use it.
1751 * symtab.c (iterate_over_symbols): Use it.
1752
16b2eaa1
DE
17532014-11-06 Doug Evans <xdje42@gmail.com>
1754
1755 * symtab.c (lookup_block_symbol): Moved to ...
1756 * block.c (block_lookup_symbol): ... here and renamed.
1757 All callers updated.
1758 * block.h (block_lookup_symbol): Declare.
1759 * symtab.h (lookup_block_symbol): Delete.
1760
2dd2cd1c
DE
17612014-11-06 Doug Evans <xdje42@gmail.com>
1762
1763 * ada-lang.c (ada_make_symbol_completion_list): Use
1764 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1765 * symtab.c (lookup_objfile_from_block): Ditto.
1766
d4c58915
DE
17672014-11-06 Doug Evans <xdje42@gmail.com>
1768
1769 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1770 TYPE_CODE_STRUCT.
1771
9c1877ea
DE
17722014-11-06 Doug Evans <xdje42@gmail.com>
1773
1774 * objfiles.c (get_objfile_arch): Constify.
1775 * objfiles.h (get_objfile_arch): Update prototype.
1776 * solib.c (solib_global_lookup): Fetch arch from objfile,
1777 not target_gdbarch.
1778
426a4079
SL
17792014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1780
1781 * nios2-tdep.c (wild_insn): Delete.
1782 (profiler_insn, irqentry_insn): Delete.
1783 (nios2_match_sequence): Delete.
1784 (nios2_analyze_prologue): Update comments. Remove matching
1785 of obsolete profiler_insn and irqentry_insn sequences.
1786
ee11262d
AM
17872014-11-05 Alan Modra <amodra@gmail.com>
1788
1789 * charset.c (convert_between_encodings): Shrink obstack using
1790 obstack_blank_fast.
1791 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1792 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1793 to char* before doing pointer arithmetic.
ee11262d 1794
c87e6d00
SM
17952014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1796
1797 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1798
441ef17f
PA
17992014-11-04 Pedro Alves <palves@redhat.com>
1800
1801 * breakpoint.c (breakpoint_thread_match): Delete function.
1802 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1803
e0f52461
SC
18042014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1805
1806 PR c++/17494
1807 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1808 the method args also under EVAL_SKIP when evaluating method
1809 calls under EVAL_SKIP.
1810
a0b4d890
YQ
18112014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1812
1813 * dwarf2loc.c (read_pieced_value): Do big endian
1814 processing only if gdb_regnum is not -1.
1815 (write_pieced_value): Ditto.
1816
18172014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1818
1819 * arm-linux-tdep.c (arm_linux_init_abi): Use
1820 info.byte_order_for_code to choose endianity of breakpoint
1821 instructions snippets.
1822
18232014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1824
1825 * arm-tdep.c (extract_arm_insn): Use
1826 gdbarch_byte_order_for_code to read arm instruction.
1827
e82149ff
DE
18282014-11-02 Doug Evans <xdje42@gmail.com>
1829
1830 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1831
d7ee84f1
DE
18322014-11-02 Doug Evans <xdje42@gmail.com>
1833
1834 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1835 main_subfile before returning.
1836
4f072d17
DE
18372014-10-31 Doug Evans <xdje42@gmail.com>
1838
1839 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1840 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1841
8301c89e
DE
18422014-10-31 Doug Evans <xdje42@gmail.com>
1843
1844 * valops.c (value_cast_pointers): Fix whitespace.
1845 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1846 Ditto.
1847
02be9a71
DE
18482014-10-30 Doug Evans <dje@google.com>
1849
1850 * NEWS: Mention ability add attributes to gdb.Objfile and
1851 gdb.Progspace objects.
1852 * python/py-objfile.c (objfile_object): New member dict.
1853 (objfpy_dealloc): Py_XDECREF dict.
1854 (objfpy_initialize): Initialize dict.
1855 (objfile_getset): Add __dict__.
1856 (objfile_object_type): Set tp_dictoffset member.
1857 * python/py-progspace.c (progspace_object): New member dict.
1858 (pspy_dealloc): Py_XDECREF dict.
1859 (pspy_initialize): Initialize dict.
1860 (pspace_getset): Add __dict__.
1861 (pspace_object_type): Set tp_dictoffset member.
1862
6427bef6
YQ
18632014-10-30 Yao Qi <yao@codesourcery.com>
1864
1865 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1866 replace '\\' with '\\\\'.
1867
f60325be
JB
18682014-10-29 Joel Brobecker <brobecker@adacore.com>
1869
1870 GDB 7.8.1 released.
1871
ab917dfb
PA
18722014-10-29 Pedro Alves <palves@redhat.com>
1873
1874 PR gdb/17408
1875 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1876 instead of assuming a thread with a stepping range is always
1877 stepping.
1878
d3d4baed
PA
18792014-10-29 Pedro Alves <palves@redhat.com>
1880
1881 PR python/17372
1882 * event-top.c (change_line_handler): Call
1883 gdb_rl_callback_handler_remove instead of
1884 rl_callback_handler_remove.
1885 (callback_handler_installed): New global.
1886 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1887 (gdb_rl_callback_handler_reinstall): New functions.
1888 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1889 gdb_rl_callback_handler_install instead of
1890 rl_callback_handler_remove and rl_callback_handler_install.
1891 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1892 instead of rl_callback_handler_remove.
1893 * event-top.h (gdb_rl_callback_handler_remove)
1894 (gdb_rl_callback_handler_install)
1895 (gdb_rl_callback_handler_reinstall): New declarations.
1896 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1897 cleanup function.
1898 (fetch_inferior_event): Install it.
1899 * top.c (gdb_readline_wrapper_line) Call
1900 gdb_rl_callback_handler_remove instead of
1901 rl_callback_handler_remove.
1902 (gdb_readline_wrapper_cleanup): Don't call
1903 rl_callback_handler_install.
1904
6e5d7f39
PA
19052014-10-29 Pedro Alves <palves@redhat.com>
1906
1907 * event-top.c (command_line_handler): Clear the first byte of
1908 linebuffer, when it is first allocated.
1909
551cb6a5
PA
19102014-10-29 Pedro Alves <palves@redhat.com>
1911
1912 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1913 TRY_CATCH.
1914
1e1e619b
PA
19152014-10-29 Pedro Alves <palves@redhat.com>
1916
1917 PR tui/16138
1918 PR tui/17519
1919 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1920 (tui_allowed_p): Delete function.
1921 * tui/tui.c: Include "interps.h".
1922 (tui_enable): Don't use tui_allowed_p. Error out here with
1923 detailed error messages if the TUI is the top level interpreter,
1924 or if output is not a terminal. Use newterm instead of initscr,
1925 and error out if initializing the terminal fails. Also error out if
1926 the terminal doesn't support cursor addressing.
1927 * tui/tui.h (tui_allowed_p): Delete declaration.
1928
6041179a
JB
19292014-10-29 Joel Brobecker <brobecker@adacore.com>
1930
1931 * arm-tdep.c (arm_skip_stack_protector): Return early if
1932 address loaded by first "ldr" instruction does not have
1933 a corresponding minimal symbol. Update comment.
1934
6ae274b7
YQ
19352014-10-29 Yao Qi <yao@codesourcery.com>
1936
1937 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1938 loaded address correctly of ldr instruction.
1939
7f5ef605
PA
19402014-10-28 Pedro Alves <palves@redhat.com>
1941
1942 PR gdb/12623
1943 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1944 field.
1945 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1946 thread's stepped_breakpoint field. Skip if reverse debugging.
1947 Add comment.
1948 (init_thread_stepping_state, handle_signal_stop): Clear the
1949 thread's stepped_breakpoint field.
1950
7d1a114c
PA
19512014-10-27 Pedro Alves <palves@redhat.com>
1952
1953 * remote.c (remote_thread_alive): New, factored out from ...
1954 (remote_thread_alive): ... this.
1955 (remote_update_thread_list): Bail out before deleting threads if
1956 the target returned an empty list, and, the current thread has a
1957 magic/fake ptid.
1958
e5f8a7cc
PA
19592014-10-27 Pedro Alves <palves@redhat.com>
1960
1961 * infrun.c (handle_signal_stop): Also skip handlers when a random
1962 signal arrives while handling a "stepi" or a "nexti". Set the
1963 thread's 'step_after_step_resume_breakpoint' flag.
1964
71e396f9
LM
19652014-10-27 Luis Machado <lgustavo@codesourcery.com>
1966
1967 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1968 (arm_record_ld_st_imm_offset): Reimplement to cover all
1969 load/store cases for ARM opcode 010.
1970 (arm_record_ld_st_multiple): Reimplement to cover all
1971 load/store cases for ARM opcode 100.
1972
3aee438b
DE
19732014-10-26 Doug Evans <xdje42@gmail.com>
1974
1975 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1976
f88cb4b6
DE
19772014-10-26 Doug Evans <xdje42@gmail.com>
1978
1979 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1980 parameter "kind" to "block_index".
1981 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1982 "block_index".
1983 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1984
a023a30f
DE
19852014-10-26 Doug Evans <xdje42@gmail.com>
1986
1987 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1988
4c35218e
DE
19892014-10-26 Doug Evans <xdje42@gmail.com>
1990
1991 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1992 obstack_alloc.
1993
f08e8df3
DE
19942014-10-26 Doug Evans <xdje42@gmail.com>
1995
1996 * parser-defs.h (block_found): Move decl from here ...
1997 * symtab.h (block_found): ... to here.
1998
cf901d3b
DE
19992014-10-26 Doug Evans <xdje42@gmail.com>
2000
2001 * symtab.h (struct field_of_this_result): Fix typo in comment.
2002 (lookup_symbol_in_language): Move function comment here.
2003 (lookup_symbol): Improve function comment.
2004 (basic_lookup_symbol_nonlocal): Ditto.
2005 (lookup_symbol_static, lookup_symbol_global): Ditto.
2006 (lookup_symbol_aux_block): Ditto.
2007 (lookup_language_this): Add function comment.
2008 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2009 function comment.
2010 (lookup_block_symbol): Improve function comment.
2011 (lookup_struct): Fix capitalization in function comment.
2012 (lookup_transparent_type): Add function comment.
2013 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2014 Improve function comment.
2015 (lookup_objfile_from_block): Add function comment.
2016 * symtab.c (lookup_symbol_in_language): Update function comment.
2017 (lookup_symbol, lookup_language_this): Ditto.
2018 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2019 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2020 (basic_lookup_symbol_nonlocal): Ditto.
2021 (lookup_symbol_static, lookup_symbol_global): Ditto.
2022 (lookup_transparent_type, lookup_block_symbol): Ditto.
2023
ff6c39cf
DE
20242014-10-25 Doug Evans <xdje42@gmail.com>
2025
2026 * symtab.c (types_info): Delete forward decl.
2027 (functions_info, variables_info, sources_info): Ditto.
2028 (_initialize_symtab): Rewrite forward decl to use
2029 initialize_file_ftype.
2030
ec201f0c
DE
20312014-10-25 Doug Evans <xdje42@gmail.com>
2032
2033 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2034
ca040673
DE
20352014-10-25 Doug Evans <xdje42@gmail.com>
2036
2037 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2038 of local var child_die.
2039
6f259a23
DB
20402014-10-24 Don Breazeal <donb@codesourcery.com>
2041
2042 * infrun.c (follow_fork_inferior): Update fork message printing
2043 to use target_terminal_ours_for_output instead of
2044 target_terminal_ours, to use _() for all format strings, to print
2045 "vfork" instead of "fork" for vforks, and to add a detach message.
2046 (handle_vfork_child_exec_or_exit): Update message printing to use
2047 target_terminal_ours_for_output instead of target_terminal_ours, to
2048 use _() for all format strings, and to fix some formatting.
2049
09dd9a69
PA
20502014-10-24 Pedro Alves <palves@redhat.com>
2051
2052 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2053 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2054 * config/vax/vax.mh: Delete.
2055 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2056 obsolete configurations section.
2057 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2058 * vax-nat.c: Delete file.
2059
5ab806de
PA
20602014-10-24 Pedro Alves <palves@redhat.com>
2061
2062 * NEWS (Removed targets): Add OS/arch column.
2063
3433cfa5
SC
20642014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2065
2066 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2067 on the arg type of a constructor only if it is of reference type.
2068
96ba4233
SL
20692014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2070
2071 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2072 accessors and constants from nios2 opcodes update.
2073 (nios2_get_next_pc): Likewise.
2074
28153fd3
DE
20752014-10-19 Doug Evans <xdje42@gmail.com>
2076
2077 * gdbthread.h (set_running): Fix comment.
2078 (set_executing, finish_thread_state): Fix comment.
2079
fc9b8e47
DE
20802014-10-18 Doug Evans <xdje42@gmail.com>
2081
2082 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2083
4ffbba72
DE
20842014-10-17 Doug Evans <dje@google.com>
2085
2086 * NEWS: Mention new event gdb.clear_objfiles.
2087 * python/py-event.h (emit_clear_objfiles_event): Clear
2088 * python/py-events.h (events_object): New member clear_objfiles.
2089 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2090 event.
2091 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2092 emit clear_objfiles event.
2093 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2094 function.
2095 (emit_clear_objfiles_event): New function.
2096 (clear_objfiles): New event.
2097 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2098 Declare.
2099 * python/python.c (_initialize_python): Call
2100 gdbpy_initialize_clear_objfiles_event.
2101
d096d8c1
DE
21022014-10-17 Doug Evans <dje@google.com>
2103
2104 * NEWS: Mention new gdb.Objfile.progspace attribute.
2105 * python/py-objfile.c (objfpy_get_progspace): New function.
2106 (objfile_getset): New entry for "progspace".
2107
6c4486e6
PA
21082014-10-17 Pedro Alves <palves@redhat.com>
2109
2110 PR gdb/17471
2111 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2112 returns a copy of the input.
2113 (run_command_1, continue_command, step_1, jump_command)
2114 (signal_command, until_command, advance_command, finish_command)
2115 (attach_command): Adjust and install a cleanup to free the
2116 stripped args.
2117
0ff33695
PA
21182014-10-17 Pedro Alves <palves@redhat.com>
2119
2120 PR gdb/17300
2121 * infcmd.c (continue_1): If continuing all threads in the
2122 foreground, make sure the inferior's terminal settings are put in
2123 effect.
2124
6fdebc3d
PA
21252014-10-17 Pedro Alves <palves@redhat.com>
2126
2127 PR gdb/17472
2128 * annotate.c (annotate_breakpoints_invalid): Use
2129 target_terminal_our_for_output instead of target_terminal_ours.
2130 Give back the terminal to the target.
2131 (annotate_frames_invalid): Likewise.
2132
5842f62a
PA
21332014-10-17 Pedro Alves <palves@redhat.com>
2134
2135 * target.c (enum terminal_state): New enum.
2136 (terminal_state): New global.
2137 (target_terminal_init): New function.
2138 (target_terminal_inferior): Skip if inferior already owns the
2139 terminal.
2140 (target_terminal_ours, target_terminal_ours_for_output): New
2141 functions.
2142 * target.h (target_terminal_init): Convert to function prototype.
2143 (target_terminal_ours_for_output): Convert to function prototype
2144 and tweak comment.
2145 (target_terminal_ours): Convert to function prototype and tweak
2146 comment.
2147 * windows-nat.c (do_initial_windows_stuff): Call
2148 target_terminal_init instead of child_terminal_init_with_pgrp.
2149
32a8097b
PA
21502014-10-17 Pedro Alves <palves@redhat.com>
2151
2152 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2153 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2154 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2155 solib-osf.c.
2156 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2157 * ada-lang.h [__alpha__ && __osf__]
2158 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2159 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2160 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2161 GDB_OSABI_OSF1.
2162 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2163 files.
2164 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2165 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2166 * configure: Regenerate.
2167 * configure.ac: Remove references to osf.
2168 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2169 section. Remove all other references to osf.
2170 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2171 Remove all other references to osf.
2172 * dec-thread.c: Delete file.
2173 * defs.h (GDB_OSABI_OSF1): Delete.
2174 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2175 defined.
2176 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2177 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2178 Delete code.
2179 (unconditionally_kill_inferior)
2180 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2181 * solib-osf.c: Delete file.
2182
80134cf5
PA
21832014-10-17 Pedro Alves <palves@redhat.com>
2184
2185 * remote.c (clear_threads_listing_context): Move higher up, out of
2186 the HAVE_LIBEXPAT guard.
2187
89c7137f
TG
21882014-10-16 Tristan Gingold <gingold@adacore.com>
2189
2190 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2191 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2192 on amd64.
2193
44ee4a52
PA
21942014-10-15 Pedro Alves <palves@redhat.com>
2195
2196 * dec-thread.c (dec_thread_count_gdb_threads)
2197 (dec_thread_add_gdb_thread): Delete.
2198 (dec_thread_update_thread_list): Delete.
2199 (dec_thread_find_new_threads): Rename to ...
2200 (dec_thread_update_thread_list): ... this. Delete GDB-size
2201 threads that are no longer found in dec_thread_list.
2202 (resync_thread_list): Delete.
2203 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2204 resync_thread_list.
2205
ab970af1
PA
22062014-10-15 Pedro Alves <palves@redhat.com>
2207
2208 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2209 * remote.c (remote_update_thread_list): Skip calling prune_threads
2210 if any thread listing method is supported, and instead walk over
2211 the set of remote threads listed, deleting those that are not
2212 found in GDB's thread list.
2213
e8032dde
PA
22142014-10-15 Pedro Alves <palves@redhat.com>
2215
2216 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2217 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2218 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2219 (bsd_uthread_target): Adjust.
2220 * corelow.c (core_open): Adjust.
2221 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2222 (dec_thread_update_thread_list): New function.
2223 (init_dec_thread_ops): Adjust.
2224 * gdbthread.h (prune_threads): New declaration.
2225 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2226 (thread_db_update_thread_list): ... this. Call prune_threads.
2227 (init_thread_db_ops): Adjust.
2228 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2229 (procfs_update_thread_list): ... this. Call prune_threads.
2230 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2231 Adjust.
2232 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2233 (obsd_update_thread_list): ... this. Call prune_threads.
2234 (obsd_add_target): Adjust.
2235 * procfs.c (procfs_target): Adjust.
2236 (procfs_notice_thread): Update comment.
2237 (procfs_find_new_threads): Rename to ...
2238 (procfs_update_thread_list): ... this. Call prune_threads.
2239 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2240 comment.
2241 (ravenscar_wait): Adjust.
2242 (ravenscar_find_new_threads): Rename to ...
2243 (ravenscar_update_thread_list): ... this. Call prune_threads.
2244 (init_ravenscar_thread_ops): Adjust.
2245 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2246 (record_btrace_update_thread_list): ... this. Adjust comment.
2247 (init_record_btrace_ops): Adjust.
2248 * remote.c (remote_threads_info): Rename to ...
2249 (remote_update_thread_list): ... this. Call prune_threads.
2250 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2251 Adjust.
2252 * sol-thread.c (check_for_thread_db): Adjust.
2253 (sol_find_new_threads_callback): Rename to ...
2254 (sol_update_thread_list_callback): ... this.
2255 (sol_find_new_threads): Rename to ...
2256 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2257 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2258 * target-delegates.c: Regenerate.
2259 * target.c (target_find_new_threads): Rename to ...
2260 (target_update_thread_list): ... this.
2261 * target.h (struct target_ops): Rename to_find_new_threads field
2262 to to_update_thread_list.
2263 (target_find_new_threads): Rename to ...
2264 (target_update_thread_list): ... this.
2265 * thread.c (prune_threads): Make extern.
2266 (update_thread_list): Adjust.
2267
6dc54d91
PA
22682014-10-15 Pedro Alves <palves@redhat.com>
2269
2270 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2271 Add describing comment. Return -1 if the qL packet is not
2272 supported.
2273 (struct thread_item, thread_item_t): Move higher up in
2274 the file. Add comments.
2275 (struct threads_parsing_context): Move higher up in
2276 the file, add comments, and remote to ...
2277 (struct threads_listing_context): ... this.
2278 (remote_newthread_step): Don't add the thread to GDB's thread
2279 database here. Instead push it to the thread_listing_context
2280 list.
2281 (remote_find_new_threads): Rename to ...
2282 (remote_get_threads_with_ql): ... this. Add target_ops and
2283 targets_listing_context parameters. Pass down context.
2284 (start_thread): Adjust.
2285 (clear_threads_parsing_context): Rename to ...
2286 (clear_threads_listing_context): ... this.
2287 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2288 remote_threads_info.
2289 (remote_get_threads_with_qthreadinfo): Ditto.
2290 (remote_threads_info): Reimplement.
2291
36728e82
PA
22922014-10-15 Pedro Alves <palves@redhat.com>
2293
2294 * infrun.c (resume): Don't force displaced-stepping for all
2295 single-steps on software single-stepping archs.
2296
34b7e8a6
PA
22972014-10-15 Pedro Alves <palves@redhat.com>
2298
2299 * breakpoint.c (single_step_breakpoints): Delete global.
2300 (insert_single_step_breakpoint): Adjust to store the breakpoint
2301 pointer in the current thread.
2302 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2303 (cancel_single_step_breakpoints): Delete functions.
2304 (breakpoint_has_location_inserted_here): Make extern.
2305 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2306 breakpoint list.
2307 * breakpoint.h (breakpoint_has_location_inserted_here): New
2308 declaration.
2309 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2310 (cancel_single_step_breakpoints): Remove declarations.
2311 * gdbthread.h (struct thread_control_state)
2312 <single_step_breakpoints>: New field.
2313 (delete_single_step_breakpoints)
2314 (thread_has_single_step_breakpoints_set)
2315 (thread_has_single_step_breakpoint_here): New declarations.
2316 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2317 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2318 (singlestep_pc): Delete globals.
2319 (infrun_thread_ptid_changed): Remove references to removed
2320 globals.
2321 (resume_cleanups): Delete the current thread's single-step
2322 breakpoints.
2323 (maybe_software_singlestep): Remove references to removed globals.
2324 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2325 delete_single_step_breakpoints.
2326 (init_wait_for_inferior): Remove references to removed globals.
2327 (delete_thread_infrun_breakpoints): Delete the thread's
2328 single-step breakpoints too.
2329 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2330 single-step breakpoints here.
2331 (delete_stopped_threads_single_step_breakpoints): New function.
2332 (adjust_pc_after_break): Adjust to use
2333 thread_has_single_step_breakpoints_set.
2334 (handle_inferior_event): Remove references to removed globals.
2335 Use delete_stopped_threads_single_step_breakpoints.
2336 (handle_signal_stop): Adjust to per-thread single-step
2337 breakpoints. Swap test order to do cheaper tests first.
2338 (switch_back_to_stepped_thread): Extend debug output. Remove
2339 references to removed globals.
2340 * record-full.c (record_full_wait_1): Adjust to per-thread
2341 single-step breakpoints.
2342 * thread.c (delete_single_step_breakpoints)
2343 (thread_has_single_step_breakpoints_set)
2344 (thread_has_single_step_breakpoint_here): New functions.
2345 (clear_thread_inferior_resources): Also delete the thread's
2346 single-step breakpoints.
2347
5b834a0a
PA
23482014-10-15 Pedro Alves <palves@redhat.com>
2349
2350 * thread.c (delete_thread_breakpoint): New function.
2351 (delete_step_resume_breakpoint)
2352 (delete_exception_resume_breakpoint): Use it.
2353 (delete_at_next_stop): New function.
2354 (clear_thread_inferior_resources): Use delete_at_next_stop.
2355
a1fd2fa5
PA
23562014-10-15 Pedro Alves <palves@redhat.com>
2357
2358 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2359 (breakpoint_inserted_here_p): ... here. Remove special case for
2360 software single-step breakpoints.
2361 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2362 (software_breakpoint_inserted_here_p): ... here. Remove special
2363 case for software single-step breakpoints.
2364 (bp_target_info_copy_insertion_state)
2365 (deprecated_insert_raw_breakpoint)
2366 (deprecated_remove_raw_breakpoint): Delete functions.
2367 * breakpoint.h (deprecated_insert_raw_breakpoint)
2368 (deprecated_remove_raw_breakpoint): Remove declarations.
2369
7c16b83e
PA
23702014-10-15 Pedro Alves <palves@redhat.com>
2371
2372 PR breakpoints/9649
2373 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2374 Delete array globals.
2375 (single_step_breakpoints): New global.
2376 (breakpoint_xfer_memory): Remove special handling for single-step
2377 breakpoints.
2378 (update_breakpoints_after_exec): Delete bp_single_step
2379 breakpoints.
2380 (detach_breakpoints): Remove special handling for single-step
2381 breakpoints.
2382 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2383 (bpstat_stop_status): Add comment.
2384 (bpstat_what, bptype_string, print_one_breakpoint_location)
2385 (adjust_breakpoint_address, init_bp_location): Handle
2386 bp_single_step.
2387 (new_single_step_breakpoint): New function.
2388 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2389 handling for single-step breakpoints.
2390 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2391 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2392 Rewrite.
2393 (detach_single_step_breakpoints, find_single_step_breakpoint):
2394 Delete functions.
2395 (breakpoint_has_location_inserted_here): New function.
2396 (single_step_breakpoint_inserted_here_p): Rewrite.
2397 * breakpoint.h: Remove FIXME.
2398 (enum bptype) <bp_single_step>: New enum value.
2399 (insert_single_step_breakpoint): Update comment.
2400 * infrun.c (resume_cleanups)
2401 (delete_step_thread_step_resume_breakpoint): Remove single-step
2402 breakpoints.
2403 (fetch_inferior_event): Install a cleanup that removes infrun
2404 breakpoints.
2405 (switch_back_to_stepped_thread) <expect thread advanced also>:
2406 Clear step-over info.
2407
0cbcdb96
PA
24082014-10-15 Pedro Alves <palves@redhat.com>
2409
2410 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2411 (delete_thread_infrun_breakpoints): New function, with parts
2412 salvaged from delete_step_resume_breakpoint_callback.
2413 (delete_step_thread_step_resume_breakpoint): Delete.
2414 (for_each_just_stopped_thread_callback_func): New typedef.
2415 (for_each_just_stopped_thread): New function.
2416 (delete_just_stopped_threads_infrun_breakpoints): New function.
2417 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2418 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2419 ... this. Adjust.
2420 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2421
963f9c80
PA
24222014-10-15 Pedro Alves <palves@redhat.com>
2423
2424 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2425 trying to step past a non-steppable watchpoint.
2426 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2427 field.
2428 * infrun.c (struct step_over_info): Add new field
2429 'nonsteppable_watchpoint_p' and adjust comments.
2430 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2431 Adjust.
2432 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2433 (stepping_past_nonsteppable_watchpoint): New function.
2434 (step_over_info_valid_p): Also return true if stepping past a
2435 nonsteppable watchpoint.
2436 (proceed): Adjust call to set_step_over_info. Remove reference to
2437 init_infwait_state.
2438 (init_wait_for_inferior): Remove reference to init_infwait_state.
2439 (waiton_ptid): Delete global.
2440 (struct execution_control_state)
2441 <stepped_after_stopped_by_watchpoint>: Delete field.
2442 (wait_for_inferior, fetch_inferior_event): Always pass
2443 minus_one_ptid to target_wait.
2444 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2445 field.
2446 (init_infwait_state): Delete function.
2447 (handle_inferior_event): Remove infwait_state handling.
2448 (handle_signal_stop) <watchpoints handling>: Adjust after
2449 stepped_after_stopped_by_watchpoint removal. Don't remove
2450 breakpoints here nor set infwait_state. Set the thread's
2451 stepping_over_watchpoint flag, and call keep_going instead.
2452 (keep_going): Handle stepping_over_watchpoint. Adjust
2453 set_step_over_info calls.
2454 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2455 function.
2456
6cc83d2a
PA
24572014-10-15 Pedro Alves <palves@redhat.com>
2458
2459 * infrun.c (step_over_info_valid_p): New function.
2460 (resume): Use step_over_info_valid_p instead of checking the
2461 threads's trap_expected flag.
2462
6979730b
DE
24632014-10-15 Doug Evans <dje@google.com>
2464 Walfred Tedeschi <walfred.tedeschi@intel.com>
2465
2466 PR python/17364
2467 * python/lib/gdb/__init__.py (packages): Add "printer".
2468 * python/lib/gdb/command/bound_registers.py: Moved to ...
2469 * python/lib/gdb/printer/bound_registers.py: ... here.
2470 Add printer to global set of builtin printers. Rename printer from
2471 "bound" to "mpx_bound128".
2472 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2473 registered as global "builtin" printer.
2474 (add_builtin_pretty_printer): New function.
2475 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2476 gdb/printer/__init__.py.
2477
35a49624
IB
24782014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2479
2480 * Makefile.in (SFILES): Remove d-support.c.
2481 (COMMON_OBS): Remove d-support.o.
2482 * d-lang.h (d_parse_symbol): Remove declaration.
2483 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2484 * d-support.c: Remove file.
2485
8fa0c4f8
AA
24862014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487
2488 * gdb/infrun.c (process_event_stop_test): Apply
2489 gdbarch_addr_bits_remove to longjmp resume address.
2490
3666da81
PA
24912014-10-15 Pedro Alves <palves@redhat.com>
2492
2493 * regformats/microblaze.dat: Delete file.
2494
449aa9df
AKA
24952014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2496
2497 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2498 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2499
ebb8ece2
SC
25002014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2501
2502 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2503 as non-trivial.
2504
82c48ac7
SC
25052014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2506
2507 PR c++/13403
2508 PR c++/15154
2509 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2510 with qualified args.
2511
c40cc657
JB
25122014-10-14 Joel Brobecker <brobecker@adacore.com>
2513
2514 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2515 of the case where the second operand is a pointer.
2516 <BINOP_SUB>: Likewise.
2517
0ea5cda8
SDJ
25182014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2519
2520 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2521 only if it is not NULL.
2522 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2523 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2524 (struct probe_ops) <clear_semaphore>: Likewise.
2525 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2526 not NULL.
2527 (stop_tracing): Likewise, for clear_semaphore.
2528
f7088df3
SDJ
25292014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2530
2531 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2532 using language_c, instead of current_language.
2533
4e1bbde0
DE
25342014-10-13 Doug Evans <dje@google.com>
2535
6ff5a0f6 2536 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2537 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2538 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2539 (pspy_new, pspace_to_pspace_object): Call it.
2540
c780cc2f
JK
25412014-10-13 Miroslav Franc <mfranc@redhat.com>
2542 Jan Kratochvil <jan.kratochvil@redhat.com>
2543
2544 Fix "save breakpoints" for "catch" command.
2545 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2546 newline.
2547
99894e11
JK
25482014-10-12 Miroslav Franc <mfranc@redhat.com>
2549
2550 Fix "save breakpoints" for "disable $bpnum" command.
2551 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2552
3831839c
PA
25532014-10-10 Pedro Alves <palves@redhat.com>
2554
2555 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2556 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2557 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2558 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2559 and been removed.
2560 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2561 * configure.ac: Remove references to IRIX.
2562 * configure.host: Add *-*-irix* to the obsolete hosts section.
2563 Remove all other references to irix.
2564 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2565 Delete files.
2566
cc3afae2
AKA
25672014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2568
2569 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2570 isn't valid, release the tdesc arch data and return NULL.
2571
cdfa0b0a
PA
25722014-10-10 Pedro Alves <palves@redhat.com>
2573
2574 * linux-tdep.c: Include observer.h.
2575 (linux_inferior_data): New global.
2576 (struct linux_info): New structure.
2577 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2578 (get_linux_inferior_data): New functions.
2579 (linux_vsyscall_range): Rename to ...
2580 (linux_vsyscall_range_raw): ... this.
2581 (linux_vsyscall_range): New function; handles caching.
2582 (_initialize_linux_tdep): Register linux_inferior_data. Install
2583 inferior_exit and inferior_appeared observers.
2584
8b9a549d
PA
25852014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 Pedro Alves <palves@redhat.com>
2587
2588 PR symtab/14466
2589 * solib-svr4.c (svr4_read_so_list): Rename to ...
2590 (svr4_current_sos_1): ... this and change the function comment.
2591 (svr4_current_sos): New function.
2592
3437254d
PA
25932014-10-10 Pedro Alves <palves@redhat.com>
2594
2595 * arch-utils.c (default_vsyscall_range): New function.
2596 * arch-utils.h (default_vsyscall_range): New declaration.
2597 * gdbarch.sh (vsyscall_range): New hook.
2598 * gdbarch.h, gdbarch.c: Regenerate.
2599 * linux-tdep.c (linux_vsyscall_range): New function.
2600 (linux_init_abi): Install linux_vsyscall_range as
2601 vsyscall_range gdbarch hook.
2602 * memrange.c (address_in_mem_range): New function.
2603 * memrange.h (address_in_mem_range): New declaration.
2604 * symfile-mem.c (find_vdso_size): Delete function.
2605 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2606
31cc0b80
PA
26072014-10-10 Pedro Alves <palves@redhat.com>
2608
2609 * infrun.c (normal_stop): Fix typo in comment.
2610
3e3286a2
SDJ
26112014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2612
2613 PR tdep/9390
2614 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2615 typo when using logical AND to determine instruction type.
2616
fcbdedf8
YQ
26172014-10-09 Yao Qi <yao@codesourcery.com>
2618
2619 * infrun.c (handle_signal_stop): Remove local variable
2620 'printed'.
2621
db984616
SS
26222014-10-08 Stan Shebs <stan@codesourcery.com>
2623
2624 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2625
3ba37e6c
GB
26262014-10-08 Gary Benson <gbenson@redhat.com>
2627
2628 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2629
a442d071
GB
26302014-10-08 Gary Benson <gbenson@redhat.com>
2631
2632 * common/common-defs.h: Include common-exceptions.h.
2633 * exceptions.h: Do not include common-exceptions.h.
2634
6f1947e8
GB
26352014-10-08 Gary Benson <gbenson@redhat.com>
2636
2637 * common/common-defs.h: Include cleanups.h.
2638 * common/common-exceptions.c: Do not include cleanups.h.
2639 * utils.h: Likewise.
2640
c765fdb9
GB
26412014-10-08 Gary Benson <gbenson@redhat.com>
2642
2643 * ada-lang.c: Do not include exceptions.h.
2644 * ada-valprint.c: Likewise.
2645 * amd64-tdep.c: Likewise.
2646 * auto-load.c: Likewise.
2647 * block.c: Likewise.
2648 * break-catch-throw.c: Likewise.
2649 * breakpoint.c: Likewise.
2650 * btrace.c: Likewise.
2651 * c-lang.c: Likewise.
2652 * cli/cli-cmds.c: Likewise.
2653 * cli/cli-interp.c: Likewise.
2654 * cli/cli-script.c: Likewise.
2655 * completer.c: Likewise.
2656 * corefile.c: Likewise.
2657 * corelow.c: Likewise.
2658 * cp-abi.c: Likewise.
2659 * cp-support.c: Likewise.
2660 * cp-valprint.c: Likewise.
2661 * darwin-nat.c: Likewise.
2662 * dwarf2-frame-tailcall.c: Likewise.
2663 * dwarf2-frame.c: Likewise.
2664 * dwarf2loc.c: Likewise.
2665 * dwarf2read.c: Likewise.
2666 * eval.c: Likewise.
2667 * event-loop.c: Likewise.
2668 * event-top.c: Likewise.
2669 * f-valprint.c: Likewise.
2670 * frame-unwind.c: Likewise.
2671 * frame.c: Likewise.
2672 * gdbtypes.c: Likewise.
2673 * gnu-v2-abi.c: Likewise.
2674 * gnu-v3-abi.c: Likewise.
2675 * guile/scm-auto-load.c: Likewise.
2676 * guile/scm-breakpoint.c: Likewise.
2677 * guile/scm-cmd.c: Likewise.
2678 * guile/scm-frame.c: Likewise.
2679 * guile/scm-lazy-string.c: Likewise.
2680 * guile/scm-param.c: Likewise.
2681 * guile/scm-symbol.c: Likewise.
2682 * guile/scm-type.c: Likewise.
2683 * hppa-hpux-tdep.c: Likewise.
2684 * i386-tdep.c: Likewise.
2685 * inf-loop.c: Likewise.
2686 * infcall.c: Likewise.
2687 * infcmd.c: Likewise.
2688 * infrun.c: Likewise.
2689 * interps.c: Likewise.
2690 * interps.h: Likewise.
2691 * jit.c: Likewise.
2692 * linespec.c: Likewise.
2693 * linux-nat.c: Likewise.
2694 * linux-thread-db.c: Likewise.
2695 * m32r-rom.c: Likewise.
2696 * main.c: Likewise.
2697 * memory-map.c: Likewise.
2698 * mi/mi-cmd-break.c: Likewise.
2699 * mi/mi-cmd-stack.c: Likewise.
2700 * mi/mi-interp.c: Likewise.
2701 * mi/mi-main.c: Likewise.
2702 * monitor.c: Likewise.
2703 * nto-procfs.c: Likewise.
2704 * objc-lang.c: Likewise.
2705 * p-valprint.c: Likewise.
2706 * parse.c: Likewise.
2707 * ppc-linux-tdep.c: Likewise.
2708 * printcmd.c: Likewise.
2709 * probe.c: Likewise.
2710 * python/py-auto-load.c: Likewise.
2711 * python/py-breakpoint.c: Likewise.
2712 * python/py-cmd.c: Likewise.
2713 * python/py-finishbreakpoint.c: Likewise.
2714 * python/py-frame.c: Likewise.
2715 * python/py-framefilter.c: Likewise.
2716 * python/py-function.c: Likewise.
2717 * python/py-gdb-readline.c: Likewise.
2718 * python/py-inferior.c: Likewise.
2719 * python/py-infthread.c: Likewise.
2720 * python/py-lazy-string.c: Likewise.
2721 * python/py-linetable.c: Likewise.
2722 * python/py-param.c: Likewise.
2723 * python/py-prettyprint.c: Likewise.
2724 * python/py-symbol.c: Likewise.
2725 * python/py-type.c: Likewise.
2726 * python/py-value.c: Likewise.
2727 * python/python-internal.h: Likewise.
2728 * python/python.c: Likewise.
2729 * record-btrace.c: Likewise.
2730 * record-full.c: Likewise.
2731 * regcache.c: Likewise.
2732 * remote-fileio.c: Likewise.
2733 * remote-mips.c: Likewise.
2734 * remote.c: Likewise.
2735 * rs6000-aix-tdep.c: Likewise.
2736 * rs6000-nat.c: Likewise.
2737 * skip.c: Likewise.
2738 * solib-darwin.c: Likewise.
2739 * solib-dsbt.c: Likewise.
2740 * solib-frv.c: Likewise.
2741 * solib-ia64-hpux.c: Likewise.
2742 * solib-spu.c: Likewise.
2743 * solib-svr4.c: Likewise.
2744 * solib.c: Likewise.
2745 * spu-tdep.c: Likewise.
2746 * stack.c: Likewise.
2747 * stap-probe.c: Likewise.
2748 * symfile-mem.c: Likewise.
2749 * symmisc.c: Likewise.
2750 * target.c: Likewise.
2751 * thread.c: Likewise.
2752 * top.c: Likewise.
2753 * tracepoint.c: Likewise.
2754 * tui/tui-interp.c: Likewise.
2755 * typeprint.c: Likewise.
2756 * utils.c: Likewise.
2757 * valarith.c: Likewise.
2758 * valops.c: Likewise.
2759 * valprint.c: Likewise.
2760 * value.c: Likewise.
2761 * varobj.c: Likewise.
2762 * windows-nat.c: Likewise.
2763 * xml-support.c: Likewise.
2764
484933d1
MR
27652014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2766
2767 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2768 name implies.
2769 (extended_mips16_next_pc): Update accordingly.
2770
ab50adb6
MR
27712014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2772
2773 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2774 function.
2775 (micromips_instruction_is_compact_branch): Likewise.
2776 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2777 or a compact jump, reaching a jump delay slot, or seeing a
2778 second non-prologue instruction.
2779 (micromips_scan_prologue): Also terminate scanning upon seeing a
2780 compact branch or jump, or reaching a branch or jump delay slot.
2781 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2782 or jump delay slot, or seeing a second non-prologue instruction.
2783 (mips32_instruction_has_delay_slot): Retain instruction
2784 examination code only, update arguments accordingly and move
2785 instruction fetch pieces to...
2786 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2787 (micromips_instruction_has_delay_slot): Likewise and to...
2788 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2789 (mips16_instruction_has_delay_slot): Likewise and to...
2790 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2791 (mips_single_step_through_delay): Update accordingly.
2792 (mips_adjust_breakpoint_address): Likewise.
2793
ae790652
MR
27942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2795
2796 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2797 !mustbe32 also return 1 for 32-bit instructions.
2798 (mips16_instruction_has_delay_slot): Likewise. Add an
2799 explanatory comment.
2800
9b807e7b
MR
28012014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2802
2803 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2804 symbols special.
2805
0d5ed153
MR
28062014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2807
2808 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2809 update comments.
2810 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2811 for the breakpoint's address. Don't preinitialize `placed_size'.
2812 (insert_bp_location): Set `reqstd_address' rather than
2813 `placed_address'.
2814 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2815 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2816 address.
2817 (bkpt_remove_location): Likewise.
2818 (deprecated_insert_raw_breakpoint): Likewise.
2819 (deprecated_remove_raw_breakpoint): Likewise.
2820 (find_single_step_breakpoint): Likewise.
2821 * mem-break.c (default_memory_insert_breakpoint): Use
2822 `reqstd_address' for the breakpoint's address. Don't set
2823 `placed_address' or `placed_size' if breakpoint contents couldn't
2824 have been determined.
2825 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2826 the breakpoint's address.
2827 (remote_insert_hw_breakpoint): Likewise. Don't set
2828 `placed_address' or `placed_size' if breakpoint couldn't have been
2829 set.
2830 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2831 `reqstd_address' for the breakpoint's address.
2832 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2833 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2834 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2835 * microblaze-linux-tdep.c
2836 (microblaze_linux_memory_remove_breakpoint): Likewise.
2837 * monitor.c (monitor_insert_breakpoint): Likewise.
2838 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2839 (procfs_insert_hw_breakpoint): Likewise.
2840 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2841 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2842 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2843 * remote-mips.c (mips_insert_breakpoint): Likewise.
2844 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2845
3e871532
LM
28462014-10-03 Luis Machado <lgustavo@codesourcery.com>
2847
2848 * valops.c (value_assign): Check for bit field assignments
2849 before calling architecture-specific register value
2850 conversion functions.
2851
ec48dc8b
PM
28522014-10-03 Pierre Muller <muller@sourceware.org>
2853
2854 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2855
b57bacec
PA
28562014-10-02 Pedro Alves <palves@redhat.com>
2857
2858 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2859 threads_are_executing.
2860 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2861 describing comment.
2862 * gdbthread.h (threads_are_executing): Declare.
2863 (handle_signal_stop) <random signals>: Don't print about the
2864 signal here if stopping.
2865 (end_stepping_range): Don't notify observers here.
2866 (normal_stop): Update the thread list. If stopped by a random
2867 signal or a stepping range ended, notify observers.
2868 * thread.c (threads_executing): New global.
2869 (init_thread_list): Clear 'threads_executing'.
2870 (set_executing): Set or clear 'threads_executing'.
2871 (threads_are_executing): New function.
2872 (update_threads_executing): New function.
2873 (update_thread_list): Use it.
2874
13fd3ff3
PA
28752014-10-02 Pedro Alves <palves@redhat.com>
2876
2877 PR breakpoints/17431
2878 * breakpoint.c (update_breakpoints_after_exec): Don't create
2879 overlay, longjmp, std terminate nor exception breakpoints here.
2880
32990ada
PA
28812014-10-02 Pedro Alves <palves@redhat.com>
2882
2883 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2884 Adjust comments.
2885 * inferior.c (find_inferior_for_program_space): Give preference to
2886 the current inferior.
2887 * inferior.h (find_inferior_for_program_space): Update comment.
2888 * progspace.c (switch_to_program_space_and_thread): Prefer the
2889 current inferior if it's bound to the program space requested. If
2890 the inferior found doesn't have a PID yet, don't bother looking up
2891 a thread.
2892 * progspace.h (switch_to_program_space_and_thread): Adjust
2893 comment.
2894 * thread.c (any_thread_of_process, any_live_thread_of_process):
2895 Give preference to the current thread.
2896
0fec99e8
PA
28972014-10-01 Pedro Alves <palves@redhat.com>
2898
2899 * breakpoint.c (insert_bp_location): Error out if inserting a
2900 software breakpoint at a read-only address.
2901 * target.c (memory_xfer_check_region): New function, factored out
2902 from ...
2903 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2904 ULONGEST.
2905 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2906 against the memory region attributes.
2907
2ddf4301
SM
29082014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2909
2910 * NEWS: Announce new exit-code field in -list-thread-groups
2911 output.
2912 * inferior.c (exit_inferior_1): Don't clear exit code.
2913 (inferior_appeared): Clear exit code.
2914 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2915 code.
2916
5fdeec1d
PA
29172014-10-01 Pedro Alves <palves@redhat.com>
2918
2919 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2920 GENERATED" along with emacs/vi read-only markers.
2921 * regformats/aarch64.dat: Regenerate.
2922 * regformats/arm-with-iwmmxt.dat: Regenerate.
2923 * regformats/arm-with-neon.dat: Regenerate.
2924 * regformats/arm-with-vfpv2.dat: Regenerate.
2925 * regformats/arm-with-vfpv3.dat: Regenerate.
2926 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2927 * regformats/i386/amd64-avx.dat: Regenerate.
2928 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2929 * regformats/i386/amd64-avx512.dat: Regenerate.
2930 * regformats/i386/amd64-linux.dat: Regenerate.
2931 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2932 * regformats/i386/amd64-mpx.dat: Regenerate.
2933 * regformats/i386/amd64.dat: Regenerate.
2934 * regformats/i386/i386-avx-linux.dat: Regenerate.
2935 * regformats/i386/i386-avx.dat: Regenerate.
2936 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2937 * regformats/i386/i386-avx512.dat: Regenerate.
2938 * regformats/i386/i386-linux.dat: Regenerate.
2939 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2940 * regformats/i386/i386-mmx.dat: Regenerate.
2941 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2942 * regformats/i386/i386-mpx.dat: Regenerate.
2943 * regformats/i386/i386.dat: Regenerate.
2944 * regformats/i386/x32-avx-linux.dat: Regenerate.
2945 * regformats/i386/x32-avx.dat: Regenerate.
2946 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2947 * regformats/i386/x32-avx512.dat: Regenerate.
2948 * regformats/i386/x32-linux.dat: Regenerate.
2949 * regformats/i386/x32.dat: Regenerate.
2950 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2951 * regformats/mips-dsp-linux.dat: Regenerate.
2952 * regformats/mips-linux.dat: Regenerate.
2953 * regformats/mips64-dsp-linux.dat: Regenerate.
2954 * regformats/mips64-linux.dat: Regenerate.
2955 * regformats/nios2-linux.dat: Regenerate.
2956 * regformats/rs6000/powerpc-32.dat: Regenerate.
2957 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2958 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2959 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2960 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2961 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2962 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2963 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2964 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2965 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2966 * regformats/s390-linux32.dat: Regenerate.
2967 * regformats/s390-linux32v1.dat: Regenerate.
2968 * regformats/s390-linux32v2.dat: Regenerate.
2969 * regformats/s390-linux64.dat: Regenerate.
2970 * regformats/s390-linux64v1.dat: Regenerate.
2971 * regformats/s390-linux64v2.dat: Regenerate.
2972 * regformats/s390-te-linux64.dat: Regenerate.
2973 * regformats/s390x-linux64.dat: Regenerate.
2974 * regformats/s390x-linux64v1.dat: Regenerate.
2975 * regformats/s390x-linux64v2.dat: Regenerate.
2976 * regformats/s390x-te-linux64.dat: Regenerate.
2977 * regformats/tic6x-c62x-linux.dat: Regenerate.
2978 * regformats/tic6x-c62x.dat: Regenerate.
2979 * regformats/tic6x-c64x-linux.dat: Regenerate.
2980 * regformats/tic6x-c64x.dat: Regenerate.
2981 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2982 * regformats/tic6x-c64xp.dat: Regenerate.
2983
db74e4ba
PA
29842014-10-01 Pedro Alves <palves@redhat.com>
2985
2986 * features/Makefile: Update comments.
2987 (XMLTOC): List all xml files we build C files from.
2988 (clean-cfiles): New rule.
2989
d63f2f84
PA
29902014-10-01 Pedro Alves <palves@redhat.com>
2991
2992 * features/i386/amd64-avx512-linux.c: Regenerate.
2993 * features/i386/amd64-avx512.c: Regenerate.
2994 * features/i386/x32-avx512-linux.c: Regenerate.
2995 * features/i386/x32-avx512.c: Regenerate.
2996
20ad026d
PA
29972014-10-01 Pedro Alves <palves@redhat.com>
2998
2999 * features/Makefile (WHICH): Remove arm-with-m,
3000 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3001
acc9fe45
PA
30022014-10-01 Pedro Alves <palves@redhat.com>
3003
3004 * features/Makefile (clean): New rule.
3005
e001e535
PA
30062014-10-01 Pedro Alves <palves@redhat.com>
3007
3008 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3009 (zmm14h): Add missing end quotes.
3010
bdc14417
PA
30112014-10-01 Pedro Alves <palves@redhat.com>
3012
3013 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3014 * features/aarch64.c: Regenerate.
3015
d83ad864
DB
30162014-09-30 Don Breazeal <donb@codesourcery.com>
3017
3018 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3019 code so as to work with follow_fork_inferior.
3020 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3021 (inf_ttrace_create_inferior): Remove reference to
3022 inf_ttrace_vfork_ppid.
3023 (inf_ttrace_attach): Ditto.
3024 (inf_ttrace_detach): Ditto.
3025 (inf_ttrace_kill): Use current_inferior instead of
3026 inf_ttrace_vfork_ppid.
3027 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3028 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3029 inferior away from the parent.
3030 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3031 target_follow_fork.
3032 (follow_fork_inferior): New function.
3033 (follow_inferior_reset_breakpoints): Make function static.
3034 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3035 * linux-nat.c (linux_child_follow_fork): Move target-independent
3036 code to infrun.c:follow_fork_inferior.
3037
29082443
AA
30382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3039
3040 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3041 * gdbarch.c: Regenerate.
3042 * gdbarch.h: Likewise.
3043 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3044 gdbarch method 'regset_from_core_section'.
3045 (get_core_register_section): Remove handling for the case that
3046 regset == NULL and regset_from_core_section is defined.
3047 (get_core_registers): Drop check for deleted method.
3048 * procfs.c (procfs_do_thread_registers): Adjust comment.
3049
f968fe80
AA
30502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051
3052 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3053 (linux_nat_make_corefile_notes): Remove.
3054 (linux_target_install_ops): Do not set target method
3055 'make_corefile_notes'.
3056 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3057 Remove field.
3058 (linux_corefile_thread_callback): Instead of args->collect, call
3059 linux_collect_thread_registers.
3060 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3061 NULL unless there is a regset iterator.
3062 (linux_make_corefile_notes_1): Remove.
3063 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3064 by linux_make_corefile_notes.
3065 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3066
174ad59a
AA
30672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3068
3069 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3070 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3071 Remove.
3072 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3073
97094034
AA
30742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3075
3076 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3077 (xtensa_iterate_over_regset_sections): New.
3078 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3079
f73d3ce7
AA
30802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3081
3082 * vax-tdep.c (vax_regset_from_core_section): Remove.
3083 (vax_iterate_over_regset_sections): New.
3084 (vax_gdbarch_init): Adjust gdbarch initialization.
3085
cb24567a
AA
30862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3087
3088 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3089 (tilegx_regset_from_core_section): Remove.
3090 (tilegx_iterate_over_regset_sections): New.
3091 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3092
e5139de8
AA
30932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3094
3095 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3096 (sparc_iterate_over_regset_sections): New.
3097 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3098 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3099 targets.
3100 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3101 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3102 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3103 target method 'make_corefile_notes'.
3104
c6d41a6f
AA
31052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3106
3107 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3108 'sizeof_gregset' and 'sizeof_fpregset'.
3109 * sh-tdep.c (sh_regset_from_core_section): Remove.
3110 (sh_iterate_over_regset_sections): New.
3111 (sh_gdbarch_init): Adjust gdbarch initialization.
3112 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3113 sizeof_fpregset.
3114 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3115 'sizeof_gregset'.
3116
9845a0b5
AA
31172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3118
3119 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3120 (score7_linux_iterate_over_regset_sections): New.
3121 (score_gdbarch_init): Adjust gdbarch initialization.
3122
23ea9aeb
AA
31232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3124
3125 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3126 FreeBSD targets.
3127 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3128 method 'make_corefile_notes'.
3129 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3130 (ppcfbsd_regset_from_core_section): Remove.
3131 (ppcfbsd_iterate_over_regset_sections): New.
3132 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3133 initialization.
3134 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3135 (ppcnbsd_iterate_over_regset_sections): New.
3136 (ppcnbsd_init_abi): Adjust.
3137 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3138 (ppcobsd_iterate_over_regset_sections): New.
3139 (ppcobsd_init_abi): Adjust.
3140 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3141 (rs6000_aix_iterate_over_regset_sections): New.
3142 (rs6000_aix_init_osabi): Adjust.
3143
c5b8d704
AA
31442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3145
3146 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3147 (nios2_regset_from_core_section): Remove.
3148 (nios2_iterate_over_regset_sections): New.
3149 (nios2_linux_init_abi): Adjust gdbarch initialization.
3150
3636e608
AA
31512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152
3153 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3154 (am33_iterate_over_regset_sections): New.
3155 (am33_linux_init_osabi): Adjust gdbarch initialization.
3156
d4036235
AA
31572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158
3159 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3160 (mips_linux_iterate_over_regset_sections): New.
3161 (mips_linux_init_abi): Adjust gdbarch initialization.
3162 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3163 (mips64obsd_iterate_over_regset_sections): New.
3164 (mips64obsd_init_abi): Adjust.
3165 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3166 (mipsnbsd_iterate_over_regset_sections): New.
3167 (mipsnbsd_init_abi): Adjust.
3168
b61ddd6e
AA
31692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170
3171 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3172 (m88k_iterate_over_regset_sections): New.
3173 (m88k_gdbarch_init): Adjust gdbarch initialization.
3174
55a2906a
AA
31752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176
3177 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3178 (ia64_linux_iterate_over_regset_sections): New.
3179 (ia64_linux_init_abi): Adjust gdbarch initialization.
3180
022c98ab
AA
31812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3182
3183 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3184 (m68kbsd_iterate_over_regset_sections): New.
3185 (m68kbsd_init_abi): Adjust gdbarch initialization.
3186 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3187 (m68k_linux_iterate_over_regset_sections): New.
3188 (m68k_linux_init_abi): Adjust gdbarch initialization.
3189
5fac247f
AA
31902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3191
3192 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3193 (m32r_linux_regset_from_core_section): Remove.
3194 (m32r_linux_iterate_over_regset_sections): New.
3195 (m32r_linux_init_abi): Adjust gdbarch initialization.
3196
490496c3
AA
31972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3198
3199 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3200 (amd64obsd_iterate_over_regset_sections): New.
3201 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3202 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3203 Remove.
3204 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3205 regset_from_core_section initialization.
3206 * i386-tdep.c (i386_regset_from_core_section): Remove.
3207 (i386_iterate_over_regset_sections): New.
3208 (i386_gdbarch_init): Adjust gdbarch initialization.
3209 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3210 (i386_iterate_over_regset_sections): New prototype.
3211 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3212 Remove.
3213 (i386obsd_aout_iterate_over_regset_sections): New.
3214 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3215 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3216 targets.
3217 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3218 (amd64fbsd_init_abi): Call fbsd_init_abi.
3219 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3220 (i386fbsd4_init_abi): Call fbsd_init_abi.
3221 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3222 target method 'make_corefile_notes'.
3223 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3224
50c5eb53
AA
32252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3226
3227 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3228 (hppa_hpux_iterate_over_regset_sections): New.
3229 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3230 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3231 (hppa_linux_iterate_over_regset_sections): New.
3232 (hppa_linux_init_abi): Adjust.
3233 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3234 (hppanbsd_iterate_over_regset_sections): New.
3235 (hppanbsd_init_abi): Adjust.
3236 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3237 (hppaobsd_iterate_over_regset_sections): New.
3238 (hppaobsd_init_abi): Adjust.
3239
66afae4f
AA
32402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3241
3242 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3243 (frv_linux_iterate_over_regset_sections): New.
3244 (frv_linux_init_abi): Adjust gdbarch initialization.
3245
ed09174e
AA
32462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3247
3248 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3249 (armbsd_iterate_over_regset_sections): New prototype.
3250 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3251 (armbsd_iterate_over_regset_sections): New.
3252 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3253 initialization.
3254
dff2166e
AA
32552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3256
3257 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3258 (alpha_linux_iterate_over_regset_sections): New.
3259 (alpha_linux_init_abi): Adjust gdbarch initialization.
3260 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3261 prototype.
3262 (alphanbsd_iterate_over_regset_sections): New prototype.
3263
4108500a
AA
32642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3265
3266 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3267 Remove.
3268 (aarch64_linux_iterate_over_regset_sections): New.
3269 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3270
a904c024
AA
32712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3272
3273 * fbsd-tdep.c: New file.
3274 * fbsd-tdep.h: New file.
3275 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3276 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3277 (ALLDEPFILES): Add fbsd-tdep.c.
3278
8f0435f7
AA
32792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3280
3281 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3282 parameter.
3283 * gdbarch.h: Regenerate.
3284 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3285 iterator.
3286 (get_core_register_section): Add parameter 'regset' and use it, if
3287 set. Add parameter 'min_size' and verify the bfd section size
3288 against it.
3289 (get_core_registers_cb): Add parameter 'regset' and pass it to
3290 get_core_register section. For the "standard" register sections
3291 ".reg" and ".reg2", set an appropriate default for human_name.
3292 (get_core_registers): Don't abort when the gdbarch has an iterator
3293 but no regset_from_core_section. Add NULL/0 for parameters
3294 'regset'/'min_size' in calls to get_core_register_section.
3295 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3296 'regset' and use it instead of calling the
3297 regset_from_core_section gdbarch method.
3298 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3299 * i386-tdep.c (i386_supply_xstateregset)
3300 (i386_collect_xstateregset, i386_xstateregset): Moved to
3301 i386-linux-tdep.c.
3302 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3303 .reg-xstate.
3304 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3305 core file support only if the regset iterator hasn't been set.
3306 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3307 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3308 Moved from i386-tdep.c and renamed to *_linux*.
3309 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3310 each callback invocation. Allow any .reg-xstate size when reading
3311 from a core file.
3312 * amd64-tdep.c (amd64_supply_xstateregset)
3313 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3314 amd64-linux-tdep.c.
3315 (amd64_regset_from_core_section): Remove.
3316 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3317 install an amd64-specific regset_from_core_section gdbarch method.
3318 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3319 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3320 Moved from amd64-tdep.c and renamed to *_linux*.
3321 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3322 to each callback invocation. Allow any .reg-xstate size when
3323 reading from a core file.
3324 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3325 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3326 each callback invocation.
3327 (arm_linux_init_abi): No longer set the regset_from_core_section
3328 gdbarch method.
3329 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3330 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3331 each callback invocation.
3332 (ppc_linux_init_abi): No longer set the regset_from_core_section
3333 gdbarch method.
3334 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3335 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3336 (s390_regset_from_core_section): Remove.
3337 (s390_iterate_over_regset_sections): Add regset parameter to each
3338 callback invocation.
3339 (s390_gdbarch_init): No longer set the regset_from_core_section
3340 gdbarch method. Drop initialization of deleted tdep fields.
3341
5aa82d05
AA
33422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3343
3344 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3345 (amd64_linux_iterate_over_regset_sections): New.
3346 (amd64_linux_init_abi_common): Don't install the regset section
3347 list, but the new iterator in gdbarch.
3348 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3349 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3350 (arm_linux_iterate_over_regset_sections): ...here. New function.
3351 (arm_linux_init_abi): Set iterator instead of section list.
3352 * corelow.c (get_core_registers_cb): New function, logic moved
3353 from...
3354 (get_core_registers): ...loop body here. Use new iterator method
3355 instead of walking through the regset section list.
3356 * gdbarch.sh: Remove 'core_regset_sections'. New method
3357 'iterate_over_regset_sections'. New typedef
3358 'iterate_over_regset_sections_cb'.
3359 * gdbarch.c: Regenerate.
3360 * gdbarch.h: Likewise.
3361 * i386-linux-tdep.c (i386_linux_regset_sections)
3362 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3363 Remove.
3364 (i386_linux_iterate_over_regset_sections): New.
3365 (i386_linux_init_abi): Don't choose a regset section list, but
3366 install new iterator in gdbarch.
3367 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3368 (linux_collect_regset_section_cb): New function, logic moved
3369 from...
3370 (linux_collect_thread_registers): ...loop body here. Use iterator
3371 method instead of walking through list.
3372 (linux_make_corefile_notes_1): Check for presence of iterator
3373 method instead of regset section list.
3374 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3375 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3376 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3377 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3378 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3379 (ppc_linux_init_abi): Don't choose from above regset section
3380 lists, but install new iterator in gdbarch.
3381 * regset.h (struct core_regset_section): Remove.
3382 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3383 have_linux_v1, have_linux_v2, and have_tdb.
3384 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3385 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3386 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3387 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3388 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3389 (s390_iterate_over_regset_sections): ...here. New function. Use
3390 new tdep fields.
3391 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3392 regset section lists, but install new iterator.
3393
2eca4a8d
JK
33942014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3397
a73c2b56
SM
33982014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3399
3400 * progspace.c (print_program_space): Don't prune program spaces
3401 before printing them.
3402
03d46957
PA
34032014-09-25 Pedro Alves <palves@redhat.com>
3404
3405 * infrun.c (user_visible_resume_ptid): Don't check
3406 singlestep_breakpoints_inserted_p.
3407
e558d7c1
PA
34082014-09-25 Pedro Alves <palves@redhat.com>
3409
3410 * breakpoint.c (should_be_inserted): Add debug output.
3411
7f89fd65
PA
34122014-09-25 Pedro Alves <palves@redhat.com>
3413
3414 * infrun.c (stepping_past_instruction_at)
3415 (clear_exit_convenience_vars): Point at infrun.h instead of
3416 inferior.h.
3417 (handle_signal_stop): Fix typo.
3418
b7576e5c
YQ
34192014-09-24 Yao Qi <yao@codesourcery.com>
3420
3421 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3422 bitmask.
3423
9a6cf368
GB
34242014-09-22 Gary Benson <gbenson@redhat.com>
3425
3426 * target.c (target_stop): Updated comment.
3427
03f4463b
GB
34282014-09-22 Gary Benson <gbenson@redhat.com>
3429
3430 * target/target.h (target_stop_ptid): Renamed as...
3431 (target_stop_and_wait): New function. Updated comment.
3432 All uses updated.
3433 (target_continue_ptid): Renamed as...
3434 (target_continue_no_signal): New function. Updated comment.
3435 All uses updated.
3436
a25a5a45
PA
34372014-09-22 Pedro Alves <palves@redhat.com>
3438
3439 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3440 and "auto" merged.
3441 * breakpoint.c (enum ugll_insert_mode): New enum.
3442 (always_inserted_mode): Now a plain boolean.
3443 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3444 (breakpoints_always_inserted_mode): Delete.
3445 (breakpoints_should_be_inserted_now): New function.
3446 (insert_breakpoints): Pass UGLL_INSERT to
3447 update_global_location_list instead of calling
3448 insert_breakpoint_locations manually.
3449 (create_solib_event_breakpoint_1): New, factored out from ...
3450 (create_solib_event_breakpoint): ... this.
3451 (create_and_insert_solib_event_breakpoint): Use
3452 create_solib_event_breakpoint_1 instead of calling
3453 insert_breakpoint_locations manually.
3454 (update_global_location_list): Change parameter type from boolean
3455 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3456 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3457 (update_global_location_list_nothrow): Change parameter type from
3458 boolean to enum ugll_insert_mode.
3459 (_initialize_breakpoint): "breakpoint always-inserted" option is
3460 now a boolean command. Update help text.
3461 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3462 (breakpoints_should_be_inserted_now): New declaration.
3463 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3464 Remove breakpoints_always_inserted_mode check.
3465 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3466 * remote.c (remote_start_remote): Likewise.
3467
04086b45
PA
34682014-09-22 Pedro Alves <palves@redhat.com>
3469
3470 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3471 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3472 Instead, pass UGLL_INSERT to update_global_location_list.
3473 (update_global_location_list): Change parameter type from boolean
3474 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3475 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3476 (create_solib_event_breakpoint_1): New, factored out from ...
3477 (create_solib_event_breakpoint): ... this.
3478 (create_and_insert_solib_event_breakpoint): Use
3479 create_solib_event_breakpoint_1 instead of calling
3480 insert_breakpoint_locations manually.
3481 (update_global_location_list): Handle UGLL_INSERT.
3482
44702360
PA
34832014-09-22 Pedro Alves <palves@redhat.com>
3484
3485 * breakpoint.c (enum ugll_insert_mode): New enum.
3486 (update_global_location_list)
3487 (update_global_location_list_nothrow): Change parameter type from
3488 boolean to enum ugll_insert_mode. All callers adjusted.
3489
93c6145a
JB
34902014-09-19 Joel Brobecker <brobecker@adacore.com>
3491
3492 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3493 SystemTap support in GDB.
3494
89a5711c
DB
34952014-09-19 Don Breazeal <donb@codesourcery.com>
3496
3497 * linux-nat.c (linux_handle_extended_wait): Call
3498 linux_ptrace_get_extended_event.
3499 (wait_lwp): Call linux_is_extended_waitstatus.
3500 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3501 and linux_is_extended_waitstatus.
3502 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3503 linux_ptrace_get_extended_event.
3504 (linux_ptrace_get_extended_event): New function.
3505 (linux_is_extended_waitstatus): New function.
3506 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3507 (linux_is_extended_waitstatus): New declarations.
3508
c3b7b696
YQ
35092014-09-19 Yao Qi <yao@codesourcery.com>
3510
3511 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3512 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3513 comments. Callers update.
3514 (dwarf_decode_lines): Likewise.
3515 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3516 comments. Skip the line table if 'lowpc' is greater than
3517 'address'. Don't check
3518 dwarf2_per_objfile->has_section_at_zero.
3519
2b4fd423
DE
35202014-09-18 Doug Evans <dje@google.com>
3521
3522 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3523 * python/py-symtab.c (stpy_get_producer): New function.
3524 (symtab_object_getset): Add "producer" attribute.
3525
5e43d467
UW
35262014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3527
3528 PR gdb/17384
3529 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3530 (do_captured_read_memory_integer): Remove.
3531 (safe_read_memory_integer): Use target_read_memory directly instead
3532 of catching errors in do_captured_read_memory_integer.
3533
04e79979
MR
35342014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3535
3536 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3537 not gdb/doc.
3538
76aeec5b
SDJ
35392014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3540
3541 * objc-lang.c (find_implementation_from_class): Remove dead code.
3542
2f693f9d
SDJ
35432014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3544
3545 PR cli/7233
3546 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3547 "fprintf_unfiltered (gdb_stdlog...)".
3548
bb9d5f81
PP
35492014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3550
3551 PR breakpoints/12526
3552 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3553 val_bitsize.
3554 * breakpoint.c (watch_command_1): Use these fields to retain
3555 bitfield information.
3556 (extract_bitfield_from_watchpoint_value): New function.
3557 (watchpoint_check): Use it.
3558 (update_watchpoint): Use it. Optimize the address and length of a
3559 HW watchpoint pointing to a bitfield.
3560 * value.h (unpack_value_bitfield): New prototype.
3561 * value.c (unpack_value_bitfield): Make extern.
3562
05db5edd
ST
35632014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3564
3565 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3566 x86-dregs.o.
3567 * gnu-nat.c (inf_threads): New function.
3568 * gnu-nat.h (inf_threads_ftype): New typedef.
3569 (inf_threads): New declaration.
3570 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3571 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3572 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3573 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3574 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3575 (i386_gnu_dr_get_control): New functions.
3576 (reg_addr): New structure.
3577 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3578 i386 debugging register hooks.
3579 * NEWS: Mention this.
3580
5a578da5
OJ
35812014-08-13 Omair Javaid <omair.javaid@linaro.org>
3582
3583 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3584 vector data transfer instructions.
3585 (arm_record_coproc_data_proc): Updated.
3586
f20f80dd
OJ
35872014-08-13 Omair Javaid <omair.javaid@linaro.org>
3588
3589 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3590 arm_record_exreg_ld_st_insn.
3591 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3592 load/store insns.
3593
851f26ae
OJ
35942014-08-13 Omair Javaid <omair.javaid@linaro.org>
3595
3596 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3597 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3598 processing instructions.
3599
1e1b6563
OJ
36002014-08-13 Omair Javaid <omair.javaid@linaro.org>
3601
3602 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3603 for advance SIMD struct ld/st insn.
3604 (thumb2_record_decode_insn_handler): Replace stub handler with
3605 thumb2_record_asimd_struct_ld_st.
3606
60cc5e93
OJ
36072014-08-13 Omair Javaid <omair.javaid@linaro.org>
3608
3609 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3610 for asimd, vfp and coprocessor insns.
3611 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3612 and coprocessor insns.
3613 (thumb2_record_coproc_insn): New function.
3614 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3615 handlers.
3616 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3617 opcode 110 insns.
3618
81219e53
DE
36192014-09-13 Doug Evans <xdje42@gmail.com>
3620
3621 * NEWS: Mention new "queue-signal" command.
3622 * infcmd.c (queue_signal_command): New function.
3623 (_initialize_infcmd): Add new queue-signal command.
3624
d36bf488
DE
36252014-09-13 Doug Evans <xdje42@gmail.com>
3626
3627 * linux-nat.c (wait_lwp): Add debugging printf.
3628 (linux_nat_wait_1): Ditto.
3629
f37f681c
PA
36302014-09-12 Pedro Alves <palves@redhat.com>
3631
3632 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3633 (create_and_insert_solib_event_breakpoint): New functions.
3634 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3635 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3636 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3637 (remove_dbx_link_breakpoint): Delete function.
3638 (insert_dbx_link_bpt_in_file): Use
3639 create_and_insert_solib_event_breakpoint instead of
3640 deprecated_insert_raw_breakpoint.
3641 (procfs_wait): Don't check whether we hit __dbx_link here.
3642 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3643 here.
3644 * solib-irix.c (base_breakpoint): Delete global.
3645 (disable_break): Delete function.
3646 (enable_break): Use create_solib_event_breakpoint
3647 instead of deprecated_insert_raw_breakpoint.
3648 (irix_solib_handle_event): New function.
3649 (irix_solib_create_inferior_hook): Don't run the target or disable
3650 the mapping-complete breakpoint here.
3651 (_initialize_irix_solib): Install irix_solib_handle_event as
3652 so_ops->handle_event hook.
3653
9d9bf2df
EBM
36542014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3655 Ulrich Weigand  <uweigand@de.ibm.com>
3656
3657 PR tdep/17379
3658 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3659 instead of read_memory_unsigned_integer.
3660
b006a80e
GB
36612014-09-12 Gary Benson <gbenson@redhat.com>
3662
3663 * nat/linux-waitpid.c: Include common-defs.h.
3664 [GDBSERVER]: Add FIXME comment.
3665 [!GDBSERVER]: Don't include defs.h or signal.h.
3666 (linux_debug) [!GDBSERVER]: Remove empty block.
3667
296b1496
GB
36682014-09-12 Gary Benson <gbenson@redhat.com>
3669
3670 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3671 Don't include defs.h or server.h.
3672
53f81362
GB
36732014-09-12 Gary Benson <gbenson@redhat.com>
3674
3675 * nat/linux-btrace.c: Include common-defs.h.
3676 Don't include defs.h, server.h or gdbthread.h.
3677 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3678
727605ca
GB
36792014-09-12 Gary Benson <gbenson@redhat.com>
3680
3681 * common/agent.c: Include common-defs.h.
3682 Don't include defs.h or server.h.
3683 * common/buffer.c: Likewise.
3684 * common/common-debug.c: Likewise.
3685 * common/common-utils.c: Likewise.
3686 * common/errors.c: Likewise.
3687 * common/filestuff.c: Likewise.
3688 * common/format.c: Likewise.
3689 * common/gdb_vecs.c: Likewise.
3690 * common/print-utils.c: Likewise.
3691 * common/ptid.c: Likewise.
3692 * common/rsp-low.c: Likewise.
3693 * common/signals.c: Likewise.
3694 * common/vec.c: Likewise.
3695 * common/xml-utils.c: Likewise.
3696 * nat/linux-osdata.c: Likewise.
3697 * nat/linux-procfs.c: Likewise.
3698 * nat/linux-ptrace.c: Likewise.
3699 * nat/mips-linux-watch.c: Likewise.
3700 * target/waitstatus.c: Likewise.
3701
361c8ade
GB
37022014-09-12 Tom Tromey <tromey@redhat.com>
3703 Gary Benson <gbenson@redhat.com>
3704
3705 * common/common-regcache.h: New file.
3706 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3707 * regcache.h: Include common-regcache.h.
3708 (regcache_read_pc): Don't declare.
3709 * regcache.c (get_thread_regcache_for_ptid): New function.
3710 * nat/linux-btrace.c: Don't include regcache.h.
3711 Include common-regcache.h.
3712 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3713
a01cbb49
TS
37142014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3715
3716 * regcache.h (struct regset): Declare.
3717
98880d46
PA
37182014-09-11 Pedro Alves <palves@redhat.com>
3719
3720 PR gdb/17347
3721 * main.c: Include "infrun.h".
3722 (catch_command_errors, catch_command_errors_const): Wait for the
3723 foreground command to complete.
3724 * top.c (maybe_wait_sync_command_done): New function, factored out
3725 from ...
3726 (maybe_wait_sync_command_done): ... here.
3727 * top.h (maybe_wait_sync_command_done): New declaration.
3728
bd9269f7
GB
37292014-09-11 Tom Tromey <tromey@redhat.com>
3730 Gary Benson <gbenson@redhat.com>
3731
3732 * common/symbol.h: New file.
3733 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3734 * minsyms.c (find_minimal_symbol_address): New function.
3735 * common/agent.c: Include common/symbol.h.
3736 [!GDBSERVER]: Don't include objfiles.h.
3737 (agent_look_up_symbols): Use find_minimal_symbol_address.
3738
f8c1d06b
GB
37392014-09-11 Gary Benson <gbenson@redhat.com>
3740
3741 * target/target.h (target_stop_ptid, target_continue_ptid):
3742 Declare.
3743 * target.c (target_stop_ptid, target_continue_ptid): New
3744 functions.
3745 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3746 (agent_run_command): Always use target_stop_ptid and
3747 target_continue_ptid.
3748
721ec300
GB
37492014-09-11 Tom Tromey <tromey@redhat.com>
3750 Gary Benson <gbenson@redhat.com>
3751
3752 * target/target.h: New file.
3753 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3754 * target.h: Include target/target.h.
3755 (target_read_memory, target_write_memory): Don't declare.
3756 * target.c (target_read_uint32): New function.
3757 * common/agent.c: Include target/target.h.
3758 [!GDBSERVER]: Don't include target.h.
3759 (helper_thread_id): Type changed to uint32_t.
3760 (agent_get_helper_thread_id): Use target_read_uint32.
3761 (agent_run_command): Always use target_read_memory and
3762 target_write_memory.
3763 (agent_capability): Type changed to uint32_t.
3764 (agent_capability_check): Use target_read_uint32.
3765
c5e92cca
GB
37662014-09-11 Gary Benson <gbenson@redhat.com>
3767
3768 * common/common-debug.h (show_debug_regs): Declare.
3769 * common/common-debug.c (show_debug_regs): Define.
3770 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3771 all uses with show_debug_regs. Replace all uses that considered
3772 debug_hw_points as a multi-value integer with straight boolean
3773 uses.
3774 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3775 with show_debug_regs.
3776 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3777 all uses with show_debug_regs.
3778 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3779 uses with show_debug_regs.
3780
eeef931a
UW
37812014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3782
3783 * findvar.c (address_from_register): Handle targets requiring
3784 a special conversion routine even for plain pointer types.
3785
8efa9855
UW
37862014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3787
3788 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3789 (store_register): Do not call exec_one_dummy_insn.
3790
eb479039
JB
37912014-09-10 Joel Brobecker <brobecker@adacore.com>
3792
3793 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3794 dereference it first. Use value_enclosing_type instead of
3795 value_type.
3796 (ada_array_length): Likewise.
3797
deede10c
JB
37982014-09-10 Joel Brobecker <brobecker@adacore.com>
3799
3800 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3801 Adjust function implementation and documentation accordingly.
3802 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3803 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3804 Update call to ada_value_ptr_subscript.
3805
7828a5f5
JB
38062014-09-10 Joel Brobecker <brobecker@adacore.com>
3807
3808 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3809 instead of VAL's type.
3810
35782f14
JB
38112014-09-10 Joel Brobecker <brobecker@adacore.com>
3812
3813 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3814
d342a0da
DE
38152014-09-09 Doug Evans <xdje42@gmail.com>
3816
3817 PR guile/17367
3818 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3819 last parameter to pkg-config, not first.
3820 * configure.ac: Pass --with-guile provided pkg-config path to
3821 GDB_GUILE_PROGRAM_NAMES.
3822 * configure: Regenerate.
3823
b4a3d263
GKB
38242014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3825
3826 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3827 Bertazi".
3828
6e466374
MR
38292014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3830
3831 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3832 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3833 the list of sections determining GDB_OSABI_IRIX.
3834
a1ada89a
JH
38352014-09-09 James Hogan <james.hogan@imgtec.com>
3836
3837 * MAINTAINERS (Write After Approval): Add "James Hogan".
3838
86db008d
JH
38392014-09-09 James Hogan <james.hogan@imgtec.com>
3840
3841 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3842
72fde3df
JB
38432014-09-09 Joel Brobecker <brobecker@adacore.com>
3844
3845 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3846
92d8d229
DE
38472014-09-08 Doug Evans <xdje42@gmail.com>
3848
3849 PR 17247
3850 * guile.c: #include <signal.h>.
3851 (_initialize_guile): Block SIGCHLD while initializing Guile.
3852
3853 Replaces the following, which is reverted.
3854
3855 2014-07-26 Doug Evans <xdje42@gmail.com>
3856
3857 PR 17185
3858 * configure.ac: Add check for header gc/gc.h.
3859 Add check for function setenv.
3860 * configure: Regenerate.
3861 * config.in: Regenerate.
3862 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3863
d81412aa
DE
38642014-09-08 Doug Evans <xdje42@gmail.com>
3865
3866 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3867 with named constant. Fix style of pointer comparison.
3868 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3869
a9f116cb
GKB
38702014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3871
3872 PR gdb/17035
3873 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3874 decide whether we display the command on "show user".
3875 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3876 printing command name.
3877 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3878 * cli/cli-decode.c (cli_user_command_p): Create helper function
3879 to verify whether cmd_list_element is a user-defined command.
3880
c75bd3a2
JK
38812014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 PR python/17355
3884 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3885 Fix goto out of TRY_CATCH.
3886
faa42425 38872014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3888 Tom Tromey <tromey@redhat.com>
faa42425
DE
3889
3890 PR 15276
3891 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3892 $_any_caller_matches.
3893 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3894 * python/lib/gdb/function/caller_is.py: New file.
3895
0d41ba00
DE
38962014-09-06 Doug Evans <xdje42@gmail.com>
3897
3898 * infcmd.c (program_info): Fix typo.
3899
474ca4f6
SDJ
39002014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3901
3902 PR gdb/17235
3903 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3904 'number'. New variable 'has_digit'. Rewrite code to deal with
3905 subexpressions on SDT probes.
3906
ebf13736
PA
39072014-09-04 Pedro Alves <palves@redhat.com>
3908
3909 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3910 the input is only one character long.
3911
eb0b0463
SDJ
39122014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3913
3914 PR fortran/17237
3915 * f-valprint.c (f_val_print): Specify the correct print option to
3916 use when printing integer values.
3917
5ee44bfa
GB
39182014-09-04 Gary Benson <gbenson@redhat.com>
3919
3920 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3921 Remove code to cope with LWPs wrapped as PIDs.
3922 Add assertions to ensure no wrapped LWPs are passed.
3923
4875ffdb
PA
39242014-09-04 Pedro Alves <palves@redhat.com>
3925
3926 * value.c (value_ranges_copy_adjusted): New function, factored out
3927 from ...
3928 (value_contents_copy_raw): ... here.
3929 (unpack_value_bits_as_long_1): Rename back to ...
3930 (unpack_bits_as_long): ... this. Remove 'original_value' and
3931 'result' parameters. Change return type to LONGEST.
3932 (unpack_value_bits_as_long): Delete.
3933 (unpack_value_field_as_long_1): Delete.
3934 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3935 (unpack_value_bitfield): New function.
3936 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3937 (value_fetch_lazy): Use unpack_value_bitfield.
3938 * value.h (unpack_value_bits_as_long): Delete declaration.
3939
5f3b99cf
SS
39402014-09-03 Sasha Smundak <asmundak@google.com>
3941
3942 * python/py-frame.c (frapy_read_register): New function.
3943
ac740bc7
JH
39442014-09-03 James Hogan <james.hogan@imgtec.com>
3945
3946 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3947 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3948
7d793aa9
SDJ
39492014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3950
3951 PR python/16699
3952 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3953 function.
3954 (add_cmd): Set "completer_handle_brkchars" to NULL.
3955 * cli/cli-decode.h (struct cmd_list_element)
3956 <completer_handle_brkchars>: New field.
3957 * command.h (completer_ftype_void): New typedef.
3958 (set_cmd_completer_handle_brkchars): New prototype.
3959 * completer.c (set_gdb_completion_word_break_characters): New
3960 function.
3961 (complete_line_internal): Call "completer_handle_brkchars"
3962 callback from command.
3963 * completer.h: Include "command.h".
3964 (set_gdb_completion_word_break_characters): New prototype.
3965 * python/py-cmd.c (cmdpy_completer_helper): New function.
3966 (cmdpy_completer_handle_brkchars): New function.
3967 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3968 (cmdpy_init): Set completer_handle_brkchars to
3969 cmdpy_completer_handle_brkchars.
3970
97ea6506
GB
39712014-09-03 Gary Benson <gbenson@redhat.com>
3972
3973 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3974 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3975 Loop conditions changed to equivalent form.
3976 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3977 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3978 ALL_DEBUG_ADDRESS_REGISTERS.
3979
d1437815
JB
39802014-09-03 Joel Brobecker <brobecker@adacore.com>
3981
3982 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3983 description fix.
3984
9b94fcf1
DE
39852014-09-02 Doug Evans <dje@google.com>
3986
3987 * typeprint.c (find_global_typedef): Fix comment.
3988
df7e5265
GB
39892014-09-02 Gary Benson <gbenson@redhat.com>
3990
3991 * i386-nat.h: Renamed as...
3992 * x86-nat.h: New file. All type, function and variable name
3993 prefixes changed from "i386_" to "x86_". All references updated.
3994 * i386-nat.c: Renamed as...
3995 * x86-nat.c: New file. All type, function and variable name
3996 prefixes changed from "i386_" to "x86_". All references updated.
3997 * common/i386-xstate.h: Renamed as...
3998 * common/x86-xstate.h: New file. All type, function and variable
3999 name prefixes changed from "i386_" to "x86_". All references
4000 updated.
4001 * nat/i386-cpuid.h: Renamed as...
4002 * nat/x86-cpuid.h: New file. All type, function and variable name
4003 prefixes changed from "i386_" to "x86_". All references updated.
4004 * nat/i386-gcc-cpuid.h: Renamed as...
4005 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4006 name prefixes changed from "i386_" to "x86_". All references
4007 updated.
4008 * nat/i386-dregs.h: Renamed as...
4009 * nat/x86-dregs.h: New file. All type, function and variable name
4010 prefixes changed from "i386_" to "x86_". All references updated.
4011 * nat/i386-dregs.c: Renamed as...
4012 * nat/x86-dregs.c: New file. All type, function and variable name
4013 prefixes changed from "i386_" to "x86_". All references updated.
4014
1c3569d4
MR
40152014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4016
4017 * varobj.c (_initialize_varobj): Move to the end of file.
4018
ff55e1b5
GB
40192014-08-29 Gary Benson <gbenson@redhat.com>
4020
4021 * common/common-exceptions.h: New file.
4022 * common/common-exceptions.c: Likewise.
4023 * Makefile.in (SFILES): Add common/common-exceptions.c.
4024 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4025 (COMMON_OBS): Add common-exceptions.o.
4026 (common-exceptions.o): New rule.
4027 * exceptions.h (common-exceptions.h): Include.
4028 (gdb_setjmp.h): Do not include.
4029 (return_reason): Moved to common-exceptions.h.
4030 (enum return_reason): Likewise.
4031 (RETURN_MASK): Likewise.
4032 (typedef return_mask): Likewise.
4033 (enum errors): Likewise.
4034 (struct gdb_exception): Likewise.
4035 (exceptions_state_mc_init): Likewise.
4036 (exceptions_state_mc_action_iter): Likewise.
4037 (exceptions_state_mc_action_iter_1): Likewise.
4038 (TRY_CATCH): Likewise.
4039 (throw_exception): Likewise.
4040 (throw_verror): Likewise.
4041 (throw_vquit): Likewise.
4042 (throw_error): Likewise.
4043 (throw_quit): Likewise.
4044 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4045 (enum catcher_action): Likewise.
4046 (struct catcher): Likewise.
4047 (current_catcher): Likewise.
4048 (catcher_list_size): Likewise.
4049 (exceptions_state_mc_init): Likewise.
4050 (catcher_pop): Likewise.
4051 (exceptions_state_mc): Likewise.
4052 (exceptions_state_mc_action_iter): Likewise.
4053 (exceptions_state_mc_action_iter_1): Likewise.
4054 (throw_exception): Likewise.
4055 (exception_messages): Likewise.
4056 (exception_messages_size): Likewise.
4057 (throw_it): Likewise.
4058 (throw_verror): Likewise.
4059 (throw_vquit): Likewise.
4060 (throw_error): Likewise.
4061 (throw_quit): Likewise.
4062 (prepare_to_throw_exception): New function.
4063
e9bcb658
GB
40642014-08-29 Gary Benson <gbenson@redhat.com>
4065
4066 * common/gdb_setjmp.h: New file.
4067 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4068 * configure.ac: Move sigsetjmp check...
4069 * common/common.m4: ...here.
4070 * configure: Regenerate.
4071 * cp-support.c (SIGJMP_BUF): Delete.
4072 (SIGSETJMP): Likewise.
4073 (SIGLONGJMP): Likewise.
4074 * exceptions.h (gdb_setjmp.h): Include.
4075 (setjmp.h): Do not include.
4076 (EXCEPTIONS_SIGJMP_BUF): Delete.
4077 (EXCEPTIONS_SIGSETJMP): Likewise.
4078 (EXCEPTIONS_SIGLONGJMP): Likewise.
4079 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4080 from gdb_setjmp.h.
4081 * exceptions.c: Likewise.
4082
e3180625
GB
40832014-08-29 Gary Benson <gbenson@redhat.com>
4084
4085 * cleanups.h: Moved to...
4086 * common/cleanups.h: New file.
4087 * cleanups.c: Moved to...
4088 * common/cleanups.c: New file. Include common-defs.h and
4089 cleanups.h. Do not include defs.h.
4090 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4091 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4092 (cleanups.o): New rule.
4093
e3d6ba5d
GB
40942014-08-29 Gary Benson <gbenson@redhat.com>
4095
4096 * common/errors.h (internal_warning): New declaration.
4097 (internal_vwarning): Likewise.
4098 * common/errors.c (internal_warning): New function.
4099 * utils.h (internal_warning): Don't declare.
4100 (internal_vwarning): Likewise.
4101 * utils.c (internal_warning): Removed.
4102
075c7033
GB
41032014-08-29 Gary Benson <gbenson@redhat.com>
4104
4105 * main.c (captured_main): Use warning during startup.
4106 Prefix startup warning messages with command name.
4107
91b35fd0
GB
41082014-08-29 Gary Benson <gbenson@redhat.com>
4109
4110 * main.c (captured_main): Handle usage errors with error.
4111
b1ec390e
GB
41122014-08-29 Gary Benson <gbenson@redhat.com>
4113
4114 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4115 exit pair with a call to error. Wrap the message with _().
4116
fd0ef3dd
GB
41172014-08-29 Gary Benson <gbenson@redhat.com>
4118
4119 * main.c (captured_main): Replace a fprintf/exit
4120 pair with a call to error. Wrap the message with _().
4121
e0e6bcab
GB
41222014-08-29 Gary Benson <gbenson@redhat.com>
4123
4124 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4125 pairs with calls to error. Wrap the message with _().
4126
0d2f5c07
GB
41272014-08-29 Gary Benson <gbenson@redhat.com>
4128
4129 * utils.c (vwarning): Protect calls to target_terminal_ours
4130 and wrap_here.
4131
5df43998
GB
41322014-08-29 Gary Benson <gbenson@redhat.com>
4133
4134 * exceptions.c (print_flush): Protect calls to
4135 target_terminal_ours and wrap_here.
4136
2437fd32
GB
41372014-08-29 Gary Benson <gbenson@redhat.com>
4138
4139 * utils.h (filtered_printing_initialized): New declaration.
4140 * utils.c (abort_with_message): New function.
4141 (internal_vproblem): Use abort_with_message for first level
4142 recursive internal problems, and if gdb_stderr is not set up.
4143 Protect calls to target_terminal_ours, begin_line and query.
4144
f1f58506
DE
41452014-08-28 Doug Evans <dje@google.com>
4146
4147 * symtab.c (in_prologue): Move definition to better spot.
4148 (skip_prologue_using_sal): Ditto.
4149
aab2f208
DE
41502014-08-28 Doug Evans <dje@google.com>
4151
4152 * symtab.c (find_function_start_sal): Move definition to better spot.
4153
6b65d1b6
YQ
41542014-08-28 Yao Qi <yao@codesourcery.com>
4155
4156 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4157 found_stack_adjust in forward scan. Remove condition check
4158 on found_stack_adjust which is always true. Indent the code.
4159
a1b34d15
YQ
41602014-08-28 Yao Qi <yao@codesourcery.com>
4161
4162 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4163 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4164 (dwarf_decode_lines): Remove argument
4165 want_line_info. Remove condition check on want_line_info.
4166 Callers update.
4167
d5962de5
DE
41682014-08-27 Doug Evans <dje@google.com>
4169
4170 * dwarf2read.c (dwarf_record_line): Fix typo.
4171
9b139002
SDJ
41722014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4173
4174 * target.h (struct target_ops::to_terminal_save_ours): Remove
4175 declaration.
4176 (target_terminal_save_ours): Remove macro.
4177 * target-delegates.c: Regenerate.
4178 * inf-child.c (inf_child_target): Don't set the nonexistent
4179 field to_terminal_save_ours.
4180 * inferior.h (child_terminal_save_ours): Remove declaration.
4181 * terminal.h (gdb_save_tty_state): New declaration.
4182 * inflow.c (child_terminal_save_ours): Rename to ...
4183 (gdb_save_tty_state): ... this.
4184 * tui/tui.c: Include terminal.h.
4185 (tui_enable): Use gdb_save_tty_state instead of
4186 target_terminal_save_ours.
4187 (tui_disable): Likewise.
4188
9debeba0
DE
41892014-08-25 Doug Evans <dje@google.com>
4190
4191 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4192 Pass NULL instead of 0 for context pointer.
4193
428fc5fc
YQ
41942014-08-25 Yao Qi <yao@codesourcery.com>
4195
4196 * dwarf2read.c: Fix grammatical error.
4197
cdc07690
YQ
41982014-08-24 Yao Qi <yao@codesourcery.com>
4199
4200 * dwarf2read.c (scan_partial_symbols): Update comments.
4201 Rename argument 'need_pc' with 'set_addrmap'.
4202 (add_partial_namespace): Rename argument 'need_pc' with
4203 'set_addrmap'.
4204 (add_partial_module): Likewise.
4205 (add_partial_subprogram): Likewise. Update comments.
4206 (dwarf2_name): Fix typo.
4207
a05a36a5
DE
42082014-08-22 Doug Evans <dje@google.com>
4209
4210 PR 17276
4211 * dwarf2read.c (dwarf_record_line_p): New function.
4212 (dwarf_decode_lines_1): Ignore subsequent line number entries
4213 for the same line if any entry had a non-zero discriminator.
4214
252a6764
DE
42152014-08-22 Doug Evans <dje@google.com>
4216
4217 * buildsym.h (record_line_ftype): New typedef.
4218 (record_line): Use it.
4219 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4220 (dwarf_decode_lines_1): Call them.
4221
510db052
YQ
42222014-08-22 Yao Qi <yao@codesourcery.com>
4223
4224 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4225 (ctf_end): Remove code.
4226
22fd09ae
JK
42272014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4228
4229 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4230 (linux_make_corefile_notes): call update_thread_list, protected against
4231 exceptions.
4232
656e8868
PA
42332014-08-21 Pedro Alves <palves@redhat.com>
4234
4235 * infcmd.c (attach_command): Remove comment.
4236
de589d04
WN
42372014-08-21 Bin Cheng <bin.cheng@arm.com>
4238
4239 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4240 unsigned LONGEST to ULONGEST.
4241
2a31c623
PA
42422014-08-20 Pedro Alves <palves@redhat.com>
4243
4244 * Makefile.in (check-read1): New rule.
4245
d36430db
JB
42462014-08-20 Joel Brobecker <brobecker@adacore.com>
4247
4248 * value.c (value_from_contents_and_address): Strip resolved_type's
4249 typedef layers before checking its TYPE_DATA_LOCATION.
4250
000339af
PA
42512014-08-20 Pedro Alves <palves@redhat.com>
4252
4253 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4254
5f52445b
YQ
42552014-08-20 Yao Qi <yao@codesourcery.com>
4256
4257 * amd64-tdep.c (amd64_classify): Add a blank line after the
4258 example. Move "*/" to a new line.
4259 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4260 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4261 * dwarf2read.c (psymtab_include_file_name): Likewise.
4262
9a0dc9e3
PA
42632014-08-19 Andrew Burgess <aburgess@broadcom.com>
4264 Pedro Alves <palves@redhat.com>
4265
4266 PR symtab/14604
4267 PR symtab/14605
4268 * ada-lang.c (coerce_unspec_val_to_type): Use
4269 value_contents_copy_raw.
4270 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4271 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4272 * cp-valprint.c (cp_print_value_fields): Let the common printing
4273 code handle optimized out values.
4274 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4275 * d-valprint.c (dynamic_array_type): Use
4276 value_bits_any_optimized_out.
4277 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4278 check_any_valid fields.
4279 (check_pieced_value_bits): Delete and inline ...
4280 (check_pieced_synthetic_pointer): ... here.
4281 (check_pieced_value_validity): Delete.
4282 (check_pieced_value_invalid): Delete.
4283 (pieced_value_funcs): Remove check_validity and check_any_valid
4284 fields.
4285 (read_pieced_value): Use mark_value_bits_optimized_out.
4286 (write_pieced_value): Switch to use
4287 mark_value_bytes_optimized_out.
4288 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4289 of assuming the whole value is optimized out.
4290 * findvar.c (read_frame_register_value): Remove special handling
4291 of optimized out registers.
4292 (value_from_register): Use mark_value_bytes_optimized_out.
4293 * frame-unwind.c (frame_unwind_got_optimized): Use
4294 mark_value_bytes_optimized_out.
4295 * jv-valprint.c (java_value_print): Adjust.
4296 (java_print_value_fields): Let the common printing code handle
4297 optimized out values.
4298 * mips-tdep.c (mips_print_register): Remove special handling of
4299 optimized out registers.
4300 * opencl-lang.c (lval_func_check_validity): Delete.
4301 (lval_func_check_any_valid): Delete.
4302 (opencl_value_funcs): Remove check_validity and check_any_valid
4303 fields.
4304 * p-valprint.c (pascal_object_print_value_fields): Let the common
4305 printing code handle optimized out values.
4306 * stack.c (read_frame_arg): Remove special handling of optimized
4307 out values. Fetch both VAL and ENTRYVAL before comparing
4308 contents. Adjust to value_available_contents_eq rename.
4309 * valprint.c (valprint_check_validity)
4310 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4311 (val_print_array_elements): Adjust.
4312 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4313 (value_bits_any_optimized_out): New function.
4314 (value_entirely_covered_by_range_vector): New function, factored
4315 out from value_entirely_unavailable.
4316 (value_entirely_unavailable): Reimplement.
4317 (value_entirely_optimized_out): New function.
4318 (insert_into_bit_range_vector): New function, factored out from
4319 mark_value_bits_unavailable.
4320 (mark_value_bits_unavailable): Reimplement.
4321 (struct ranges_and_idx): New struct.
4322 (find_first_range_overlap_and_match): New function, factored out
4323 from value_available_contents_bits_eq.
4324 (value_available_contents_bits_eq): Rename to ...
4325 (value_contents_bits_eq): ... this. Check both unavailable
4326 contents and optimized out contents.
4327 (value_available_contents_eq): Rename to ...
4328 (value_contents_eq): ... this.
4329 (allocate_value_lazy): Remove reference to the old optimized_out
4330 boolean.
4331 (allocate_optimized_out_value): Use
4332 mark_value_bytes_optimized_out.
4333 (require_not_optimized_out): Adjust to check whether the
4334 optimized_out vec is empty.
4335 (ranges_copy_adjusted): New function, factored out from
4336 value_contents_copy_raw.
4337 (value_contents_copy_raw): Also copy the optimized out ranges.
4338 Assert the destination ranges aren't optimized out.
4339 (value_contents_copy): Update comment, remove call to
4340 require_not_optimized_out.
4341 (value_contents_equal): Adjust to check whether the optimized_out
4342 vec is empty.
4343 (set_value_optimized_out, value_optimized_out_const): Delete.
4344 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4345 New functions.
4346 (value_entirely_optimized_out, value_bits_valid): Delete.
4347 (value_copy): Take a VEC copy of the 'optimized_out' field.
4348 (value_primitive_field): Remove special handling of optimized out.
4349 (value_fetch_lazy): Assert that lazy values have no unavailable
4350 regions. Use value_bits_any_optimized_out. Remove some special
4351 handling for optimized out values.
4352 * value.h: Add intro comment about <optimized out> and
4353 <unavailable>.
4354 (struct lval_funcs): Remove check_validity and check_any_valid
4355 fields.
4356 (set_value_optimized_out, value_optimized_out_const): Remove.
4357 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4358 New declarations.
4359 (value_bits_any_optimized_out): New declaration.
4360 (value_bits_valid): Delete declaration.
4361 (value_available_contents_eq): Rename to ...
4362 (value_contents_eq): ... this, and extend comments.
4363
6694c411
JK
43642014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 Fix -fsanitize=address on unreadable inferior strings.
4367 * valprint.c (val_print_string): Fix access before BUFFER.
4368
89a1c21a
SM
43692014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4370
4371 * target.c (target_struct_size): Remove.
4372 (target_struct_allocsize): Remove.
4373 (DEFAULT_ALLOCSIZE): Remove.
4374 (target_ops_p): New typedef.
4375 (DEF_VEC_P (target_ops_p)): New vector type.
4376 (target_structs): Change type to VEC (target_ops_p).
4377 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4378 (find_default_run_target): Rewrite for loop following changes to
4379 target_structs.
4380
cb417230
JB
43812014-08-19 Joel Brobecker <brobecker@adacore.com>
4382
4383 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4384 Adjust code accordingly. Adjust function description comment.
4385
817e0957
YQ
43862014-08-19 Yao Qi <yao@codesourcery.com>
4387
4388 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4389 types.
4390
2974be62
AM
43912014-08-19 Alan Modra <amodra@gmail.com>
4392
4393 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4394 * config.in: Regenerate.
4395 * configure: Regenerate.
4396
34abf635
GB
43972014-08-19 Tom Tromey <tromey@redhat.com>
4398 Gary Benson <gbenson@redhat.com>
4399
4400 * common/common-debug.h: New file.
4401 * common/common-debug.c: Likewise.
4402 * debug.c: Likewise.
4403 * Makefile.in (SFILES): Add common/common-debug.c.
4404 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4405 (COMMON_OBS): Add common-debug.o and debug.o.
4406 (common-debug.o): New rule.
4407 * common/common-defs.h: Include common-debug.h.
4408 * common/agent.c (debug_agent_printf): New function.
4409 (DEBUG_AGENT): Redefine.
4410 * nat/i386-dregs.c (debug_printf): Undefine.
4411
f6e94d78
GB
44122014-08-19 Gary Benson <gbenson@redhat.com>
4413
4414 * common/common-defs.h: Include print-utils.h.
4415 * utils.h: Do not include print-utils.h.
4416
9239eeab
GB
44172014-08-19 Tom Tromey <tromey@redhat.com>
4418 Gary Benson <gbenson@redhat.com>
4419
4420 * common/common-types.h: New file.
4421 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4422 * common/common-defs.h: Include common-types.h.
4423 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4424 (ULONGEST): Remove.
4425
ef87c8bb
GB
44262014-08-19 Tom Tromey <tromey@redhat.com>
4427 Gary Benson <gbenson@redhat.com>
4428
4429 * common/errors.h: New file.
4430 * common/errors.c: Likewise.
4431 * Makefile.in (SFILES): Add common/errors.c.
4432 (HFILES_NO_SRCDIR): Add common/errors.h.
4433 (COMMON_OBS): Add errors.o.
4434 (errors.o): New rule.
4435 * common/common-defs.h: Include errors.h.
4436 * utils.h (perror_with_name, error, verror, warning, vwarning):
4437 Don't declare.
4438 * common/common-utils.h: (malloc_failure, internal_error):
4439 Likewise.
4440
196a707b
GB
44412014-08-19 Gary Benson <gbenson@redhat.com>
4442
4443 * utils.c (internal_vproblem): Always print the message.
4444
ded4fc8f
DE
44452014-08-18 Doug Evans <dje@google.com>
4446
4447 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4448
950c97d8
JB
44492014-08-18 Joel Brobecker <brobecker@adacore.com>
4450
4451 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4452 Return 0 if TYPE is dynamic.
4453 (print_range): Add handling of dynamic ranges.
4454
3cdcd0ce
JB
44552014-08-18 Keven Boell <keven.boell@intel.com>
4456 Joel Brobecker <brobecker@adacore.com>
4457
4458 * gdbtypes.h (struct main_type): Add field "data_location".
4459 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4460 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4461 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4462 a dynamic data location.
4463 (resolve_dynamic_type): Add DW_AT_data_location handling.
4464 (copy_recursive, copy_type): Copy the data_location information
4465 when present.
4466 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4467 * value.c (value_from_contents_and_address): Add
4468 DW_AT_data_location handling.
4469
08412b07
JB
44702014-08-18 Keven Boell <keven.boell@intel.com>
4471 Joel Brobecker <brobecker@adacore.com>
4472
4473 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4474 field "get_object_address".
4475 * dwarf2expr.c (execute_stack_op): Add handling for
4476 DW_OP_push_object_address.
4477 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4478 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4479 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4480 (dwarf_expr_get_obj_addr): New function.
4481 (dwarf_expr_ctx_funcs): Add get_object_address field.
4482 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4483 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4484 (dwarf2_evaluate_property): Add parameter "address". Use it.
4485 (needs_get_obj_addr): New function.
4486 (needs_frame_ctx_funcs): Add get_object_address field.
4487 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4488 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4489 (resolve_dynamic_array): Likewise.
4490
84754697
JB
44912014-08-18 Joel Brobecker <brobecker@adacore.com>
4492
4493 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4494 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4495 fixed value for records and unions for which some GNAT encodings
4496 are present.
4497
da5c522f
JB
44982014-08-18 Joel Brobecker <brobecker@adacore.com>
4499
4500 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4501 rewrite to avoid "else if" and "else" constructs. Should be
4502 a no-op in practice.
4503
0d72a7c3
JB
45042014-08-18 Joel Brobecker <brobecker@adacore.com>
4505
4506 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4507 of lexical block.
4508
e66d4446
SC
45092014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4510
4511 PR c++/17132
4512 * eval.c: Update all calls to find_overload_match.
4513 * valarith.c: Likewise.
4514 (value_user_defined_cpp_op, value_user_defined_op): New
4515 argument NOSIDE. Update all callers.
4516 * valops.c (find_overload_match): New argument NOSIDE.
4517 * value.h (find_overload_match): Update signature.
4518
940df408
SC
45192014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4520
4521 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4522 'items' methods instead of 'iteritems' method on dictionaries.
4523
699ca60a
DE
45242014-08-15 Doug Evans <dje@google.com>
4525
4526 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4527 closer to use.
4528
37780ee5
DE
45292014-08-15 Doug Evans <dje@google.com>
4530
4531 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4532
0ad93d4f
DE
45332014-08-15 Doug Evans <dje@google.com>
4534
4535 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4536
20d8c372
DE
45372014-08-15 Doug Evans <dje@google.com>
4538
4539 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4540 unused.
4541
cb039ba4
EZ
45422014-08-15 Eli Zaretskii <eliz@gnu.org>
4543
4544 * dcache.h: Include target.h, to avoid compile time warnings.
4545
eb7a547a
JB
45462014-08-15 Joel Brobecker <brobecker@adacore.com>
4547
4548 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4549 frame_info" partial declaration.
4550 * gdbarch.h: Regenerate.
4551
783cecc8
YQ
45522014-08-15 Yao Qi <yao@codesourcery.com>
4553
4554 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4555 Add parameter 'decode_for_pst_p'. Callers update.
4556
65c749e7
YQ
45572014-08-13 Yao Qi <yao@codesourcery.com>
4558
4559 PR build/17104
4560 * configure.ac: Use local variable 'pos'.
4561 * configure: Regenerated.
4562
d769e349
DE
45632014-08-11 Doug Evans <dje@google.com>
4564
4565 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4566 message, it is redundant with "Reading symbols from ..." message.
4567
24f1235e
DE
45682014-08-10 Doug Evans <xdje42@gmail.com>
4569
4570 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4571
dcd2e6ef
YQ
45722014-08-09 Yao Qi <yao@codesourcery.com>
4573
4574 PR remote/9053
4575 * remote.c (remote_xfer_partial): Remove dead code.
4576
070bdf0b
AA
45772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4578
4579 * ia64-linux-tdep.c: Include "regset.h".
4580 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4581 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4582 (ia64_linux_supply_fpregset): New function.
4583 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4584 (ia64_linux_regset_from_core_section): New function.
4585 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4586 method.
4587
08f9f542
AA
45882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4589
4590 * m68klinux-tdep.c: Include "regset.h".
4591 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4592 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4593 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4594 (m68k_linux_regset_from_core_section): New function.
4595 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4596 method.
4597
8f1cee41
AA
45982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4599
4600 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4601 function. Move logic to...
4602 (tilegx_linux_regmap): ... this new register map.
4603 (tilegx_linux_regset): Refer to register map, replace supply
4604 method by regcache_supply_regset, and add collect method.
4605 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4606 TILEGX_FIRST_EASY_REGNUM.
4607
c5741217
AA
46082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4609
4610 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4611 that calls regcache_supply_regset and handles the EPC register
4612 separately. Move main logic to...
4613 (score7_linux_gregmap): ... this new register map.
4614 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4615 (score7_linux_gregset): Refer to register map. Add collect method.
4616 (score7_linux_regset_from_core_section): Replace
4617 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4618 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4619 (struct regset): Delete unused forward declaraction.
4620 (struct pt_regs): Delete structure definition.
4621 (elf_gregset_t): Delete typedef.
4622
81580573
AA
46232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4624
4625 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4626 (nios2_core_regset): Add collect method.
4627
ba199d7d
AA
46282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4629
4630 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4631 platform-independent and don't write to read-only input buffer.
4632 (m32r_linux_collect_gregset): New function.
4633 (m32r_linux_gregset): Add collect method.
4634
0006a9da
AA
46352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4636
4637 * hppa-linux-tdep.c (greg_map): Rename to...
4638 (hppa_linux_gregmap): ... this. Also convert to
4639 regcache_map_entry format.
4640 (hppa_linux_supply_regset): Delete function.
4641 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4642 (hppa_linux_fpregmap): ... this new register map.
4643 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4644 register map, replace supply method by regcache_supply_regset, and
4645 add collect method regcache_collect_regset.
4646
901e1b23
AA
46472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4648
4649 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4650 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4651 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4652 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4653 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4654 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4655 (frv_linux_supply_gregset): Replace main logic by call to
4656 regcache_supply_regset, but keep clearing gr32-gr63.
4657 (frv_linux_supply_fpregset): Delete function.
4658 (frv_linux_gregset): Refer to appropriate register map and add
4659 regcache_collect_regset as the collect method.
4660 (frv_linux_fpregset): Likewise. Also exchange the supply method
4661 by regcache_supply_regset.
4662
1d6e7555
AA
46632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4664
4665 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4666 by call to alpha_supply_int_regs.
4667 (alpha_linux_collect_gregset): New function.
4668 (alpha_linux_supply_fpregset): Replace logic by call to
4669 alpha_supply_fp_regs.
4670 (alpha_linux_collect_fpregset): New function.
4671 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4672
d4d793bf
AA
46732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4674
4675 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4676 by call to regcache_collect_regset.
4677 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4678 instead of aarch64_linux_supply_gregset/_fpregset.
4679 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4680 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4681 header file instead.
4682 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4683 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4684 functions. Move logic to ...
4685 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4686 register maps.
4687 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4688 refer to new register maps, replace *_regset_from_core by
4689 regcache_supply_regset, and also use regcache_collect_regset.
4690 * aarch64-linux-tdep.h: Include "regset.h".
4691 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4692 Delete prototypes.
4693 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4694 macros, moved from C source file.
4695 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4696 variable declarations.
4697
99b7da5d
AA
46982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699
4700 * s390-linux-nat.c: Include "regset.h".
4701 (regmap_gregset): Delete macro.
4702 (s390_64_regmap_gregset): New register map for
4703 regcache_supply/_collect_regset.
4704 (s390_64_gregset): New regset.
4705 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4706 (regmap_fpregset): Delete macro.
4707 (s390_native_supply, s390_native_collect): Delete functions.
4708 (supply_gregset, fill_gregset): Replace s390-specific regmap
4709 handling by a call to regcache_supply/_collect_regset.
4710 (supply_fpregset, fill_fpregset): Call regcache_supply/
4711 _collect_regset instead of s390_native_supply/_collect.
4712 (fetch_regset, store_regset): Likewise. Also change the last
4713 parameter to a regset instead of a regmap.
4714 (s390_linux_fetch_inferior_registers)
4715 (390_linux_store_inferior_registers): Adjust last parameter in
4716 calls to fetch_regset and store_regset.
4717 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4718 (s390_gregmap): ... this. Also make static const and convert to
4719 regcache_map_entry format.
4720 (s390x_regmap_gregset): Delete.
4721 (s390_regmap_fpregset): Rename to...
4722 (s390_fpregmap): ... this. Make static const and convert to
4723 regcache_map_entry format.
4724 (s390_regmap_upper, s390_regmap_last_break)
4725 (s390x_regmap_last_break, s390_regmap_system_call)
4726 (s390_regmap_tdb): Likewise.
4727 (s390_supply_regset, s390_collect_regset): Remove functions.
4728 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4729 s390_supply_regset.
4730 (s390_gregset, s390_fpregset, s390_upper_regset)
4731 (s390_last_break_regset, s390x_last_break_regset)
4732 (s390_system_call_regset, s390_tdb_regset): Make global and
4733 replace s390_supply/_collect_regset by regcache_supply/
4734 _collect_regset.
4735 (s390x_gregset): Delete.
4736 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4737 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4738 (s390_regmap_fpregset, s390_regmap_last_break)
4739 (s390x_regmap_last_break, s390_regmap_system_call)
4740 (s390_regmap_tdb): Delete global variable declarations.
4741 (s390_gregset, s390_fpregset, s390_last_break_regset)
4742 (s390x_last_break_regset, s390_system_call_regset)
4743 (s390_tdb_regset): New global variable declarations.
4744
0b309272
AA
47452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4746
4747 * regcache.c: Include "regset.h".
4748 (regcache_transfer_regset): New local function.
4749 (regcache_supply_regset, regcache_collect_regset): New functions.
4750 * regcache.h (struct regcache_map_entry): New structure.
4751 (REGCACHE_MAP_SKIP): New enum value.
4752 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4753
7fefa8d7
AA
47542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4755
4756 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4757 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4758 (ppc_linux_collect_gregset ): Likewise.
4759 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4760 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4761 (ppc_collect_vrregset): Likewise.
4762 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4763 Likewise.
4764
96c4f946
YQ
47652014-08-07 Yao Qi <yao@codesourcery.com>
4766
4767 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4768 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4769 * remote.c (remote_read_bytes): Likewise.
4770
fffbe6a8
YQ
47712014-08-07 Yao Qi <yao@codesourcery.com>
4772
4773 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4774
5ee8a82c
YQ
47752014-08-07 Yao Qi <yao@codesourcery.com>
4776
4777 PR remote/17230
4778 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4779 TARGET_XFER_OK instead of 0.
4780
bb974a24
GB
47812014-08-07 Gary Benson <gbenson@redhat.com>
4782
4783 * common/common-defs.h: Include errno.h.
4784 * defs.h: Do not include errno.h.
4785 * ada-typeprint.c: Likewise.
4786 * c-typeprint.c: Likewise.
4787 * core-regset.c: Likewise.
4788 * corefile.c: Likewise.
4789 * corelow.c: Likewise.
4790 * event-loop.c: Likewise.
4791 * f-typeprint.c: Likewise.
4792 * gnu-nat.c: Likewise.
4793 * go32-nat.c: Likewise.
4794 * i386gnu-nat.c: Likewise.
4795 * m2-typeprint.c: Likewise.
4796 * nat/linux-btrace.c: Likewise.
4797 * p-typeprint.c: Likewise.
4798 * procfs.c: Likewise.
4799 * remote-sim.c: Likewise.
4800 * rs6000-nat.c: Likewise.
4801 * target.c: Likewise.
4802 * typeprint.c: Likewise.
4803 * ui-file.c: Likewise.
4804 * valops.c: Likewise.
4805 * valprint.c: Likewise.
4806
6d3d12eb
GB
48072014-08-07 Gary Benson <gbenson@redhat.com>
4808
4809 * common/common-defs.h: Include string.h.
4810 * aarch64-tdep.c: Do not include string.h.
4811 * ada-exp.y: Likewise.
4812 * ada-lang.c: Likewise.
4813 * ada-lex.l: Likewise.
4814 * ada-typeprint.c: Likewise.
4815 * ada-valprint.c: Likewise.
4816 * aix-thread.c: Likewise.
4817 * alpha-linux-tdep.c: Likewise.
4818 * alpha-mdebug-tdep.c: Likewise.
4819 * alpha-nat.c: Likewise.
4820 * alpha-osf1-tdep.c: Likewise.
4821 * alpha-tdep.c: Likewise.
4822 * alphanbsd-tdep.c: Likewise.
4823 * amd64-dicos-tdep.c: Likewise.
4824 * amd64-linux-tdep.c: Likewise.
4825 * amd64-nat.c: Likewise.
4826 * amd64-sol2-tdep.c: Likewise.
4827 * amd64fbsd-tdep.c: Likewise.
4828 * amd64obsd-tdep.c: Likewise.
4829 * arch-utils.c: Likewise.
4830 * arm-linux-nat.c: Likewise.
4831 * arm-linux-tdep.c: Likewise.
4832 * arm-tdep.c: Likewise.
4833 * arm-wince-tdep.c: Likewise.
4834 * armbsd-tdep.c: Likewise.
4835 * armnbsd-nat.c: Likewise.
4836 * armnbsd-tdep.c: Likewise.
4837 * armobsd-tdep.c: Likewise.
4838 * avr-tdep.c: Likewise.
4839 * ax-gdb.c: Likewise.
4840 * ax-general.c: Likewise.
4841 * bcache.c: Likewise.
4842 * bfin-tdep.c: Likewise.
4843 * breakpoint.c: Likewise.
4844 * build-id.c: Likewise.
4845 * buildsym.c: Likewise.
4846 * c-exp.y: Likewise.
4847 * c-lang.c: Likewise.
4848 * c-typeprint.c: Likewise.
4849 * c-valprint.c: Likewise.
4850 * charset.c: Likewise.
4851 * cli-out.c: Likewise.
4852 * cli/cli-cmds.c: Likewise.
4853 * cli/cli-decode.c: Likewise.
4854 * cli/cli-dump.c: Likewise.
4855 * cli/cli-interp.c: Likewise.
4856 * cli/cli-logging.c: Likewise.
4857 * cli/cli-script.c: Likewise.
4858 * cli/cli-setshow.c: Likewise.
4859 * cli/cli-utils.c: Likewise.
4860 * coffread.c: Likewise.
4861 * common/agent.c: Likewise.
4862 * common/buffer.c: Likewise.
4863 * common/buffer.h: Likewise.
4864 * common/common-utils.c: Likewise.
4865 * common/filestuff.c: Likewise.
4866 * common/filestuff.c: Likewise.
4867 * common/format.c: Likewise.
4868 * common/print-utils.c: Likewise.
4869 * common/rsp-low.c: Likewise.
4870 * common/signals.c: Likewise.
4871 * common/vec.h: Likewise.
4872 * common/xml-utils.c: Likewise.
4873 * core-regset.c: Likewise.
4874 * corefile.c: Likewise.
4875 * corelow.c: Likewise.
4876 * cp-abi.c: Likewise.
4877 * cp-name-parser.y: Likewise.
4878 * cp-support.c: Likewise.
4879 * cp-valprint.c: Likewise.
4880 * cris-tdep.c: Likewise.
4881 * d-exp.y: Likewise.
4882 * darwin-nat.c: Likewise.
4883 * dbxread.c: Likewise.
4884 * dcache.c: Likewise.
4885 * demangle.c: Likewise.
4886 * dicos-tdep.c: Likewise.
4887 * disasm.c: Likewise.
4888 * doublest.c: Likewise.
4889 * dsrec.c: Likewise.
4890 * dummy-frame.c: Likewise.
4891 * dwarf2-frame.c: Likewise.
4892 * dwarf2loc.c: Likewise.
4893 * dwarf2read.c: Likewise.
4894 * elfread.c: Likewise.
4895 * environ.c: Likewise.
4896 * eval.c: Likewise.
4897 * event-loop.c: Likewise.
4898 * exceptions.c: Likewise.
4899 * exec.c: Likewise.
4900 * expprint.c: Likewise.
4901 * f-exp.y: Likewise.
4902 * f-lang.c: Likewise.
4903 * f-typeprint.c: Likewise.
4904 * f-valprint.c: Likewise.
4905 * fbsd-nat.c: Likewise.
4906 * findcmd.c: Likewise.
4907 * findvar.c: Likewise.
4908 * fork-child.c: Likewise.
4909 * frame.c: Likewise.
4910 * frv-linux-tdep.c: Likewise.
4911 * frv-tdep.c: Likewise.
4912 * gdb.c: Likewise.
4913 * gdb_bfd.c: Likewise.
4914 * gdbarch.c: Likewise.
4915 * gdbarch.sh: Likewise.
4916 * gdbtypes.c: Likewise.
4917 * gnu-nat.c: Likewise.
4918 * gnu-v2-abi.c: Likewise.
4919 * gnu-v3-abi.c: Likewise.
4920 * go-exp.y: Likewise.
4921 * go-lang.c: Likewise.
4922 * go32-nat.c: Likewise.
4923 * guile/guile.c: Likewise.
4924 * guile/scm-auto-load.c: Likewise.
4925 * hppa-hpux-tdep.c: Likewise.
4926 * hppa-linux-nat.c: Likewise.
4927 * hppanbsd-tdep.c: Likewise.
4928 * hppaobsd-tdep.c: Likewise.
4929 * i386-cygwin-tdep.c: Likewise.
4930 * i386-dicos-tdep.c: Likewise.
4931 * i386-linux-tdep.c: Likewise.
4932 * i386-nto-tdep.c: Likewise.
4933 * i386-sol2-tdep.c: Likewise.
4934 * i386-tdep.c: Likewise.
4935 * i386bsd-tdep.c: Likewise.
4936 * i386gnu-nat.c: Likewise.
4937 * i386nbsd-tdep.c: Likewise.
4938 * i386obsd-tdep.c: Likewise.
4939 * i387-tdep.c: Likewise.
4940 * ia64-libunwind-tdep.c: Likewise.
4941 * ia64-linux-nat.c: Likewise.
4942 * inf-child.c: Likewise.
4943 * inf-ptrace.c: Likewise.
4944 * inf-ttrace.c: Likewise.
4945 * infcall.c: Likewise.
4946 * infcmd.c: Likewise.
4947 * inflow.c: Likewise.
4948 * infrun.c: Likewise.
4949 * interps.c: Likewise.
4950 * iq2000-tdep.c: Likewise.
4951 * irix5-nat.c: Likewise.
4952 * jv-exp.y: Likewise.
4953 * jv-lang.c: Likewise.
4954 * jv-typeprint.c: Likewise.
4955 * jv-valprint.c: Likewise.
4956 * language.c: Likewise.
4957 * linux-fork.c: Likewise.
4958 * linux-nat.c: Likewise.
4959 * lm32-tdep.c: Likewise.
4960 * m2-exp.y: Likewise.
4961 * m2-typeprint.c: Likewise.
4962 * m32c-tdep.c: Likewise.
4963 * m32r-linux-nat.c: Likewise.
4964 * m32r-linux-tdep.c: Likewise.
4965 * m32r-rom.c: Likewise.
4966 * m32r-tdep.c: Likewise.
4967 * m68hc11-tdep.c: Likewise.
4968 * m68k-tdep.c: Likewise.
4969 * m68kbsd-tdep.c: Likewise.
4970 * m68klinux-nat.c: Likewise.
4971 * m68klinux-tdep.c: Likewise.
4972 * m88k-tdep.c: Likewise.
4973 * machoread.c: Likewise.
4974 * macrocmd.c: Likewise.
4975 * main.c: Likewise.
4976 * mdebugread.c: Likewise.
4977 * mem-break.c: Likewise.
4978 * memattr.c: Likewise.
4979 * memory-map.c: Likewise.
4980 * mep-tdep.c: Likewise.
4981 * mi/mi-cmd-break.c: Likewise.
4982 * mi/mi-cmd-disas.c: Likewise.
4983 * mi/mi-cmd-env.c: Likewise.
4984 * mi/mi-cmd-stack.c: Likewise.
4985 * mi/mi-cmd-var.c: Likewise.
4986 * mi/mi-cmds.c: Likewise.
4987 * mi/mi-console.c: Likewise.
4988 * mi/mi-getopt.c: Likewise.
4989 * mi/mi-interp.c: Likewise.
4990 * mi/mi-main.c: Likewise.
4991 * mi/mi-parse.c: Likewise.
4992 * microblaze-rom.c: Likewise.
4993 * microblaze-tdep.c: Likewise.
4994 * mingw-hdep.c: Likewise.
4995 * minidebug.c: Likewise.
4996 * minsyms.c: Likewise.
4997 * mips-irix-tdep.c: Likewise.
4998 * mips-linux-tdep.c: Likewise.
4999 * mips-tdep.c: Likewise.
5000 * mips64obsd-tdep.c: Likewise.
5001 * mipsnbsd-tdep.c: Likewise.
5002 * mipsread.c: Likewise.
5003 * mn10300-linux-tdep.c: Likewise.
5004 * mn10300-tdep.c: Likewise.
5005 * monitor.c: Likewise.
5006 * moxie-tdep.c: Likewise.
5007 * mt-tdep.c: Likewise.
5008 * nat/linux-btrace.c: Likewise.
5009 * nat/linux-osdata.c: Likewise.
5010 * nat/linux-procfs.c: Likewise.
5011 * nat/linux-ptrace.c: Likewise.
5012 * nat/linux-waitpid.c: Likewise.
5013 * nbsd-tdep.c: Likewise.
5014 * nios2-linux-tdep.c: Likewise.
5015 * nto-procfs.c: Likewise.
5016 * nto-tdep.c: Likewise.
5017 * objc-lang.c: Likewise.
5018 * objfiles.c: Likewise.
5019 * opencl-lang.c: Likewise.
5020 * osabi.c: Likewise.
5021 * osdata.c: Likewise.
5022 * p-exp.y: Likewise.
5023 * p-lang.c: Likewise.
5024 * p-typeprint.c: Likewise.
5025 * parse.c: Likewise.
5026 * posix-hdep.c: Likewise.
5027 * ppc-linux-nat.c: Likewise.
5028 * ppc-sysv-tdep.c: Likewise.
5029 * ppcfbsd-tdep.c: Likewise.
5030 * ppcnbsd-tdep.c: Likewise.
5031 * ppcobsd-tdep.c: Likewise.
5032 * printcmd.c: Likewise.
5033 * procfs.c: Likewise.
5034 * prologue-value.c: Likewise.
5035 * python/py-auto-load.c: Likewise.
5036 * python/py-gdb-readline.c: Likewise.
5037 * ravenscar-thread.c: Likewise.
5038 * regcache.c: Likewise.
5039 * registry.c: Likewise.
5040 * remote-fileio.c: Likewise.
5041 * remote-m32r-sdi.c: Likewise.
5042 * remote-mips.c: Likewise.
5043 * remote-notif.c: Likewise.
5044 * remote-sim.c: Likewise.
5045 * remote.c: Likewise.
5046 * reverse.c: Likewise.
5047 * rs6000-aix-tdep.c: Likewise.
5048 * ser-base.c: Likewise.
5049 * ser-go32.c: Likewise.
5050 * ser-mingw.c: Likewise.
5051 * ser-pipe.c: Likewise.
5052 * ser-tcp.c: Likewise.
5053 * ser-unix.c: Likewise.
5054 * serial.c: Likewise.
5055 * sh-tdep.c: Likewise.
5056 * sh64-tdep.c: Likewise.
5057 * shnbsd-tdep.c: Likewise.
5058 * skip.c: Likewise.
5059 * sol-thread.c: Likewise.
5060 * solib-dsbt.c: Likewise.
5061 * solib-frv.c: Likewise.
5062 * solib-osf.c: Likewise.
5063 * solib-som.c: Likewise.
5064 * solib-spu.c: Likewise.
5065 * solib-target.c: Likewise.
5066 * solib.c: Likewise.
5067 * somread.c: Likewise.
5068 * source.c: Likewise.
5069 * sparc-nat.c: Likewise.
5070 * sparc-sol2-tdep.c: Likewise.
5071 * sparc-tdep.c: Likewise.
5072 * sparc64-tdep.c: Likewise.
5073 * sparc64fbsd-tdep.c: Likewise.
5074 * sparc64nbsd-tdep.c: Likewise.
5075 * sparcnbsd-tdep.c: Likewise.
5076 * spu-linux-nat.c: Likewise.
5077 * spu-multiarch.c: Likewise.
5078 * spu-tdep.c: Likewise.
5079 * stabsread.c: Likewise.
5080 * stack.c: Likewise.
5081 * std-regs.c: Likewise.
5082 * symfile.c: Likewise.
5083 * symmisc.c: Likewise.
5084 * symtab.c: Likewise.
5085 * target.c: Likewise.
5086 * thread.c: Likewise.
5087 * tilegx-linux-nat.c: Likewise.
5088 * tilegx-tdep.c: Likewise.
5089 * top.c: Likewise.
5090 * tracepoint.c: Likewise.
5091 * tui/tui-command.c: Likewise.
5092 * tui/tui-data.c: Likewise.
5093 * tui/tui-disasm.c: Likewise.
5094 * tui/tui-file.c: Likewise.
5095 * tui/tui-layout.c: Likewise.
5096 * tui/tui-out.c: Likewise.
5097 * tui/tui-regs.c: Likewise.
5098 * tui/tui-source.c: Likewise.
5099 * tui/tui-stack.c: Likewise.
5100 * tui/tui-win.c: Likewise.
5101 * tui/tui-windata.c: Likewise.
5102 * tui/tui-winsource.c: Likewise.
5103 * typeprint.c: Likewise.
5104 * ui-file.c: Likewise.
5105 * ui-out.c: Likewise.
5106 * user-regs.c: Likewise.
5107 * utils.c: Likewise.
5108 * v850-tdep.c: Likewise.
5109 * valarith.c: Likewise.
5110 * valops.c: Likewise.
5111 * valprint.c: Likewise.
5112 * value.c: Likewise.
5113 * varobj.c: Likewise.
5114 * vax-tdep.c: Likewise.
5115 * vaxnbsd-tdep.c: Likewise.
5116 * vaxobsd-tdep.c: Likewise.
5117 * windows-nat.c: Likewise.
5118 * xcoffread.c: Likewise.
5119 * xml-support.c: Likewise.
5120 * xstormy16-tdep.c: Likewise.
5121 * xtensa-linux-nat.c: Likewise.
5122
dccbb609
GB
51232014-08-07 Gary Benson <gbenson@redhat.com>
5124
5125 * common/common-defs.h: Include gdb_assert.h.
5126 * aarch64-tdep.c: Do not include gdb_assert.h.
5127 * addrmap.c: Likewise.
5128 * aix-thread.c: Likewise.
5129 * alpha-linux-tdep.c: Likewise.
5130 * alpha-mdebug-tdep.c: Likewise.
5131 * alphanbsd-tdep.c: Likewise.
5132 * amd64-nat.c: Likewise.
5133 * amd64-tdep.c: Likewise.
5134 * amd64bsd-nat.c: Likewise.
5135 * amd64fbsd-nat.c: Likewise.
5136 * amd64fbsd-tdep.c: Likewise.
5137 * amd64nbsd-nat.c: Likewise.
5138 * amd64nbsd-tdep.c: Likewise.
5139 * amd64obsd-nat.c: Likewise.
5140 * amd64obsd-tdep.c: Likewise.
5141 * arch-utils.c: Likewise.
5142 * arm-tdep.c: Likewise.
5143 * armbsd-tdep.c: Likewise.
5144 * auxv.c: Likewise.
5145 * bcache.c: Likewise.
5146 * bfin-tdep.c: Likewise.
5147 * blockframe.c: Likewise.
5148 * breakpoint.c: Likewise.
5149 * bsd-kvm.c: Likewise.
5150 * bsd-uthread.c: Likewise.
5151 * buildsym.c: Likewise.
5152 * c-exp.y: Likewise.
5153 * c-lang.c: Likewise.
5154 * charset.c: Likewise.
5155 * cleanups.c: Likewise.
5156 * cli-out.c: Likewise.
5157 * cli/cli-decode.c: Likewise.
5158 * cli/cli-dump.c: Likewise.
5159 * cli/cli-logging.c: Likewise.
5160 * cli/cli-script.c: Likewise.
5161 * cli/cli-utils.c: Likewise.
5162 * coffread.c: Likewise.
5163 * common/common-utils.c: Likewise.
5164 * common/queue.h: Likewise.
5165 * common/signals.c: Likewise.
5166 * common/vec.h: Likewise.
5167 * complaints.c: Likewise.
5168 * completer.c: Likewise.
5169 * corelow.c: Likewise.
5170 * cp-abi.c: Likewise.
5171 * cp-name-parser.y: Likewise.
5172 * cp-namespace.c: Likewise.
5173 * cp-support.c: Likewise.
5174 * cris-tdep.c: Likewise.
5175 * dbxread.c: Likewise.
5176 * dictionary.c: Likewise.
5177 * doublest.c: Likewise.
5178 * dsrec.c: Likewise.
5179 * dummy-frame.c: Likewise.
5180 * dwarf2-frame-tailcall.c: Likewise.
5181 * dwarf2-frame.c: Likewise.
5182 * dwarf2expr.c: Likewise.
5183 * dwarf2loc.c: Likewise.
5184 * dwarf2read.c: Likewise.
5185 * eval.c: Likewise.
5186 * event-loop.c: Likewise.
5187 * exceptions.c: Likewise.
5188 * expprint.c: Likewise.
5189 * f-valprint.c: Likewise.
5190 * fbsd-nat.c: Likewise.
5191 * findvar.c: Likewise.
5192 * frame-unwind.c: Likewise.
5193 * frame.c: Likewise.
5194 * frv-tdep.c: Likewise.
5195 * gcore.c: Likewise.
5196 * gdb-dlfcn.c: Likewise.
5197 * gdb_bfd.c: Likewise.
5198 * gdbarch.c: Likewise.
5199 * gdbarch.sh: Likewise.
5200 * gdbtypes.c: Likewise.
5201 * gnu-nat.c: Likewise.
5202 * gnu-v3-abi.c: Likewise.
5203 * go-lang.c: Likewise.
5204 * guile/scm-exception.c: Likewise.
5205 * guile/scm-gsmob.c: Likewise.
5206 * guile/scm-lazy-string.c: Likewise.
5207 * guile/scm-math.c: Likewise.
5208 * guile/scm-pretty-print.c: Likewise.
5209 * guile/scm-safe-call.c: Likewise.
5210 * guile/scm-utils.c: Likewise.
5211 * guile/scm-value.c: Likewise.
5212 * h8300-tdep.c: Likewise.
5213 * hppa-hpux-nat.c: Likewise.
5214 * hppa-tdep.c: Likewise.
5215 * hppanbsd-tdep.c: Likewise.
5216 * hppaobsd-tdep.c: Likewise.
5217 * i386-darwin-nat.c: Likewise.
5218 * i386-darwin-tdep.c: Likewise.
5219 * i386-nto-tdep.c: Likewise.
5220 * i386-tdep.c: Likewise.
5221 * i386bsd-nat.c: Likewise.
5222 * i386fbsd-tdep.c: Likewise.
5223 * i386gnu-nat.c: Likewise.
5224 * i386nbsd-tdep.c: Likewise.
5225 * i386obsd-tdep.c: Likewise.
5226 * i387-tdep.c: Likewise.
5227 * ia64-libunwind-tdep.c: Likewise.
5228 * ia64-tdep.c: Likewise.
5229 * inf-ptrace.c: Likewise.
5230 * inf-ttrace.c: Likewise.
5231 * infcall.c: Likewise.
5232 * infcmd.c: Likewise.
5233 * infrun.c: Likewise.
5234 * inline-frame.c: Likewise.
5235 * interps.c: Likewise.
5236 * jv-lang.c: Likewise.
5237 * jv-typeprint.c: Likewise.
5238 * linux-fork.c: Likewise.
5239 * linux-nat.c: Likewise.
5240 * linux-thread-db.c: Likewise.
5241 * m32c-tdep.c: Likewise.
5242 * m32r-linux-nat.c: Likewise.
5243 * m32r-tdep.c: Likewise.
5244 * m68k-tdep.c: Likewise.
5245 * m68kbsd-nat.c: Likewise.
5246 * m68kbsd-tdep.c: Likewise.
5247 * m88k-tdep.c: Likewise.
5248 * machoread.c: Likewise.
5249 * macroexp.c: Likewise.
5250 * macrotab.c: Likewise.
5251 * maint.c: Likewise.
5252 * mdebugread.c: Likewise.
5253 * memory-map.c: Likewise.
5254 * mep-tdep.c: Likewise.
5255 * mi/mi-common.c: Likewise.
5256 * microblaze-tdep.c: Likewise.
5257 * mingw-hdep.c: Likewise.
5258 * mips-linux-nat.c: Likewise.
5259 * mips-linux-tdep.c: Likewise.
5260 * mips-tdep.c: Likewise.
5261 * mips64obsd-tdep.c: Likewise.
5262 * mipsnbsd-tdep.c: Likewise.
5263 * mn10300-linux-tdep.c: Likewise.
5264 * mn10300-tdep.c: Likewise.
5265 * moxie-tdep.c: Likewise.
5266 * mt-tdep.c: Likewise.
5267 * nat/linux-btrace.c: Likewise.
5268 * nat/linux-osdata.c: Likewise.
5269 * nat/linux-ptrace.c: Likewise.
5270 * nat/mips-linux-watch.c: Likewise.
5271 * nios2-linux-tdep.c: Likewise.
5272 * nios2-tdep.c: Likewise.
5273 * objc-lang.c: Likewise.
5274 * objfiles.c: Likewise.
5275 * obsd-nat.c: Likewise.
5276 * opencl-lang.c: Likewise.
5277 * osabi.c: Likewise.
5278 * parse.c: Likewise.
5279 * ppc-linux-nat.c: Likewise.
5280 * ppc-sysv-tdep.c: Likewise.
5281 * ppcfbsd-nat.c: Likewise.
5282 * ppcfbsd-tdep.c: Likewise.
5283 * ppcnbsd-nat.c: Likewise.
5284 * ppcnbsd-tdep.c: Likewise.
5285 * ppcobsd-nat.c: Likewise.
5286 * ppcobsd-tdep.c: Likewise.
5287 * printcmd.c: Likewise.
5288 * procfs.c: Likewise.
5289 * prologue-value.c: Likewise.
5290 * psymtab.c: Likewise.
5291 * python/py-lazy-string.c: Likewise.
5292 * python/py-value.c: Likewise.
5293 * regcache.c: Likewise.
5294 * reggroups.c: Likewise.
5295 * registry.c: Likewise.
5296 * remote-sim.c: Likewise.
5297 * remote.c: Likewise.
5298 * rs6000-aix-tdep.c: Likewise.
5299 * rs6000-tdep.c: Likewise.
5300 * s390-linux-tdep.c: Likewise.
5301 * score-tdep.c: Likewise.
5302 * ser-base.c: Likewise.
5303 * ser-mingw.c: Likewise.
5304 * sh-tdep.c: Likewise.
5305 * sh64-tdep.c: Likewise.
5306 * solib-darwin.c: Likewise.
5307 * solib-spu.c: Likewise.
5308 * solib-svr4.c: Likewise.
5309 * source.c: Likewise.
5310 * sparc-nat.c: Likewise.
5311 * sparc-sol2-tdep.c: Likewise.
5312 * sparc-tdep.c: Likewise.
5313 * sparc64-sol2-tdep.c: Likewise.
5314 * sparc64-tdep.c: Likewise.
5315 * sparc64fbsd-tdep.c: Likewise.
5316 * sparc64nbsd-tdep.c: Likewise.
5317 * sparc64obsd-tdep.c: Likewise.
5318 * sparcnbsd-tdep.c: Likewise.
5319 * sparcobsd-tdep.c: Likewise.
5320 * spu-multiarch.c: Likewise.
5321 * spu-tdep.c: Likewise.
5322 * stabsread.c: Likewise.
5323 * stack.c: Likewise.
5324 * symfile.c: Likewise.
5325 * symtab.c: Likewise.
5326 * target-descriptions.c: Likewise.
5327 * target-memory.c: Likewise.
5328 * target.c: Likewise.
5329 * tic6x-linux-tdep.c: Likewise.
5330 * tic6x-tdep.c: Likewise.
5331 * tilegx-linux-nat.c: Likewise.
5332 * tilegx-tdep.c: Likewise.
5333 * top.c: Likewise.
5334 * tramp-frame.c: Likewise.
5335 * tui/tui-out.c: Likewise.
5336 * tui/tui-winsource.c: Likewise.
5337 * ui-out.c: Likewise.
5338 * user-regs.c: Likewise.
5339 * utils.c: Likewise.
5340 * v850-tdep.c: Likewise.
5341 * valops.c: Likewise.
5342 * value.c: Likewise.
5343 * varobj.c: Likewise.
5344 * vax-nat.c: Likewise.
5345 * xml-syscall.c: Likewise.
5346 * xml-tdesc.c: Likewise.
5347 * xstormy16-tdep.c: Likewise.
5348 * xtensa-linux-nat.c: Likewise.
5349 * xtensa-tdep.c: Likewise.
5350
e76df0d0
GB
53512014-08-07 Gary Benson <gbenson@redhat.com>
5352
5353 * common/common-defs.h: Include common-utils.h.
5354 * defs.h: Do not include common-utils.h.
5355 * common/gdb_assert.h: Likewise.
5356 * darwin-nat.h: Likewise.
5357 * nat/linux-btrace.c: Likewise.
5358 * target/waitstatus.h: Likewise.
5359
4cb9c816
GB
53602014-08-07 Gary Benson <gbenson@redhat.com>
5361
5362 * common/common-defs.h: Include ptid.h.
5363 * defs.h: Do not include ptid.h.
5364 * inferior.h: Likewise.
5365 * infrun.h: Likewise.
5366 * nat/linux-btrace.h: Likewise.
5367 * nat/linux-osdata.h: Likewise.
5368 * target/waitstatus.h: Likewise.
5369
3995eeee
GB
53702014-08-07 Gary Benson <gbenson@redhat.com>
5371
5372 * common/common-defs.h: Include gdb_locale.h.
5373 * defs.h: Do not include gdb_locale.h.
5374
cb9f1a9b
GB
53752014-08-07 Gary Benson <gbenson@redhat.com>
5376
5377 * common/common-defs.h: Include gdb/signals.h.
5378 * defs.h: Do not include gdb/signals.h.
5379
a5fceff8
GB
53802014-08-07 Gary Benson <gbenson@redhat.com>
5381
5382 * common/common-defs.h: Include pathmax.h.
5383 * defs.h: Do not include pathmax.h.
5384
b9391142
GB
53852014-08-07 Gary Benson <gbenson@redhat.com>
5386
5387 * common/common-defs.h: Include libiberty.h.
5388 * defs.h: Do not include libiberty.h.
5389 * common/queue.h: Likewise.
5390 * cp-name-parser.y: Likewise.
5391 * mi/mi-cmd-catch.c: Likewise.
5392 * python/python.c: Likewise.
5393
0e443c87
GB
53942014-08-07 Gary Benson <gbenson@redhat.com>
5395
5396 * common/common-defs.h: Include ansidecl.h.
5397 * defs.h: Do not include ansidecl.h.
5398 * common/buffer.h: Likewise.
5399 * common/common-utils.h: Likewise.
5400
8ebb3f56
GB
54012014-08-07 Gary Benson <gbenson@redhat.com>
5402
5403 * common/common-defs.h: Include stddef.h.
5404 * defs.h: Do not include stddef.h.
5405 * common/common-utils.h: Likewise.
5406 * amd64fbsd-nat.c: Likewise.
5407 * bcache.c: Likewise.
5408 * charset.c: Likewise.
5409 * common/buffer.h: Likewise.
5410 * common/vec.h: Likewise.
5411 * i386bsd-nat.c: Likewise.
5412 * nat/linux-btrace.h: Likewise.
5413 * ppcfbsd-nat.c: Likewise.
5414 * ppcnbsd-tdep.h: Likewise.
5415 * ppcobsd-nat.c: Likewise.
5416 * ppcobsd-tdep.h: Likewise.
5417 * python/py-gdb-readline.c: Likewise.
5418
8980bdf6
GB
54192014-08-07 Gary Benson <gbenson@redhat.com>
5420
5421 * common/common-defs.h: Include stdarg.h.
5422 * defs.h: Do not include stdarg.h.
5423 * ada-lang.c: Likewise.
5424 * common/common-utils.h: Likewise.
5425 * guile/scm-string.c: Likewise.
5426 * guile/scm-utils.c: Likewise.
5427 * m32c-tdep.c: Likewise.
5428
d7096f71
GB
54292014-08-07 Gary Benson <gbenson@redhat.com>
5430
5431 * common/common-defs.h: Include stdlib.h.
5432 * defs.h: Do not include stdlib.h.
5433 * addrmap.c: Likewise.
5434 * bcache.c: Likewise.
5435 * common/buffer.c: Likewise.
5436 * common/common-utils.c: Likewise.
5437 * cp-name-parser.y: Likewise.
5438 * go32-nat.c: Likewise.
5439 * mn10300-linux-tdep.c: Likewise.
5440 * nat/linux-osdata.c: Likewise.
5441 * tui/tui.c: Likewise.
5442 * windows-nat.c: Likewise.
5443
d02f550d
GB
54442014-08-07 Gary Benson <gbenson@redhat.com>
5445
5446 * common/common-defs.h: Include stdio.h.
5447 * defs.h: Do not include stdio.h.
5448 * ada-lang.c: Likewise.
5449 * common/buffer.c: Likewise.
5450 * common/common-utils.c: Likewise.
5451 * cp-name-parser.y: Likewise.
5452 * gnu-nat.c: Likewise.
5453 * go32-nat.c: Likewise.
5454 * i386gnu-nat.c: Likewise.
5455 * proc-api.c: Likewise.
5456 * proc-events.c: Likewise.
5457 * proc-flags.c: Likewise.
5458 * proc-why.c: Likewise.
5459 * python/python-internal.h: Likewise.
5460 * target-memory.c: Likewise.
5461 * tui/tui-io.c: Likewise.
5462 * tui/tui.c: Likewise.
5463
b6d7a4bf
SM
54642014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5465
5466 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5467 (scan_dyntag_auxv): Same.
5468
af19829b
YQ
54692014-08-06 Yao Qi <yao@codesourcery.com>
5470
5471 * amd64-linux-nat.c: Remove duplicated include
5472 "x86-linux-nat.h".
5473 * i386-linux-nat.c: Likewise.
5474
8e07a239
YQ
54752014-08-06 Yao Qi <yao@codesourcery.com>
5476
5477 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5478 operand" with "Special opcode" in comments.
5479
7bfe8241
GB
54802014-08-05 Gary Benson <gbenson@redhat.com>
5481
5482 * interps.c (initialize_interps): Remove prototype.
5483 (interpreter_initialized): Remove static global.
5484 (interp_add): Do not call initialize_interps.
5485 (initialize_interps): Remove function.
5486
d6c95504
GB
54872014-08-05 Gary Benson <gbenson@redhat.com>
5488
5489 * utils.c (vwarning): Remove spurious va_end.
5490
241fd515
AM
54912014-08-05 Alan Modra <amodra@gmail.com>
5492
5493 * charset.c (convert_between_encodings): Cast result of obstack_base.
5494 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5495 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5496 (read_unwind_info): Use size_t for some locals.
5497 * jit.c (finalize_symtab): Likewise.
5498 * utils.c (hashtab_obstack_allocate): Likewise.
5499 * symmisc.c (print_objfile_statistics): Update format strings.
5500
dc304a94
JK
55012014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5502
5503 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5504 (Changes in GDB 7.8): ... here.
5505
3cecbbbe
TT
55062014-08-04 Tom Tromey <tromey@redhat.com>
5507
5508 * target.c (set_targetdebug): New function.
5509 (initialize_targets): Pass set_targetdebug when creating "set
5510 debug target".
5511
6908c509
JB
55122014-08-01 Joel Brobecker <brobecker@adacore.com>
5513
5514 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5515 if detecting a variable-sized field that is not the last field.
5516 Fix struct type length computation.
5517
53e8f97d
JB
55182014-08-01 Joel Brobecker <brobecker@adacore.com>
5519
5520 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5521 Add debug trace.
5522
e068c55d
JB
55232014-08-01 Joel Brobecker <brobecker@adacore.com>
5524
5525 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5526 Remove "+ 8" offset in computation of CHAIN_VMA.
5527
4d4ca2a1
DE
55282014-07-31 Doug Evans <dje@google.com>
5529
5530 * inflow.c (child_terminal_inferior): Add comment.
5531 (child_terminal_ours_for_output): Add comment.
5532 (child_terminal_ours): Add comment.
5533 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5534 (linux_nat_terminal_ours): Add comment.
5535
462f517e
GB
55362014-07-31 Gary Benson <gbenson@redhat.com>
5537
5538 * common/btrace-common.h: Do not include defs.h or server.h.
5539 * nat/mips-linux-watch.h: Likewise.
5540 * gdb-dlfcn.h: Do not include defs.h.
5541 * tracefile.h: Likewise.
5542
74228e77
RM
55432014-07-30 Roland McGrath <mcgrathr@google.com>
5544
5545 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5546
014f9477
TT
55472014-07-30 Tom Tromey <tromey@redhat.com>
5548
5549 * bsd-kvm.c (bsd_kvm_open): Constify.
5550 * corelow.c (core_open): Constify.
5551 * ctf.c (ctf_open): Constify.
5552 * dbug-rom.c (dbug_open): Constify.
5553 * exec.c (exec_open): Constify.
5554 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5555 * microblaze-rom.c (picobug_open): Constify.
5556 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5557 Constify.
5558 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5559 * record-btrace.c (record_btrace_open): Constify.
5560 * record-full.c (record_full_core_open_1, record_full_open_1)
5561 (record_full_open): Constify.
5562 * remote-m32r-sdi.c (m32r_open): Constify.
5563 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5564 (rockhopper_open, lsi_open): Constify.
5565 * remote-sim.c (gdbsim_open): Constify.
5566 * remote.c (remote_open, extended_remote_open, remote_open_1):
5567 Constify.
5568 * target.h (struct target_ops) <to_open>: Make "arg" const.
5569 * tracefile-tfile.c (tfile_open): Constify.
5570
e799154c
TT
55712014-07-30 Tom Tromey <tromey@redhat.com>
5572
5573 * breakpoint.c (map_breakpoint_numbers): Update.
5574 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5575 (get_number_const): New function.
5576 (get_number): Rewrite using get_number_const.
5577 (init_number_or_range): Make "string" const.
5578 (number_is_in_list): Make "list" const.
5579 * cli/cli-utils.h (get_number_const): Declare.
5580 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5581 (init_number_or_range, number_is_in_list): Update.
5582 * printcmd.c (map_display_numbers): Update.
5583 * value.c (value_from_history_ref): Constify.
5584 * value.h (value_from_history_ref): Update.
5585
5f08566b
TT
55862014-07-30 Tom Tromey <tromey@redhat.com>
5587
5588 * corefile.c (hook_type, call_extra_exec_file_hooks)
5589 (specify_exec_file_hook): Constify.
5590 * exec.c (exec_file_attach): Make "filename" const.
5591 * gdbcore.h (deprecated_exec_file_display_hook)
5592 (specify_exec_file_hook, exec_file_attach): Constify.
5593 * main.c (captured_main): Use catch_command_errors_const.
5594
8981c758
TT
55952014-07-30 Tom Tromey <tromey@redhat.com>
5596
5597 * target.c (open_target): New function.
5598 (add_target_with_completer, add_deprecated_target_alias): Use
5599 set_cmd_sfunc, set_cmd_context.
5600 (debug_to_open): Remove.
5601 (setup_target_debug): Update.
5602
a1c7835a
YQ
56032014-07-30 Yao Qi <yao@codesourcery.com>
5604
5605 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5606 comments.
5607 * parse.c (exp_iterate): Update comments.
5608
976411d6
GB
56092014-07-30 Gary Benson <gbenson@redhat.com>
5610
5611 * common/common-defs.h: New file.
5612 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5613 * defs.h: Include common-defs.h.
5614 Do not include config.h or build-gnulib/config.h.
5615
5d4848a4
GB
56162014-07-30 Gary Benson <gbenson@redhat.com>
5617
5618 * common/common-utils.h: Do not include config.h.
5619 * nat/linux-btrace.h: Likewise.
5620
d41f6d8e
GB
56212014-07-30 Gary Benson <gbenson@redhat.com>
5622
5623 * btrace.c: Include defs.h.
5624 * common/ptid.c: Include defs.h or server.h as appropriate.
5625 * nat/mips-linux-watch.c: Likewise.
5626
84202f9c
TT
56272014-07-29 Tom Tromey <tromey@redhat.com>
5628
5629 * target.c (target_is_pushed): Simplify.
5630
2530441c
JB
56312014-07-29 Joel Brobecker <brobecker@adacore.com>
5632
5633 GDB 7.8 released.
5634
7e09a223
YQ
56352014-07-29 Yao Qi <yao@codesourcery.com>
5636
5637 PR gdb/17206
5638 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5639
7ebdbe92
DE
56402014-07-28 Doug Evans <xdje42@gmail.com>
5641
5642 PR guile/17203
5643 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5644 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5645 parameters.
5646
f347ffc9
WN
56472014-07-28 Will Newton <will.newton@linaro.org>
5648
5649 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5650 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5651 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5652 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5653 (THUMB2_EABI_SYSCALL): Likewise.
5654 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5655 struct tramp_frame.
5656 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5657 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5658
37c5f1f7
DE
56592014-07-27 Doug Evans <xdje42@gmail.com>
5660
5661 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5662
0c3abbc7
DE
56632014-07-27 Doug Evans <xdje42@gmail.com>
5664
5665 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5666
e76c5d17
DE
56672014-07-26 Ludovic Courtès <ludo@gnu.org>
5668 Doug Evans <xdje42@gmail.com>
5669
5670 PR guile/17146
5671 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5672 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5673 * configure.ac: Try to use guild to compile an scm file, if it fails
5674 then disable guile support.
5675 * configure: Regenerate.
5676 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5677 GUILE_FILE_LIST.
5678 (GUILE_COMPILED_FILES): New variable.
5679 (GUILE_FILES) Update.
5680 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5681 (stamp-guile): Compile scm files.
5682 * guile/guile.c (boot_guile_support): New function.
5683 (standard_throw_args_p): New function.
5684 (print_standard_throw_error, print_throw_error): New functions.
5685 (handle_boot_error): New function.
5686 (initialize_scheme_side): Rewrite to call boot_guile_support.
5687 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5688 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5689
186fcde0
DE
56902014-07-26 Ludovic Courtès <ludo@gnu.org>
5691 Doug Evans <xdje42@gmail.com>
5692
5693 PR guile/17146
5694 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5695 * guile/lib/gdb/support.scm: New file.
5696 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5697 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5698 All uses updated.
5699 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5700 All uses updated.
5701 (%assert-type): Ditto, and renamed to assert-type.
5702 (%exception-print-style): Delete.
5703
4df42755
DE
57042014-07-26 Doug Evans <xdje42@gmail.com>
5705
5706 PR build/17105
5707 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5708 * configure: Regenerate.
5709 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5710 PYTHON_FILES.
5711 (PYTHON_FILES): New variable.
5712 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5713 (GUILE_FILES): New variable.
5714 (stamp-python, install-python, uninstall-python): Handle empty
5715 file list.
5716 (stamp-guile, install-guile, uninstall-guile): Ditto.
5717
ee7333ae
DE
57182014-07-26 Doug Evans <xdje42@gmail.com>
5719
5720 PR guile/17177
5721 * guile/lib/gdb.scm (pretty-printers): Export.
5722 (set-pretty-printers!): Export.
5723 * guile/lib/gdb/printing.scm (gdb module): Update.
5724 (prepend-pretty-printer!, append-pretty-printer!): Update.
5725 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5726 (pretty_printer_list_var): Delete.
5727 (pretty_printer_list): New static global.
5728 (gdbscm_pretty_printers): New function.
5729 (gdbscm_set_pretty_printers_x): New function.
5730 (ppscm_find_pretty_printer_from_gdb): Update.
5731 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5732 (gdbscm_initialize_pretty_printers): Update.
5733
74edf516
DE
57342014-07-26 Doug Evans <xdje42@gmail.com>
5735
5736 PR 17185
5737 * configure.ac: Add check for header gc/gc.h.
5738 Add check for function setenv.
5739 * configure: Regenerate.
5740 * config.in: Regenerate.
5741 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5742
d54398a7
MR
57432014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5744
5745 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5746 variation in gdbarch matching.
5747
ab16fce8
TT
57482014-07-25 Tom Tromey <tromey@redhat.com>
5749
5750 * exec.c (using_exec_ops): Remove.
5751 (exec_close_1): Update. Remove extraneous block, reindent.
5752 (add_target_sections): Use target_is_pushed.
5753
88056fbb
PA
57542014-07-25 Pedro Alves <palves@redhat.com>
5755
5756 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5757 * monitor.c (monitor_create_inferior): Likewise.
5758 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5759 * remote-sim.c (gdbsim_create_inferior): Likewise.
5760 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5761 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5762 * windows-nat.c (do_initial_windows_stuff): Likewise.
5763
70509625
PA
57642014-07-25 Pedro Alves <palves@redhat.com>
5765
5766 * NEWS: Mention signal passing and "signal" command changes.
5767 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5768 comment.
5769 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5770 call.
5771 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5772 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5773 (jump_command): Adjust clear_proceed_status call.
5774 (signal_command): Warn if other thread that are resumed have
5775 signals that will be delivered. Adjust clear_proceed_status call.
5776 (until_next_command, finish_command)
5777 (proceed_after_attach_callback, attach_command_post_wait)
5778 (attach_command): Adjust clear_proceed_status call.
5779 * infrun.c (proceed_after_vfork_done): Likewise.
5780 (proceed_after_attach_callback): Adjust comment.
5781 (clear_proceed_status_thread): Clear stop_signal if not in pass
5782 state.
5783 (clear_proceed_status_callback): Delete.
5784 (clear_proceed_status): New 'step' parameter. Only clear the
5785 proceed status of threads the command being prepared is about to
5786 resume.
5787 (proceed): If passed in an explicit signal, override stop_signal
5788 with it. Don't pass the last stop signal to the thread we're
5789 resuming.
5790 (init_wait_for_inferior): Adjust clear_proceed_status call.
5791 (switch_back_to_stepped_thread): Clear the signal if it should not
5792 be passed.
5793 * infrun.h (clear_proceed_status): New 'step' parameter.
5794 (user_visible_resume_ptid): Add comment.
5795 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5796 signal is in pass state.
5797 * remote.c (append_pending_thread_resumptions): Likewise.
5798 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5799
d8be2939
TT
58002014-07-25 Tom Tromey <tromey@redhat.com>
5801
5802 * target.h (target_stopped_data_address)
5803 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5804 parentheses.
5805
7d0d9d2b
PL
58062014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5807
5808 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5809 comments.
5810 (avr_pointer_to_address): Likewise.
5811
e9e7f724
TT
58122014-07-24 Tom Tromey <tromey@redhat.com>
5813
5814 * monitor.c (compile_pattern): Update.
5815 * target.h (struct target_ops) <to_shortname, to_longname,
5816 to_doc>: Now const.
5817
1947513d
TT
58182014-07-24 Tom Tromey <tromey@redhat.com>
5819
5820 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5821 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5822 (add_info_alias, add_com): Make "doc" const.
5823 (print_doc_line): Make "str" const.
5824 (delete_cmd): Update.
5825 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5826 (print_doc_line): Update.
5827 * cli/cli-script.c (document_command): Update.
5828 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5829 (add_com, add_info, add_info_alias): Update.
5830 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5831 * python/py-cmd.c (cmdpy_destroyer): Update.
5832
64e61d29
TT
58332014-07-24 Tom Tromey <tromey@redhat.com>
5834
5835 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5836 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5837 (help_cmd_list): Constify.
5838 (lookup_cmd): Update.
5839 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5840 const.
5841 (help_cmd_list, apropos_cmd): Update.
5842 * cli/cli-script.c (show_user): Update.
5843 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5844 * cli/cli-setshow.h (cmd_show_list): Update.
5845 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5846 (cmd_show_list): Update.
5847 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5848 * python/py-cmd.c (cmdpy_destroyer): Update.
5849
429e55ea
TT
58502014-07-24 Tom Tromey <tromey@redhat.com>
5851
5852 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5853 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5854 const.
5855 * command.h (deprecate_cmd): Update.
5856 * maint.c (maintenance_do_deprecate): Add casts.
5857
64669f3b
TT
58582014-07-24 Tom Tromey <tromey@redhat.com>
5859
5860 * cli/cli-decode.c (help_cmd): Make parameter "const".
5861 * cli/cli-decode.h (help_cmd): Update.
5862
d3d3328b
TT
58632014-07-24 Tom Tromey <tromey@redhat.com>
5864
5865 * stack.c (up_silently_base, down_silently_base): Make argument
5866 const.
5867
414842dc
TT
58682014-07-24 Tom Tromey <tromey@redhat.com>
5869
5870 * solib.c (solib_add): Make "pattern" const.
5871 * solib.h (solib_add): Update.
5872
baa336ce
TT
58732014-07-24 Tom Tromey <tromey@redhat.com>
5874
5875 * remote.c (remote_serial_open, print_packet, putpkt)
5876 (putpkt_binary): Constify.
5877 * remote.h (putpkt): Update.
5878
5a19e2d0
TT
58792014-07-24 Tom Tromey <tromey@redhat.com>
5880
5881 * monitor.c (monitor_open): Make "args" const.
5882 * monitor.h (monitor_open): Update.
5883
fc4baa5e
TT
58842014-07-24 Tom Tromey <tromey@redhat.com>
5885
5886 * maint.c (match_bfd_flags): Make "string" const.
5887 (print_bfd_section_info): Remove casts.
5888 (print_objfile_section_info): Make "string" const.
5889
0d5f0dbe
TT
58902014-07-24 Tom Tromey <tromey@redhat.com>
5891
5892 * inf-child.c (inf_child_open_target): Make "arg" const.
5893 * inf-child.h (inf_child_open_target): Update.
5894
41c77899
TT
58952014-07-24 Tom Tromey <tromey@redhat.com>
5896
5897 * environ.c (unset_in_environ): Make "var" const.
5898 * environ.h (unset_in_environ): Update.
5899
93db0d79
TT
59002014-07-24 Tom Tromey <tromey@redhat.com>
5901
5902 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5903 Make "cmd" const.
5904 (scan_filename_with_cleanup): Likewise.
5905 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5906 Make arguments const.
5907 (restore_command): Update.
5908
36d6eb95
PA
59092014-07-24 Pedro Alves <palves@redhat.com>
5910
5911 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5912
8009206a
TT
59132014-07-24 Tom Tromey <tromey@redhat.com>
5914 Gary Benson <gbenson@redhat.com>
5915
5916 * nat/linux-ptrace.c (additional_flags): New global.
5917 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5918 additional_flags; don't check GDBSERVER.
5919 (linux_ptrace_set_additional_flags): New function.
5920 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5921 Declare.
5922 * linux-nat.c (_initialize_linux_nat): Call
5923 linux_ptrace_set_additional_flags.
5924
a7068b60
TT
59252014-07-24 Tom Tromey <tromey@redhat.com>
5926
5927 * make-target-delegates (munge_type, write_debugmethod): New
5928 functions.
5929 (debug_names): New global.
5930 ($TARGET_DEBUG_PRINTER): New global.
5931 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5932 name.
5933 Write debug methods. Generate init_debug_target.
5934 * target-debug.h: New file.
5935 * target-delegates.c: Rebuild.
5936 * target.c: Include target-debug.h.
5937 (debug_target): Hoist definition.
5938 (target_kill, target_get_section_table, target_memory_map)
5939 (target_flash_erase, target_flash_done, target_detach)
5940 (target_disconnect, target_wait, target_resume)
5941 (target_pass_signals, target_program_signals, target_follow_fork)
5942 (target_mourn_inferior, target_search_memory)
5943 (target_thread_address_space, target_close)
5944 (target_find_new_threads, target_core_of_thread)
5945 (target_verify_memory, target_insert_mask_watchpoint)
5946 (target_remove_mask_watchpoint): Remove targetdebug code.
5947 (debug_to_post_attach, debug_to_prepare_to_store)
5948 (debug_to_files_info, debug_to_insert_breakpoint)
5949 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5950 (debug_to_region_ok_for_hw_watchpoint)
5951 (debug_to_can_accel_watchpoint_condition)
5952 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5953 (debug_to_watchpoint_addr_within_range)
5954 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5955 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5956 (debug_to_terminal_init, debug_to_terminal_inferior)
5957 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5958 (debug_to_terminal_save_ours, debug_to_terminal_info)
5959 (debug_to_load, debug_to_post_startup_inferior)
5960 (debug_to_insert_fork_catchpoint)
5961 (debug_to_remove_fork_catchpoint)
5962 (debug_to_insert_vfork_catchpoint)
5963 (debug_to_remove_vfork_catchpoint)
5964 (debug_to_insert_exec_catchpoint)
5965 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5966 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5967 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5968 (setup_target_debug): Call init_debug_target.
5969 * target.h (TARGET_DEBUG_PRINTER): New macro.
5970 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5971 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5972
2c51604d
GB
59732014-07-24 Gary Benson <gbenson@redhat.com>
5974
5975 * exceptions.h (throw_vfatal): Renamed to...
5976 (throw_vquit): New declaration.
5977 (throw_quit): Likewise.
5978 * exceptions.c (throw_vfatal): Renamed to...
5979 (throw_vquit): New function.
5980 (throw_quit): Likewise.
5981 (throw_error): Call throw_verror rather than throw_it.
5982 * utils.h (vfatal): Removed.
5983 (fatal): Likewise.
5984 * utils.c (vfatal): Removed.
5985 (fatal): Likewise.
5986 (internal_verror): Replaced call to fatal with call to throw_quit.
5987 (quit): Replaced calls to fatal with calls to throw_quit.
5988
34211963
ME
59892014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5990
5991 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5992 target_read_code.
5993
a52b4d3e
ME
59942014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5995
5996 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5997 less than zero in conditional expression.
5998
a8bdc56b
TT
59992014-07-23 Tom Tromey <tromey@redhat.com>
6000
6001 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6002 ($INTRO_PART): Don't match whitespace.
6003 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6004 argument matching.
6005 ($METHOD): Add $METHOD_TRAILER.
6006 (trim): Rewrite.
6007 (scan_target_h): New sub.
6008 Change main loop not to collect state.
6009 * target-delegates.c: Rebuild.
6010
91b52240
GB
60112014-07-23 Gary Benson <gbenson@redhat.com>
6012
6013 * cp-support.c (gdb_demangle): Fix build on systems without
6014 sigaltstack.
6015
45326f6f
JK
60162014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6017
6018 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6019 for reference entry value target data value.
6020
e214cf6c
JK
60212014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6022
6023 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6024 value_available_contents_eq.
6025
bddbbedd
PA
60262014-07-22 Pedro Alves <palves@redhat.com>
6027
6028 * value.c (allocate_optimized_out_value): Don't mark value as
6029 non-lazy.
6030
45c71484
JW
60312014-07-22 Jiong Wang <jiong.wang@arm.com>
6032
6033 * MAINTAINERS (Write After Approval): Update my email address.
6034
9597b22a
DE
60352014-07-20 Doug Evans <dje@google.com>
6036
6037 PR server/17147
6038 * remote.c (putpkt_binary): Add text to error message.
6039
91101fe5
YQ
60402014-07-20 Yao Qi <yao@codesourcery.com>
6041
6042 * eval.c: Remove "Chill" from comments.
6043 * gdbtypes.h: Likewise.
6044 * symtab.h: Likewise.
6045
c9402c95
YQ
60462014-07-20 Yao Qi <yao@codesourcery.com>
6047
6048 * std-operator.def: Update comments to TERNOP_SLICE.
6049
ae8fddda
YQ
60502014-07-20 Yao Qi <yao@codesourcery.com>
6051
6052 * std-operator.def: Remove BINOP_RANGE.
6053 * breakpoint.c (watchpoint_exp_is_const): Update.
6054 * expprint.c (dump_subexp_body_standard): Likewise.
6055 * eval.c (init_array_element): Remove dead code.
6056 (evaluate_subexp_standard): Likewise.
6057
9c816640
YQ
60582014-07-20 Yao Qi <yao@codesourcery.com>
6059
6060 * std-operator.def: Remove BINOP_IN.
6061 * breakpoint.c (watchpoint_exp_is_const): Update.
6062 * eval.c (evaluate_subexp_standard): Likewise.
6063 * expprint.c (dump_subexp_body_standard): Likewise.
6064
164224e9
ME
60652014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6066
6067 * microblaze-tdep.c (microblaze_register_names): Add
6068 the rshr and rslr register names.
6069 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6070 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6071 Use of tdesc_numbered_register. Use of
6072 microblaze_register_g_packet_guesses. Use of
6073 tdesc_use_registers. Use of set_gdbarch_register_type.
6074 (microblaze_register_g_packet_guesses): New.
6075 * microblaze-tdep.h (microblaze_reg_num): Add
6076 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6077 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6078 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6079 * features/microblaze-core.xml: New file.
6080 * features/microblaze-stack-protect.xml: New file.
6081 * features/microblaze-with-stack-protect.c: New file.
6082 * features/microblaze-with-stack-protect.xml: New file.
6083 * features/microblaze.xml: New file.
6084 * features/microblaze.c: New file.
6085 * features/Makefile (microblaze-with-stack-protect): Add
6086 microblaze-with-stack-protect microblaze and microblaze-expedite.
6087 * regformats/microblaze-with-stack-protect.dat: New file.
6088 * regformats/microblaze.dat: New file.
6089 * doc/gdb.texinfo (MicroBlaze Features): Added.
6090
e8b2341c
TT
60912014-07-18 Tom Tromey <tromey@redhat.com>
6092
6093 * exec.c (exec_ops): Now static.
6094 * exec.h (exec_ops): Don't declare.
6095
44e89118
TT
60962014-07-18 Tom Tromey <tromey@redhat.com>
6097
6098 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6099 to find_target_beneath.
6100 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6101 find_target_beneath.
6102 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6103
b0ed115f
TT
61042014-07-18 Tom Tromey <tromey@redhat.com>
6105
6106 PR gdb/17130:
6107 * utils.c (quit): Use target_supports_terminal_ours.
6108 * target.h (target_supports_terminal_ours): Declare.
6109 * target.c (target_supports_delete_record): Don't check
6110 to_delete_record against NULL.
6111 (target_supports_terminal_ours): New function.
6112
e75fdfca
TT
61132014-07-18 Tom Tromey <tromey@redhat.com>
6114
6115 PR gdb/17130:
6116 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6117 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6118 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6119 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6120 * windows-nat.c (windows_xfer_partial): Always delegate.
6121 * record-btrace.c (record_btrace_xfer_partial): Simplify
6122 delegation.
6123 (record_btrace_fetch_registers, record_btrace_store_registers)
6124 (record_btrace_prepare_to_store, record_btrace_resume)
6125 (record_btrace_wait, record_btrace_find_new_threads)
6126 (record_btrace_thread_alive): Likewise.
6127 * procfs.c (procfs_xfer_partial): Always delegate.
6128 * corelow.c (core_xfer_partial): Always delegate.
6129 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6130
83814951
TT
61312014-07-18 Tom Tromey <tromey@redhat.com>
6132
6133 * exec.c (exec_make_note_section): Move earlier.
6134
b8b8facf
DE
61352014-07-17 Doug Evans <dje@google.com>
6136
74b49205 6137 PR gdb/17170
b8b8facf
DE
6138 * maint.c (count_symtabs_and_blocks): Handle NULL
6139 current_program_space.
6140 (report_command_stats): Check global enabled flag in addition to
6141 recorded enabled flag.
6142 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6143
69ff6be5
PA
61442014-07-16 Pedro Alves <palves@redhat.com>
6145
6146 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6147
252db1b5
TT
61482014-07-16 Tom Tromey <tromey@redhat.com>
6149
6150 * target.h (struct target_ops) <to_delete_record>: Reformat
6151 comment.
6152
a432721e
TT
61532014-07-16 Tom Tromey <tromey@redhat.com>
6154
6155 * target-delegates.c: Rebuild.
6156
487d9753
PL
61572014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6158
6159 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6160 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6161 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6162 (avr_pointer_to_address): Likewise.
6163 (avr_address_class_type_flags): New function.
6164 (avr_address_class_type_flags_to_name): Likewise.
6165 (avr_address_class_name_to_type_flags): Likewise.
6166 (avr_gdbarch_init): Set address_class_type_flags,
6167 address_class_type_flags_to_name and
6168 address_class_name_to_type_flags.
6169
57745c90
PA
61702014-07-15 Pedro Alves <palves@redhat.com>
6171
6172 * linux-nat.c (kill_callback): Save errno and work with saved
6173 copy.
6174
2d40be18
SM
61752014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6178
572f6555
EBM
61792014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6180
6181 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6182 breakpoint support correctly.
6183
cc1c52ad
PA
61842014-07-14 Pedro Alves <palves@redhat.com>
6185
6186 * utils.c (prompt_for_continue): Call target_terminal_ours.
6187
1e973570
PA
61882014-07-14 Pedro Alves <palves@redhat.com>
6189
6190 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6191 catch_errors. Don't re-enable stdin or notify observers where,
6192 and rethrow error.
6193 (fetch_inferior_event_wrapper): Delete.
6194
93d6eb10
PA
61952014-07-14 Pedro Alves <palves@redhat.com>
6196
6197 PR gdb/17072
6198 * top.c: Include "inf-loop.h".
6199 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6200 field.
6201 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6202 was async before.
6203 (gdb_readline_wrapper): Store whether the target is async, and
6204 make it sync.
6205
0017922d
PA
62062014-07-14 Pedro Alves <palves@redhat.com>
6207
6208 PR gdb/17072
6209 * top.c (gdb_readline_wrapper_line): Tweak comment.
6210 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6211 the input handler callback.
6212
94696ad3
PA
62132014-07-14 Pedro Alves <palves@redhat.com>
6214
6215 PR gdb/17072
6216 * main.c: Include event-top.h.
6217 (handle_command_errors): New function.
6218 (catch_command_errors, catch_command_errors_const): Use it.
6219
9d1e69a2
PA
62202014-07-14 Pedro Alves <palves@redhat.com>
6221
6222 * exceptions.c (catch_command_errors, catch_command_errors_const):
6223 Moved to main.c.
6224 * exceptions.h (catch_command_errors_ftype)
6225 (catch_command_errors_const_ftype): Moved to main.c.
6226 (catch_command_errors, catch_command_errors_const): Delete
6227 declarations.
6228 * main.c (catch_command_errors_ftype)
6229 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6230 (catch_command_errors, catch_command_errors_const)): Moved here
6231 from exceptions.c and make static.
6232
feefc97b
PA
62332014-07-14 Pedro Alves <palves@redhat.com>
6234
6235 * exceptions.c (print_any_exception): Delete.
6236 (catch_exceptions_with_msg): Use exception_print instead of
6237 print_any_exception.
6238 (catch_errors): Use exception_fprintf instead of
6239 print_any_exception.
6240 (catch_command_errors, catch_command_errors_const): Use
6241 exception_print instead of print_any_exception.
6242
c933f875
PA
62432014-07-14 Pedro Alves <palves@redhat.com>
6244
6245 * infcall.c (run_inferior_call): Set 'sync_execution' while
6246 running the inferior call.
6247
feb6f816
PA
62482014-07-14 Pedro Alves <palves@redhat.com>
6249
6250 * value.c (value_contents_equal): Delete function.
6251 * value.h (value_contents_equal): Delete declaration.
6252
d98b7a16
TT
62532014-07-14 Tom Tromey <tromey@redhat.com>
6254
6255 PR exp/17106:
6256 * gdbtypes.c (is_dynamic_type_internal): New function, from
6257 is_dynamic_type.
6258 (is_dynamic_type): Rewrite.
6259 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6260 (resolve_dynamic_struct): Likewise.
6261 (resolve_dynamic_type_internal): New function, from
6262 resolve_dynamic_type.
6263 (resolve_dynamic_type): Rewrite.
6264
548740d6
TT
62652014-07-14 Tom Tromey <tromey@redhat.com>
6266
6267 * target.c (target_require_runnable): Also check record_stratum.
6268 Update comment.
6269
808f7ab1
YQ
62702014-07-11 Yao Qi <yao@codesourcery.com>
6271
6272 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6273 thumb_instruction_restores_sp return true.
6274
540314bd
YQ
62752014-07-11 Yao Qi <yao@codesourcery.com>
6276
6277 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6278 (thumb_in_function_epilogue_p): Call
6279 thumb_instruction_restores_sp.
6280
1db01f22
YQ
62812014-07-11 Yao Qi <yao@codesourcery.com>
6282
6283 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6284 'add sp, #imm'.
6285 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6286
3116063b
GB
62872014-07-11 Gary Benson <gbenson@redhat.com>
6288
6289 * amd64-linux-nat.c (gdbcore.h): Remove include.
6290 (regset.h): Likewise.
6291 (nat/linux-btrace.h): Likewise.
6292 (btrace.h): Likewise.
6293 (gdb_assert.h): Likewise.
6294 (string.h): Likewise.
6295 (sys/uio.h): Likewise.
6296 (sys/debugreg.h): Likewise.
6297 (sys/syscall.h): Likewise.
6298 (sys/procfs.h): Likewise.
6299 (sys/user.h): Likewise.
6300 (asm/ptrace.h): Likewise.
6301 (i386-nat.h): Likewise.
6302 * i386-linux-nat.c (i386-nat.h): Likewise.
6303 (regset.h): Likewise.
6304 (target.h): Likewise.
6305 (linux-nat.h): Likewise.
6306 (nat/linux-btrace.h): Likewise.
6307 (btrace.h): Likewise.
6308 (gdb_assert.h): Likewise.
6309 (string.h): Likewise.
6310 (sys/uio.h): Likewise.
6311 (sys/user.h): Likewise.
6312 (sys/procfs.h): Likewise.
6313 (sys/reg.h): Likewise.
6314 (sys/debugreg.h): Likewise.
6315 (ORIG_EAX): Remove definition.
6316
040baaf6
GB
63172014-07-11 Gary Benson <gbenson@redhat.com>
6318
6319 * i386-linux-nat.h: New file.
6320 * x86-linux-nat.h: Likewise.
6321 * x86-linux-nat.c: Likewise.
6322 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6323 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6324 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6325 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6326 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6327 (PTRACE_SETREGSET): Likewise.
6328 (arch_lwp_info): Now in x86-linux-nat.c.
6329 (have_ptrace_getregset): Now in x86-linux-nat.h.
6330 (x86_linux_dr_get): Now in x86-linux-nat.c.
6331 (x86_linux_dr_set): Likewise.
6332 (x86_linux_dr_get_addr): Likewise.
6333 (x86_linux_dr_get_control): Likewise.
6334 (x86_linux_dr_get_status): Likewise.
6335 (update_debug_registers_callback): Likewise.
6336 (x86_linux_dr_set_control): Likewise.
6337 (x86_linux_dr_set_addr): Likewise.
6338 (x86_linux_prepare_to_resume): Likewise.
6339 (x86_linux_new_thread): Likewise.
6340 (x86_linux_new_fork): Likewise.
6341 (x86_linux_get_thread_area): Likewise.
6342 (super_post_startup_inferior): Likewise.
6343 (x86_linux_child_post_startup_inferior): Likewise.
6344 (AMD64_LINUX_USER64_CS): Likewise.
6345 (AMD64_LINUX_X32_DS): Likewise.
6346 (x86_linux_read_description): Likewise.
6347 (x86_linux_enable_btrace): Likewise.
6348 (x86_linux_disable_btrace): Likewise.
6349 (x86_linux_teardown_btrace): Likewise.
6350 (x86_linux_read_btrace): Likewise.
6351 (x86_linux_create_target): Likewise.
6352 (x86_linux_add_target): Likewise.
6353 * i386-linux-nat.c (x86-linux-nat.h): New include.
6354 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6355 (PTRACE_SETREGSET): Likewise.
6356 (arch_lwp_info): Now in x86-linux-nat.c.
6357 (have_ptrace_getregset): Now in x86-linux-nat.h.
6358 (x86_linux_dr_get): Now in x86-linux-nat.c.
6359 (x86_linux_dr_set): Likewise.
6360 (x86_linux_dr_get_addr): Likewise.
6361 (x86_linux_dr_get_control): Likewise.
6362 (x86_linux_dr_get_status): Likewise.
6363 (update_debug_registers_callback): Likewise.
6364 (x86_linux_dr_set_control): Likewise.
6365 (x86_linux_dr_set_addr): Likewise.
6366 (x86_linux_prepare_to_resume): Likewise.
6367 (x86_linux_new_thread): Likewise.
6368 (x86_linux_new_fork): Likewise.
6369 (x86_linux_get_thread_area): Likewise.
6370 (super_post_startup_inferior): Likewise.
6371 (x86_linux_child_post_startup_inferior): Likewise.
6372 (AMD64_LINUX_USER64_CS): Likewise.
6373 (AMD64_LINUX_X32_DS): Likewise.
6374 (x86_linux_read_description): Likewise.
6375 (x86_linux_enable_btrace): Likewise.
6376 (x86_linux_disable_btrace): Likewise.
6377 (x86_linux_teardown_btrace): Likewise.
6378 (x86_linux_read_btrace): Likewise.
6379 (x86_linux_create_target): Likewise.
6380 (x86_linux_add_target): Likewise.
6381
1aa7e42c
GB
63822014-07-11 Gary Benson <gbenson@redhat.com>
6383
6384 * amd64-linux-nat.c: Comment and whitespace changes.
6385 * i386-linux-nat.c: Comment and whitespace changes.
6386
c1e246a0
GB
63872014-07-11 Gary Benson <gbenson@redhat.com>
6388
6389 * amd64-linux-nat.c (x86_linux_create_target): New function.
6390 (x86_linux_add_target): Likewise.
6391 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6392 * i386-linux-nat.c (x86_linux_create_target): New function.
6393 (x86_linux_add_target): Likewise.
6394 (_initialize_i386_linux_nat): Delegate to the above new functions.
6395
8c420b8d
GB
63962014-07-11 Gary Benson <gbenson@redhat.com>
6397
6398 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6399 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6400 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6401 (ps_get_thread_area): Delegate to the above.
6402
cb1da100
GB
64032014-07-11 Gary Benson <gbenson@redhat.com>
6404
6405 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6406 x86_linux_read_description. All uses updated. amd64-specific
6407 code conditionalized. Conditionalized i386-specific code added.
6408 Redundant cast removed.
6409 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6410 x86_linux_read_description. All uses updated. i386-specific
6411 code conditionalized. Conditionalized amd64-specific code added.
6412 One sizeof replaced with the actual type it is describing.
6413
2acf3cd0
GB
64142014-07-11 Gary Benson <gbenson@redhat.com>
6415
6416 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6417 x86_linux_dr_get. All uses updated.
6418 (amd64_linux_dr_set): Renamed to
6419 x86_linux_dr_set. All uses updated.
6420 (amd64_linux_dr_get_addr): Renamed to
6421 x86_linux_dr_get_addr. All uses updated.
6422 (amd64_linux_dr_get_control): Renamed to
6423 x86_linux_dr_get_control. All uses updated.
6424 (amd64_linux_dr_get_status): Renamed to
6425 x86_linux_dr_get_status. All uses updated.
6426 (amd64_linux_dr_set_control): Renamed to
6427 x86_linux_dr_set_control. All uses updated.
6428 (amd64_linux_dr_set_addr): Renamed to
6429 x86_linux_dr_set_addr. All uses updated.
6430 (amd64_linux_prepare_to_resume): Renamed to
6431 x86_linux_prepare_to_resume. All uses updated.
6432 (amd64_linux_new_thread): Renamed to
6433 x86_linux_new_thread. All uses updated.
6434 (amd64_linux_new_fork): Renamed to
6435 x86_linux_new_fork. All uses updated.
6436 (amd64_linux_child_post_startup_inferior): Renamed to
6437 x86_linux_child_post_startup_inferior. All uses updated.
6438 (amd64_linux_enable_btrace): Renamed to
6439 x86_linux_enable_btrace. All uses updated.
6440 (amd64_linux_disable_btrace): Renamed to
6441 x86_linux_disable_btrace. All uses updated.
6442 (amd64_linux_teardown_btrace): Renamed to
6443 x86_linux_teardown_btrace. All uses updated.
6444 (amd64_linux_read_btrace): Renamed to
6445 x86_linux_read_btrace. All uses updated.
6446 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6447 x86_linux_dr_get. All uses updated.
6448 (i386_linux_dr_set): Renamed to
6449 x86_linux_dr_set. All uses updated.
6450 (i386_linux_dr_get_addr): Renamed to
6451 x86_linux_dr_get_addr. All uses updated.
6452 (i386_linux_dr_get_control): Renamed to
6453 x86_linux_dr_get_control. All uses updated.
6454 (i386_linux_dr_get_status): Renamed to
6455 x86_linux_dr_get_status. All uses updated.
6456 (i386_linux_dr_set_control): Renamed to
6457 x86_linux_dr_set_control. All uses updated.
6458 (i386_linux_dr_set_addr): Renamed to
6459 x86_linux_dr_set_addr. All uses updated.
6460 (i386_linux_prepare_to_resume): Renamed to
6461 x86_linux_prepare_to_resume. All uses updated.
6462 (i386_linux_new_thread): Renamed to
6463 x86_linux_new_thread. All uses updated.
6464 (i386_linux_new_fork): Renamed to
6465 x86_linux_new_fork. All uses updated.
6466 (i386_linux_child_post_startup_inferior): Renamed to
6467 x86_linux_child_post_startup_inferior. All uses updated.
6468 (i386_linux_enable_btrace): Renamed to
6469 x86_linux_enable_btrace. All uses updated.
6470 (i386_linux_disable_btrace): Renamed to
6471 x86_linux_disable_btrace. All uses updated.
6472 (i386_linux_teardown_btrace): Renamed to
6473 x86_linux_teardown_btrace. All uses updated.
6474 (i386_linux_read_btrace): Renamed to
6475 x86_linux_read_btrace. All uses updated.
6476
b9c1d481
AS
64772014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6478
6479 * remote.c (extended_remote_post_attach): New function.
6480 (init_extended_remote_ops): Install it as to_post_attach method.
6481
7180e04a
PA
64822014-07-09 Pedro Alves <palves@redhat.com>
6483
6484 * infcmd.c (attach_command_post_wait): Don't call
6485 target_terminal_inferior here.
6486 (attach_command): Call it here instead.
6487
9a9a7608
AB
64882014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6491 field.
6492 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6493 from varobj.c, with additional checks.
6494 (c_varobj_ops): Fill in is_path_expr_parent field.
6495 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6496 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6497 field.
6498 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6499 ops method.
6500 (varobj_default_is_path_expr_parent): New function.
6501 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6502 (varobj_default_is_path_expr_parent): Declare new function.
6503
1f267ae3
MM
65042014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6505
6506 * infcmd.c (finish_backward): Turn internal error into normal error.
6507
b2ee242b
PA
65082014-07-07 Pedro Alves <palves@redhat.com>
6509
8a869bca 6510 PR gdb/17096
b2ee242b
PA
6511 * remote.c (async_handle_remote_sigint)
6512 (async_handle_remote_sigint_twice): Call
6513 gdb_call_async_signal_handler instead of
6514 mark_async_signal_handler.
6515
38e229b2
TT
65162014-07-07 Tom Tromey <tromey@redhat.com>
6517
6518 * target-delegates.c: Rebuild.
6519 * target.c (target_info_record): Remove.
6520 * record.c (info_record_command): Unconditionally call
6521 to_info_record.
6522 * target.h (struct target_ops) <to_info_record>: Use
6523 TARGET_DEFAULT_IGNORE.
6524 (target_info_record): Remove.
6525
f0f9ff95
TT
65262014-07-07 Tom Tromey <tromey@redhat.com>
6527
6528 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6529 TARGET_DEFAULT_NORETURN.
6530 * target.c (generic_tls_error): New function.
6531 (target_translate_tls_address): Don't search target stack.
6532 * target-delegates.c: Rebuild.
6533 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6534 stack.
6535 * linux-thread-db.c (thread_db_get_thread_local_address):
6536 Unconditionally call beneath target.
6537
4a5be5ee
MK
65382014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6539
6540 * cli/cli-logging.c (pop_output_files): Assign targerr to
6541 gdb_stdtargerr.
6542
92c3b204
AB
65432014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * MAINTAINERS (Write After Approval): Update my email address.
6546
9b11e3a7
GB
65472014-07-02 Gary Benson <gbenson@redhat.com>
6548
6549 * proc-service.c (ps_xfer_memory): Update comment.
6550 (ps_pstop): Remove unused function.
6551 (ps_pcontinue): Likewise.
6552 (ps_lstop): Likewise.
6553 (ps_lcontinue): Likewise.
6554 (ps_lgetxregsize): Likewise.
6555 (ps_lgetxregs): Likewise.
6556 (ps_lsetxregs): Likewise.
6557 (ps_plog): Likewise.
6558 (ps_ptread): Likewise.
6559 (ps_ptwrite): Likewise.
6560
cf363f18
MW
65612014-07-01 Mark Wielaard <mjw@redhat.com>
6562
6563 * dwarf2read.c (add_array_cv_type): New function.
6564 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6565 (read_tag_volatile_type): Likewise.
6566
82ae6c8d
TT
65672014-07-01 Tom Tromey <tromey@redhat.com>
6568
6569 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6570 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6571 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6572 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6573 * command.h (cmd_cfunc_ftype): Move earlier.
6574 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6575 (add_com, add_info): Use cmd_cfunc_ftype.
6576
96142726
TT
65772014-06-30 Tom Tromey <tromey@redhat.com>
6578
6579 * symtab.c (operator_chars): Make parameters and return type
6580 const.
6581 (file_matches): Make "files" const.
6582 (struct search_symbols_data) <files>: Now const.
6583 (search_symbols): Make "regexp" and "files" parameters const.
6584 Update.
6585 (symtab_symbol_info): Remove cast.
6586 (rbreak_command): Update.
6587 * symtab.h (search_symbols): Update.
6588
b67a2c6f
YQ
65892014-06-27 Yao Qi <yao@codesourcery.com>
6590
6591 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6592 Change parameter type to 'struct thread_info *'. Caller
6593 updated.
6594 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6595 Update declaration.
6596 * dummy-frame.c (struct dummy_frame_id): New.
6597 (dummy_frame_id_eq): New function.
6598 (struct dummy_frame) <id>: Change its type to 'struct
6599 dummy_frame_id'.
6600 (dummy_frame_push): Add parameter ptid and save it in
6601 dummy_frame_id.
6602 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6603 inferior_ptid.
6604 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6605 to inferior_ptid.
6606 (lookup_dummy_frame): Change parameter type to 'struct
6607 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6608 instead of frame_id_eq.
6609 (dummy_frame_pop): Add parameter ptid. Callers updated.
6610 Update comments. Compose dummy_frame_id and pass it to
6611 lookup_dummy_frame.
6612 (dummy_frame_discard): Add parameter ptid.
6613 (dummy_frame_sniffer): Compose dummy_frame_id and call
6614 dummy_frame_id_eq instead of frame_id_eq.
6615 (fprint_dummy_frames): Print ptid.
6616 * dummy-frame.h: Remove comments.
6617 (dummy_frame_push): Add ptid in declaration.
6618 (dummy_frame_pop, dummy_frame_discard): Likewise.
6619
5b10184c
TT
66202014-06-26 Tom Tromey <tromey@redhat.com>
6621
6622 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6623 * command.h (error_no_arg): Update.
6624
06900326
TT
66252014-06-26 Tom Tromey <tromey@redhat.com>
6626
6627 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6628 (do_show_command): Make "arg" const.
6629 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6630
c2bcbb1d
TT
66312014-06-26 Tom Tromey <tromey@redhat.com>
6632
6633 * record-full.c (record_full_get_bookmark): Make "args" const.
6634 (record_full_goto_bookmark): Make "raw_bookmark" const.
6635 * record.c (record_goto): New function.
6636 (cmd_record_goto): Use it. Now static.
6637 * record.h (record_goto): Declare.
6638 (cmd_record_goto): Remove declaration.
6639 * target-delegates.c: Rebuild.
6640 * target.h (struct target_ops) <to_get_bookmark,
6641 to_goto_bookmark>: Make parameter const.
6642
9cbe5fff
TT
66432014-06-26 Tom Tromey <tromey@redhat.com>
6644
6645 * defs.h (generic_load): Update.
6646 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6647 * monitor.c (monitor_load): Make "args" const.
6648 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6649 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6650 const.
6651 (mips_load): Make "file" const.
6652 * remote-sim.c (gdbsim_load): Make "args" const.
6653 * remote.c (remote_load): Make "name" const.
6654 * symfile.c (generic_load): Make "args" const.
6655 * target-delegates.c: Rebuild.
6656 * target.c (target_load): Make "arg" const.
6657 (debug_to_load): Make "args" const.
6658 * target.h (struct target_ops) <to_load>: Make parameter const.
6659 (target_load): Update.
6660
34a68019
TT
66612014-06-26 Tom Tromey <tromey@redhat.com>
6662
6663 PR symtab/16902:
6664 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6665 (dwarf2_physname, read_partial_die)
6666 (guess_partial_die_structure_name, fixup_partial_die)
6667 (guess_full_die_structure_name, anonymous_struct_prefix)
6668 (dwarf2_name): Use per-BFD obstack.
6669
efc889c1
YQ
66702014-06-26 Yao Qi <yao@codesourcery.com>
6671
6672 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6673 dummyframe and this_id into inner block below.
6674
4395285e
YQ
66752014-06-26 Yao Qi <yao@codesourcery.com>
6676
6677 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6678 with "signal_pass[0]" in the initialization of signal_pass.
6679
aef92902
MM
66802014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6681
6682 * record-btrace.c (record_btrace_generating_corefile)
6683 (record_btrace_prepare_to_generate_core)
6684 (record_btrace_done_generating_core): New.
6685 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6686 (record_btrace_store_registers, record_btrace_prepare_to_store):
6687 Forward request when generating a core file.
6688 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6689 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6690 to_done_generating_core.
6691
5fff78c4
MM
66922014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6693
6694 * target.h (target_ops) <to_prepare_to_generate_core>
6695 <to_done_generating_core>: New.
6696 (target_prepare_to_generate_core, target_done_generating_core): New.
6697 * target.c (target_prepare_to_generate_core)
6698 (target_done_generating_core): New.
6699 * target-delegates.c: Regenerate.
6700 * gcore.c: (write_gcore_file): Rename to ...
6701 (write_gcore_file_1): ...this.
6702 (write_gcore_file): Call target_prepare_to_generate_core
6703 and target_done_generating_core.
6704
1d1f1ccb
MM
67052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6706
6707 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6708 * gcore.c (write_gcore_file): Free memory returned from
6709 make_corefile_notes.
6710 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6711 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6712
3343ef86
YQ
67132014-06-24 Yao Qi <yao@codesourcery.com>
6714
6715 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6716 (arm_linux_init_abi): Set skip_trampoline_code with
6717 gdbarch_skip_trampoline_code instead of
6718 find_solib_trampoline_target.
6719
18d18ac8
YQ
67202014-06-24 Yao Qi <yao@codesourcery.com>
6721
6722 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6723 arm_skip_bx_reg returns non-zero.
6724
80d8d390
YQ
67252014-06-24 Yao Qi <yao@codesourcery.com>
6726
6727 * arm-tdep.c (arm_skip_bx_reg): New function.
6728 (arm_skip_stub): Call arm_skip_bx_reg.
6729
6a18a01c
DB
67302014-06-23 Don Breazeal <donb@codesourcery.com>
6731
6732 * MAINTAINERS: Add myself as write-after-approval maintainer.
6733
8e9db26e
PA
67342014-06-23 Pedro Alves <palves@redhat.com>
6735
6736 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6737 DR_CONTROL before setting DR0..DR3.
6738 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6739 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6740 bits of DR_CONTROL related to the debug register slot being
6741 disabled. If all slots are vacant, clear local slowdown as well,
6742 and assert DR_CONTROL is 0.
6743
70afc5b7
SC
67442014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6745
6746 * python/lib/gdb/command/xmethods.py
6747 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6748 current progspace only if the string "progspace" matches LOCUS_RE.
6749
840ed64d
JK
67502014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6751
6752 Fix --with-system-readline with readline-6.3 patch 5.
6753 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6754 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6755 types.
6756
26f2dc30
TT
67572014-06-20 Tom Tromey <tromey@redhat.com>
6758
6759 * dwarf2read.c (dw2_get_real_path): Use correct type in
6760 OBSTACK_CALLOC.
6761 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6762
125f8a3d
GB
67632014-06-20 Gary Benson <gbenson@redhat.com>
6764
6765 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6766 * common/glibc_thread_db.h: Likewise.
6767 * common/i386-cpuid.h: Likewise.
6768 * common/i386-gcc-cpuid.h: Likewise.
6769 * common/linux-btrace.h: Likewise.
6770 * common/linux-osdata.h: Likewise.
6771 * common/linux-procfs.h: Likewise.
6772 * common/linux-ptrace.h: Likewise.
6773 * common/mips-linux-watch.h: Likewise.
6774 * common/linux-btrace.c: Moved to nat.
6775 * common/linux-osdata.c: Likewise.
6776 * common/linux-procfs.c: Likewise.
6777 * common/linux-ptrace.c: Likewise.
6778 * common/mips-linux-watch.c: Likewise.
6779 * nat/gdb_thread_db.h: Moved from common.
6780 * nat/glibc_thread_db.h: Likewise.
6781 * nat/i386-cpuid.h: Likewise.
6782 * nat/i386-gcc-cpuid.h: Likewise.
6783 * nat/linux-btrace.c: Likewise.
6784 * nat/linux-btrace.h: Likewise.
6785 * nat/linux-osdata.c: Likewise.
6786 * nat/linux-osdata.h: Likewise.
6787 * nat/linux-procfs.c: Likewise.
6788 * nat/linux-procfs.h: Likewise.
6789 * nat/linux-ptrace.c: Likewise.
6790 * nat/linux-ptrace.h: Likewise.
6791 * nat/mips-linux-watch.c: Likewise.
6792 * nat/mips-linux-watch.h: Likewise.
6793 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6794 (object file files): Reordered.
6795 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6796 of glibc_thread_db.h.
6797
42995dbd
GB
67982014-06-20 Gary Benson <gbenson@redhat.com>
6799
6800 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6801 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6802 (i386_dr_low): Likewise.
6803 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6804 (i386_dr_low_set_addr): Likewise.
6805 (i386_dr_low_get_addr): Likewise.
6806 (i386_dr_low_can_set_control): Likewise.
6807 (i386_dr_low_set_control): Likewise.
6808 (i386_dr_low_get_control): Likewise.
6809 (i386_dr_low_get_status): Likewise.
6810 (i386_get_debug_register_length): Likewise.
6811 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6812 (i386_dr_low): Likewise.
6813 * nat/i386-dregs.c (i386-low.h): Remove include.
6814 (i386-nat.h): Likewise.
6815 (nat/i386-dregs.h): New include.
6816 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6817 (i386_dr_low_set_addr): Likewise.
6818 (i386_dr_low_get_addr): Likewise.
6819 (i386_dr_low_can_set_control): Likewise.
6820 (i386_dr_low_set_control): Likewise.
6821 (i386_dr_low_get_control): Likewise.
6822 (i386_dr_low_get_status): Likewise.
6823 (i386_get_debug_register_length): Likewise.
6824 (debug_hw_points): Likewise.
6825
3ed9baed
IB
68262014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6827
6828 * Makefile.in (SFILES): Add d-exp.y.
6829 (YYFILES): Add d-exp.c.
6830 (YYOBJ): Add d-exp.o.
6831 (local-maintainer-clean): Delete d-exp.c.
6832 * d-exp.y: New file.
6833 * d-lang.h (d_parse): New declaration.
6834 (d_error): New declaration.
6835 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6836 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6837 PREC_ORDER operators.
6838 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6839
78c164b0
YQ
68402014-06-19 Yao Qi <yao@codesourcery.com>
6841
6842 * gdbthread.h (any_running): Remove the declaration.
6843 * thread.c (any_running): Remove.
6844
f6e29b6e
YQ
68452014-06-19 Yao Qi <yao@codesourcery.com>
6846
6847 * gdbthread.h (struct thread_info) <state>: Change its type to
6848 'enum thread_state'. Update comments.
6849
034f788c
PA
68502014-06-19 Pedro Alves <palves@redhat.com>
6851
6852 * gdbthread.h (ALL_THREADS): Delete.
6853 (ALL_NON_EXITED_THREADS): New macro.
6854 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6855 instead of ALL_THREADS.
6856 * infrun.c (find_thread_needs_step_over)
6857 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6858 instead of ALL_THREADS.
6859 * record-btrace.c (record_btrace_open)
6860 (record_btrace_stop_recording, record_btrace_close)
6861 (record_btrace_is_replaying, record_btrace_resume)
6862 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6863 * remote.c (append_pending_thread_resumptions): Likewise.
6864 * thread.c (thread_apply_all_command): Likewise.
6865
46e33252
GB
68662014-06-19 Gary Benson <gbenson@redhat.com>
6867
6868 * i386-nat.c (i386_stopped_by_watchpoint):
6869 Use i386_dr_stopped_by_watchpoint.
6870 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6871 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6872
3a8ee006
GB
68732014-06-19 Gary Benson <gbenson@redhat.com>
6874
6875 * nat/i386-dregs.c: New file.
6876 * Makefile.in (i386-dregs.o): New rule.
6877 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6878 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6879 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6880 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6881 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6882 * config/i386/go32.mh (NATDEPFILES): Likewise.
6883 * config/i386/linux.mh (NATDEPFILES): Likewise.
6884 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6885 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6886 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6887 * i386-nat.h (debug_hw_points): New declaration.
6888 * i386-nat.c (breakpoint.h): Remove include.
6889 (command.h): Likewise.
6890 (target.h): Likewise.
6891 (gdb_assert.h): Likewise.
6892 (debug_hw_points): Made nonstatic.
6893 (debug_printf): Now in i386-dregs.c.
6894 (TARGET_HAS_DR_LEN_8): Likewise.
6895 (DR_CONTROL_SHIFT): Likewise.
6896 (DR_CONTROL_SIZE): Likewise.
6897 (DR_RW_EXECUTE): Likewise.
6898 (DR_RW_WRITE): Likewise.
6899 (DR_RW_READ): Likewise.
6900 (DR_RW_IORW): Likewise.
6901 (DR_LEN_1): Likewise.
6902 (DR_LEN_2): Likewise.
6903 (DR_LEN_4): Likewise.
6904 (DR_LEN_8): Likewise.
6905 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6906 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6907 (DR_ENABLE_SIZE): Likewise.
6908 (DR_LOCAL_SLOWDOWN): Likewise.
6909 (DR_GLOBAL_SLOWDOWN): Likewise.
6910 (DR_CONTROL_RESERVED): Likewise.
6911 (I386_DR_CONTROL_MASK): Likewise.
6912 (I386_DR_VACANT): Likewise.
6913 (I386_DR_LOCAL_ENABLE): Likewise.
6914 (I386_DR_GLOBAL_ENABLE): Likewise.
6915 (I386_DR_DISABLE): Likewise.
6916 (I386_DR_SET_RW_LEN): Likewise.
6917 (I386_DR_GET_RW_LEN): Likewise.
6918 (I386_DR_WATCH_HIT): Likewise.
6919 (i386_wp_op_t): Likewise.
6920 (i386_show_dr): Likewise.
6921 (i386_length_and_rw_bits): Likewise.
6922 (i386_insert_aligned_watchpoint): Likewise.
6923 (i386_remove_aligned_watchpoint): Likewise.
6924 (i386_handle_nonaligned_watchpoint): Likewise.
6925 (i386_update_inferior_debug_regs): Likewise.
6926 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6927 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6928 (i386_region_ok_for_watchpoint):
6929 Use i386_dr_region_ok_for_watchpoint.
6930 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6931
322a8e06
GB
69322014-06-19 Gary Benson <gbenson@redhat.com>
6933
6934 * i386-nat.c (i386_insert_hw_breakpoint): Use
6935 i386_insert_watchpoint.
6936 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6937
8f26655c
GB
69382014-06-19 Gary Benson <gbenson@redhat.com>
6939
6940 * i386-nat.c (i386_dr_show): Renamed to
6941 i386_show_dr and made static. All uses updated.
6942 (i386_dr_length_and_rw_bits): Renamed to
6943 i386_length_and_rw_bits and made static.
6944 All uses updated.
6945 (i386_dr_insert_aligned_watchpoint): Renamed to
6946 i386_insert_aligned_watchpoint and made static.
6947 All uses updated.
6948 (i386_dr_remove_aligned_watchpoint): Renamed to
6949 i386_remove_aligned_watchpoint and made static.
6950 All uses updated.
6951 (i386_dr_update_inferior_debug_regs): Renamed to
6952 i386_update_inferior_debug_regs and made static.
6953 All uses updated.
6954 * nat/i386-dregs.h (i386_dr_show): Removed.
6955 (i386_dr_length_and_rw_bits): Likewise.
6956 (i386_dr_insert_aligned_watchpoint): Likewise.
6957 (i386_dr_remove_aligned_watchpoint): Likewise.
6958 (i386_dr_update_inferior_debug_regs): Likewise.
6959
992c7d70
GB
69602014-06-19 Gary Benson <gbenson@redhat.com>
6961
6962 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6963 * configure: Regenerate.
6964 * config.in: Likewise.
6965 * main.c (signal.h): New include.
6966 (setup_alternate_signal_stack): New function.
6967 (captured_main): Call the above.
6968 * cp-support.c (signal.h): New include.
6969 (catch_demangler_crashes): New flag.
6970 (SIGJMP_BUF): New define.
6971 (SIGSETJMP): Likewise.
6972 (SIGLONGJMP): Likewise.
6973 (gdb_demangle_jmp_buf): New static global.
6974 (gdb_demangle_attempt_core_dump): Likewise.
6975 (gdb_demangle_signal_handler): New function.
6976 (gdb_demangle): If catch_demangler_crashes is set, install the
6977 above signal handler before calling bfd_demangle, and restore
6978 the original signal handler afterwards. Display the offending
6979 symbol and call demangler_warning the first time a segmentation
6980 fault is caught.
6981 (_initialize_cp_support): New maint set/show command.
6982
eae7090b
GB
69832014-06-19 Gary Benson <gbenson@redhat.com>
6984
6985 * utils.h (resource_limit_kind): New enum.
6986 (can_dump_core): New declaration.
6987 (warn_cant_dump_core): Likewise.
6988 (dump_core): Likewise.
6989 * utils.c (dump_core): Made nonstatic. Added new
6990 parameter "limit_kind".
6991 (can_dump_core): Made nonstatic. Moved printing code to...
6992 (warn_cant_dump_core): New function.
6993 (can_dump_core_warn): Likewise.
6994 (internal_vproblem): Replace calls to can_dump_core with
6995 calls to can_dump_core_warn. Supply new argument to each.
6996
57fcfb1b
GB
69972014-06-19 Gary Benson <gbenson@redhat.com>
6998
6999 * utils.h (demangler_vwarning): New declaration.
7000 (demangler_warning): Likewise.
7001 * utils.c (struct internal_problem)
7002 <user_settable_should_quit>: New field.
7003 <user_settable_should_dump_core>: Likewise
7004 (internal_error_problem): Add values for above new fields.
7005 (internal_warning_problem): Likewise.
7006 (demangler_warning_problem): New static global.
7007 (demangler_vwarning): New function.
7008 (demangler_warning): Likewise.
7009 (add_internal_problem_command): Selectively add commands.
7010 (_initialize_utils): New internal problem command.
7011 * maint.c (maintenance_demangler_warning): New function.
7012 (_initialize_maint_cmds): New command.
7013
17a40b44
TT
70142014-06-18 Tom Tromey <tromey@redhat.com>
7015
7016 * f-valprint.c (info_common_command_for_block): Update.
7017 * symtab.h (struct general_symbol_info) <common_block>: Now
7018 const.
7019
346d1dfe
TT
70202014-06-18 Tom Tromey <tromey@redhat.com>
7021
7022 * symtab.h (struct symtab) <blockvector>: Now const.
7023 * ada-lang.c (ada_add_global_exceptions): Update.
7024 * buildsym.c (augment_type_symtab): Update.
7025 * dwarf2read.c (dw2_lookup_symbol): Update.
7026 * jit.c (finalize_symtab): Update.
7027 * jv-lang.c (add_class_symtab_symbol): Update.
7028 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7029 Update.
7030 * objfiles.c (objfile_relocate1): Update.
7031 * psymtab.c (lookup_symbol_aux_psymtabs)
7032 (maintenance_check_psymtabs): Update.
7033 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7034 Update.
7035 * spu-tdep.c (spu_catch_start): Update.
7036 * symmisc.c (dump_symtab_1): Update.
7037 * symtab.c (lookup_global_symbol_from_objfile)
7038 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7039 (basic_lookup_transparent_type_quick)
7040 (basic_lookup_transparent_type, find_pc_sect_symtab)
7041 (find_pc_sect_line, search_symbols): Update.
7042 * block.c (find_block_in_blockvector): Make "bl" const.
7043 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7044 const.
7045 (blockvector_contains_pc): Make "bv" const.
7046 (block_for_pc_sect): Update.
7047 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7048 (blockvector_contains_pc): Update.
7049 * breakpoint.c (resolve_sal_pc): Update.
7050 * inline-frame.c (block_starting_point_at): Update.
7051
1834676b
TT
70522014-06-18 Tom Tromey <tromey@redhat.com>
7053
7054 * completer.c (complete_line): Make "line_buffer" const.
7055 * completer.h (complete_line): Update.
7056
ac1a991b
TT
70572014-06-18 Tom Tromey <tromey@redhat.com>
7058
7059 * symtab.c (add_macro_name): Remove unneeded cast.
7060
5bc98e52
TT
70612014-06-18 Tom Tromey <tromey@redhat.com>
7062
7063 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7064 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7065
8236def8
TT
70662014-06-18 Tom Tromey <tromey@redhat.com>
7067
7068 * probe.c (info_probes_for_ops): Make "arg" const.
7069 * probe.h (info_probes_for_ops): Update.
7070
3977b71f
TT
70712014-06-18 Tom Tromey <tromey@redhat.com>
7072
7073 * varobj.c (varobj_create): Update.
7074 * valops.c (value_of_this): Update.
7075 * tracepoint.c (add_local_symbols, scope_info): Update.
7076 * symtab.h (struct general_symbol_info) <block>: Now const.
7077 * symtab.c (skip_prologue_sal)
7078 (default_make_symbol_completion_list_break_on)
7079 (skip_prologue_using_sal): Update.
7080 * stack.h (iterate_over_block_locals)
7081 (iterate_over_block_local_vars): Update.
7082 * stack.c (print_frame_args): Update.
7083 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7084 parameter const.
7085 (get_selected_block): Make return type const.
7086 * python/py-frame.c (frapy_block): Update.
7087 * python/py-block.c (gdbpy_block_for_pc): Update.
7088 * p-exp.y (%union) <bval>: Now const.
7089 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7090 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7091 * m2-exp.y (%union) <bval>: Now const.
7092 * linespec.c (get_current_search_block): Make return type const.
7093 (create_sals_line_offset, find_label_symbols): Update.
7094 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7095 Update.
7096 (block_starting_point_at): Make "block" const.
7097 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7098 (check_exception_resume): Update.
7099 * guile/scm-frame.c (gdbscm_frame_block): Update.
7100 * guile/scm-block.c (gdbscm_lookup_block): Update.
7101 * frame.h (get_frame_block): Update.
7102 (get_selected_block): Make return type const.
7103 * frame.c (frame_id_inner): Update.
7104 * f-valprint.c (info_common_command_for_block)
7105 (info_common_command): Update.
7106 * dwarf2loc.c (dwarf2_find_location_expression)
7107 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7108 (locexpr_describe_location_piece): Update.
7109 * c-exp.y (%union) <bval>: Now const.
7110 * breakpoint.c (resolve_sal_pc): Update.
7111 * blockframe.c (get_frame_block):Make return type const.
7112 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7113 (block_innermost_frame): Update.
7114 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7115 (block_for_pc, block_for_pc_sect): Update.
7116 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7117 'pblock' const.
7118 (block_for_pc_sect, block_for_pc): Make return type const.
7119 * ax-gdb.c (gen_expr): Update.
7120 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7121 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7122 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7123 (ada_read_var_value): Update.
7124 * ada-exp.y (struct name_info) <block>: Now const.
7125 (%union): Likewise.
7126 (block_lookup): Constify.
7127
b9228891
GB
71282014-06-18 Gary Benson <gbenson@redhat.com>
7129
7130 * nat/i386-dregs.h: New file.
7131 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7132 * i386-nat.h (i386-dregs.h): New include.
7133 (DR_FIRSTADDR): Now in i386-dregs.h.
7134 (DR_LASTADDR): Likewise.
7135 (DR_NADDR): Likewise.
7136 (DR_STATUS): Likewise.
7137 (DR_CONTROL): Likewise.
7138 (i386_debug_reg_state): Likewise.
7139 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7140
a1aa2221
LM
71412014-06-18 Don Breazeal <donb@codesourcery.com>
7142
7143 * breakpoint.c (set_longjmp_breakpoint): Call
7144 momentary_breakpoint_from_master with additional argument.
7145 (set_longjmp_breakpoint_for_call_dummy): Call
7146 momentary_breakpoint_from_master with additional argument.
7147 (set_std_terminate_breakpoint): Call
7148 momentary_breakpoint_from_master with additional argument.
7149 (momentary_breakpoint_from_master): Add argument to function
7150 definition and use it to initialize structure member flag.
74228e77 7151 (clone_momentary_breakpoint): Call
a1aa2221
LM
7152 momentary_breakpoint_from_master with additional argument.
7153 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7154 member flags set in momentary_breakpoint_from_master.
7155
4be83cc2
GB
71562014-06-18 Gary Benson <gbenson@redhat.com>
7157
7158 * i386-nat.c (i386_show_dr): Renamed to
7159 i386_dr_show and made nonstatic. All uses updated.
7160 (i386_length_and_rw_bits): Renamed to
7161 i386_dr_length_and_rw_bits and made nonstatic.
7162 All uses updated.
7163 (i386_insert_aligned_watchpoint): Renamed to
7164 i386_dr_insert_aligned_watchpoint and made nonstatic.
7165 All uses updated.
7166 (i386_remove_aligned_watchpoint): Renamed to
7167 i386_dr_remove_aligned_watchpoint and made nonstatic.
7168 All uses updated.
7169 (i386_update_inferior_debug_regs): Renamed to
7170 i386_dr_update_inferior_debug_regs and made nonstatic.
7171 All uses updated.
7172
131aa0d4
GB
71732014-06-18 Gary Benson <gbenson@redhat.com>
7174
7175 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7176 (i386_dr_low_can_set_control): Likewise.
7177 (i386_dr_low_set_addr): Likewise.
7178 (i386_dr_low_set_control): Likewise.
7179 (i386_dr_low_get_addr): Likewise.
7180 (i386_dr_low_get_status): Likewise.
7181 (i386_dr_low_get_control): Likewise.
7182 (i386_insert_aligned_watchpoint): Use new macros.
7183 (i386_update_inferior_debug_regs): Likewise.
7184 (i386_stopped_data_address): Likewise.
7185
d9305f7f
GB
71862014-06-18 Gary Benson <gbenson@redhat.com>
7187
7188 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7189 New parameter. All uses updated.
7190
ea008da4
GB
71912014-06-18 Gary Benson <gbenson@redhat.com>
7192
7193 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7194 All uses updated.
7195
1b6d4134
GB
71962014-06-18 Gary Benson <gbenson@redhat.com>
7197
7198 * i386-nat.c (debug_printf): New macro.
7199 (i386_get_debug_register_length): Likewise.
7200 (TARGET_HAS_DR_LEN_8): Use above macro.
7201 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7202 and printf_unfiltered. Use phex to format values.
7203
9b4550ef
GB
72042014-06-18 Gary Benson <gbenson@redhat.com>
7205
7206 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7207 Make const.
7208
6e62758f
GB
72092014-06-18 Gary Benson <gbenson@redhat.com>
7210
7211 * i386-nat.c: Comment changes.
7212
51c79e94
GB
72132014-06-18 Gary Benson <gbenson@redhat.com>
7214
7215 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7216
3e11889a
GB
72172014-06-18 Gary Benson <gbenson@redhat.com>
7218
7219 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7220 (i386_insert_aligned_watchpoint): Likewise.
7221 (i386_remove_aligned_watchpoint): Likewise.
7222 (i386_handle_nonaligned_watchpoint): Likewise.
7223
fc6e2f03
GB
72242014-06-18 Gary Benson <gbenson@redhat.com>
7225
7226 * i386-nat.c: Whitespace changes.
7227
2afe7d50
SB
72282014-06-17 Samuel Bronson <naesten@gmail.com>
7229
7230 * MAINTAINERS: Update Roland McGrath's email address.
7231 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7232 Red Hat a while ago, and giving me a current address.
2afe7d50 7233
3bca49ee
TT
72342014-06-17 Tom Tromey <tromey@redhat.com>
7235
7236 * utils.h (savestring): Remove declaration.
7237
6e366df1
TT
72382014-06-17 Tom Tromey <tromey@redhat.com>
7239
7240 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7241
6be47f0c
KS
72422014-06-16 Keith Seitz <keiths@redhat.com>
7243
7244 PR mi/15863
7245 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7246 to update the varobj if inferior_ptid is null_ptid.
7247
7bc112c1
TT
72482014-06-16 Tom Tromey <tromey@redhat.com>
7249
7250 * target.h (struct target_ops) <to_info_proc>: Make parameter
7251 const.
7252 (target_info_proc): Update.
7253 * target.c (target_info_proc): Make "args" const.
7254 * procfs.c (procfs_info_proc): Update.
7255 * linux-tdep.c (linux_info_proc): Update.
7256 (linux_core_info_proc_mappings): Make "args" const.
7257 (linux_core_info_proc): Update.
7258 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7259 * gdbarch.c: Rebuild.
7260 * gdbarch.h: Rebuild.
7261 * corelow.c (core_info_proc): Update.
7262
fee354ee
TT
72632014-06-16 Tom Tromey <tromey@redhat.com>
7264
7265 * target.h (struct target_ops) <to_disconnect>: Make parameter
7266 const.
7267 (target_disconnect): Update.
7268 * target.c (target_disconnect): Make "args" const.
7269 * target-delegates.c: Rebuild.
7270 * remote.c (remote_disconnect): Update.
7271 * record.h (record_disconnect): Update.
7272 * record.c (record_disconnect): Update.
7273 * inf-child.c (inf_child_disconnect): Update.
7274
a30bf1f1
TT
72752014-06-16 Tom Tromey <tromey@redhat.com>
7276
7277 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7278 * target.c (debug_to_rcmd, default_rcmd): Update.
7279 * target-delegates.c: Rebuild.
7280 * remote.c (remote_rcmd): Update.
7281 * monitor.c (monitor_rcmd): Update.
7282
d03de421
PA
72832014-06-16 Pedro Alves <palves@redhat.com>
7284
7285 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7286 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7287 have OBJF_SHARED set.
7288 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7289 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7290 instead of OBJF_USERLOADED.
7291 * objfiles.h (OBJF_SHARED): Update comment.
7292 (userloaded_objfile_contains_address_p): Rename to ...
7293 (shared_objfile_contains_address_p): ... this, and update
7294 comments.
7295 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7296 new objfile.
7297 (remove_symbol_file_command): Skip objfiles that don't have
7298 OBJF_SHARED set.
7299
99f4262f
TT
73002014-06-16 Tom Tromey <tromey@redhat.com>
7301
7302 * minsyms.h (prim_record_minimal_symbol)
7303 (prim_record_minimal_symbol_and_info): Update comments.
7304
97d66cc6
EZ
73052014-06-14 Eli Zaretskii <eliz@gnu.org>
7306
7307 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7308 or --without-guile, according to how GDB was built.
7309
635c7e8a
TT
73102014-06-13 Tom Tromey <tromey@redhat.com>
7311
7312 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7313 to help_list.
7314 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7315 to help_list.
7316 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7317 help_list.
7318 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7319 help_list.Pass all_commands, not -1, to help_list.
7320 * cli/cli-dump.c (dump_command, append_command)
7321 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7322 (binary_dump_command, binary_append_command): Pass all_commands,
7323 not -1, to help_list.
7324 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7325 -1, to help_list.
7326 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7327 -1, to help_list.
7328 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7329 help_list.
7330 * top.c (set_history): Pass all_commands, not -1, to help_list.
7331 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7332 all_commands, not -1, to help_list.
7333 * symfile.c (overlay_command): Pass all_commands, not -1, to
7334 help_list.
7335 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7336 help_list.
7337 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7338 help_list.
7339 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7340 -1, to help_list.
7341 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7342 not -1, to help_list.
7343 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7344 not -1, to help_list.
7345 * maint.c (maintenance_command, maintenance_info_command)
7346 (maintenance_print_command, maintenance_set_cmd): Pass
7347 all_commands, not -1, to help_list.
7348 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7349 help_list.
7350 * language.c (set_check): Pass all_commands, not -1, to help_list.
7351 * infcmd.c (unset_command): Pass all_commands, not -1, to
7352 help_list.
7353 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7354 help_list.
7355 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7356 help_list.
7357 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7358 help_list.
7359 * breakpoint.c (save_command): Pass all_commands, not -1, to
7360 help_list.
7361 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7362 all_commands, not -1, to help_list.
7363
b94ade42
PL
73642014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7365
7366 * regcache.c (struct register_to_invalidate): New structure.
7367 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7368 functions.
7369 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7370
31f628ae
YQ
73712014-06-12 Yao Qi <yao@codesourcery.com>
7372
7373 * varobj.c (varobj_get_num_children): Call
7374 varobj_is_dynamic_p.
7375 (varobj_list_children): Likewise.
7376 (varobj_update): Likewise. Update comments.
7377
cde5ef40
YQ
73782014-06-12 Yao Qi <yao@codesourcery.com>
7379
7380 * varobj.c (varobj_pretty_printed_p): Rename to ...
7381 (varobj_is_dynamic_p): ... this. New function.
7382 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7383 (varobj_is_dynamic_p): Declare.
7384 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7385 (mi_print_value_p, varobj_update_one): Likewise.
7386
576ea091
YQ
73872014-06-12 Pedro Alves <pedro@codesourcery.com>
7388 Yao Qi <yao@codesourcery.com>
7389
7390 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7391 (varobj_get_iterator): Wrap up code for pretty-printer by
7392 "#if HAVE_PYTHON" and "#endif".
7393 (update_dynamic_varobj_children): Likewise.
7394
827f100c
YQ
73952014-06-12 Pedro Alves <pedro@codesourcery.com>
7396 Yao Qi <yao@codesourcery.com>
7397
7398 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7399 gdb_python_initialized is false. Move some code from varobj.c.
7400 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7401 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7402 (struct varobj_item): Moved to varobj-iter.h".
7403 (varobj_clear_saved_item): New function.
7404 (update_dynamic_varobj_children): Move python-related code to
7405 py-varobj.c.
7406 (free_variable): Call varobj_clear_saved_item and
7407 varobj_iter_delete.
7408
e5250216
YQ
74092014-06-12 Pedro Alves <pedro@codesourcery.com>
7410 Yao Qi <yao@codesourcery.com>
7411
7412 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7413 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7414 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7415 (py-varobj.o): New rule.
7416 * python/py-varobj.c: New file.
7417 * python/python-internal.h (py_varobj_get_iterator): Declare.
7418 * varobj-iter.h: New file.
7419 * varobj.c: Include "varobj-iter.h"
7420 (struct varobj) <child_iter>: Change its type from "PyObject *"
7421 to "struct varobj_iter *".
7422 <saved_item>: Likewise.
7423 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7424 [HAVE_PYTHON] (varobj_get_iterator): New function.
7425 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7426 python-specific code to python/py-varobj.c.
7427 (install_visualizer): Call varobj_iter_delete instead of
7428 Py_XDECREF.
7429 * varobj.h (varobj_ensure_python_env): Declare.
7430
5a2e0d6e
YQ
74312014-06-12 Yao Qi <yao@codesourcery.com>
7432
7433 * varobj.c (struct varobj_item): New structure.
7434 (create_child_with_value): Update declaration.
7435 (varobj_add_child): Replace arguments 'name' and 'value' with
7436 'item'. All callers updated.
7437 (install_dynamic_child): Likewise.
7438 (update_dynamic_varobj_children): Likewise.
7439 (varobj_add_child): Likewise.
7440 (create_child_with_value): Likewise.
7441
919b9a93
JB
74422014-06-11 Joel Brobecker <brobecker@adacore.com>
7443
7444 * NEWS: Create a new section for the next release branch.
7445 Rename the section of the current branch, now that it has
7446 been cut.
7447
71a55bdf
JB
74482014-06-11 Joel Brobecker <brobecker@adacore.com>
7449
7450 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7451 * version.in: Bump version to 7.8.50.DATE-cvs.
7452
364fe1f7
PA
74532014-06-11 Pedro Alves <palves@redhat.com>
7454
7455 PR remote/17028
7456 * ser-mingw.c (net_windows_socket_check_pending): New function.
7457 (net_windows_select_thread): Ignore spurious wakeups. Use
7458 net_windows_socket_check_pending.
7459 (net_windows_wait_handle): Check for pending events with
7460 ioctlsocket, through net_windows_socket_check_pending, instead of
7461 checking the socket's event.
7462
5a6c7709
SC
74632014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7464
7465 * python/python-internal.h (gdb_PyObject_GetAttrString)
7466 (gdb_PyObject_HasAttrString): New inline function definitions.
7467 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7468 char * of the second argument to PyObject_GetAttrString.
74228e77 7469
0e58ee40
JB
74702014-06-10 Joel Brobecker <brobecker@adacore.com>
7471
7472 * serial.c (serial_write): Fix index of character to be printed
7473 in call to serial_logchar when serial debug traces are enabled.
7474
d190df30
JB
74752014-06-10 Joel Brobecker <brobecker@adacore.com>
7476
7477 * gdbtypes (resolve_dynamic_range): Add function description.
7478
b4b01d36
PA
74792014-06-09 Pedro Alves <palves@redhat.com>
7480
7481 * linux-nat.c (linux_child_follow_fork): Initialize status with
7482 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7483 inner block. Only pass the signal to PTRACE_DETACH if in pass
7484 state.
7485
3657956b
GB
74862014-06-09 Gary Benson <gbenson@redhat.com>
7487
7488 * common/signals.c (gdb_signal_from_host): Reorder to separate
7489 the always-available ANSI-standard signals from the signals that
7490 require checking.
7491 (do_gdb_signal_to_host): Likewise.
7492 * proc-events.c (signal_table): Likewise.
7493
c077881a
HZ
74942014-06-08 Hui Zhu <hui@codesourcery.com>
7495
7496 * common/linux-ptrace.c (linux_disable_event_reporting): New
7497 function.
7498 * common/linux-ptrace.h (linux_disable_event_reporting): New
7499 declaration.
7500 * linux-nat.c (linux_child_follow_fork): Do a single step before
7501 detach.
7502
4186eb54
KS
75032014-06-07 Keith Seitz <keiths@redhat.com>
7504
7505 Revert:
7506 PR c++/16253
7507 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7508 from symbol_matches_domain in symtab.c. All local callers
7509 of symbol_matches_domain updated.
7510 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7511 search STRUCT_DOMAIN.
7512 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7513 independently. standard_lookup will do that automatically.
7514 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7515 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7516 (cp_lookup_symbol_in_namespace): Likewise.
7517 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7518 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7519 may return a STRUCT_DOMAIN match.
7520 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7521 * cp-support.c: Include language.h.
7522 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7523 VAR_DOMAIN.
7524 * psymtab.c (match_partial_symbol): Compare the requested
7525 domain with the symbol's domain directly.
7526 (lookup_partial_symbol): Likewise.
7527 * symtab.c (lookup_symbol_in_language): Explain when/why
7528 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7529 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7530 appropriate languages.
7531 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7532 and moved to ada-lang.c
7533 (lookup_block_symbol): Explain that this function only returns
7534 symbol matching the requested DOMAIN.
7535 Compare the requested domain with the symbol's domain directly.
7536 (iterate_over_symbols): Compare the requested domain with the
7537 symbol's domain directly.
7538 * symtab.h (symbol_matches_domain): Remove.
7539
25326a28 75402014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7541
7542 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7543 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7544 (gdbscm_guile_version_is_at_least): Declare.
7545 (gdbscm_scm_string_to_int): Declare.
7546 * guile/guile.c (gdbscm_guile_major_version): New global.
7547 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7548 (guile_datadir): New static global.
7549 (gdbscm_guile_data_directory): New function.
7550 (initialize_scheme_side): Update.
7551 (misc_guile_functions): Add guile-data-directory.
7552 (initialize_gdb_module): Fetch guile version number.
7553 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7554 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7555 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7556 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7557 comments.
7558 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7559 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7560 * guile/scm-value.c (gdbscm_value_to_string): Only call
7561 scm_port_conversion_strategy if Guile version >= 2.0.6.
7562
0a770bb2 75632014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7564
7565 * main.c (print_gdb_help): Add -q and --silent.
7566
73ba372c
GB
75672014-06-06 Gary Benson <gbenson@redhat.com>
7568
7569 * common/signals.c: Remove preprocessor conditionals for
7570 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7571 SIGSEGV and SIGTERM.
7572 * proc-events.c: Likewise.
7573
c33b2f12
MM
75742014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7575
7576 * symfile.c (symfile_free_objfile): Remove restriction to
7577 OBJF_USERLOADED.
7578 * symfile-mem.c (symbol_file_add_from_memory): Call
7579 add_target_sections_of_objfile.
7580
fb934770
LC
75812014-06-05 Ludovic Courtès <ludo@gnu.org>
7582
7583 * guile/scm-value.c (gdbscm_history_append_x): Use
7584 'vlscm_get_value_smob_arg_unsafe' instead of
7585 'vlscm_scm_to_value'.
7586
6ef284bd
SM
75872014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7588
7589 PR mi/15806
7590 * utils.c (printchar): Don't escape at all if quoter is NUL.
7591 Update function documentation to clarify effect of parameter
7592 QUOTER.
7593 * remote.c (escape_buffer): Pass '\\' as the quoter to
7594 fputstrn_unfiltered.
7595 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7596 generate the output.
7597 (mi_solib_unloaded): Same.
7598
270c9937
JB
75992014-06-05 Joel Brobecker <brobecker@adacore.com>
7600
7601 * development.sh: Delete.
7602 * Makefile.in (config.status): Adjust dependency on development.sh.
7603 * configure.ac: Adjust development.sh source call.
7604 * configure: Regenerate.
7605
16f691fb
DE
76062014-06-04 Doug Evans <xdje42@gmail.com>
7607
7608 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7609 is_scheme_bkpt, spec.
7610 (bpscm_make_breakpoint_smob): Initialize new members.
7611 (gdbscm_create_breakpoint_x): Split into two ...
7612 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7613 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7614 (scheme_function breakpoint_functions): Update.
7615 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7616 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7617 register-breakpoint!.
7618
ef7cab6b
JB
76192014-06-04 Joel Brobecker <brobecker@adacorer.com>
7620
7621 PR server/17023
7622 * mem-break.c (z_type_supported): Return zero if
7623 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7624
012370f6
TT
76252014-06-04 Tom Tromey <tromey@redhat.com>
7626
7627 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7628 value_from_contents_and_address_unresolved.
7629 (ada_template_to_fixed_record_type_1): Likewise.
7630 (ada_which_variant_applies): Likewise.
7631 * value.h (value_from_contents_and_address_unresolved): Declare.
7632 * value.c (value_from_contents_and_address_unresolved): New
7633 function.
7634 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7635 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7636 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7637
92e2a17f
TT
76382014-06-04 Tom Tromey <tromey@redhat.com>
7639
7640 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7641
c0939df1
TT
76422014-06-04 Tom Tromey <tromey@redhat.com>
7643
7644 * procfs.c (procfs_attach): Make "args" const.
7645 * windows-nat.c (windows_attach): Make "args" const.
7646 * nto-procfs.c (procfs_attach): Make "args" const.
7647 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7648 * go32-nat.c (go32_attach): Make "args" const.
7649 * gnu-nat.c (gnu_attach): Make "args" const.
7650 * darwin-nat.c (darwin_attach): Make "args" const.
7651 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7652 * linux-nat.c (linux_nat_attach): Make "args" const.
7653 * remote.c (extended_remote_attach_1, extended_remote_attach):
7654 Make "args" const.
7655 * target.h (struct target_ops) <to_attach>: Make "args" const.
7656 (find_default_attach): Likewise.
7657 * utils.c (parse_pid_to_attach): Make "args" const.
7658 * utils.h (parse_pid_to_attach): Update.
7659
8eaff7cd
TT
76602014-06-04 Tom Tromey <tromey@redhat.com>
7661
7662 * target-delegates.c: Rebuild.
7663 * target.c (default_thread_address_space): New function.
7664 (target_thread_address_space): Simplify.
7665 * target.h (struct target_ops) <to_thread_address_space>: Add
7666 TARGET_DEFAULT_FUNC.
7667
1913f160
DE
76682014-06-04 Doug Evans <xdje42@gmail.com>
7669
7670 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7671
70ad5bff
MM
76722014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7673
7674 * record-btrace.c: Include event-loop.h and inf-loop.h.
7675 (record_btrace_resume_exec_dir)
7676 (record_btrace_async_inferior_event_handler)
7677 (record_btrace_handle_async_inferior_event): New.
7678 (record_btrace_open): Create async event handler.
7679 (record_btrace_close): Delete async event handler.
7680 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7681 Mark async event handler.
7682 (record_btrace_execution_direction): New.
7683 (init_record_btrace_ops): Initialize to_execution_direction.
7684
b6210538
DE
76852014-06-03 Doug Evans <xdje42@gmail.com>
7686
7687 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7688 (gdbscm_make_parameter): Ditto.
7689
a5b1fd27
DE
76902014-06-03 Doug Evans <dje@google.com>
7691
7692 * exec.c (exec_close_1): Call clear_section_table instead of
7693 resize_section_table.
7694 (clear_section_table): New function.
7695 (resize_section_table): Make static. Rename arg num_added to
7696 adjustment.
7697 * exec.h (clear_section_table): Declare.
7698 (resize_section_table): Delete.
7699 * progspace.c (release_program_space): Call clear_section_table
7700 instead of resize_section_table.
7701
0c6e92a5
SC
77022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7703
7704 * NEWS (Python Scripting): Add entry about the new xmethods
7705 feature.
7706
883964a7
SC
77072014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7708
7709 * python/py-xmethods.c: New file.
7710 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7711 (objfpy_dealloc): XDECREF on the new xmethods field.
7712 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7713 field.
7714 (objfpy_get_xmethods): New function.
7715 (objfile_getset): New entry 'xmethods'.
7716 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7717 (pspy_dealloc): XDECREF on the new xmethods field.
7718 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7719 field.
7720 (pspy_get_xmethods): New function.
7721 (pspace_getset): New entry 'xmethods'.
7722 * python/python-internal.h: Add declarations for new functions.
7723 * python/python.c (_initialize_python): Invoke
7724 gdbpy_initialize_xmethods.
7725 * python/lib/gdb/__init__.py (xmethods): New
7726 attribute.
7727 * python/lib/gdb/xmethod.py: New file.
7728 * python/lib/gdb/command/xmethods.py: New file.
7729
58992dc5
SC
77302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7731
7732 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7733 best match method returned by find_overload_match is an xmethod.
7734 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7735 the best matching operator returned by find_overload_match is an
7736 xmethod.
7737 * valops.c: #include "extension.h".
7738 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7739 Return void. The list of matching source methods is returned in
7740 "fn_list" and a vector of matching debug method workers is
7741 returned in "xm_worker_vec". Update all callers.
7742 (value_find_oload_method_list): Likewise.
7743 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7744 non-NULL, then the index of the best matching method in this
7745 vector is returned. Update all callers.
7746 (find_overload_match): Include xmethods while performing overload
7747 resolution.
7748
e81e7f5e
SC
77492014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7750
7751 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7752 * extension-priv.h (struct extension_language_ops): Add the
7753 xmethod interface.
7754 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7755 get_matching_xmethod_workers, get_xmethod_argtypes,
7756 invoke_xmethod, free_xmethod_worker,
7757 free_xmethod_worker_vec): New functions.
7758 * extension.h: #include "common/vec.h".
7759 New function declarations.
7760 (struct xmethod_worker): New struct.
7761 (VEC (xmethod_worker_ptr)): New vector type.
7762 (xmethod_worker_ptr): New typedef.
7763 (xmethod_worker_vec): Likewise.
7764 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7765 builtin_type.
7766 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7767 (struct builtin_type): New field "xmethod".
7768 * valarith.c (value_ptradd): Assert that the value argument is not
7769 lval_xcallable.
7770 * valops.c (value_must_coerce_to_target): Return 0 for
7771 lval_xcallable values.
7772 * value.c (struct value): New field XM_WORKER in the field
7773 LOCATION.
7774 (value_address, value_raw_address): Return 0 for lval_xcallable
7775 values.
7776 (set_value_address): Assert that the value is not an
7777 lval_xcallable.
7778 (value_free): Free the associated xmethod worker when freeing
7779 lval_xcallable values.
7780 (set_value_component_location): Assert that the WHOLE value is not
7781 lval_xcallable.
7782 (value_of_xmethod, call_xmethod): New functions.
7783 * value.h: Declare "struct xmethod_worker".
7784 Declare new functions value_of_xmethod, call_xmethod.
7785
ef370185
JB
77862014-06-03 Joel Brobecker <brobecker@adacore.com>
7787 Pedro Alves <palves@redhat.com>
7788
7789 PR breakpoints/17000
7790 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7791 New function, extracted from software_breakpoint_inserted_here_p.
7792 (software_breakpoint_inserted_here_p): Replace factored out code
7793 by call to find_non_raw_software_breakpoint_inserted_here.
7794 (bp_target_info_copy_insertion_state): New function.
7795 (bkpt_insert_location): Handle the case of a single-step
7796 breakpoint already inserted at the same address.
7797 (bkpt_remove_location): Handle the case of a single-step
7798 breakpoint still inserted at the same address.
7799 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7800 breakpoint already inserted at the same address.
7801 (deprecated_remove_raw_breakpoint): Handle the case of a
7802 non-raw breakpoint still inserted at the same address.
7803 (find_single_step_breakpoint): New function, extracted from
7804 single_step_breakpoint_inserted_here_p.
7805 (find_single_step_breakpoint): New function,
7806 factored out from single_step_breakpoint_inserted_here_p.
7807 (single_step_breakpoint_inserted_here_p): Reimplement.
7808
1e2ccb61
BM
78092014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7810
7811 Pushed by Joel Brobecker <brobecker@adacore.com>
7812 * source.c (show_substitute_path_command): Fix display of matching
7813 substitution rules.
7814
d3448d85
GB
78152014-06-03 Gary Benson <gbenson@redhat.com>
7816
7817 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7818
06eb1586
DE
78192014-06-02 Doug Evans <xdje42@gmail.com>
7820
7821 Add parameter support for Guile.
7822 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7823 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7824 (scm-param.o): New rule.
7825 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7826 (gdbscm_misc_error): Declare.
7827 (gdbscm_canonicalize_command_name): Declare.
7828 (gdbscm_scm_to_host_string): Declare.
7829 (gdbscm_scm_from_host_string): Declare.
7830 (gdbscm_initialize_parameters): Declare.
7831 * guile/guile.c (initialize_gdb_module): Call
7832 gdbscm_initialize_parameters.
7833 * guile/lib/gdb.scm: Export parameter symbols.
7834 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7835 cmdscm_canonicalize_name and made public. All callers updated.
7836 * guile/scm-exception.c (gdbscm_misc_error): New function.
7837 * guile/scm-param.c: New file.
7838 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7839 (gdbscm_scm_to_host_string): New function.
7840 (gdbscm_scm_from_host_string): New function.
7841 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7842
e698b8c4
DE
78432014-06-02 Doug Evans <xdje42@gmail.com>
7844
7845 Add command support for Guile.
7846 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7847 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7848 (scm-cmd.o): New rule.
7849 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7850 (gdbscm_user_error_p): Declare.
7851 (gdbscm_parse_command_name): Declare.
7852 (gdbscm_valid_command_class_p): Declare.
7853 (gdbscm_initialize_commands): Declare.
7854 * guile/guile.c (initialize_gdb_module): Call
7855 gdbscm_initialize_commands.
7856 * guile/lib/gdb.scm: Export command symbols.
7857 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7858 (throw-user-error): New function.
7859 * guile/scm-cmd.c: New file.
7860 * guile/scm-exception.c (user_error_symbol): New static global.
7861 (gdbscm_user_error_p): New function.
7862 (gdbscm_initialize_exceptions): Set user_error_symbol.
7863 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7864
fb1f94b0
PM
78652014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7866
7867 * top.c (command_loop): Handle comments here...
7868 (command_line_input): ... not here.
7869
ded03782
DE
78702014-06-02 Doug Evans <xdje42@gmail.com>
7871
7872 Add progspace support for Guile.
7873 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7874 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7875 (scm-progspace.o): New rule.
7876 * guile/guile-internal.h (pspace_smob): New typedef.
7877 (psscm_pspace_smob_pretty_printers): Declare.
7878 (psscm_pspace_smob_from_pspace): Declare.
7879 (psscm_scm_from_pspace): Declare.
7880 * guile/guile.c (initialize_gdb_module): Call
7881 gdbscm_initialize_pspaces.
7882 * guile/lib/gdb.scm: Export progspace symbols.
7883 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7884 support.
7885 (append-pretty-printer!): Ditto.
7886 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7887 Implement.
7888 * guile/scm-progspace.c: New file.
7889
397998fc
AM
78902014-06-03 Alan Modra <amodra@gmail.com>
7891
7892 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7893 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7894
6aa5f3a6
DE
78952014-06-02 Doug Evans <dje@google.com>
7896
7897 Add support for skeletonless type units.
7898 * dwarf2read.c (struct dwarf2_per_objfile): New member
7899 n_allocated_type_units.
7900 (struct dwarf2_per_objfile) <tu_stats>: New member
7901 nr_all_type_units_reallocs.
7902 (create_signatured_type_table_from_index): Initialize
7903 n_allocated_type_units
7904 (create_all_type_units): Ditto.
7905 (add_type_unit): Move up in file. New arg slot.
7906 All callers updated. Increase space for all_type_units more
7907 efficiently.
7908 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7909 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7910 (lookup_dwp_signatured_type): Ditto.
7911 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7912 All callers updated.
7913 (build_type_psymtabs_1): Leave type_unit_groups as
7914 NULL if no TUs present.
7915 (print_tu_stats): New function.
7916 (process_skeletonless_type_unit): New function.
7917 (process_dwo_file_for_skeletonless_type_units): New
7918 function.
7919 (process_skeletonless_type_units): New function.
7920 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7921 Call print tu_stats if debugging enabled.
7922
41fac0cf
PA
79232014-06-02 Pedro Alves <palves@redhat.com>
7924
7925 * breakpoint.c (build_target_command_list): Don't build a command
7926 list if we have any duplicate location that isn't a dprintf.
7927
cd1608cc
PA
79282014-06-02 Pedro Alves <palves@redhat.com>
7929
7930 * breakpoint.c (dprintf_breakpoint_hit): New function.
7931 (initialize_breakpoint_ops): Install it as dprintf's
7932 breakpoint_hit method.
7933
486ef3b9
JB
79342014-06-02 Joel Brobecker <brobecker@adacore.com>
7935
7936 * source.c (substitute_path_rule_matches): Simplify using
7937 filename_ncmp instead of FILENAME_CMP.
7938
230cd560
JB
79392014-06-02 Joel Brobecker <brobecker@adacore.com>
7940
7941 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7942
16954d5d
LC
79432014-06-01 Ludovic Courtès <ludo@gnu.org>
7944
7945 * configure.ac: When Guile is available, check for the
7946 availability of 'scm_new_smob'.
7947 * configure, config.h.in: Regenerate.
7948 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7949 function.
7950
53e8a631
AB
79512014-05-30 Andrew Burgess <aburgess@broadcom.com>
7952
7953 * frame.c (struct frame_info): Add stop_string field.
7954 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7955 (get_prev_frame_always): Old content moved into
7956 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7957 TRY_CATCH, handle MEMORY_ERROR exceptions.
7958 (frame_stop_reason_string): New function definition.
7959 * frame.h (unwind_stop_reason_to_string): Extend comment to
7960 mention frame_stop_reason_string.
7961 (frame_stop_reason_string): New function declaration.
7962 * stack.c (frame_info): Switch to frame_stop_reason_string.
7963 (backtrace_command_1): Switch to frame_stop_reason_string.
7964 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7965 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7966 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7967
70e38b8e
AB
79682014-05-30 Andrew Burgess <aburgess@broadcom.com>
7969
7970 * frame.c (frame_stop_reason_string): Rename to ...
7971 (unwind_stop_reason_to_string): this.
7972 * frame.h (frame_stop_reason_string): Rename to ...
7973 (unwind_stop_reason_to_string): this.
7974 * stack.c (frame_info): Update call to frame_stop_reason_string.
7975 (backtrace_command_1): Likewise.
7976 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7977 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7978
938f0e2f
AB
79792014-05-30 Andrew Burgess <aburgess@broadcom.com>
7980
7981 * frame.c (remove_prev_frame): New function.
7982 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7983 remove_prev_frame.
7984
a09dd441
PA
79852014-05-29 Pedro Alves <palves@redhat.com>
7986
7987 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7988 and make it const. When a single-step decays to a continue,
7989 clear 'step', not 'hw_step'. Pass whether the caller wanted
7990 to step to user_visible_resume_ptid, not what we ask the
7991 target to do.
7992
bdc36728
PA
79932014-05-29 Pedro Alves <palves@redhat.com>
7994
7995 * infrun.c (process_event_stop_test, handle_step_into_function)
7996 (handle_step_into_function_backward): Adjust.
7997 Don't set the even thread's stop_step and call stop_waiting before
7998 calling end_stepping_range. Instead do that ...
7999 (end_stepping_range): ... here. Take an ecs pointer parameter.
8000
22bcd14b
PA
80012014-05-29 Pedro Alves <palves@redhat.com>
8002
8003 * infrun.c (stop_stepping): Rename to ...
8004 (stop_waiting): ... this.
8005 (proceed): Update comment.
8006 (process_event_stop_test, handle_inferior_event)
8007 (handle_signal_stop, handle_step_into_function)
8008 (handle_step_into_function_backward): Update.
8009
4ae57c05
PA
80102014-05-29 Pedro Alves <palves@redhat.com>
8011
8012 * infcall.c (run_inferior_call): Don't check whether the current
8013 thread is running after the proceed call.
8014
329ea579
PA
80152014-05-29 Pedro Alves <palves@redhat.com>
8016 Tom Tromey <tromey@redhat.com>
8017
8018 * NEWS: Mention "maint set target-async", "set mi-async", and that
8019 background execution commands are now always available.
8020 * target.h (target_async_permitted): Update comment.
8021 * target.c (target_async_permitted, target_async_permitted_1):
8022 Default to 1.
8023 (set_target_async_command): Rename to ...
8024 (maint_set_target_async_command): ... this.
8025 (show_target_async_command): Rename to ...
8026 (maint_show_target_async_command): ... this.
8027 (_initialize_target): Adjust.
8028 * infcmd.c (prepare_execution_command): Make extern.
8029 * inferior.h (prepare_execution_command): Declare.
8030 * infrun.c (set_observer_mode): Leave target async alone.
8031 * mi/mi-interp.c (mi_interpreter_init): Install
8032 mi_on_sync_execution_done as sync_execution_done observer.
8033 (mi_on_sync_execution_done): New function.
8034 (mi_execute_command_input_handler): Don't print the prompt if we
8035 just started a synchronous command with an async target.
8036 (mi_on_resume): Check sync_execution before printing prompt.
8037 * mi/mi-main.h (mi_async_p): Declare.
8038 * mi/mi-main.c: Include gdbcmd.h.
8039 (mi_async_p): New function.
8040 (mi_async, mi_async_1): New globals.
8041 (set_mi_async_command, show_mi_async_command, mi_async): New
8042 functions.
8043 (exec_continue): Call prepare_execution_command.
8044 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8045 (mi_execute_async_cli_command): Use mi_async_p.
8046 (_initialize_mi_main): Install "set mi-async". Make
8047 "target-async" a deprecated alias.
8048
92bcb5f9
PA
80492014-05-29 Pedro Alves <palves@redhat.com>
8050
8051 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8052 (_initialize_cli_interp): Adjust.
8053 * event-loop.c: Include "observer.h".
8054 (start_event_loop): Notify 'command_error' observers instead of
8055 calling display_gdb_prompt. Remove FIXME comment.
8056 * event-top.c (display_gdb_prompt): Remove call into the
8057 interpreters.
8058 * inf-loop.c: Include "observer.h".
8059 (inferior_event_handler): Notify 'command_error' observers instead
8060 of calling display_gdb_prompt.
8061 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8062 observers instead of calling display_gdb_prompt.
8063 * interps.c (interp_set): Don't call display_gdb_prompt.
8064 (current_interp_display_prompt_p): Delete.
8065 * interps.h (interp_prompt_p): Delete declaration.
8066 (interp_prompt_p_ftype): Delete.
8067 (struct interp_procs) <prompt_proc_p>: Delete field.
8068 (current_interp_display_prompt_p): Delete declaration.
8069 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8070 (_initialize_mi_interp): Adjust.
8071 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8072 'command_error' observers.
8073 (tui_on_sync_execution_done, tui_on_command_error): New
8074 functions.
8075 (tui_display_prompt_p): Delete.
8076 (_initialize_tui_interp): Adjust.
8077
fd664c91
PA
80782014-05-29 Pedro Alves <palves@redhat.com>
8079
8080 PR gdb/13860
8081 * cli/cli-interp.c: Include infrun.h and observer.h.
8082 (cli_uiout, cli_interp): New globals.
8083 (cli_on_signal_received, cli_on_end_stepping_range)
8084 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8085 functions.
8086 (cli_interpreter_init): Install them as 'end_stepping_range',
8087 'signal_received' 'signal_exited', 'exited' and 'no_history'
8088 observers.
8089 (_initialize_cli_interp): Remove cli_interp local.
8090 * infrun.c (handle_inferior_event): Call the several stop reason
8091 observers instead of printing the stop reason directly.
8092 (end_stepping_range): New function.
8093 (print_end_stepping_range_reason, print_signal_exited_reason)
8094 (print_exited_reason, print_signal_received_reason)
8095 (print_no_history_reason): Make static, and add an uiout
8096 parameter. Print to that instead of to CURRENT_UIOUT.
8097 * infrun.h (print_end_stepping_range_reason)
8098 (print_signal_exited_reason, print_exited_reason)
8099 (print_signal_received_reason print_no_history_reason): New
8100 declarations.
8101 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8102 'mi_uiout'.
8103 <cli_uiout>: New field.
8104 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8105 uiout for CLI output. Install 'signal_received',
8106 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8107 observers.
8108 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8109 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8110 (mi_on_no_history): New functions.
8111 (ui_out_free_cleanup): Delete function.
8112 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8113 instead use the one already stored in the MI interpreter data.
8114 (mi_ui_out): Adjust.
8115 * tui/tui-interp.c: Include infrun.h and observer.h.
8116 (tui_interp): New global.
8117 (tui_on_signal_received, tui_on_end_stepping_range)
8118 (tui_on_signal_exited, tui_on_exited)
8119 (tui_on_no_history): New functions.
8120 (tui_init): Install them as 'end_stepping_range',
8121 'signal_received' 'signal_exited', 'exited' and 'no_history'
8122 observers.
8123 (_initialize_tui_interp): Delete tui_interp local.
8124
8817a6f2
PA
81252014-05-29 Pedro Alves <palves@redhat.com>
8126
8127 PR gdb/15713
8128 * linux-nat.c (linux_nat_resume_callback): Rename the second
8129 parameter to 'except'. Skip LP if it points to EXCEPT.
8130 (linux_nat_resume): Don't mark the event lwp as not stopped
8131 before resuming sibling lwps. Instead ask
8132 linux_nat_resume_callback to skip the event lwp. Mark it as not
8133 stopped after actually resuming it.
8134 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8135 resuming it.
8136 (wait_lwp): Mark the lwp as stopped here.
8137 (stop_wait_callback): Mark the lwp as not stopped right after
8138 resuming it. Don't mark lwps as stopped here.
8139 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8140 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8141
251bde03
PA
81422014-05-29 Pedro Alves <palves@redhat.com>
8143
8144 PR PR15693
8145 * infrun.c (resume): Determine how much to resume depending on
8146 whether the caller wanted a step, not whether we can hardware step
8147 the target. Mark all threads that we intend to run as running,
8148 unless we're calling an inferior function.
8149 (normal_stop): If the thread is running an infcall, don't finish
8150 thread state.
8151 * target.c (target_resume): Don't mark threads as running here.
8152
7f3c0343
JB
81532014-05-28 Joel Brobecker <brobecker@adacore.com>
8154
8155 * serial.c (_initialize_serial): Remove support for
8156 the "set remotebaud" and "show remotebaud" commands.
8157 * NEWS: Add entry documenting the removal of that command.
8158
ee34b3f9
YQ
81592014-05-28 Yao Qi <yao@codesourcery.com>
8160
8161 * charset.c: Fix typo in comments.
8162
add6c04d
GB
81632014-05-27 Gary Benson <gbenson@redhat.com>
8164
8165 * utils.c (internal_vproblem): Prompt for a bug report.
8166
92c48fc5
AW
81672014-05-26 Andy Wingo <wingo@igalia.com>
8168
8169 * guile/scm-arch.c (arscm_mark_arch_smob):
8170 * guile/scm-block.c (bkscm_mark_block_smob)
8171 (bkscm_mark_block_syms_progress_smob):
8172 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8173 * guile/scm-exception.c (exscm_mark_exception_smob):
8174 * guile/scm-frame.c (frscm_mark_frame_smob):
8175 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8176 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8177 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8178 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8179 (ppscm_mark_pretty_printer_worker_smob):
8180 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8181 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8182 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8183 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8184 mark functions.
8185 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8186 function.
8187
b2715b27
AW
81882014-05-26 Andy Wingo <wingo@igalia.com>
8189 Doug Evans <xdje42@gmail.com>
8190
8191 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8192 empty_base_class. All uses updated.
8193 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8194 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8195 Adapt all callers.
8196 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8197 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8198 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8199 (gdbscm_gsmob_has_property_p, add_property_name)
8200 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8201 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8202 (gdb-object-has-property?, gdb-object-properties): Remove.
8203 (gdb-object-kind): Renamed from gsmob-kind.
8204
214ab2da
AW
82052014-05-26 Andy Wingo <wingo@igalia.com>
8206
8207 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8208 * configure: Regenerate.
8209
589fdceb
MM
82102014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8211
8212 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8213
67b5c0c1
MM
82142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8215
8216 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8217 (replay_memory_access_read_only, replay_memory_access_read_write)
8218 (replay_memory_access_types, replay_memory_access)
8219 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8220 (cmd_set_record_btrace, cmd_show_record_btrace)
8221 (cmd_show_replay_memory_access): New.
8222 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8223 (record_btrace_remove_breakpoint): Replace
8224 record_btrace_allow_memory_access with replay_memory_access.
8225 (_initialize_record_btrace): Add commands.
8226 * NEWS: Announce it.
8227
036cd381
RR
82282014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8229
8230 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8231
c77c1e42
RR
82322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8233
8234 * MAINTAINERS (Write After Approval): Move self back from
8235 paper trail.
8236
45741a9c
PA
82372014-05-22 Pedro Alves <palves@redhat.com>
8238
8239 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8240 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8241 (disable_randomization, enum exec_direction_kind)
8242 (execution_direction, stop_registers, start_remote)
8243 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8244 (wait_for_inferior, normal_stop, get_last_target_status)
8245 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8246 (insert_step_resume_breakpoint_at_sal)
8247 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8248 (set_step_info, print_stop_event, signal_stop_state)
8249 (signal_print_state, signal_pass_state, signal_stop_update)
8250 (signal_print_update, signal_pass_update)
8251 (update_signals_program_target, clear_exit_convenience_vars)
8252 (displaced_step_dump_bytes, update_observer_mode)
8253 (signal_catch_update, gdb_signal_from_command): Move
8254 declarations ...
8255 * infrun.h: ... to this new file.
8256 * amd64-tdep.c: Include infrun.h.
8257 * annotate.c: Include infrun.h.
8258 * arch-utils.c: Include infrun.h.
8259 * arm-linux-tdep.c: Include infrun.h.
8260 * arm-tdep.c: Include infrun.h.
8261 * break-catch-sig.c: Include infrun.h.
8262 * breakpoint.c: Include infrun.h.
8263 * common/agent.c: Include infrun.h instead of inferior.h.
8264 * corelow.c: Include infrun.h.
8265 * event-top.c: Include infrun.h.
8266 * go32-nat.c: Include infrun.h.
8267 * i386-tdep.c: Include infrun.h.
8268 * inf-loop.c: Include infrun.h.
8269 * infcall.c: Include infrun.h.
8270 * infcmd.c: Include infrun.h.
8271 * infrun.c: Include infrun.h.
8272 * linux-fork.c: Include infrun.h.
8273 * linux-nat.c: Include infrun.h.
8274 * linux-thread-db.c: Include infrun.h.
8275 * monitor.c: Include infrun.h.
8276 * nto-tdep.c: Include infrun.h.
8277 * procfs.c: Include infrun.h.
8278 * record-btrace.c: Include infrun.h.
8279 * record-full.c: Include infrun.h.
8280 * remote-m32r-sdi.c: Include infrun.h.
8281 * remote-mips.c: Include infrun.h.
8282 * remote-notif.c: Include infrun.h.
8283 * remote-sim.c: Include infrun.h.
8284 * remote.c: Include infrun.h.
8285 * reverse.c: Include infrun.h.
8286 * rs6000-tdep.c: Include infrun.h.
8287 * s390-linux-tdep.c: Include infrun.h.
8288 * solib-irix.c: Include infrun.h.
8289 * solib-osf.c: Include infrun.h.
8290 * solib-svr4.c: Include infrun.h.
8291 * target.c: Include infrun.h.
8292 * top.c: Include infrun.h.
8293 * windows-nat.c: Include infrun.h.
8294 * mi/mi-interp.c: Include infrun.h.
8295 * mi/mi-main.c: Include infrun.h.
8296 * python/py-threadevent.c: Include infrun.h.
8297
98eb56a4
PA
82982014-05-22 Pedro Alves <palves@redhat.com>
8299
8300 * infrun.c (handle_inferior_event): Store the exit code for
8301 --return-child-result here, instead of ...
8302 (print_exited_reason): ... here.
8303
17b2616c
PA
83042014-05-21 Pedro Alves <palves@redhat.com>
8305
8306 PR gdb/13860
8307 * gdbthread.h (struct thread_control_state): New field
8308 `command_interp'.
8309 * infrun.c (follow_fork): Copy the new thread control field to the
8310 child fork thread.
8311 (clear_proceed_status_thread): Clear the new thread control field.
8312 (proceed): Set the new thread control field.
8313 * interps.h (command_interp): Declare.
8314 * interps.c (command_interpreter): New global.
8315 (command_interp): New function.
8316 (interp_exec): Set `command_interpreter' while here.
8317 * cli-out.c (cli_uiout_dtor): New function.
8318 (cli_ui_out_impl): Install it.
8319 * mi/mi-interp.c: Include cli-out.h.
8320 (mi_cmd_interpreter_exec): Add comment.
8321 (restore_current_uiout_cleanup): New function.
8322 (ui_out_free_cleanup): New function.
8323 (mi_on_normal_stop): If finishing an execution command started by
8324 a CLI command, or any kind of breakpoint-like event triggered,
8325 print the stop event to the output (CLI) stream.
8326 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8327
5166082f
PA
83282014-05-21 Pedro Alves <palves@redhat.com>
8329
8330 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8331 current source line having changed.
8332 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8333 * infrun.c (normal_stop): Adjust call to
8334 set_current_sal_from_frame.
8335 * source.c (clear_lines_listed_range): New function.
8336 (set_current_source_symtab_and_line, identify_source_line): Clear
8337 the lines listed range.
8338 (line_info): Handle the first "info line" after the current source
8339 line having changed.
8340 * stack.c (print_stack_frame): Remove center handling.
8341 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8342 center sal.line.
8343
c1ee2fb3
PA
83442014-05-21 Pedro Alves <palves@redhat.com>
8345
8346 * inf-child.c (inf_child_mourn_inferior): New function.
8347 * inf-child.h (inf_child_mourn_inferior): New declaration.
8348 * darwin-nat.c (darwin_mourn_inferior): Use
8349 inf_child_mourn_inferior.
8350 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8351 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8352 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8353 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8354 * windows-nat.c (windows_mourn_inferior): Likewise.
8355
5c6d4fb2
DE
83562014-05-21 Doug Evans <xdje42@gmail.com>
8357
250748cb 8358 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8359
4a2722c5
DE
83602014-05-21 Doug Evans <xdje42@gmail.com>
8361
17292b30 8362 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8363 (gdbscm_out_of_range_error): Ditto.
8364 (gdbscm_memory_error): Ditto.
250748cb
DE
8365 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8366 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8367 (gdbscm_out_of_range_error): Update.
8368 (gdbscm_memory_error): Update.
8369 (gdbscm_scm_to_target_string_unsafe): Delete.
8370
6a3cb8e8
PA
83712014-05-21 Pedro Alves <palves@redhat.com>
8372
8373 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8374 globals.
8375 (inf_child_open_target): New function.
8376 (inf_child_open): Use inf_child_open_target to push the target
8377 instead of erroring out.
8378 (inf_child_disconnect, inf_child_close)
8379 (inf_child_maybe_unpush_target): New functions.
8380 (inf_child_target): Install inf_child_disconnect and
8381 inf_child_close. Store a pointer to the returned object.
8382 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8383 declarations.
8384 * target.c (auto_connect_native_target): New global.
8385 (show_default_run_target): New function.
8386 (find_default_run_target): Return NULL if automatically connecting
8387 to the native target is disabled.
8388 (_initialize_target): Install set/show auto-connect-native-target.
8389 * NEWS: Mention "set auto-connect-native-target", and "target
8390 native".
8391 * linux-nat.c (super_close): New global.
8392 (linux_nat_close): Call super_close.
8393 (linux_nat_add_target): Store a pointer to the base class's
8394 to_close method.
8395 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8396 inf_child_maybe_unpush.
8397 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8398 already pushed.
8399 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8400 the inferior. Use inf_child_maybe_unpush_target.
8401 (inf_ttrace_attach): Don't push the target if it is already
8402 pushed.
8403 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8404 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8405 after mourning the inferior. Use inf_child_maybe_unpush_target.
8406 (darwin_attach_pid): Don't push the target if it is already
8407 pushed.
8408 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8409 mourning the inferior. Use inf_child_maybe_unpush_target.
8410 (gnu_detach): Use inf_child_maybe_unpush_target.
8411 * go32-nat.c (go32_create_inferior): Don't push the target if it
8412 is already pushed.
8413 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8414 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8415 (procfs_open): Rename to ...
8416 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8417 comments. Can target_preopen before changing node. Call
8418 inf_child_open_target to push the target explicitly.
8419 (procfs_attach): Don't push the target if it is already pushed.
8420 (procfs_detach): Use inf_child_maybe_unpush_target.
8421 (procfs_create_inferior): Don't push the target if it is already
8422 pushed.
8423 (nto_native_ops): New global.
8424 (procfs_open): Reimplement.
8425 (procfs_native_open): New function.
8426 (init_procfs_targets): Install procfs_native_open as to_open of
8427 "target native". Store a pointer to the "native" target in
8428 nto_native_ops.
8429 * procfs.c (procfs_attach): Don't push the target if it is already
8430 pushed.
8431 (procfs_detach): Use inf_child_maybe_unpush_target.
8432 (procfs_mourn_inferior): Only unpush the target after mourning the
8433 inferior. Use inf_child_maybe_unpush_target.
8434 (procfs_init_inferior): Don't push the target if it is already
8435 pushed.
8436 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8437 if it is already pushed.
8438
930ee1b1
PA
84392014-05-21 Pedro Alves <palves@redhat.com>
8440
8441 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8442 and "procfs" targets are now called "native" instead.
8443
1f5d1b13
PA
84442014-05-21 Pedro Alves <palves@redhat.com>
8445
8446 * go32-nat.c (go32_open): Delete.
8447 (go32_target): Don't override the to_open method.
8448
132f8e03
PA
84492014-05-21 Pedro Alves <palves@redhat.com>
8450
8451 * nto-procfs.c (procfs_can_run): New function.
8452 (nto_procfs_ops): New global.
8453 (init_procfs_targets): New, based on procfs_target. Install
8454 "target native" in addition to "target procfs".
8455 (_initialize_procfs): Call init_procfs_targets instead of adding
8456 the target here.
8457
03c136c3
PA
84582014-05-21 Pedro Alves <palves@redhat.com>
8459
8460 * windows-nat.c (windows_target): Don't override to_shortname,
8461 to_longname or to_doc.
8462
a635d0f3
PA
84632014-05-21 Pedro Alves <palves@redhat.com>
8464
8465 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8466 to_doc.
8467
4f9b5133
PA
84682014-05-21 Pedro Alves <palves@redhat.com>
8469
8470 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8471 to_shortname, to_longname or to_doc.
8472
bc85afde
PA
84732014-05-21 Pedro Alves <palves@redhat.com>
8474
8475 * go32-nat.c (go32_target): Don't override to_shortname,
8476 to_longname or to_doc.
8477
4ebfc96e
PA
84782014-05-21 Pedro Alves <palves@redhat.com>
8479
8480 * inf-child.c (inf_child_open): Remove mention of "child".
8481 (inf_child_target): Rename target to "native" instead of "child".
8482
2648dfed
AA
84832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8484
8485 * Makefile.in (SFILES): Delete "regset.c".
8486 (COMMON_OBS): Delete "regset.o".
8487 * regset.c: Remove.
8488 * regset.h (regset_alloc): Delete prototype.
8489
b13feb94
AA
84902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8491
8492 * sparc-linux-tdep.c (sparc32_linux_gregset)
8493 (sparc32_linux_fpregset): New static regset structures.
8494 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8495 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8496 'fpregset' fields.
8497 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8498 (sparc64_linux_fpregset): New static regset structures.
8499 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8500 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8501 New static regset structures.
8502 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8503 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8504 New static regset structures.
8505 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8506 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8507 New static regset structures.
8508 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8509 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8510 New static regset structures.
8511 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8512
b4fd25c9
AA
85132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8514
8515 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8516 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8517 register maps ("regmaps") from "*regset" to "*regmap". Do this
8518 for all regmap types and variables.
8519 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8520 (sparc32_linux_supply_core_gregset)
8521 (sparc32_linux_collect_core_gregset)
8522 (sparc32_linux_supply_core_fpregset)
8523 (sparc32_linux_collect_core_fpregset): Likewise.
8524 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8525 (sparc_gregmap, sparc_fpregmap): ... these.
8526 (sparc_supply_gregset, sparc_collect_gregset)
8527 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8528 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8529 (_initialize_sparc_nat): Rename regmaps.
8530 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8531 (sparc_gregmap, sparc_fpregmap): ... these.
8532 (sparc_supply_gregset, sparc_collect_gregset)
8533 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8534 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8535 Rename macros to...
8536 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8537 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8538 Likewise.
8539 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8540 Rename to...
8541 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8542 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8543 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8544 regmaps.
8545 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8546 (sparc32_bsd_fpregset): Rename to...
8547 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8548 (sparc32_bsd_fpregmap): ... these.
8549 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8550 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8551 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8552 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8553 (struct sparc_gregmap, struct sparc_fpregmap)
8554 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8555 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8556 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8557 (sparc32_supply_regset, sparc32_collect_gregset)
8558 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8559 prototypes.
8560 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8561 (sparc64_linux_ptrace_gregmap): ... this.
8562 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8563 (_initialize_sparc64_linux_nat): Rename regmaps.
8564 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8565 (sparc64_linux_core_gregmap): ... this.
8566 (sparc64_linux_supply_core_gregset)
8567 (sparc64_linux_collect_core_gregset)
8568 (sparc64_linux_supply_core_fpregset)
8569 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8570 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8571 (sparc64_sol2_fpregset): Rename to...
8572 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8573 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8574 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8575 regmaps.
8576 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8577 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8578 (sparc64_bsd_fpregset): Rename to...
8579 (struct sparc_gregmap, sparc64_sol2_gregmap)
8580 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8581 (sparc64_bsd_fpregmap): ... these.
8582 (sparc64_supply_gregset, sparc64_collect_gregset)
8583 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8584 prototypes.
8585 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8586 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8587 (sparc64fbsd_gregmap): ... this.
8588 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8589 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8590 Rename regmaps.
8591 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8592 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8593 (sparc64nbsd_collect_fpregset): Likewise.
8594 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8595 (sparc64nbsd_gregmap): ... this.
8596 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8597 regmaps.
8598 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8599 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8600 (sparc64obsd_gregmap): ... this.
8601 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8602 regmaps.
8603 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8604 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8605 (sparc32nbsd_gregmap): ... this.
8606 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8607 regmaps.
8608
8fea3224
AA
86092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8610
8611 * score-tdep.c (score7_linux_gregset): New static regset
8612 structure.
8613 (score7_linux_regset_from_core_section): Remove dynamic regset
8614 allocation.
8615 (score_gdbarch_init): Drop allocation of tdep structure.
8616 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8617
24534243
AA
86182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8619
8620 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8621 regset structures.
8622 (am33_regset_from_core_section): Remove dynamic regset
8623 allocations.
8624
b7195f27
AA
86252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8626
8627 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8628 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8629 structures.
8630 (mips_linux_regset_from_core_section): Remove dynamic regset
8631 allocations.
8632 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8633 'gregset64', 'fpregset', and 'fpregset64'.
8634 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8635 deleted tdep fields.
8636
ecc37a5a
AA
86372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8638
8639 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8640 regset structures.
8641 (amd64_regset_from_core_section): Remove dynamic regset
8642 allocations.
8643 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8644 structure.
8645 (amd64obsd_regset_from_core_section): Remove dynamic regset
8646 allocation.
8647 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8648 Likewise.
8649 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8650 x86-common regset supply function.
8651 * i386-tdep.c (i386_collect_gregset): Make static.
8652 (i386_gregset): New global regset structure.
8653 (i386_fpregset, i386_xstateregset): New static regset structures.
8654 (i386_regset_from_core_section): Remove dynamic regset
8655 allocations.
8656 (i386_gdbarch_init): Remove initialization of tdep fields
8657 'gregset', 'fpregset', and 'xstateregset'.
8658 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8659 'fpregset', and 'xstateregset'.
8660 (i386_collect_gregset): Remove prototype.
8661 (i386_gregset): New declaration.
8662 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8663 structure.
8664 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8665 allocation.
8666
b7611c43
AA
86672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8668
8669 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8670 (arm_linux_vfpregset): New static regset structures.
8671 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8672 regset structures.
8673 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8674 and 'vfpregset' fields.
8675
a069a2bd
AA
86762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8677
8678 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8679 (aarch64_linux_fpregset): New static regset structures.
8680 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8681 of regset structures.
8682 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8683 'fpregset' fields.
8684
09424cff
AA
86852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8686
8687 * regset.h (struct regset): Remove gdbarch field.
8688 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8689 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8690 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8691 Likewise.
8692 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8693 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8694 (ppc32_linux_vsxregset): Likewise.
8695 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8696 via the regcache instead of the regset.
8697 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8698 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8699 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8700 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8701 Likewise.
8702
3ca7dae4
AA
87032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8704
8705 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8706 Constify structures.
8707 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8708 (alphanbsd_aout_gregset): Likewise.
8709 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8710 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8711 Likewise.
8712 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8713 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8714 Likewise.
8715 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8716 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8717 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8718 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8719 * m88k-tdep.c (m88k_gregset): Likewise.
8720 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8721 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8722 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8723 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8724 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8725 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8726 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8727 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8728 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8729 Likewise.
8730 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8731 * sh-tdep.h (sh_corefile_gregset): Likewise.
8732 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8733 * vax-tdep.c (vax_gregset): Likewise.
8734
5876f503
JK
87352014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8736
8737 Fix TLS access for -static -pthread.
8738 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8739 (try_thread_db_load_1): Initialize it.
8740 (thread_db_get_thread_local_address): Call it if LM is zero.
8741 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8742 * target.h (struct target_ops) (to_get_thread_local_address): Add
8743 load_module_addr comment.
8744
0256a6ac
PA
87452014-05-21 Pedro Alves <palves@redhat.com>
8746
8747 * dcache.c (dcache_read_memory_partial): If reading the cache line
8748 fails, fallback to reading just the memory the caller wanted.
8749
227533ac
DE
87502014-05-20 Doug Evans <dje@google.com>
8751
8752 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8753 instead of get_current_arch.
8754
936d2992
PA
87552014-05-20 Pedro Alves <palves@redhat.com>
8756
8757 * NEWS: Mention that compare-sections now works with all targets.
8758
8759 * remote.c (PACKET_qCRC): New enum value.
8760 (remote_verify_memory): Don't send qCRC if the target has no
8761 execution. Use packet_support/packet_ok. If the target doesn't
8762 support the qCRC packet, fallback to a deep memory copy.
8763 (compare_sections_command): Say "target image" instead of "remote
8764 executable".
8765 (_initialize_remote): Add PACKET_qCRC to the list of config
8766 packets that have no associated command. Extend comment.
8767 * target.c (simple_verify_memory, default_verify_memory): New
8768 function.
8769 * target.h (struct target_ops) <to_verify_memory>: Default to
8770 default_verify_memory.
8771 (simple_verify_memory): New declaration.
8772 * target-delegates.c: Regenerate.
8773
e59fa00f
MM
87742014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8775
8776 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8777
f2205de0
HZ
87782014-05-20 Hui Zhu <hui@codesourcery.com>
8779 Yao Qi <yao@codesourcery.com>
8780
8781 PR backtrace/16558
8782 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8783 and change address of sp and pc.
8784
c4e54771
TT
87852014-05-19 Tom Tromey <tromey@redhat.com>
8786
8787 * gdbtypes.c (rank_function): Use XNEWVEC.
8788 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8789
73051182
DE
87902014-05-19 Doug Evans <dje@google.com>
8791
8792 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8793 build_type_unit_groups and moved closer to only caller. Remove
8794 arguments. All references updated. Remove outdated .gdb_index
8795 comment.
8796 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8797 build_type_psymtabs_1.
8798
8832e7e3
DE
87992014-05-19 Doug Evans <dje@google.com>
8800
8801 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8802 n_type_unit_groups, all_type_unit_groups. All uses removed.
8803 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8804 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8805 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8806 (add_type_unit_group_to_table): Delete.
8807
cd8ae15e
DE
88082014-05-19 Doug Evans <dje@google.com>
8809
8810 * eval.c (evaluate_subexp_standard): Add some comments.
8811
08f4850b
DE
88122014-05-17 Doug Evans <xdje42@gmail.com>
8813
8814 * progspace.c (remove_program_space): Delete, unused.
8815 * progspace.h (remove_program_space): Ditto.
8816
bed8455c
DE
88172014-05-17 Doug Evans <xdje42@gmail.com>
8818
8819 * inferior.c (prune_inferiors): Fix comment.
8820 (remove_inferior_command): Call prune_program_spaces.
8821
8d551b02
DE
88222014-05-16 Doug Evans <dje@google.com>
8823
8824 New command line option -D.
8825 * NEWS: Mention it.
8826 * main.c (set_gdb_data_directory): New function.
8827 (captured_main): Recognize -D. Flag error for --data-directory "".
8828 Call set_gdb_data_directory.
8829 (print_gdb_help): Print --data-directory, -D.
8830 * main.h (set_gdb_data_directory): Declare.
8831 * top.c (staged_gdb_datadir): New static global.
8832 (set_gdb_datadir): Call set_gdb_data_directory
8833 (show_gdb_datadir): New function.
8834 (init_main): Update init of data-directory parameter.
8835
18848e28
GF
88362014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8837
8838 Import the "dirfd" gnulib module.
8839 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8840 * gnulib/aclocal.m4: Update.
8841 * gnulib/config.in: Update.
8842 * gnulib/configure: Update.
8843 * gnulib/import/Makefile.am: Update.
8844 * gnulib/import/Makefile.in: Update.
8845 * gnulib/import/dirfd.c: New.
8846 * gnulib/import/m4/dirfd.m4: New.
8847 * gnulib/import/m4/gnulib-cache.m4: Update.
8848 * gnulib/import/m4/gnulib-comp.m4: Update.
8849
95c64f92
YQ
88502014-05-16 Pierre Muller <muller@sourceware.org>
8851 Yao Qi <yao@codesourcery.com>
8852
8853 * valprint.c (print_wchar): Move the code on checking whether
8854 W is a printable wide char to the default branch of switch
8855 statement below. Call wchar_printable instead of gdb_iswprint.
8856
cac395ea
TM
88572014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8858
19679eca 8859 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8860 ldr.w and ldrd instructions.
8861
83655187
DE
88622014-05-15 Doug Evans <dje@google.com>
8863
8864 * dwarf2read.c (read_structure_type): Delete outdated comments.
8865
dd756689
TT
88662014-05-14 Tom Tromey <tromey@redhat.com>
8867
8868 * macrocmd.c (print_macro_definition): Reindent.
8869
75ddda77
DE
88702014-05-13 Doug Evans <xdje42@gmail.com>
8871
8872 * python/py-cmd.c (cmdpy_completer): Add comment.
8873 (completers): Make const.
8874
b0f16a3e
SM
88752014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8876
8877 * infrun.c (resume): Remove should_resume (unused). Move up
8878 declaration of resume_ptid.
8879
033c3379
TT
88802014-05-13 Tom Tromey <tromey@redhat.com>
8881
8882 * language.h (unop_type_check): Remove.
8883 (binop_type_check): Don't declare.
8884
9b44a3a5
AA
88852014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8886
8887 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8888 call to regcache_raw_collect.
8889
303a33fa
SM
88902014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8891
8892 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8893 mi_console->quote as the quoting character.
8894
196100a0
SM
88952014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8896
8897 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8898
f989a1c8
TT
88992014-04-29 Tom Tromey <tromey@redhat.com>
8900
8901 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8902 "show debug varobj".
8903
9404b58f
KM
89042014-05-07 Kyle McMartin <kyle@redhat.com>
8905
8906 Pushed by Joel Brobecker <brobecker@adacore.com>.
8907 * aarch64-tdep.c (aarch64_software_single_step): New function.
8908 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8909 with aarch64_software_single_step.
8910
5e49ba57
JB
89112014-05-05 Joel Brobecker <brobecker@adacore.com>
8912
8913 GDB 7.7.1 released.
8914
c888a17d
KS
89152014-05-05 Keith Seitz <keiths@redhat.com>
8916
8917 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8918 variable or history value is successfully parsed.
8919
290a839c
YQ
89202014-05-05 Yao Qi <yao@codesourcery.com>
8921 Pedro Alves <palves@redhat.com>
8922
8923 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8924 address of blocks that intersects the requested range. Trim
8925 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8926 sections.
8927 * ctf.c (ctf_xfer_partial): Likewise.
8928
91256dc2
YQ
89292014-05-05 Yao Qi <yao@codesourcery.com>
8930
8931 * printcmd.c (display_command): Remove the check to
8932 target_has_execution.
8933
07284463
MK
89342014-05-03 Mark Kettenis <kettenis@gnu.org>
8935
8936 * ppcobsd-nat.c: Include "obsd-nat.h".
8937 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8938 add_target.
8939 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8940
30a1e6cc
SDJ
89412014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8942
8943 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8944 and 16-bit signed and unsigned arguments. Update comment.
8945 (stap_parse_probe_arguments): Extend code to handle such
8946 arguments. Use warning instead of complaint to notify about
8947 unrecognized bitness.
8948
f33da99a
SDJ
89492014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8950
8951 PR breakpoints/16889
8952 * stap-probe.c (stap_parse_probe_arguments): Simplify
8953 check for non-prefixed probes (i.e., probes whose
8954 arguments do not start with "N@"). Always set the
8955 argument type to a sane value.
8956
95cf3b38
DT
89572014-05-01 David Taylor <dtaylor@emc.com>
8958
8959 * remote.c (compare_sections_command): Add -r option to compare
8960 all loadable read-only sections.
8961
1cfdf534
SC
89622014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8963
8964 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8965 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8966 Update all callers.
8967 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8968 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8969 Remove unused CORE_ADDR argument. Update all callers.
8970
ca4f7f8b
PA
89712014-04-29 Pedro Alves <palves@redhat.com>
8972
8973 * remote.c (struct packet_config) <detect>: Extend comment.
8974 (add_packet_config_cmd): Don't set the config's detect or support
8975 fields here.
8976 (init_all_packet_configs): Also initialize the config's 'detect'
8977 field.
8978 (reset_all_packet_configs_support): New function.
8979 (remote_open_1): Call reset_all_packet_configs_support instead of
8980 init_all_packet_configs.
8981 (_initialize_remote): Initialize all packet configs. Assert that
8982 all packets have an associated command, except a few known
8983 outliers.
8984
11c1ba78
JB
89852014-04-28 Joel Brobecker <brobecker@adacore.com>
8986
8987 * dwarf2read.c (read_subrange_type): Handle dynamic
8988 DW_AT_lower_bound attributes.
8989
8739bc53
JB
89902014-04-28 Joel Brobecker <brobecker@adacore.com>
8991
8992 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8993 dynamic bounds before computing its upper bound.
8994 (ada_discrete_type_low_bound): Same as above with the lower bound.
8995
6f8a3220
JB
89962014-04-28 Joel Brobecker <brobecker@adacore.com>
8997
8998 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8999 range types. Adjust the array handling implementation to
9000 take advantage of this change.
9001 (resolve_dynamic_range): New function, mostly extracted from
9002 resolve_dynamic_bounds.
9003 (resolve_dynamic_array): New function, mostly extracted from
9004 resolve_dynamic_bounds.
9005 (resolve_dynamic_bounds): Delete.
9006 (resolve_dynamic_type): Reimplement. Add handling of
9007 TYPE_CODE_RANGE types.
9008
4d072ce4
JB
90092014-04-28 Joel Brobecker <brobecker@adacore.com>
9010
9011 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9012 handling of parallel ___XA types.
9013
52865325
JB
90142014-04-28 Joel Brobecker <brobecker@adacore.com>
9015
9016 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9017 unnecessary second call to static_unwrap_type.
9018
433e77fa
HZ
90192014-04-27 Hui Zhu <hui@codesourcery.com>
9020
9021 * stack.c (print_frame_info): Call do_gdb_disassembly with
9022 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9023
b51a69ee
DE
90242014-04-26 Doug Evans <xdje42@gmail.com>
9025
9026 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9027
7ae1a6a6
PA
90282014-04-25 Pedro Alves <palves@redhat.com>
9029
9030 PR server/16255
9031 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9032 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9033 and newline from built string.
9034 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9035 (linux_ptrace_attach_fail_reason): ... this.
9036 * linux-nat.c (linux_nat_attach): Adjust to use
9037 linux_ptrace_attach_fail_reason.
9038
4082afcc
PA
90392014-04-25 Pedro Alves <palves@redhat.com>
9040
9041 * remote.c (struct remote_state): Remove multi_process_aware,
9042 non_stop_aware, cond_tracepoints, cond_breakpoints,
9043 breakpoint_commands, fast_tracepoints, static_tracepoints,
9044 install_in_trace, disconnected_tracing,
9045 enable_disable_tracepoints, string_tracing, and
9046 augmented_libraries_svr4_read fields.
9047 (remote_multi_process_p): Move further below in the file.
9048 (struct packet_config): Add comments.
9049 (update_packet_config): Delete function.
9050 (show_packet_config_cmd): Use packet_config_support.
9051 (add_packet_config_cmd): Use NULL as set callback.
9052 (packet_ok): "set remote foo-packet"-style commands no longer
9053 change config->supported -- adjust.
9054 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9055 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9056 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9057 (PACKET_QNonStop, PACKET_multiprocess_feature)
9058 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9059 (PACKET_DisconnectedTracing_feature)
9060 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9061 (set_remote_protocol_packet_cmd): Delete function.
9062 (packet_config_support, packet_support): New functions.
9063 (set_remote_protocol_Z_packet_cmd): Don't call
9064 update_packet_config.
9065 (remote_query_attached, remote_pass_signals)
9066 (remote_program_signals, remote_threads_info)
9067 (remote_threads_extra_info, remote_start_remote): Use
9068 packet_support.
9069 (remote_start_remote): Use packet_config_support and
9070 packet_support.
9071 (init_all_packet_configs): Set all packets to unknown support,
9072 instead of calling update_packet_config.
9073 (remote_check_symbols): Use packet_support.
9074 (remote_supported_packet): Unconditionally set the packet config's
9075 support status.
9076 (remote_multi_process_feature, remote_non_stop_feature)
9077 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9078 (remote_breakpoint_commands_feature)
9079 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9080 (remote_install_in_trace_feature)
9081 (remote_disconnected_tracing_feature)
9082 (remote_enable_disable_tracepoint_feature)
9083 (remote_string_tracing_feature)
9084 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9085 (remote_protocol_features): Adjust to use remote_supported_packet
9086 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9087 "ConditionalTracepoints", "ConditionalBreakpoints",
9088 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9089 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9090 "EnableDisableTracepoints", and "tracenz".
9091 (remote_query_supported): Use packet_support.
9092 (remote_open_1): Adjust.
9093 (extended_remote_attach_1): Use packet_support. Switch on the
9094 result of packet_ok instead of checking whether the packet ended
9095 up disabled.
9096 (remote_vcont_resume): Use packet_support.
9097 (remote_resume, remote_stop_ns, fetch_register_using_p)
9098 (remote_prepare_to_store, store_register_using_P)
9099 (check_binary_download, remote_write_bytes): Use packet_support.
9100 (remote_vkill): Use packet_support. Switch on the result of
9101 packet_ok instead of checking whether the packet ended up
9102 disabled.
9103 (extended_remote_supports_disable_randomization): Use
9104 packet_support.
9105 (extended_remote_run): Switch on the result of packet_ok instead
9106 of checking whether the packet ended up disabled.
9107 (remote_insert_breakpoint, remote_remove_breakpoint)
9108 (remote_insert_watchpoint, remote_remove_watchpoint)
9109 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9110 packet_support.
9111 (remote_search_memory): Use packet_config_support.
9112 (remote_get_thread_local_address, remote_get_tib_address)
9113 (remote_hostio_send_command, remote_can_execute_reverse): Use
9114 packet_support.
9115 (remote_supports_cond_tracepoints)
9116 (remote_supports_cond_breakpoints)
9117 (remote_supports_fast_tracepoints)
9118 (remote_supports_static_tracepoints)
9119 (remote_supports_install_in_trace)
9120 (remote_supports_enable_disable_tracepoint)
9121 (remote_supports_string_tracing)
9122 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9123 the packet config says the feature is enabled or disabled.
9124 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9125 (remote_get_trace_status): Use packet_support.
9126 (remote_set_disconnected_tracing): Adjust to check whether the
9127 feature is enabled with packet_support.
9128 (remote_set_trace_buffer_size, remote_use_agent)
9129 (remote_can_use_agent, remote_supports_btrace): Use
9130 packet_support.
9131 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9132 Use packet_config_support.
9133 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9134 the packet config says the feature is enabled or disabled.
9135 (set_range_stepping): Use packet_support.
9136
bdb52a22
TT
91372014-04-25 Tom Tromey <tromey@redhat.com>
9138
9139 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9140 argument.
9141
e9475ead
SA
91422014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9143
9144 * NEWS: Mention support for C99 variable length arrays.
9145
82eacd52
JB
91462014-04-24 Joel Brobecker <brobecker@adacore.com>
9147
9148 * ada-lang.c (standard_exc): Expand introductory comment.
9149
01f9f808
MS
91502014-04-24 Michael Sturm <michael.sturm@mintel.com>
9151 Walfred Tedeschi <walfred.tedeschi@intel.com>
9152
9153 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9154 AVX512 registers.
9155 (amd64_linux_read_description): Add code to handle AVX512 xstate
9156 mask and return respective tdesc.
9157 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9158 and features/i386/x32-avx512-linux.c.
9159 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9160 (amd64_linux_core_read_description): Add code to handle AVX512
9161 xstate mask and return respective tdesc.
9162 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9163 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9164 calculation.
9165 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9166 (tdesc_amd64_avx512_linux): New prototype.
9167 (tdesc_x32_avx512_linux): Likewise.
9168 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9169 features/i386/x32-avx512.c.
9170 (amd64_ymm_avx512_names): New register names for pseudo
9171 registers YMM16-31.
9172 (amd64_ymmh_avx512_names): New register names for raw registers
9173 YMMH16-31.
9174 (amd64_k_names): New register names for K registers.
9175 (amd64_zmmh_names): New register names for ZMM raw registers.
9176 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9177 (amd64_xmm_avx512_names): New register names for XMM16-31
9178 registers.
9179 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9180 registers.
9181 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9182 if feature is present.
9183 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9184 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9185 (AMD64_NUM_REGS): Adjust to new number of registers.
9186 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9187 registers supplied via XSTATE by AVX512 registers.
9188 (i386_linux_read_description): Add case for AVX512.
9189 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9190 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9191 (i386_linux_core_read_description): Add case for AVX512.
9192 (i386_linux_init_abi): Install supported register note section
9193 for AVX512.
9194 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9195 AVX512.
9196 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9197 registers to be number of zmm7h + 1.
9198 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9199 * i386-tdep.c: Include features/i386/i386-avx512.c.
9200 (i386_zmm_names): Add ZMM pseudo register names array.
9201 (i386_zmmh_names): Add ZMM raw register names array.
9202 (i386_k_names): Add K raw register names array.
9203 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9204 registers. AVX512 has 16 more ZMM registers than there are YMM
9205 registers.
9206 (i386_zmmh_regnum_p): Add function to look up register number of
9207 ZMM raw registers.
9208 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9209 (i386_k_regnum_p): Likewise for K raw registers.
9210 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9211 registers added by AVX512.
9212 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9213 registers added by AVX512.
9214 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9215 added by AVX512.
9216 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9217 (i386_pseudo_register_name): Add ZMM pseudo registers.
9218 (i386_zmm_type): Construct and return vector registers type for ZMM
9219 registers.
9220 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9221 ZMM0-31 pseudo registers and K registers.
9222 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9223 and YMM16-31 registers from register cache.
9224 (i386_pseudo_register_write): Add code to write K, ZMM and
9225 YMM16-31 registers.
9226 (i386_register_reggroup_p): Add code to include/exclude AVX512
9227 registers in/from respective register groups.
9228 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9229 registers if feature is present in xcr0.
9230 (i386_gdbarch_init): Add code to initialize AVX512 feature
9231 variables in tdep structure, wire in pseudo registers and call
9232 initialize_tdesc_i386_avx512.
9233 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9234 variables.
9235 (i386_regnum): Add AVX512 registers.
9236 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9237 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9238 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9239 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9240 512 bits wide.
9241 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9242 (i386_ymm_avx512_regnum_p): Likewise.
9243 (i386_k_regnum_p): Likewise.
9244 (i386_zmm_regnum_p): Likewise.
9245 (i386_zmmh_regnum_p): Likewise.
9246 * i387-tdep.c : Update year in copyright notice.
9247 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9248 XSAVE buffer.
9249 (XSAVE_YMM_AVX512_ADDR): New macro.
9250 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9251 XSAVE buffer.
9252 (XSAVE_XMM_AVX512_ADDR): New macro.
9253 (xsave_avx512_k_offset): New table for K register offsets in
9254 XSAVE buffer.
9255 (XSAVE_AVX512_K_ADDR): New macro.
9256 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9257 in XSAVE buffer.
9258 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9259 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9260 buffer.
9261 (i387_collect_xsave): Add code to collect AVX512 registers from
9262 XSAVE buffer.
9263 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9264 of XMM16-31 registers.
9265 (I387_NUM_K_REGS): New define for number of K registers.
9266 (I387_K0_REGNUM): New define for K0 register number.
9267 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9268 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9269 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9270 registers.
9271 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9272 (I387_XMM16_REGNUM): New define for XMM16 register number.
9273 (I387_YMM0_REGNUM): New define for YMM0 register number.
9274 (I387_KEND_REGNUM): New define for last K register number.
9275 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9276 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9277 number.
9278 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9279 number.
9280 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9281 size.
9282 * features/Makefile: Add AVX512 related files.
9283 * features/i386/32bit-avx512.xml: New file.
9284 * features/i386/64bit-avx512.xml: Likewise.
9285 * features/i386/amd64-avx512-linux.c: Likewise.
9286 * features/i386/amd64-avx512-linux.xml: Likewise.
9287 * features/i386/amd64-avx512.c: Likewise.
9288 * features/i386/amd64-avx512.xml: Likewise.
9289 * features/i386/i386-avx512-linux.c: Likewise.
9290 * features/i386/i386-avx512-linux.xml: Likewise.
9291 * features/i386/i386-avx512.c: Likewise.
9292 * features/i386/i386-avx512.xml: Likewise.
9293 * features/i386/x32-avx512-linux.c: Likewise.
9294 * features/i386/x32-avx512-linux.xml: Likewise.
9295 * features/i386/x32-avx512.c: Likewise.
9296 * features/i386/x32-avx512.xml: Likewise.
9297 * regformats/i386/amd64-avx512-linux.dat: New file.
9298 * regformats/i386/amd64-avx512.dat: Likewise.
9299 * regformats/i386/i386-avx512-linux.dat: Likewise.
9300 * regformats/i386/i386-avx512.dat: Likewise.
9301 * regformats/i386/x32-avx512-linux.dat: Likewise.
9302 * regformats/i386/x32-avx512.dat: Likewise.
9303 * NEWS: Add note about new support for AVX512.
9304
9305
08351840
PA
93062014-04-23 Pedro Alves <palves@redhat.com>
9307
9308 * breakpoint.c (insert_bp_location): Tolerate errors if the
9309 breakpoint is set in a user-loaded objfile.
9310 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9311 location is marked shlib_disabled. If the breakpoint is set in a
9312 user-loaded objfile is a GDB-side memory breakpoint, validate it
9313 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9314 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9315 flag.
9316 * mem-break.c (memory_validate_breakpoint): New function.
9317 * objfiles.c (userloaded_objfile_contains_address_p): New
9318 function.
9319 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9320 * target.h (memory_validate_breakpoint): New declaration.
9321
076855f9
PA
93222014-04-23 Pedro Alves <palves@redhat.com>
9323
9324 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9325 the breakpoint is set in a shared library, only suppress
9326 errors for software breakpoints, not hardware breakpoints.
9327
483805cf
PA
93282014-04-22 Pedro Alves <palves@redhat.com>
9329
9330 * infrun.c (schedlock_applies): New function, factored out from
9331 find_thread_needs_step_over.
9332 (find_thread_needs_step_over): Use it.
9333 (switch_back_to_stepped_thread): Always clear trap_expected if the
9334 step over is finished. Return early if scheduler locking applies.
9335 Look for the stepping thread and a potential step-over thread with
9336 a single loop.
9337 (currently_stepping_or_nexting_callback): Delete.
9338
a75fef0e
NC
93392014-04-22 Nick Clifton <nickc@redhat.com>
9340
9341 * NEWS: Mention that ARM sim now supports tracing.
9342
48b6e87e
YQ
93432014-04-22 Yao Qi <yao@codesourcery.com>
9344
9345 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9346 to ...
9347 * tracefile.c (tracefile_fetch_registers): ... it. New
9348 function.
9349 * tracefile.h (tracefile_fetch_registers): Declare.
9350 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9351 tracefile_fetch_registers.
9352
17617f2d
EZ
93532014-04-19 Eli Zaretskii <eliz@gnu.org>
9354
9355 PR gdb/14018
9356 * windows-nat.c (thread_rec): Don't display a warning when
9357 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9358 fails for any reason, set th->suspended to -1, so that we don't
9359 try to resume such a thread. Also, don't return NULL in these
9360 cases, to avoid completely ruin the session due to "PC register is
9361 not available" error.
9362 (do_windows_fetch_inferior_registers): Check errors in
9363 GetThreadContext call.
9364 (windows_continue): Accept an additional argument KILLED; if not
9365 zero, ignore errors in the SetThreadContext call, since the
9366 inferior was killed and is shutting down.
9367 (windows_resume, get_windows_debug_event)
9368 (windows_create_inferior, windows_mourn_inferior)
9369 (windows_kill_inferior): All callers of windows_continue changed
9370 to adjust to its new calling sequence.
9371
5723a6fd
YQ
93722014-04-19 Yao Qi <yao@codesourcery.com>
9373
9374 * ctf.c (ctf_open): Call post_create_inferior.
9375
614d5099
YQ
93762014-04-19 Yao Qi <yao@codesourcery.com>
9377
9378 * ctf.c (handle_id): New static variable.
9379 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9380 value. Get the declaration of event "register" and get length
9381 of field "contents".
9382
dac3e710
YQ
93832014-04-19 Yao Qi <yao@codesourcery.com>
9384
9385 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9386
2bca57ba
SC
93872014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9388
9389 * valops.c (oload_method_static): Remove unnecessary argument
9390 METHOD. Update all callers.
9391
51d48146
PA
93922014-04-18 Pedro alves <palves@redhat.com>
9393 Tom Tromey <tromey@redhat.com>
9394
9395 PR backtrace/15558
9396 * frame.c (get_prev_frame_1): Rename to ...
9397 (get_prev_frame_always): ... this, and make extern. Adjust.
9398 (skip_artificial_frames): Use get_prev_frame_always.
9399 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9400 (get_frame_unwind_stop_reason): Adjust to rename.
9401 * frame.h (get_prev_frame_always): Declare.
9402 * inline-frame.c: Include frame.h.
9403 (inline_frame_this_id): Use get_prev_frame_always.
9404
1bdad2e0
TG
94052014-04-18 Tristan Gingold <gingold@adacore.com>
9406
9407 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9408 code by using bfd_mach_o_get_base_address.
9409
7ce16bd4
UW
94102014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9411
9412 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9413 (spu_ax_pseudo_register_collect): New function.
9414 (spu_ax_pseudo_register_push_stack): Likewise.
9415 (spu_dwarf_reg_to_regnum): Likewise.
9416 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9417
2ed3c037
UW
94182014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9419
9420 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9421 Replace FRAME argument with FRAME_ID.
9422 * gdbarch.c, gdbarch.h: Regenerate.
9423 * findvar.c (default_value_from_register): Add GDBARCH argument;
9424 replace FRAME by FRAME_ID. No longer call get_frame_id.
9425 (value_from_register): Update call to gdbarch_value_from_register.
9426 * value.h (default_value_from_register): Update prototype.
9427 * s390-linux-tdep.c (s390_value_from_register): Update interface
9428 and call to default_value_from_register.
9429 * spu-tdep.c (spu_value_from_register): Likewise.
9430
9431 * findvar.c (address_from_register): Remove TYPE argument.
9432 Do not call value_from_register; use gdbarch_value_from_register
9433 with null_frame_id instead.
9434 * value.h (address_from_register): Update prototype.
9435 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9436 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9437 address_from_register interface change.
9438
71e50e83
YQ
94392014-04-17 Yao Qi <yao@codesourcery.com>
9440
9441 * gdbtypes.h: Update comments to link to types and macros'
9442 definitions.
9443
7a23c549
SC
94442014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9445
9446 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9447
22869d73
KS
94482014-04-16 Keith Seitz <keiths@redhat.com>
9449
9450 PR gdb/15827
9451 * dwarf2read.c (skip_one_die): Check that all relative-offset
9452 sibling DIEs fall within range of the current reader's buffer.
9453 (read_partial_die): Likewise.
9454
c4f87ca6
KS
94552014-04-16 Keith Seitz <keiths@redhat.com>
9456
9457 PR c++/16597
9458 * cp-namespace.c (lookup_symbol_file): If the type name of
9459 `this' is NULL, return immediately.
9460
b50c8614
KS
94612014-04-14 Keith Seitz <keiths@redhat.com>
9462
9463 PR c++/16253
9464 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9465 from symbol_matches_domain in symtab.c. All local callers
9466 of symbol_matches_domain updated.
9467 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9468 search STRUCT_DOMAIN.
9469 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9470 independently. standard_lookup will do that automatically.
9471 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9472 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9473 (cp_lookup_symbol_in_namespace): Likewise.
9474 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9475 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9476 may return a STRUCT_DOMAIN match.
9477 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9478 * cp-support.c: Include language.h.
9479 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9480 VAR_DOMAIN.
9481 * psymtab.c (match_partial_symbol): Compare the requested
9482 domain with the symbol's domain directly.
9483 (lookup_partial_symbol): Likewise.
9484 * symtab.c (lookup_symbol_in_language): Explain when/why
9485 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9486 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9487 appropriate languages.
9488 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9489 and moved to ada-lang.c
9490 (lookup_block_symbol): Explain that this function only returns
9491 symbol matching the requested DOMAIN.
9492 Compare the requested domain with the symbol's domain directly.
9493 (iterate_over_symbols): Compare the requested domain with the
9494 symbol's domain directly.
9495 * symtab.h (symbol_matches_domain): Remove.
9496
3d567982
TT
94972014-04-14 Tom Tromey <tromey@redhat.com>
9498
9499 PR c++/15246:
9500 * c-exp.y (type_aggregate_p): New function.
9501 (qualified_name, classify_inner_name): Use it.
9502 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9503 and TYPE_TARGET_TYPE of an enum type.
9504 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9505 an enum type.
9506 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9507 handle TYPE_DECLARED_CLASS.
9508 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9509 types.
9510 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9511 * valops.c (enum_constant_from_type): New function.
9512 (value_aggregate_elt): Use it.
9513 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9514 TYPE_CODE_ENUM.
9515
c848d642
TT
95162014-04-14 Tom Tromey <tromey@redhat.com>
9517
9518 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9519 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9520 const.
9521 * value.h (value_aggregate_elt): Update.
9522
0626fc76
TT
95232014-04-14 Tom Tromey <tromey@redhat.com>
9524
9525 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9526
5ecaaa66
SA
95272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9528
9529 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9530 (evaluate_subexp_standard): Pass noside argument.
9531 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9532 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9533 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9534 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9535 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9536
1612e0c0
SA
95372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9538
9539 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9540 points to a constant blob.
9541
c451ebe5
SA
95422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9543
9544 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9545 property and store it as the high bound and flag the range accordingly.
9546 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9547 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9548 * gdbtypes.h (enum range_flags): New enum.
9549 (struct range_bounds): Add flags member.
9550
1d42e4c4
SA
95512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9552
9553 * c-typeprint.c (c_type_print_varspec_suffix): Added
9554 check for not yet resolved high bound. If unresolved, print
9555 "variable length" string to the console instead of random
9556 length.
9557
9f1f738a
SA
95582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9559
9560 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9561 value.
9562 (ada_template_to_fixed_record_type_1): Likewise.
9563 (ada_to_fixed_type_1): Likewise.
9564 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9565 (cp_print_value): Likewise.
9566 * d-valprint.c (dynamic_array_type): Likewise.
9567 * findvar.c (address_of_variable): Likewise.
9568 * jv-valprint.c (java_value_print): Likewise.
9569 * valops.c (value_ind): Likewise.
9570 * value.c (coerce_ref): Likewise.
9571
3c8452d4
SA
95722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9573
9574 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9575 value and retrieve the dynamic type size.
9576
4ad88275
SA
95772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9578
9579 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9580 passed to sizeof is dynamic evaluate the argument to compute the length.
9581
80180f79
SA
95822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9583 Joel Brobecker <brobecker@adacore.com>
9584
9585 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9586 (dwarf2_evaluate_property): New function.
9587 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9588 * dwarf2read.c (attr_to_dynamic_prop): New function.
9589 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9590 attribute.
9591 * gdbtypes.c: Include dwarf2loc.h.
9592 (is_dynamic_type): New function.
9593 (resolve_dynamic_type): New function.
9594 (resolve_dynamic_bounds): New function.
9595 (get_type_length): New function.
9596 (check_typedef): Use get_type_length to compute type length.
9597 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9598 (TYPE_LOW_BOUND_KIND): New macro.
9599 (is_dynamic_type): New function prototype.
9600 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9601 to resolve dynamic properties of the type. Update comment.
9602 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9603
a1556843
RH
96042014-04-14 Richard Henderson <rth@redhat.com>
9605
9606 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9607
0be03e84
DE
96082014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9609 Doug Evans <xdje42@gmail.com>
9610
9611 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9612 dereference TYPE_CODE_REF values.
9613
6b662e19
JB
96142014-04-11 Joel Brobecker <brobecker@adacore.com>
9615
9616 Revert the following changes due to regressions:
9617
9618 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9619 (dwarf2_evaluate_property): New function.
9620 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9621 * dwarf2read.c (attr_to_dynamic_prop): New function.
9622 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9623 attribute.
9624 * gdbtypes.c: Include dwarf2loc.h.
9625 (is_dynamic_type): New function.
9626 (resolve_dynamic_type): New function.
9627 (resolve_dynamic_bounds): New function.
9628 (get_type_length): New function.
9629 (check_typedef): Use get_type_length to compute type length.
9630 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9631 (TYPE_LOW_BOUND_KIND): New macro.
9632 (is_dynamic_type): New function prototype.
9633 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9634 to resolve dynamic properties of the type. Update comment.
9635 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9636
9637 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9638 passed to sizeof is dynamic evaluate the argument to compute the length.
9639
9640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9641 value and retrieve the dynamic type size.
9642
9643 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9644 (ada_template_to_fixed_record_type_1): Likewise.
9645 (ada_to_fixed_type_1): Likewise.
9646 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9647 (cp_print_value): Likewise.
9648 * d-valprint.c (dynamic_array_type): Likewise.
9649 * eval.c (evaluate_subexp_with_coercion): Likewise.
9650 * findvar.c (address_of_variable): Likewise.
9651 * jv-valprint.c (java_value_print): Likewise.
9652 * valops.c (value_ind): Likewise.
9653 * value.c (coerce_ref): Likewise.
9654
9655 * c-typeprint.c (c_type_print_varspec_suffix): Added
9656 check for not yet resolved high bound. If unresolved, print
9657 "variable length" string to the console instead of random
9658 length.
9659
9660 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9661 property and store it as the high bound and flag the range accordingly.
9662 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9663 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9664 * gdbtypes.h (enum range_flags): New enum.
9665 (struct range_bounds): Add flags member.
9666
9667 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9668 points to a constant blob.
9669
9670 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9671 (evaluate_subexp_standard): Pass noside argument.
9672 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9673 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9674 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9675 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9676 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9677
245a5f0b
KS
96782014-04-11 Keith Seitz <keiths@redhat.com>
9679
9680 PR c++/16675
9681 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9682 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9683 reference types.
9684
3bce8237
SA
96852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9686
9687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9688 (evaluate_subexp_standard): Pass noside argument.
9689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9694
92b09522
SA
96952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9696
9697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9698 points to a constant blob.
9699
e1969afb
SA
97002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9701
9702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9703 property and store it as the high bound and flag the range accordingly.
9704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9706 * gdbtypes.h (enum range_flags): New enum.
9707 (struct range_bounds): Add flags member.
9708
b86138fb
SA
97092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9710
9711 * c-typeprint.c (c_type_print_varspec_suffix): Added
9712 check for not yet resolved high bound. If unresolved, print
9713 "variable length" string to the console instead of random
9714 length.
9715
bcd629a4
SA
97162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9717
9718 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9719 (ada_template_to_fixed_record_type_1): Likewise.
9720 (ada_to_fixed_type_1): Likewise.
9721 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9722 (cp_print_value): Likewise.
9723 * d-valprint.c (dynamic_array_type): Likewise.
9724 * eval.c (evaluate_subexp_with_coercion): Likewise.
9725 * findvar.c (address_of_variable): Likewise.
9726 * jv-valprint.c (java_value_print): Likewise.
9727 * valops.c (value_ind): Likewise.
9728 * value.c (coerce_ref): Likewise.
9729
04b19544
SA
97302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9731
9732 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9733 value and retrieve the dynamic type size.
9734
26cb189f
SA
97352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9736
9737 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9738 passed to sizeof is dynamic evaluate the argument to compute the length.
9739
37c1ab67
SA
97402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9741
9742 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9743 (dwarf2_evaluate_property): New function.
9744 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9745 * dwarf2read.c (attr_to_dynamic_prop): New function.
9746 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9747 attribute.
9748 * gdbtypes.c: Include dwarf2loc.h.
9749 (is_dynamic_type): New function.
9750 (resolve_dynamic_type): New function.
9751 (resolve_dynamic_bounds): New function.
9752 (get_type_length): New function.
9753 (check_typedef): Use get_type_length to compute type length.
9754 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9755 (TYPE_LOW_BOUND_KIND): New macro.
9756 (is_dynamic_type): New function prototype.
9757 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9758 to resolve dynamic properties of the type. Update comment.
9759 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9760
729efb13
SA
97612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9762
9763 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9764 declaring high/low bounds and change uses accordingly. Call
9765 create_range_type instead of create_static_range_type.
9766 * gdbtypes.c (create_range_type): New function.
9767 (create_range_type): Convert bounds into struct bound_prop and pass
9768 them to create_range_type.
9769 * gdbtypes.h (struct bound_prop): New struct.
9770 (create_range_type): New function prototype.
9771 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9772 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9773 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9774 part of the bound.
9775 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9776
0c9c3474
SA
97772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9778
9779 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9780 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9781 * ada-lang.c: All uses of create_range_type updated.
9782 * coffread.c: All uses of create_range_type updated.
9783 * dwarf2read.c: All uses of create_range_type updated.
9784 * f-exp.y: All uses of create_range_type updated.
9785 * m2-valprint.c: All uses of create_range_type updated.
9786 * mdebugread.c: All uses of create_range_type updated.
9787 * stabsread.c: All uses of create_range_type updated.
9788 * valops.c: All uses of create_range_type updated.
9789 * valprint.c: All uses of create_range_type updated.
9790
9d497a19
PA
97912014-04-10 Pedro Alves <palves@redhat.com>
9792
9793 * breakpoint.c (single_step_breakpoints)
9794 (single_step_gdbarch): Move up in the file.
9795 (one_breakpoint_xfer_memory): New function, factored out from ...
9796 (breakpoint_xfer_memory): ... here. Also process single-step
9797 breakpoints.
9798
15a9128a
TG
97992014-04-09 Tristan Gingold <gingold@adacore.com>
9800
9801 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9802 comments.
9803 (darwin_decode_exception_message): Free port only after use.
9804
9c97a070
PL
98052014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9806
9807 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9808 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9809 when setting the size of call_length.
9810
7af389b8
SC
98112014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9812
9813 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9814 dereference TYPE_CODE_REF values.
9815
86ad98c3
JB
98162014-04-07 Joel Brobecker <brobecker@adacore.com>
9817
9818 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9819 end of warning message.
9820
b0aeadb3
DE
98212014-04-03 Doug Evans <dje@google.com>
9822
9823 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9824 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9825
5979d6b6
AM
98262014-04-02 Alan Modra <amodra@gmail.com>
9827
9828 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9829 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9830 (struct symbol_file_add_from_memory_args): Add size field.
9831 (find_vdso_size): New function.
9832 (add_vsyscall_page): Attempt to find vdso size.
9833
0d60c288
DE
98342014-04-01 Doug Evans <dje@google.com>
9835
9836 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9837
a41f2563
TG
98382014-04-01 Tristan Gingold <gingold@adacore.com>
9839
9840 * darwin-nat.c (darwin_encode_reply): Add prototype.
9841 (darwin_decode_exception_message): Reply to unknown inferiors.
9842 (darwin_decode_message): Handle message by id. Ignore message
9843 to unknown inferior.
9844 (darwin_wait): Discard unknown messages, add debug trace.
9845
11a865c8
DE
98462014-03-31 Doug Evans <dje@google.com>
9847
9848 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9849 comp_dir_string.
9850
770e7fc7
DE
98512014-03-31 Doug Evans <dje@google.com>
9852
9853 New option "set print symbol-loading".
9854 * NEWS: Mention it.
9855 * solib.c (solib_read_symbols): Only print symbol loading messages
9856 if requested.
9857 (solib_add): If symbol loading is in "brief" mode, notify user
9858 symbols are being loaded.
9859 (reload_shared_libraries_1): Ditto.
9860 * symfile.c (print_symbol_loading_off): New static global.
9861 (print_symbol_loading_brief): New static global.
9862 (print_symbol_loading_full): New static global.
9863 (print_symbol_loading_enums): New static global.
9864 (print_symbol_loading): New static global.
9865 (print_symbol_loading_p): New function.
9866 (symbol_file_add_with_addrs): Only print symbol loading messages
9867 if requested.
9868 (_initialize_symfile): Register "print symbol-loading" set/show
9869 command.
9870 * symfile.h (print_symbol_loading_p): Declare.
9871
c32c64b7
DE
98722014-03-30 Doug Evans <xdje42@gmail.com>
9873
9874 * infrun.c (set_last_target_status): New function.
9875 (handle_inferior_event): Call it.
9876
7c0bc051
DE
98772014-03-30 Doug Evans <xdje42@gmail.com>
9878
9879 * inferior.h (enum stop_kind): Improve comment.
9880
8776cfe9
JB
98812014-03-28 Joel Brobecker <brobecker@adacore.com>
9882
9883 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9884 a reference, strip the reference layer before calling
9885 the lang_ops value_has_mutated callback.
9886
410a0ff2
SDJ
98872014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9888
9889 Remove some globals from our parser.
9890 * language.c (unk_lang_parser): Add "struct parser_state"
9891 argument.
9892 * language.h (struct language_defn) <la_parser>: Likewise.
9893 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9894 (initialize_expout): Add "struct parser_state" argument.
9895 Rewrite function to use the parser state.
9896 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9897 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9898 write_exp_elt_longcst, write_exp_elt_dblcst,
9899 write_exp_elt_decfloatcst, write_exp_elt_type,
9900 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9901 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9902 write_dollar_variable): Likewise.
9903 (parse_exp_in_context_1): Use parser state.
9904 (insert_type_address_space): Add "struct parser_state" argument.
9905 Use parser state.
9906 (increase_expout_size): New function.
9907 * parser-defs.h: Forward declare "struct language_defn" and
9908 "struct parser_state".
9909 (expout, expout_size, expout_ptr): Remove extern declarations.
9910 (parse_gdbarch, parse_language): Rewrite macro declarations to
9911 accept the parser state.
9912 (struct parser_state): New struct.
9913 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9914 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9915 write_exp_elt_decfloatcst, write_exp_elt_type,
9916 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9917 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9918 write_exp_msymbol, write_dollar_variable,
9919 mark_struct_expression, insert_type_address_space): Add "struct
9920 parser_state" argument.
9921 (increase_expout_size): New function.
9922 * utils.c (do_clear_parser_state): New function.
9923 (make_cleanup_clear_parser_state): Likewise.
9924 * utils.h (make_cleanup_clear_parser_state): New function
9925 prototype.
9926 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9927 Update calls to write_exp* in order to pass the parser state.
9928 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9929 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9930 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9931 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9932 * stap-probe.c (stap_parse_register_operand): Likewise.
9933 (stap_parse_single_operand): Likewise.
9934 (stap_parse_argument_1): Likewise.
9935 (stap_parse_argument): Use parser state.
9936 * stap-probe.h: Include "parser-defs.h".
9937 (struct stap_parse_info) <pstate>: New field.
9938 * c-exp.y (parse_type): Rewrite to use parser state.
9939 (yyparse): Redefine to c_parse_internal.
9940 (pstate): New global variable.
9941 (parse_number): Add "struct parser_state" argument.
9942 (write_destructor_name): Likewise.
9943 (type_exp): Update calls to write_exp* and similars in order to
9944 use parser state.
9945 (exp1, exp, variable, qualified_name, space_identifier,
9946 typename, typebase): Likewise.
9947 (write_destructor_name, parse_number, lex_one_token,
9948 classify_name, classify_inner_name, c_parse): Add "struct
9949 parser_state" argument. Update function to use parser state.
9950 * c-lang.h: Forward declare "struct parser_state".
9951 (c_parse): Add "struct parser_state" argument.
9952 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9953 (yyparse): Redefine macro to ada_parse_internal.
9954 (pstate): New variable.
9955 (write_int, write_object_renaming, write_var_or_type,
9956 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9957 type_int, type_long, type_long_long, type_float, type_double,
9958 type_long_double, type_char, type_boolean, type_system_address):
9959 Add "struct parser_state" argument.
9960 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9961 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9962 var_or_type, aggregate, aggregate_component_list,
9963 positional_list, others, component_group,
9964 component_associations): Update calls to write_exp* and similar
9965 functions in order to use parser state.
9966 (ada_parse, write_var_from_sym, write_int,
9967 write_exp_op_with_string, write_object_renaming,
9968 find_primitive_type, write_selectors, write_ambiguous_var,
9969 write_var_or_type, write_name_assoc, type_int, type_long,
9970 type_long_long, type_float, type_double, type_long_double,
9971 type_char, type_boolean, type_system_address): Add "struct
9972 parser_state" argument. Adjust function to use parser state.
9973 * ada-lang.c (parse): Likewise.
9974 * ada-lang.h: Forward declare "struct parser_state".
9975 (ada_parse): Add "struct parser_state" argument.
9976 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9977 calls to both functions.
9978 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9979 parser state.
9980 (yyparse): Redefine macro to f_parse_internal.
9981 (pstate): New variable.
9982 (parse_number): Add "struct parser_state" argument.
9983 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9984 and similars in order to use parser state.
9985 (parse_number): Adjust code to use parser state.
9986 (yylex): Likewise.
9987 (f_parse): New function.
9988 * f-lang.h: Forward declare "struct parser_state".
9989 (f_parse): Add "struct parser_state" argument.
9990 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9991 parser state.
9992 (yyparse): Redefine macro for java_parse_internal.
9993 (pstate): New variable.
9994 (push_expression_name, push_expression_name, insert_exp): Add
9995 "struct parser_state" argument.
9996 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9997 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9998 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9999 PostIncrementExpression, PostDecrementExpression,
10000 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10001 UnaryExpressionNotPlusMinus, CastExpression,
10002 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10003 RelationalExpression, EqualityExpression, AndExpression,
10004 ExclusiveOrExpression, InclusiveOrExpression,
10005 ConditionalAndExpression, ConditionalOrExpression,
10006 ConditionalExpression, Assignment, LeftHandSide): Update
10007 calls to write_exp* and similars in order to use parser state.
10008 (parse_number): Ajust code to use parser state.
10009 (yylex): Likewise.
10010 (java_parse): New function.
10011 (push_variable): Add "struct parser_state" argument. Adjust
10012 code to user parser state.
10013 (push_fieldnames, push_qualified_expression_name,
10014 push_expression_name, insert_exp): Likewise.
10015 * jv-lang.h: Forward declare "struct parser_state".
10016 (java_parse): Add "struct parser_state" argument.
10017 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10018 parser state.
10019 (yyparse): Redefine macro to m2_parse_internal.
10020 (pstate): New variable.
10021 (type_exp, exp, fblock, variable, type): Update calls to
10022 write_exp* and similars to use parser state.
10023 (yylex): Likewise.
10024 (m2_parse): New function.
10025 * m2-lang.h: Forward declare "struct parser_state".
10026 (m2_parse): Add "struct parser_state" argument.
10027 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10028 * objc-lang.h: Forward declare "struct parser_state".
10029 (end_msglist): Add "struct parser_state" argument.
10030 * p-exp.y (parse_type): Rewrite macro to use parser state.
10031 (yyparse): Redefine macro to pascal_parse_internal.
10032 (pstate): New variable.
10033 (parse_number): Add "struct parser_state" argument.
10034 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10035 write_exp* and similars in order to use parser state.
10036 (parse_number, yylex): Adjust code to use parser state.
10037 (pascal_parse): New function.
10038 * p-lang.h: Forward declare "struct parser_state".
10039 (pascal_parse): Add "struct parser_state" argument.
10040 * go-exp.y (parse_type): Rewrite macro to use parser state.
10041 (yyparse): Redefine macro to go_parse_internal.
10042 (pstate): New variable.
10043 (parse_number): Add "struct parser_state" argument.
10044 (type_exp, exp1, exp, variable, type): Update calls to
10045 write_exp* and similars in order to use parser state.
10046 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10047 to use parser state.
10048 (go_parse): Likewise.
10049 * go-lang.h: Forward declare "struct parser_state".
10050 (go_parse): Add "struct parser_state" argument.
10051
342587c4
DE
100522014-03-27 Doug Evans <dje@google.com>
10053
10054 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10055
33e80786
DE
100562014-03-27 Doug Evans <dje@google.com>
10057
10058 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10059 Remove argument abbrev_section. All callers updated.
10060
1dbab08b
DE
100612014-03-27 Doug Evans <dje@google.com>
10062
10063 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10064 addr_base, ranges_base.
10065
318d3177
KS
100662014-03-26 Keith Seitz <keiths@redhat.com>
10067
10068 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10069 types, not VAR_DOMAIN.
10070
1e54db15
SL
100712014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10072
10073 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10074 "ra" registers.
10075 * features/nios2-linux.c: Regenerated.
10076 * features/nios2.c: Regenerated.
10077
d3839ede
PA
100782014-03-25 Pedro Alves <palves@redhat.com>
10079
10080 * cli/cli-script.c (script_from_file): Force the interpreter to
10081 sync mode.
10082
7588d2ec
PL
100832014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10084
10085 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10086 small stack allocation.
10087
a6290449
TG
100882014-03-24 Tristan Gingold <gingold@adacore.com>
10089
10090 * darwin-nat.c (exc_server): Remove unused prototype.
10091 (darwin_dump_message): Correctly display data on x86_64.
10092 (darwin_encode_reply): Fix style.
10093 Add comments and fix indentation.
10094
31ae9d24 100952014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10096
10097 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10098
6339bfc4
DE
100992014-03-22 Doug Evans <xdje42@gmail.com>
10100
10101 * infcmd.c: Whitespace fixes.
10102 (interrupt_command): Merge two function comments into one.
10103
0a07590b
DE
101042014-03-22 Doug Evans <xdje42@gmail.com>
10105
10106 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10107 All uses updated.
10108
b55fbac4
YQ
101092014-03-22 Yao Qi <yao@codesourcery.com>
10110
10111 * remote.c (target_read_live_memory): Remove.
10112 (memory_xfer_live_readonly_partial): Rename it to
10113 remote_xfer_live_readonly_partial. Remove argument 'object'.
10114 All callers updated. Call remote_read_bytes_1
10115 instead of target_read_live_memory.
10116 * tracepoint.c (set_traceframe_number): Remove.
10117 (make_cleanup_restore_traceframe_number): Likewise .
10118 * tracepoint.h (set_traceframe_number): Remove declaration.
10119 (make_cleanup_restore_traceframe_number): Likewise.
10120
9217e74e
YQ
101212014-03-22 Yao Qi <yao@codesourcery.com>
10122
10123 * remote.c (remote_read_bytes): Move code on reading from the
10124 remote stub to ...
10125 (remote_read_bytes_1): ... here. New function.
10126
8acf9577
YQ
101272014-03-22 Yao Qi <yao@codesourcery.com>
10128
10129 * ctf.c (ctf_xfer_partial): Check the return value of
10130 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10131 return TARGET_XFER_UNAVAILABLE.
10132 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10133 * target.c (target_read_live_memory): Move it to remote.c.
10134 (memory_xfer_live_readonly_partial): Likewise.
10135 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10136 * remote.c (target_read_live_memory): Moved from target.c.
10137 (memory_xfer_live_readonly_partial): Likewise.
10138 (remote_read_bytes): Factored out from
10139 memory_xfer_partial_1.
10140
feef67ab
DE
101412014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10142
10143 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10144 NULL pointer.
10145
b65dc60b
PA
101462014-03-21 Pedro Alves <palves@redhat.com>
10147
10148 * infrun.c (normal_stop): Extend comment.
10149
b4ab256d
HZ
101502014-03-21 Hui Zhu <hui@codesourcery.com>
10151 Pedro Alves <palves@redhat.com>
10152
10153 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10154 static buffer.
10155 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10156 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10157 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10158
deba7593
MR
101592014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10160
10161 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10162 `z' formatted output modifier.
10163
1bff71c3
SDJ
101642014-03-20 Tom Tromey <tromey@redhat.com>
10165 Sergio Durigan Junior <sergiodj@redhat.com>
10166
10167 * probe.c (parse_probes): Turn assert into an ordinary error.
10168 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10169 exceptions when parsing probes. Rearrange the code for clarity.
10170
90e28950
TT
101712014-03-20 Tom Tromey <tromey@redhat.com>
10172
10173 PR gdb/14135
10174 * top.c (execute_command): Only dispatch events if the command
10175 started the target.
10176
beb460e8
PA
101772014-03-20 Tom Tromey <tromey@redhat.com>
10178
10179 PR cli/15718
10180 * infcall.c: Include event-top.h.
10181 (run_inferior_call): Call async_disable_stdin if needed.
10182
99619bea
PA
101832014-03-20 Pedro Alves <palves@redhat.com>
10184
10185 * infrun.c (prepare_to_proceed): Delete.
10186 (thread_still_needs_step_over): New function.
10187 (find_thread_needs_step_over): New function.
10188 (proceed): If the current thread needs a step-over, set its
10189 steping_over_breakpoint flag. Adjust to use
10190 find_thread_needs_step_over instead of prepare_to_proceed.
10191 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10192 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10193 breakpoint.
10194 (switch_back_to_stepped_thread): Step over breakpoints of all
10195 threads not the stepping thread, before switching back to the
10196 stepping thread.
10197
2adfaa28
PA
101982014-03-20 Pedro Alves <palves@redhat.com>
10199
10200 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10201 extern.
10202 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10203 * infrun.c (saved_singlestep_ptid)
10204 (stepping_past_singlestep_breakpoint): Delete.
10205 (resume): Remove stepping_past_singlestep_breakpoint handling.
10206 (proceed): Store the prev_pc of the stepping thread too.
10207 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10208 singlestep_pc.
10209 (enum infwait_states): Delete infwait_thread_hop_state.
10210 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10211 field.
10212 (handle_inferior_event): Adjust.
10213 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10214 handling and the thread-hop code. Before removing single-step
10215 breakpoints, check whether the thread hit a single-step breakpoint
10216 of another thread. If it did, the trap is not a random signal.
10217 (switch_back_to_stepped_thread): If the event thread hit a
10218 single-step breakpoint, unblock it before switching to the
10219 stepping thread. Handle the case of the stepped thread having
10220 advanced already.
10221 (keep_going): Handle the case of the current thread moving past a
10222 single-step breakpoint.
10223
31e77af2
PA
102242014-03-20 Pedro Alves <palves@redhat.com>
10225
10226 PR breakpoints/7143
10227 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10228 are being stepped over.
10229 (breakpoint_address_match): Make extern.
10230 * breakpoint.h (breakpoint_address_match): New declaration.
10231 * inferior.h (stepping_past_instruction_at): New declaration.
10232 * infrun.c (struct step_over_info): New type.
10233 (step_over_info): New global.
10234 (set_step_over_info, clear_step_over_info)
10235 (stepping_past_instruction_at): New functions.
10236 (handle_inferior_event): Clear the step-over info when
10237 trap_expected is cleared.
10238 (resume): Remove now stale comment.
10239 (clear_proceed_status): Clear step-over info.
10240 (proceed): Adjust step-over handling to set or clear the step-over
10241 info instead of removing all breakpoints.
10242 (handle_signal_stop): When setting up a thread-hop, don't remove
10243 breakpoints here.
10244 (stop_stepping): Clear step-over info.
10245 (keep_going): Adjust step-over handling to set or clear step-over
10246 info and then always inserting breakpoints, instead of removing
10247 all breakpoints when stepping over one.
10248
b9f437de
PA
102492014-03-20 Pedro Alves <palves@redhat.com>
10250
10251 * infrun.c (previous_inferior_ptid): Adjust comment.
10252 (deferred_step_ptid): Delete.
10253 (infrun_thread_ptid_changed, prepare_to_proceed)
10254 (init_wait_for_inferior): Adjust.
10255 (handle_signal_stop): Delete deferred_step_ptid handling.
10256
06c868a8
JK
102572014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 PR gdb/15358
10260 * defs.h (sync_quit_force_run): New declaration.
10261 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10262 * event-top.c (async_sigterm_handler): New declaration.
10263 (async_sigterm_token): New variable.
10264 (async_init_signals): Create also async_sigterm_token.
10265 (async_sigterm_handler): New function.
10266 (sync_quit_force_run): New variable.
10267 (handle_sigterm): Replace quit_force call by other calls.
10268 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10269
dea80df0
MR
102702014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10271
10272 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10273 offset into SPE pseudo registers.
10274
0c7e1a46
PA
102752014-03-18 Pedro Alves <palves@redhat.com>
10276
10277 PR gdb/13860
10278 * inferior.h (print_stop_event): Declare.
10279 * infrun.c (print_stop_event): New, factored out from ...
10280 (normal_stop): ... this.
10281 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10282 of bpstat_print/print_stack_frame.
10283
9c1fcd01
TT
102842014-03-17 Tom Tromey <tromey@redhat.com>
10285
10286 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10287
11aa919a
PMR
102882014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10289
10290 * ada-lang.c (decode_constrained_packed_array): Perform a
10291 minimal coercion for reference with coerce_ref instead of
10292 ada_coerce_ref.
10293
d4ccb5e0
TG
102942014-03-17 Tristan Gingold <gingold@adacore.com>
10295
10296 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10297 (darwin_solib_create_inferior_hook): Emit a warning if version
10298 is unhandled.
10299
49840f2a
UW
103002014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10301
10302 * python/py-value.c (get_field_flag): Cast flag_name argument to
10303 PyObject_GetAttrString to support Python 2.4.
10304
ed4123e5
JK
103052014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10306
10307 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10308 (Global Maintainers): Remove Jan Kratochvil.
10309
d6b64346
PA
103102014-03-14 Pedro Alves <palves@redhat.com>
10311
10312 * inferior.h (terminal_ours_for_output): Rename to ...
10313 (child_terminal_ours_for_output): ... this.
10314 (terminal_save_ours): Rename to ...
10315 (child_terminal_save_ours): ... this.
10316 (terminal_ours): Rename to ...
10317 (child_terminal_ours): ... this.
10318 (terminal_inferior): Rename to ...
10319 (child_terminal_inferior): ... this.
10320 (terminal_init_inferior): Rename to ...
10321 (child_terminal_init_inferior): ... this.
10322 (terminal_init_inferior_with_pgrp): Rename to ...
10323 (child_terminal_init_inferior_with_pgrp): ... this.
10324 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10325 (child_terminal_init_with_pgrp): ... this.
10326 (terminal_save_ours): Rename to ...
10327 (child_terminal_save_ours): ... this.
10328 (terminal_init_inferior): Rename to ...
10329 (child_terminal_init): ... this. Adjust.
10330 (terminal_inferior): Rename to ...
10331 (child_terminal_inferior): ... this.
10332 (terminal_ours_for_output): Rename to ...
10333 (child_terminal_ours_for_output): ... this. Adjust.
10334 (terminal_ours): Rename to ...
10335 (child_terminal_ours): ... this.
10336 (terminal_ours_1): Rename to ...
10337 (child_terminal_ours_1): ... this. Adjust.
10338 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10339 * windows-nat.c (do_initial_windows_stuff): Adjust.
10340 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10341 (gnu_terminal_init): ... this. Adjust.
10342 (gnu_target): Adjust.
10343 * inf-child.c (inf_child_target): Adjust.
10344
5a1e8c7a
DE
103452014-03-13 Doug Evans <xdje42@gmail.com>
10346
10347 PR guile/16612
10348 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10349 new eq?-hashtab.
10350
350e1a76
DE
103512014-03-13 Doug Evans <xdje42@gmail.com>
10352
10353 * value.c (record_latest_value): Call release_value_or_incref
10354 instead of release_value.
10355
a69900ae
PA
103562014-03-13 Pedro Alves <palves@redhat.com>
10357
10358 * procfs.c (procfs_target): Don't override to_shortname,
10359 to_longname or to_doc.
10360
5db9f0bd
PA
103612014-03-13 Pedro Alves <palves@redhat.com>
10362
10363 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10364 Unix in user visible strings.
10365
5e3a2c38
SS
103662014-03-12 Stan Shebs <stan@codesourcery.com>
10367
10368 * gdbtypes.h: Annotate comments for Doxygen, add a page
10369 block comment with some general info.
10370
8bc2fe48
PA
103712014-03-12 Pedro Alves <palves@redhat.com>
10372
10373 * infcmd.c (prepare_execution_command): New function, factored out
10374 from several execution commands.
10375 (run_command_1, continue_command, step_1, jump_command)
10376 (signal_command, until_command, advance_command, finish_command)
10377 (attach_command): Use prepare_execution_command.
10378
638c5f49
OJ
103792014-03-12 Omair Javaid <omair.javaid@linaro.org>
10380
10381 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10382 (MAX_BPTS): Define.
10383 (MAX_WPTS): Define.
10384 (struct arm_linux_thread_points): Removed.
10385 (struct arm_linux_process_info): New.
10386 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10387 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10388 (arm_linux_find_breakpoints_by_tid): Removed.
10389 (struct arch_lwp_info): New.
10390 (arm_linux_find_process_pid): New functions.
10391 (arm_linux_add_process): New functions.
10392 (arm_linux_process_info_get): New functions.
10393 (arm_linux_forget_process): New function.
10394 (arm_linux_get_debug_reg_state): New function.
10395 (struct update_registers_data): New.
10396 (update_registers_callback): New function.
10397 (arm_linux_insert_hw_breakpoint1): Updated.
10398 (arm_linux_remove_hw_breakpoint1): Updated.
10399 (arm_linux_insert_hw_breakpoint): Updated.
10400 (arm_linux_remove_hw_breakpoint): Updated.
10401 (arm_linux_insert_watchpoint): Updated.
10402 (arm_linux_remove_watchpoint): Updated.
10403 (arm_linux_new_thread): Updated.
10404 (arm_linux_prepare_to_resume): New function.
10405 (arm_linux_new_fork): New function.
10406 (_initialize_arm_linux_nat): Updated.
10407
6d03af93
PA
104082014-03-12 Pedro Alves <palves@redhat.com>
10409
10410 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10411
b3ccfe11
TT
104122014-03-12 Tom Tromey <tromey@redhat.com>
10413
10414 * inf-child.c (return_zero): New function.
10415 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10416 * aix-thread.c (aix_thread_inferior_created): New function.
10417 (aix_thread_attach): Remove.
10418 (init_aix_thread_ops): Don't set to_attach.
10419 (_initialize_aix_thread): Register inferior_created observer.
10420 * corelow.c (init_core_ops): Don't set to_attach or
10421 to_create_inferior.
10422 * exec.c (init_exec_ops): Don't set to_attach or
10423 to_create_inferior.
10424 * infcmd.c (run_command_1): Use find_run_target. Make direct
10425 target calls.
10426 (attach_command): Use find_attach_target. Make direct target
10427 calls.
10428 * record-btrace.c (init_record_btrace_ops): Don't set
10429 to_create_inferior.
10430 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10431 Remove.
10432 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10433 set to_create_inferior.
10434 * target.c (complete_target_initialization): Add assertion.
10435 (target_create_inferior): Remove.
10436 (find_default_attach, find_default_create_inferior): Remove.
10437 (find_attach_target, find_run_target): New functions.
10438 (find_default_is_async_p, find_default_can_async_p)
10439 (target_supports_non_stop, target_attach): Remove.
10440 (init_dummy_target): Don't set to_create_inferior or
10441 to_supports_non_stop.
10442 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10443 TARGET_DEFAULT_FUNC.
10444 <to_create_inferior>: Add comment.
10445 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10446 TARGET_DEFAULT_RETURN.
10447 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10448 (find_attach_target, find_run_target): Declare.
10449 (target_create_inferior): Remove.
10450 (target_has_execution_1): Update comment.
10451 (target_supports_non_stop): Remove.
10452 * target-delegates.c: Rebuild.
10453
91f83b02
PA
104542014-03-12 Pedro Alves <palves@redhat.com>
10455
10456 * inf-child.h: Update comment to not mention Unix.
10457
f1aea813
PA
104582014-03-12 Pedro Alves <palves@redhat.com>
10459
10460 * inf-child.c: Update top comment to not mention Unix. Add
10461 generic comment describing how this target is meant to be used.
10462 (inf_child_post_attach, inf_child_post_startup_inferior)
10463 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10464 Unix in comment.
10465
ee8e9165
PA
104662014-03-12 Pedro Alves <palves@redhat.com>
10467
10468 * nto-procfs.c: Include inf-child.h.
10469 (procfs_ops): Delete global.
10470 (procfs_can_run): Delete method.
10471 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10472 target pointer instead of referencing procfs_ops.
10473 (procfs_prepare_to_store): Delete.
10474 (init_procfs_ops): Delete function.
10475 (procfs_target): New function, based on init_procfs_ops, but
10476 inherit inf_child_target.
10477 (_initialize_procfs): Use procfs_target.
10478
51a9c8c5
PA
104792014-03-12 Pedro Alves <palves@redhat.com>
10480
10481 * windows-nat.c: Include inf-child.h.
10482 (windows_ops): Delete global.
10483 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10484 methods.
10485 (init_windows_ops): Delete function.
10486 (windows_target): New function, based on init_windows_ops, but
10487 inherit inf_child_target.
10488 (_initialize_windows_nat): Use windows_target. Install x86
10489 specific target methods here.
10490
c1966e26
DE
104912014-03-10 Doug Evans <xdje42@gmail.com>
10492
10493 * guile/guile.c (call_initialize_gdb_module): New function.
10494 (initialize_guile): Replace call to scm_init_guile with call to
10495 scm_with_guile.
10496
023db19c
JB
104972014-03-10 Joel Brobecker <brobecker@adacore.com>
10498
10499 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10500 in call to TYPE_CODE macro.
10501
5ec18f2b
JG
105022014-03-10 Jerome Guitton <guitton@adacore.com>
10503
8668be63
JB
10504 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10505 Resolve tagged types to full view.
5ec18f2b 10506
7d03f2eb
HZ
105072014-03-10 Hui Zhu <hui@codesourcery.com>
10508
10509 * target.h (target_insert_breakpoint): Remove "hardware" from its
10510 comments.
10511
c5164cbc
DE
105122014-03-07 Doug Evans <dje@google.com>
10513
10514 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10515
c4a3fee2
DE
105162014-03-07 Doug Evans <dje@google.com>
10517
10518 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10519 Remove unused local comp_dir_attr. Assert exactly one of
10520 stub_comp_unit_die, stub_comp_dir is non-NULL.
10521
3156469c
JB
105222014-03-07 Joel Brobecker <brobecker@adacore.com>
10523
10524 * target.h (complete_target_initialization, add_target):
10525 Add comment.
10526
c1a7b7c6
PA
105272014-03-07 Pedro Alves <palves@redhat.com>
10528
10529 * go32-nat.c: Include inf-child.h.
10530 (go32_ops): Delete global.
10531 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10532 Delete methods.
10533 (go32_create_inferior): Push the passed in target pointer instead
10534 of referencing go32_ops.
10535 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10536 (go32_target): New function, based on init_go32_ops, but inherit
10537 inf_child_target.
10538 (_initialize_go32_nat): Use go32_target. Move parts of
10539 init_go32_ops here.
10540
d3c1a85f
JB
105412014-03-06 Joel Brobecker <brobecker@adacore.com>
10542
10543 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10544 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10545 SYMBOL_VALUE_ADDRESS.
10546 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10547
5fa1d40e
YQ
105482014-03-06 Yao Qi <yao@codesourcery.com>
10549
10550 * breakpoint.c (get_tracepoint_by_number): Remove argument
10551 optional_p. All callers updated. Adjust comments. Update
10552 output message.
10553 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10554
0c13193f
YQ
105552014-03-06 Yao Qi <yao@codesourcery.com>
10556
10557 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10558 early if get_number returns zero. Use 'p' instead of 'args'.
10559
2217da06
YQ
105602014-03-06 Yao Qi <yao@codesourcery.com>
10561
10562 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10563 message.
10564
cc3da688
YQ
105652014-03-06 Yao Qi <yao@codesourcery.com>
10566
10567 PR breakpoints/16508
10568 * tracepoint.c (check_trace_running): New function.
10569 (trace_find_command): Move code to check_trace_running and
10570 call check_trace_running.
10571 (trace_find_pc_command): Likewise.
10572 (trace_find_tracepoint_command): Likewise.
10573 (trace_find_line_command): Likewise.
10574 (trace_find_range_command): Likewise.
10575 * tracepoint.h (check_trace_running): Likewise.
10576 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10577
6a5f844b
YQ
105782014-03-06 Yao Qi <yao@codesourcery.com>
10579
10580 * target.h (struct target_ops) <to_traceframe_info>: Use
10581 TARGET_DEFAULT_NORETURN (tcomplain ()).
10582 * target-delegates.c: Regenerated.
10583
0f26cec1
PA
105842014-03-05 Pedro Alves <palves@redhat.com>
10585
10586 PR gdb/16575
10587 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10588 void. Update comment.
10589 (dcache_xfer_memory): Delete.
10590 (dcache_read_memory_partial): New, based on the read bits of
10591 dcache_xfer_memory.
10592 (dcache_update): Add status parameter. Use ULONGEST for len, and
10593 adjust. Discard cache lines if the reason for the update was
10594 error.
10595 * dcache.h (dcache_xfer_memory): Delete declaration.
10596 (dcache_read_memory_partial): New declaration.
10597 (dcache_update): Update prototype.
10598 * target.c (raw_memory_xfer_partial): Update the dcache here.
10599 (memory_xfer_partial_1): Don't handle dcache writes here.
10600
b2b255bd
MF
106012014-03-05 Mike Frysinger <vapier@gentoo.org>
10602
10603 * remote-sim.c (gdbsim_load): Add const to prog.
10604
5d9cf8a4
TT
106052014-03-03 Tom Tromey <tromey@redhat.com>
10606
10607 * elfread.c (probe_key): Change to bfd_data.
10608 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10609 now per-BFD, not per-objfile.
10610 * stap-probe.c (stap_probe_destroy): Update comment.
10611 (handle_stap_probe): Allocate on the per-BFD obstack.
10612
729662a5
TT
106132014-03-03 Tom Tromey <tromey@redhat.com>
10614
10615 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10616 * breakpoint.c (create_longjmp_master_breakpoint): Use
10617 get_probe_address.
10618 (add_location_to_breakpoint, bkpt_probe_insert_location)
10619 (bkpt_probe_remove_location): Update.
10620 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10621 * elfread.c (elf_symfile_relocate_probe): Remove.
10622 (elf_probe_fns): Update.
10623 (insert_exception_resume_breakpoint): Change type of "probe"
10624 parameter to bound_probe.
10625 (check_exception_resume): Update.
10626 * objfiles.c (objfile_relocate1): Don't relocate probes.
10627 * probe.c (bound_probe_s): New typedef.
10628 (parse_probes): Use get_probe_address. Set sal's objfile.
10629 (find_probe_by_pc): Return a bound_probe.
10630 (collect_probes): Return a VEC(bound_probe_s).
10631 (compare_probes): Update.
10632 (gen_ui_out_table_header_info): Change type of "probes"
10633 parameter. Update.
10634 (info_probes_for_ops): Update.
10635 (get_probe_address): New function.
10636 (probe_safe_evaluate_at_pc): Update.
10637 * probe.h (struct probe_ops) <get_probe_address>: New field.
10638 <set_semaphore, clear_semaphore>: Add objfile parameter.
10639 (struct probe) <objfile>: Remove field.
10640 <arch>: New field.
10641 <address>: Update comment.
10642 (struct bound_probe): New.
10643 (find_probe_by_pc): Return a bound_probe.
10644 (get_probe_address): Declare.
10645 * solib-svr4.c (struct probe_and_action) <address>: New field.
10646 (hash_probe_and_action, equal_probe_and_action): Update.
10647 (register_solib_event_probe): Add address parameter.
10648 (solib_event_probe_at): Update.
10649 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10650 get_probe_address.
10651 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10652 (stap_get_probe_address): New function.
10653 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10654 (compile_probe_arg): Update.
10655 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10656 address.
10657 (handle_stap_probe): Don't relocate the probe.
10658 (stap_relocate): Remove.
10659 (stap_gen_info_probes_table_values): Update.
10660 (stap_probe_ops): Remove stap_relocate.
10661 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10662 (debug_sym_probe_fns): Update.
10663 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10664 * symtab.c (init_sal): Use memset.
10665 * symtab.h (struct symtab_and_line) <objfile>: New field.
10666 * tracepoint.c (start_tracing, stop_tracing): Update.
10667
ff887920
TT
106682014-03-03 Tom Tromey <tromey@redhat.com>
10669
10670 * probe.h (parse_probes, find_probe_by_pc)
10671 (find_probes_in_objfile): Fix comments.
10672
f0407826
DE
106732014-03-02 Doug Evans <xdje42@gmail.com>
10674
10675 * infrun.c (handle_signal_stop): Replace test for
10676 TARGET_WAITKIND_STOPPED with an assert.
10677
35e6a711
DE
106782014-03-02 Doug Evans <xdje42@gmail.com>
10679
10680 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10681
667f9d0b
DE
106822014-03-02 Doug Evans <xdje42@gmail.com>
10683
10684 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10685
dc92ace0
MK
106862014-03-01 Mark Kettenis <kettenis@gnu.org>
10687
10688 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10689
a900370f
MK
106902014-03-01 Mark Kettenis <kettenis@gnu.org>
10691
10692 * i386obsd-nat.c: Include "obsd-nat.h".
10693 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10694 add_target.
10695 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10696
b72a7981
MK
106972014-03-01 Mark Kettenis <kettenis@gnu.org>
10698
10699 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10700
96c70aba
MK
107012014-03-01 Mark Kettenis <kettenis@gnu.org>
10702
10703 * mips64obsd-nat.c: Include "obsd-nath".
10704 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10705 add_target
10706 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10707
874a80af
MK
107082014-03-01 Mark Kettenis <kettenis@gnu.org>
10709
8fd408f1
MK
10710 * amd64obsd-nat.c: Include "obsd-nat,h.
10711 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10712 add_target.
874a80af
MK
10713 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10714
9cf95373
SC
107152014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10716
10717 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10718 (find_overload_match): Update call to find_oload_champ.
10719 (find_oload_champ_namespace_loop): Likewise
10720
863e4da4
MK
107212014-02-28 Mark Kettenis <kettenis@gnu.org>
10722
025cac40
MK
10723 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10724
1ed586ce
MK
10725 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10726 * config/sparc/obsd64.mh: New file.
10727 * sparc64obsd-nat.c: New file.
10728
863e4da4
MK
10729 * obsd-nat.h: New file.
10730 * obsd-nat.c: New file.
10731 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10732 (ALLDEPFILES): Add obsd-nat.c.
10733
89de4da4
TT
107342014-02-28 Tom Tromey <tromey@redhat.com>
10735
10736 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10737 * cli-out.h (cli_ui_out_impl): Now const.
10738 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10739 * ui-out.c (struct ui_out) <impl>: Now const.
10740 (default_ui_out_impl): Now const.
10741 (ui_out_new): Make 'impl' parameter const.
10742 * ui-out.h (ui_out_new): Update.
10743
c725e7b6
MK
107442014-02-27 Mark Kettenis <kettenis@gnu.org>
10745
10746 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10747
670b46b3
MK
107482014-02-27 Mark Kettenis <kettenis@gnu.org>
10749
10750 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10751
c91550fc
JK
107522014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 Additional PR 8882 fix.
10755 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10756
2fa0369e
PA
107572014-02-27 Pedro Alves <palves@redhat.com>
10758
10759 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10760 isn't set.
10761
d632a097
PA
107622014-02-27 Pedro Alves <palves@redhat.com>
10763
10764 PR 12702
10765 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10766 * nat/linux-waitpid.c: Include string.h.
10767 (status_to_str): Moved here and made extern.
10768 * nat/linux-waitpid.h (status_to_str): New declaration.
10769
2ebd5a35
HZ
107702014-02-27 Hui Zhu <hui@codesourcery.com>
10771
10772 PR 12702
10773 * infrun.c (ptid_match): Move ...
10774 * common/ptid.c (ptid_match): ... here.
10775 * inferior.h (ptid_match): Move ...
10776 * common/ptid.h (ptid_match): ... here.
10777
3cdd631f
MK
107782014-02-27 Mark Kettenis <kettenis@gnu.org>
10779
10780 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10781 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10782 gdb_target_obs.
10783
bee30a64
MK
107842014-02-27 Mark Kettenis <kettenis@gnu.org>
10785
10786 * obsd-tdep.c (obsd_auxv_parse): New function.
10787 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10788
10789 * gdbarch.sh (auxv_parse): New.
10790 * gdbarch.h: Regenerated.
10791 * gdbarch.c: Regenerated.
10792 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10793
7a5a839f
LC
107942014-02-26 Ludovic Courtès <ludo@gnu.org>
10795
10796 * guile/scm-value.c (gdbscm_history_append_x): New function.
10797 (value_functions): Add it.
10798
31aa7e4e
JB
107992014-02-27 Joel Brobecker <brobecker@adacore.com>
10800
10801 * dwarf2read.c (attr_value_as_address): New function.
10802 (dwarf2_find_base_address, read_call_site_scope): Use
10803 attr_value_as_address in place of DW_ADDR.
10804 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10805 the low and high addresses. Slight rework of the handling
10806 of the high pc being a constant form, and limit it to
10807 DWARF verson 4 or higher.
10808 (dwarf2_record_block_ranges): Likewise.
10809 (read_partial_die): Likewise.
10810 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10811
9b333ba3
TT
108122014-02-26 Tom Tromey <tromey@redhat.com>
10813
10814 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10815
5f6cac40
TT
108162014-02-26 Tom Tromey <tromey@redhat.com>
10817
10818 * elfread.c (elf_read_minimal_symbols): Return early if
10819 minimal symbols have already been read. Add "ei" parameter.
10820 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10821 * minsyms.c (prim_record_minimal_symbol_full): Update.
10822 * objfiles.h (struct objstats) <n_minsyms>: Move...
10823 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10824 * symmisc.c (print_objfile_statistics): Update.
10825
2750ef27
TT
108262014-02-26 Tom Tromey <tromey@redhat.com>
10827
10828 * elfread.c (elf_read_minimal_symbols): New function, from
10829 elf_symfile_read.
10830 (elf_symfile_read): Call it.
10831
34643a32
TT
108322014-02-26 Tom Tromey <tromey@redhat.com>
10833
10834 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10835 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10836 (lookup_minimal_symbol_solib_trampoline)
10837 (lookup_minimal_symbol_by_pc_section_1)
10838 (lookup_minimal_symbol_and_objfile): Update.
10839 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10840 Don't allocate a minimal symbol if minsyms have already been read.
10841 (build_minimal_symbol_hash_tables): Update.
10842 (install_minimal_symbols): Do nothing if minsyms already read.
10843 Use the per-BFD obstack.
10844 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10845 * objfiles.c (allocate_objfile): Call
10846 terminate_minimal_symbol_table later.
10847 (have_minimal_symbols): Update.
10848 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10849 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10850 Move from struct objfile.
10851 <minsyms_read>: New field.
10852 (struct objfile) <msymbols, minimal_symbol_count,
10853 msymbol_hash, msymbol_demangled_hash>: Move.
10854 (ALL_OBJFILE_MSYMBOLS): Update.
10855 * symfile.c (read_symbols): Set minsyms_read.
10856 (reread_symbols): Update.
10857 * symmisc.c (dump_objfile, dump_msymbols): Update.
10858
2273f0ac
TT
108592014-02-26 Tom Tromey <tromey@redhat.com>
10860
10861 * minsyms.c (msymbols_sort): Remove.
10862 * minsyms.h (msymbols_sort): Remove.
10863 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10864 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10865 * elfread.c (elf_symtab_read): Don't add section offsets.
10866 * xcoffread.c (record_minimal_symbol): Don't add section offset
10867 to minimal symbol address.
10868 * somread.c (text_offset, data_offset): Remove.
10869 (som_symtab_read): Don't add section offsets to minimal symbol
10870 addresses.
10871 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10872 Don't add section offsets to minimal symbols.
10873 * coffread.c (coff_symtab_read): Don't add section offsets
10874 to minimal symbol addresses.
10875 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10876 to minimal symbol addresses.
10877 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10878 section offset to minimal symbol addresses.
10879 * mdebugread.c (parse_partial_symbols): Don't add section
10880 offset to minimal symbol addresses.
10881 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10882 offset to minimal symbol addresses.
10883
77e371c0
TT
108842014-02-26 Tom Tromey <tromey@redhat.com>
10885
10886 * ada-lang.c (ada_main_name): Update.
10887 (ada_add_standard_exceptions): Update.
10888 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10889 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10890 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10891 * auxv.c (ld_so_xfer_auxv): Update.
10892 * avr-tdep.c (avr_scan_prologue): Update.
10893 * ax-gdb.c (gen_var_ref): Update.
10894 * blockframe.c (get_pc_function_start)
10895 (find_pc_partial_function_gnu_ifunc): Update.
10896 * breakpoint.c (create_overlay_event_breakpoint)
10897 (create_longjmp_master_breakpoint)
10898 (create_std_terminate_master_breakpoint)
10899 (create_exception_master_breakpoint): Update.
10900 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10901 * c-valprint.c (c_val_print): Update.
10902 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10903 * common/agent.c (agent_look_up_symbols): Update.
10904 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10905 * dwarf2loc.c (call_site_to_target_addr): Update.
10906 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10907 * elfread.c (elf_gnu_ifunc_record_cache)
10908 (elf_gnu_ifunc_resolve_by_got): Update.
10909 * findvar.c (default_read_var_value): Update.
10910 * frame.c (inside_main_func): Update.
10911 * frv-tdep.c (frv_frame_this_id): Update.
10912 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10913 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10914 Update.
10915 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10916 (hppa_hpux_find_dummy_bpaddr): Update.
10917 * hppa-tdep.c (hppa_symbol_address): Update.
10918 * infcmd.c (until_next_command): Update.
10919 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10920 Update.
10921 * linespec.c (minsym_found, add_minsym): Update.
10922 * linux-nat.c (get_signo): Update.
10923 * linux-thread-db.c (inferior_has_bug): Update.
10924 * m32c-tdep.c (m32c_return_value)
10925 (m32c_m16c_address_to_pointer): Update.
10926 * m32r-tdep.c (m32r_frame_this_id): Update.
10927 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10928 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10929 * maint.c (maintenance_translate_address): Update.
10930 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10931 (frob_address): New function.
10932 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10933 frob_address. Rename parameter to "pc_in".
10934 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10935 addresses.
10936 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10937 Update.
10938 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10939 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10940 * objc-lang.c (find_objc_msgsend): Update.
10941 * objfiles.c (objfile_relocate1): Update.
10942 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10943 * p-valprint.c (pascal_val_print): Update.
10944 * parse.c (write_exp_msymbol): Update.
10945 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10946 (ppc_elfv2_skip_entrypoint): Update.
10947 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10948 * printcmd.c (build_address_symbolic, msym_info)
10949 (address_info): Update.
10950 * proc-service.c (ps_pglobal_lookup): Update.
10951 * psymtab.c (find_pc_sect_psymtab_closer)
10952 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10953 Change msymbol parameter to bound_minimal_symbol.
10954 * ravenscar-thread.c (get_running_thread_id): Update.
10955 * remote.c (remote_check_symbols): Update.
10956 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10957 address.
10958 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10959 * solib-dsbt.c (lm_base): Update.
10960 * solib-frv.c (lm_base, main_got): Update.
10961 * solib-irix.c (locate_base): Update.
10962 * solib-som.c (som_solib_create_inferior_hook)
10963 (link_map_start): Update.
10964 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10965 * solib-svr4.c (elf_locate_base, enable_break): Update.
10966 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10967 (flush_ea_cache): Update.
10968 * stabsread.c (define_symbol, scan_file_globals): Update.
10969 * stack.c (find_frame_funname): Update.
10970 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10971 (debug_qf_find_pc_sect_symtab): Update.
10972 * symfile.c (simple_read_overlay_table)
10973 (simple_overlay_update): Update.
10974 * symfile.h (struct quick_symbol_functions)
10975 <find_pc_sect_symtab>: Change type of msymbol to
10976 bound_minimal_symbol.
10977 * symmisc.c (dump_msymbols): Update.
10978 * symtab.c (find_pc_sect_symtab_via_partial)
10979 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10980 (search_symbols, print_msymbol_info): Update.
10981 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10982 (MSYMBOL_VALUE_ADDRESS): Redefine.
10983 (BMSYMBOL_VALUE_ADDRESS): New macro.
10984 * tracepoint.c (scope_info): Update.
10985 * tui/tui-disasm.c (tui_find_disassembly_address)
10986 (tui_get_begin_asm_address): Update.
10987 * valops.c (find_function_in_inferior): Update.
10988 * value.c (value_static_field, value_fn_field): Update.
10989
3b7344d5
TT
109902014-02-26 Tom Tromey <tromey@redhat.com>
10991
10992 * ada-lang.c (ada_update_initial_language): Update.
10993 (ada_main_name, ada_has_this_exception_support): Update.
10994 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10995 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10996 * arm-tdep.c (arm_skip_stub): Update.
10997 * auxv.c (ld_so_xfer_auxv): Update.
10998 * avr-tdep.c (avr_scan_prologue): Update.
10999 * ax-gdb.c (gen_var_ref): Update.
11000 * breakpoint.c (struct breakpoint_objfile_data)
11001 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11002 type to bound_minimal_symbol.
11003 (create_overlay_event_breakpoint)
11004 (create_longjmp_master_breakpoint)
11005 (create_std_terminate_master_breakpoint)
11006 (create_exception_master_breakpoint): Update.
11007 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11008 * c-exp.y (classify_name): Update.
11009 * coffread.c (coff_symfile_read): Update.
11010 * common/agent.c (agent_look_up_symbols): Update.
11011 * d-lang.c (d_main_name): Update.
11012 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11013 * dec-thread.c (enable_dec_thread): Update.
11014 * dwarf2loc.c (call_site_to_target_addr): Update.
11015 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11016 * eval.c (evaluate_subexp_standard): Update.
11017 * findvar.c (struct minsym_lookup_data) <result>: Change type
11018 to bound_minimal_symbol.
11019 <objfile>: Remove.
11020 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11021 * frame.c (inside_main_func): Update.
11022 * frv-tdep.c (frv_frame_this_id): Update.
11023 * gcore.c (call_target_sbrk): Update.
11024 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11025 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11026 Update.
11027 * go-lang.c (go_main_name): Update.
11028 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11029 (hppa_hpux_find_import_stub_for_addr): Update.
11030 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11031 Update. Change return type.
11032 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11033 type.
11034 * jit.c (jit_breakpoint_re_set_internal): Update.
11035 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11036 Update.
11037 * linux-nat.c (get_signo): Update.
11038 * linux-thread-db.c (inferior_has_bug): Update
11039 * m32c-tdep.c (m32c_return_value)
11040 (m32c_m16c_address_to_pointer): Update.
11041 * m32r-tdep.c (m32r_frame_this_id): Update.
11042 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11043 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11044 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11045 lookup_minimal_symbol. Change return type.
11046 (lookup_minimal_symbol): Remove.
11047 (lookup_bound_minimal_symbol): Update.
11048 (lookup_minimal_symbol_text): Change return type.
11049 (lookup_minimal_symbol_solib_trampoline): Change return type.
11050 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11051 (lookup_minimal_symbol_solib_trampoline): Change return type.
11052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11053 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11054 (value_nsstring, find_imps): Update.
11055 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11056 * p-lang.c (pascal_main_name): Update.
11057 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11058 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11059 * proc-service.c (ps_pglobal_lookup): Update.
11060 * ravenscar-thread.c (get_running_thread_msymbol): Change
11061 return type.
11062 (has_ravenscar_runtime, get_running_thread_id): Update.
11063 * remote.c (remote_check_symbols): Update.
11064 * sol-thread.c (ps_pglobal_lookup): Update.
11065 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11066 * solib-dsbt.c (lm_base): Update.
11067 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11068 Update.
11069 * solib-irix.c (locate_base): Update.
11070 * solib-som.c (som_solib_create_inferior_hook)
11071 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11072 Update.
11073 * solib-spu.c (spu_enable_break): Update.
11074 * solib-svr4.c (elf_locate_base, enable_break): Update.
11075 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11076 (flush_ea_cache): Update.
11077 * stabsread.c (define_symbol): Update.
11078 * symfile.c (simple_read_overlay_table): Update.
11079 * symtab.c (find_pc_sect_line): Update.
11080 * tracepoint.c (scope_info): Update.
11081 * tui-disasm.c (tui_get_begin_asm_address): Update.
11082 * value.c (value_static_field): Update.
11083
40c1a007
TT
110842014-02-26 Tom Tromey <tromey@redhat.com>
11085
11086 * minsyms.c (prim_record_minimal_symbol_full): Use
11087 SET_MSYMBOL_VALUE_ADDRESS.
11088 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11089 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11090 SET_MSYMBOL_VALUE_ADDRESS.
11091 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11092 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11093
efd66ac6
TT
110942014-02-26 Tom Tromey <tromey@redhat.com>
11095
11096 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11097 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11098 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11099 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11100 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11101 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11102 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11103 * ada-lang.c (ada_main_name): Update.
11104 (ada_lookup_simple_minsym): Update.
11105 (ada_make_symbol_completion_list): Update.
11106 (ada_add_standard_exceptions): Update.
11107 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11108 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11109 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11110 * arm-tdep.c (skip_prologue_function): Update.
11111 (arm_skip_stack_protector, arm_skip_stub): Update.
11112 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11113 (arm_wince_skip_main_prologue): Update.
11114 * auxv.c (ld_so_xfer_auxv): Update.
11115 * avr-tdep.c (avr_scan_prologue): Update.
11116 * ax-gdb.c (gen_var_ref): Update.
11117 * block.c (call_site_for_pc): Update.
11118 * blockframe.c (get_pc_function_start): Update.
11119 (find_pc_partial_function_gnu_ifunc): Update.
11120 * breakpoint.c (create_overlay_event_breakpoint): Update.
11121 (create_longjmp_master_breakpoint): Update.
11122 (create_std_terminate_master_breakpoint): Update.
11123 (create_exception_master_breakpoint): Update.
11124 (resolve_sal_pc): Update.
11125 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11126 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11127 Update.
11128 * c-valprint.c (c_val_print): Update.
11129 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11130 * coffread.c (coff_symfile_read): Update.
11131 * common/agent.c (agent_look_up_symbols): Update.
11132 * dbxread.c (find_stab_function_addr): Update.
11133 (end_psymtab): Update.
11134 * dwarf2loc.c (call_site_to_target_addr): Update.
11135 (func_verify_no_selftailcall): Update.
11136 (tailcall_dump): Update.
11137 (call_site_find_chain_1): Update.
11138 (dwarf_expr_reg_to_entry_parameter): Update.
11139 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11140 (elf_gnu_ifunc_resolve_by_got): Update.
11141 * f-valprint.c (info_common_command): Update.
11142 * findvar.c (read_var_value): Update.
11143 * frame.c (get_prev_frame_1): Update.
11144 (inside_main_func): Update.
11145 * frv-tdep.c (frv_skip_main_prologue): Update.
11146 (frv_frame_this_id): Update.
11147 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11148 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11149 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11150 (gnuv3_skip_trampoline): Update.
11151 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11152 (hppa64_hpux_in_solib_call_trampoline): Update.
11153 (hppa_hpux_skip_trampoline_code): Update.
11154 (hppa64_hpux_search_dummy_call_sequence): Update.
11155 (hppa_hpux_find_import_stub_for_addr): Update.
11156 (hppa_hpux_find_dummy_bpaddr): Update.
11157 * hppa-tdep.c (hppa_symbol_address)
11158 (hppa_lookup_stub_minimal_symbol): Update.
11159 * i386-tdep.c (i386_skip_main_prologue): Update.
11160 (i386_pe_skip_trampoline_code): Update.
11161 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11162 * infcall.c (get_function_name): Update.
11163 * infcmd.c (until_next_command): Update.
11164 * jit.c (jit_breakpoint_re_set_internal): Update.
11165 (jit_inferior_init): Update.
11166 * linespec.c (minsym_found): Update.
11167 (add_minsym): Update.
11168 * linux-fork.c (info_checkpoints_command): Update.
11169 * linux-nat.c (get_signo): Update.
11170 * linux-thread-db.c (inferior_has_bug): Update.
11171 * m32c-tdep.c (m32c_return_value): Update.
11172 (m32c_m16c_address_to_pointer): Update.
11173 (m32c_m16c_pointer_to_address): Update.
11174 * m32r-tdep.c (m32r_frame_this_id): Update.
11175 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11176 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11177 * maint.c (maintenance_translate_address): Update.
11178 * minsyms.c (add_minsym_to_hash_table): Update.
11179 (add_minsym_to_demangled_hash_table): Update.
11180 (msymbol_objfile): Update.
11181 (lookup_minimal_symbol): Update.
11182 (iterate_over_minimal_symbols): Update.
11183 (lookup_minimal_symbol_text): Update.
11184 (lookup_minimal_symbol_by_pc_name): Update.
11185 (lookup_minimal_symbol_solib_trampoline): Update.
11186 (lookup_minimal_symbol_by_pc_section_1): Update.
11187 (lookup_minimal_symbol_and_objfile): Update.
11188 (prim_record_minimal_symbol_full): Update.
11189 (compare_minimal_symbols): Update.
11190 (compact_minimal_symbols): Update.
11191 (build_minimal_symbol_hash_tables): Update.
11192 (install_minimal_symbols): Update.
11193 (terminate_minimal_symbol_table): Update.
11194 (find_solib_trampoline_target): Update.
11195 (minimal_symbol_upper_bound): Update.
11196 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11197 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11198 (mips_skip_pic_trampoline_code): Update.
11199 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11200 * objc-lang.c (selectors_info): Update.
11201 (classes_info): Update.
11202 (find_methods): Update.
11203 (find_imps): Update.
11204 (find_objc_msgsend): Update.
11205 * objfiles.c (objfile_relocate1): Update.
11206 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11207 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11208 * p-valprint.c (pascal_val_print): Update.
11209 * parse.c (write_exp_msymbol): Update.
11210 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11211 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11212 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11213 * printcmd.c (build_address_symbolic): Update.
11214 (sym_info): Update.
11215 (address_info): Update.
11216 * proc-service.c (ps_pglobal_lookup): Update.
11217 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11218 (find_pc_sect_psymtab): Update.
11219 * python/py-framefilter.c (py_print_frame): Update.
11220 * ravenscar-thread.c (get_running_thread_id): Update.
11221 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11222 Update.
11223 * remote.c (remote_check_symbols): Update.
11224 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11225 (rs6000_skip_trampoline_code): Update.
11226 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11227 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11228 * solib-dsbt.c (lm_base): Update.
11229 * solib-frv.c (lm_base): Update.
11230 (main_got): Update.
11231 * solib-irix.c (locate_base): Update.
11232 * solib-som.c (som_solib_create_inferior_hook): Update.
11233 (som_solib_desire_dynamic_linker_symbols): Update.
11234 (link_map_start): Update.
11235 * solib-spu.c (spu_enable_break): Update.
11236 (ocl_enable_break): Update.
11237 * solib-svr4.c (elf_locate_base): Update.
11238 (enable_break): Update.
11239 * spu-tdep.c (spu_get_overlay_table): Update.
11240 (spu_catch_start): Update.
11241 (flush_ea_cache): Update.
11242 * stabsread.c (define_symbol): Update.
11243 (scan_file_globals): Update.
11244 * stack.c (find_frame_funname): Update.
11245 (frame_info): Update.
11246 * symfile.c (simple_read_overlay_table): Update.
11247 (simple_overlay_update): Update.
11248 * symmisc.c (dump_msymbols): Update.
11249 * symtab.c (fixup_section): Update.
11250 (find_pc_sect_line): Update.
11251 (skip_prologue_sal): Update.
11252 (search_symbols): Update.
11253 (print_msymbol_info): Update.
11254 (rbreak_command): Update.
11255 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11256 (completion_list_objc_symbol): Update.
11257 (default_make_symbol_completion_list_break_on): Update.
11258 * tracepoint.c (scope_info): Update.
11259 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11260 (tui_get_begin_asm_address): Update.
11261 * valops.c (find_function_in_inferior): Update.
11262 * value.c (value_static_field): Update.
11263 (value_fn_field): Update.
11264
50e65b17
TT
112652014-02-26 Tom Tromey <tromey@redhat.com>
11266
11267 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11268 bound minimal symbols. Move code that knows about minsym
11269 table layout...
11270 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11271 function.
11272 * minsyms.h (minimal_symbol_upper_bound): Declare.
11273 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11274 minimal_symbol_upper_bound.
11275
1b588015
JB
112762014-02-27 Joel Brobecker <brobecker@adacore.com>
11277
11278 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11279 Use the type's name if its basic type does not have a tag.
11280
dbb9c2b1
JB
112812014-02-27 Joel Brobecker <brobecker@adacore.com>
11282
11283 * dwarf2read.c (read_subrange_type): Add comment.
11284
55426c9d
JB
112852014-02-27 Joel Brobecker <brobecker@adacore.com>
11286
11287 * dwarf2read.c (update_enumeration_type_from_children): New
11288 function, mostly extracted from process_structure_scope.
11289 (read_enumeration_type): Call update_enumeration_type_from_children.
11290 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11291 and flag_flag_enum fields.
11292
f2fce0ca
PA
112932014-02-26 Pedro Alves <palves@redhat.com>
11294
11295 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11296 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11297 to_xfer_partial method.
11298
7a44e40e
PA
112992014-02-26 Pedro Alves <palves@redhat.com>
11300
11301 * target.c (complete_target_initialization): Don't install
11302 default_xfer_partial as to_xfer_partial hook.
11303 (nomemory): Delete.
11304 (update_current_target): Don't INHERIT nor de_fault
11305 deprecated_xfer_memory. Delete de_fault macro.
11306 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11307 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11308 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11309 field.
11310
bd265cd0
PA
113112014-02-26 Pedro Alves <palves@redhat.com>
11312
11313 * go32-nat.c (my_write_child): New function.
11314 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11315 (go32_xfer_partial): New function.
11316 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11317 Instead install a to_xfer_partial hook.
11318
9d46c4e5
PA
113192014-02-26 Pedro Alves <palves@redhat.com>
11320
11321 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11322 to_xfer_partial helper. Rewrite.
11323 (procfs_xfer_partial): New function.
11324 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11325 Install a to_xfer_partial hook.
11326
a1583b1f
PA
113272014-02-26 Pedro Alves <palves@redhat.com>
11328
11329 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11330 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11331 (m32r_xfer_partial): New function.
11332 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11333 Install a to_xfer_partial hook.
11334
6df1b29f
PA
113352014-02-26 Pedro Alves <palves@redhat.com>
11336
11337 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11338 helper.
11339 (mips_xfer_partial): New function.
11340 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11341 hook. Install a to_xfer_partial hook.
11342
dc53a7ad
JB
113432014-02-26 Joel Brobecker <brobecker@adacore.com>
11344
11345 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11346 * gdbtypes.c (create_array_type_with_stride): New function,
11347 renaming create_array_type, but with an added parameter
11348 called "bit_stride".
11349 (create_array_type): Re-implement using
11350 create_array_type_with_stride.
11351 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11352 and DW_AT_bit_stride attributes.
11353
12ab52e9
PA
113542014-02-26 Pedro Alves <palves@redhat.com>
11355
11356 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11357 task-specific breakpoints.
11358
d16461ae
PA
113592014-02-25 Pedro Alves <palves@redhat.com>
11360
11361 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11362 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11363
a8b16220
SS
113642014-02-25 Stan Shebs <stan@codesourcery.com>
11365
11366 * defs.h: Annotate comments for Doxygen.
11367
b9e795ee
TT
113682014-02-25 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (target_ignore): Don't declare.
11371 * target.c (target_ignore): Remove.
11372
849c862e
JK
113732014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11374
11375 PR gdb/16626
11376 * auto-load.c (auto_load_objfile_script_1): Change filename to
11377 debugfile.
11378
475109d8
JB
113792014-02-25 Joel Brobecker <brobecker@adacore.com>
11380
11381 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11382 documentation. Adjust prototype to match the target_ops
11383 to_xfer_partial method. Adjust implementation accordingly.
11384
e186c3bd
HZ
113852014-02-25 Hui Zhu <hui@codesourcery.com>
11386
11387 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11388 to_traceframe_info.
11389
6d451942
KB
113902014-02-25 Kevin Buettner <kevinb@redhat.com>
11391
041ab8b4 11392 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11393 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11394 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11395 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11396 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11397 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11398 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11399 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11400 New constants.
11401 (rl78_register_type): Use a data pointer type for SP and
11402 new pseudo registers mentioned above. Use a 16 bit integer
11403 type for all other register pairs.
11404 (rl78_register_name, rl78_g10_register_name): Update for
11405 new pseudo registers.
11406 (rl78_pseudo_register_read): Likewise.
11407 (rl78_pseudo_register_write): Likewise.
11408 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11409 to the newly added pseudo registers.
11410
eddf0bae
DE
114112014-02-24 Doug Evans <dje@google.com>
11412
11413 * value.c (record_latest_value): Fix comment.
11414 * printcmd.c (print_command_1): Remove code to handle -1 return from
11415 record_latest_value.
11416
e96027e0
PA
114172014-02-24 Pedro Alves <palves@redhat.com>
11418
11419 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11420 deprecated_xfer_memory hook.
11421 (procfs_xfer_partial): Call procfs_xfer_memory instead
11422 of the deprecated_xfer_memory target hook.
11423 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11424 helper.
11425
0837c976
YZ
114262014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11427
11428 * windows-nat.c (windows_xfer_shared_libraries): Return
11429 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11430 requested object is TARGET_OBJECT_LIBRARIES.
11431
bc113b4e
YQ
114322014-02-24 Yao Qi <yao@codesourcery.com>
11433
11434 * target.h (enum target_xfer_status)
11435 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11436 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11437 explicitly. New.
11438 * corefile.c (memory_error_message): User updated.
11439 * exec.c (section_table_read_available_memory): Likewise.
11440 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11441 * target.c (target_xfer_status_to_string): Likewise.
11442 (raw_memory_xfer_partial): Likewise.
11443 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11444 * valops.c (read_value_memory): Likewise.
11445 * exec.h: Update comments.
11446
01cb8804
YQ
114472014-02-24 Yao Qi <yao@codesourcery.com>
11448
11449 * target.c (target_xfer_status_to_string): Rename argument err
11450 to status.
11451 * target.h (target_xfer_status_to_string): Update declaration.
11452 Replace target_xfer_error_to_string with
11453 target_xfer_status_to_string in comment.
11454
93063aa6
YQ
114552014-02-24 Yao Qi <yao@codesourcery.com>
11456
11457 * mips-linux-nat.c (super_close): Update its type.
11458 (mips_linux_close): Pass 'self' to super_close.
11459
5c328c05
YQ
114602014-02-24 Yao Qi <yao@codesourcery.com>
11461
11462 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11463 * corefile.c (read_memory): Adjusted.
11464 * target.c (target_write_with_progress): Adjusted.
11465
f73023dd
YQ
114662014-02-23 Yao Qi <yao@codesourcery.com>
11467
11468 Revert two patches:
11469
11470 2013-10-25 Yao Qi <yao@codesourcery.com>
11471
11472 * remote.c (remote_traceframe_info): Return early if
11473 traceframe is not selected.
11474
11475 2013-07-19 Yao Qi <yao@codesourcery.com>
11476
11477 * target.c (update_current_target): Change the default action
11478 of 'to_traceframe_info' from tcomplain to return_zero.
11479 * target.h (struct target_ops) <to_traceframe_info>: Add more
11480 comments.
11481
5a2eb0ef
YQ
114822014-02-23 Yao Qi <yao@codesourcery.com>
11483
11484 * valops.c (read_value_memory): Rewrite it. Call
11485 target_xfer_partial in a loop.
11486 * exec.h (section_table_available_memory): Remove declaration.
11487 Move comments to ...
11488 * exec.c (section_table_available_memory): ... here. Make it
11489 static.
11490
1ee79381
YQ
114912014-02-23 Yao Qi <yao@codesourcery.com>
11492
11493 * exec.c (section_table_read_available_memory): New function.
11494 * exec.h (section_table_read_available_memory): Declare.
11495 * ctf.c (ctf_xfer_partial): Call
11496 section_table_read_available_memory.
11497 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11498
1ca49d37
YQ
114992014-02-23 Yao Qi <yao@codesourcery.com>
11500
11501 * ctf.c (ctf_xfer_partial): Move code to ...
11502 * exec.c (exec_read_partial_read_only): ... it. New function.
11503 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11504 * tracefile.c: Include "exec.h".
11505 * exec.h (exec_read_partial_read_only): Declare.
11506
a283690e
YQ
115072014-02-23 Yao Qi <yao@codesourcery.com>
11508
11509 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11510 (tfile_has_memory): Remove.
11511 (init_tfile_ops): Don't set fields to_has_all_memory and
11512 to_has_memory of tfile_ops.
11513 * tracefile.c (tracefile_has_all_memory): New function.
11514 (tracefile_has_memory): New function.
11515 (init_tracefile_ops): Initialize fields to_has_all_memory and
11516 to_has_memory of 'ops'.
11517
12e03cd0
YQ
115182014-02-23 Yao Qi <yao@codesourcery.com>
11519
11520 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11521 (ctf_thread_alive, ctf_get_trace_status): Remove.
11522 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11523 init_tracefile_ops.
11524 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11525 (tfile_has_stack, tfile_has_registers): Remove.
11526 (tfile_thread_alive): Remove.
11527 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11528 init_tracefile_ops.
11529 * tracefile.c (tracefile_has_stack): New function.
11530 (tracefile_has_registers): New function.
11531 (tracefile_thread_alive): New function.
11532 (tracefile_get_trace_status): New function.
11533 (init_tracefile_ops): New function.
11534 * tracefile.h (init_tracefile_ops): Declare.
11535
11395323
YQ
115362014-02-23 Yao Qi <yao@codesourcery.com>
11537
11538 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11539 (O_LARGEFILE): Likewise.
11540 (tfile_ops): Likewise.
11541 (TRACE_HEADER_SIZE): Likewise.
11542 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11543 (cur_data_size): Likewise.
11544 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11545 (tfile_close, tfile_files_info): Likewise.
11546 (tfile_get_trace_status): Likewise.
11547 (tfile_get_tracepoint_status): Likewise.
11548 (tfile_get_traceframe_address): Likewise.
11549 (tfile_trace_find, match_blocktype): Likewise.
11550 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11551 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11552 (tfile_get_trace_state_variable_value): Likewise.
11553 (tfile_has_all_memory, tfile_has_memory): Likewise.
11554 (tfile_has_stack, tfile_has_registers): Likewise.
11555 (tfile_thread_alive, build_traceframe_info): Likewise.
11556 (tfile_traceframe_info, init_tfile_ops): Likewise.
11557 (_initialize_tracepoint): Don't call init_tfile_ops
11558 and add_target_with_completer.
11559 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11560 exec.h, completer.h and filenames.h.
11561 (_initialize_tracefile_tfile): New function.
11562
7951c4eb
YQ
115632014-02-23 Yao Qi <yao@codesourcery.com>
11564
11565 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11566 tracefile-tfile.o.
11567 (HFILES_NO_SRCDIR): Add tracefile.h.
11568 * ctf.c: Include "tracefile.h".
11569 * tracefile.h: New file.
11570 * tracefile.c: New file
11571 * tracefile-tfile.c: New file.
11572 * tracepoint.c: Include "tracefile.h".
11573 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11574 (stop_reason_names): Add const.
11575 (trace_file_writer_xfree): Move it to tracefile.c.
11576 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11577 (trace_save_ctf): Likewise.
11578 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11579 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11580 (tfile_write_header, tfile_write_regblock_type): Likewise.
11581 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11582 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11583 (tfile_write_raw_data, tfile_end): Likewise.
11584 (tfile_trace_file_writer_new): Likewise.
11585 (free_uploaded_tp): Make it extern.
11586 (free_uploaded_tsv): Make it extern.
11587 (_initialize_tracepoint): Move code to register command 'tsave'
11588 to tracefile.c.
11589 * tracepoint.h (stop_reason_names): Declare.
11590 (struct trace_frame_write_ops): Move it to tracefile.h.
11591 (struct trace_file_write_ops): Likewise.
11592 (struct trace_file_writer): Likewise.
11593 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11594
184cd072
JK
115952014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11596
11597 PR gdb/16594
11598 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11599 process name.
11600 (get_cores_used_by_process): New parameter num_cores, use it.
11601 (linux_xfer_osdata_processes): Pass num_cores to it.
11602 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11603 process name.
11604
c63528fc
AK
116052014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11606
11607 * target.c (memory_xfer_partial): Fix length arg in call to
11608 breakpoint_xfer_memory.
11609
d7b30f67
SDJ
116102014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11611
11612 PR tdep/16397
11613 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11614 number comes after the + or - signs. Adjust length of register
11615 name to be extracted.
11616
8838afaf
TT
116172014-02-20 Tom Tromey <tromey@redhat.com>
11618
11619 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11620 (ada_varobj_ops): Mark "extern".
11621
05227d14
TT
116222014-02-20 Tom Tromey <tromey@redhat.com>
11623
11624 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11625
1254eefc
DE
116262014-02-20 Doug Evans <xdje42@gmail.com>
11627
11628 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11629 All callers updated.
11630 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11631 All callers updated.
11632 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11633 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11634
adde2bff
DE
116352014-02-20 lin zuojian <manjian2006@gmail.com>
11636 Joel Brobecker <brobecker@adacore.com>
11637 Doug Evans <xdje42@gmail.com>
11638
11639 PR symtab/16581
11640 * dwarf2read.c (struct die_info): New member in_process.
11641 (reset_die_in_process): New function.
11642 (process_die): Set it at the start, reset when returning.
11643 (inherit_abstract_dies): Only call process_die if origin_child_die
11644 not already being processed.
11645
3be75f87
JB
116462014-02-20 Joel Brobecker <brobecker@adacore.com>
11647
11648 * windows-nat.c (handle_unload_dll): Add function documentation.
11649 (do_initial_windows_stuff): Add comment explaining why we wait
11650 until after inferior initialization has finished before
11651 processing all DLLs.
11652
47f7ffdb
JB
116532014-02-20 Joel Brobecker <brobecker@adacore.com>
11654
11655 * windows-nat.c (get_module_name): Delete.
11656 (windows_get_exec_module_filename): New function, mostly
11657 inspired from get_module_name.
11658 (windows_pid_to_exec_file): Replace call to get_module_name
11659 by call to windows_get_exec_module_filename.
11660
1cd9feab
JB
116612014-02-20 Joel Brobecker <brobecker@adacore.com>
11662
11663 * windows-nat.c (handle_load_dll): Rewrite this function's
11664 introductory comment. Remove code using get_module_name
11665 to get the DLL's name.
11666
ea39ad35
JB
116672014-02-20 Joel Brobecker <brobecker@adacore.com>
11668
11669 * windows-nat.c (get_windows_debug_event): Ignore
11670 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11671 if windows_initialization_done == 0.
11672 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11673 Adjust implementation to always load all DLLs.
11674 (do_initial_windows_stuff): Replace call to
11675 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11676
95060284
JB
116772014-02-20 Joel Brobecker <brobecker@adacore.com>
11678
11679 * windows-nat.c (_initialize_windows_nat): Deprecate the
11680 "dll-symbols" command. Turn the "add-shared-symbol-files"
11681 and "assf" aliases into commands, and deprecate them as well.
11682 * NEWS: Add entry explaining that "dll-symbols" and its two
11683 aliases are now deprecated.
11684
8d4fdb12
JB
116852014-02-20 Joel Brobecker <brobecker@adacore.com>
11686
11687 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11688 new-line in debug string. Remove trailing spaces.
11689
1b281443
SS
116902014-02-19 Stan Shebs <stan@codesourcery.com>
11691
11692 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11693
f7bd0f78
SC
116942014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11695
11696 * NEWS: Add entry for the new feature
11697 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11698 and class values.
11699
399ebc3d
SS
117002014-02-19 Stan Shebs <stan@codesourcery.com>
11701
11702 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11703
c658158d
PA
117042014-02-19 Pedro Alves <palves@redhat.com>
11705
11706 * common/ptid.h (struct ptid): Mention that process_stratum
11707 targets should prefer ptid.lwp.
11708
ba348170
PA
117092014-02-19 Pedro Alves <palves@redhat.com>
11710
11711 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11712 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11713 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11714 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11715 store remote thread ids rather than ptid.tid.
11716 (_initialize_remote): Adjust.
11717
ac01945b
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target.c (target_get_unwinder): Rewrite.
11721 (target_get_tailcall_unwinder): Rewrite.
11722 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11723 (record_btrace_to_get_tailcall_unwinder): New function.
11724 (init_record_btrace_ops): Update.
11725 * target.h (struct target_ops) <to_get_unwinder,
11726 to_get_tailcall_unwinder>: Now function pointers. Use
11727 TARGET_DEFAULT_RETURN.
11728
8476dc92
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11732 argument.
11733 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11734
c0eca49f
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11738 directly.
11739 * target-delegates.c: Rebuild.
11740 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11741 TARGET_DEFAULT_FUNC.
11742 * target.c (default_target_decr_pc_after_break): Rename from
11743 forward_target_decr_pc_after_break. Simplify.
11744 (target_decr_pc_after_break): Rely on delegation.
11745
596b6b39
TT
117462014-02-19 Tom Tromey <tromey@redhat.com>
11747
11748 * target.c (update_current_target): Do not INHERIT to_doc or
11749 to_magic. Do not de_fault to_open or to_close.
11750
b427c1bc
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * gcore.h (objfile_find_memory_regions): Declare.
11754 * gcore.c (objfile_find_memory_regions): No longer static. Add
11755 "self" argument.
11756 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11757 * exec.c: Include gcore.h.
11758 (exec_set_find_memory_regions): Remove.
11759 (exec_find_memory_regions): Remove.
11760 (exec_do_find_memory_regions): Remove.
11761 (init_exec_ops): Update.
11762 * defs.h (exec_set_find_memory_regions): Remove.
11763
9b144037
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target-delegates.c: Rebuild.
11767 * target.h (struct target_ops) <to_extra_thread_info,
11768 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11769 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11770 not 0, in TARGET_DEFAULT_RETURN.
11771
555bbdeb
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target.c (complete_target_initialization): Remove casts. Use
11775 return_zero_has_execution.
11776 (return_zero): Add "ignore" argument.
11777 (return_zero_has_execution): New function.
11778 (init_dummy_target): Remove casts. Use
11779 return_zero_has_execution.
11780
be4ddd36
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target.c (update_current_target): Update comments. Do not
11784 INHERIT to_stratum.
11785
2117c711
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11789 needed.
11790 * corelow.c (core_read_description): Delegate when needed.
11791 * remote.c (remote_read_description): Delegate when needed.
11792 * target-delegates.c: Rebuild.
11793 * target.c (target_read_description): Rewrite.
11794 * target.h (struct target_ops) <to_read_description>: Update
11795 comment. Use TARGET_DEFAULT_RETURN.
11796
e88ef65c
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11801 to_can_run.
11802 (find_default_run_target): Check against delegate_can_run.
11803 * target.h (struct target_ops) <to_can_run>: Use
11804 TARGET_DEFAULT_RETURN.
11805
86a0854a
TT
118062014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (target_disconnect): Unconditionally delegate.
11810 * target.h (struct target_ops) <to_disconnect>: Use
11811 TARGET_DEFAULT_NORETURN.
11812
ee97f592
TT
118132014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * record.c (record_stop): Unconditionally delegate.
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_stop_recording): Unconditionally delegate.
11818 * target.h (struct target_ops) <to_stop_recording>: Use
11819 TARGET_DEFAULT_IGNORE.
11820
6dc7fcf4
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (target_enable_btrace): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_enable_btrace>: Use
11826 TARGET_DEFAULT_NORETURN.
11827
eb5b20d4
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target-delegates.c: Rebuild.
11831 * target.c (target_read_btrace): Unconditionally delegate.
11832 * target.h (struct target_ops) <to_read_btrace>: Use
11833 TARGET_DEFAULT_NORETURN.
11834
9ace480d
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target-delegates.c: Rebuild.
11838 * target.c (target_teardown_btrace): Unconditionally delegate.
11839 * target.h (struct target_ops) <to_teardown_btrace>: Use
11840 TARGET_DEFAULT_NORETURN.
11841
8dc292d3
TT
118422014-02-19 Tom Tromey <tromey@redhat.com>
11843
11844 * target-delegates.c: Rebuild.
11845 * target.c (target_disable_btrace): Unconditionally delegate.
11846 * target.h (struct target_ops) <to_disable_btrace>: Use
11847 TARGET_DEFAULT_NORETURN.
11848
58a5184e
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (default_search_memory): New function.
11853 (simple_search_memory): Update comment.
11854 (target_search_memory): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_search_memory>: Use
11856 TARGET_DEFAULT_FUNC.
11857
8de71aab
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * auxv.c (default_auxv_parse): No longer static.
11861 (target_auxv_parse): Unconditionally delegate.
11862 * auxv.h (default_auxv_parse): Declare.
11863 * target-delegates.c: Rebuild.
11864 * target.c: Include auxv.h.
11865 * target.h (struct target_ops) <to_auxv_parse>: Use
11866 TARGET_DEFAULT_FUNC.
11867
6b2c5a57
TT
118682014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target-delegates.c: Rebuild.
11871 * target.c (target_memory_map): Unconditionally delegate.
11872 * target.h (struct target_ops) <to_memory_map>: Use
11873 TARGET_DEFAULT_RETURN.
11874
cbffc065
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target-delegates.c: Rebuild.
11878 * target.c (target_thread_alive): Unconditionally delegate.
11879 * target.h (struct target_ops) <to_thread_alive>: Use
11880 TARGET_DEFAULT_RETURN.
11881
f09e2107
TT
118822014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (target_save_record): Unconditionally delegate.
11886 * target.h (struct target_ops) <to_save_record>: Use
11887 TARGET_DEFAULT_NORETURN.
11888
07366925
TT
118892014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_delete_record): Unconditionally delegate.
11893 * target.h (struct target_ops) <to_delete_record>: Use
11894 TARGET_DEFAULT_NORETURN.
11895
dd2e9d25
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (target_record_is_replaying): Unconditionally
11900 delegate.
11901 * target.h (struct target_ops) <to_record_is_replaying>: Use
11902 TARGET_DEFAULT_RETURN.
11903
671e76cc
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (target_goto_record_begin): Unconditionally delegate.
11908 * target.h (struct target_ops) <to_goto_record_begin>: Use
11909 TARGET_DEFAULT_NORETURN.
11910
e9179bb3
TT
119112014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target-delegates.c: Rebuild.
11914 * target.c (target_goto_record_end): Unconditionally delegate.
11915 * target.h (struct target_ops) <to_goto_record_end>: Use
11916 TARGET_DEFAULT_NORETURN.
11917
05969c84
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target-delegates.c: Rebuild.
11921 * target.c (target_goto_record): Unconditionally delegate.
11922 * target.h (struct target_ops) <to_goto_record>: Use
11923 TARGET_DEFAULT_NORETURN.
11924
3679abfa
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target-delegates.c: Rebuild.
11928 * target.c (target_insn_history): Unconditionally delegate.
11929 * target.h (struct target_ops) <to_insn_history>: Use
11930 TARGET_DEFAULT_NORETURN.
11931
8444ab58
TT
119322014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (target_insn_history_from): Unconditionally delegate.
11936 * target.h (struct target_ops) <to_insn_history_from>: Use
11937 TARGET_DEFAULT_NORETURN.
11938
c29302cc
TT
119392014-02-19 Tom Tromey <tromey@redhat.com>
11940
11941 * target-delegates.c: Rebuild.
11942 * target.c (target_insn_history_range): Unconditionally delegate.
11943 * target.h (struct target_ops) <to_insn_history_range>: Use
11944 TARGET_DEFAULT_NORETURN.
11945
170049d4
TT
119462014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_call_history): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_call_history>: Use
11951 TARGET_DEFAULT_NORETURN.
11952
16fc27d6
TT
119532014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_call_history_from): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_call_history_from>: Use
11958 TARGET_DEFAULT_NORETURN.
11959
115d9817
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_call_history_range): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_call_history_range>: Use
11965 TARGET_DEFAULT_NORETURN.
11966
eb276a6b
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (target_verify_memory): Unconditionally delegate.
11971 * target.h (struct target_ops) <to_verify_memory>: Use
11972 TARGET_DEFAULT_NORETURN.
11973
9e538d0d
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target-delegates.c: Rebuild.
11977 * target.c (target_core_of_thread): Unconditionally delegate.
11978 * target.h (struct target_ops) <to_core_of_thread>: Use
11979 TARGET_DEFAULT_RETURN.
11980
f6fb2925
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target-delegates.c: Rebuild.
11984 * target.c (target_flash_done): Unconditionally delegate.
11985 * target.h (struct target_ops) <to_flash_done>: Use
11986 TARGET_DEFAULT_NORETURN.
11987
e8a6c6ac
TT
119882014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target-delegates.c: Rebuild.
11991 * target.c (target_flash_erase): Unconditionally delegate.
11992 * target.h (struct target_ops) <to_flash_erase>: Use
11993 TARGET_DEFAULT_NORETURN.
11994
7e35c012
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (target_get_section_table): Unconditionally delegate.
11999 * target.h (struct target_ops) <to_get_section_table>: Use
12000 TARGET_DEFAULT_RETURN.
12001
770234d3
TT
120022014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target-delegates.c: Rebuild.
12005 * target.c (target_pid_to_str): Unconditionally delegate.
12006 (init_dummy_target): Don't initialize to_pid_to_str.
12007 (default_pid_to_str): Rename from dummy_pid_to_str.
12008 * target.h (struct target_ops) <to_pid_to_str>: Use
12009 TARGET_DEFAULT_FUNC.
12010
09b0dc2b
TT
120112014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target-delegates.c: Rebuild.
12014 * target.c (target_find_new_threads): Unconditionally delegate.
12015 * target.h (struct target_ops) <to_find_new_threads>: Use
12016 TARGET_DEFAULT_RETURN.
12017
7d4f8efa
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target-delegates.c: Rebuild.
12021 * target.c (target_program_signals): Unconditionally delegate.
12022 * target.h (struct target_ops) <to_program_signals>: Use
12023 TARGET_DEFAULT_IGNORE.
12024
035cad7f
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_pass_signals): Unconditionally delegate.
12029 * target.h (struct target_ops) <to_pass_signals>: Use
12030 TARGET_DEFAULT_IGNORE.
12031
8d657035
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target-delegates.c: Rebuild.
12035 * target.c (default_mourn_inferior): New function.
12036 (target_mourn_inferior): Unconditionally delegate.
12037 * target.h (struct target_ops) <to_mourn_inferior>: Use
12038 TARGET_DEFAULT_FUNC.
12039
098dba18
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target-delegates.c: Rebuild.
12043 * target.c (default_follow_fork): New function.
12044 (target_follow_fork): Unconditionally delegate.
12045 * target.h (struct target_ops) <to_follow_fork>: Use
12046 TARGET_DEFAULT_FUNC.
12047
423a4807
TT
120482014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target-delegates.c: Rebuild.
12051 * target.c (target_kill): Unconditionally delegate.
12052 * target.h (struct target_ops) <to_kill>: Use
12053 TARGET_DEFAULT_NORETURN.
12054
6c7e5e5c
TT
120552014-02-19 Tom Tromey <tromey@redhat.com>
12056
12057 * target-delegates.c: Rebuild.
12058 * target.c (target_masked_watch_num_registers): Unconditionally
12059 delegate.
12060 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12061 Use TARGET_DEFAULT_RETURN.
12062
8b1c364c
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target-delegates.c: Rebuild.
12066 * target.c (target_remove_mask_watchpoint): Unconditionally
12067 delegate.
12068 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12069 TARGET_DEFAULT_RETURN.
12070
cd4ae029
TT
120712014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_insert_mask_watchpoint): Unconditionally
12075 delegate.
12076 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12077 TARGET_DEFAULT_RETURN.
12078
a134316b
TT
120792014-02-19 Tom Tromey <tromey@redhat.com>
12080
12081 * target-delegates.c: Rebuild.
12082 * target.c (target_ranged_break_num_registers): Unconditionally
12083 delegate.
12084 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12085 Use TARGET_DEFAULT_RETURN.
12086
ad5989bd
TT
120872014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target-delegates.c: Rebuild.
12090 * target.c (target_fetch_registers): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_fetch_registers>: Use
12092 TARGET_DEFAULT_NORETURN.
12093
46ee7e8d
TT
120942014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_stop.
12099 * target.h (struct target_ops) <to_stop>: Use
12100 TARGET_DEFAULT_IGNORE.
12101
843f59ed
TT
121022014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12106 to_can_run_breakpoint_commands.
12107 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12108 Use TARGET_DEFAULT_RETURN.
12109
ccfde2a0
TT
121102014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_supports_evaluation_of_breakpoint_conditions.
12115 * target.h (struct target_ops)
12116 <to_supports_evaluation_of_breakpoint_conditions>: Use
12117 TARGET_DEFAULT_RETURN.
12118
0de91722
TT
121192014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target-delegates.c: Rebuild.
12122 * target.c (update_current_target): Don't inherit or default
12123 to_augmented_libraries_svr4_read.
12124 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12125 Use TARGET_DEFAULT_RETURN.
12126
9a7d8b48
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target-delegates.c: Rebuild.
12130 * target.c (update_current_target): Don't inherit or default
12131 to_can_use_agent.
12132 * target.h (struct target_ops) <to_can_use_agent>: Use
12133 TARGET_DEFAULT_RETURN.
12134
d9db5b21
TT
121352014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target-delegates.c: Rebuild.
12138 * target.c (update_current_target): Don't inherit or default
12139 to_use_agent.
12140 * target.h (struct target_ops) <to_use_agent>: Use
12141 TARGET_DEFAULT_NORETURN.
12142
92155eeb
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target-delegates.c: Rebuild.
12146 * target.c (update_current_target): Don't inherit or default
12147 to_traceframe_info.
12148 (return_null): Remove.
12149 * target.h (struct target_ops) <to_traceframe_info>: Use
12150 TARGET_DEFAULT_RETURN.
12151
d6522a22
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_static_tracepoint_markers_by_strid.
12157 * target.h (struct target_ops)
12158 <to_static_tracepoint_markers_by_strid>: Use
12159 TARGET_DEFAULT_NORETURN.
12160
4c3e4425
TT
121612014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_static_tracepoint_marker_at.
12166 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12167 Use TARGET_DEFAULT_RETURN.
12168
dcd6917f
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_set_permissions.
12174 * target.h (struct target_ops) <to_set_permissions>: Use
12175 TARGET_DEFAULT_IGNORE.
12176
22bcceee
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_get_tib_address.
12182 * target.h (struct target_ops) <to_get_tib_address>: Use
12183 TARGET_DEFAULT_NORETURN.
12184
8586ccaa
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_set_trace_notes.
12190 * target.h (struct target_ops) <to_set_trace_notes>: Use
12191 TARGET_DEFAULT_RETURN.
12192
91df8d1d
TT
121932014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't initialize
12197 to_set_trace_buffer_size.
12198 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12199 TARGET_DEFAULT_IGNORE.
12200
8d526939
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_set_circular_trace_buffer.
12206 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12207 TARGET_DEFAULT_IGNORE.
12208
0bcfeddf
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_set_disconnected_tracing.
12214 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12215 TARGET_DEFAULT_IGNORE.
12216
9249843f
TT
122172014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_get_min_fast_tracepoint_insn_len.
12222 (return_minus_one): Remove.
12223 * target.h (struct target_ops)
12224 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12225
ace92e7d
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_get_raw_trace_data.
12231 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12232 TARGET_DEFAULT_NORETURN.
12233
08120467
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_upload_trace_state_variables.
12239 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12240 Use TARGET_DEFAULT_RETURN.
12241
1e949b00
TT
122422014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_upload_tracepoints.
12247 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12248 TARGET_DEFAULT_RETURN.
12249
a2e6c147
TT
122502014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_save_trace_data.
12255 * target.h (struct target_ops) <to_save_trace_data>: Use
12256 TARGET_DEFAULT_NORETURN.
12257
959bcd0b
TT
122582014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_get_trace_state_variable_value.
12263 * target.h (struct target_ops)
12264 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12265
afc94e66
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12270 to_trace_find.
12271 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12272
e51c07ea
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target-delegates.c: Rebuild.
12276 * target.c (update_current_target): Don't inherit or default
12277 to_trace_stop.
12278 * target.h (struct target_ops) <to_trace_stop>: Use
12279 TARGET_DEFAULT_NORETURN.
12280
6fea14cd
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target-delegates.c: Rebuild.
12284 * target.c (update_current_target): Don't inherit or default
12285 to_get_tracepoint_status.
12286 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12287 TARGET_DEFAULT_NORETURN.
12288
4072d4ff
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target-delegates.c: Rebuild.
12292 * target.c (update_current_target): Don't inherit or default
12293 to_get_trace_status.
12294 * target.h (struct target_ops) <to_get_trace_status>: Use
12295 TARGET_DEFAULT_RETURN.
12296
25da2e80
TT
122972014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target-delegates.c: Rebuild.
12300 * target.c (update_current_target): Don't inherit or default
12301 to_trace_start.
12302 * target.h (struct target_ops) <to_trace_start>: Use
12303 TARGET_DEFAULT_NORETURN.
12304
86dd181d
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target-delegates.c: Rebuild.
12308 * target.c (update_current_target): Don't inherit or default
12309 to_trace_set_readonly_regions.
12310 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12311 Use TARGET_DEFAULT_NORETURN.
12312
05c41993
TT
123132014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target-delegates.c: Rebuild.
12316 * target.c (update_current_target): Don't inherit or default
12317 to_disable_tracepoint.
12318 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12319 TARGET_DEFAULT_NORETURN.
12320
151f70f1
TT
123212014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * target-delegates.c: Rebuild.
12324 * target.c (update_current_target): Don't inherit or default
12325 to_enable_tracepoint.
12326 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12327 TARGET_DEFAULT_NORETURN.
12328
94eb98b9
TT
123292014-02-19 Tom Tromey <tromey@redhat.com>
12330
12331 * target-delegates.c: Rebuild.
12332 * target.c (update_current_target): Don't inherit or default
12333 to_download_trace_state_variable.
12334 * target.h (struct target_ops) <to_download_trace_state_variable>:
12335 Use TARGET_DEFAULT_NORETURN.
12336
719acc4a
TT
123372014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target-delegates.c: Rebuild.
12340 * target.c (update_current_target): Don't inherit or default
12341 to_can_download_tracepoint.
12342 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12343 TARGET_DEFAULT_RETURN.
12344
9a980a22
TT
123452014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target-delegates.c: Rebuild.
12348 * target.c (update_current_target): Don't inherit or default
12349 to_download_tracepoint.
12350 * target.h (struct target_ops) <to_download_tracepoint>: Use
12351 TARGET_DEFAULT_NORETURN.
12352
5536135b
TT
123532014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target-delegates.c: Rebuild.
12356 * target.c (update_current_target): Don't inherit or default
12357 to_trace_init.
12358 * target.h (struct target_ops) <to_trace_init>: Use
12359 TARGET_DEFAULT_RETURN.
12360
9409d39e
TT
123612014-02-19 Tom Tromey <tromey@redhat.com>
12362
12363 * target-delegates.c: Rebuild.
12364 * target.c (update_current_target): Don't inherit or default
12365 to_supports_string_tracing.
12366 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12367 TARGET_DEFAULT_RETURN.
12368
aab1b22d
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target-delegates.c: Rebuild.
12372 * target.c (update_current_target): Don't inherit or default
12373 to_supports_enable_disable_tracepoint.
12374 * target.h (struct target_ops)
12375 <to_supports_enable_disable_tracepoint>: Use
12376 TARGET_DEFAULT_RETURN.
12377
a7304748
TT
123782014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target-delegates.c: Rebuild.
12381 * target.c (update_current_target): Don't inherit or default
12382 to_supports_multi_process.
12383 * target.h (struct target_ops) <to_supports_multi_process>: Use
12384 TARGET_DEFAULT_RETURN.
12385
4229b31d
TT
123862014-02-19 Tom Tromey <tromey@redhat.com>
12387
12388 * target-delegates.c: Rebuild.
12389 * target.c (update_current_target): Don't inherit or default
12390 to_get_ada_task_ptid.
12391 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12392 TARGET_DEFAULT_FUNC.
12393
43eba180
TT
123942014-02-19 Tom Tromey <tromey@redhat.com>
12395
12396 * target-delegates.c: Rebuild.
12397 * target.c (update_current_target): Don't inherit or default
12398 to_thread_architecture.
12399 * target.h (struct target_ops) <to_thread_architecture>: Use
12400 TARGET_DEFAULT_FUNC.
12401
fe31bf5b
TT
124022014-02-19 Tom Tromey <tromey@redhat.com>
12403
12404 * target-delegates.c: Rebuild.
12405 * target.c (update_current_target): Don't inherit or default
12406 to_execution_direction.
12407 * target.h (struct target_ops) <to_execution_direction>: Use
12408 TARGET_DEFAULT_FUNC.
12409
53e1cfc7
TT
124102014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target-delegates.c: Rebuild.
12413 * target.c (update_current_target): Don't inherit or default
12414 to_can_execute_reverse.
12415 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12416 TARGET_DEFAULT_RETURN.
12417 (target_can_execute_reverse): Unconditionally delegate.
12418
9bb9d61d
TT
124192014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target-delegates.c: Rebuild.
12422 * target.c (update_current_target): Don't inherit or default
12423 to_goto_bookmark.
12424 (dummy_goto_bookmark): Remove.
12425 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12426 * target.h (struct target_ops) <to_goto_bookmark>: Use
12427 TARGET_DEFAULT_NORETURN.
12428
3dbafbbb
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_get_bookmark.
12434 (dummy_get_bookmark): Remove.
12435 (init_dummy_target): Don't inherit or default to_get_bookmark.
12436 * target.h (struct target_ops) <to_get_bookmark>: Use
12437 TARGET_DEFAULT_NORETURN
12438
16f796b1
TT
124392014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target-delegates.c: Rebuild.
12442 * target.c (update_current_target): Don't inherit or default
12443 to_make_corefile_notes.
12444 (init_dummy_target): Don't initialize to_make_corefile_notes.
12445 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12446 TARGET_DEFAULT_FUNC.
12447
0b5a2719
TT
124482014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target-delegates.c: Rebuild.
12451 * target.c (update_current_target): Don't inherit or default
12452 to_find_memory_regions.
12453 (init_dummy_target): Don't initialize to_find_memory_regions.
12454 * target.h (struct target_ops) <to_find_memory_regions>: Use
12455 TARGET_DEFAULT_FUNC.
12456
d9cb0195
TT
124572014-02-19 Tom Tromey <tromey@redhat.com>
12458
12459 * target-delegates.c: Rebuild.
12460 * target.c (update_current_target): Don't inherit or default
12461 to_log_command.
12462 * target.h (struct target_ops) <to_log_command>: Use
12463 TARGET_DEFAULT_IGNORE.
12464 (target_log_command): Unconditionally delegate.
12465
830ca330
TT
124662014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target-delegates.c: Rebuild.
12469 * target.c (update_current_target): Don't inherit or default
12470 to_pid_to_exec_file.
12471 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12472 TARGET_DEFAULT_RETURN.
12473
825828fc
TT
124742014-02-19 Tom Tromey <tromey@redhat.com>
12475
12476 * target-delegates.c: Rebuild.
12477 * target.c (update_current_target): Don't inherit or default
12478 to_thread_name.
12479 (target_thread_name): Unconditionally delegate.
12480 * target.h (struct target_ops) <to_thread_name>: Use
12481 TARGET_DEFAULT_RETURN.
12482
4a7e6dda
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target-delegates.c: Rebuild.
12486 * target.c (update_current_target): Don't inherit or default
12487 to_extra_thread_info.
12488 * target.h (struct target_ops) <to_extra_thread_info>: Use
12489 TARGET_DEFAULT_RETURN.
12490
0db88c1d
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target-delegates.c: Rebuild.
12494 * target.c (update_current_target): Don't inherit or default
12495 to_has_exited.
12496 * target.h (struct target_ops) <to_has_exited>: Use
12497 TARGET_DEFAULT_RETURN..
12498
6a9fa051
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target-delegates.c: Rebuild.
12502 * target.c (update_current_target): Don't inherit or default
12503 to_set_syscall_catchpoint.
12504 (return_one): Remove.
12505 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12506 TARGET_DEFAULT_RETURN.
12507
62f64d7a
TT
125082014-02-19 Tom Tromey <tromey@redhat.com>
12509
12510 * target-delegates.c: Rebuild.
12511 * target.c (update_current_target): Don't inherit or default
12512 to_insert_exec_catchpoint.
12513 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12514 TARGET_DEFAULT_RETURN.
12515
cda0f38c
TT
125162014-01-08 Tom Tromey <tromey@redhat.com>
12517
12518 * target-delegates.c: Rebuild.
12519 * target.c (update_current_target): Don't inherit or default
12520 to_insert_exec_catchpoint.
12521 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12522 TARGET_DEFAULT_RETURN.
12523
95c3375e
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target-delegates.c: Rebuild.
12527 * target.c (update_current_target): Don't inherit or default
12528 to_remove_vfork_catchpoint.
12529 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12530 TARGET_DEFAULT_RETURN.
12531
7e18a8dc
TT
125322014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target-delegates.c: Rebuild.
12535 * target.c (update_current_target): Don't inherit or default
12536 to_insert_vfork_catchpoint.
12537 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12538 TARGET_DEFAULT_RETURN.
12539
e1a21fb7
TT
125402014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target-delegates.c: Rebuild.
12543 * target.c (update_current_target): Don't inherit or default
12544 to_remove_fork_catchpoint.
12545 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12546 TARGET_DEFAULT_RETURN.
12547
5958ebeb
TT
125482014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target-delegates.c: Rebuild.
12551 * target.c (update_current_target): Don't inherit or default
12552 to_insert_fork_catchpoint.
12553 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12554 TARGET_DEFAULT_RETURN.
12555
340ba4bf
TT
125562014-02-19 Tom Tromey <tromey@redhat.com>
12557
12558 * target-delegates.c: Rebuild.
12559 * target.c (update_current_target): Don't inherit or default
12560 to_post_startup_inferior.
12561 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12562 TARGET_DEFAULT_IGNORE.
12563
7634da87
TT
125642014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target-delegates.c: Rebuild.
12567 * target.c (update_current_target): Don't inherit or default
12568 to_load.
12569 * target.h (struct target_ops) <to_load>: Use
12570 TARGET_DEFAULT_NORETURN.
12571
e19e919f
TT
125722014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target-delegates.c: Rebuild.
12575 * target.c (update_current_target): Don't inherit or default
12576 to_terminal_info.
12577 * target.h (struct target_ops) <to_terminal_info>: Use
12578 TARGET_DEFAULT_FUNC.
12579
c6ea8f79
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_terminal_save_ours.
12585 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12586 TARGET_DEFAULT_IGNORE.
12587
e4a733f1
TT
125882014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target-delegates.c: Rebuild.
12591 * target.c (update_current_target): Don't inherit or default
12592 to_terminal_ours.
12593 * target.h (struct target_ops) <to_terminal_ours>: Use
12594 TARGET_DEFAULT_IGNORE.
12595
74fcbef9
TT
125962014-02-19 Tom Tromey <tromey@redhat.com>
12597
12598 * target-delegates.c: Rebuild.
12599 * target.c (update_current_target): Don't inherit or default
12600 to_terminal_ours_for_output.
12601 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12602 TARGET_DEFAULT_IGNORE.
12603
ddeaacc9
TT
126042014-02-19 Tom Tromey <tromey@redhat.com>
12605
12606 * target-delegates.c: Rebuild.
12607 * target.c (update_current_target): Don't inherit or default
12608 to_terminal_inferior.
12609 * target.h (struct target_ops) <to_terminal_inferior>: Use
12610 TARGET_DEFAULT_IGNORE.
12611
0343661d
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target-delegates.c: Rebuild.
12615 * target.c (update_current_target): Don't inherit or default
12616 to_terminal_init.
12617 * target.h (struct target_ops) <to_terminal_init>: Use
12618 TARGET_DEFAULT_IGNORE.
12619
77cdffe9
TT
126202014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * target-delegates.c: Rebuild.
12623 * target.c (update_current_target): Don't inherit or default
12624 to_can_accel_watchpoint_condition.
12625 * target.h (struct target_ops)
12626 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12627
d03655e4
TT
126282014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * target-delegates.c: Rebuild.
12631 * target.c (update_current_target): Don't inherit or default
12632 to_region_ok_for_hw_watchpoint.
12633 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12634 Use TARGET_DEFAULT_FUNC.
12635
65f160a9
TT
126362014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target-delegates.c: Rebuild.
12639 * target.c (update_current_target): Don't inherit or default
12640 to_watchpoint_addr_within_range.
12641 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12642 Use TARGET_DEFAULT_FUNC.
12643
61dd109f
TT
126442014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target-delegates.c: Rebuild.
12647 * target.c (update_current_target): Don't inherit or default
12648 to_remove_watchpoint.
12649 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12650 TARGET_DEFAULT_NORETURN.
12651
016facd4
TT
126522014-02-19 Tom Tromey <tromey@redhat.com>
12653
12654 * target-delegates.c: Rebuild.
12655 * target.c (update_current_target): Don't inherit or default
12656 to_insert_watchpoint.
12657 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12658 TARGET_DEFAULT_RETURN.
12659
418dabac
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target-delegates.c: Rebuild.
12663 * target.c (update_current_target): Don't inherit or default
12664 to_remove_hw_breakpoint.
12665 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12666 TARGET_DEFAULT_RETURN.
12667
61b371f9
TT
126682014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target-delegates.c: Rebuild.
12671 * target.c (update_current_target): Don't inherit or default
12672 to_insert_hw_breakpoint.
12673 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12674 TARGET_DEFAULT_RETURN.
12675
52b51d06
TT
126762014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target-delegates.c: Rebuild.
12679 * target.c (update_current_target): Don't inherit or default
12680 to_can_use_hw_breakpoint.
12681 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12682 TARGET_DEFAULT_RETURN.
12683
f86e59b2
TT
126842014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target-delegates.c: Rebuild.
12687 * target.c (update_current_target): Don't inherit or default
12688 to_files_info.
12689 * target.h (struct target_ops) <to_files_info>: Use
12690 TARGET_DEFAULT_IGNORE.
12691
6c628163
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target-delegates.c: Rebuild.
12695 * target.c (update_current_target): Don't inherit or default
12696 to_store.
12697 * target.h (struct target_ops) <to_store>: Use
12698 TARGET_DEFAULT_NORETURN.
12699
bebd3233
TT
127002014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target-delegates.c: Rebuild.
12703 * target.c (update_current_target): Don't inherit or default
12704 to_post_attach.
12705 * target.h (struct target_ops) <to_post_attach>: Use
12706 TARGET_DEFAULT_IGNORE.
12707
a53f3625
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target-delegates.c: Rebuild.
12711 * target.c (update_current_target): Don't inherit or default
12712 to_rcmd.
12713 (default_rcmd): New function.
12714 (do_monitor_command): Unconditionally delegate.
12715 * target.h (struct target_ops) <to_rmcd>: Use
12716 TARGET_DEFAULT_FUNC.
12717
e9a29200
TT
127182014-02-19 Tom Tromey <tromey@redhat.com>
12719
12720 * target-delegates.c: Rebuild.
12721 * target.c (init_dummy_target): Don't initialize to_attach.
12722 (target_attach): Unconditionally delegate.
12723 * target.h (struct target_ops) <to_attach>: Use
12724 TARGET_DEFAULT_FUNC.
12725
09da0d0a
TT
127262014-02-19 Tom Tromey <tromey@redhat.com>
12727
12728 * target-delegates.c: Rebuild.
12729 * target.c (target_detach): Unconditionally delegate.
12730 (init_dummy_target): Don't initialize to_detach.
12731 * target.h (struct target_ops) <to_detach>: Use
12732 TARGET_DEFAULT_IGNORE.
12733
5436ff03
TT
127342014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12737 Add argument.
12738 (target_augmented_libraries_svr4_read): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12741 argument.
12742
f0d960ea
TT
127432014-02-19 Tom Tromey <tromey@redhat.com>
12744
12745 * target.h (struct target_ops) <to_call_history_range>: Add
12746 argument.
12747 * target.c (target_call_history_range): Add argument.
12748 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12749 argument.
12750 (record_btrace_call_history_from): Update.
12751
ec0aea04
TT
127522014-02-19 Tom Tromey <tromey@redhat.com>
12753
12754 * target.h (struct target_ops) <to_call_history_from>: Add
12755 argument.
12756 * target.c (target_call_history_from): Add argument.
12757 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12758 argument.
12759
5df2fcba
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops) <to_call_history>: Add argument.
12763 * target.c (target_call_history): Add argument.
12764 * record-btrace.c (record_btrace_call_history): Add 'self'
12765 argument.
12766
4e99c6b7
TT
127672014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops) <to_insn_history_range>: Add
12770 argument.
12771 * target.c (target_insn_history_range): Add argument.
12772 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12773 argument.
12774 (record_btrace_insn_history_from): Update.
12775
9abc3ff3
TT
127762014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * target.h (struct target_ops) <to_insn_history_from>: Add
12779 argument.
12780 * target.c (target_insn_history_from): Add argument.
12781 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12782 argument.
12783
7a6c5609
TT
127842014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target.h (struct target_ops) <to_insn_history>: Add argument.
12787 * target.c (target_insn_history): Add argument.
12788 * record-btrace.c (record_btrace_insn_history): Add 'self'
12789 argument.
12790
606183ac
TT
127912014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * target.h (struct target_ops) <to_goto_record>: Add argument.
12794 * target.c (target_goto_record): Add argument.
12795 * record-full.c (record_full_goto): Add 'self' argument.
12796 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12797
307a1b91
TT
127982014-02-19 Tom Tromey <tromey@redhat.com>
12799
12800 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12801 * target.c (target_goto_record_end): Add argument.
12802 * record-full.c (record_full_goto_end): Add 'self' argument.
12803 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12804
08475817
TT
128052014-02-19 Tom Tromey <tromey@redhat.com>
12806
12807 * target.h (struct target_ops) <to_goto_record_begin>: Add
12808 argument.
12809 * target.c (target_goto_record_begin): Add argument.
12810 * record-full.c (record_full_goto_begin): Add 'self' argument.
12811 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12812 argument.
12813
1c63c994
TT
128142014-02-19 Tom Tromey <tromey@redhat.com>
12815
12816 * target.h (struct target_ops) <to_record_is_replaying>: Add
12817 argument.
12818 * target.c (target_record_is_replaying): Add argument.
12819 * record-full.c (record_full_is_replaying): Add 'self' argument.
12820 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12821 argument.
12822 (record_btrace_xfer_partial, record_btrace_store_registers)
12823 (record_btrace_prepare_to_store, record_btrace_resume)
12824 (record_btrace_wait, record_btrace_decr_pc_after_break)
12825 (record_btrace_find_new_threads, record_btrace_thread_alive):
12826 Update.
12827
d1b55219
TT
128282014-02-19 Tom Tromey <tromey@redhat.com>
12829
12830 * target.h (struct target_ops) <to_delete_record>: Add argument.
12831 * target.c (target_delete_record): Add argument.
12832 * record-full.c (record_full_delete): Add 'self' argument.
12833
1390f529
TT
128342014-02-19 Tom Tromey <tromey@redhat.com>
12835
12836 * target.h (struct target_ops) <to_save_record>: Add argument.
12837 * target.c (target_save_record): Add argument.
12838 * record-full.c (record_full_save): Add 'self' argument.
12839 (record_full_save): Add 'self' argument.
12840
630d6a4a
TT
128412014-02-19 Tom Tromey <tromey@redhat.com>
12842
12843 * target.h (struct target_ops) <to_info_record>: Add argument.
12844 * target.c (target_info_record): Add argument.
12845 * record.c (info_record_command): Add argument.
12846 * record-full.c (record_full_info): Add 'self' argument.
12847 * record-btrace.c (record_btrace_info): Add 'self' argument.
12848
c6cd7c02
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12852 * target.c (target_stop_recording): Add argument.
12853 * record.c (record_stop): Add argument.
12854 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12855 argument.
12856
39c49f83
TT
128572014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12860 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12861 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12862 argument.
12863 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12864 (_initialize_amd64_linux_nat): Use it.
12865 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12866 (_initialize_i386_linux_nat): Use it.
12867
1777056d
TT
128682014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12871 * target.c (target_teardown_btrace): Add argument.
12872 * remote.c (remote_teardown_btrace): Add 'self' argument.
12873 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12874 argument.
12875 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12876 argument.
12877
25e95349
TT
128782014-02-19 Tom Tromey <tromey@redhat.com>
12879
12880 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12881 * target.c (target_disable_btrace): Add argument.
12882 * remote.c (remote_disable_btrace): Add 'self' argument.
12883 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12884 argument.
12885 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12886 argument.
12887
e3c49f88
TT
128882014-02-19 Tom Tromey <tromey@redhat.com>
12889
12890 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12891 * target.c (target_enable_btrace): Add argument.
12892 * remote.c (remote_enable_btrace): Add 'self' argument.
12893 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12894 argument.
12895 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12896 argument.
12897
fe38f897
TT
128982014-02-19 Tom Tromey <tromey@redhat.com>
12899
12900 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12901 (target_can_use_agent): Add argument.
12902 * target.c (update_current_target): Update.
12903 * remote.c (remote_can_use_agent): Add 'self' argument.
12904 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12905
2c152180
TT
129062014-02-19 Tom Tromey <tromey@redhat.com>
12907
12908 * target.h (struct target_ops) <to_use_agent>: Add argument.
12909 (target_use_agent): Add argument.
12910 * target.c (update_current_target): Update.
12911 * remote.c (remote_use_agent): Add 'self' argument.
12912 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12913
a893e81f
TT
129142014-02-19 Tom Tromey <tromey@redhat.com>
12915
12916 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12917 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12918 (target_traceframe_info): Add argument.
12919 * target.c (update_current_target): Update.
12920 * remote.c (remote_traceframe_info): Add 'self' argument.
12921 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12922
c686c57f
TT
129232014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (target_static_tracepoint_markers_by_strid): Add
12926 argument.
12927 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12928 'self' argument.
12929 * target.c (update_current_target): Update.
12930 * remote.c (struct target_ops)
12931 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12932 * linux-nat.c (struct target_ops)
12933 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12934
61fc905d
TT
129352014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12938 Add argument.
12939 (target_static_tracepoint_marker_at): Add argument.
12940 * target.c (update_current_target): Update.
12941 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12942 argument.
12943
c378d69d
TT
129442014-02-19 Tom Tromey <tromey@redhat.com>
12945
12946 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12947 (target_set_permissions): Add argument.
12948 * target.c (update_current_target): Update.
12949 * remote.c (remote_set_permissions): Add 'self' argument.
12950 (remote_start_remote): Update.
12951
bd7ae0f5
TT
129522014-02-19 Tom Tromey <tromey@redhat.com>
12953
12954 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12955 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12956 (target_get_tib_address): Add argument.
12957 * target.c (update_current_target): Update.
12958 * remote.c (remote_get_tib_address): Add 'self' argument.
12959
d9e68a2c
TT
129602014-02-19 Tom Tromey <tromey@redhat.com>
12961
12962 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12963 (target_set_trace_notes): Add argument.
12964 * target.c (update_current_target): Update.
12965 * remote.c (remote_set_trace_notes): Add 'self' argument.
12966
4da384be
TT
129672014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12970 argument.
12971 (target_set_trace_buffer_size): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12974
736d5b1f
TT
129752014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12978 argument.
12979 (target_set_circular_trace_buffer): Add argument.
12980 * target.c (update_current_target): Update.
12981 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12982 argument.
12983
37b25738
TT
129842014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12987 argument.
12988 (target_set_disconnected_tracing): Add argument.
12989 * target.c (update_current_target): Update.
12990 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12991
0e67620a
TT
129922014-02-19 Tom Tromey <tromey@redhat.com>
12993
12994 * target.h (struct target_ops)
12995 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12996 (target_get_min_fast_tracepoint_insn_len): Add argument.
12997 * target.c (update_current_target): Update.
12998 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12999 argument.
13000
88ee6f45
TT
130012014-02-19 Tom Tromey <tromey@redhat.com>
13002
13003 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13004 argument.
13005 (target_get_raw_trace_data): Add argument.
13006 * target.c (update_current_target): Update.
13007 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13008
181e3713
TT
130092014-02-19 Tom Tromey <tromey@redhat.com>
13010
13011 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13012 Add argument.
13013 (target_upload_trace_state_variables): Add argument.
13014 * target.c (update_current_target): Update.
13015 * remote.c (remote_upload_trace_state_variables): Add 'self'
13016 argument.
13017 (remote_start_remote): Update.
13018
ab6617cc
TT
130192014-02-19 Tom Tromey <tromey@redhat.com>
13020
13021 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13022 argument.
13023 (target_upload_tracepoints): Add argument.
13024 * target.c (update_current_target): Update.
13025 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13026 (remote_start_remote): Update.
13027
dc3decaf
TT
130282014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13031 (target_save_trace_data): Add argument.
13032 * target.c (update_current_target): Update.
13033 * remote.c (remote_save_trace_data): Add 'self' argument.
13034
4011015b
TT
130352014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13038 argument.
13039 * target.h (struct target_ops)
13040 <to_get_trace_state_variable_value>: Add argument.
13041 (target_get_trace_state_variable_value): Add argument.
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13044 argument.
13045 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13046
bd4c6793
TT
130472014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13050 * target.h (struct target_ops) <to_trace_find>: Add argument.
13051 (target_trace_find): Add argument.
13052 * target.c (update_current_target): Update.
13053 * remote.c (remote_trace_find): Add 'self' argument.
13054 * ctf.c (ctf_trace_find): Add 'self' argument.
13055
74499f1b
TT
130562014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13059 (target_trace_stop): Add argument.
13060 * target.c (update_current_target): Update.
13061 * remote.c (remote_trace_stop): Add 'self' argument.
13062
db90e85c
TT
130632014-02-19 Tom Tromey <tromey@redhat.com>
13064
13065 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13066 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13067 argument.
13068 (target_get_tracepoint_status): Add argument.
13069 * target.c (update_current_target): Update.
13070 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13071
8bd200f1
TT
130722014-02-19 Tom Tromey <tromey@redhat.com>
13073
13074 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13075 * target.h (struct target_ops) <to_get_trace_status>: Add
13076 argument.
13077 (target_get_trace_status): Add argument.
13078 * target.c (update_current_target): Update.
13079 * remote.c (remote_get_trace_status): Add 'self' argument.
13080 (remote_start_remote, remote_can_download_tracepoint): Update.
13081 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13082
e2d1aae3
TT
130832014-02-19 Tom Tromey <tromey@redhat.com>
13084
13085 * target.h (struct target_ops) <to_trace_start>: Add argument.
13086 (target_trace_start): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_trace_start): Add 'self' argument.
13089
583f9a86
TT
130902014-02-19 Tom Tromey <tromey@redhat.com>
13091
13092 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13093 Add argument.
13094 (target_trace_set_readonly_regions): Add argument.
13095 * target.c (update_current_target): Update.
13096 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13097 argument.
13098
780b049c
TT
130992014-02-19 Tom Tromey <tromey@redhat.com>
13100
13101 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13102 argument.
13103 (target_disable_tracepoint): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13106
46670d57
TT
131072014-02-19 Tom Tromey <tromey@redhat.com>
13108
13109 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13110 argument.
13111 (target_enable_tracepoint): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13114
559d2b81
TT
131152014-02-19 Tom Tromey <tromey@redhat.com>
13116
13117 * target.h (struct target_ops) <to_download_trace_state_variable>:
13118 Add argument.
13119 (target_download_trace_state_variable): Add argument.
13120 * target.c (update_current_target): Update.
13121 * remote.c (remote_download_trace_state_variable): Add 'self'
13122 argument.
13123
a52a8357
TT
131242014-02-19 Tom Tromey <tromey@redhat.com>
13125
13126 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13127 argument.
13128 (target_can_download_tracepoint): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13131
548f7808
TT
131322014-02-19 Tom Tromey <tromey@redhat.com>
13133
13134 * target.h (struct target_ops) <to_download_tracepoint>: Add
13135 argument.
13136 (target_download_tracepoint): Add argument.
13137 * target.c (update_current_target): Update.
13138 * remote.c (remote_download_tracepoint): Add 'self' argument.
13139
ecae04e1
TT
131402014-02-19 Tom Tromey <tromey@redhat.com>
13141
13142 * target.h (struct target_ops) <to_trace_init>: Add argument.
13143 (target_trace_init): Add argument.
13144 * target.c (update_current_target): Update.
13145 * remote.c (remote_trace_init): Add 'self' argument.
13146
fab5aa7c
TT
131472014-02-19 Tom Tromey <tromey@redhat.com>
13148
13149 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13150 * target.c (target_fileio_readlink): Add argument.
13151 * remote.c (remote_hostio_readlink): Add 'self' argument.
13152 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13153
dbbca37d
TT
131542014-02-19 Tom Tromey <tromey@redhat.com>
13155
13156 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13157 * target.c (target_fileio_unlink): Add argument.
13158 * remote.c (remote_hostio_unlink): Add 'self' argument.
13159 (remote_file_delete): Update.
13160 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13161
df39ea25
TT
131622014-02-19 Tom Tromey <tromey@redhat.com>
13163
13164 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13165 * target.c (target_fileio_close): Add argument.
13166 * remote.c (remote_hostio_close): Add 'self' argument.
13167 (remote_hostio_close_cleanup): Update.
13168 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13169 Update.
13170 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13171
a3be983c
TT
131722014-02-19 Tom Tromey <tromey@redhat.com>
13173
13174 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13175 * target.c (target_fileio_pread): Add argument.
13176 * remote.c (remote_hostio_pread): Add 'self' argument.
13177 (remote_bfd_iovec_pread, remote_file_get): Update.
13178 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13179
0d866f62
TT
131802014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13183 * target.c (target_fileio_pwrite): Add argument.
13184 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13185 (remote_file_put): Update.
13186 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13187
cd897586
TT
131882014-02-19 Tom Tromey <tromey@redhat.com>
13189
13190 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13191 * target.c (target_fileio_open): Add argument.
13192 * remote.c (remote_hostio_open): Add 'self' argument.
13193 (remote_bfd_iovec_open): Add 'self' argument.
13194 (remote_file_put): Add 'self' argument.
13195 (remote_file_get): Add 'self' argument.
13196 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13197
78eff0ec
TT
131982014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13201 Add argument.
13202 (target_can_run_breakpoint_commands): Add argument.
13203 * target.c (update_current_target): Update.
13204 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13205 argument.
13206 (remote_insert_breakpoint): Add 'self' argument.
13207 (remote_insert_hw_breakpoint): Add 'self' argument.
13208 (remote_can_run_breakpoint_commands): Add 'self' argument.
13209
efcc2da7
TT
132102014-02-19 Tom Tromey <tromey@redhat.com>
13211
13212 * target.h (struct target_ops)
13213 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13214 (target_supports_evaluation_of_breakpoint_conditions): Add
13215 argument.
13216 * target.c (update_current_target): Update.
13217 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13218 argument.
13219 (remote_insert_breakpoint): Add 'self' argument.
13220 (remote_insert_hw_breakpoint): Add 'self' argument.
13221 (remote_supports_cond_breakpoints): Add 'self' argument.
13222
6de37a3a
TT
132232014-02-19 Tom Tromey <tromey@redhat.com>
13224
13225 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13226 argument.
13227 (target_supports_string_tracing): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13230
2bfc0540
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops)
13234 <to_supports_disable_randomization>: Add argument.
13235 * target.c (find_default_supports_disable_randomization): Add
13236 argument.
13237 (target_supports_disable_randomization): Add argument.
13238 (find_default_supports_disable_randomization): Add 'self'
13239 argument.
13240 * remote.c (extended_remote_supports_disable_randomization): Add
13241 'self' argument.
13242 (remote_supports_disable_randomization): Add 'self' argument.
13243 (extended_remote_create_inferior): Update.
13244 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13245 'self' argument.
13246
7d178d6a
TT
132472014-02-19 Tom Tromey <tromey@redhat.com>
13248
13249 * target.h (struct target_ops)
13250 <to_supports_enable_disable_tracepoint>: Add argument.
13251 (target_supports_enable_disable_tracepoint): Add argument.
13252 * target.c (update_current_target): Update.
13253 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13254 argument.
13255
86ce2668
TT
132562014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 * target.h (struct target_ops) <to_supports_multi_process>: Add
13259 argument.
13260 (target_supports_multi_process): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_supports_multi_process): Add 'self' argument.
13263 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13264 argument.
13265 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13266 argument.
13267
4c612759
TT
132682014-02-19 Tom Tromey <tromey@redhat.com>
13269
13270 * target.h (struct target_ops) <to_execution_direction>: Add
13271 argument.
13272 (target_execution_direction): Add argument.
13273 * target.c (default_execution_direction): Add 'self' argument.
13274 * record-full.c (record_full_execution_direction): Add 'self'
13275 argument.
13276
19db3e69
TT
132772014-02-19 Tom Tromey <tromey@redhat.com>
13278
13279 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13280 argument.
13281 (target_can_execute_reverse): Add argument.
13282 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13283 * record-full.c (record_full_can_execute_reverse): Add 'self'
13284 argument.
13285 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13286 argument.
13287
1e6b91a4
TT
132882014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13291 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13292 argument.
13293 (target_get_ada_task_ptid): Add argument.
13294 * target.c (update_current_target): Update.
13295 (default_get_ada_task_ptid): Add 'self' argument.
13296 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13297 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13298 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13299 argument.
13300 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13301 argument.
13302 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13303 argument.
13304 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13305 argument.
13306 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13307 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13308 argument.
13309
3c80fb48
TT
133102014-02-19 Tom Tromey <tromey@redhat.com>
13311
13312 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13313 (target_goto_bookmark): Add argument.
13314 * target.c (dummy_goto_bookmark): Add 'self' argument.
13315 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13316
dd0e2830
TT
133172014-02-19 Tom Tromey <tromey@redhat.com>
13318
13319 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13320 (target_get_bookmark): Add argument.
13321 * target.c (dummy_get_bookmark): Add 'self' argument.
13322 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13323
fc6691b2
TT
133242014-02-19 Tom Tromey <tromey@redhat.com>
13325
13326 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13327 argument.
13328 (target_make_corefile_notes): Add argument.
13329 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13330 * procfs.c (procfs_make_note_section): Add 'self' argument.
13331 (procfs_make_note_section): Add 'self' argument.
13332 (procfs_make_note_section): Add 'self' argument.
13333 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13334 argument.
13335 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13336 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13337 * exec.c (exec_make_note_section): Add 'self' argument.
13338 (exec_make_note_section): Add 'self' argument.
13339
2e73927c
TT
133402014-02-19 Tom Tromey <tromey@redhat.com>
13341
13342 * target.h (struct target_ops) <to_find_memory_regions>: Add
13343 argument.
13344 (target_find_memory_regions): Add argument.
13345 * target.c (dummy_find_memory_regions): Add 'self' argument.
13346 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13347 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13348 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13349 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13350 * exec. (exec_do_find_memory_regions): New global.
13351 (exec_set_find_memory_regions): Rewrite.
13352 (exec_find_memory_regions): New function.
13353 (init_exec_ops): Use exec_find_memory_regions.
13354
2a9a2795
TT
133552014-02-19 Tom Tromey <tromey@redhat.com>
13356
13357 * target.h (struct target_ops) <to_supports_non_stop>: Add
13358 argument.
13359 * target.c (find_default_supports_non_stop): Add argument.
13360 (target_supports_non_stop): Add argument.
13361 (find_default_supports_non_stop): Add 'self' argument.
13362 * remote.c (remote_supports_non_stop): Add 'self' argument.
13363 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13364
4ab76ea3
TT
133652014-02-19 Tom Tromey <tromey@redhat.com>
13366
13367 * target.h (struct target_ops) <to_log_command>: Add argument.
13368 (target_log_command): Add argument.
13369 * serial.h (serial_log_command): Add 'self' argument.
13370 * serial.c (serial_log_command): Add 'self' argument.
13371
8dd27370
TT
133722014-02-19 Tom Tromey <tromey@redhat.com>
13373
13374 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13375 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13376 argument.
13377 (target_pid_to_exec_file): Add argument.
13378 * target.c (debug_to_pid_to_exec_file): Add argument.
13379 (update_current_target): Update.
13380 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13381 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13382 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13383 (linux_handle_extended_wait): Update.
13384 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13385 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13386 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13387 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13388
1aac633b
TT
133892014-02-19 Tom Tromey <tromey@redhat.com>
13390
13391 * target.h (struct target_ops) <to_rcmd>: Add argument.
13392 (target_rcmd): Add argument.
13393 * target.c (debug_to_rcmd): Add argument.
13394 (update_current_target, do_monitor_command): Update.
13395 * remote.c (remote_rcmd): Add 'self' argument.
13396 * monitor.c (monitor_rcmd): Add 'self' argument.
13397
1eab8a48
TT
133982014-02-19 Tom Tromey <tromey@redhat.com>
13399
13400 * windows-nat.c (windows_stop): Add 'self' argument.
13401 * target.h (struct target_ops) <to_stop>: Add argument.
13402 * target.c (target_stop): Add argument.
13403 (debug_to_stop): Add argument.
13404 (update_current_target): Update.
13405 * remote.c (remote_stop): Add 'self' argument.
13406 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13407 (gdbsim_cntrl_c): Update.
13408 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13409 * procfs.c (procfs_stop): Add 'self' argument.
13410 * nto-procfs.c (procfs_stop): Add 'self' argument.
13411 * monitor.c (monitor_stop): Add 'self' argument.
13412 (monitor_open): Update.
13413 * linux-nat.c (linux_nat_stop): Add argument.
13414 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13415 * gnu-nat.c (gnu_stop): Add 'self' argument.
13416 * darwin-nat.c (darwin_stop): Add 'self' argument.
13417
503a628d
TT
134182014-02-19 Tom Tromey <tromey@redhat.com>
13419
13420 * target.h (struct target_ops) <to_thread_name>: Add argument.
13421 * target.c (target_thread_name): Add argument.
13422 (update_current_target): Update.
13423 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13424
c15906d8
TT
134252014-02-19 Tom Tromey <tromey@redhat.com>
13426
13427 * target.h (struct target_ops) <to_extra_thread_info>: Add
13428 argument.
13429 (target_extra_thread_info): Add argument.
13430 * target.c (update_current_target): Update.
13431 * remote.c (remote_threads_extra_info): Add 'self' argument.
13432 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13433 argument.
13434 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13435 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13436 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13437 argument.
13438 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13439 argument.
13440 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13441 argument.
13442 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13443 argument.
13444
daf5e9b6
TT
134452014-02-19 Tom Tromey <tromey@redhat.com>
13446
13447 * target.h (struct target_ops) <to_program_signals>: Add argument.
13448 * target.c (target_program_signals): Add argument.
13449 * remote.c (remote_program_signals): Add 'self' argument.
13450
94bedb42
TT
134512014-02-19 Tom Tromey <tromey@redhat.com>
13452
13453 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13454 * target.c (target_pass_signals): Add argument.
13455 * remote.c (remote_pass_signals): Add 'self' argument.
13456 (remote_start_remote): Update.
13457 * procfs.c (procfs_pass_signals): Add 'self' argument.
13458 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13459 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13460 (linux_nat_create_inferior, linux_nat_attach): Update.
13461
da82bd6b
TT
134622014-02-19 Tom Tromey <tromey@redhat.com>
13463
13464 * windows-nat.c (windows_can_run): Add 'self' argument.
13465 * target.h (struct target_ops) <to_can_run>: Add argument.
13466 (target_can_run): Add argument.
13467 * target.c (debug_to_can_run): Add argument.
13468 (update_current_target): Update.
13469 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13470 * inf-child.c (inf_child_can_run): Add 'self' argument.
13471 * go32-nat.c (go32_can_run): Add 'self' argument.
13472
d796e1d6
TT
134732014-02-19 Tom Tromey <tromey@redhat.com>
13474
13475 * target.h (struct target_ops) <to_has_exited>: Add argument.
13476 (target_has_exited): Add argument.
13477 * target.c (debug_to_has_exited): Add argument.
13478 (update_current_target): Update.
13479
ff214e67
TT
134802014-02-19 Tom Tromey <tromey@redhat.com>
13481
13482 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13483 argument.
13484 (target_set_syscall_catchpoint): Add argument.
13485 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13486 argument.
13487 * target.c (update_current_target): Update.
13488
758e29d2
TT
134892014-02-19 Tom Tromey <tromey@redhat.com>
13490
13491 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13492 argument.
13493 (target_remove_exec_catchpoint): Add argument.
13494 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13495 (update_current_target): Update.
13496 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13497 argument.
13498
ba025e51
TT
134992014-02-19 Tom Tromey <tromey@redhat.com>
13500
13501 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13502 argument.
13503 (target_insert_exec_catchpoint): Add argument.
13504 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13505 (update_current_target): Update.
13506 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13507 argument.
13508
e98cf0cd
TT
135092014-02-19 Tom Tromey <tromey@redhat.com>
13510
13511 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13512 argument.
13513 (target_remove_vfork_catchpoint): Add argument.
13514 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13515 (update_current_target): Update.
13516 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13517 argument.
13518
3ecc7da0
TT
135192014-02-19 Tom Tromey <tromey@redhat.com>
13520
13521 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13522 argument.
13523 (target_insert_vfork_catchpoint): Add argument.
13524 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13525 (update_current_target): Update.
13526 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13527 argument.
13528
973fc227
TT
135292014-02-19 Tom Tromey <tromey@redhat.com>
13530
13531 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13532 argument.
13533 (target_remove_fork_catchpoint): Add argument.
13534 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13535 (update_current_target): Update.
13536 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13537 argument.
13538
a863b201
TT
135392014-02-19 Tom Tromey <tromey@redhat.com>
13540
13541 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13542 argument.
13543 (target_insert_fork_catchpoint): Add argument.
13544 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13545 (update_current_target): Update.
13546 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13547 argument.
13548
2e97a79e
TT
135492014-02-19 Tom Tromey <tromey@redhat.com>
13550
13551 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13552 argument.
13553 (target_post_startup_inferior): Add argument.
13554 * target.c (debug_to_post_startup_inferior): Add argument.
13555 (update_current_target): Update.
13556 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13557 argument.
13558 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13559 argument.
13560 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13561 argument.
13562 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13563 argument.
13564 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13565 'self' argument.
13566 (super_post_startup_inferior): Likewise.
13567 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13568 'self' argument.
13569 (super_post_startup_inferior): Likewise.
13570 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13571 Add 'self' argument.
13572 (super_post_startup_inferior): Likewise.
13573
71a9f134
TT
135742014-02-19 Tom Tromey <tromey@redhat.com>
13575
13576 * target.h (struct target_ops) <to_load>: Add argument.
13577 * target.c (target_load): Add argument.
13578 (debug_to_load): Add argument.
13579 (update_current_target): Update.
13580 * remote.c (remote_load): Add 'self' argument.
13581 * remote-sim.c (gdbsim_load): Add 'self' argument.
13582 * remote-mips.c (mips_load): Add 'self' argument.
13583 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13584 * monitor.c (monitor_load): Add 'self' argument.
13585 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13586
0a4f40a2
TT
135872014-02-19 Tom Tromey <tromey@redhat.com>
13588
13589 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13590 (target_terminal_info): Add argument.
13591 * target.c (debug_to_terminal_info): Add argument.
13592 (default_terminal_info): Likewise.
13593 * inflow.c (child_terminal_info): Add 'self' argument.
13594 * inferior.h (child_terminal_info): Add 'self' argument.
13595 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13596
ae3bd431
TT
135972014-02-19 Tom Tromey <tromey@redhat.com>
13598
13599 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13600 argument.
13601 (target_terminal_save_ours): Add argument.
13602 * target.c (debug_to_terminal_save_ours): Add argument.
13603 (update_current_target): Update.
13604 * inflow.c (terminal_save_ours): Add 'self' argument.
13605 * inferior.h (terminal_save_ours): Add 'self' argument.
13606
e3594fd1
TT
136072014-02-19 Tom Tromey <tromey@redhat.com>
13608
13609 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13610 (target_terminal_ours): Add argument.
13611 * target.c (debug_to_terminal_ours): Add argument.
13612 (update_current_target): Update.
13613 * remote.c (remote_terminal_ours): Add 'self' argument.
13614 (remote_close): Update.
13615 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13616 * inflow.c (terminal_ours): Add 'self' argument.
13617 * inferior.h (terminal_ours): Add 'self' argument.
13618 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13619
2e1e1a19
TT
136202014-02-19 Pedro Alves <palves@redhat.com>
13621 Tom Tromey <tromey@redhat.com>
13622
13623 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13624 argument.
13625 (target_terminal_ours_for_output): Add argument.
13626 * target.c (debug_to_terminal_ours_for_output): Add argument.
13627 (update_current_target): Update.
13628 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13629 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13630 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13631
d2f640d4
TT
136322014-02-19 Tom Tromey <tromey@redhat.com>
13633
13634 * target.h (struct target_ops) <to_terminal_inferior>: Add
13635 argument.
13636 * target.c (target_terminal_inferior): Add argument.
13637 (update_current_target): Update.
13638 * remote.c (remote_terminal_inferior): Add 'self' argument.
13639 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13640 * inflow.c (terminal_inferior): Add 'self' argument.
13641 * inferior.h (terminal_inferior): Add 'self' argument.
13642 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13643 (go32_terminal_inferior): Add 'self' argument.
13644
c42bf286
TT
136452014-02-19 Tom Tromey <tromey@redhat.com>
13646
13647 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13648 (target_terminal_init): Add argument.
13649 * target.c (debug_to_terminal_init): Add argument.
13650 (update_current_target): Update.
13651 * inflow.c (terminal_init_inferior): Add 'self' argument.
13652 * inferior.h (terminal_init_inferior): Add 'self' argument.
13653 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13654 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13655
c3a5ff89
TT
136562014-02-19 Tom Tromey <tromey@redhat.com>
13657
13658 * target.h (struct target_ops)
13659 <to_can_accel_watchpoint_condition>: Add argument.
13660 (target_can_accel_watchpoint_condition): Add argument.
13661 * target.c (debug_to_can_accel_watchpoint_condition): Add
13662 argument.
13663 (update_current_target): Update.
13664 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13665 'self' argument.
13666
31568a15
TT
136672014-02-19 Tom Tromey <tromey@redhat.com>
13668
13669 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13670 Add argument.
13671 (target_region_ok_for_hw_watchpoint): Add argument.
13672 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13673 (default_region_ok_for_hw_watchpoint): Add argument.
13674 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13675 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13676 argument.
13677 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13678 argument.
13679 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13680 argument.
13681 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13682 'self' argument.
13683 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13684 'self' argument.
13685 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13686 'self' argument.
13687 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13688 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13689 'self' argument.
13690 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13691 Add 'self' argument.
13692
7bb99c53
TT
136932014-02-19 Tom Tromey <tromey@redhat.com>
13694
13695 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13696 argument.
13697 (target_insert_watchpoint): Add argument.
13698 * target.c (debug_to_insert_watchpoint): Add argument.
13699 (update_current_target): Update.
13700 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13701 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13702 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13703 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13704 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13705 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13706 argument.
13707 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13708 (procfs_insert_hw_watchpoint): Add 'self' argument.
13709 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13710 argument.
13711 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13712 argument.
13713 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13714 argument.
13715 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13716 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13717 argument.
13718 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13719 'self' argument.
13720
11b5219a
TT
137212014-02-19 Tom Tromey <tromey@redhat.com>
13722
13723 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13724 argument.
13725 (target_remove_watchpoint): Add argument.
13726 * target.c (debug_to_remove_watchpoint): Add argument.
13727 (update_current_target): Update.
13728 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13729 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13730 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13731 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13732 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13733 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13734 argument.
13735 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13736 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13737 argument.
13738 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13739 argument.
13740 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13741 argument.
13742 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13743 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13744 argument.
13745 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13746 'self' argument.
13747
a64dc96c
TT
137482014-02-19 Tom Tromey <tromey@redhat.com>
13749
13750 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13751 argument.
13752 (target_remove_hw_breakpoint): Add argument.
13753 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13754 (update_current_target): Update.
13755 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13756 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13757 argument.
13758 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13759 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13760 argument.
13761 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13762 'self' argument.
13763
23a26771
TT
137642014-02-19 Tom Tromey <tromey@redhat.com>
13765
13766 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13767 argument.
13768 (target_insert_hw_breakpoint): Add argument.
13769 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13770 (update_current_target): Update.
13771 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13772 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13773 argument.
13774 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13775 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13776 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13777 argument.
13778 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13779 'self' argument.
13780
5461485a
TT
137812014-02-19 Tom Tromey <tromey@redhat.com>
13782
13783 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13784 argument.
13785 (target_can_use_hardware_watchpoint): Add argument.
13786 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13787 (update_current_target): Update.
13788 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13789 argument.
13790 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13791 argument.
13792 * remote.c (remote_check_watch_resources): Add 'self' argument.
13793 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13794 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13795 argument.
13796 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13797 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13798 argument.
13799 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13800 argument.
13801 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13802 argument.
13803 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13804 argument.
13805 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13806 argument.
13807 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13808 argument.
13809 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13810 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13811 argument.
13812 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13813 'self' argument.
13814
f045800c
TT
138152014-02-19 Tom Tromey <tromey@redhat.com>
13816
13817 * target.h (struct target_ops) <to_post_attach>: Add argument.
13818 (target_post_attach): Add argument.
13819 * target.c (debug_to_post_attach): Add argument.
13820 (update_current_target): Update.
13821 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13822 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13823 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13824 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13825 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13826
de90e03d
TT
138272014-02-19 Tom Tromey <tromey@redhat.com>
13828
13829 * windows-nat.c (windows_close): Add 'self' argument.
13830 * tracepoint.c (tfile_close): Add 'self' argument.
13831 * target.h (struct target_ops) <to_close>: Add argument.
13832 * target.c (target_close): Add argument.
13833 (update_current_target): Update.
13834 * remote.c (remote_close): Add 'self' argument.
13835 * remote-sim.c (gdbsim_close): Add 'self' argument.
13836 * remote-mips.c (mips_close): Add 'self' argument.
13837 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13838 * record-full.c (record_full_close): Add 'self' argument.
13839 * record-btrace.c (record_btrace_close): Add 'self' argument.
13840 * monitor.h (monitor_close): Add 'self' argument.
13841 * monitor.c (monitor_close): Add 'self' argument.
13842 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13843 * linux-nat.c (linux_nat_close): Add argument.
13844 * go32-nat.c (go32_close): Add 'self' argument.
13845 * exec.c (exec_close_1): Add 'self' argument.
13846 * ctf.c (ctf_close): Add 'self' argument.
13847 * corelow.c (core_close): Add 'self' argument.
13848 (core_close_cleanup): Update.
13849 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13850 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13851
9dd130a0
TT
138522014-02-19 Tom Tromey <tromey@redhat.com>
13853
13854 * remote.c (remote_load): New function.
13855 (init_remote_ops): Use it.
13856
46917d26
TT
138572014-02-19 Tom Tromey <tromey@redhat.com>
13858
13859 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13860 argument.
13861 * common/linux-btrace.h (linux_supports_btrace): Update.
13862 * remote.c (remote_supports_btrace): Add "self" argument.
13863 * target-delegates.c: Rebuild.
13864 * target.c (target_supports_btrace): Remove.
13865 * target.h (struct target_ops) <to_supports_btrace>: Add
13866 target_ops argument.
13867 (target_supports_btrace): New define.
13868
6b84065d
TT
138692014-02-19 Tom Tromey <tromey@redhat.com>
13870
13871 * record-full.c (record_full_beneath_to_resume_ops)
13872 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13873 (record_full_beneath_to_wait)
13874 (record_full_beneath_to_store_registers_ops)
13875 (record_full_beneath_to_store_registers)
13876 (record_full_beneath_to_xfer_partial_ops)
13877 (record_full_beneath_to_xfer_partial)
13878 (record_full_beneath_to_insert_breakpoint_ops)
13879 (record_full_beneath_to_insert_breakpoint)
13880 (record_full_beneath_to_remove_breakpoint_ops)
13881 (record_full_beneath_to_remove_breakpoint)
13882 (record_full_beneath_to_stopped_by_watchpoint)
13883 (record_full_beneath_to_stopped_data_address)
13884 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13885 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13886 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13887 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13888 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13889 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13890 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13891 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13892 (record_full_resume, record_full_wait_1)
13893 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13894 (record_full_store_registers, record_full_xfer_partial)
13895 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13896 (record_full_async, record_full_core_xfer_partial): Use target
13897 delegation.
13898 * target-delegates.c: Rebuild.
13899 * target.c (current_xfer_partial): Remove.
13900 (update_current_target): Do not INHERIT or de_fault
13901 to_insert_breakpoint, to_remove_breakpoint,
13902 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13903 to_is_async_p, to_async. Do not set to_xfer_partial field.
13904 (default_xfer_partial): Simplify.
13905 (current_xfer_partial): Remove.
13906 (target_wait, target_resume): Simplify.
13907 (find_default_can_async_p, find_default_is_async_p): Update.
13908 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13909 to_xfer_partial, to_stopped_by_watchpoint,
13910 to_stopped_data_address.
13911 (target_store_registers): Simplify.
13912 (forward_target_remove_breakpoint)
13913 (forward_target_insert_breakpoint): Remove.
13914 (target_remove_breakpoint, target_insert_breakpoint)
13915 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13916 * target.h (struct target_ops) <to_resume, to_wait,
13917 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13918 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13919 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13920 markup.
13921 (forward_target_remove_breakpoint)
13922 (forward_target_insert_breakpoint): Remove.
13923 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13924 directly.
13925 (record_btrace_insert_breakpoint): Delegate directly.
13926
1101cb7b
TT
139272014-02-19 Tom Tromey <tromey@redhat.com>
13928
13929 PR build/7701:
13930 * target-delegates.c: New file.
13931 * target.c: Include target-delegates.c.
13932 (init_dummy_target): Call install_dummy_methods.
13933 (complete_target_initialization): Call install_delegators.
13934 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13935 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13936 * make-target-delegates: New file.
13937
8b06beed
TT
139382014-02-19 Tom Tromey <tromey@redhat.com>
13939
13940 * record.c (find_record_target): Use find_target_at.
13941 * target.c (find_target_at): New function.
13942 * target.h (find_target_at): Declare.
13943
6a109b6b
TT
139442014-02-19 Tom Tromey <tromey@redhat.com>
13945
13946 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13947 Add 'ops' argument.
13948 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13949 'ops' argument.
13950 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13951 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13952 'ops' argument.
13953 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13954 argument.
13955 * linux-nat.c (save_sigtrap): Update.
13956 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13957 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13958 (linux_nat_close): Update.
13959 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13960 argument.
13961 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13962 argument.
13963 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13964 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13965 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13966 (tmp_to_async): Add 'ops' argument.
13967 (record_full_stopped_by_watchpoint, record_full_async)
13968 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13969 argument.
13970 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13971 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13972 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13973 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13974 (remote_is_async_p, remote_async): Add 'ops' argument.
13975 (remote_stopped_data_address): Update.
13976 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13977 * target.c (update_current_target)
13978 (find_default_can_async_p, find_default_is_async_p): Update.
13979 (init_dummy_target): Update.
13980 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13981 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13982 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13983 (target_can_async_p, target_is_async_p, target_async)
13984 (target_stopped_by_watchpoint): Update.
13985
e095146b
YQ
139862014-02-19 Yao Qi <yao@codesourcery.com>
13987
13988 PR gdb/16220
13989 * gdbarch.sh: Remove startup_gdbarch.
13990 * gdbarch.c: Regenerated.
13991 * gdbarch.h: Likewise.
13992
bc3c6b36
KB
139932014-02-17 Kevin Buettner <kevinb@redhat.com>
13994
13995 * rl78-tdep.c (rl78_g10_register_name): New function.
13996 (rl78_return_value): Add g10 support.
13997 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13998 g10.
13999
98dc0167 140002014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
14001
14002 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14003 (SUBDIR_GUILE_SRCS): Ditto.
14004 (scm-gsmob.o): Ditto.
14005
842c05cd
YQ
140062014-02-17 Yao Qi <yao@codesourcery.com>
14007
14008 * gnu-nat.c (ILL_RPC): Declare defined function.
14009
25c0bd04
YQ
140102014-02-17 Yao Qi <yao@codesourcery.com>
14011
14012 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14013 mach_msg_type_number_t.
14014 (gnu_write_inferior): Likewise.
14015
a9a758e3
YQ
140162014-02-17 Yao Qi <yao@codesourcery.com>
14017
14018 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14019 in format string.
14020 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14021 (inf_validate_procs, inf_signal): Likewise.
14022 (S_exception_raise_request): Likewise.
14023 (do_mach_notify_dead_name): Likewise.
14024 (steal_exc_port): Likewise.
14025 (gnu_read_inferior): Change 'copy_count''s type to
14026 mach_msg_type_number_t.
14027 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14028 format string.
14029
bae8023e
TS
140302014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14031
c82f56d9
TS
14032 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14033 flag. Adjust all users; in particular...
14034 (gnu_wait): ..., don't decrement its value in here...
14035 (gnu_create_inferior): ..., and instead set the flag in here,
14036 around the startup_inferior call, and call that one with
14037 START_INFERIOR_TRAPS_EXPECTED.
14038
3398af6a
TS
14039 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14040 (ILL_RPC): ... new macro.
14041 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14042 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14043 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14044 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14045 functions with ILL_RPC macro.
14046 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14047 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14048 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14049 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14050 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14051 (S_proc_getlogin_reply, S_proc_getsid_reply)
14052 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14053 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14054 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14055 (S_proc_getnports_reply, S_proc_is_important_reply)
14056 (S_proc_get_code_reply): New stub functions, generated with
14057 ILL_RPC macro.
14058
d47642c9
TS
14059 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14060 collected the type check structures.
14061
bae8023e
TS
14062 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14063
8a55ffb0
DE
140642014-02-14 Doug Evans <dje@google.com>
14065
14066 * target.c (target_write_partial): Fix result type.
14067
c2853f3d
JM
140682014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14069
14070 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14071 the proper offsets to access fpregset_t.
14072
ac61d2db
SA
140732014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14074
14075 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14076 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14077 * h8300-tdep.c (setmachinelist): Remove global.
14078 * hppa-tdep.c (hppa_sigtramp): Remove global.
14079 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14080 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14081 * ravenscar-thread.c (update_target_observer): Remove global.
14082 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14083
9d2d0b8b
TT
140842014-02-12 Tom Tromey <tromey@redhat.com>
14085
14086 * common/rsp-low.c: Update comments.
14087 * common/rsp-low.h: Update comments.
14088
a7191e8b
TT
140892014-02-12 Tom Tromey <tromey@redhat.com>
14090
14091 * common/rsp-low.c (convert_ascii_to_int): Remove.
14092 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14093
ff0e980e
TT
140942014-02-12 Tom Tromey <tromey@redhat.com>
14095
14096 * common/rsp-low.h (unhexify): Don't declare.
14097 * common/rsp-low.c (unhexify): Remove.
14098
e9371aff
TT
140992014-02-12 Tom Tromey <tromey@redhat.com>
14100
14101 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14102 * common/rsp-low.c (convert_int_to_ascii): Remove.
14103
971dc0b8
TT
141042014-02-12 Tom Tromey <tromey@redhat.com>
14105
14106 * common/rsp-low.h (hexify): Don't declare.
14107 * common/rsp-low.c (hexify): Remove.
14108
0a822afb
TT
141092014-02-12 Tom Tromey <tromey@redhat.com>
14110
14111 * common/rsp-low.c (hexify): Never take strlen of argument.
14112
9f1b45b0
TT
141132014-02-12 Tom Tromey <tromey@redhat.com>
14114
14115 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14116 * remote.c (extended_remote_run, remote_rcmd)
14117 (remote_download_trace_state_variable, remote_save_trace_data)
14118 (remote_set_trace_notes): Update.
14119 * tracepoint.c (encode_source_string, tfile_write_status)
14120 (tfile_write_uploaded_tsv): Update.
14121
9c3d6531
TT
141222014-02-12 Tom Tromey <tromey@redhat.com>
14123
14124 * tracepoint.c: Include rsp-low.h.
14125 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14126 * remote.c: Include rsp-low.h.
14127 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14128 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14129 (remote_unescape_input): Move to common/rsp-low.c.
14130 * common/rsp-low.h: New file.
14131 * common/rsp-low.c: New file.
14132 * Makefile.in (SFILES): Add common/rsp-low.c.
14133 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14134 (COMMON_OBS): Add rsp-low.o.
14135 (rsp-low.o): New target.
14136
01fd3ea5
TT
141372014-02-12 Tom Tromey <tromey@redhat.com>
14138
14139 * utils.h: Include print-utils.h.
14140 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14141 (int_string, core_addr_to_string, core_addr_to_string_nz)
14142 (hex_string, hex_string_custom): Don't declare.
14143 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14144 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14145 (hex_string_custom, int_string, core_addr_to_string)
14146 (core_addr_to_string_nz, host_address_to_string): Move to
14147 common/print-utils.c.
14148 * common/print-utils.h: New file.
14149 * common/print-utils.c: New file
14150 * Makefile.in (SFILES): Add common/print-utils.c.
14151 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14152 (COMMON_OBS): Add print-utils.o.
14153 (print-utils.o): New target.
14154
9fb50108
TT
141552014-02-12 Tom Tromey <tromey@redhat.com>
14156
14157 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14158
0548b5db
MK
141592014-02-12 Mark Kettenis <kettenis@gnu.org>
14160
14161 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14162
493443a4
MK
141632014-02-12 Mark Kettenis <kettenis@gnu.org>
14164
14165 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14166 if a PT_IO ptrace request returns sucessfully but indicates that 0
14167 bytes were transferred.
14168
706d0883
PA
141692014-02-12 Pedro Alves <palves@redhat.com>
14170 Kevin Buettner <kevinb@redhat.com>
14171
14172 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14173 TYPE_INSTANCE_FLAG_CODE_SPACE.
14174
5caa2f0b
PA
141752014-02-12 Pedro Alves <palves@redhat.com>
14176
14177 * h8300-tdep.c (pseudo_from_raw_register)
14178 (raw_from_pseudo_register): New functions.
14179 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14180 them.
14181
76fd5f74
PA
141822014-02-12 Pedro Alves <palves@redhat.com>
14183
14184 * h8300-tdep.c (h8300_register_sim_regno): New function.
14185 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14186 gdbarch_register_sim_regno hook.
14187
8f008406
SA
141882014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14189
14190 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14191
195abc10
SA
141922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14193
14194 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14195
93ffa5b9
MK
141962014-02-12 Mark Kettenis <kettenis@gnu.org>
14197
14198 * obsd-tdep.h (obsd_init_abi): New prototype.
14199 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14200 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14201 (obsd_init_abi): New functions.
14202 * i386obsd-tdep.c: Include "obsd-tdep.h".
14203 (i386obsd_init_abi): Call obsd_init_abi.
14204 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14205 (amd64obsd_init_abi): Call obsd_init_abi.
14206 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14207 obsd-tdep.c to gdb_target_obs.
14208
49caec94
JM
142092014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14210
14211 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14212 double float arguments to 16-byte in the argument slots.
14213
e1402065
DE
142142014-02-11 Doug Evans <xdje42@gmail.com>
14215
14216 * configure.ac: Don't crash if pkg-config is not found and guile
14217 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14218 in guile checks.
14219 * configure: Regenerate.
14220
edcc890f
YQ
142212014-02-11 Yao Qi <yao@codesourcery.com>
14222
14223 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14224 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14225 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14226 * gnu-nat.c (gnu_xfer_memory): Likewise.
14227 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14228 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14229 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14230 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14231
9b409511
YQ
142322014-02-11 Yao Qi <yao@codesourcery.com>
14233
14234 * target.h (enum target_xfer_error): Rename to ...
14235 (enum target_xfer_status): ... it. New. All users updated.
14236 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14237 New.
14238 (TARGET_XFER_STATUS_ERROR_P): New macro.
14239 (target_xfer_error_to_string): Remove declaration.
14240 (target_xfer_status_to_string): Declare.
14241 (target_xfer_partial_ftype): Adjust it.
14242 (struct target_ops) <to_xfer_partial>: Return
14243 target_xfer_status. Add argument xfered_len. Update
14244 comments.
14245 * target.c (target_xfer_error_to_string): Rename to ...
14246 (target_xfer_status_to_string): ... it. New. All callers
14247 updated.
14248 (target_read_live_memory): Likewise. Call target_xfer_partial
14249 instead of target_read.
14250 (memory_xfer_live_readonly_partial): Return
14251 target_xfer_status. Add argument xfered_len.
14252 (raw_memory_xfer_partial): Likewise.
14253 (memory_xfer_partial_1): Likewise.
14254 (memory_xfer_partial): Likewise.
14255 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14256 properly. Update debug message.
14257 (default_xfer_partial, current_xfer_partial): Likewise.
14258 (target_write_partial): Likewise.
14259 (target_read_partial): Likewise. All callers updated.
14260 (read_whatever_is_readable): Likewise.
14261 (target_write_with_progress): Likewise.
14262 (target_read_alloc_1): Likewise.
14263
14264 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14265 * auxv.c (procfs_xfer_auxv): Likewise.
14266 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14267 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14268 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14269 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14270 * corefile.c (read_memory): Adjust.
14271 * corelow.c (core_xfer_partial): Likewise.
14272 * ctf.c (ctf_xfer_partial): Likewise.
14273 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14274 updated.
14275 (darwin_xfer_partial): Likewise.
14276 * exec.c (section_table_xfer_memory_partial): Likewise. All
14277 callers updated.
14278 (exec_xfer_partial): Likewise.
14279 * exec.h (section_table_xfer_memory_partial): Update
14280 declaration.
14281 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14282 negative.
14283 (gnu_xfer_partial): Likewise.
14284 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14285 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14286 (ia64_hpux_xfer_solib_got): Likewise.
14287 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14288 type of 'partial_len' to ULONGEST.
14289 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14290 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14291 (linux_nat_xfer_partial): Likewise.
14292 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14293 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14294 * monitor.c (monitor_xfer_memory): Likewise.
14295 (monitor_xfer_partial): Likewise.
14296 * procfs.c (procfs_xfer_partial): Likewise.
14297 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14298 * record-full.c (record_full_xfer_partial): Likewise.
14299 (record_full_core_xfer_partial): Likewise.
14300 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14301 (gdbsim_xfer_partial): Likewise.
14302 * remote.c (remote_write_bytes_aux): Likewise. All callers
14303 updated.
14304 (remote_write_bytes, remote_read_bytes): Likewise. All
14305 callers updated.
14306 (remote_flash_erase): Likewise. All callers updated.
14307 (remote_write_qxfer): Likewise. All callers updated.
14308 (remote_read_qxfer): Likewise. All callers updated.
14309 (remote_xfer_partial): Likewise.
14310 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14311 (rs6000_xfer_shared_libraries): Likewise.
14312 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14313 (sol_thread_xfer_partial): Likewise.
14314 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14315 (sparc_xfer_partial): Likewise.
14316 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14317 updated.
14318 (spu_xfer_partial): Likewise.
14319 * spu-multiarch.c (spu_xfer_partial): Likewise.
14320 * tracepoint.c (tfile_xfer_partial): Likewise.
14321 * windows-nat.c (windows_xfer_memory): Likewise.
14322 (windows_xfer_shared_libraries): Likewise.
14323 (windows_xfer_partial): Likewise.
14324 * valprint.c: Replace 'target_xfer_error' with
14325 'target_xfer_status' in comments.
14326
a8e63083
JB
143272014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14328
14329 Checked in by Joel Brobecker <brobecker@adacore.com>.
14330 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14331
e86b67d3
JB
143322014-02-11 Joel Brobecker <brobecker@adacore.com>
14333
14334 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14335 function parameters.
14336
4b7d1f7f
WN
143372014-02-10 Will Newton <will.newton@linaro.org>
14338
14339 * elfread.c (elf_rel_plt_read): Look for a .got section if
14340 looking up .got.plt fails.
14341 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14342 on address passed to elf_gnu_ifunc_record_cache.
14343 (elf_gnu_ifunc_resolve_addr): Likewise.
14344 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14345
961842b2
JM
143462014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14347
14348 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14349 (X_RETTURN): New macro.
14350 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14351
14352 * sparc64-tdep.c (sparc64_init_abi): Hook
14353 sparc_in_function_epilogue_p.
14354
3f03e7b1
GB
143552014-02-10 Gary Benson <gbenson@redhat.com>
14356
14357 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14358 Rename name_matcher to symbol_matcher.
14359
96f861ef
GB
143602014-02-10 Gary Benson <gbenson@redhat.com>
14361
14362 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14363 Use expand_symtabs_file_matcher_ftype and
14364 expand_symtabs_symbol_matcher_ftype.
14365
ee01b665
JB
143662014-02-10 Joel Brobecker <brobecker@adacore.com>
14367
14368 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14369 (struct ada_symbol_cache): New.
14370 (ada_free_symbol_cache): Forward declare.
14371 (struct ada_pspace_data): New.
14372 (ada_pspace_data_handle): New static global.
14373 (get_ada_pspace_data, ada_pspace_data_cleanup)
14374 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14375 (cache_space, cache): Delete, now folded inside struct
14376 ada_pspace_data.
14377 (ada_get_symbol_cache): New function.
14378 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14379 implementation.
14380 (_initialize_ada_language): Remove initialization of cache_space.
14381 Move call to observer_attach_inferior_exit up, grouping it
14382 with the other observer registrations inside this function.
14383 Rename command to be more general. Add call to
14384 register_program_space_data_with_cleanup.
14385
143adbbf
JB
143862014-02-10 Joel Brobecker <brobecker@adacore.com>
14387
14388 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14389 ada_new_objfile_observer.
14390 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14391 (_initialize_tasks): Update uses of ada_new_objfile_observer
14392 and ada_tasks_normal_stop_observer.
14393
aa4fb036
JB
143942014-02-10 Joel Brobecker <brobecker@adacore.com>
14395
14396 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14397 returned by the 'Length attribute to integer.
14398
9dee8cc6
JB
143992014-02-10 Joel Brobecker <brobecker@adacore.com>
14400
14401 * ada-lang.c (_initialize_ada_language): Initialize
14402 cache_space obstack.
14403
3d9434b5
JB
144042014-02-10 Joel Brobecker <brobecker@adacore.com>
14405
14406 * ada-lang.c (HASH_SIZE): New macro.
14407 (struct cache_entry): New type.
14408 (cache_space, cache): New static globals.
14409 (ada_clear_symbol_cache, find_entry): New functions.
14410 (lookup_cached_symbol, cache_symbol): Implement.
14411 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14412 (_initialize_ada_language): Attach ada_new_objfile_observer
14413 and ada_free_objfile_observer.
14414
f0c5f9b2
JB
144152014-02-10 Joel Brobecker <brobecker@adacore.com>
14416
14417 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14418 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14419 struct block * parameter.
14420 (ada_lookup_symbol_list_worker): Constify local variable "block".
14421 Remove cast which is no longer necessary.
14422
ed3ef339
DE
144232014-02-10 Doug Evans <xdje42@gmail.com>
14424
14425 Add Guile as an extension language.
14426 * NEWS: Mention Guile scripting.
14427 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14428 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14429 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14430 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14431 (CLIBS): Add GUILE_LIBS.
14432 (install-guile): New rule.
14433 (guile.o): New rule.
14434 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14435 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14436 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14437 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14438 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14439 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14440 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14441 * configure.ac: New option --with-guile.
14442 * configure: Regenerate.
14443 * config.in: Regenerate.
14444 * auto-load.c: Remove #include "python/python.h". Add #include
14445 "gdb/section-scripts.h".
14446 (source_section_scripts): Handle Guile scripts.
14447 (_initialize_auto_load): Add name of Guile objfile script to
14448 scripts-directory help text.
14449 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14450 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14451 (struct breakpoint): New member scm_bp_object.
14452 * defs.h (enum command_control_type): New value guile_control.
14453 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14454 "extension.h".
14455 (show_user): Update comment.
14456 (_initialize_cli_cmds): Update help text for "show user". Update help
14457 text for max-user-call-depth.
14458 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14459 "extension.h".
14460 (multi_line_command_p): Add guile_control.
14461 (print_command_lines): Handle guile_control.
14462 (execute_control_command, recurse_read_control_structure): Ditto.
14463 (process_next_line): Recognize "guile" commands.
14464 * disasm.c (gdb_disassemble_info): Make non-static.
14465 * disasm.h: #include "dis-asm.h".
14466 (struct gdbarch): Add forward decl.
14467 (gdb_disassemble_info): Declare.
14468 * extension.c: #include "guile/guile.h".
14469 (extension_languages): Add guile.
14470 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14471 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14472 * gdbtypes.c (get_unsigned_type_max): New function.
14473 (get_signed_type_minmax): New function.
14474 * gdbtypes.h (get_unsigned_type_max): Declare.
14475 (get_signed_type_minmax): Declare.
14476 * guile/README: New file.
14477 * guile/guile-internal.h: New file.
14478 * guile/guile.c: New file.
14479 * guile/guile.h: New file.
14480 * guile/scm-arch.c: New file.
14481 * guile/scm-auto-load.c: New file.
14482 * guile/scm-block.c: New file.
14483 * guile/scm-breakpoint.c: New file.
14484 * guile/scm-disasm.c: New file.
14485 * guile/scm-exception.c: New file.
14486 * guile/scm-frame.c: New file.
14487 * guile/scm-gsmob.c: New file.
14488 * guile/scm-iterator.c: New file.
14489 * guile/scm-lazy-string.c: New file.
14490 * guile/scm-math.c: New file.
14491 * guile/scm-objfile.c: New file.
14492 * guile/scm-ports.c: New file.
14493 * guile/scm-pretty-print.c: New file.
14494 * guile/scm-safe-call.c: New file.
14495 * guile/scm-string.c: New file.
14496 * guile/scm-symbol.c: New file.
14497 * guile/scm-symtab.c: New file.
14498 * guile/scm-type.c: New file.
14499 * guile/scm-utils.c: New file.
14500 * guile/scm-value.c: New file.
14501 * guile/lib/gdb.scm: New file.
14502 * guile/lib/gdb/boot.scm: New file.
14503 * guile/lib/gdb/experimental.scm: New file.
14504 * guile/lib/gdb/init.scm: New file.
14505 * guile/lib/gdb/iterator.scm: New file.
14506 * guile/lib/gdb/printing.scm: New file.
14507 * guile/lib/gdb/types.scm: New file.
14508 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14509 (VPATH): Add $(GUILE_SRCDIR).
14510 (GUILE_DIR): New variable.
14511 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14512 (all): Add stamp-guile dependency.
14513 (stamp-guile): New rule.
14514 (clean-guile, install-guile, uninstall-guile): New rules.
14515 (install-only): Add install-guile dependency.
14516 (uninstall): Add uninstall-guile dependency.
14517 (clean): Add clean-guile dependency.
14518
ac020ec5
DE
145192014-02-09 Doug Evans <xdje42@gmail.com>
14520
14521 Revert this patch (which I approved, mea culpa).
14522
14523 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14524
14525 * Makefile.in (all-lib): Remove.
14526 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14527
2a081c59
JK
145282014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14529
14530 Fix Python stack corruption.
14531 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14532 gdb_py_longest.
14533
0a6bd22d
MK
145342014-02-08 Mark Kettenis <kettenis@gnu.org>
14535
14536 * Makefile.in (all-lib): Remove.
14537 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14538
1a860409
DE
145392014-02-07 Doug Evans <dje@google.com>
14540
14541 * extension-priv.h (extension_language_script_ops): Add comment.
14542 (extension_language_ops): Add comment.
caf5a491 14543 (active_ext_lang_state): Fix typo in comment.
1a860409 14544
d137e6dc
PA
145452014-02-07 Pedro Alves <palves@redhat.com>
14546
0dcb32c3 14547 PR breakpoints/16292
d137e6dc
PA
14548 * infrun.c (handle_signal_stop) <signal arrives while stepping
14549 over a breakpoint>: Switch back to the stepping thread.
14550
ce6d0892
YQ
145512014-02-07 Yao Qi <yao@codesourcery.com>
14552
14553 * target.c (target_xfer_partial): Return zero if LEN is zero.
14554
2ed4b548
YQ
145552014-02-07 Yao Qi <yao@codesourcery.com>
14556
14557 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14558 (ld_so_xfer_auxv): Likewise.
14559 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14560 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14561 * corelow.c (core_xfer_partial): Likewise.
14562 * ctf.c (ctf_xfer_partial): Likewise.
14563 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14564 (darwin_xfer_partial): Likewise.
14565 * exec.c (exec_xfer_partial): Likewise.
14566 * gnu-nat.c (gnu_xfer_partial): Likewise.
14567 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14568 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14569 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14570 * linux-nat.c (linux_xfer_siginfo): Likewise.
14571 (linux_proc_xfer_spu): Likewise.
14572 * procfs.c (procfs_xfer_partial): Likewise.
14573 * record-full.c (record_full_xfer_partial): Likewise.
14574 (record_full_core_xfer_partial): Likewise.
14575 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14576 * remote.c (remote_write_qxfer): Likewise.
14577 (remote_write_qxfer, remote_read_qxfer): Likewise.
14578 (remote_xfer_partial): Likewise.
14579 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14580 (rs6000_xfer_shared_libraries): Likewise.
14581 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14582 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14583 (spu_xfer_partial): Likewise.
14584 * target.c (memory_xfer_partial_1): Likewise.
14585 * tracepoint.c (tfile_xfer_partial): Likewise.
14586 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14587 (windows_xfer_partial): Likewise.
14588
c09f20e4
YQ
145892014-02-07 Yao Qi <yao@codesourcery.com>
14590
14591 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14592 comments.
14593 (core_xfer_shared_libraries_aix): Likewise.
14594 * gdbarch.c, gdbarch.h: Regenerated.
14595 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14596 ULONGEST. Change 'len_avail' type to ULONGEST.
14597 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14598 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14599 declaration.
14600 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14601
8635b3bf
YQ
146022014-02-07 Yao Qi <yao@codesourcery.com>
14603
14604 * corefile.c (memory_error): Get 'exception' from ERR and pass
14605 'exception' to throw_error.
14606
6dddc817
DE
146072014-02-06 Doug Evans <xdje42@gmail.com>
14608
14609 * configure.ac (libpython checking): Remove all but python.o from
14610 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14611 * configure: Regenerate.
14612
14613 * Makefile.in (SFILES): Add extension.c.
14614 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14615 (COMMON_OBS): Add extension.o.
14616 * extension.h: New file.
14617 * extension-priv.h: New file.
14618 * extension.c: New file.
14619
14620 * python/python-internal.h: #include "extension.h".
14621 (gdbpy_auto_load_enabled): Declare.
14622 (gdbpy_apply_val_pretty_printer): Declare.
14623 (gdbpy_apply_frame_filter): Declare.
14624 (gdbpy_preserve_values): Declare.
14625 (gdbpy_breakpoint_cond_says_stop): Declare.
14626 (gdbpy_breakpoint_has_cond): Declare.
14627 (void source_python_script_for_objfile): Delete.
14628 * python/python.c: #include "extension-priv.h".
14629 Delete inclusion of "observer.h".
14630 (extension_language_python): Moved here and renamed from
14631 script_language_python in py-auto-load.c.
14632 Redefined to be of type extension_language_defn.
14633 (python_extension_script_ops): New global.
14634 (python_extension_ops): New global.
14635 (struct python_env): New member previous_active.
14636 (restore_python_env): Call restore_active_ext_lang.
14637 (ensure_python_env): Call set_active_ext_lang.
14638 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14639 New arg extlang.
14640 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14641 New arg extlang.
14642 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14643 New arg extlang.
14644 (gdbpy_eval_from_control_command): Renamed from
14645 eval_python_from_control_command, made static. New arg extlang.
14646 (gdbpy_source_script) Renamed from source_python_script, made static.
14647 New arg extlang.
14648 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14649 result to int. New arg extlang.
14650 (gdbpy_source_objfile_script): Renamed from
14651 source_python_script_for_objfile, made static. New arg extlang.
14652 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14653 static. New args extlang, extlang_printers. Change result type to
14654 "void".
14655 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14656 static. New arg extlang. Rename arg printers to extlang_printers
14657 and change type to ext_lang_type_printers *.
14658 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14659 static. Replace argument arg with extlang, extlang_printers.
14660 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14661 (!HAVE_PYTHON, source_python_script): Delete.
14662 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14663 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14664 (!HAVE_PYTHON, start_type_printers): Delete.
14665 (!HAVE_PYTHON, apply_type_printers): Delete.
14666 (!HAVE_PYTHON, free_type_printers): Delete.
14667 (_initialize_python): Delete call to observer_attach_before_prompt.
14668 (finalize_python): Set/restore active extension language.
14669 (gdbpy_finish_initialization) Renamed from
14670 finish_python_initialization, made static. New arg extlang.
14671 (gdbpy_initialized): New function.
14672 * python/python.h: #include "extension.h". Delete #include
14673 "value.h", "mi/mi-cmds.h".
14674 (extension_language_python): Declare.
14675 (GDBPY_AUTO_FILE_NAME): Delete.
14676 (enum py_bt_status): Moved to extension.h and renamed to
14677 ext_lang_bt_status.
14678 (enum frame_filter_flags): Moved to extension.h.
14679 (enum py_frame_args): Moved to extension.h and renamed to
14680 ext_lang_frame_args.
14681 (finish_python_initialization): Delete.
14682 (eval_python_from_control_command): Delete.
14683 (source_python_script): Delete.
14684 (apply_val_pretty_printer): Delete.
14685 (apply_frame_filter): Delete.
14686 (preserve_python_values): Delete.
14687 (gdbpy_script_language_defn): Delete.
14688 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14689 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14690
14691 * auto-load.c: #include "extension.h".
14692 (GDB_AUTO_FILE_NAME): Delete.
14693 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14694 (script_language_gdb): Delete, moved to extension.c and renamed to
14695 extension_language_gdb.
14696 (source_gdb_script_for_objfile): Delete.
14697 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14698 (loaded_script): Change type of language member to
14699 struct extension_language_defn *.
14700 (init_loaded_scripts_info): Initialize
14701 unsupported_script_warning_printed.
14702 (maybe_add_script): Make static. Change type of language arg to
14703 struct extension_language_defn *.
14704 (clear_section_scripts): Reset unsupported_script_warning_printed.
14705 (auto_load_objfile_script_1): Rewrite to use extension language API.
14706 (auto_load_objfile_script): Make public. Remove support-compiled-in
14707 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14708 (source_section_scripts): Rewrite to use extension language API.
14709 (load_auto_scripts_for_objfile): Rewrite to use
14710 auto_load_scripts_for_objfile.
14711 (collect_matching_scripts_data): Change type of language member to
14712 struct extension_language_defn *.
14713 (auto_load_info_scripts): Change type of language arg to
14714 struct extension_language_defn *.
14715 (unsupported_script_warning_print): New function.
14716 (script_not_found_warning_print): Make static.
14717 (_initialize_auto_load): Rewrite construction of scripts-directory
14718 help.
14719 * auto-load.h (struct objfile): Add forward decl.
14720 (struct script_language): Delete.
14721 (struct auto_load_pspace_info): Add forward decl.
14722 (struct extension_language_defn): Add forward decl.
14723 (maybe_add_script): Delete.
14724 (auto_load_objfile_script): Declare.
14725 (script_not_found_warning_print): Delete.
14726 (auto_load_info_scripts): Update prototype.
14727 (auto_load_gdb_scripts_enabled): Declare.
14728 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14729 auto_load_python_scripts_enabled and made public.
14730 (script_language_python): Delete, moved to python.c.
14731 (gdbpy_script_language_defn): Delete.
14732 (info_auto_load_python_scripts): Update to use
14733 extension_language_python.
14734
14735 * breakpoint.c (condition_command): Replace call to
14736 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14737 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14738 with call to breakpoint_ext_lang_cond_says_stop.
14739 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14740 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14741 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14742 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14743 New arg slang.
14744 (local_setattro): Print name of extension language with existing
14745 stop condition.
14746
14747 * valprint.c (val_print, value_print): Update to call
14748 apply_ext_lang_val_pretty_printer.
14749 * cp-valprint.c (cp_print_value): Update call to
14750 apply_ext_lang_val_pretty_printer.
14751 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14752 (gdbpy_apply_val_pretty_printer): Renamed from
14753 apply_val_pretty_printer. New arg extlang.
14754 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14755
14756 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14757 extension language API.
14758 * cli/cli-script.c (execute_control_command): Update to call
14759 eval_ext_lang_from_control_command.
14760
14761 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14762 enum ext_lang_bt_status values. Update call to
14763 apply_ext_lang_frame_filter.
14764 (mi_cmd_stack_list_locals): Ditto.
14765 (mi_cmd_stack_list_args): Ditto.
14766 (mi_cmd_stack_list_variables): Ditto.
14767 * mi/mi-main.c: Delete #include "python/python-internal.h".
14768 Add #include "extension.h".
14769 (mi_cmd_list_features): Replace reference to python internal variable
14770 gdb_python_initialized with call to ext_lang_initialized_p.
14771
14772 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14773 Update to use enum ext_lang_frame_args. Update to call
14774 apply_ext_lang_frame_filter.
14775 * python/py-framefilter.c (extract_sym): Update to use enum
14776 ext_lang_bt_status.
14777 (extract_value, py_print_type, py_print_value): Ditto.
14778 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14779 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14780 (py_print_frame): Ditto.
14781 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14782 New arg extlang. Update to use enum ext_lang_bt_status.
14783
14784 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14785 finish_python_initialization. Replace with call to
14786 finish_ext_lang_initialization.
14787
14788 * typeprint.c (do_free_global_table): Update to call
14789 free_ext_lang_type_printers.
14790 (create_global_typedef_table): Update to call
14791 start_ext_lang_type_printers.
14792 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14793 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14794 (type_print_options): Change type of global_printers from "void *"
14795 to "struct ext_lang_type_printers *".
14796
14797 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14798 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14799 (gdbpy_preserve_values): Renamed from preserve_python_values.
14800 New arg extlang.
14801 (!HAVE_PYTHON, preserve_python_values): Delete.
14802
14803 * utils.c (quit_flag): Delete, moved to extension.c.
14804 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14805 extension.c.
14806
14807 * eval.c: Delete #include "python/python.h".
14808 * main.c: Delete #include "python/python.h".
14809
14810 * defs.h: Update comment.
14811
6af79985
JB
148122014-02-06 Joel Brobecker <brobecker@adacore.com>
14813
14814 GDB 7.7 released.
14815
12c5175d
MK
148162014-02-05 Mark Kettenis <kettenis@gnu.org>
14817
14818 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14819 defined.
14820
8dc5b319
YQ
148212014-02-05 Yao Qi <yao@codesourcery.com>
14822
14823 * remote.c (remote_pass_signals): Remove local 'buf' and use
14824 rs->buf.
14825 (remote_program_signals): Likewise.
14826
de7b2893
YQ
148272014-02-05 Yao Qi <yao@codesourcery.com>
14828
14829 * ctf.c: Include "inferior.h" and "gdbthread.h".
14830 (CTF_PID): A new macro.
14831 (ctf_open): Call inferior_appeared and add_thread_silent.
14832 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14833 (ctf_thread_alive): New function.
14834 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14835
66d032ac
YQ
148362014-02-05 Yao Qi <yao@codesourcery.com>
14837
14838 Revert this patch:
14839
14840 2013-05-24 Yao Qi <yao@codesourcery.com>
14841
14842 * tracepoint.c (TFILE_PID): Remove.
14843 (tfile_open): Don't add thread and inferior.
14844 (tfile_close): Don't set 'inferior_ptid'. Don't call
14845 exit_inferior_silent.
14846 (tfile_thread_alive): Remove.
14847 (init_tfile_ops): Don't set field 'to_thread_alive' of
14848 tfile_ops.
14849
f4ccffad
CE
148502014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14851
14852 * remote.c (remote_start_remote): Call remote_check_symbols even
14853 if only symbol-file (not file) has been given.
14854
591a12a1
UW
148552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14856
14857 * gdbarch.sh (skip_entrypoint): New callback.
14858 * gdbarch.c, gdbarch.h: Regenerate.
14859 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14860 * infrun.c (fill_in_stop_func): Likewise.
14861 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14862 (ppc_elfv2_elf_make_msymbol_special): New function.
14863 (ppc_elfv2_skip_entrypoint): Likewise.
14864 (ppc_linux_init_abi): Install them for ELFv2.
14865
cc0e89c5
UW
148662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14867
14868 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14869 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14870 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14871 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14872 structures returned in GPRs.
14873
52f548e4
UW
148742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14875
14876 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14877 offset to the stack parameter list for the ELFv2 ABI.
14878
d4094b6a
UW
148792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14880
14881 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14882 set_gdbarch_convert_from_func_ptr_addr and
14883 set_gdbarch_elf_make_msymbol_special for ELFv1.
14884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14885 function descriptors on ELFv1.
14886 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14887 set up r12 at function entry.
14888
cd453cd0
UW
148892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14890
14891 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14892 (struct gdbarch_tdep): New member elf_abi.
14893
14894 * rs6000-tdep.c: Include "elf/ppc64.h".
14895 (rs6000_gdbarch_init): Detect ELF ABI version.
14896
0ff3e01f
UW
148972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14898
14899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14900 within a register pair holding a DFP 128-bit value on little-endian.
14901 (ppc64_sysv_abi_return_value_base): Likewise.
14902 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14903 (dfp_pseudo_register_write): Likewise.
14904
5b757e5d
UW
149052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14906
14907 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14908 offset on little-endian when passing _Decimal32.
14909 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14910
084ee545
UW
149112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14912
14913 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14914 of the overlapped FP register within the VSX register on little-
14915 endian platforms.
14916 (efpr_pseudo_register_write): Likewise.
14917
d63167af
UW
149182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14919
14920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14921 offset on little-endian when passing small structures.
14922
e765b44c
UW
149232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14924
14925 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14926 (struct ppc64_sysv_argpos): New data structure.
14927 (ppc64_sysv_abi_push_float): Remove.
14928 (ppc64_sysv_abi_push_val): New function.
14929 (ppc64_sysv_abi_push_integer): Likewise.
14930 (ppc64_sysv_abi_push_freg): Likewise.
14931 (ppc64_sysv_abi_push_vreg): Likewise.
14932 (ppc64_sysv_abi_push_param): Likewise.
14933 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14934 (ppc64_sysv_abi_return_value_base): New function.
14935 (ppc64_sysv_abi_return_value): Refactor to use it.
14936
36c24d95
UW
149372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14938
14939 * NEWS: Document new target powerpc64le-*-linux*.
14940
26fd9228
MK
149412014-02-04 Mark Kettenis <kettenis@gnu.org>
14942
14943 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14944 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14945 core dumps.
14946 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14947 register set used in ELF core dumps. Add floating-point register set.
14948
c5bb7362
KB
149492014-02-03 Kevin Buettner <kevinb@redhat.com>
14950
74228e77 14951 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14952 dwarf2_to_gdb[] table using symbolic constants. Adjust
14953 penultimate entry from number representing the PC register
14954 to symbolic constant representing the MDR register. Add
14955 constant for the PC register to the end of the table.
14956
af09351e
MK
149572014-02-03 Mark Kettenis <kettenis@gnu.org>
14958
14959 * bsd-kvm.c: Include <sys/param.h>
14960
8507e05d
MK
149612014-02-03 Mark Kettenis <kettenis@gnu.org>
14962
14963 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14964
ae56bfb8
JB
149652014-01-31 Joel Brobecker <brobecker@adacore.com>
14966
14967 * ada-lang.h (clear_ada_sym_cache): Delete.
14968
718ee4dc
UW
149692014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14970
14971 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14972
401e27fd
JM
149732014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14974
14975 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14976 the sigreturn register save area only if the syscall is
14977 sigreturn.
14978
a7c88acd
JB
149792014-01-29 Joel Brobecker <brobecker@adacore.com>
14980
14981 * valops.c (value_slice): Minor reformatting.
14982
fa0079ea
UW
149832014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14984
14985 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14986
c6044dd1
JB
149872014-01-28 Joel Brobecker <brobecker@adacore.com>
14988
14989 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14990 New static globals.
14991 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14992 (ada_ignore_descriptive_types_p): New static global.
14993 (find_parallel_type_by_descriptive_type): Return immediately
14994 if ada_ignore_descriptive_types_p is set.
14995 (_initialize_ada_language): Register new commands "maintenance
14996 set ada", "maintenance show ada", "maintenance set ada
14997 ignore-descriptive-types" and "maintenance show ada
14998 ignore-descriptive-types".
14999 * NEWS: Add entry for new "maint ada set/show
15000 ignore-descriptive-types" commands.
15001
568e808b
MM
150022014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15003
15004 * record-btrace.c (record_btrace_close): Call btrace_teardown
15005 for all threads.
15006
467d141b
JB
150072014-01-27 Joel Brobecker <brobecker@adacore.com>
15008
15009 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15010 "ui-out.h".
15011
fb151210
JB
150122014-01-27 Joel Brobecker <brobecker@adacore.com>
15013
15014 * ada-typeprint (type_is_full_subrange_of_target_type):
15015 New function.
15016 (print_range): Add parameter bounds_prefered_p. If not set,
15017 try printing range types using the name of their base type.
15018 (print_range_type): Add parameter bounds_prefered_p.
15019 Use it in call to print_range.
15020 (print_array_type, ada_print_type): Update calls to print_range
15021 and print_range_type.
15022
aba02109
JB
150232014-01-27 Joel Brobecker <brobecker@adacore.com>
15024
15025 * ada-typeprint.c (print_array_type, print_choices, print_range)
15026 (print_range_bound, print_dynamic_range_bound, print_range_type):
15027 Remove declaration.
15028
e62e21fd
JB
150292014-01-27 Joel Brobecker <brobecker@adacore.com>
15030
15031 * ada-typeprint.c (print_range): Add missing empty line
15032 after local declaration.
15033
859cf5d1
JB
150342014-01-27 Joel Brobecker <brobecker@adacore.com>
15035
15036 * ada-valprint.c (print_optional_low_bound): Get index_type's
15037 target type for as long as it is a TYPE_CODE_RANGE.
15038
25790f6f
JB
150392014-01-27 Joel Brobecker <brobecker@adacore.com>
15040
15041 * procfs.c (procfs_make_note_section): Remove assertion and
15042 associated comment.
15043
6b6aa828
YQ
150442014-01-24 Yao Qi <yao@codesourcery.com>
15045
15046 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15047 * corelow.c (get_core_siginfo): Likewise.
15048
5d6df423
YQ
150492014-01-24 Yao Qi <yao@codesourcery.com>
15050
15051 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15052 ULONGEST. Don't check 'len' is negative.
15053 (remote_write_bytes): Change type of 'len' to ULONGEST.
15054
83b645b8
TT
150552014-01-23 Tom Tromey <tromey@redhat.com>
15056
15057 PR python/16485:
15058 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15059 Handle exception from frame.block.
15060 (FrameVars.fetch_frame_locals): Likewise.
15061
0740f8d8
TT
150622014-01-23 Tom Tromey <tromey@redhat.com>
15063
15064 PR python/16487:
15065 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15066 on a NULL pointer. Move "goto error" to correct place.
15067
21909fa1
TT
150682014-01-23 Tom Tromey <tromey@redhat.com>
15069
15070 PR python/16491:
15071 * python/py-framefilter.c (apply_frame_filter): Call
15072 ensure_python_env after computing gdbarch.
15073
17fde6d0
YQ
150742014-01-23 Yao Qi <yao@codesourcery.com>
15075
15076 * target.c (raw_memory_xfer_partial): Change argument type
15077 from void * to gdb_byte *.
15078 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15079
87ce2a04
DE
150802014-01-22 Doug Evans <dje@google.com>
15081
15082 New gdbserver option --debug-format=timestamp.
15083 * NEWS: Mention it.
15084
237b092b
AA
150852014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15086
15087 * syscalls/s390x-linux.xml: New file.
15088 * syscalls/s390-linux.xml: New file.
15089 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15090 (XML_SYSCALL_FILENAME_S390X): Likewise.
15091 (op_svc): New enum value for SVC opcode.
15092 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15093 (s390_linux_get_syscall_number): New function.
15094 (s390_gdbarch_init): Register '*get_syscall_number' and the
15095 syscall xml file name.
15096 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15097 "s390-linux.xml" and "s390x-linux.xml".
15098 * NEWS: Announce new feature.
15099
54bff650
BS
151002014-01-22 Baruch Siach <baruch@tkos.co.il>
15101
15102 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15103
14e361d7
PA
151042014-01-22 Pedro Alves <palves@redhat.com>
15105
15106 * xtensa-config.c: Include defs.h.
15107
46bbb3ed
JB
151082014-01-22 Joel Brobecker <brobecker@adacore.com>
15109
15110 * common/common-utils.h: Add "ARI:" comment beside __func__
15111 reference.
15112
3a80edfc
JB
151132014-01-22 Joel Brobecker <brobecker@adacore.com>
15114
15115 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15116 documentation a bit.
15117
4869db5e
RM
151182014-01-21 Roland McGrath <mcgrathr@google.com>
15119
15120 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15121 * configure: Regenerate.
15122 * aclocal.m4: Regenerate.
15123 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15124 New substituted variables.
15125 (install-strip): New target.
15126 (INSTALL_SCRIPT): New substituted variable.
15127 (FLAGS_TO_PASS): Add it.
15128 (install-only): Use $(INSTALL_SCRIPT) rather than
15129 $(INSTALL_PROGRAM) for gcore.
15130
9ea4267d
TT
151312014-01-20 Tom Tromey <tromey@redhat.com>
15132
15133 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15134 together.
15135
1f2bdf09
TT
151362014-01-20 Tom Tromey <tromey@redhat.com>
15137
15138 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15139 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15140 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15141 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15142 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15143 (struct cmd_list_element) <flags>: Remove.
15144 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15145 doc_allocated>: New fields.
15146 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15147 bitfields.
15148 * maint.c (maintenance_do_deprecate): Update.
15149 * top.c (execute_command): Update.
15150
e671835b
BS
151512014-01-20 Baruch Siach <baruch@tkos.co.il>
15152
15153 * xtensa-linux-nat.c: Include asm/ptrace.h.
15154
50367cd2
IB
151552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15156
15157 * Makefile.in (SFILES): Add d-support.c.
15158 (COMMON_OBS): Add d-support.o.
15159 * d-lang.h (d_parse_symbol): Add comment, now defined in
15160 d-support.c.
15161 * d-lang.c (parse_call_convention)
15162 (parse_attributes, parse_function_types)
15163 (parse_function_args, parse_type, parse_identifier)
15164 (call_convention_p, d_parse_symbol): Move functions to ...
15165 * d-support.c: ... New file.
15166
ec9f644a
IB
151672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15168
15169 * d-lang.h (d_parse_symbol): Add declaration.
15170 * d-lang.c (extract_identifiers)
15171 (extract_type_info): Remove functions.
15172 (parse_call_convention, parse_attributes)
15173 (parse_function_types, parse_function_args)
15174 (parse_type, parse_identifier, call_convention_p)
15175 (d_parse_symbol): New functions.
15176 (d_demangle): Use d_parse_symbol to demangle D symbols.
15177
94b1b47e
IB
151782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15179
15180 * d-lang.h (struct builtin_d_type): New data type.
15181 (builtin_d_type): Add declaration.
15182 * d-lang.c (d_language_arch_info, build_d_types)
15183 (builtin_d_type): New functions.
15184 (enum d_primitive_types): New data type.
15185 (d_language_defn): Change c_language_arch_info to
15186 d_language_arch_info.
15187 (d_type_data): New static variable.
15188 (_initialize_d_language): Initialize d_type_data.
15189
63778547
IB
151902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15191
15192 * d-lang.h (d_main_name): Add declaration.
15193 * d-lang.c (d_main_name): New function.
15194 * symtab.c (find_main_name): Add call to d_main_name.
15195
3271ba66
IB
151962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15197
15198 * d-lang.c (d_language_defn): Change macro_expansion_c to
15199 macro_expansion_no.
15200
d36b3012
IB
152012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15202
15203 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15204
c90a6fb7
SDJ
152052014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15206
15207 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15208 gdb_exception" declaration.
15209 * remote.c (getpkt_or_notif_sane): Likewise.
15210
749234e5
DE
152112014-01-17 Doug Evans <dje@google.com>
15212
15213 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15214 function, contents of dirnames_to_char_ptr_vec_append moved here.
15215 (delim_string_to_char_ptr_vec): New function.
15216 (dirnames_to_char_ptr_vec_append): Rewrite.
15217 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15218
df049a58
DE
152192014-01-17 Doug Evans <dje@google.com>
15220
15221 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15222 and moved here ...
15223 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15224 #include "common-utils.h".
15225 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15226 * common/vec.h (VEC_ASSERT_PASS): Update.
15227 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15228 (MACH_CHECK_ERROR): Update.
15229
69f97648
SM
152302014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15231
15232 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15233 comments.
15234 * gdbarch.h: Regenerate.
15235
98b1cfdc
TT
152362014-01-16 Tom Tromey <tromey@redhat.com>
15237
15238 * value.c (struct value) <regnum>: Move earlier.
15239
77a19445
TT
152402014-01-16 Tom Tromey <tromey@redhat.com>
15241
15242 * remote.c (extended_remote_create_inferior): Rename from
15243 extended_remote_create_inferior_1. Add "ops" argument. Remove
15244 old implementation.
15245
62261490
PA
152462014-01-16 Pedro Alves <palves@redhat.com>
15247
15248 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15249 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15250 the backchain.
15251
4d65956b
DE
152522014-01-16 Doug Evans <dje@google.com>
15253
15254 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15255
52834460
MM
152562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15257
15258 * btrace.h (btrace_thread_flag): New.
15259 (struct btrace_thread_info) <flags>: New.
15260 * record-btrace.c (record_btrace_resume_thread)
15261 (record_btrace_find_thread_to_move, btrace_step_no_history)
15262 (btrace_step_stopped, record_btrace_start_replaying)
15263 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15264 (record_btrace_find_resume_thread): New.
15265 (record_btrace_resume, record_btrace_wait): Extend.
15266 (record_btrace_can_execute_reverse): New.
15267 (record_btrace_open): Fail in non-stop mode.
15268 (record_btrace_set_replay): Split into this, ...
15269 (record_btrace_stop_replaying): ... this, ...
15270 (record_btrace_clear_histories): ... and this.
15271 (init_record_btrace_ops): Init to_can_execute_reverse.
15272 * NEWS: Announce it.
15273
118e6252
MM
152742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15275
15276 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15277 (forward_target_decr_pc_after_break)
15278 (target_decr_pc_after_break): New.
15279 * target.c (forward_target_decr_pc_after_break)
15280 (target_decr_pc_after_break): New.
15281 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15282 instead of gdbarch_decr_pc_after_break.
15283 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15284 instead of gdbarch_decr_pc_after_break.
15285 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15286 instead of gdbarch_decr_pc_after_break.
15287 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15288 instead of gdbarch_decr_pc_after_break.
15289 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15290 instead of gdbarch_decr_pc_after_break.
15291 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15292 instead of gdbarch_decr_pc_after_break.
15293
6e07b1d2
MM
152942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15295
15296 * btrace.c: Include regcache.h.
15297 (btrace_add_pc): New.
15298 (btrace_enable): Call btrace_add_pc.
15299 (btrace_is_empty): New.
15300 * btrace.h (btrace_is_empty): New.
15301 * record-btrace.c (require_btrace, record_btrace_info): Call
15302 btrace_is_empty.
15303
969c39fb
MM
153042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15305
15306 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15307 Support delta reads.
15308 (linux_disable_btrace): Change return type.
15309 * common/linux-btrace.h (linux_read_btrace): Change parameters
15310 and return type to allow error reporting. Update users.
15311 (linux_disable_btrace): Change return type. Update users.
15312 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15313 New.
15314 (btrace_error): New.
15315 (btrace_block) <begin>: Comment on BEGIN == 0.
15316 * btrace.c (btrace_compute_ftrace): Start from the end of
15317 the current trace.
15318 (btrace_stitch_trace, btrace_clear_history): New.
15319 (btrace_fetch): Read delta trace, return if replaying.
15320 (btrace_clear): Move clear history code to btrace_clear_history.
15321 (parse_xml_btrace): Throw an error if parsing failed.
15322 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15323 and return type to allow error reporting.
15324 (target_read_btrace): Change parameters and return type to allow
15325 error reporting.
15326 * target.c (target_read_btrace): Update.
15327 * remote.c (remote_read_btrace): Support delta reads. Pass
15328 errors on.
15329 * NEWS: Announce it.
15330
0b722aec
MM
153312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15332
15333 * record.h (record_btrace_frame_unwind)
15334 (record_btrace_tailcall_frame_unwind): New declarations.
15335 * dwarf2-frame: Include record.h
15336 (dwarf2_frame_cfa): Throw an error for btrace frames.
15337 * record-btrace.c: Include hashtab.h.
15338 (btrace_get_bfun_name): New.
15339 (btrace_call_history): Call btrace_get_bfun_name.
15340 (struct btrace_frame_cache): New.
15341 (bfcache): New.
15342 (bfcache_hash, bfcache_eq, bfcache_new): New.
15343 (btrace_get_frame_function): New.
15344 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15345 (record_btrace_frame_this_id): Compute own id.
15346 (record_btrace_frame_prev_register): Provide PC, throw_error
15347 for all other registers.
15348 (record_btrace_frame_sniffer): Detect btrace frames.
15349 (record_btrace_tailcall_frame_sniffer): New.
15350 (record_btrace_frame_dealloc_cache): New.
15351 (record_btrace_frame_unwind): Add new functions.
15352 (record_btrace_tailcall_frame_unwind): New.
15353 (_initialize_record_btrace): Allocate cache.
15354 * btrace.c (btrace_clear): Call reinit_frame_cache.
15355 * NEWS: Announce it.
15356
066ce621
MM
153572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15358
15359 * record-btrace.c (record_btrace_set_replay)
15360 (record_btrace_goto_begin, record_btrace_goto_end)
15361 (record_btrace_goto): New.
15362 (init_record_btrace_ops): Initialize them.
15363 * NEWS: Announce it.
15364
e2887aa3
MM
153652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15366
15367 * record-btrace.c (record_btrace_find_new_threads)
15368 (record_btrace_thread_alive): New.
15369 (init_record_btrace_ops): Initialize to_find_new_threads and
15370 to_thread_alive.
15371
b2f4cfde
MM
153722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15373
15374 * record-btrace.c (record_btrace_resume): New.
15375 (record_btrace_wait): New.
15376 (init_record_btrace_ops): Initialize to_wait and to_resume.
15377
633785ff
MM
153782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15379
15380 * record-btrace.c (record_btrace_xfer_partial)
15381 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15382 (record_btrace_allow_memory_access): New.
15383 (init_record_btrace_ops): Initialize new methods.
15384 * target.c (raw_memory_xfer_partial): Bail out if target reports
15385 that this memory is not available.
15386
3db08215
MM
153872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15388
15389 * target.h (target_ops) <to_insert_breakpoint>
15390 <to_remove_breakpoint>: Add target_ops parameter.
15391 (forward_target_insert_breakpoint): New.
15392 (forward_target_remove_breakpoint): New.
15393 (memory_remove_breakpoint, memory_insert_breakpoint):
15394 Add target_ops parameter.
15395 * target.c (target_insert_breakpoint): Split into this and ...
15396 (forward_target_insert_breakpoint): ... this.
15397 (target_remove_breakpoint): Split into this and ...
15398 (forward_target_remove_breakpoint): ... this.
15399 (debug_to_insert_breakpoint): Add target_ops parameter.
15400 Call forward_target_insert_breakpoint.
15401 (debug_to_remove_breakpoint): Add target_ops parameter.
15402 Call forward_target_remove_breakpoint.
15403 (update_current_target): Do not inherit or default to_insert_breakpoint
15404 and to_remove_breakpoint.
15405 * corelow.c (ignore): Add target_ops parameter.
15406 * exec.c (ignore): Add target_ops parameter.
15407 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15408 Add target_ops parameter.
15409 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15410 Add target_ops parameter.
15411 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15412 Add target_ops parameter.
15413 * record-full.c (record_full_beneath_to_insert_breakpoint)
15414 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15415 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15416 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15417 (record_full_core_remove_breakpoint): Add target_ops parameter.
15418 Update users.
15419 (record_full_beneath_to_insert_breakpoint_ops)
15420 (record_full_beneath_to_remove_breakpoint_ops)
15421 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15422 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15423 tmp_to_remove_breakpoint_ops,
15424 record_full_beneath_to_insert_breakpoint_ops, and
15425 record_full_beneath_to_remove_breakpoint_ops.
15426 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15427 (m32r_remove_breakpoint): Add target_ops parameter.
15428 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15429 Add target_ops parameter.
15430 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15431 Add target_ops parameter.
15432
cecac1ab
MM
154332014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15434 Markus Metzger <markus.t.metzger@intel.com>
15435
15436 * record-btrace.c: Include frame-unwind.h.
15437 (record_btrace_frame_unwind_stop_reason)
15438 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15439 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15440 New.
15441 (init_record_btrace_ops): Install it.
15442
824344ca
MM
154432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15444
15445 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15446 get_prev_frame_1.
15447
32261e52
MM
154482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15449
15450 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15451 earlier.
15452
ea001bdc
MM
154532014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15454
15455 * frame-unwind.c: Include target.h.
15456 (frame_unwind_try_unwinder): New function with code from ...
15457 (frame_unwind_find_by_frame): ... here. New variable
15458 unwinder_from_target, call also target_get_unwinder)
15459 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15460 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15461 * target.h (struct target_ops): New fields to_get_unwinder and
15462 to_get_tailcall_unwinder.
15463 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15464
1f3ef581
MM
154652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15466
15467 * record-btrace.c (record_btrace_fetch_registers)
15468 (record_btrace_store_registers)
15469 (record_btrace_to_prepare_to_store): New.
15470 (init_record_btrace_ops): Add the above.
15471
f32dbf8c
MM
154722014-01-16 Tom Tromey <tromey@redhat.com>
15473
15474 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15475 * target.h (struct target_ops) <to_prepare_to_store>: Add
15476 argument.
15477 (target_prepare_to_store): Add argument.
15478 * target.c (debug_to_prepare_to_store): Add argument.
15479 (update_current_target): Update.
15480 * remote.c (remote_prepare_to_store): Add 'self' argument.
15481 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15482 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15483 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15484 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15485 argument.
15486 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15487 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15488 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15489 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15490 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15491
07bbe694
MM
154922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15493
15494 * btrace.h (replay) <replay>: New.
15495 (btrace_is_replaying): New.
15496 * btrace.c (btrace_clear): Free replay iterator.
15497 (btrace_is_replaying): New.
15498 * record-btrace.c (record_btrace_is_replaying): New.
15499 (record_btrace_info): Print insn number if replaying.
15500 (record_btrace_insn_history): Start at replay position.
15501 (record_btrace_call_history): Start at replay position.
15502 (init_record_btrace_ops): Init to_record_is_replaying.
15503
0688d04e
MM
155042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15505
15506 * record-btrace.c (record_btrace_insn_history_range): Include
15507 end.
15508 (record_btrace_insn_history_from): Adjust range.
15509 (record_btrace_call_history_range): Include
15510 end.
15511 (record_btrace_call_history_from): Adjust range.
15512 * NEWS: Announce changes.
15513
8710b709
MM
155142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15515
15516 * record.h (enum record_print_flag)
15517 <record_print_indent_calls>: New.
15518 * record.c (get_call_history_modifiers): Recognize /c modifier.
15519 (_initialize_record): Document /c modifier.
15520 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15521 Reorder fields. Optionally indent the function name. Update
15522 all users.
15523 * NEWS: Announce changes.
15524
d0fa7535
MM
155252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15526
15527 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15528
5de9129b
MM
155292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15530
15531 * btrace.c (ftrace_new_function): Start counting at one.
15532 * record-btrace.c (record_btrace_info): Adjust number of calls
15533 and insns.
15534 * NEWS: Announce it.
15535
7acbe133
MM
155362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15537
15538 * record-btrace.c (btrace_call_history_insn_range): Print
15539 insn range as [begin, end].
15540
23a7fe75
MM
155412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15542
15543 * btrace.h (struct btrace_func_link): New.
15544 (enum btrace_function_flag): New.
15545 (struct btrace_inst): Rename to ...
15546 (struct btrace_insn): ...this. Update all users.
15547 (struct btrace_func) <ibegin, iend>: Remove.
15548 (struct btrace_func_link): New.
15549 (struct btrace_func): Rename to ...
15550 (struct btrace_function): ...this. Update all users.
15551 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15552 (number, level, flags>: New.
15553 (struct btrace_insn_iterator): Rename to ...
15554 (struct btrace_insn_history): ...this.
15555 Update all users.
15556 (struct btrace_insn_iterator, btrace_call_iterator): New.
15557 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15558 (struct btrace_target_info) <begin, end, level>
15559 <insn_history, call_history>: New.
15560 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15561 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15562 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15563 (btrace_call_number, btrace_call_begin, btrace_call_end)
15564 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15565 (btrace_find_function_by_number, btrace_set_insn_history)
15566 (btrace_set_call_history): New.
15567 * btrace.c (btrace_init_insn_iterator)
15568 (btrace_init_func_iterator, compute_itrace): Remove.
15569 (ftrace_print_function_name, ftrace_print_filename)
15570 (ftrace_skip_file): Change
15571 parameter to const.
15572 (ftrace_init_func): Remove.
15573 (ftrace_debug): Use new btrace_function fields.
15574 (ftrace_function_switched): Also consider gaining and
15575 losing symbol information).
15576 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15577 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15578 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15579 New.
15580 (ftrace_new_function): Move. Remove debug print.
15581 (ftrace_update_lines, ftrace_update_insns): New.
15582 (ftrace_update_function): Check for call, ret, and jump.
15583 (compute_ftrace): Renamed to ...
15584 (btrace_compute_ftrace): ...this. Rewritten to compute call
15585 stack.
15586 (btrace_fetch, btrace_clear): Updated.
15587 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15588 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15589 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15590 (btrace_call_number, btrace_call_begin, btrace_call_end)
15591 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15592 (btrace_find_function_by_number, btrace_set_insn_history)
15593 (btrace_set_call_history): New.
15594 * record-btrace.c (require_btrace): Use new btrace thread
15595 info fields.
15596 (record_btrace_info, btrace_insn_history)
15597 (record_btrace_insn_history, record_btrace_insn_history_range):
15598 Use new btrace thread info fields and new iterator.
15599 (btrace_func_history_src_line): Rename to ...
15600 (btrace_call_history_src_line): ...this. Use new btrace
15601 thread info fields.
15602 (btrace_func_history): Rename to ...
15603 (btrace_call_history): ...this. Use new btrace thread info
15604 fields and new iterator.
15605 (record_btrace_call_history, record_btrace_call_history_range):
15606 Use new btrace thread info fields and new iterator.
15607
8372a7cb
MM
156082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15609
15610 * frame.h (frame_id_build_unavailable_stack_special): New.
15611 * frame.c (frame_id_build_unavailable_stack_special): New.
15612
c2170eef
MM
156132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15614
15615 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15616 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15617 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15618 to gdbarch.
15619 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15620 (i386_insn_is_jump, i386_jmp_p): New.
15621 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15622 insn_is_jump to gdbarch.
15623 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15624 * gdbarch.h: Regenerated.
15625 * gdbarch.c: Regenerated.
15626 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15627 (default_insn_is_jump): New.
15628 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15629 (default_insn_is_jump): New.
15630
864089d2
MM
156312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15632
15633 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15634 Change to ...
15635 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15636 (btrace_read_type) <btrace_read_new>: Change to ...
15637 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15638
ed9edfb5
MM
156392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15640
15641 * common/linux-btrace.c (linux_read_btrace): Free trace from
15642 previous iteration.
15643
fbcbc3fd
DE
156442014-01-15 Doug Evans <dje@google.com>
15645
15646 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15647 uint32_t.
15648
3d548a53
TT
156492014-01-15 Tom Tromey <tromey@redhat.com>
15650
15651 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15652 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15653 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15654 (set_objfile_main_name): New function.
15655 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15656 language_of_main>: New fields.
15657 (set_objfile_main_name): Declare.
15658 * symtab.c (find_main_name): Loop over objfiles to find the main
15659 name and language.
15660 (set_main_name): Now static.
15661 (get_main_info): Add comment.
15662 * symtab.h (set_main_name): Don't declare.
15663
32ac0d11
TT
156642014-01-15 Tom Tromey <tromey@redhat.com>
15665
15666 * symtab.c (main_progspace_key): New global.
15667 (struct main_info): New.
15668 (name_of_main, language_of_main): Remove.
15669 (get_main_info, main_info_cleanup): New function.
15670 (set_main_name, main_name, main_language): Use get_main_info.
15671 (_initialize_symtab): Initialize main_progspace_key.
15672
9e6c82ad
TT
156732014-01-15 Tom Tromey <tromey@redhat.com>
15674
15675 * dbxread.c (process_one_symbol): Update.
15676 * dwarf2read.c (read_partial_die): Update.
15677 * symfile.c (set_initial_language): Call main_language.
15678 * symtab.c (language_of_main): Now static.
15679 (set_main_name): Add 'lang' parameter.
15680 (find_main_name): Update.
15681 (main_language): New function.
15682 (symtab_observer_executable_changed): Update.
15683 * symtab.h (set_main_name): Update.
15684 (language_of_main): Remove.
15685 (main_language): Declare.
15686
6ef55de7
TT
156872014-01-15 Tom Tromey <tromey@redhat.com>
15688
15689 * symfile.c (init_entry_point_info): Use new "initialized" field.
15690 Update.
15691 * objfiles.h (struct entry_point) <initialized>: New field.
15692 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15693 (struct objfile) <ei>: ...here. Remove.
15694 * objfiles.c (entry_point_address_query): Update.
15695
53eddfa6
TT
156962014-01-15 Tom Tromey <tromey@redhat.com>
15697
15698 * objfiles.c (entry_point_address_query): Relocate entry point
15699 address.
15700 (objfile_relocate1): Do not relocate entry point address.
15701 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15702 <the_bfd_section_index>: New field.
15703 * symfile.c (init_entry_point_info): Find the entry point's
15704 section.
15705
d56e56aa
TT
157062014-01-15 Tom Tromey <tromey@redhat.com>
15707
15708 * solib-frv.c (enable_break): Use entry_point_address_query.
15709
33a97bbe
OJ
157102014-01-15 Omair Javaid <omair.javaid@linaro.org>
15711
15712 * NEWS: Add note on improved process record-replay on
15713 arm*-linux* targets.
15714
c6ec2b30
OJ
157152014-01-15 Omair Javaid <omair.javaid@linaro.org>
15716
15717 * arm-tdep.c (enum arm_record_result): New enum.
15718 (arm_record_unsupported_insn): New function.
15719 (arm_record_coproc_data_proc): Removed.
15720 (thumb2_record_ld_st_multiple): New function.
15721 (thumb2_record_ld_st_dual_ex_tbb): New function.
15722 (thumb2_record_data_proc_sreg_mimm): New function.
15723 (thumb2_record_ps_dest_generic): New function.
15724 (thumb2_record_branch_misc_cntrl): New function.
15725 (thumb2_record_str_single_data): New function.
15726 (thumb2_record_ld_mem_hints): New function.
15727 (thumb2_record_ld_word): New function.
15728 (thumb2_record_lmul_lmla_div): New function.
15729 (thumb2_record_decode_insn_handler): New function.
15730 (decode_insn): Add thumb32 instruction handlers.
15731
97dfe206
OJ
157322014-01-15 Omair Javaid <omair.javaid@linaro.org>
15733
15734 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15735 (struct arm_linux_record_tdep): Declare.
15736 (arm_canonicalize_syscall): New function.
15737 (arm_all_but_pc_registers_record): New function.
15738 (arm_linux_syscall_record): New function.
15739 (arm_linux_init_abi): Add syscall recording constructs.
15740 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15741 decoding. (arm_record_coproc_data_proc): Update arm syscall
15742 decoding.
15743 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15744 <arm_syscall_record>: New field.
15745 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15746 gdb_target_obs.
15747
9904a494
OJ
157482014-01-15 Omair Javaid <omair.javaid@linaro.org>
15749
15750 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15751 register for push instruction recording.
15752
f969241e
OJ
157532014-01-15 Omair Javaid <omair.javaid@linaro.org>
15754
15755 * arm-tdep.c (thumb_record_misc): Update to correct logical
15756 error while recording ldm, ldmia and pop instructions.
15757
bfbbec00
OJ
157582014-01-15 Omair Javaid <omair.javaid@linaro.org>
15759
15760 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15761
e40adcc9
PA
157622014-01-15 Pedro Alves <palves@redhat.com>
15763
15764 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15765 (go32_resume, go32_fetch_registers, store_register)
15766 (go32_store_registers, go32_prepare_to_store)
15767 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15768 (go32_create_inferior, go32_can_run, go32_terminal_init)
15769 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15770 declarations.
15771
b0a16e66
TT
157722014-01-15 Tom Tromey <tromey@redhat.com>
15773
15774 * target.h (async_callback_ftype): New typedef.
15775 (struct target_ops) <to_async>: Use it.
15776
bf7105a4
JB
157772014-01-15 Joel Brobecker <brobecker@adacore.com>
15778
15779 * python/py-value.c (get_field_type): Remove unnecessary curly
15780 braces for single-statement if block.
15781
a8f35c2e
JB
157822014-01-15 Joel Brobecker <brobecker@adacore.com>
15783
15784 * python/py-type.c (convert_field): Add missing empty line
15785 after declarations.
15786
bb4142cf
DE
157872014-01-14 Doug Evans <dje@google.com>
15788
15789 * symfile.h (expand_symtabs_matching): Renamed from
15790 expand_partial_symbol_names. Update prototype.
15791 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15792 * symfile.c (expand_symtabs_matching): Renamed from
15793 expand_partial_symbol_names. New args file_matcher, kind.
15794 Rename arg fun to symbol_matcher.
15795 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15796 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15797 ada_expand_partial_symbol_name.
15798 (ada_make_symbol_completion_list): Update to call
15799 expand_symtabs_matching.
15800 (ada_add_global_exceptions): Call expand_symtabs_matching.
15801 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15802 call map_symbol_filenames.
15803 * symtab.c (sources_info): Update to call map_symbol_filenames.
15804 (search_symbols): Call expand_symtabs_matching.
15805 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15806 (default_make_symbol_completion_list_break_on): Update to call
15807 expand_symtabs_matching.
15808 (make_source_files_completion_list): Update to call
15809 map_symbol_filenames.
15810
206f2a57
DE
158112014-01-14 Doug Evans <dje@google.com>
15812
15813 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15814 (expand_symtabs_symbol_matcher_ftype): New typedef.
15815 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15816 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15817 * symfile.c (expand_partial_symbol_names): Update to use
15818 expand_symtabs_symbol_matcher_ftype.
15819 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15820 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15821 Arg name_matcher renamed to symbol_matcher.
15822 * psymtab.c (recursively_search_psymtabs): Update to use
15823 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15824 sym_matcher.
15825 (expand_symtabs_matching_via_partial): Update to use
15826 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15827 Arg name_matcher renamed to symbol_matcher.
15828
540c2971
DE
158292014-01-14 Doug Evans <dje@google.com>
15830
15831 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15832 (map_partial_symbol_filenames): Ditto.
15833 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15834 (map_partial_symbol_filenames): Ditto.
15835 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15836 (map_partial_symbol_filenames): Ditto.
15837 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15838 (map_partial_symbol_filenames): Ditto.
15839 * symtab.c: Delete #include "psymtab.h".
15840
8213266a
PA
158412014-01-14 Pedro Alves <palves@redhat.com>
15842 Tom Tromey <tromey@redhat.com>
15843
15844 * infrun.c (use_displaced_stepping): Use find_record_target
15845 instead of RECORD_IS_USED.
15846 (adjust_pc_after_break): Use record_full_is_used instead of
15847 RECORD_IS_USED.
15848 * record-btrace.c (record_btrace_open): Call record_preopen
15849 instead of checking RECORD_IS_USED.
15850 * record-full.c (record_full_shortname)
15851 (record_full_core_shortname): New globals.
15852 (record_full_is_used): New function.
15853 (find_full_open): Call record_preopen instead of checking
15854 RECORD_IS_USED.
15855 (init_record_full_ops): Set the target's shortname to
15856 record_full_shortname.
15857 (init_record_full_core_ops): Set the target's shortname to
15858 record_full_core_shortname.
15859 * record-full.h (record_full_is_used): Declare.
15860 * record.c (find_record_target): Make extern.
15861 (record_preopen): New function.
15862 * record.h (RECORD_IS_USED): Delete macro.
15863 (find_record_target, record_preopen): Declare functions.
15864
7ec1862d
YQ
158652014-01-14 Yao Qi <yao@codesourcery.com>
15866
15867 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15868 'len''s type to ULONGEST.
15869 (core_xfer_shared_libraries_aix): Likewise.
15870 * gdbarch.c, gdbarch.h: Regenerated.
15871 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15872 Change type of 'len' to ULONGEST.
15873 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15874 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15875
dea80a27
YQ
158762014-01-14 Yao Qi <yao@codesourcery.com>
15877
15878 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15879 type of 'len' to ULONGEST.
15880 (linux_xfer_osdata_processgroups): Likewise.
15881 (linux_xfer_osdata_threads): Likewise.
15882 (linux_xfer_osdata_fds): Likewise.
15883 (linux_xfer_osdata_isockets): Likewise.
15884 (linux_xfer_osdata_shm): Likewise.
15885 (linux_xfer_osdata_sem): Likewise.
15886 (linux_xfer_osdata_msg): Likewise.
15887 (linux_common_xfer_osdata): Likewise.
15888 (struct osdata_type) <getter>: Likewise.
15889 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15890 the declaration.
15891
b55e14c7
YQ
158922014-01-14 Yao Qi <yao@codesourcery.com>
15893
15894 * target.h (target_xfer_partial_ftype): Update.
15895 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15896 ULONGEST.
15897 * aix-thread.c (aix_thread_xfer_partial): Change type of
15898 argument 'len' to ULONGEST.
15899 * auxv.c (procfs_xfer_auxv): Likewise.
15900 (ld_so_xfer_auxv): Likewise.
15901 (memory_xfer_auxv): Likewise.
15902 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15903 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15904 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15905 * corelow.c (core_xfer_partial): Likewise.
15906 * ctf.c (ctf_xfer_partial): Likewise.
15907 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15908 '%u'.
15909 (darwin_read_dyld_info): Likewise.
15910 (darwin_xfer_partial): Likewise.
15911 * exec.c (section_table_xfer_memory_partial): Likewise.
15912 (exec_xfer_partial): Likewise.
15913 * exec.h (section_table_xfer_memory_partial): Update
15914 declaration.
15915 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15916 instead of plongest.
15917 (gnu_xfer_partial): Likewise.
15918 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15919 (ia64_hpux_xfer_solib_got): Likewise.
15920 (ia64_hpux_xfer_partial): Likewise.
15921 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15922 * inf-ptrace.c (inf_ptrace_xfer_partial):
15923 * inf-ttrace.c (inf_ttrace_xfer_partial):
15924 * linux-nat.c (linux_xfer_siginfo): Likewise.
15925 (linux_nat_xfer_partial): Likewise.
15926 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15927 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15928 * monitor.c (monitor_xfer_memory): Likewise.
15929 (monitor_xfer_partial): Likewise.
15930 * procfs.c (procfs_xfer_partial): Likewise.
15931 * record-full.c (record_full_xfer_partial): Likewise.
15932 (record_full_core_xfer_partial): Likewise.
15933 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15934 instead of plongest.
15935 (gdbsim_xfer_partial): Likewise.
15936 * remote.c (remote_xfer_partial): Likewise.
15937 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15938 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15939 declaration.
15940 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15941 (rs6000_xfer_shared_libraries): Likewise.
15942 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15943 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15944 (sparc_xfer_partial): Likewise.
15945 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15946 (spu_xfer_partial): Likewise.
15947 * spu-multiarch.c (spu_xfer_partial): Likewise.
15948 * target.c (target_read_live_memory): Likewise.
15949 (memory_xfer_live_readonly_partial): Likewise.
15950 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15951 (target_xfer_partial, default_xfer_partial): Likewise.
15952 (current_xfer_partial): Likewise.
15953 * tracepoint.c (tfile_xfer_partial): Likewise.
15954 * windows-nat.c (windows_xfer_memory): Likewise. Call
15955 pulongest instead of plongest.
15956 (windows_xfer_partial): Likewise.
15957 (windows_xfer_shared_libraries): Likewise.
15958
05804640
YQ
159592014-01-14 Yao Qi <yao@codesourcery.com>
15960
15961 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15962 target_xfer_partial_ftype.
15963
b5b08fb4
SC
159642014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15965
15966 PR python/15464
15967 PR python/16113
15968 * valops.c (value_struct_elt_bitpos): New function
15969 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15970 object to 'None' if the field name is an empty string ("").
15971 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15972 attribute to look for a field when 'name' is 'None'.
15973 (get_field_type): New function
15974
13aaf454
DE
159752014-01-13 Doug Evans <dje@google.com>
15976
15977 PR symtab/16426
15978 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15979 (try_open_dwop_file): Ditto.
15980 * gdb_bfd.c: #include "vec.h".
15981 (bfdp): New typedef.
15982 (struct gdb_bfd_data): New member included_bfds.
15983 (gdb_bfd_unref): Unref all included bfds.
15984 (gdb_bfd_record_inclusion): New function.
15985 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15986
c2cec97c
TT
159872014-01-13 Tom Tromey <tromey@redhat.com>
15988
15989 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15990
78e5999d
TT
159912014-01-13 Tom Tromey <tromey@redhat.com>
15992
15993 * defs.h (use_windows): Remove.
15994 * gdb.c (main): Update.
15995 * main.c (captured_main, gdb_main): Update.
15996 * main.h (struct captured_main_args) <use_windows>: Remove.
15997 * top.c (use_windows): Remove.
15998
f2052bbe
TT
159992014-01-13 Tom Tromey <tromey@redhat.com>
16000
16001 * defs.h (deprecated_flush_hook): Remove.
16002
fde4f8ed
JK
160032014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16004
16005 PR threads/16216
16006 * linux-thread-db.c (try_thread_db_load): Add parameter
16007 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16008 (try_thread_db_load_from_pdir_1): Move it there from here.
16009 (try_thread_db_load_from_sdir): Update caller.
16010 (try_thread_db_load_from_dir): Move it there from here.
16011
bdf61915
PP
160122014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16013
16014 * regformats/regdat.sh: Always rewrite the register file.
16015
f71e1a8d
PA
160162014-01-13 Pedro Alves <palves@redhat.com>
16017
16018 * Makefile.in (CHECK_HEADERS): New variable.
16019 (check-headers:): New rule.
16020
42c85435
TT
160212014-01-13 Tom Tromey <tromey@redhat.com>
16022
16023 * cli/cli-setshow.c (do_set_command): Update.
16024 * defs.h (deprecated_set_hook): Remove.
16025 * top.c (deprecated_set_hook): Remove.
16026
f8de5129
PA
160272014-01-13 Pedro Alves <palves@redhat.com>
16028
16029 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16030 the tracepoint if the PC is a pseudo-register.
16031
fc270c35
TT
160322014-01-13 Tom Tromey <tromey@redhat.com>
16033
16034 * defs.h (XCALLOC): Remove.
16035 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16036 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16037 * dwarf2loc.c (allocate_piece_closure): Likewise.
16038 * elfread.c (elf_symfile_segments): Likewise.
16039 (elf_symfile_segments): Likewise.
16040 * gdbtypes.c (copy_type_recursive): Likewise.
16041 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16042 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16043 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16044 XCALLOC.
16045 * mt-tdep.c (mt_gdbarch_init): Likewise.
16046 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16047 XCALLOC.
16048 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16049 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16050 * registry.c (registry_alloc_data): Likewise.
16051 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16052 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16053 * serial.c (serial_fdopen_ops): Likewise.
16054 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16055 XCALLOC.
16056 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16057 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16058 not XCALLOC.
16059
70ba0933
TT
160602014-01-13 Tom Tromey <tromey@redhat.com>
16061
16062 * defs.h (XMALLOC): Remove.
16063 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16064 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16065 * cli-out.c (struct ui_out *): Likewise.
16066 * cli/cli-dump.c (add_dump_command): Likewise.
16067 (add_dump_command): Likewise.
16068 * complaints.c (get_complaints): Likewise.
16069 (find_complaint): Likewise.
16070 * dwarf2-frame.c (execute_cfa_program): Likewise.
16071 * dwarf2read.c (abbrev_table_read_table): Likewise.
16072 * gdbarch.sh: Likewise.
16073 * gdbarch.c: Rebuild.
16074 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16075 * interps.c (interp_new): Likewise.
16076 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16077 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16078 * mi/mi-console.c (mi_console_file_new): Likewise.
16079 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16080 * mi/mi-out.c (mi_out_new): Likewise.
16081 * mi/mi-parse.c (mi_parse): Likewise.
16082 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16083 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16084 * observer.c (xalloc_observer_list_node): Likewise.
16085 * regcache.c (regcache_xmalloc_1): Likewise.
16086 * reggroups.c (reggroup_new): Likewise.
16087 (_initialize_reggroup): Likewise.
16088 * registry.c (register_data_with_cleanup): Likewise.
16089 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16090 * ser-base.c (serial_ttystate): Likewise.
16091 * ser-mingw.c (make_pipe_state): Likewise.
16092 * ser-pipe.c (pipe_open): Likewise.
16093 * serial.c (serial_open): Likewise.
16094 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16095 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16096 (tui_alloc_win_info): Likewise.
16097 (tui_add_content_elements): Likewise.
16098 * tui/tui-file.c (tui_file_new): Likewise.
16099 * tui/tui-out.c (tui_out_new): Likewise.
16100 * ui-file.c (mem_file_new): Likewise.
16101 * ui-out.c (push_level): Likewise.
16102 (make_cleanup_ui_out_end): Likewise.
16103 (append_header_to_list): Likewise.
16104 (ui_out_new): Likewise.
16105 * user-regs.c (user_reg_add_builtin): Likewise.
16106
41bf6aca
TT
161072014-01-13 Tom Tromey <tromey@redhat.com>
16108
16109 * defs.h (XZALLOC): Remove.
16110 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16111 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16112 (get_ada_tasks_inferior_data): Likewise.
16113 * auto-load.c (get_auto_load_pspace_data): Likewise.
16114 * auxv.c (get_auxv_inferior_data): Likewise.
16115 * bfd-target.c (target_bfd_reopen): Likewise.
16116 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16117 (deprecated_insert_raw_breakpoint): Likewise.
16118 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16119 * corelow.c (core_open): Likewise.
16120 * darwin-nat.c (darwin_check_new_threads): Likewise.
16121 (darwin_attach_pid): Likewise.
16122 * dummy-frame.c (dummy_frame_push): Likewise.
16123 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16124 * dwarf2loc.c (allocate_piece_closure): Likewise.
16125 * elfread.c (elf_symfile_segments): Likewise.
16126 * eval.c (ptrmath_type_p): Likewise.
16127 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16128 * gdbtypes.c (alloc_type_arch): Likewise.
16129 (alloc_type_instance): Likewise.
16130 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16131 * inf-child.c (inf_child_can_use_agent): Likewise.
16132 * inflow.c (get_inflow_inferior_data): Likewise.
16133 * infrun.c (save_infcall_suspend_state): Likewise.
16134 * jit.c (jit_reader_load): Likewise.
16135 (get_jit_objfile_data): Likewise.
16136 (get_jit_program_space_data): Likewise.
16137 (jit_object_open_impl): Likewise.
16138 (jit_symtab_open_impl): Likewise.
16139 (jit_block_open_impl): Likewise.
16140 (jit_frame_sniffer): Likewise.
16141 * linux-fork.c (add_fork): Likewise.
16142 * maint.c (make_command_stats_cleanup): Likewise.
16143 * objfiles.c (get_objfile_pspace_data): Likewise.
16144 * opencl-lang.c (struct lval_closure): Likewise.
16145 * osdata.c (osdata_start_osdata): Likewise.
16146 * progspace.c (new_address_space): Likewise.
16147 (add_program_space): Likewise.
16148 * remote-sim.c (get_sim_inferior_data): Likewise.
16149 * sh-tdep.c (sh_gdbarch_init): Likewise.
16150 * skip.c (Ignore): Likewise.
16151 (skip_delete_command): Likewise.
16152 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16153 (library_list_start_library): Likewise.
16154 (solib_aix_current_sos): Likewise.
16155 * solib-darwin.c (get_darwin_info): Likewise.
16156 (darwin_current_sos): Likewise.
16157 * solib-dsbt.c (get_dsbt_info): Likewise.
16158 * solib-ia64-hpux.c (new_so_list): Likewise.
16159 (ia64_hpux_get_solib_linkage_addr): Likewise.
16160 * solib-spu.c (append_ocl_sos): Likewise.
16161 (spu_current_sos): Likewise.
16162 * solib-svr4.c (get_svr4_info): Likewise.
16163 (svr4_keep_data_in_core): Likewise.
16164 (library_list_start_library): Likewise.
16165 (svr4_default_sos): Likewise.
16166 (svr4_read_so_list): Likewise.
16167 * solib-target.c (library_list_start_library): Likewise.
16168 (solib_target_current_sos): Likewise.
16169 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16170 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16171 * symfile.c (default_symfile_segments): Likewise.
16172 * target-descriptions.c (tdesc_data_init): Likewise.
16173 (tdesc_create_reg): Likewise.
16174 (struct tdesc_type *): Likewise.
16175 (tdesc_create_vector): Likewise.
16176 (tdesc_set_struct_size): Likewise.
16177 (struct tdesc_type *): Likewise.
16178 (tdesc_free_feature): Likewise.
16179 (tdesc_create_feature): Likewise.
16180 * windows-nat.c (windows_add_thread): Likewise.
16181 (windows_make_so): Likewise.
16182 * xml-support.c (gdb_xml_body_text): Likewise.
16183 (gdb_xml_create_parser_and_cleanup): Likewise.
16184 (xml_process_xincludes): Likewise.
16185 * xml-syscall.c (allocate_syscalls_info): Likewise.
16186 (syscall_create_syscall_desc): Likewise.
16187
5acfdbae
SDJ
161882014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16189
16190 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16191 function, with code from i386_stap_parse_special_token.
16192 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16193 (i386_stap_parse_special_token): Move code to the two functions
16194 above; simplify it.
16195
0000e5cc
PA
161962014-01-09 Pedro Alves <palves@redhat.com>
16197 Hui Zhu <hui@codesourcery.com>
16198
16199 PR gdb/16101
16200 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16201 bp_err_string. Don't mark the location shlib_disabled if the
16202 error thrown wasn't a generic or memory error. Catch errors
16203 thrown while inserting breakpoints in overlayed code. Output
16204 error message of software breakpoints.
16205 * remote.c (remote_insert_breakpoint): If this breakpoint has
16206 target-side commands but this stub doesn't support Z0 packets,
16207 throw NOT_SUPPORTED_ERROR error.
16208 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16209 * target.h (target_insert_breakpoint): Extend comment.
16210 (target_insert_hw_breakpoint): Add comment.
16211
b7ea362b
PA
162122014-01-08 Pedro Alves <palves@redhat.com>
16213
16214 * remote.c (remote_add_thread): Add threads silently if starting
16215 up.
16216 (remote_notice_new_inferior): If in all-stop, and starting up,
16217 don't call notice_new_inferior.
16218 (get_current_thread): New function, factored out from ...
16219 (add_current_inferior_and_thread): ... this. Adjust.
16220 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16221 found any thread, then select the remote's current thread as GDB's
16222 current thread too.
16223
b7bba001
JB
162242014-01-08 Joel Brobecker <brobecker@adacore.com>
16225
16226 * NEWS: Create a new section for the next release branch.
16227 Rename the section of the current branch, now that it has
16228 been cut.
16229
16dfbded
JB
162302014-01-08 Joel Brobecker <brobecker@adacore.com>
16231
16232 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16233 * version.in: Bump version to 7.7.50.DATE-cvs.
16234
22c90ac1
YQ
162352014-01-08 Yao Qi <yao@codesourcery.com>
16236
16237 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16238 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16239 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16240
d64ad97c
YQ
162412014-01-08 Yao Qi <yao@codesourcery.com>
16242
16243 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16244 return value of bfd_get_filename to symbol_file_add_from_bfd.
16245
f93ba80c
PM
162462014-01-08 Pierre Muller <muller@sourceware.org>
16247
16248 Fix PR16201.
16249 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16250 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16251 to prim_record_mininal_symbol_and_info.
16252 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16253 in call to prim_record_minimal_symbol_and_info.
16254 (read_pe_exported_syms): Set index field of section_data.
16255
a4d9ba85
AP
162562014-01-07 Andrew Pinski <apinski@cavium.com>
16257
16258 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16259 * features/aarch64.c: Regenerate.
16260
1b67eb02
AS
162612014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16262
16263 * target.c (return_null): Define.
16264 (update_current_target): Use it instead of return_zero for
16265 functions that return a pointer.
16266
5e3f4fab
EBM
162672014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16268
16269 * source.c (add_path): Fix check for duplicated paths in the previously
16270 included paths.
16271
e2616788
HK
162722014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16273
16274 * ada-lang.c: Remove duplicated include statements.
16275 * alphabsd-nat.c: Ditto.
16276 * amd64-darwin-tdep.c: Ditto.
16277 * amd64fbsd-nat.c: Ditto.
16278 * auto-load.c: Ditto.
16279 * ax-gdb.c: Ditto.
16280 * breakpoint.c: Ditto.
16281 * dbxread.c: Ditto.
16282 * fork-child.c: Ditto.
16283 * gdb_usleep.c: Ditto.
16284 * i386-darwin-tdep.c: Ditto.
16285 * i386fbsd-nat.c: Ditto.
16286 * infcmd.c: Ditto.
16287 * inferior.c: Ditto.
16288 * jv-lang.c: Ditto.
16289 * linux-nat.c: Ditto.
16290 * linux-tdep.c: Ditto.
16291 * m68kbsd-nat.c: Ditto.
16292 * m68klinux-nat.c: Ditto.
16293 * microblaze-tdep.c: Ditto.
16294 * mips-linux-tdep.c: Ditto.
16295 * mn10300-tdep.c: Ditto.
16296 * nto-tdep.c: Ditto.
16297 * opencl-lang.c: Ditto.
16298 * osdata.c: Ditto.
16299 * printcmd.c: Ditto.
16300 * regcache.c: Ditto.
16301 * remote-m32r-sdi.c: Ditto.
16302 * remote.c: Ditto.
16303 * symfile.c: Ditto.
16304 * symtab.c: Ditto.
16305 * tilegx-linux-nat.c: Ditto.
16306 * tilegx-tdep.c: Ditto.
16307 * tracepoint.c: Ditto.
16308 * valops.c: Ditto.
16309 * vaxbsd-nat.c: Ditto.
16310 * windows-nat.c: Ditto.
16311 * xtensa-tdep.c: Ditto.
16312
bd1f7788
YQ
163132014-01-07 Yao Qi <yao@codesourcery.com>
16314
16315 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16316
79301218
JB
163172014-01-07 Yao Qi <yao@codesourcery.com>
16318 Joel Brobecker <brobecker@adacore.com>
16319
16320 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16321 (pdc_write_regs): Likewise.
16322 (fetch_regs_kernel_thread): Likewise.
16323 (store_regs_kernel_thread): Likewise.
16324
163252014-01-07 Joel Brobecker <brobecker@adacore.com>
16326
16327 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16328 tagged type objects to their actual type.
16329
8e355c5d
JB
163302014-01-07 Joel Brobecker <brobecker@adacore.com>
16331
16332 * ada-valprint.c (print_field_values): Add "language" parameter.
16333 Update calls to print_field_values and print_variant_part.
16334 Pass new parameter "language" in call to val_print instead
16335 of "current_language". Replace call to ada_val_print by call
16336 to val_print.
16337 (print_variant_part): Add "language" parameter.
16338 (ada_val_print_struct_union): Update call to print_field_values.
16339
4fbf5aa5
JB
163402014-01-07 Joel Brobecker <brobecker@adacore.com>
16341
16342 * ada-valprint.c (ui_memcpy): Delete.
16343 (ada_print_floating): Update documentation. Add empty line
16344 between between function documentation and implementation.
16345 Delete variable "buffer". Use ui_file_xstrdup in place of
16346 ui_file_put. Minor adjustments following this change.
16347
71855601
JB
163482014-01-07 Joel Brobecker <brobecker@adacore.com>
16349
16350 * ada-valprint.c (ada_val_print_string): New function,
16351 extracted from ada_val_print_array.
16352 (ada_val_print_array): Replace extracted code by call
16353 to ada_val_print_string followed by a return. Move
16354 "else" branch to the function's top block.
16355
4eb27a30
JB
163562014-01-07 Joel Brobecker <brobecker@adacore.com>
16357
16358 * ada-valprint.c (ada_val_print_array): Move implementation
16359 down. Rename parameter "offset" and "val" into "offset_aligned"
16360 and "original_value" respectively. Add parameter "offset".
16361
34b27950
JB
163622014-01-07 Joel Brobecker <brobecker@adacore.com>
16363
16364 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16365 re-organizing the code. Change the "???" message printed
16366 when target type is a TYPE_CODE_UNDEF into
16367 "<ref to undefined type>".
16368
079e4591
JB
163692014-01-07 Joel Brobecker <brobecker@adacore.com>
16370
16371 * ada-valprint.c (print_record): Delete, implementation inlined...
16372 (ada_val_print_struct_union): ... here. Remove call to
16373 ada_check_typedef in inlined implementation.
16374
8004dfd1
JB
163752014-01-07 Joel Brobecker <brobecker@adacore.com>
16376
16377 * ada-valprint.c (ada_val_print_gnat_array): New function,
16378 extracted from ada_val_print_1;
16379 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16380 (ada_val_print_flt, ada_val_print_struct_union)
16381 (ada_val_print_ref): Likewise.
16382 (ada_val_print_1): Delete variables i and elttype.
16383 Replace extracted-out code by call to corresponding
16384 new functions.
16385
760a2db0
JB
163862014-01-07 Joel Brobecker <brobecker@adacore.com>
16387
16388 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16389
3a92c861
JB
163902014-01-07 Joel Brobecker <brobecker@adacore.com>
16391
16392 * ada-valprint.c (ada_val_print_1): Replace calls to
16393 ada_val_print_1 by calls to val_print.
16394
cd1630f9
JB
163952014-01-07 Joel Brobecker <brobecker@adacore.com>
16396
16397 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16398 Update calls to self accordingly. Replace calls to c_val_print
16399 by calls to val_print.
16400
bdf779a0
JB
164012014-01-07 Joel Brobecker <brobecker@adacore.com>
16402
16403 * ada-valprint.c (print_record): Delete declaration.
16404 (adjust_type_signedness, ada_val_print_1): Likewise.
16405 (ada_val_print): Move function implementation down.
16406 (print_variant_part, print_field_values, print_record):
16407 Move function implementation up.
16408
c0d48811
JB
164092014-01-07 Joel Brobecker <brobecker@adacore.com>
16410
16411 * python/py-type.c (typy_get_name): New function.
16412 (type_object_getset): Add entry for attribute "name".
16413 * NEWS: Add entry mentioning this new attribute.
16414
c26e9cbb
YQ
164152014-01-07 Yao Qi <yao@codesourcery.com>
16416
16417 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16418 statement.
16419
0cc6f43d
YQ
164202014-01-07 Yao Qi <yao@codesourcery.com>
16421
16422 * gnu-nat.c (info_port_rights): Add qualifier const to
16423 argument args.
16424
eec03155
YQ
164252014-01-07 Yao Qi <yao@codesourcery.com>
16426
16427 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16428
f04a82ef
YQ
164292014-01-07 Yao Qi <yao@codesourcery.com>
16430
16431 * gnu-nat.c (make_inf) Update declaration.
16432 (make_inf): Make it static.
16433 (inf_set_traced): Likewise.
16434 (inf_port_to_thread, inf_task_died_status): Likewise.
16435
d57dda0a
YQ
164362014-01-07 Yao Qi <yao@codesourcery.com>
16437
16438 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16439
3aa8c969
YQ
164402014-01-07 Yao Qi <yao@codesourcery.com>
16441
16442 * gnu-nat.c (_initialize_gnu_nat): Declare.
16443
94123b4f
YQ
164442014-01-07 Yao Qi <yao@codesourcery.com>
16445
16446 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16447 'enum bfd_endian'.
16448 (struct gdbarch_info) <byte_order>: Change type to
16449 'enum bfd_endian'.
16450 <byte_order_for_code>: Likewise.
16451 * gdbarch.c, gdbarch.h: Regenerated.
16452
dc81d70a
TT
164532014-01-06 Sasha Smundak <asmundak@google.com>
16454
16455 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16456
cc2f3c35
TT
164572014-01-06 Tom Tromey <tromey@redhat.com>
16458
16459 * doublest.c (convert_doublest_to_floatformat): Use const, not
16460 CONST.
16461 * somread.c (som_symtab_read): Likewise.
16462
adcf2eed
HZ
164632014-01-07 Hui Zhu <hui@codesourcery.com>
16464
16465 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16466 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16467 (gdb_bfd_fopen): Ditto.
16468 (gdb_bfd_openr): Ditto.
16469 (gdb_bfd_openw): Ditto.
16470 (gdb_bfd_openr_iovec): Ditto.
16471 (gdb_bfd_fdopenr): Ditto.
16472 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16473 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16474 with xstrdup.
16475 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16476 with xstrdup.
16477 * symfile-mem.c (symbol_file_add_from_memory): Removed
16478 gdb_bfd_stash_filename.
16479
50722198
DE
164802014-01-03 Doug Evans <dje@google.com>
16481
16482 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16483 output.
16484
2fa4b862
JB
164852014-01-01 Joel Brobecker <brobecker@adacore.com>
16486
16487 Update year range in copyright notice of all files.
16488
28498c42
JB
164892014-01-01 Joel Brobecker <brobecker@adacore.com>
16490
16491 * top.c (print_gdb_version): Set copyright year to 2014.
16492
7b6e1046
JB
164932014-01-01 Joel Brobecker <brobecker@adacore.com>
16494
16495 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16496
df96af55 16497For older changes see ChangeLog-2013.
c906108c
SS
16498\f
16499Local Variables:
16500mode: change-log
16501left-margin: 8
16502fill-column: 74
16503version-control: never
57da7796 16504coding: utf-8
c906108c 16505End:
This page took 2.40699 seconds and 4 git commands to generate.