ARM: Add support for value 3 of Tag_ABI_VFP_args attribute
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5c294fee
TG
12014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2
3 * arm-tdep.c (arm_gdbarch_init): Explicitely handle value 3 of
4 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
5 switch handling the different values of Tag_ABI_VFP_args.
6
1994afbf
DE
72014-12-23 Doug Evans <xdje42@gmail.com>
8
9 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
10 objfile-owned.
11 (cache_symbol): Ignore symbols that are not objfile-owned.
12 * block.c (block_objfile): New function.
13 (block_gdbarch): New function.
14 * block.h (block_objfile): Declare.
15 (block_gdbarch): Declare.
16 * c-exp.y (classify_name): Remove call to
17 language_lookup_primitive_type. No longer necessary.
18 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
19 Remove call to language_lookup_primitive_type. No longer necessary.
20 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
21 (syscm_gdbarch_data): New struct.
22 (syscm_init_arch_symbols): New function.
23 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
24 All callers updated. Handle symbols owned by arches.
25 (gdbscm_symbol_symtab): Handle symbols owned by arches.
26 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
27 * language.c (language_lookup_primitive_type_1): New function.
28 (language_lookup_primitive_type): Call it.
29 (language_alloc_type_symbol): New function.
30 (language_init_primitive_type_symbols): New function.
31 (language_lookup_primitive_type_as_symbol): New function.
32 * language.h (struct language_arch_info) <primitive_type_symbols>:
33 New member.
34 (language_lookup_primitive_type): Add function comment.
35 (language_lookup_primitive_type_as_symbol): Declare.
36 * printcmd.c (address_info): Handle arch-owned symbols.
37 * python/py-symbol.c (sympy_get_symtab): Ditto.
38 (set_symbol): Ditto.
39 (sympy_dealloc): Ditto.
40 * symmisc.c (print_symbol): Ditto.
41 * symtab.c (fixup_symbol_section): Ditto.
42 (lookup_symbol_aux): Initialize block_found.
43 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
44 primitive type.
45 (initialize_objfile_symbol_1): New function.
46 (initialize_objfile_symbol): Call it.
47 (allocate_symbol): Call it.
48 (allocate_template_symbol): Call it.
49 (symbol_objfile): Assert symbol is objfile-owned.
50 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
51 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
52 (struct symbol) <is_objfile_owned>: New member.
53 (SYMBOL_OBJFILE_OWNED): New macro.
54 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
55 All callers updated. Try to find the symbol as a primitive type.
56 (lookup_namespace_scope): New arg langdef. All callers updated.
57 Call cp_lookup_bare_symbol directly for simple bare symbols.
58
c01feb36
DE
592014-12-23 Doug Evans <xdje42@gmail.com>
60
61 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
62 (struct symbol) <domain>: Use it.
63
38bf1463
DE
642014-12-23 Doug Evans <xdje42@gmail.com>
65
66 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
67 All callers updated.
68
f606139a
DE
692014-12-23 Doug Evans <xdje42@gmail.com>
70
71 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
72 New arg language_defn. All uses updated.
73
08be3fe3
DE
742014-12-23 Doug Evans <xdje42@gmail.com>
75
76 * symtab.h (SYMBOL_SYMTAB): Delete
77 (SYMBOL_OBJFILE): Delete.
78 (symbol_symtab, symbol_set_symtab): Declare.
79 (symbol_objfile, symbol_arch): Declare.
80 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
81 All references to symbol->symtab redirected through here.
82 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
83 redirected through here.
84 (symbol_arch): New function.
85 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
86 All uses updated.
87 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
88 symbol_arch.
89 * findvar.c (default_read_var_value): Call symbol_arch.
90 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
91 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
92 * printcmd.c (address_info): Call symbol_arch.
93 * tracepoint.c (scope_info): Call symbol_arch.
94
f953163f
DE
952014-12-22 Doug Evans <xdje42@gmail.com>
96
97 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
98 (cp_lookup_symbol_namespace): Call it.
99 (cp_lookup_symbol_nonlocal): Ditto.
100
4bd0864e
DE
1012014-12-22 Doug Evans <xdje42@gmail.com>
102
103 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
104 "search_scope_first". All callers updated.
105
6f27419a
DE
1062014-12-22 Doug Evans <xdje42@gmail.com>
107
108 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
109 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
110 arg "search". All callers updated.
111 (cp_lookup_bare_symbol): New function.
112 (cp_search_static_and_baseclasses): New function.
113 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
114 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
115 (cp_lookup_nested_symbol): Ditto.
116
d2763117
DE
1172014-12-22 Doug Evans <xdje42@gmail.com>
118
119 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
120
791244be
DE
1212014-12-22 Doug Evans <xdje42@gmail.com>
122
123 * cp-namespace.c: Whitespace cleanup.
124
87186c6a
MMN
1252014-12-20 Keith Seitz <keiths@redhat.com>
126 Mihail-Marian Nistor <mihail.nistor@freescale.com>
127
128 PR gdb/17394
129 * linespec.c (struct collect_minsyms): Add new member `symtab'.
130 (add_minsym): Handle cases where info.symtab is non-NULL.
131 (search_minsyms_for_name): Add new parameter `symtab'.
132 Handle limiting searches to a specific symtab.
133 (add_matching_symtabs_to_info): Search through minimal symbols
134 for language_asm files for which no new symbols are found.
135
bb7e3f4d
YQ
1362014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
137 Nigel Stephens <nigel@mips.com>
138 Chris Dearman <chris@mips.com>
139 Luis Machado <lgustavo@codesourcery.com>
140
141 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
142 (ALLDEPFILES): Add mips-sde-tdep.c.
143 * mips-sde-tdep.c: New file containg SDE specific code.
144 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
145 gdb_target_obs.
146 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
147 * osabi.c (gdb_osabi_names): Add SDE.
148 * NEWS: Mention the change.
149
db7a9bcd
SM
1502014-12-18 Simon Marchi <simon.marchi@ericsson.com>
151
152 * elfread.c (elf_symfile_init): Remove stale comment.
153 (elf_symfile_read): Same.
154 * symfile.h (struct sym_fns): Same.
155
1bab7383
YQ
1562014-12-18 Nigel Stephens <nigel@mips.com>
157 Maciej W. Rozycki <macro@codesourcery.com>
158
159 * mips-tdep.c (print_fpu_flags): New function.
160 (mips_print_float_info): Likewise.
161 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
162 print_float_info routine.
163
cc86d1cb
YQ
1642014-12-18 Yao Qi <yao@codesourcery.com>
165
166 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
167 * gdbarch.c: Re-generated.
168 * gdbarch.h: Likewise.
169 * infcmd.c (default_print_float_info): New function.
170 (print_float_info): Removed. Move code to
171 default_print_float_info.
172 (float_info): Adjust to call gdbarch_print_float_info.
173 * inferior.h (default_print_float_info): Declare it.
174
2ad47ec4
YQ
1752014-12-18 Yao Qi <yao@codesourcery.com>
176
177 * h8300-tdep.c (h8300_print_float_info): Remove.
178 (h8300_gdbarch_init): Remove the call to
179 set_gdbarch_print_float_info.
180
253342b8
DE
1812014-12-18 Doug Evans <xdje42@gmail.com>
182
183 * infcmd.c (jump_command): Minor simplification.
184
46b0da17
DE
1852014-12-18 Doug Evans <xdje42@gmail.com>
186
187 * language.c (language_lookup_primitive_type): Renamed from
188 language_lookup_primitive_type_by_name. All callers updated.
189
1bc1068a
JK
1902014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
191
192 Fix MinGW compilation.
193 * compile/compile.c (get_compile_file_tempdir): Call error if
194 !HAVE_MKDTEMP.
195 * config.in: Regenerate.
196 * configure: Regenerate.
197 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
198
5e3c72e6
DE
1992014-12-17 Doug Evans <xdje42@gmail.com>
200
201 * valops.c (value_maybe_namespace_elt): Remove redundant call to
202 lookup_static_symbol.
203
cc485e62
DE
2042014-12-17 Doug Evans <xdje42@gmail.com>
205
206 New parameter "debug symbol-lookup".
207 * NEWS: Mention it.
208 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
209 output.
210 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
211 (cp_lookup_nested_symbol): Ditto.
212 * language.c (language_lookup_primitive_type_by_name): Add debug
213 output.
214 * minsyms.c (lookup_minimal_symbol): Add debug output.
215 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
216 * symfile-debug.c (debug_objfile_name): ... from here. All callers
217 updated.
218 * objfiles.h (objfile_debug_name): Declare.
219 * symtab.h (symbol_lookup_debug): Declare.
220 * symtab.c (symbol_lookup_debug): New global.
221 (lookup_language_this): Add debug output.
222 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
223 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
224 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
225 (_initialize_symtab): Add new parameter "debug symbol-lookup".
226
0ab9ce85
DE
2272014-12-16 Doug Evans <xdje42@gmail.com>
228
229 * buildsym.c: Add comments describing how the buildsym machinery
230 is used by the various file formats.
231 (really_free_pendings): Enhance function comment.
232 See pending_macros to NULL. Simplify resetting pending_addrmap.
233 Call free_buildsym_compunit.
234 (free_buildsym_compunit): Set current_subfile to NULL.
235 (prepare_for_building): New function.
236 (start_symtab): Call it. Remove call to set_last_source_file.
237 (restart_symtab): New arg "cust". All callers updated.
238 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
239 (reset_symtab_globals): Enhance function comment.
240 Set local_symbols, file_symbols, global_symbols to NULL.
241 Set pending_macros to NULL. Simplify resetting pending_addrmap.
242 Call free_buildysym_compunit.
243 (end_symtab_without_blockvector): Delete. All callers updated.
244 (end_symtab_with_blockvector): Remove redundant call to
245 free_buildsym_compunit.
246 (augment_type_symtab): Remove arg "cust". All callers updated.
247 (buildsym_init): Remove resetting of free_pendings, file_symbols,
248 global_symbols, pending_blocks, pending_macros. Instead make
249 handling consistent with pending_addrmap: Assert value was reset
250 at end of previous symtab building. Initialize context_stack here.
251
55accf4a
DE
2522014-12-16 Doug Evans <xdje42@gmail.com>
253
254 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
255 cp_lookup_symbol_imports. All callers updated.
256
a07e3e18
DE
2572014-12-16 Doug Evans <xdje42@gmail.com>
258
259 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
260 find_type_baseclass_by_name. All callers updated.
261
d01060f0
DE
2622014-12-16 Doug Evans <xdje42@gmail.com>
263
264 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
265 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
266 (print_symbol_info): Delete arg symtab. All callers updated.
267 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
268
25dda427
AA
2692014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
270
271 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
272 "Name" columns. Assure that the output is always indented.
273
beed38b8
JB
2742014-12-16 Joel Brobecker <brobecker@adacore.com>
275
276 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
277 already defined.
278 (linux_enable_event_reporting): Add parameter "attached".
279 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
280 declaration. New function.
281 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
282 (linux_enable_event_reporting): Add new parameter "attached".
283 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
284 nonzero.
285 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
286 Use it. Update function description.
287 (linux_child_post_attach, linux_child_post_startup_inferior):
288 Update call to linux_enable_event_reporting.
289
8fda9068
YQ
2902014-12-16 Yao Qi <yao@codesourcery.com>
291
292 * NEWS: Move some entries to "Changes since GDB 7.8" section.
293
2a546367
YQ
2942014-12-16 Yao Qi <yao@codesourcery.com>
295
296 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
297 ARG_LAST.
298
c9657e70
SM
2992014-12-15 Simon Marchi <simon.marchi@ericsson.com>
300
301 * inferior.c (find_inferior_ptid): New function.
302 * inferior.h (find_inferior_ptid): New declaration.
303 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
304 * corelow.c (core_pid_to_str): Same.
305 * darwin-nat.c (darwin_resume): Same.
306 * infrun.c (fetch_inferior_event): Same.
307 (get_inferior_stop_soon): Same.
308 (handle_inferior_event): Same.
309 (handle_signal_stop): Same.
310 * linux-nat.c (resume_lwp): Same.
311 (stop_wait_callback): Same.
312 * mi/mi-interp.c (mi_new_thread): Same.
313 (mi_thread_exit): Same.
314 * proc-service.c (ps_pglobal_lookup): Same.
315 * record-btrace.c (record_btrace_step_thread): Same.
316 * remote-sim.c (gdbsim_close_inferior): Same.
317 (gdbsim_resume): Same.
318 (gdbsim_stop): Same.
319 * sol2-tdep.c (sol2_core_pid_to_str): Same.
320 * target.c (memory_xfer_partial_1): Same.
321 (default_thread_address_space): Same.
322 * thread.c (thread_change_ptid): Same.
323 (switch_to_thread): Same.
324 (do_restore_current_thread_cleanup): Same.
325
38bcc89d
SM
3262014-12-15 Simon Marchi <simon.marchi@ericsson.com>
327
328 * defs.h (gdb_readline): Constify argument.
329 (gdb_readline_wrapper): Same.
330 (command_line_input): Same.
331 (deprecated_readline_hook): Same.
332 * top.c (deprecated_readline_hook): Same.
333 (gdb_readline): Same.
334 (gdb_readline_wrapper): Same.
335 (command_line_input): Constify argument. Pass prompt_arg to called
336 functions instead of local_prompt, overwriting prompt_arg if necessary.
337 * event-top.h (display_gdb_prompt): Constify argument.
338 * event-top.c (display_gdb_prompt): Same.
339 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
340 if building with Python 3.4 and up.
341
89ed8ea1
SM
3422014-12-15 Simon Marchi <simon.marchi@ericsson.com>
343
344 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
345 os.getcwdu().
346
aacd3e8c
CU
3472014-12-15 Catalin Udma <catalin.udma@freescale.com>
348
349 PR gdb/15684
350 * memattr.c (mem_info_command): Remove "unsigned long" casts.
351
dc4d6886
DE
3522014-12-13 Doug Evans <xdje42@gmail.com>
353
354 * utils.c (make_hex_string): Fix off-by-one error.
355
c1b5a1a6
JB
3562014-12-13 Joel Brobecker <brobecker@adacore.com>
357
358 * ada-lang.h (ada_ensure_varsize_limit): Declare.
359 * ada-lang.c (check_size): Remove advance declaration.
360 (ada_ensure_varsize_limit): Renames check_size.
361 Replace calls to check_size by calls to ada_ensure_varsize_limit
362 throughout.
363 * ada-valprint.c (ada_val_print_ref): Add call to
364 ada_ensure_varsize_limit. Add comment explaining why.
365
3c46a02f
JB
3662014-12-13 Joel Brobecker <brobecker@adacore.com>
367
368 * utils.c (make_hex_string): Replace use of sprintf by use of
369 xsnprintf.
370
8e8347b8
JB
3712014-12-13 Joel Brobecker <brobecker@adacore.com>
372
373 * compile/compile-object-load.c (link_callbacks_multiple_definition)
374 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
375 newline at end of warning message.
376
f93b65a0
JB
3772014-12-13 Joel Brobecker <brobecker@adacore.com>
378
379 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
380 new "EXTRA-ARGS" parameter.
381 * configure.ac: If large-file support is disabled in GDB,
382 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
383 * configure: Regenerate.
384
5537b577
JK
3852014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 PR symtab/17642
388 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
389 TYPE if not TYPE_CODE_TYPEDEF.
390
e0782980
JB
3912014-12-13 Joel Brobecker <brobecker@adacore.com>
392
393 PR backtrace/16215:
394 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
395 the frame unwinder must either be the dwarf2_frame_unwind
396 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
397 stack_addr is valid before calling get_frame_base. Throw
398 an error if not valid.
399
ae6a105d
DE
4002014-12-12 Doug Evans <xdje42@gmail.com>
401
402 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
403 result != NULL.
404
59da4d04
DE
4052014-12-12 Doug Evans <xdje42@gmail.com>
406
407 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
408 All callers updated. Rename arg "namespace" to "symbol_name".
409
83827540
DE
4102014-12-12 Doug Evans <xdje42@gmail.com>
411
412 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
413 partial_map_symtabs_matching_filename. All uses updated.
414 (psym_find_pc_sect_compunit_symtab): Renamed from
415 find_pc_sect_compunit_symtab_from_partial. All uses updated.
416 Add function comment.
417 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
418 All uses updated. Add function comment.
419 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
420 Add function comment.
421 (psym_find_last_source_symtab): Renamed from
422 find_last_source_symtab_from_partial. All uses updated.
423 Add function comment.
424 (psym_forget_cached_source_info): Renamed from
425 forget_cached_source_info_partial. All uses updated.
426 Add function comment.
427 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
428 All uses updated. Add function comment.
429 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
430 updated. Add function comment.
431 (psym_expand_symtabs_for_function): Renamed from
432 read_symtabs_for_function. All uses updated. Update function comment.
433 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
434 All uses updated. Add function comment.
435 (psym_expand_symtabs_with_fullname): Renamed from
436 read_psymtabs_with_fullname. All uses updated. Add function comment.
437 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
438 All uses updated. Add function comment.
439 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
440 All uses updated.
441 (psym_expand_symtabs_matching): Renamed from
442 expand_symtabs_matching_via_partial. All uses updated.
443 Add function comment.
444 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
445 Add function comment.
446
bb2ec1b3
TT
4472014-12-12 Phil Muldoon <pmuldoon@redhat.com>
448 Jan Kratochvil <jan.kratochvil@redhat.com>
449 Tom Tromey <tromey@redhat.com>
450
451 * NEWS: Update.
452 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
453 field.
454 * p-lang.c (pascal_language_defn): Update.
455 * opencl-lang.c (opencl_language_defn): Update.
456 * objc-lang.c (objc_language_defn): Update.
457 * m2-lang.c (m2_language_defn): Update.
458 * language.h (struct language_defn) <la_get_compile_instance,
459 la_compute_program>: New fields.
460 * language.c (unknown_language_defn, auto_language_defn)
461 (local_language_defn): Update.
462 * jv-lang.c (java_language_defn): Update.
463 * go-lang.c (go_language_defn): Update.
464 * f-lang.c (f_language_defn): Update.
465 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
466 * dwarf2loc.c (dwarf2_compile_property_to_c)
467 (locexpr_generate_c_location, loclist_generate_c_location): New
468 functions.
469 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
470 * defs.h (enum compile_i_scope_types): New.
471 (enum command_control_type) <compile_control>: New constant.
472 (struct command_line) <control_u>: New field.
473 * d-lang.c (d_language_defn): Update.
474 * compile/compile.c: New file.
475 * compile/compile-c-support.c: New file.
476 * compile/compile-c-symbols.c: New file.
477 * compile/compile-c-types.c: New file.
478 * compile/compile.h: New file.
479 * compile/compile-internal.h: New file.
480 * compile/compile-loc2c.c: New file.
481 * compile/compile-object-load.c: New file.
482 * compile/compile-object-load.h: New file.
483 * compile/compile-object-run.c: New file.
484 * compile/compile-object-run.h: New file.
485 * cli/cli-script.c (multi_line_command_p, print_command_lines)
486 (execute_control_command, process_next_line)
487 (recurse_read_control_structure): Handle compile_control.
488 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
489 * c-lang.c (c_language_defn, cplus_language_defn)
490 (asm_language_defn, minimal_language_defn): Update.
491 * ada-lang.c (ada_language_defn): Update.
492 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
493 New variables.
494 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
495 (HFILES_NO_SRCDIR): Add compile.h.
496 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
497 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
498 (compile.o, compile-c-types.o, compile-c-symbols.o)
499 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
500 (compile-c-support.o): New targets.
501
a2658feb
JK
5022014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 * s390-linux-tdep.c (s390_gcc_target_options): New function.
505 (s390_gdbarch_init): Add it to gdbarch.
506
3bc3cebe
JK
5072014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * linux-tdep.c: Include objfiles.h and infcall.h.
510 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
511 function.
512 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
513
d064d1be
JK
5142014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
517 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
518 translate_register. Now public.
519 (dwarf2_compile_expr_to_ax): Update.
520
af945b75
TT
5212014-12-12 Tom Tromey <tromey@redhat.com>
522 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
525 (dwarf_expr_frame_base): Update caller.
526 (dwarf_expr_frame_base_1): Rename to ...
527 (func_get_frame_base_dwarf_block): ... this and make it public.
528 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
529 callers.
530 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
531
a8fd5589
TT
5322014-12-12 Tom Tromey <tromey@redhat.com>
533
534 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
535 Update.
536 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
537 dwarf2_compile_cfa_to_ax.
538 (dwarf2_compile_cfa_to_ax): Remove.
539 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
540 (dwarf2_compile_cfa_to_ax): Remove.
541
ed12ef62
JK
5422014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
543
544 * infcall.h (call_function_by_hand_dummy): Declare.
545 * infcall.c (call_function_by_hand): Use
546 call_function_by_hand_dummy.
547 (call_function_by_hand_dummy): Rename from call_function_by_hand.
548 Add arguments. Register a destructor.
549
ac04f72b
TT
5502014-12-12 Tom Tromey <tromey@redhat.com>
551 Jan Kratochvil <jan.kratochvil@redhat.com>
552
553 * osabi.h (osabi_triplet_regexp): Declare.
554 * osabi.c (struct osabi_names): New.
555 (gdb_osabi_names): Change type to struct osabi_names. Update
556 values.
557 (gdbarch_osabi_name): Update.
558 (osabi_triplet_regexp): New function.
559 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
560 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
561 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
562 set_gdbarch_gnu_triplet_regexp.
563 * gdbarch.sh (gnu_triplet_regexp): New method.
564 * gdbarch.c, gdbarch.h: Rebuild.
565 * arch-utils.h (default_gnu_triplet_regexp): Declare.
566 * arch-utils.c (default_gnu_triplet_regexp): New function.
567
f208eee0
JK
5682014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 * arch-utils.c (default_infcall_mmap)
571 (default_gcc_target_options): New functions.
572 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
573 (GDB_MMAP_PROT_EXEC): Define.
574 (default_infcall_mmap, default_gcc_target_options): Declare.
575 * gdbarch.h: Rebuild.
576 * gdbarch.c: Rebuild.
577 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
578
233a8fb3
JK
5792014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
580
581 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
582 fields.
583 (pop_dummy_frame): Call the destructor if it exists.
584 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
585 functions.
586 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
587 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
588
f1660027
TT
5892014-12-12 Tom Tromey <tromey@redhat.com>
590
591 * gdbtypes.h (make_unqualified_type): Declare.
592 * gdbtypes.c (make_unqualified_type): New function.
593
de571fc5
TT
5942014-12-12 Tom Tromey <tromey@redhat.com>
595
596 * ui-file.h (ui_file_write_for_put): Declare.
597 * ui-file.c (ui_file_write_for_put): New function.
598 * mi/mi-out.c (do_write): Remove.
599 (mi_out_put): Use ui_file_write_for_put.
600
6dddd6a5
DE
6012014-12-12 Doug Evans <dje@google.com>
602
603 * NEWS: Mention gdb.lookup_objfile.
604 * python/python.c (GdbMethods): Add lookup_objfile.
605 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
606 * python/py-objfile.c: #include "symtab.h".
607 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
608 (objfpy_lookup_objfile_by_name): New function.
609 (objfpy_lookup_objfile_by_build_id): New function.
610 (gdbpy_lookup_objfile): New function.
611
f161c171
MR
6122014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
613
614 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
615 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
616 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
617 macros.
618 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
619 Likewise.
620
71c24708
AA
6212014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
622
623 * completer.c: Include "target.h", "reggroups.h", and
624 "user-regs.h".
625 (reg_or_group_completer): New.
626 * completer.h (reg_or_group_completer): Declare.
627 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
628 the "info registers" and "info all-registers" commands and the
629 dbx-mode "lr" command.
630
f5b95c01
AA
6312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
632
633 * user-regs.c: Include "arch-utils.h", "command.h", and
634 "cli/cli-cmds.h".
635 (maintenance_print_user_registers): New.
636 (_initialize_user_regs): Register new "maint print user-registers"
637 subcommand.
638 * NEWS: Mention new GDB command "maint print user-registers".
639
3e29f34a
MR
6402014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
641 Maciej W. Rozycki <macro@mips.com>
642 Pedro Alves <pedro@codesourcery.com>
643
644 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
645 remove `predefault' and `invalid_p' initializers.
646 (make_symbol_special): New architecture method.
647 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
648 (objfile, symbol): New declarations.
649 * arch-utils.h (default_elf_make_msymbol_special): Remove
650 prototype.
651 (default_make_symbol_special): New prototype.
652 (default_adjust_dwarf2_addr): Likewise.
653 (default_adjust_dwarf2_line): Likewise.
654 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
655 * arch-utils.c (default_elf_make_msymbol_special): Remove
656 function.
657 (default_make_symbol_special): New function.
658 (default_adjust_dwarf2_addr): Likewise.
659 (default_adjust_dwarf2_line): Likewise.
660 * dwarf2-frame.c (decode_frame_entry_1): Call
661 `gdbarch_adjust_dwarf2_addr'.
662 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
663 * dwarf2read.c (create_addrmap_from_index): Likewise.
664 (process_psymtab_comp_unit_reader): Likewise.
665 (add_partial_symbol): Likewise.
666 (add_partial_subprogram): Likewise.
667 (process_full_comp_unit): Likewise.
668 (read_file_scope): Likewise.
669 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
670 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
671 (read_call_site_scope): Likewise.
672 (dwarf2_ranges_read): Likewise.
673 (dwarf2_record_block_ranges): Likewise.
674 (read_attribute_value): Likewise.
675 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
676 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
677 * elfread.c (elf_symtab_read): Don't call
678 `gdbarch_elf_make_msymbol_special' if unset.
679 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
680 the ISA bit from the PC.
681 * mips-tdep.c (mips_unmake_compact_addr): New function.
682 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
683 address appropriately.
684 (mips_make_symbol_special): New function.
685 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
686 (mips_pc_is_mips16): Likewise.
687 (mips_pc_is_micromips): Likewise.
688 (mips_pc_isa): Likewise.
689 (mips_adjust_dwarf2_addr): New function.
690 (mips_adjust_dwarf2_line): Likewise.
691 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
692 (mips_addr_bits_remove): Likewise.
693 (mips_skip_trampoline_code): Likewise.
694 (mips_write_pc): Don't set the ISA bit.
695 (mips_eabi_push_dummy_call): Likewise.
696 (mips_o64_push_dummy_call): Likewise.
697 (mips_gdbarch_init): Install `mips_make_symbol_special',
698 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
699 handlers.
700 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
701 target-specific symbol address adjustments.
702 * gdbarch.h: Regenerate.
703 * gdbarch.c: Regenerate.
704
21daaaaf
YQ
7052014-12-12 Yao Qi <yao@codesourcery.com>
706
707 PR tdep/14261
708 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
709 'skip_pc'. Remove code skipping prologue instructions, use
710 arm_analyze_prologue instead.
711 (arm_analyze_prologue): Stop the scanning for unrecognized
712 instruction when skipping prologue.
713
f303bc3e
YQ
7142014-12-12 Yao Qi <yao@codesourcery.com>
715
716 * arm-tdep.c (arm_instruction_restores_sp): New function.
717 (arm_analyze_prologue): Call arm_instruction_restores_sp.
718 (arm_in_function_epilogue_p): Move code to
719 arm_instruction_restores_sp.
720
05a6c3c8
DE
7212014-12-11 Doug Evans <xdje42@gmail.com>
722
723 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
724
fe2a438d
DE
7252014-12-11 Doug Evans <xdje42@gmail.com>
726
727 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
728 (symbol *lookup_symbol_via_quick_fns): Ditto.
729 (lookup_symbol_in_objfile): Add forward decl.
730 (lookup_global_symbol_from_objfile): Simplify, call
731 lookup_symbol_in_objfile.
732
540feddf
DE
7332014-12-11 Doug Evans <xdje42@gmail.com>
734
735 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
736
fc126975
SM
7372014-12-10 Simon Marchi <simon.marchi@ericsson.com>
738
739 PR breakpoints/17012
740 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
741 it is marked as persistent.
742
56286edf
DE
7432014-12-10 Doug Evans <xdje42@gmail.com>
744
745 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
746 closer to its subroutines.
747
34ef8452
DE
7482014-12-10 Doug Evans <xdje42@gmail.com>
749
750 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
751
9a80057a
DE
7522014-12-10 Doug Evans <xdje42@gmail.com>
753
754 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
99d4b98d 755 * cp-support.h (cp_lookup_symbol_imports): Delete.
9a80057a 756
1abf3a14
SM
7572014-12-10 Simon Marchi <simon.marchi@ericsson.com>
758
759 PR gdb/17627
760 * target.c (cleanup_restore_target_terminal): New function.
761 (make_cleanup_restore_target_terminal): New function.
762 * target.h (make_cleanup_restore_target_terminal): New declaration.
763 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
764
d4d1e336
DE
7652014-12-08 Doug Evans <dje@google.com>
766
767 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
768
a0be3e44
DE
7692014-12-08 Doug Evans <dje@google.com>
770
771 * NEWS: Mention gdb.Objfile.owner.
772 * python/py-objfile.c (objfpy_get_owner): New function.
773 (objfile_getset): Add "owner".
774
6c1c7be3
JK
7752014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
778 (lookup_global_symbol_from_objfile): Call it.
779
efad9b6a
JK
7802014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
781
782 Remove const from struct objfile *.
783 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
784 symtab.c, symtab.h: In these files.
785
069bb7ec
AF
7862014-12-05 Andreas From <andreas.from@ericsson.com>
787
788 * MAINTAINERS (Write After Approval): Add "Andreas From"
789
642a8d80
DE
7902014-12-05 Doug Evans <xdje42@gmail.com>
791
792 Revert:
793 PR symtab/17602
794 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
795
86e4ed39
DE
7962014-12-04 Doug Evans <dje@google.com>
797
798 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
799 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
800 (objfile_getset): Add "add_separate_debug_file".
801
7c50a931
DE
8022014-12-04 Doug Evans <dje@google.com>
803
804 * NEWS: Mention gdb.Objfile.build_id.
805 * build-id.c (build_id_bfd_get): Make non-static.
806 * build-id.h (build_id_bfd_get): Add declaration.
807 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
808 (OBJFPY_REQUIRE_VALID): New macro.
809 (objfpy_get_build_id): New function.
810 (objfile_getset): Add "build_id".
811 * utils.c (make_hex_string): New function.
812 * utils.h (make_hex_string): Add declaration.
813
ba715d7f
JK
8142014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 * block.c (block_lookup_symbol_primary): New function.
817 * block.h (block_lookup_symbol_primary): New declaration.
818 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
819 Call block_lookup_symbol_primary.
820
858339f2
MR
8212014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
822
823 * tramp-frame.h (tramp_frame): Add `validate' member.
824 * tramp-frame.c (tramp_frame_start): Validate trampoline before
825 scanning.
826 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
827 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
828 (mips_linux_o32_sigframe): Initialize `validate' member.
829 (mips_linux_o32_rt_sigframe): Likewise.
830 (mips_linux_n32_rt_sigframe): Likewise.
831 (mips_linux_n64_rt_sigframe): Likewise.
832 (micromips_linux_o32_sigframe): New variable.
833 (micromips_linux_o32_rt_sigframe): Likewise.
834 (micromips_linux_n32_rt_sigframe): Likewise.
835 (micromips_linux_n64_rt_sigframe): Likewise.
836 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
837 (mips_linux_n32n64_sigframe_init): Likewise.
838 (mips_linux_sigframe_validate): New function.
839 (micromips_linux_sigframe_validate): Likewise.
840 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
841
ff1eb2b5
UW
8422014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
843
844 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
845 * sparc-sol2-tdep.c: Include "regset.h".
846 (sparc32_sol2_supply_core_gregset): New function.
847 (sparc32_sol2_collect_core_gregset): Likewise.
848 (sparc32_sol2_supply_core_fpregset): Likewise.
849 (sparc32_sol2_collect_core_fpregset): Likewise.
850 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
851 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
852 tdep->fpregset/sizeof_fpregset.
853 * sparc64-sol2-tdep.c: Include "regset.h".
854 (sparc64_sol2_supply_core_gregset): New function.
855 (sparc64_sol2_collect_core_gregset): Likewise.
856 (sparc64_sol2_supply_core_fpregset): Likewise.
857 (sparc64_sol2_collect_core_fpregset): Likewise.
858 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
859 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
860 tdep->fpregset/sizeof_fpregset.
861
75783939
SM
8622014-12-03 Simon Marchi <simon.marchi@ericsson.com>
863
864 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
865 type.
866
7c5fdd25
DE
8672014-12-02 Doug Evans <dje@google.com>
868
869 * symtab.c (symbol_init_cplus_specific): Delete.
870 (symbol_set_demangled_name): Remove special c++ support.
871 (symbol_get_demangled_name, symbol_set_language): Ditto.
872 * symtab.h (struct cplus_specific): Delete.
873 (struct general_symbol_info) <language_specific>: Remove
874 cplus_specific.
875
29f0c3b7
DE
8762014-12-02 Doug Evans <dje@google.com>
877
878 PR symtab/17602
879 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
880
72998fb3
DE
8812014-12-02 Doug Evans <dje@google.com>
882
883 PR symtab/17591
884 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
885 to strip parameters.
886
422b9917
DE
8872014-12-02 Doug Evans <dje@google.com>
888
889 * dwarf2read.c (peek_die_abbrev): Improve error message text.
890
47c6ee49
DE
8912014-12-02 Doug Evans <dje@google.com>
892
893 * valops.c (do_search_struct_field): Remove remnant of Chill support.
894 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
895
5da3ffc9
SM
8962014-12-02 Simon Marchi <simon.marchi@ericsson.com>
897
898 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
899
162078c8
NB
9002014-12-02 Nick Bull <nicholaspbull@gmail.com>
901
902 * NEWS: Mention new Python events.
903 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
904 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
905 (py-infevents.o): New rule.
906 * doc/observer.texi (inferior_call_pre, inferior_call_post)
907 (memory_changed, register_changed): New observers.
908 * infcall.c (call_function_by_hand): Notify observer before and
909 after inferior call.
910 * python/py-event.h (inferior_call_kind): New enum.
911 (emit_inferior_call_event): New prototype.
912 (emit_register_changed_event): New prototype.
913 (emit_memory_changed_event): New prototype.
914 * python/py-events.h (events_object): New registries
915 inferior_call, memory_changed and register_changed.
916 * python/py-evts.c (gdbpy_initialize_py_events): Add the
917 inferior_call, memory_changed and register_changed registries.
918 * python/py-infevents.c: New.
919 * python/py-inferior.c (python_on_inferior_call_pre)
920 (python_on_inferior_call_post, python_on_register_change)
921 (python_on_memory_change): New functions.
922 (gdbpy_initialize_inferior): Attach python handler to new
923 observers.
924 * python/py-infthread.c(gdbpy_create_ptid_object): New.
925 (thpy_get_ptid) Use gdbpy_create_ptid_object.
926 * python/python-internal.h:
927 (gdbpy_create_ptid_object)
928 (gdbpy_initialize_inferior_call_pre_event)
929 (gdbpy_initialize_inferior_call_post_event)
930 (gdbpy_initialize_register_changed_event)
931 (gdbpy_initialize_memory_changed_event): New prototypes.
932 * python/python.c (_initialize_python): Initialize new events.
933 * valops.c (value_assign): Notify register_changed observer.
934
007baf27
DE
9352014-12-02 Doug Evans <dje@google.com>
936
937 * python/py-infthread.c: Whitespace fixes.
938
d5552aab
AA
9392014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
940
941 * features/Makefile (s390-te-linux64-expedite): Replace
942 non-existant r14 and r15 by r14l and r15l, respectively.
943 * regformats/s390-te-linux64.dat: Regenerate.
944
30b5e341
SM
9452014-12-01 Simon Marchi <simon.marchi@ericsson.com>
946
947 * objfiles.c (allocate_objfile): Remove duplicate comment.
948
ac3d87c0
UW
9492014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
950
951 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
952 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
953 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
954 (supply_gregset, supply_fpregset): Remove.
955 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
956 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
957 and sizeof_gregset.
958
f10c5b19
JK
9592014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
960
961 Add add-auto-load-scripts-directory.
962 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
963 * auto-load.c (add_auto_load_dir): New function.
964 (_initialize_auto_load): Install it.
965
f0d4ba1f
MG
9662014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
967
968 Pushed by Joel Brobecker <brobecker@adacore.com>.
969 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
970
18ac6ffc
SC
9712014-11-29 Siva Chandra Reddy <sivachandra@google.com>
972
973 * eval.c (evaluate_subexp): Check that the thread stack temporaries
974 are not already enabled before enabling them.
975
4072f920
YQ
9762014-11-29 Yao Qi <yao@codesourcery.com>
977
978 * arm-tdep.c (arm_analyze_prologue): Move local variables
979 'framereg' and 'framesize' to inner block. Move code to
980 inner block too.
981
6c659fc2
SC
9822014-11-28 Siva Chandra Reddy <sivachandra@google.com>
983
984 * eval.c: Include gdbthread.h.
985 (evaluate_subexp): Enable thread stack temporaries before
986 evaluating a complete expression and clean them up after the
987 evaluation is complete.
988 * gdbthread.h: Include common/vec.h.
989 (value_ptr): New typedef.
990 (VEC (value_ptr)): New vector type.
991 (value_vec): New typedef.
992 (struct thread_info): Add new fields stack_temporaries_enabled
993 and stack_temporaries.
994 (enable_thread_stack_temporaries)
995 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
996 (get_last_thread_stack_temporary)
997 (value_in_thread_stack_temporaries): Declare.
998 * gdbtypes.c (class_or_union_p): New function.
999 * gdbtypes.h (class_or_union_p): Declare.
1000 * infcall.c (call_function_by_hand): Store return values of class
1001 type as temporaries on stack.
1002 * thread.c (enable_thread_stack_temporaries): New function.
1003 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1004 (get_last_thread_stack_temporary): Likewise.
1005 (value_in_thread_stack_temporaries): Likewise.
1006 * value.c (value_force_lval): New function.
1007 * value.h (value_force_lval): Declare.
1008
f7ca3fcf
PM
10092014-11-28 Pierre Muller <muller@sourceware.org>
1010
1011 Pushed by Joel Brobecker <brobecker@adacore.com>.
1012 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1013 registers.
1014
b2859a9a
UW
10152014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
1016
1017 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1018 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1019 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1020 * m68klinux-nat.c (fetch_core_registers): Remove.
1021 (linux_elf_core_fns): Remove.
1022 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1023
0fa9473f
JB
10242014-11-28 Joel Brobecker <brobecker@adacore.com>
1025
1026 * utils.c (gdb_realpath): Rework comment about handling on
1027 Windows.
1028
6a29c58e
YQ
10292014-11-28 Yao Qi <yao@codesourcery.com>
1030
1031 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1032 rename.
1033 * gnulib/aclocal.m4: Re-generated.
1034 * gnulib/config.in: Re-generated.
1035 * gnulib/configure: Re-generated.
1036 * gnulib/import/Makefile.am: Re-generated.
1037 * gnulib/import/Makefile.in: Re-generated.
1038 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1039 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1040 * import/basename-lgpl.c: New file.
1041 * import/dirname-lgpl.c: New file.
1042 * import/dirname.h: New file.
1043 * import/m4/dirname.m4: New file.
1044 * import/m4/malloc.m4: New file.
1045 * import/m4/rename.m4: New file.
1046 * import/m4/rmdir.m4: New file.
1047 * import/m4/stdio_h.m4: New file.
1048 * import/malloc.c: New file.
1049 * import/rename.c: New file.
1050 * import/rmdir.c: New file.
1051 * import/same-inode.h: New file.
1052 * import/stdio.c: New file.
1053 * import/stdio.in.h: New file.
1054 * import/stripslash.c: New file.
1055
abbffc89
YQ
10562014-11-28 Yao Qi <yao@codesourcery.com>
1057
1058 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1059 and realpath.
1060 * config.in: Re-generated.
1061 * configure: Re-generated.
1062 * utils.c (gdb_realpath): Remove code calling realpath,
1063 canonicalize_file_name and pathconf.
1064 [!_WIN32]: Call canonicalize_file_name.
1065
98399780
YQ
10662014-11-28 Yao Qi <yao@codesourcery.com>
1067
1068 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1069 canonicalize-lgpl.
1070 * aclocal.m4: Re-generated.
1071 * config.in: Re-generated.
1072 * configure: Re-generated.
1073 * import/Makefile.am: Re-generated.
1074 * import/Makefile.in: Re-generated.
1075 * import/m4/gnulib-cache.m4: Re-generated.
1076 * import/m4/gnulib-comp.m4: Re-generated.
1077 * import/canonicalize-lgpl.c: New file.
1078 * import/extra/snippet/_Noreturn.h: New file.
1079 * import/m4/canonicalize.m4: New file.
1080 * import/m4/double-slash-root.m4: New file.
1081 * import/m4/eealloc.m4: New file.
1082 * import/m4/malloca.m4: New file.
1083 * import/m4/nocrash.m4: New file.
1084 * import/m4/stdlib_h.m4: New file.
1085 * import/malloca.c: New file.
1086 * import/malloca.h: New file.
1087 * import/malloca.valgrind: New file.
1088
3332aaf2
YQ
10892014-11-28 Yao Qi <yao@codesourcery.com>
1090
1091 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1092 * config.in, configure: Regenerate.
1093 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1094 code checking HAVE_LSTAT is defined.
1095
f45c62c4
YQ
10962014-11-28 Yao Qi <yao@codesourcery.com>
1097
1098 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1099 lstat.
1100 * gnulib/aclocal.m4: Re-generated.
1101 * gnulib/config.in: Re-generated.
1102 * gnulib/configure: Re-generated.
1103 * gnulib/import/Makefile.am: Re-generated.
1104 * gnulib/import/Makefile.in: Re-generated.
1105 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1106 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1107 * gnulib/import/lstat.c: New file.
1108 * gnulib/import/m4/lstat.m4: New file.
1109
bdca27a2
YQ
11102014-11-28 Yao Qi <yao@codesourcery.com>
1111
1112 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1113 * config.in, configure: Re-generate.
1114 * inf-child.c (inf_child_fileio_readlink): Don't check
1115 HAVE_READLINK is defined.
1116
2196f55f
YQ
11172014-11-28 Yao Qi <yao@codesourcery.com>
1118
1119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1120 * gnulib/aclocal.m4: Re-generated.
1121 * gnulib/config.in: Likewise.
1122 * gnulib/configure: Likewise.
1123 * gnulib/import/Makefile.am: Likewise.
1124 * gnulib/import/Makefile.in: Likewise.
1125 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1126 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1127 * gnulib/import/dosname.h: New file
1128 * gnulib/import/m4/largefile.m4: New file.
1129 * gnulib/import/m4/readlink.m4: New file.
1130 * gnulib/import/m4/stat.m4: New file.
1131 * gnulib/import/readlink.c: New file.
1132 * gnulib/import/stat.c: New file.
1133
7014e923 11342014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
1135
1136 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1137 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1138
aa489395
SL
11392014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1140
1141 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1142 that there can be only one stack adjustment in the prologue
1143 with tests to detect specific disallowed stack adjustments.
1144
7f1659b5
SL
11452014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1146
1147 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1148 adjustments.
1149
d53c26c7
SL
11502014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1151
1152 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1153 the instruction as well as reading it from memory.
1154 (nios2_match_add): New.
1155 (nios2_match_sub): New.
1156 (nios2_match_addi): New.
1157 (nios2_match_orhi): New.
1158 (nios2_match_stw): New.
1159 (nios2_match_ldw): New.
1160 (nios2_match_rdctl): New.
1161 (enum branch_condition): New.
1162 (nios2_match_branch): New.
1163 (nios2_match_jmpi): New.
1164 (nios2_match_calli): New.
1165 (nios2_match_jmpr): New.
1166 (nios2_match_callr): New.
1167 (nios2_match_break): New.
1168 (nios2_match_trap): New.
1169 (nios2_in_epilogue_p): Rewrite to use new functions.
1170 (nios2_analyze_prologue): Likewise.
1171 (nios2_skip_prologue): Delete unused local limit_pc.
1172 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1173 (nios2_get_next_pc): Rewrite to use new functions.
1174
cac9b138
JK
11752014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1178
a441dfbc
ST
11792014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1180
1181 Pushed by Joel Brobecker <brobecker@adacore.com>
1182 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1183 elements pi_len by the size of the elements before calling
1184 vm_deallocate.
1185 (inf_validate_task_sc): Likewise, and properly deallocate the
1186 noise array.
1187
4c9e8482
DE
11882014-11-23 Doug Evans <xdje42@gmail.com>
1189
1190 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1191 number and name if present. All callers updated.
1192 (dump_fn_fieldlists): Fix indentation of args.
1193
15ee0bbd
PP
11942014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1195
1196 * MAINTAINERS (Write After Approval): Add myself.
1197
e8af5d7a
JB
11982014-11-23 Joel Brobecker <brobecker@adacore.com>
1199
1200 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1201 to a bp_call_dummy breakpoint type.
1202
a344fc09
PP
12032014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1204
1205 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1206 registering the signal handler.
1207
d64e57fa
PP
12082014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1209
1210 * event-top.h (call_stdin_event_handler_again_p): Declare.
1211 * event-top.c (call_stdin_event_handler_again_p): Define.
1212 (stdin_event_handler): Use it.
1213 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1214 handler again if there is pending input following a
1215 start sequence.
1216
6f9d33d8
PP
12172014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1218
1219 Pushed by Joel Brobecker <brobecker@adacore.com>
1220 * linux-fork.c (checkpoint_command): Print index of new
1221 checkpoint in response message.
1222
88db67ef
YQ
12232014-11-23 Yao Qi <yao@codesourcery.com>
1224
1225 * valprint.c (read_string): Move local variables 'found_nul',
1226 'chunksize' and 'limit' to inner scope. Update comments.
1227
01465b56
DE
12282014-11-22 Doug Evans <xdje42@gmail.com>
1229
1230 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1231 function comment.
1232 (search_symbols): Fix comments and whitespace.
1233
07a1c2c3
DE
12342014-11-22 Doug Evans <xdje42@gmail.com>
1235
1236 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1237
b2a919a8
DE
12382014-11-21 Doug Evans <dje@google.com>
1239
1240 * psymtab.c (psymtab_search_name): Fix whitespace.
1241
278289d5
YQ
12422014-11-21 Yao Qi <yao@codesourcery.com>
1243
1244 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1245 errno.
1246 * gnulib/import/Makefile.am: Re-generated.
1247 * gnulib/import/Makefile.in: Likewise.
1248 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1249
e01e2baa
YQ
12502014-11-21 Yao Qi <yao@codesourcery.com>
1251
1252 * gdb_wchar.h: Include wchar.h and wctype.h.
1253 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1254 include wchar.h and wctype.h.
1255 Don't check HAVE_WCHAR_H.
1256
f0c00af8
YQ
12572014-11-21 Yao Qi <yao@codesourcery.com>
1258
1259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1260 and wctype-h.
1261 * gnulib/import/Makefile.am: Re-generated.
1262 * gnulib/import/Makefile.in: Likewise.
1263 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1264
0cae13bb
YQ
12652014-11-21 Yao Qi <yao@codesourcery.com>
1266
1267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1268 memchr.
1269 * gnulib/import/Makefile.am: Re-generated.
1270 * gnulib/import/Makefile.in: Likewise.
1271 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1272
9c232dda
YQ
12732014-11-21 Yao Qi <yao@codesourcery.com>
1274
1275 * common/common-defs.h: Include alloca.h
1276 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1277 * configure: Re-generated.
1278 * defs.h: Remove code handling alloca.
1279 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1280 or not.
1281
00d7f58f
YQ
12822014-11-21 Yao Qi <yao@codesourcery.com>
1283
1284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1285 alloca.
1286 * gnulib/import/Makefile.am: Re-generated.
1287 * gnulib/import/Makefile.in: Likewise..
1288 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1289
6068ad5d
YQ
12902014-11-21 Yao Qi <yao@codesourcery.com>
1291
1292 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1293 alphabetical order.
1294
45e44d27
JB
12952014-11-21 Joel Brobecker <brobecker@adacore.com>
1296
1297 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1298 flag_unsigned if HIGH_BOUND is constant and negative.
1299
7e7cbeb3
SDJ
13002014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1301
1302 PR breakpoints/10737
1303 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1304 modifier from "struct gdbarch" when compiling without Expat (XML)
1305 support.
1306 (get_syscall_by_number): Likewise.
1307 (get_syscall_by_name): Likewise.
1308 (get_syscall_names): Likewise.
1309
458c8db8
SDJ
13102014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1311
1312 PR breakpoints/10737
1313 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1314 set_xml_syscall_file_name to provide gdbarch.
1315 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1316 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1317 * breakpoint.c (print_it_catch_syscall): Adjust call to
1318 get_syscall_by_number to provide gdbarch.
1319 (print_one_catch_syscall): Likewise.
1320 (print_mention_catch_syscall): Likewise.
1321 (print_recreate_catch_syscall): Likewise.
1322 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1323 and get_syscall_by_name to provide gdbarch.
1324 (catch_syscall_completer): Adjust call to get_syscall_names to
1325 provide gdbarch.
1326 * gdbarch.c: Regenerate.
1327 * gdbarch.h: Likewise.
1328 * gdbarch.sh: Forward declare "struct syscalls_info".
1329 (xml_syscall_file): New variable.
1330 (syscalls_info): Likewise.
1331 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1332 set_xml_syscall_file_name to provide gdbarch.
1333 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1334 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1335 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1336 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1337 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1338 * xml-syscall.c: Include gdbarch.h.
1339 (set_xml_syscall_file_name): Accept gdbarch parameter.
1340 (get_syscall_by_number): Likewise.
1341 (get_syscall_by_name): Likewise.
1342 (get_syscall_names): Likewise.
1343 (my_gdb_datadir): Delete global variable.
1344 (struct syscalls_info) <my_gdb_datadir>: New variable.
1345 (struct syscalls_info) <sysinfo>: Rename variable to
1346 "syscalls_info".
1347 (sysinfo): Delete global variable.
1348 (have_initialized_sysinfo): Likewise.
1349 (xml_syscall_file): Likewise.
1350 (sysinfo_free_syscalls_desc): Rename to...
1351 (syscalls_info_free_syscalls_desc): ... this.
1352 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1353 code to the new layout of "struct syscalls_info".
1354 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1355 "syscalls_info".
1356 (syscall_create_syscall_desc): Likewise.
1357 (syscall_start_syscall): Likewise.
1358 (syscall_parse_xml): Likewise.
1359 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1360 (init_sysinfo): Rename to...
1361 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1362 Adjust function to deal with gdbarch.
1363 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1364 gdbarch as a parameter. Adjust code.
1365 (xml_get_syscall_name): Likewise.
1366 (xml_list_of_syscalls): Likewise.
1367 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1368 (get_syscall_by_number): Likewise.
1369 (get_syscall_by_name): Likewise.
1370 (get_syscall_names): Likewise.
1371 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1372 (get_syscall_by_number): Likewise.
1373 (get_syscall_by_name): Likewise.
1374 (get_syscall_names): Likewise.
1375
43f3e411
DE
13762014-11-20 Doug Evans <xdje42@gmail.com>
1377
1378 Split struct symtab into two: struct symtab and compunit_symtab.
1379 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1380 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1381 to "struct compunit_symtab *". All callers updated.
1382 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1383 "struct symtab *" argument to "struct compunit_symtab *".
1384 All callers updated.
1385 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1386 result to "struct compunit_symtab *". All callers updated.
1387 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1388 Change result to "struct compunit_symtab *". All callers updated.
1389 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1390 hange type to "struct compunit_symtab *". All uses updated.
1391 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1392 Change type to "struct compunit_symtab *". All uses updated.
1393 * buildsym.c (struct buildsym_compunit): New struct.
1394 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1395 (buildsym_compunit): New static global.
1396 (finish_block_internal): Update to fetch objfile from
1397 buildsym_compunit.
1398 (make_blockvector): Delete objfile argument.
1399 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1400 debugformat, producer.
1401 (start_buildsym_compunit): New function.
1402 (free_buildsym_compunit): Renamed from free_subfiles_list.
1403 All callers updated.
1404 (patch_subfile_names): Rewrite to use buildsym_compunit.
1405 (get_compunit_symtab): New function.
1406 (get_macro_table): Delete argument comp_dir. All callers updated.
1407 (start_symtab): Change result to "struct compunit_symtab *".
1408 All callers updated. Create the subfile of the main source file.
1409 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1410 (reset_symtab_globals): Update.
1411 (end_symtab_get_static_block): Update to use buildsym_compunit.
1412 (end_symtab_without_blockvector): Rewrite.
1413 (end_symtab_with_blockvector): Change result to
1414 "struct compunit_symtab *". All callers updated.
1415 Update to use buildsym_compunit. Don't set symtab->dirname,
1416 instead set it in the compunit.
1417 Explicitly make sure main symtab is first in its list.
1418 Set debugformat, producer, blockvector, block_line_section, and
1419 macrotable in the compunit.
1420 (end_symtab_from_static_block): Change result to
1421 "struct compunit_symtab *". All callers updated.
1422 (end_symtab, end_expandable_symtab): Ditto.
1423 (set_missing_symtab): Change symtab argument to
1424 "struct compunit_symtab *". All callers updated.
1425 (augment_type_symtab): Ditto.
1426 (record_debugformat): Update to use buildsym_compunit.
1427 (record_producer): Update to use buildsym_compunit.
1428 * buildsym.h (struct subfile) <dirname>: Delete.
1429 <producer, debugformat>: Delete.
1430 <buildsym_compunit>: New member.
1431 (get_compunit_symtab): Declare.
1432 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1433 from primary_symtab. Change type to "struct compunit_symtab *".
1434 All uses updated.
1435 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1436 All callers updated.
1437 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1438 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1439 symtab. Change type to "struct compunit_symtab *". All uses updated.
1440 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1441 All callers updated.
1442 (dw2_find_last_source_symtab): Ditto.
1443 (dw2_lookup_symbol): Ditto.
1444 (recursively_find_pc_sect_compunit_symtab): Renamed from
1445 recursively_find_pc_sect_symtab. Change result to
1446 "struct compunit_symtab *". All callers updated.
1447 (dw2_find_pc_sect_compunit_symtab): Renamed from
1448 dw2_find_pc_sect_symtab. Change result to
1449 "struct compunit_symtab *". All callers updated.
1450 (get_compunit_symtab): Renamed from get_symtab. Change result to
1451 "struct compunit_symtab *". All callers updated.
1452 (recursively_compute_inclusions): Change type of immediate_parent
1453 argument to "struct compunit_symtab *". All callers updated.
1454 (compute_compunit_symtab_includes): Renamed from
1455 compute_symtab_includes. All callers updated. Rewrite to compute
1456 includes of compunit_symtabs and not symtabs.
1457 (process_full_comp_unit): Update to work with struct compunit_symtab.
1458 (process_full_type_unit): Ditto.
1459 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1460 (dwarf_decode_lines): Remove special case handling of main subfile.
1461 (macro_start_file): Delete argument comp_dir. All callers updated.
1462 (dwarf_decode_macro_bytes): Ditto.
1463 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1464 use struct compunit_symtab.
1465 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1466 * jit.c (finalize_symtab): Build compunit_symtab.
1467 * jv-lang.c (get_java_class_symtab): Change result to
1468 "struct compunit_symtab *". All callers updated.
1469 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1470 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1471 comp_dir. Change type to "struct compunit_symtab *".
1472 All uses updated.
1473 (new_macro_table): Change comp_dir argument to cust,
1474 "struct compunit_symtab *". All callers updated.
1475 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1476 nr_primary_symtabs. All uses updated.
1477 (count_symtabs_and_blocks): Update to handle compunits.
1478 (report_command_stats): Update output, "primary symtabs" renamed to
1479 "compunits".
1480 * mdebugread.c (new_symtab): Change result to
1481 "struct compunit_symtab *". All callers updated.
1482 (parse_procedure): Change type of search_symtab argument to
1483 "struct compunit_symtab *". All callers updated.
1484 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1485 separate loop.
1486 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1487 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1488 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1489 All uses updated.
1490 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1491 All uses updated.
1492 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1493 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1494 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1495 symtab. Change type to "struct compunit_symtab *". All uses updated.
1496 * psymtab.c (psymtab_to_symtab): Change result type to
1497 "struct compunit_symtab *". All callers updated.
1498 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1499 find_pc_sect_symtab_from_partial. Change result type to
1500 "struct compunit_symtab *". All callers updated.
1501 (lookup_symbol_aux_psymtabs): Change result type to
1502 "struct compunit_symtab *". All callers updated.
1503 (find_last_source_symtab_from_partial): Ditto.
1504 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1505 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1506 and macro_table from compunit.
1507 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1508 type to "struct compunit_symtab *". All callers updated.
1509 (debug_qf_lookup_symbol): Ditto.
1510 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1511 debug_qf_find_pc_sect_symtab, change result type to
1512 "struct compunit_symtab *". All callers updated.
1513 * symfile.c (allocate_symtab): Delete objfile argument.
1514 New argument cust.
1515 (allocate_compunit_symtab): New function.
1516 (add_compunit_symtab_to_objfile): New function.
1517 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1518 Change result type to "struct compunit_symtab *". All uses updated.
1519 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1520 Change result type to "struct compunit_symtab *". All uses updated.
1521 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1522 separate loop.
1523 (dump_symtab_1): Update test for primary source symtab.
1524 (maintenance_info_symtabs): Update to handle compunit symtabs.
1525 (maintenance_check_symtabs): Ditto.
1526 * symtab.c (set_primary_symtab): Delete.
1527 (compunit_primary_filetab): New function.
1528 (compunit_language): New function.
1529 (iterate_over_some_symtabs): Change type of arguments "first",
1530 "after_last" to "struct compunit_symtab *". All callers updated.
1531 Update to loop over symtabs in each compunit.
1532 (error_in_psymtab_expansion): Rename symtab argument to cust,
1533 and change type to "struct compunit_symtab *". All callers updated.
1534 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1535 Change result type to "struct compunit_symtab *". All callers updated.
1536 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1537 Change result type to "struct compunit_symtab *". All callers updated.
1538 (find_pc_sect_line): Only loop over symtabs within selected compunit
1539 instead of all symtabs in the objfile.
1540 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1541 <compunit_symtab> New member.
1542 <block_line_section>: Moved to compunit_symtab.
1543 <locations_valid>: Ditto.
1544 <epilogue_unwind_valid>: Ditto.
1545 <macro_table>: Ditto.
1546 <dirname>: Ditto.
1547 <debugformat>: Ditto.
1548 <producer>: Ditto.
1549 <objfile>: Ditto.
1550 <call_site_htab>: Ditto.
1551 <includes>: Ditto.
1552 <user>: Ditto.
1553 <primary>: Delete
1554 (SYMTAB_COMPUNIT): New macro.
1555 (SYMTAB_BLOCKVECTOR): Update definition.
1556 (SYMTAB_OBJFILE): Update definition.
1557 (SYMTAB_DIRNAME): Update definition.
1558 (struct compunit_symtab): New type. Common members among all source
1559 symtabs within a compilation unit moved here. All uses updated.
1560 (COMPUNIT_OBJFILE): New macro.
1561 (COMPUNIT_FILETABS): New macro.
1562 (COMPUNIT_DEBUGFORMAT): New macro.
1563 (COMPUNIT_PRODUCER): New macro.
1564 (COMPUNIT_DIRNAME): New macro.
1565 (COMPUNIT_BLOCKVECTOR): New macro.
1566 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1567 (COMPUNIT_LOCATIONS_VALID): New macro.
1568 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1569 (COMPUNIT_CALL_SITE_HTAB): New macro.
1570 (COMPUNIT_MACRO_TABLE): New macro.
1571 (ALL_COMPUNIT_FILETABS): New macro.
1572 (compunit_symtab_ptr): New typedef.
1573 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1574
005e2509
JB
15752014-11-20 Joel Brobecker <brobecker@adacore.com>
1576
1577 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1578 if the TYPE_CODE of range_type's base type does not match
1579 the TYPE_CODE of encoding_type's base type.
1580
2b0f535a
JB
15812014-11-19 Joel Brobecker <brobecker@adacore.com>
1582
1583 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1584 it starts with '<'.
1585
8908fca5
JB
15862014-11-19 Joel Brobecker <brobecker@adacore.com>
1587
1588 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1589 (ada_is_redundant_index_type_desc): New function.
1590 (to_fixed_array_type): Ignore parallel XA type if redundant.
1591
4a46959e
JB
15922014-11-19 Joel Brobecker <brobecker@adacore.com>
1593
1594 * ada-lang.c (constrained_packed_array_type): Set the length
1595 of the return array as if both bounds where zero if that
1596 returned array's index type is dynamic.
1597
2acf986b
YQ
15982014-11-19 Yao Qi <yao@codesourcery.com>
1599
1600 * config/i386/go32.mh (CC): Remove.
1601
439247b6
DE
16022014-11-18 Doug Evans <xdje42@gmail.com>
1603
1604 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1605 updated.
1606
4d663531
DE
16072014-11-18 Doug Evans <xdje42@gmail.com>
1608
1609 * buildsym.c (buildsym_objfile): New static global.
1610 (buildsym_comp_dir): New static global.
1611 (finish_block_internal): Delete arg objfile. All callers updated.
1612 (finish_block): Delete arg objfile. All callers updated.
1613 (start_subfile): Delete arg dirname. All callers updated.
1614 (patch_subfile_names): Update buildsym_comp_dir.
1615 (get_macro_table): Delete arg objfile. All callers updated.
1616 (start_symtab): New arg objfile. All callers updated.
1617 Rename arg dirname to comp_dir.
1618 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1619 (end_symtab_get_static_block): Delete arg objfile. All callers
1620 updated.
1621 (end_symtab_without_blockvector): Ditto.
1622 (end_symtab_with_blockvector): Ditto.
1623 (end_symtab_from_static_block): Ditto.
1624 (end_symtab): Ditto.
1625 (end_expandable_symtab): Ditto.
1626 (augment_type_symtab): Ditto.
1627 * coffread.c (coff_start_symtab): New arg objfile. All callers
1628 updated.
1629
8435453b
DE
16302014-11-18 Doug Evans <xdje42@gmail.com>
1631
1632 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1633 updated.
1634
ee6f8984
DE
16352014-11-18 Doug Evans <xdje42@gmail.com>
1636
1637 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1638 symtab.dirname updated to use it.
1639
eb822aa6
DE
16402014-11-18 Doug Evans <xdje42@gmail.com>
1641
1642 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1643 symtab.objfile updated to use it.
1644
98387a29
DE
16452014-11-18 Doug Evans <xdje42@gmail.com>
1646
1647 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1648
aff08958
DE
16492014-11-18 Doug Evans <xdje42@gmail.com>
1650
1651 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1652 SYMBOL_OBJFILE.
1653 * findvar.c (default_read_var_value): Ditto.
1654 * jv-lang.c (add_class_symtab_symbol): Ditto.
1655 * parse.c (operator_check_standard): Ditto.
1656 * printcmd.c (address_info): Ditto.
1657 * symtab.c (fixup_symbol_section): Ditto.
1658 (skip_prologue_sal): Ditto.
1659 * tracepoint.c (scope_info): Ditto.
1660 * valops.c (find_function_in_inferior): Ditto.
1661 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1662 * python/py-symbol.c (set_symbol): Ditto.
1663
7bab9b58
DE
16642014-11-18 Doug Evans <xdje42@gmail.com>
1665
1666 * buildsym.c (main_subfile): New static global.
1667 (free_subfiles_list): New function.
1668 (start_symtab): Set main_subfile.
1669 (restart_symtab): Replace init of subfiles, current_subfile with
1670 call to free_subfiles_list.
1671 (watch_main_source_file_lossage): Use main_subfile.
1672 (reset_symtab_globals): Replace init of current_subfile with call
1673 to free_subfiles_list.
1674 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1675 functions, split out from ...
1676 (end_symtab_from_static_block): ... here. Rewrite to call them.
1677
f194fefb
DE
16782014-11-18 Doug Evans <xdje42@gmail.com>
1679
1680 The result of symtab expansion is always a primary symtab.
1681 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1682 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1683 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1684 (psymtab_to_symtab): Add comment and assert.
1685 (map_matching_symbols_psymtab): Remove unnecessary test for
1686 non-primary symtab.
1687
34248c3a
DE
16882014-11-15 Doug Evans <xdje42@gmail.com>
1689
1690 PR symtab/17559
1691 * symtab.c (find_pc_line_symtab): New function.
1692 * symtab.h (find_pc_line_symtab): Declare.
1693 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1694 find_pc_symtab.
1695 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1696 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1697 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1698 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1699 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1700 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1701
2097ae25
DE
17022014-11-15 Doug Evans <xdje42@gmail.com>
1703
1704 * symtab.c (expand_symtab_containing_pc): Renamed from
1705 find_pc_sect_symtab_via_partial. All callers updated.
1706
1ada499f
YQ
17072014-11-15 Yao Qi <yao@codesourcery.com>
1708
1709 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1710
355e2102
JB
17112014-11-14 Joel Brobecker <brobecker@adacore.com>
1712
1713 * common/common-defs.h: Move <stdarg.h> #include ahead of
1714 <stdio.h> #include.
1715
83030110
PA
17162014-11-14 Pedro Alves <palves@redhat.com>
1717
1718 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1719 [!PHONY_ICONV] (gdb_iconv): New function.
1720 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1721
a8719064
DE
17222014-11-13 Doug Evans <dje@google.com>
1723
1724 PR symtab/17591
1725 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1726 "(anonymous namespace)".
1727
60f7655a
DE
17282014-11-13 Doug Evans <dje@google.com>
1729
1730 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1731 infinite loop.
1732
5784b3ca
JK
17332014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1734
1735 * NEWS (maint set target-async): Fix typo.
1736
6218dc4b
PA
17372014-11-12 Pedro Alves <palves@redhat.com>
1738
1739 * infrun.c (enum infwait_states, infwait_state): Delete.
1740
af48d08f
PA
17412014-11-12 Pedro Alves <palves@redhat.com>
1742
1743 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1744 Rewrite stepping over a permanent breakpoint.
1745 (thread_still_needs_step_over, proceed): Don't set
1746 stepping_over_breakpoint for permanent breakpoints.
1747 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1748 single-step breakpoints out of the target on hardware step
1749 targets.
1750 (process_event_stop_test): If stepping a permanent breakpoint
1751 doesn't hit the step-resume breakpoint, delete the step-resume
1752 breakpoint.
1753 (switch_back_to_stepped_thread): Also check if the stepped thread
1754 has advanced already on hardware step targets.
1755 (currently_stepping): Return true if the thread stepped a
1756 breakpoint.
1757
1a853c52
PA
17582014-11-12 Pedro Alves <palves@redhat.com>
1759
1760 Mark locations as permanent, not the whole breakpoint.
1761 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1762 (mark_breakpoints_out): Don't mark permanent breakpoints as
1763 uninserted.
1764 (breakpoint_init_inferior): Use mark_breakpoints_out.
1765 (breakpoint_here_p): Adjust.
1766 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1767 of permanent breakpoints.
1768 (make_breakpoint_permanent): Mark each location as permanent,
1769 instead of marking the breakpoint.
1770 (add_location_to_breakpoint): If the location is permanent, mark
1771 it as such, and as inserted.
1772 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1773 (bp_location_compare, update_global_location_list): Adjust.
1774 (update_breakpoint_locations): Don't make the breakpoint permanent
1775 here.
1776 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1777 breakpoints.
1778 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1779 (struct bp_location) <permanent>: New field.
1780 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1781 reference to bp_permanent.
1782
ae9bb220
PA
17832014-11-12 Pedro Alves <palves@redhat.com>
1784
1785 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1786 * arch-utils.h (default_skip_permanent_breakpoint): New
1787 declaration.
1788 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1789 Install default_skip_permanent_breakpoint as default method.
1790 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1791 (i386_gdbarch_init): Don't install it.
1792 * infrun.c (resume): Assume there's always a
1793 gdbarch_skip_permanent_breakpoint implementation.
1794 * gdbarch.h, gdbarch.c: Regenerate.
1795
015de688
DC
17962014-11-11 Daniel Colascione <dancol@dancol.org>
1797
1798 Warn about cross-PID-namespace debugging.
1799 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1800 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1801 * linux-thread-db.c (check_pid_namespace_match): New function.
1802 (thread_db_inferior_created): Call it.
1803
26a84859
DE
18042014-11-10 Doug Evans <xdje42@gmail.com>
1805
1806 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1807 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1808
712a2e6d
DE
18092014-11-10 Doug Evans <xdje42@gmail.com>
1810
1811 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1812
af3768e9
DE
18132014-11-10 Doug Evans <xdje42@gmail.com>
1814
1815 PR symtab/17564
1816 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1817 (lookup_static_symbol): Move definition to new location and rewrite.
1818 (lookup_symbol_in_objfile): New function.
1819 (lookup_symbol_global_iterator_cb): Call it.
1820
b1f28d99
UW
18212014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1822
1823 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1824
b7a084be
PA
18252014-11-07 Pedro Alves <palves@redhat.com>
1826
1827 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1828 check if we did a "nexti" inside a prologue.
1829 * symtab.c (in_prologue): Delete function.
1830 * symtab.h (in_prologue): Delete declaration.
1831
67be31e5
DE
18322014-11-06 Doug Evans <xdje42@gmail.com>
1833
1834 * symtab.h (lookup_global_symbol): Improve function comment.
1835
08724ab7
DE
18362014-11-06 Doug Evans <xdje42@gmail.com>
1837
1838 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1839 All callers updated.
1840 * symtab.h (lookup_global_symbol): Update decl.
1841 (lookup_static_symbol): Move decl to better location.
1842
d9060ba6
DE
18432014-11-06 Doug Evans <xdje42@gmail.com>
1844
1845 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1846
74016e12
DE
18472014-11-06 Doug Evans <xdje42@gmail.com>
1848
1849 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1850 All callers updated.
1851 (lookup_symbol_in_all_objfiles): Renamed from
1852 lookup_symbol_aux_symtabs. All callers updated.
1853 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1854 All callers updated.
1855 (lookup_symbol_in_objfile_symtabs): Renamed from
1856 lookup_symbol_aux_objfile. All callers updated.
1857
d1a2d36d
DE
18582014-11-06 Doug Evans <xdje42@gmail.com>
1859
1860 * symtab.c (lookup_symbol_in_block): Renamed from
1861 lookup_symbol_aux_block. All callers updated.
1862
24d864bb
DE
18632014-11-06 Doug Evans <xdje42@gmail.com>
1864
1865 * symtab.c (lookup_static_symbol): Renamed from
1866 lookup_static_symbol_aux. All callers updated.
1867 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1868 All callers updated.
1869
358d6ab3
DE
18702014-11-06 Doug Evans <xdje42@gmail.com>
1871
1872 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1873 * block.c (block_lookup_symbol): Use it.
1874 * cp-support.c (make_symbol_overload_list_block): Use it.
1875 * symtab.c (iterate_over_symbols): Use it.
1876
16b2eaa1
DE
18772014-11-06 Doug Evans <xdje42@gmail.com>
1878
1879 * symtab.c (lookup_block_symbol): Moved to ...
1880 * block.c (block_lookup_symbol): ... here and renamed.
1881 All callers updated.
1882 * block.h (block_lookup_symbol): Declare.
1883 * symtab.h (lookup_block_symbol): Delete.
1884
2dd2cd1c
DE
18852014-11-06 Doug Evans <xdje42@gmail.com>
1886
1887 * ada-lang.c (ada_make_symbol_completion_list): Use
1888 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1889 * symtab.c (lookup_objfile_from_block): Ditto.
1890
d4c58915
DE
18912014-11-06 Doug Evans <xdje42@gmail.com>
1892
1893 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1894 TYPE_CODE_STRUCT.
1895
9c1877ea
DE
18962014-11-06 Doug Evans <xdje42@gmail.com>
1897
1898 * objfiles.c (get_objfile_arch): Constify.
1899 * objfiles.h (get_objfile_arch): Update prototype.
1900 * solib.c (solib_global_lookup): Fetch arch from objfile,
1901 not target_gdbarch.
1902
426a4079
SL
19032014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1904
1905 * nios2-tdep.c (wild_insn): Delete.
1906 (profiler_insn, irqentry_insn): Delete.
1907 (nios2_match_sequence): Delete.
1908 (nios2_analyze_prologue): Update comments. Remove matching
1909 of obsolete profiler_insn and irqentry_insn sequences.
1910
ee11262d
AM
19112014-11-05 Alan Modra <amodra@gmail.com>
1912
1913 * charset.c (convert_between_encodings): Shrink obstack using
1914 obstack_blank_fast.
1915 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1916 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1917 to char* before doing pointer arithmetic.
ee11262d 1918
c87e6d00
SM
19192014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1920
1921 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1922
441ef17f
PA
19232014-11-04 Pedro Alves <palves@redhat.com>
1924
1925 * breakpoint.c (breakpoint_thread_match): Delete function.
1926 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1927
e0f52461
SC
19282014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1929
1930 PR c++/17494
1931 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1932 the method args also under EVAL_SKIP when evaluating method
1933 calls under EVAL_SKIP.
1934
a0b4d890
YQ
19352014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1936
1937 * dwarf2loc.c (read_pieced_value): Do big endian
1938 processing only if gdb_regnum is not -1.
1939 (write_pieced_value): Ditto.
1940
19412014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1942
1943 * arm-linux-tdep.c (arm_linux_init_abi): Use
1944 info.byte_order_for_code to choose endianity of breakpoint
1945 instructions snippets.
1946
19472014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1948
1949 * arm-tdep.c (extract_arm_insn): Use
1950 gdbarch_byte_order_for_code to read arm instruction.
1951
e82149ff
DE
19522014-11-02 Doug Evans <xdje42@gmail.com>
1953
1954 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1955
d7ee84f1
DE
19562014-11-02 Doug Evans <xdje42@gmail.com>
1957
1958 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1959 main_subfile before returning.
1960
4f072d17
DE
19612014-10-31 Doug Evans <xdje42@gmail.com>
1962
1963 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1964 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1965
8301c89e
DE
19662014-10-31 Doug Evans <xdje42@gmail.com>
1967
1968 * valops.c (value_cast_pointers): Fix whitespace.
1969 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1970 Ditto.
1971
02be9a71
DE
19722014-10-30 Doug Evans <dje@google.com>
1973
1974 * NEWS: Mention ability add attributes to gdb.Objfile and
1975 gdb.Progspace objects.
1976 * python/py-objfile.c (objfile_object): New member dict.
1977 (objfpy_dealloc): Py_XDECREF dict.
1978 (objfpy_initialize): Initialize dict.
1979 (objfile_getset): Add __dict__.
1980 (objfile_object_type): Set tp_dictoffset member.
1981 * python/py-progspace.c (progspace_object): New member dict.
1982 (pspy_dealloc): Py_XDECREF dict.
1983 (pspy_initialize): Initialize dict.
1984 (pspace_getset): Add __dict__.
1985 (pspace_object_type): Set tp_dictoffset member.
1986
6427bef6
YQ
19872014-10-30 Yao Qi <yao@codesourcery.com>
1988
1989 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1990 replace '\\' with '\\\\'.
1991
f60325be
JB
19922014-10-29 Joel Brobecker <brobecker@adacore.com>
1993
1994 GDB 7.8.1 released.
1995
ab917dfb
PA
19962014-10-29 Pedro Alves <palves@redhat.com>
1997
1998 PR gdb/17408
1999 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2000 instead of assuming a thread with a stepping range is always
2001 stepping.
2002
d3d4baed
PA
20032014-10-29 Pedro Alves <palves@redhat.com>
2004
2005 PR python/17372
2006 * event-top.c (change_line_handler): Call
2007 gdb_rl_callback_handler_remove instead of
2008 rl_callback_handler_remove.
2009 (callback_handler_installed): New global.
2010 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2011 (gdb_rl_callback_handler_reinstall): New functions.
2012 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2013 gdb_rl_callback_handler_install instead of
2014 rl_callback_handler_remove and rl_callback_handler_install.
2015 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2016 instead of rl_callback_handler_remove.
2017 * event-top.h (gdb_rl_callback_handler_remove)
2018 (gdb_rl_callback_handler_install)
2019 (gdb_rl_callback_handler_reinstall): New declarations.
2020 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2021 cleanup function.
2022 (fetch_inferior_event): Install it.
2023 * top.c (gdb_readline_wrapper_line) Call
2024 gdb_rl_callback_handler_remove instead of
2025 rl_callback_handler_remove.
2026 (gdb_readline_wrapper_cleanup): Don't call
2027 rl_callback_handler_install.
2028
6e5d7f39
PA
20292014-10-29 Pedro Alves <palves@redhat.com>
2030
2031 * event-top.c (command_line_handler): Clear the first byte of
2032 linebuffer, when it is first allocated.
2033
551cb6a5
PA
20342014-10-29 Pedro Alves <palves@redhat.com>
2035
2036 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2037 TRY_CATCH.
2038
1e1e619b
PA
20392014-10-29 Pedro Alves <palves@redhat.com>
2040
2041 PR tui/16138
2042 PR tui/17519
2043 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2044 (tui_allowed_p): Delete function.
2045 * tui/tui.c: Include "interps.h".
2046 (tui_enable): Don't use tui_allowed_p. Error out here with
2047 detailed error messages if the TUI is the top level interpreter,
2048 or if output is not a terminal. Use newterm instead of initscr,
2049 and error out if initializing the terminal fails. Also error out if
2050 the terminal doesn't support cursor addressing.
2051 * tui/tui.h (tui_allowed_p): Delete declaration.
2052
6041179a
JB
20532014-10-29 Joel Brobecker <brobecker@adacore.com>
2054
2055 * arm-tdep.c (arm_skip_stack_protector): Return early if
2056 address loaded by first "ldr" instruction does not have
2057 a corresponding minimal symbol. Update comment.
2058
6ae274b7
YQ
20592014-10-29 Yao Qi <yao@codesourcery.com>
2060
2061 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2062 loaded address correctly of ldr instruction.
2063
7f5ef605
PA
20642014-10-28 Pedro Alves <palves@redhat.com>
2065
2066 PR gdb/12623
2067 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2068 field.
2069 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2070 thread's stepped_breakpoint field. Skip if reverse debugging.
2071 Add comment.
2072 (init_thread_stepping_state, handle_signal_stop): Clear the
2073 thread's stepped_breakpoint field.
2074
7d1a114c
PA
20752014-10-27 Pedro Alves <palves@redhat.com>
2076
2077 * remote.c (remote_thread_alive): New, factored out from ...
2078 (remote_thread_alive): ... this.
2079 (remote_update_thread_list): Bail out before deleting threads if
2080 the target returned an empty list, and, the current thread has a
2081 magic/fake ptid.
2082
e5f8a7cc
PA
20832014-10-27 Pedro Alves <palves@redhat.com>
2084
2085 * infrun.c (handle_signal_stop): Also skip handlers when a random
2086 signal arrives while handling a "stepi" or a "nexti". Set the
2087 thread's 'step_after_step_resume_breakpoint' flag.
2088
71e396f9
LM
20892014-10-27 Luis Machado <lgustavo@codesourcery.com>
2090
2091 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2092 (arm_record_ld_st_imm_offset): Reimplement to cover all
2093 load/store cases for ARM opcode 010.
2094 (arm_record_ld_st_multiple): Reimplement to cover all
2095 load/store cases for ARM opcode 100.
2096
3aee438b
DE
20972014-10-26 Doug Evans <xdje42@gmail.com>
2098
2099 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2100
f88cb4b6
DE
21012014-10-26 Doug Evans <xdje42@gmail.com>
2102
2103 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2104 parameter "kind" to "block_index".
2105 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2106 "block_index".
2107 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2108
a023a30f
DE
21092014-10-26 Doug Evans <xdje42@gmail.com>
2110
2111 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2112
4c35218e
DE
21132014-10-26 Doug Evans <xdje42@gmail.com>
2114
2115 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2116 obstack_alloc.
2117
f08e8df3
DE
21182014-10-26 Doug Evans <xdje42@gmail.com>
2119
2120 * parser-defs.h (block_found): Move decl from here ...
2121 * symtab.h (block_found): ... to here.
2122
cf901d3b
DE
21232014-10-26 Doug Evans <xdje42@gmail.com>
2124
2125 * symtab.h (struct field_of_this_result): Fix typo in comment.
2126 (lookup_symbol_in_language): Move function comment here.
2127 (lookup_symbol): Improve function comment.
2128 (basic_lookup_symbol_nonlocal): Ditto.
2129 (lookup_symbol_static, lookup_symbol_global): Ditto.
2130 (lookup_symbol_aux_block): Ditto.
2131 (lookup_language_this): Add function comment.
2132 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2133 function comment.
2134 (lookup_block_symbol): Improve function comment.
2135 (lookup_struct): Fix capitalization in function comment.
2136 (lookup_transparent_type): Add function comment.
2137 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2138 Improve function comment.
2139 (lookup_objfile_from_block): Add function comment.
2140 * symtab.c (lookup_symbol_in_language): Update function comment.
2141 (lookup_symbol, lookup_language_this): Ditto.
2142 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2143 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2144 (basic_lookup_symbol_nonlocal): Ditto.
2145 (lookup_symbol_static, lookup_symbol_global): Ditto.
2146 (lookup_transparent_type, lookup_block_symbol): Ditto.
2147
ff6c39cf
DE
21482014-10-25 Doug Evans <xdje42@gmail.com>
2149
2150 * symtab.c (types_info): Delete forward decl.
2151 (functions_info, variables_info, sources_info): Ditto.
2152 (_initialize_symtab): Rewrite forward decl to use
2153 initialize_file_ftype.
2154
ec201f0c
DE
21552014-10-25 Doug Evans <xdje42@gmail.com>
2156
2157 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2158
ca040673
DE
21592014-10-25 Doug Evans <xdje42@gmail.com>
2160
2161 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2162 of local var child_die.
2163
6f259a23
DB
21642014-10-24 Don Breazeal <donb@codesourcery.com>
2165
2166 * infrun.c (follow_fork_inferior): Update fork message printing
2167 to use target_terminal_ours_for_output instead of
2168 target_terminal_ours, to use _() for all format strings, to print
2169 "vfork" instead of "fork" for vforks, and to add a detach message.
2170 (handle_vfork_child_exec_or_exit): Update message printing to use
2171 target_terminal_ours_for_output instead of target_terminal_ours, to
2172 use _() for all format strings, and to fix some formatting.
2173
09dd9a69
PA
21742014-10-24 Pedro Alves <palves@redhat.com>
2175
2176 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2177 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2178 * config/vax/vax.mh: Delete.
2179 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2180 obsolete configurations section.
2181 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2182 * vax-nat.c: Delete file.
2183
5ab806de
PA
21842014-10-24 Pedro Alves <palves@redhat.com>
2185
2186 * NEWS (Removed targets): Add OS/arch column.
2187
3433cfa5
SC
21882014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2189
2190 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2191 on the arg type of a constructor only if it is of reference type.
2192
96ba4233
SL
21932014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2194
2195 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2196 accessors and constants from nios2 opcodes update.
2197 (nios2_get_next_pc): Likewise.
2198
28153fd3
DE
21992014-10-19 Doug Evans <xdje42@gmail.com>
2200
2201 * gdbthread.h (set_running): Fix comment.
2202 (set_executing, finish_thread_state): Fix comment.
2203
fc9b8e47
DE
22042014-10-18 Doug Evans <xdje42@gmail.com>
2205
2206 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2207
4ffbba72
DE
22082014-10-17 Doug Evans <dje@google.com>
2209
2210 * NEWS: Mention new event gdb.clear_objfiles.
2211 * python/py-event.h (emit_clear_objfiles_event): Clear
2212 * python/py-events.h (events_object): New member clear_objfiles.
2213 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2214 event.
2215 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2216 emit clear_objfiles event.
2217 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2218 function.
2219 (emit_clear_objfiles_event): New function.
2220 (clear_objfiles): New event.
2221 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2222 Declare.
2223 * python/python.c (_initialize_python): Call
2224 gdbpy_initialize_clear_objfiles_event.
2225
d096d8c1
DE
22262014-10-17 Doug Evans <dje@google.com>
2227
2228 * NEWS: Mention new gdb.Objfile.progspace attribute.
2229 * python/py-objfile.c (objfpy_get_progspace): New function.
2230 (objfile_getset): New entry for "progspace".
2231
6c4486e6
PA
22322014-10-17 Pedro Alves <palves@redhat.com>
2233
2234 PR gdb/17471
2235 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2236 returns a copy of the input.
2237 (run_command_1, continue_command, step_1, jump_command)
2238 (signal_command, until_command, advance_command, finish_command)
2239 (attach_command): Adjust and install a cleanup to free the
2240 stripped args.
2241
0ff33695
PA
22422014-10-17 Pedro Alves <palves@redhat.com>
2243
2244 PR gdb/17300
2245 * infcmd.c (continue_1): If continuing all threads in the
2246 foreground, make sure the inferior's terminal settings are put in
2247 effect.
2248
6fdebc3d
PA
22492014-10-17 Pedro Alves <palves@redhat.com>
2250
2251 PR gdb/17472
2252 * annotate.c (annotate_breakpoints_invalid): Use
2253 target_terminal_our_for_output instead of target_terminal_ours.
2254 Give back the terminal to the target.
2255 (annotate_frames_invalid): Likewise.
2256
5842f62a
PA
22572014-10-17 Pedro Alves <palves@redhat.com>
2258
2259 * target.c (enum terminal_state): New enum.
2260 (terminal_state): New global.
2261 (target_terminal_init): New function.
2262 (target_terminal_inferior): Skip if inferior already owns the
2263 terminal.
2264 (target_terminal_ours, target_terminal_ours_for_output): New
2265 functions.
2266 * target.h (target_terminal_init): Convert to function prototype.
2267 (target_terminal_ours_for_output): Convert to function prototype
2268 and tweak comment.
2269 (target_terminal_ours): Convert to function prototype and tweak
2270 comment.
2271 * windows-nat.c (do_initial_windows_stuff): Call
2272 target_terminal_init instead of child_terminal_init_with_pgrp.
2273
32a8097b
PA
22742014-10-17 Pedro Alves <palves@redhat.com>
2275
2276 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2277 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2278 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2279 solib-osf.c.
2280 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2281 * ada-lang.h [__alpha__ && __osf__]
2282 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2283 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2284 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2285 GDB_OSABI_OSF1.
2286 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2287 files.
2288 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2289 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2290 * configure: Regenerate.
2291 * configure.ac: Remove references to osf.
2292 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2293 section. Remove all other references to osf.
2294 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2295 Remove all other references to osf.
2296 * dec-thread.c: Delete file.
2297 * defs.h (GDB_OSABI_OSF1): Delete.
2298 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2299 defined.
2300 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2301 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2302 Delete code.
2303 (unconditionally_kill_inferior)
2304 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2305 * solib-osf.c: Delete file.
2306
80134cf5
PA
23072014-10-17 Pedro Alves <palves@redhat.com>
2308
2309 * remote.c (clear_threads_listing_context): Move higher up, out of
2310 the HAVE_LIBEXPAT guard.
2311
89c7137f
TG
23122014-10-16 Tristan Gingold <gingold@adacore.com>
2313
2314 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2315 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2316 on amd64.
2317
44ee4a52
PA
23182014-10-15 Pedro Alves <palves@redhat.com>
2319
2320 * dec-thread.c (dec_thread_count_gdb_threads)
2321 (dec_thread_add_gdb_thread): Delete.
2322 (dec_thread_update_thread_list): Delete.
2323 (dec_thread_find_new_threads): Rename to ...
2324 (dec_thread_update_thread_list): ... this. Delete GDB-size
2325 threads that are no longer found in dec_thread_list.
2326 (resync_thread_list): Delete.
2327 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2328 resync_thread_list.
2329
ab970af1
PA
23302014-10-15 Pedro Alves <palves@redhat.com>
2331
2332 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2333 * remote.c (remote_update_thread_list): Skip calling prune_threads
2334 if any thread listing method is supported, and instead walk over
2335 the set of remote threads listed, deleting those that are not
2336 found in GDB's thread list.
2337
e8032dde
PA
23382014-10-15 Pedro Alves <palves@redhat.com>
2339
2340 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2341 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2342 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2343 (bsd_uthread_target): Adjust.
2344 * corelow.c (core_open): Adjust.
2345 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2346 (dec_thread_update_thread_list): New function.
2347 (init_dec_thread_ops): Adjust.
2348 * gdbthread.h (prune_threads): New declaration.
2349 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2350 (thread_db_update_thread_list): ... this. Call prune_threads.
2351 (init_thread_db_ops): Adjust.
2352 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2353 (procfs_update_thread_list): ... this. Call prune_threads.
2354 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2355 Adjust.
2356 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2357 (obsd_update_thread_list): ... this. Call prune_threads.
2358 (obsd_add_target): Adjust.
2359 * procfs.c (procfs_target): Adjust.
2360 (procfs_notice_thread): Update comment.
2361 (procfs_find_new_threads): Rename to ...
2362 (procfs_update_thread_list): ... this. Call prune_threads.
2363 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2364 comment.
2365 (ravenscar_wait): Adjust.
2366 (ravenscar_find_new_threads): Rename to ...
2367 (ravenscar_update_thread_list): ... this. Call prune_threads.
2368 (init_ravenscar_thread_ops): Adjust.
2369 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2370 (record_btrace_update_thread_list): ... this. Adjust comment.
2371 (init_record_btrace_ops): Adjust.
2372 * remote.c (remote_threads_info): Rename to ...
2373 (remote_update_thread_list): ... this. Call prune_threads.
2374 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2375 Adjust.
2376 * sol-thread.c (check_for_thread_db): Adjust.
2377 (sol_find_new_threads_callback): Rename to ...
2378 (sol_update_thread_list_callback): ... this.
2379 (sol_find_new_threads): Rename to ...
2380 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2381 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2382 * target-delegates.c: Regenerate.
2383 * target.c (target_find_new_threads): Rename to ...
2384 (target_update_thread_list): ... this.
2385 * target.h (struct target_ops): Rename to_find_new_threads field
2386 to to_update_thread_list.
2387 (target_find_new_threads): Rename to ...
2388 (target_update_thread_list): ... this.
2389 * thread.c (prune_threads): Make extern.
2390 (update_thread_list): Adjust.
2391
6dc54d91
PA
23922014-10-15 Pedro Alves <palves@redhat.com>
2393
2394 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2395 Add describing comment. Return -1 if the qL packet is not
2396 supported.
2397 (struct thread_item, thread_item_t): Move higher up in
2398 the file. Add comments.
2399 (struct threads_parsing_context): Move higher up in
2400 the file, add comments, and remote to ...
2401 (struct threads_listing_context): ... this.
2402 (remote_newthread_step): Don't add the thread to GDB's thread
2403 database here. Instead push it to the thread_listing_context
2404 list.
2405 (remote_find_new_threads): Rename to ...
2406 (remote_get_threads_with_ql): ... this. Add target_ops and
2407 targets_listing_context parameters. Pass down context.
2408 (start_thread): Adjust.
2409 (clear_threads_parsing_context): Rename to ...
2410 (clear_threads_listing_context): ... this.
2411 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2412 remote_threads_info.
2413 (remote_get_threads_with_qthreadinfo): Ditto.
2414 (remote_threads_info): Reimplement.
2415
36728e82
PA
24162014-10-15 Pedro Alves <palves@redhat.com>
2417
2418 * infrun.c (resume): Don't force displaced-stepping for all
2419 single-steps on software single-stepping archs.
2420
34b7e8a6
PA
24212014-10-15 Pedro Alves <palves@redhat.com>
2422
2423 * breakpoint.c (single_step_breakpoints): Delete global.
2424 (insert_single_step_breakpoint): Adjust to store the breakpoint
2425 pointer in the current thread.
2426 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2427 (cancel_single_step_breakpoints): Delete functions.
2428 (breakpoint_has_location_inserted_here): Make extern.
2429 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2430 breakpoint list.
2431 * breakpoint.h (breakpoint_has_location_inserted_here): New
2432 declaration.
2433 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2434 (cancel_single_step_breakpoints): Remove declarations.
2435 * gdbthread.h (struct thread_control_state)
2436 <single_step_breakpoints>: New field.
2437 (delete_single_step_breakpoints)
2438 (thread_has_single_step_breakpoints_set)
2439 (thread_has_single_step_breakpoint_here): New declarations.
2440 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2441 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2442 (singlestep_pc): Delete globals.
2443 (infrun_thread_ptid_changed): Remove references to removed
2444 globals.
2445 (resume_cleanups): Delete the current thread's single-step
2446 breakpoints.
2447 (maybe_software_singlestep): Remove references to removed globals.
2448 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2449 delete_single_step_breakpoints.
2450 (init_wait_for_inferior): Remove references to removed globals.
2451 (delete_thread_infrun_breakpoints): Delete the thread's
2452 single-step breakpoints too.
2453 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2454 single-step breakpoints here.
2455 (delete_stopped_threads_single_step_breakpoints): New function.
2456 (adjust_pc_after_break): Adjust to use
2457 thread_has_single_step_breakpoints_set.
2458 (handle_inferior_event): Remove references to removed globals.
2459 Use delete_stopped_threads_single_step_breakpoints.
2460 (handle_signal_stop): Adjust to per-thread single-step
2461 breakpoints. Swap test order to do cheaper tests first.
2462 (switch_back_to_stepped_thread): Extend debug output. Remove
2463 references to removed globals.
2464 * record-full.c (record_full_wait_1): Adjust to per-thread
2465 single-step breakpoints.
2466 * thread.c (delete_single_step_breakpoints)
2467 (thread_has_single_step_breakpoints_set)
2468 (thread_has_single_step_breakpoint_here): New functions.
2469 (clear_thread_inferior_resources): Also delete the thread's
2470 single-step breakpoints.
2471
5b834a0a
PA
24722014-10-15 Pedro Alves <palves@redhat.com>
2473
2474 * thread.c (delete_thread_breakpoint): New function.
2475 (delete_step_resume_breakpoint)
2476 (delete_exception_resume_breakpoint): Use it.
2477 (delete_at_next_stop): New function.
2478 (clear_thread_inferior_resources): Use delete_at_next_stop.
2479
a1fd2fa5
PA
24802014-10-15 Pedro Alves <palves@redhat.com>
2481
2482 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2483 (breakpoint_inserted_here_p): ... here. Remove special case for
2484 software single-step breakpoints.
2485 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2486 (software_breakpoint_inserted_here_p): ... here. Remove special
2487 case for software single-step breakpoints.
2488 (bp_target_info_copy_insertion_state)
2489 (deprecated_insert_raw_breakpoint)
2490 (deprecated_remove_raw_breakpoint): Delete functions.
2491 * breakpoint.h (deprecated_insert_raw_breakpoint)
2492 (deprecated_remove_raw_breakpoint): Remove declarations.
2493
7c16b83e
PA
24942014-10-15 Pedro Alves <palves@redhat.com>
2495
2496 PR breakpoints/9649
2497 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2498 Delete array globals.
2499 (single_step_breakpoints): New global.
2500 (breakpoint_xfer_memory): Remove special handling for single-step
2501 breakpoints.
2502 (update_breakpoints_after_exec): Delete bp_single_step
2503 breakpoints.
2504 (detach_breakpoints): Remove special handling for single-step
2505 breakpoints.
2506 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2507 (bpstat_stop_status): Add comment.
2508 (bpstat_what, bptype_string, print_one_breakpoint_location)
2509 (adjust_breakpoint_address, init_bp_location): Handle
2510 bp_single_step.
2511 (new_single_step_breakpoint): New function.
2512 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2513 handling for single-step breakpoints.
2514 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2515 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2516 Rewrite.
2517 (detach_single_step_breakpoints, find_single_step_breakpoint):
2518 Delete functions.
2519 (breakpoint_has_location_inserted_here): New function.
2520 (single_step_breakpoint_inserted_here_p): Rewrite.
2521 * breakpoint.h: Remove FIXME.
2522 (enum bptype) <bp_single_step>: New enum value.
2523 (insert_single_step_breakpoint): Update comment.
2524 * infrun.c (resume_cleanups)
2525 (delete_step_thread_step_resume_breakpoint): Remove single-step
2526 breakpoints.
2527 (fetch_inferior_event): Install a cleanup that removes infrun
2528 breakpoints.
2529 (switch_back_to_stepped_thread) <expect thread advanced also>:
2530 Clear step-over info.
2531
0cbcdb96
PA
25322014-10-15 Pedro Alves <palves@redhat.com>
2533
2534 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2535 (delete_thread_infrun_breakpoints): New function, with parts
2536 salvaged from delete_step_resume_breakpoint_callback.
2537 (delete_step_thread_step_resume_breakpoint): Delete.
2538 (for_each_just_stopped_thread_callback_func): New typedef.
2539 (for_each_just_stopped_thread): New function.
2540 (delete_just_stopped_threads_infrun_breakpoints): New function.
2541 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2542 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2543 ... this. Adjust.
2544 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2545
963f9c80
PA
25462014-10-15 Pedro Alves <palves@redhat.com>
2547
2548 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2549 trying to step past a non-steppable watchpoint.
2550 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2551 field.
2552 * infrun.c (struct step_over_info): Add new field
2553 'nonsteppable_watchpoint_p' and adjust comments.
2554 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2555 Adjust.
2556 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2557 (stepping_past_nonsteppable_watchpoint): New function.
2558 (step_over_info_valid_p): Also return true if stepping past a
2559 nonsteppable watchpoint.
2560 (proceed): Adjust call to set_step_over_info. Remove reference to
2561 init_infwait_state.
2562 (init_wait_for_inferior): Remove reference to init_infwait_state.
2563 (waiton_ptid): Delete global.
2564 (struct execution_control_state)
2565 <stepped_after_stopped_by_watchpoint>: Delete field.
2566 (wait_for_inferior, fetch_inferior_event): Always pass
2567 minus_one_ptid to target_wait.
2568 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2569 field.
2570 (init_infwait_state): Delete function.
2571 (handle_inferior_event): Remove infwait_state handling.
2572 (handle_signal_stop) <watchpoints handling>: Adjust after
2573 stepped_after_stopped_by_watchpoint removal. Don't remove
2574 breakpoints here nor set infwait_state. Set the thread's
2575 stepping_over_watchpoint flag, and call keep_going instead.
2576 (keep_going): Handle stepping_over_watchpoint. Adjust
2577 set_step_over_info calls.
2578 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2579 function.
2580
6cc83d2a
PA
25812014-10-15 Pedro Alves <palves@redhat.com>
2582
2583 * infrun.c (step_over_info_valid_p): New function.
2584 (resume): Use step_over_info_valid_p instead of checking the
2585 threads's trap_expected flag.
2586
6979730b
DE
25872014-10-15 Doug Evans <dje@google.com>
2588 Walfred Tedeschi <walfred.tedeschi@intel.com>
2589
2590 PR python/17364
2591 * python/lib/gdb/__init__.py (packages): Add "printer".
2592 * python/lib/gdb/command/bound_registers.py: Moved to ...
2593 * python/lib/gdb/printer/bound_registers.py: ... here.
2594 Add printer to global set of builtin printers. Rename printer from
2595 "bound" to "mpx_bound128".
2596 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2597 registered as global "builtin" printer.
2598 (add_builtin_pretty_printer): New function.
2599 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2600 gdb/printer/__init__.py.
2601
35a49624
IB
26022014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2603
2604 * Makefile.in (SFILES): Remove d-support.c.
2605 (COMMON_OBS): Remove d-support.o.
2606 * d-lang.h (d_parse_symbol): Remove declaration.
2607 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2608 * d-support.c: Remove file.
2609
8fa0c4f8
AA
26102014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2611
2612 * gdb/infrun.c (process_event_stop_test): Apply
2613 gdbarch_addr_bits_remove to longjmp resume address.
2614
3666da81
PA
26152014-10-15 Pedro Alves <palves@redhat.com>
2616
2617 * regformats/microblaze.dat: Delete file.
2618
449aa9df
AKA
26192014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2620
2621 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2622 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2623
ebb8ece2
SC
26242014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2625
2626 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2627 as non-trivial.
2628
82c48ac7
SC
26292014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2630
2631 PR c++/13403
2632 PR c++/15154
2633 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2634 with qualified args.
2635
c40cc657
JB
26362014-10-14 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2639 of the case where the second operand is a pointer.
2640 <BINOP_SUB>: Likewise.
2641
0ea5cda8
SDJ
26422014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2643
2644 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2645 only if it is not NULL.
2646 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2647 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2648 (struct probe_ops) <clear_semaphore>: Likewise.
2649 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2650 not NULL.
2651 (stop_tracing): Likewise, for clear_semaphore.
2652
f7088df3
SDJ
26532014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2654
2655 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2656 using language_c, instead of current_language.
2657
4e1bbde0
DE
26582014-10-13 Doug Evans <dje@google.com>
2659
6ff5a0f6 2660 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2661 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2662 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2663 (pspy_new, pspace_to_pspace_object): Call it.
2664
c780cc2f
JK
26652014-10-13 Miroslav Franc <mfranc@redhat.com>
2666 Jan Kratochvil <jan.kratochvil@redhat.com>
2667
2668 Fix "save breakpoints" for "catch" command.
2669 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2670 newline.
2671
99894e11
JK
26722014-10-12 Miroslav Franc <mfranc@redhat.com>
2673
2674 Fix "save breakpoints" for "disable $bpnum" command.
2675 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2676
3831839c
PA
26772014-10-10 Pedro Alves <palves@redhat.com>
2678
2679 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2680 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2681 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2682 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2683 and been removed.
2684 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2685 * configure.ac: Remove references to IRIX.
2686 * configure.host: Add *-*-irix* to the obsolete hosts section.
2687 Remove all other references to irix.
2688 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2689 Delete files.
2690
cc3afae2
AKA
26912014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2692
2693 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2694 isn't valid, release the tdesc arch data and return NULL.
2695
cdfa0b0a
PA
26962014-10-10 Pedro Alves <palves@redhat.com>
2697
2698 * linux-tdep.c: Include observer.h.
2699 (linux_inferior_data): New global.
2700 (struct linux_info): New structure.
2701 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2702 (get_linux_inferior_data): New functions.
2703 (linux_vsyscall_range): Rename to ...
2704 (linux_vsyscall_range_raw): ... this.
2705 (linux_vsyscall_range): New function; handles caching.
2706 (_initialize_linux_tdep): Register linux_inferior_data. Install
2707 inferior_exit and inferior_appeared observers.
2708
8b9a549d
PA
27092014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 Pedro Alves <palves@redhat.com>
2711
2712 PR symtab/14466
2713 * solib-svr4.c (svr4_read_so_list): Rename to ...
2714 (svr4_current_sos_1): ... this and change the function comment.
2715 (svr4_current_sos): New function.
2716
3437254d
PA
27172014-10-10 Pedro Alves <palves@redhat.com>
2718
2719 * arch-utils.c (default_vsyscall_range): New function.
2720 * arch-utils.h (default_vsyscall_range): New declaration.
2721 * gdbarch.sh (vsyscall_range): New hook.
2722 * gdbarch.h, gdbarch.c: Regenerate.
2723 * linux-tdep.c (linux_vsyscall_range): New function.
2724 (linux_init_abi): Install linux_vsyscall_range as
2725 vsyscall_range gdbarch hook.
2726 * memrange.c (address_in_mem_range): New function.
2727 * memrange.h (address_in_mem_range): New declaration.
2728 * symfile-mem.c (find_vdso_size): Delete function.
2729 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2730
31cc0b80
PA
27312014-10-10 Pedro Alves <palves@redhat.com>
2732
2733 * infrun.c (normal_stop): Fix typo in comment.
2734
3e3286a2
SDJ
27352014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2736
2737 PR tdep/9390
2738 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2739 typo when using logical AND to determine instruction type.
2740
fcbdedf8
YQ
27412014-10-09 Yao Qi <yao@codesourcery.com>
2742
2743 * infrun.c (handle_signal_stop): Remove local variable
2744 'printed'.
2745
db984616
SS
27462014-10-08 Stan Shebs <stan@codesourcery.com>
2747
2748 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2749
3ba37e6c
GB
27502014-10-08 Gary Benson <gbenson@redhat.com>
2751
2752 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2753
a442d071
GB
27542014-10-08 Gary Benson <gbenson@redhat.com>
2755
2756 * common/common-defs.h: Include common-exceptions.h.
2757 * exceptions.h: Do not include common-exceptions.h.
2758
6f1947e8
GB
27592014-10-08 Gary Benson <gbenson@redhat.com>
2760
2761 * common/common-defs.h: Include cleanups.h.
2762 * common/common-exceptions.c: Do not include cleanups.h.
2763 * utils.h: Likewise.
2764
c765fdb9
GB
27652014-10-08 Gary Benson <gbenson@redhat.com>
2766
2767 * ada-lang.c: Do not include exceptions.h.
2768 * ada-valprint.c: Likewise.
2769 * amd64-tdep.c: Likewise.
2770 * auto-load.c: Likewise.
2771 * block.c: Likewise.
2772 * break-catch-throw.c: Likewise.
2773 * breakpoint.c: Likewise.
2774 * btrace.c: Likewise.
2775 * c-lang.c: Likewise.
2776 * cli/cli-cmds.c: Likewise.
2777 * cli/cli-interp.c: Likewise.
2778 * cli/cli-script.c: Likewise.
2779 * completer.c: Likewise.
2780 * corefile.c: Likewise.
2781 * corelow.c: Likewise.
2782 * cp-abi.c: Likewise.
2783 * cp-support.c: Likewise.
2784 * cp-valprint.c: Likewise.
2785 * darwin-nat.c: Likewise.
2786 * dwarf2-frame-tailcall.c: Likewise.
2787 * dwarf2-frame.c: Likewise.
2788 * dwarf2loc.c: Likewise.
2789 * dwarf2read.c: Likewise.
2790 * eval.c: Likewise.
2791 * event-loop.c: Likewise.
2792 * event-top.c: Likewise.
2793 * f-valprint.c: Likewise.
2794 * frame-unwind.c: Likewise.
2795 * frame.c: Likewise.
2796 * gdbtypes.c: Likewise.
2797 * gnu-v2-abi.c: Likewise.
2798 * gnu-v3-abi.c: Likewise.
2799 * guile/scm-auto-load.c: Likewise.
2800 * guile/scm-breakpoint.c: Likewise.
2801 * guile/scm-cmd.c: Likewise.
2802 * guile/scm-frame.c: Likewise.
2803 * guile/scm-lazy-string.c: Likewise.
2804 * guile/scm-param.c: Likewise.
2805 * guile/scm-symbol.c: Likewise.
2806 * guile/scm-type.c: Likewise.
2807 * hppa-hpux-tdep.c: Likewise.
2808 * i386-tdep.c: Likewise.
2809 * inf-loop.c: Likewise.
2810 * infcall.c: Likewise.
2811 * infcmd.c: Likewise.
2812 * infrun.c: Likewise.
2813 * interps.c: Likewise.
2814 * interps.h: Likewise.
2815 * jit.c: Likewise.
2816 * linespec.c: Likewise.
2817 * linux-nat.c: Likewise.
2818 * linux-thread-db.c: Likewise.
2819 * m32r-rom.c: Likewise.
2820 * main.c: Likewise.
2821 * memory-map.c: Likewise.
2822 * mi/mi-cmd-break.c: Likewise.
2823 * mi/mi-cmd-stack.c: Likewise.
2824 * mi/mi-interp.c: Likewise.
2825 * mi/mi-main.c: Likewise.
2826 * monitor.c: Likewise.
2827 * nto-procfs.c: Likewise.
2828 * objc-lang.c: Likewise.
2829 * p-valprint.c: Likewise.
2830 * parse.c: Likewise.
2831 * ppc-linux-tdep.c: Likewise.
2832 * printcmd.c: Likewise.
2833 * probe.c: Likewise.
2834 * python/py-auto-load.c: Likewise.
2835 * python/py-breakpoint.c: Likewise.
2836 * python/py-cmd.c: Likewise.
2837 * python/py-finishbreakpoint.c: Likewise.
2838 * python/py-frame.c: Likewise.
2839 * python/py-framefilter.c: Likewise.
2840 * python/py-function.c: Likewise.
2841 * python/py-gdb-readline.c: Likewise.
2842 * python/py-inferior.c: Likewise.
2843 * python/py-infthread.c: Likewise.
2844 * python/py-lazy-string.c: Likewise.
2845 * python/py-linetable.c: Likewise.
2846 * python/py-param.c: Likewise.
2847 * python/py-prettyprint.c: Likewise.
2848 * python/py-symbol.c: Likewise.
2849 * python/py-type.c: Likewise.
2850 * python/py-value.c: Likewise.
2851 * python/python-internal.h: Likewise.
2852 * python/python.c: Likewise.
2853 * record-btrace.c: Likewise.
2854 * record-full.c: Likewise.
2855 * regcache.c: Likewise.
2856 * remote-fileio.c: Likewise.
2857 * remote-mips.c: Likewise.
2858 * remote.c: Likewise.
2859 * rs6000-aix-tdep.c: Likewise.
2860 * rs6000-nat.c: Likewise.
2861 * skip.c: Likewise.
2862 * solib-darwin.c: Likewise.
2863 * solib-dsbt.c: Likewise.
2864 * solib-frv.c: Likewise.
2865 * solib-ia64-hpux.c: Likewise.
2866 * solib-spu.c: Likewise.
2867 * solib-svr4.c: Likewise.
2868 * solib.c: Likewise.
2869 * spu-tdep.c: Likewise.
2870 * stack.c: Likewise.
2871 * stap-probe.c: Likewise.
2872 * symfile-mem.c: Likewise.
2873 * symmisc.c: Likewise.
2874 * target.c: Likewise.
2875 * thread.c: Likewise.
2876 * top.c: Likewise.
2877 * tracepoint.c: Likewise.
2878 * tui/tui-interp.c: Likewise.
2879 * typeprint.c: Likewise.
2880 * utils.c: Likewise.
2881 * valarith.c: Likewise.
2882 * valops.c: Likewise.
2883 * valprint.c: Likewise.
2884 * value.c: Likewise.
2885 * varobj.c: Likewise.
2886 * windows-nat.c: Likewise.
2887 * xml-support.c: Likewise.
2888
484933d1
MR
28892014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2890
2891 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2892 name implies.
2893 (extended_mips16_next_pc): Update accordingly.
2894
ab50adb6
MR
28952014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2896
2897 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2898 function.
2899 (micromips_instruction_is_compact_branch): Likewise.
2900 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2901 or a compact jump, reaching a jump delay slot, or seeing a
2902 second non-prologue instruction.
2903 (micromips_scan_prologue): Also terminate scanning upon seeing a
2904 compact branch or jump, or reaching a branch or jump delay slot.
2905 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2906 or jump delay slot, or seeing a second non-prologue instruction.
2907 (mips32_instruction_has_delay_slot): Retain instruction
2908 examination code only, update arguments accordingly and move
2909 instruction fetch pieces to...
2910 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2911 (micromips_instruction_has_delay_slot): Likewise and to...
2912 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2913 (mips16_instruction_has_delay_slot): Likewise and to...
2914 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2915 (mips_single_step_through_delay): Update accordingly.
2916 (mips_adjust_breakpoint_address): Likewise.
2917
ae790652
MR
29182014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2919
2920 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2921 !mustbe32 also return 1 for 32-bit instructions.
2922 (mips16_instruction_has_delay_slot): Likewise. Add an
2923 explanatory comment.
2924
9b807e7b
MR
29252014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2926
2927 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2928 symbols special.
2929
0d5ed153
MR
29302014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2931
2932 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2933 update comments.
2934 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2935 for the breakpoint's address. Don't preinitialize `placed_size'.
2936 (insert_bp_location): Set `reqstd_address' rather than
2937 `placed_address'.
2938 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2939 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2940 address.
2941 (bkpt_remove_location): Likewise.
2942 (deprecated_insert_raw_breakpoint): Likewise.
2943 (deprecated_remove_raw_breakpoint): Likewise.
2944 (find_single_step_breakpoint): Likewise.
2945 * mem-break.c (default_memory_insert_breakpoint): Use
2946 `reqstd_address' for the breakpoint's address. Don't set
2947 `placed_address' or `placed_size' if breakpoint contents couldn't
2948 have been determined.
2949 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2950 the breakpoint's address.
2951 (remote_insert_hw_breakpoint): Likewise. Don't set
2952 `placed_address' or `placed_size' if breakpoint couldn't have been
2953 set.
2954 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2955 `reqstd_address' for the breakpoint's address.
2956 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2957 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2958 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2959 * microblaze-linux-tdep.c
2960 (microblaze_linux_memory_remove_breakpoint): Likewise.
2961 * monitor.c (monitor_insert_breakpoint): Likewise.
2962 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2963 (procfs_insert_hw_breakpoint): Likewise.
2964 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2965 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2966 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2967 * remote-mips.c (mips_insert_breakpoint): Likewise.
2968 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2969
3e871532
LM
29702014-10-03 Luis Machado <lgustavo@codesourcery.com>
2971
2972 * valops.c (value_assign): Check for bit field assignments
2973 before calling architecture-specific register value
2974 conversion functions.
2975
ec48dc8b
PM
29762014-10-03 Pierre Muller <muller@sourceware.org>
2977
2978 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2979
b57bacec
PA
29802014-10-02 Pedro Alves <palves@redhat.com>
2981
2982 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2983 threads_are_executing.
2984 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2985 describing comment.
2986 * gdbthread.h (threads_are_executing): Declare.
2987 (handle_signal_stop) <random signals>: Don't print about the
2988 signal here if stopping.
2989 (end_stepping_range): Don't notify observers here.
2990 (normal_stop): Update the thread list. If stopped by a random
2991 signal or a stepping range ended, notify observers.
2992 * thread.c (threads_executing): New global.
2993 (init_thread_list): Clear 'threads_executing'.
2994 (set_executing): Set or clear 'threads_executing'.
2995 (threads_are_executing): New function.
2996 (update_threads_executing): New function.
2997 (update_thread_list): Use it.
2998
13fd3ff3
PA
29992014-10-02 Pedro Alves <palves@redhat.com>
3000
3001 PR breakpoints/17431
3002 * breakpoint.c (update_breakpoints_after_exec): Don't create
3003 overlay, longjmp, std terminate nor exception breakpoints here.
3004
32990ada
PA
30052014-10-02 Pedro Alves <palves@redhat.com>
3006
3007 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3008 Adjust comments.
3009 * inferior.c (find_inferior_for_program_space): Give preference to
3010 the current inferior.
3011 * inferior.h (find_inferior_for_program_space): Update comment.
3012 * progspace.c (switch_to_program_space_and_thread): Prefer the
3013 current inferior if it's bound to the program space requested. If
3014 the inferior found doesn't have a PID yet, don't bother looking up
3015 a thread.
3016 * progspace.h (switch_to_program_space_and_thread): Adjust
3017 comment.
3018 * thread.c (any_thread_of_process, any_live_thread_of_process):
3019 Give preference to the current thread.
3020
0fec99e8
PA
30212014-10-01 Pedro Alves <palves@redhat.com>
3022
3023 * breakpoint.c (insert_bp_location): Error out if inserting a
3024 software breakpoint at a read-only address.
3025 * target.c (memory_xfer_check_region): New function, factored out
3026 from ...
3027 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3028 ULONGEST.
3029 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3030 against the memory region attributes.
3031
2ddf4301
SM
30322014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3033
3034 * NEWS: Announce new exit-code field in -list-thread-groups
3035 output.
3036 * inferior.c (exit_inferior_1): Don't clear exit code.
3037 (inferior_appeared): Clear exit code.
3038 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3039 code.
3040
5fdeec1d
PA
30412014-10-01 Pedro Alves <palves@redhat.com>
3042
3043 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3044 GENERATED" along with emacs/vi read-only markers.
3045 * regformats/aarch64.dat: Regenerate.
3046 * regformats/arm-with-iwmmxt.dat: Regenerate.
3047 * regformats/arm-with-neon.dat: Regenerate.
3048 * regformats/arm-with-vfpv2.dat: Regenerate.
3049 * regformats/arm-with-vfpv3.dat: Regenerate.
3050 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3051 * regformats/i386/amd64-avx.dat: Regenerate.
3052 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3053 * regformats/i386/amd64-avx512.dat: Regenerate.
3054 * regformats/i386/amd64-linux.dat: Regenerate.
3055 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3056 * regformats/i386/amd64-mpx.dat: Regenerate.
3057 * regformats/i386/amd64.dat: Regenerate.
3058 * regformats/i386/i386-avx-linux.dat: Regenerate.
3059 * regformats/i386/i386-avx.dat: Regenerate.
3060 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3061 * regformats/i386/i386-avx512.dat: Regenerate.
3062 * regformats/i386/i386-linux.dat: Regenerate.
3063 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3064 * regformats/i386/i386-mmx.dat: Regenerate.
3065 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3066 * regformats/i386/i386-mpx.dat: Regenerate.
3067 * regformats/i386/i386.dat: Regenerate.
3068 * regformats/i386/x32-avx-linux.dat: Regenerate.
3069 * regformats/i386/x32-avx.dat: Regenerate.
3070 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3071 * regformats/i386/x32-avx512.dat: Regenerate.
3072 * regformats/i386/x32-linux.dat: Regenerate.
3073 * regformats/i386/x32.dat: Regenerate.
3074 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3075 * regformats/mips-dsp-linux.dat: Regenerate.
3076 * regformats/mips-linux.dat: Regenerate.
3077 * regformats/mips64-dsp-linux.dat: Regenerate.
3078 * regformats/mips64-linux.dat: Regenerate.
3079 * regformats/nios2-linux.dat: Regenerate.
3080 * regformats/rs6000/powerpc-32.dat: Regenerate.
3081 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3082 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3083 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3084 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3085 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3086 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3087 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3088 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3089 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3090 * regformats/s390-linux32.dat: Regenerate.
3091 * regformats/s390-linux32v1.dat: Regenerate.
3092 * regformats/s390-linux32v2.dat: Regenerate.
3093 * regformats/s390-linux64.dat: Regenerate.
3094 * regformats/s390-linux64v1.dat: Regenerate.
3095 * regformats/s390-linux64v2.dat: Regenerate.
3096 * regformats/s390-te-linux64.dat: Regenerate.
3097 * regformats/s390x-linux64.dat: Regenerate.
3098 * regformats/s390x-linux64v1.dat: Regenerate.
3099 * regformats/s390x-linux64v2.dat: Regenerate.
3100 * regformats/s390x-te-linux64.dat: Regenerate.
3101 * regformats/tic6x-c62x-linux.dat: Regenerate.
3102 * regformats/tic6x-c62x.dat: Regenerate.
3103 * regformats/tic6x-c64x-linux.dat: Regenerate.
3104 * regformats/tic6x-c64x.dat: Regenerate.
3105 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3106 * regformats/tic6x-c64xp.dat: Regenerate.
3107
db74e4ba
PA
31082014-10-01 Pedro Alves <palves@redhat.com>
3109
3110 * features/Makefile: Update comments.
3111 (XMLTOC): List all xml files we build C files from.
3112 (clean-cfiles): New rule.
3113
d63f2f84
PA
31142014-10-01 Pedro Alves <palves@redhat.com>
3115
3116 * features/i386/amd64-avx512-linux.c: Regenerate.
3117 * features/i386/amd64-avx512.c: Regenerate.
3118 * features/i386/x32-avx512-linux.c: Regenerate.
3119 * features/i386/x32-avx512.c: Regenerate.
3120
20ad026d
PA
31212014-10-01 Pedro Alves <palves@redhat.com>
3122
3123 * features/Makefile (WHICH): Remove arm-with-m,
3124 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3125
acc9fe45
PA
31262014-10-01 Pedro Alves <palves@redhat.com>
3127
3128 * features/Makefile (clean): New rule.
3129
e001e535
PA
31302014-10-01 Pedro Alves <palves@redhat.com>
3131
3132 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3133 (zmm14h): Add missing end quotes.
3134
bdc14417
PA
31352014-10-01 Pedro Alves <palves@redhat.com>
3136
3137 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3138 * features/aarch64.c: Regenerate.
3139
d83ad864
DB
31402014-09-30 Don Breazeal <donb@codesourcery.com>
3141
3142 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3143 code so as to work with follow_fork_inferior.
3144 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3145 (inf_ttrace_create_inferior): Remove reference to
3146 inf_ttrace_vfork_ppid.
3147 (inf_ttrace_attach): Ditto.
3148 (inf_ttrace_detach): Ditto.
3149 (inf_ttrace_kill): Use current_inferior instead of
3150 inf_ttrace_vfork_ppid.
3151 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3152 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3153 inferior away from the parent.
3154 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3155 target_follow_fork.
3156 (follow_fork_inferior): New function.
3157 (follow_inferior_reset_breakpoints): Make function static.
3158 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3159 * linux-nat.c (linux_child_follow_fork): Move target-independent
3160 code to infrun.c:follow_fork_inferior.
3161
29082443
AA
31622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3163
3164 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3165 * gdbarch.c: Regenerate.
3166 * gdbarch.h: Likewise.
3167 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3168 gdbarch method 'regset_from_core_section'.
3169 (get_core_register_section): Remove handling for the case that
3170 regset == NULL and regset_from_core_section is defined.
3171 (get_core_registers): Drop check for deleted method.
3172 * procfs.c (procfs_do_thread_registers): Adjust comment.
3173
f968fe80
AA
31742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3175
3176 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3177 (linux_nat_make_corefile_notes): Remove.
3178 (linux_target_install_ops): Do not set target method
3179 'make_corefile_notes'.
3180 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3181 Remove field.
3182 (linux_corefile_thread_callback): Instead of args->collect, call
3183 linux_collect_thread_registers.
3184 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3185 NULL unless there is a regset iterator.
3186 (linux_make_corefile_notes_1): Remove.
3187 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3188 by linux_make_corefile_notes.
3189 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3190
174ad59a
AA
31912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3192
3193 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3194 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3195 Remove.
3196 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3197
97094034
AA
31982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3199
3200 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3201 (xtensa_iterate_over_regset_sections): New.
3202 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3203
f73d3ce7
AA
32042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3205
3206 * vax-tdep.c (vax_regset_from_core_section): Remove.
3207 (vax_iterate_over_regset_sections): New.
3208 (vax_gdbarch_init): Adjust gdbarch initialization.
3209
cb24567a
AA
32102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3211
3212 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3213 (tilegx_regset_from_core_section): Remove.
3214 (tilegx_iterate_over_regset_sections): New.
3215 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3216
e5139de8
AA
32172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3218
3219 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3220 (sparc_iterate_over_regset_sections): New.
3221 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3222 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3223 targets.
3224 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3225 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3226 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3227 target method 'make_corefile_notes'.
3228
c6d41a6f
AA
32292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3230
3231 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3232 'sizeof_gregset' and 'sizeof_fpregset'.
3233 * sh-tdep.c (sh_regset_from_core_section): Remove.
3234 (sh_iterate_over_regset_sections): New.
3235 (sh_gdbarch_init): Adjust gdbarch initialization.
3236 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3237 sizeof_fpregset.
3238 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3239 'sizeof_gregset'.
3240
9845a0b5
AA
32412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242
3243 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3244 (score7_linux_iterate_over_regset_sections): New.
3245 (score_gdbarch_init): Adjust gdbarch initialization.
3246
23ea9aeb
AA
32472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3248
3249 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3250 FreeBSD targets.
3251 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3252 method 'make_corefile_notes'.
3253 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3254 (ppcfbsd_regset_from_core_section): Remove.
3255 (ppcfbsd_iterate_over_regset_sections): New.
3256 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3257 initialization.
3258 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3259 (ppcnbsd_iterate_over_regset_sections): New.
3260 (ppcnbsd_init_abi): Adjust.
3261 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3262 (ppcobsd_iterate_over_regset_sections): New.
3263 (ppcobsd_init_abi): Adjust.
3264 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3265 (rs6000_aix_iterate_over_regset_sections): New.
3266 (rs6000_aix_init_osabi): Adjust.
3267
c5b8d704
AA
32682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269
3270 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3271 (nios2_regset_from_core_section): Remove.
3272 (nios2_iterate_over_regset_sections): New.
3273 (nios2_linux_init_abi): Adjust gdbarch initialization.
3274
3636e608
AA
32752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3276
3277 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3278 (am33_iterate_over_regset_sections): New.
3279 (am33_linux_init_osabi): Adjust gdbarch initialization.
3280
d4036235
AA
32812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3282
3283 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3284 (mips_linux_iterate_over_regset_sections): New.
3285 (mips_linux_init_abi): Adjust gdbarch initialization.
3286 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3287 (mips64obsd_iterate_over_regset_sections): New.
3288 (mips64obsd_init_abi): Adjust.
3289 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3290 (mipsnbsd_iterate_over_regset_sections): New.
3291 (mipsnbsd_init_abi): Adjust.
3292
b61ddd6e
AA
32932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3294
3295 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3296 (m88k_iterate_over_regset_sections): New.
3297 (m88k_gdbarch_init): Adjust gdbarch initialization.
3298
55a2906a
AA
32992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3300
3301 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3302 (ia64_linux_iterate_over_regset_sections): New.
3303 (ia64_linux_init_abi): Adjust gdbarch initialization.
3304
022c98ab
AA
33052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3306
3307 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3308 (m68kbsd_iterate_over_regset_sections): New.
3309 (m68kbsd_init_abi): Adjust gdbarch initialization.
3310 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3311 (m68k_linux_iterate_over_regset_sections): New.
3312 (m68k_linux_init_abi): Adjust gdbarch initialization.
3313
5fac247f
AA
33142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3315
3316 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3317 (m32r_linux_regset_from_core_section): Remove.
3318 (m32r_linux_iterate_over_regset_sections): New.
3319 (m32r_linux_init_abi): Adjust gdbarch initialization.
3320
490496c3
AA
33212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3322
3323 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3324 (amd64obsd_iterate_over_regset_sections): New.
3325 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3326 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3327 Remove.
3328 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3329 regset_from_core_section initialization.
3330 * i386-tdep.c (i386_regset_from_core_section): Remove.
3331 (i386_iterate_over_regset_sections): New.
3332 (i386_gdbarch_init): Adjust gdbarch initialization.
3333 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3334 (i386_iterate_over_regset_sections): New prototype.
3335 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3336 Remove.
3337 (i386obsd_aout_iterate_over_regset_sections): New.
3338 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3339 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3340 targets.
3341 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3342 (amd64fbsd_init_abi): Call fbsd_init_abi.
3343 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3344 (i386fbsd4_init_abi): Call fbsd_init_abi.
3345 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3346 target method 'make_corefile_notes'.
3347 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3348
50c5eb53
AA
33492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3350
3351 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3352 (hppa_hpux_iterate_over_regset_sections): New.
3353 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3354 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3355 (hppa_linux_iterate_over_regset_sections): New.
3356 (hppa_linux_init_abi): Adjust.
3357 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3358 (hppanbsd_iterate_over_regset_sections): New.
3359 (hppanbsd_init_abi): Adjust.
3360 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3361 (hppaobsd_iterate_over_regset_sections): New.
3362 (hppaobsd_init_abi): Adjust.
3363
66afae4f
AA
33642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3365
3366 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3367 (frv_linux_iterate_over_regset_sections): New.
3368 (frv_linux_init_abi): Adjust gdbarch initialization.
3369
ed09174e
AA
33702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3371
3372 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3373 (armbsd_iterate_over_regset_sections): New prototype.
3374 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3375 (armbsd_iterate_over_regset_sections): New.
3376 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3377 initialization.
3378
dff2166e
AA
33792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3380
3381 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3382 (alpha_linux_iterate_over_regset_sections): New.
3383 (alpha_linux_init_abi): Adjust gdbarch initialization.
3384 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3385 prototype.
3386 (alphanbsd_iterate_over_regset_sections): New prototype.
3387
4108500a
AA
33882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3389
3390 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3391 Remove.
3392 (aarch64_linux_iterate_over_regset_sections): New.
3393 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3394
a904c024
AA
33952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3396
3397 * fbsd-tdep.c: New file.
3398 * fbsd-tdep.h: New file.
3399 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3400 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3401 (ALLDEPFILES): Add fbsd-tdep.c.
3402
8f0435f7
AA
34032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3404
3405 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3406 parameter.
3407 * gdbarch.h: Regenerate.
3408 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3409 iterator.
3410 (get_core_register_section): Add parameter 'regset' and use it, if
3411 set. Add parameter 'min_size' and verify the bfd section size
3412 against it.
3413 (get_core_registers_cb): Add parameter 'regset' and pass it to
3414 get_core_register section. For the "standard" register sections
3415 ".reg" and ".reg2", set an appropriate default for human_name.
3416 (get_core_registers): Don't abort when the gdbarch has an iterator
3417 but no regset_from_core_section. Add NULL/0 for parameters
3418 'regset'/'min_size' in calls to get_core_register_section.
3419 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3420 'regset' and use it instead of calling the
3421 regset_from_core_section gdbarch method.
3422 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3423 * i386-tdep.c (i386_supply_xstateregset)
3424 (i386_collect_xstateregset, i386_xstateregset): Moved to
3425 i386-linux-tdep.c.
3426 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3427 .reg-xstate.
3428 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3429 core file support only if the regset iterator hasn't been set.
3430 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3431 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3432 Moved from i386-tdep.c and renamed to *_linux*.
3433 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3434 each callback invocation. Allow any .reg-xstate size when reading
3435 from a core file.
3436 * amd64-tdep.c (amd64_supply_xstateregset)
3437 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3438 amd64-linux-tdep.c.
3439 (amd64_regset_from_core_section): Remove.
3440 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3441 install an amd64-specific regset_from_core_section gdbarch method.
3442 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3443 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3444 Moved from amd64-tdep.c and renamed to *_linux*.
3445 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3446 to each callback invocation. Allow any .reg-xstate size when
3447 reading from a core file.
3448 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3449 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3450 each callback invocation.
3451 (arm_linux_init_abi): No longer set the regset_from_core_section
3452 gdbarch method.
3453 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3454 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3455 each callback invocation.
3456 (ppc_linux_init_abi): No longer set the regset_from_core_section
3457 gdbarch method.
3458 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3459 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3460 (s390_regset_from_core_section): Remove.
3461 (s390_iterate_over_regset_sections): Add regset parameter to each
3462 callback invocation.
3463 (s390_gdbarch_init): No longer set the regset_from_core_section
3464 gdbarch method. Drop initialization of deleted tdep fields.
3465
5aa82d05
AA
34662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3467
3468 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3469 (amd64_linux_iterate_over_regset_sections): New.
3470 (amd64_linux_init_abi_common): Don't install the regset section
3471 list, but the new iterator in gdbarch.
3472 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3473 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3474 (arm_linux_iterate_over_regset_sections): ...here. New function.
3475 (arm_linux_init_abi): Set iterator instead of section list.
3476 * corelow.c (get_core_registers_cb): New function, logic moved
3477 from...
3478 (get_core_registers): ...loop body here. Use new iterator method
3479 instead of walking through the regset section list.
3480 * gdbarch.sh: Remove 'core_regset_sections'. New method
3481 'iterate_over_regset_sections'. New typedef
3482 'iterate_over_regset_sections_cb'.
3483 * gdbarch.c: Regenerate.
3484 * gdbarch.h: Likewise.
3485 * i386-linux-tdep.c (i386_linux_regset_sections)
3486 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3487 Remove.
3488 (i386_linux_iterate_over_regset_sections): New.
3489 (i386_linux_init_abi): Don't choose a regset section list, but
3490 install new iterator in gdbarch.
3491 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3492 (linux_collect_regset_section_cb): New function, logic moved
3493 from...
3494 (linux_collect_thread_registers): ...loop body here. Use iterator
3495 method instead of walking through list.
3496 (linux_make_corefile_notes_1): Check for presence of iterator
3497 method instead of regset section list.
3498 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3499 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3500 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3501 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3502 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3503 (ppc_linux_init_abi): Don't choose from above regset section
3504 lists, but install new iterator in gdbarch.
3505 * regset.h (struct core_regset_section): Remove.
3506 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3507 have_linux_v1, have_linux_v2, and have_tdb.
3508 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3509 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3510 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3511 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3512 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3513 (s390_iterate_over_regset_sections): ...here. New function. Use
3514 new tdep fields.
3515 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3516 regset section lists, but install new iterator.
3517
2eca4a8d
JK
35182014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3521
a73c2b56
SM
35222014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3523
3524 * progspace.c (print_program_space): Don't prune program spaces
3525 before printing them.
3526
03d46957
PA
35272014-09-25 Pedro Alves <palves@redhat.com>
3528
3529 * infrun.c (user_visible_resume_ptid): Don't check
3530 singlestep_breakpoints_inserted_p.
3531
e558d7c1
PA
35322014-09-25 Pedro Alves <palves@redhat.com>
3533
3534 * breakpoint.c (should_be_inserted): Add debug output.
3535
7f89fd65
PA
35362014-09-25 Pedro Alves <palves@redhat.com>
3537
3538 * infrun.c (stepping_past_instruction_at)
3539 (clear_exit_convenience_vars): Point at infrun.h instead of
3540 inferior.h.
3541 (handle_signal_stop): Fix typo.
3542
b7576e5c
YQ
35432014-09-24 Yao Qi <yao@codesourcery.com>
3544
3545 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3546 bitmask.
3547
9a6cf368
GB
35482014-09-22 Gary Benson <gbenson@redhat.com>
3549
3550 * target.c (target_stop): Updated comment.
3551
03f4463b
GB
35522014-09-22 Gary Benson <gbenson@redhat.com>
3553
3554 * target/target.h (target_stop_ptid): Renamed as...
3555 (target_stop_and_wait): New function. Updated comment.
3556 All uses updated.
3557 (target_continue_ptid): Renamed as...
3558 (target_continue_no_signal): New function. Updated comment.
3559 All uses updated.
3560
a25a5a45
PA
35612014-09-22 Pedro Alves <palves@redhat.com>
3562
3563 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3564 and "auto" merged.
3565 * breakpoint.c (enum ugll_insert_mode): New enum.
3566 (always_inserted_mode): Now a plain boolean.
3567 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3568 (breakpoints_always_inserted_mode): Delete.
3569 (breakpoints_should_be_inserted_now): New function.
3570 (insert_breakpoints): Pass UGLL_INSERT to
3571 update_global_location_list instead of calling
3572 insert_breakpoint_locations manually.
3573 (create_solib_event_breakpoint_1): New, factored out from ...
3574 (create_solib_event_breakpoint): ... this.
3575 (create_and_insert_solib_event_breakpoint): Use
3576 create_solib_event_breakpoint_1 instead of calling
3577 insert_breakpoint_locations manually.
3578 (update_global_location_list): Change parameter type from boolean
3579 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3580 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3581 (update_global_location_list_nothrow): Change parameter type from
3582 boolean to enum ugll_insert_mode.
3583 (_initialize_breakpoint): "breakpoint always-inserted" option is
3584 now a boolean command. Update help text.
3585 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3586 (breakpoints_should_be_inserted_now): New declaration.
3587 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3588 Remove breakpoints_always_inserted_mode check.
3589 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3590 * remote.c (remote_start_remote): Likewise.
3591
04086b45
PA
35922014-09-22 Pedro Alves <palves@redhat.com>
3593
3594 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3595 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3596 Instead, pass UGLL_INSERT to update_global_location_list.
3597 (update_global_location_list): Change parameter type from boolean
3598 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3599 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3600 (create_solib_event_breakpoint_1): New, factored out from ...
3601 (create_solib_event_breakpoint): ... this.
3602 (create_and_insert_solib_event_breakpoint): Use
3603 create_solib_event_breakpoint_1 instead of calling
3604 insert_breakpoint_locations manually.
3605 (update_global_location_list): Handle UGLL_INSERT.
3606
44702360
PA
36072014-09-22 Pedro Alves <palves@redhat.com>
3608
3609 * breakpoint.c (enum ugll_insert_mode): New enum.
3610 (update_global_location_list)
3611 (update_global_location_list_nothrow): Change parameter type from
3612 boolean to enum ugll_insert_mode. All callers adjusted.
3613
93c6145a
JB
36142014-09-19 Joel Brobecker <brobecker@adacore.com>
3615
3616 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3617 SystemTap support in GDB.
3618
89a5711c
DB
36192014-09-19 Don Breazeal <donb@codesourcery.com>
3620
3621 * linux-nat.c (linux_handle_extended_wait): Call
3622 linux_ptrace_get_extended_event.
3623 (wait_lwp): Call linux_is_extended_waitstatus.
3624 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3625 and linux_is_extended_waitstatus.
3626 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3627 linux_ptrace_get_extended_event.
3628 (linux_ptrace_get_extended_event): New function.
3629 (linux_is_extended_waitstatus): New function.
3630 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3631 (linux_is_extended_waitstatus): New declarations.
3632
c3b7b696
YQ
36332014-09-19 Yao Qi <yao@codesourcery.com>
3634
3635 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3636 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3637 comments. Callers update.
3638 (dwarf_decode_lines): Likewise.
3639 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3640 comments. Skip the line table if 'lowpc' is greater than
3641 'address'. Don't check
3642 dwarf2_per_objfile->has_section_at_zero.
3643
2b4fd423
DE
36442014-09-18 Doug Evans <dje@google.com>
3645
3646 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3647 * python/py-symtab.c (stpy_get_producer): New function.
3648 (symtab_object_getset): Add "producer" attribute.
3649
5e43d467
UW
36502014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3651
3652 PR gdb/17384
3653 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3654 (do_captured_read_memory_integer): Remove.
3655 (safe_read_memory_integer): Use target_read_memory directly instead
3656 of catching errors in do_captured_read_memory_integer.
3657
04e79979
MR
36582014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3659
3660 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3661 not gdb/doc.
3662
76aeec5b
SDJ
36632014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3664
3665 * objc-lang.c (find_implementation_from_class): Remove dead code.
3666
2f693f9d
SDJ
36672014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3668
3669 PR cli/7233
3670 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3671 "fprintf_unfiltered (gdb_stdlog...)".
3672
bb9d5f81
PP
36732014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3674
3675 PR breakpoints/12526
3676 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3677 val_bitsize.
3678 * breakpoint.c (watch_command_1): Use these fields to retain
3679 bitfield information.
3680 (extract_bitfield_from_watchpoint_value): New function.
3681 (watchpoint_check): Use it.
3682 (update_watchpoint): Use it. Optimize the address and length of a
3683 HW watchpoint pointing to a bitfield.
3684 * value.h (unpack_value_bitfield): New prototype.
3685 * value.c (unpack_value_bitfield): Make extern.
3686
05db5edd
ST
36872014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3688
3689 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3690 x86-dregs.o.
3691 * gnu-nat.c (inf_threads): New function.
3692 * gnu-nat.h (inf_threads_ftype): New typedef.
3693 (inf_threads): New declaration.
3694 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3695 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3696 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3697 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3698 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3699 (i386_gnu_dr_get_control): New functions.
3700 (reg_addr): New structure.
3701 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3702 i386 debugging register hooks.
3703 * NEWS: Mention this.
3704
5a578da5
OJ
37052014-08-13 Omair Javaid <omair.javaid@linaro.org>
3706
3707 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3708 vector data transfer instructions.
3709 (arm_record_coproc_data_proc): Updated.
3710
f20f80dd
OJ
37112014-08-13 Omair Javaid <omair.javaid@linaro.org>
3712
3713 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3714 arm_record_exreg_ld_st_insn.
3715 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3716 load/store insns.
3717
851f26ae
OJ
37182014-08-13 Omair Javaid <omair.javaid@linaro.org>
3719
3720 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3721 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3722 processing instructions.
3723
1e1b6563
OJ
37242014-08-13 Omair Javaid <omair.javaid@linaro.org>
3725
3726 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3727 for advance SIMD struct ld/st insn.
3728 (thumb2_record_decode_insn_handler): Replace stub handler with
3729 thumb2_record_asimd_struct_ld_st.
3730
60cc5e93
OJ
37312014-08-13 Omair Javaid <omair.javaid@linaro.org>
3732
3733 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3734 for asimd, vfp and coprocessor insns.
3735 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3736 and coprocessor insns.
3737 (thumb2_record_coproc_insn): New function.
3738 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3739 handlers.
3740 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3741 opcode 110 insns.
3742
81219e53
DE
37432014-09-13 Doug Evans <xdje42@gmail.com>
3744
3745 * NEWS: Mention new "queue-signal" command.
3746 * infcmd.c (queue_signal_command): New function.
3747 (_initialize_infcmd): Add new queue-signal command.
3748
d36bf488
DE
37492014-09-13 Doug Evans <xdje42@gmail.com>
3750
3751 * linux-nat.c (wait_lwp): Add debugging printf.
3752 (linux_nat_wait_1): Ditto.
3753
f37f681c
PA
37542014-09-12 Pedro Alves <palves@redhat.com>
3755
3756 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3757 (create_and_insert_solib_event_breakpoint): New functions.
3758 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3759 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3760 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3761 (remove_dbx_link_breakpoint): Delete function.
3762 (insert_dbx_link_bpt_in_file): Use
3763 create_and_insert_solib_event_breakpoint instead of
3764 deprecated_insert_raw_breakpoint.
3765 (procfs_wait): Don't check whether we hit __dbx_link here.
3766 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3767 here.
3768 * solib-irix.c (base_breakpoint): Delete global.
3769 (disable_break): Delete function.
3770 (enable_break): Use create_solib_event_breakpoint
3771 instead of deprecated_insert_raw_breakpoint.
3772 (irix_solib_handle_event): New function.
3773 (irix_solib_create_inferior_hook): Don't run the target or disable
3774 the mapping-complete breakpoint here.
3775 (_initialize_irix_solib): Install irix_solib_handle_event as
3776 so_ops->handle_event hook.
3777
9d9bf2df
EBM
37782014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3779 Ulrich Weigand  <uweigand@de.ibm.com>
3780
3781 PR tdep/17379
3782 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3783 instead of read_memory_unsigned_integer.
3784
b006a80e
GB
37852014-09-12 Gary Benson <gbenson@redhat.com>
3786
3787 * nat/linux-waitpid.c: Include common-defs.h.
3788 [GDBSERVER]: Add FIXME comment.
3789 [!GDBSERVER]: Don't include defs.h or signal.h.
3790 (linux_debug) [!GDBSERVER]: Remove empty block.
3791
296b1496
GB
37922014-09-12 Gary Benson <gbenson@redhat.com>
3793
3794 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3795 Don't include defs.h or server.h.
3796
53f81362
GB
37972014-09-12 Gary Benson <gbenson@redhat.com>
3798
3799 * nat/linux-btrace.c: Include common-defs.h.
3800 Don't include defs.h, server.h or gdbthread.h.
3801 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3802
727605ca
GB
38032014-09-12 Gary Benson <gbenson@redhat.com>
3804
3805 * common/agent.c: Include common-defs.h.
3806 Don't include defs.h or server.h.
3807 * common/buffer.c: Likewise.
3808 * common/common-debug.c: Likewise.
3809 * common/common-utils.c: Likewise.
3810 * common/errors.c: Likewise.
3811 * common/filestuff.c: Likewise.
3812 * common/format.c: Likewise.
3813 * common/gdb_vecs.c: Likewise.
3814 * common/print-utils.c: Likewise.
3815 * common/ptid.c: Likewise.
3816 * common/rsp-low.c: Likewise.
3817 * common/signals.c: Likewise.
3818 * common/vec.c: Likewise.
3819 * common/xml-utils.c: Likewise.
3820 * nat/linux-osdata.c: Likewise.
3821 * nat/linux-procfs.c: Likewise.
3822 * nat/linux-ptrace.c: Likewise.
3823 * nat/mips-linux-watch.c: Likewise.
3824 * target/waitstatus.c: Likewise.
3825
361c8ade
GB
38262014-09-12 Tom Tromey <tromey@redhat.com>
3827 Gary Benson <gbenson@redhat.com>
3828
3829 * common/common-regcache.h: New file.
3830 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3831 * regcache.h: Include common-regcache.h.
3832 (regcache_read_pc): Don't declare.
3833 * regcache.c (get_thread_regcache_for_ptid): New function.
3834 * nat/linux-btrace.c: Don't include regcache.h.
3835 Include common-regcache.h.
3836 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3837
a01cbb49
TS
38382014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3839
3840 * regcache.h (struct regset): Declare.
3841
98880d46
PA
38422014-09-11 Pedro Alves <palves@redhat.com>
3843
3844 PR gdb/17347
3845 * main.c: Include "infrun.h".
3846 (catch_command_errors, catch_command_errors_const): Wait for the
3847 foreground command to complete.
3848 * top.c (maybe_wait_sync_command_done): New function, factored out
3849 from ...
3850 (maybe_wait_sync_command_done): ... here.
3851 * top.h (maybe_wait_sync_command_done): New declaration.
3852
bd9269f7
GB
38532014-09-11 Tom Tromey <tromey@redhat.com>
3854 Gary Benson <gbenson@redhat.com>
3855
3856 * common/symbol.h: New file.
3857 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3858 * minsyms.c (find_minimal_symbol_address): New function.
3859 * common/agent.c: Include common/symbol.h.
3860 [!GDBSERVER]: Don't include objfiles.h.
3861 (agent_look_up_symbols): Use find_minimal_symbol_address.
3862
f8c1d06b
GB
38632014-09-11 Gary Benson <gbenson@redhat.com>
3864
3865 * target/target.h (target_stop_ptid, target_continue_ptid):
3866 Declare.
3867 * target.c (target_stop_ptid, target_continue_ptid): New
3868 functions.
3869 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3870 (agent_run_command): Always use target_stop_ptid and
3871 target_continue_ptid.
3872
721ec300
GB
38732014-09-11 Tom Tromey <tromey@redhat.com>
3874 Gary Benson <gbenson@redhat.com>
3875
3876 * target/target.h: New file.
3877 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3878 * target.h: Include target/target.h.
3879 (target_read_memory, target_write_memory): Don't declare.
3880 * target.c (target_read_uint32): New function.
3881 * common/agent.c: Include target/target.h.
3882 [!GDBSERVER]: Don't include target.h.
3883 (helper_thread_id): Type changed to uint32_t.
3884 (agent_get_helper_thread_id): Use target_read_uint32.
3885 (agent_run_command): Always use target_read_memory and
3886 target_write_memory.
3887 (agent_capability): Type changed to uint32_t.
3888 (agent_capability_check): Use target_read_uint32.
3889
c5e92cca
GB
38902014-09-11 Gary Benson <gbenson@redhat.com>
3891
3892 * common/common-debug.h (show_debug_regs): Declare.
3893 * common/common-debug.c (show_debug_regs): Define.
3894 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3895 all uses with show_debug_regs. Replace all uses that considered
3896 debug_hw_points as a multi-value integer with straight boolean
3897 uses.
3898 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3899 with show_debug_regs.
3900 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3901 all uses with show_debug_regs.
3902 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3903 uses with show_debug_regs.
3904
eeef931a
UW
39052014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3906
3907 * findvar.c (address_from_register): Handle targets requiring
3908 a special conversion routine even for plain pointer types.
3909
8efa9855
UW
39102014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3911
3912 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3913 (store_register): Do not call exec_one_dummy_insn.
3914
eb479039
JB
39152014-09-10 Joel Brobecker <brobecker@adacore.com>
3916
3917 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3918 dereference it first. Use value_enclosing_type instead of
3919 value_type.
3920 (ada_array_length): Likewise.
3921
deede10c
JB
39222014-09-10 Joel Brobecker <brobecker@adacore.com>
3923
3924 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3925 Adjust function implementation and documentation accordingly.
3926 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3927 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3928 Update call to ada_value_ptr_subscript.
3929
7828a5f5
JB
39302014-09-10 Joel Brobecker <brobecker@adacore.com>
3931
3932 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3933 instead of VAL's type.
3934
35782f14
JB
39352014-09-10 Joel Brobecker <brobecker@adacore.com>
3936
3937 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3938
d342a0da
DE
39392014-09-09 Doug Evans <xdje42@gmail.com>
3940
3941 PR guile/17367
3942 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3943 last parameter to pkg-config, not first.
3944 * configure.ac: Pass --with-guile provided pkg-config path to
3945 GDB_GUILE_PROGRAM_NAMES.
3946 * configure: Regenerate.
3947
b4a3d263
GKB
39482014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3949
3950 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3951 Bertazi".
3952
6e466374
MR
39532014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3954
3955 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3956 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3957 the list of sections determining GDB_OSABI_IRIX.
3958
a1ada89a
JH
39592014-09-09 James Hogan <james.hogan@imgtec.com>
3960
3961 * MAINTAINERS (Write After Approval): Add "James Hogan".
3962
86db008d
JH
39632014-09-09 James Hogan <james.hogan@imgtec.com>
3964
3965 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3966
72fde3df
JB
39672014-09-09 Joel Brobecker <brobecker@adacore.com>
3968
3969 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3970
92d8d229
DE
39712014-09-08 Doug Evans <xdje42@gmail.com>
3972
3973 PR 17247
3974 * guile.c: #include <signal.h>.
3975 (_initialize_guile): Block SIGCHLD while initializing Guile.
3976
3977 Replaces the following, which is reverted.
3978
3979 2014-07-26 Doug Evans <xdje42@gmail.com>
3980
3981 PR 17185
3982 * configure.ac: Add check for header gc/gc.h.
3983 Add check for function setenv.
3984 * configure: Regenerate.
3985 * config.in: Regenerate.
3986 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3987
d81412aa
DE
39882014-09-08 Doug Evans <xdje42@gmail.com>
3989
3990 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3991 with named constant. Fix style of pointer comparison.
3992 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3993
a9f116cb
GKB
39942014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3995
3996 PR gdb/17035
3997 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3998 decide whether we display the command on "show user".
3999 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4000 printing command name.
4001 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4002 * cli/cli-decode.c (cli_user_command_p): Create helper function
4003 to verify whether cmd_list_element is a user-defined command.
4004
c75bd3a2
JK
40052014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4006
4007 PR python/17355
4008 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4009 Fix goto out of TRY_CATCH.
4010
faa42425 40112014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 4012 Tom Tromey <tromey@redhat.com>
faa42425
DE
4013
4014 PR 15276
4015 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4016 $_any_caller_matches.
4017 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4018 * python/lib/gdb/function/caller_is.py: New file.
4019
0d41ba00
DE
40202014-09-06 Doug Evans <xdje42@gmail.com>
4021
4022 * infcmd.c (program_info): Fix typo.
4023
474ca4f6
SDJ
40242014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4025
4026 PR gdb/17235
4027 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4028 'number'. New variable 'has_digit'. Rewrite code to deal with
4029 subexpressions on SDT probes.
4030
ebf13736
PA
40312014-09-04 Pedro Alves <palves@redhat.com>
4032
4033 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4034 the input is only one character long.
4035
eb0b0463
SDJ
40362014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4037
4038 PR fortran/17237
4039 * f-valprint.c (f_val_print): Specify the correct print option to
4040 use when printing integer values.
4041
5ee44bfa
GB
40422014-09-04 Gary Benson <gbenson@redhat.com>
4043
4044 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4045 Remove code to cope with LWPs wrapped as PIDs.
4046 Add assertions to ensure no wrapped LWPs are passed.
4047
4875ffdb
PA
40482014-09-04 Pedro Alves <palves@redhat.com>
4049
4050 * value.c (value_ranges_copy_adjusted): New function, factored out
4051 from ...
4052 (value_contents_copy_raw): ... here.
4053 (unpack_value_bits_as_long_1): Rename back to ...
4054 (unpack_bits_as_long): ... this. Remove 'original_value' and
4055 'result' parameters. Change return type to LONGEST.
4056 (unpack_value_bits_as_long): Delete.
4057 (unpack_value_field_as_long_1): Delete.
4058 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4059 (unpack_value_bitfield): New function.
4060 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4061 (value_fetch_lazy): Use unpack_value_bitfield.
4062 * value.h (unpack_value_bits_as_long): Delete declaration.
4063
5f3b99cf
SS
40642014-09-03 Sasha Smundak <asmundak@google.com>
4065
4066 * python/py-frame.c (frapy_read_register): New function.
4067
ac740bc7
JH
40682014-09-03 James Hogan <james.hogan@imgtec.com>
4069
4070 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4071 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4072
7d793aa9
SDJ
40732014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4074
4075 PR python/16699
4076 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4077 function.
4078 (add_cmd): Set "completer_handle_brkchars" to NULL.
4079 * cli/cli-decode.h (struct cmd_list_element)
4080 <completer_handle_brkchars>: New field.
4081 * command.h (completer_ftype_void): New typedef.
4082 (set_cmd_completer_handle_brkchars): New prototype.
4083 * completer.c (set_gdb_completion_word_break_characters): New
4084 function.
4085 (complete_line_internal): Call "completer_handle_brkchars"
4086 callback from command.
4087 * completer.h: Include "command.h".
4088 (set_gdb_completion_word_break_characters): New prototype.
4089 * python/py-cmd.c (cmdpy_completer_helper): New function.
4090 (cmdpy_completer_handle_brkchars): New function.
4091 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4092 (cmdpy_init): Set completer_handle_brkchars to
4093 cmdpy_completer_handle_brkchars.
4094
97ea6506
GB
40952014-09-03 Gary Benson <gbenson@redhat.com>
4096
4097 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4098 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4099 Loop conditions changed to equivalent form.
4100 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4101 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4102 ALL_DEBUG_ADDRESS_REGISTERS.
4103
d1437815
JB
41042014-09-03 Joel Brobecker <brobecker@adacore.com>
4105
4106 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4107 description fix.
4108
9b94fcf1
DE
41092014-09-02 Doug Evans <dje@google.com>
4110
4111 * typeprint.c (find_global_typedef): Fix comment.
4112
df7e5265
GB
41132014-09-02 Gary Benson <gbenson@redhat.com>
4114
4115 * i386-nat.h: Renamed as...
4116 * x86-nat.h: New file. All type, function and variable name
4117 prefixes changed from "i386_" to "x86_". All references updated.
4118 * i386-nat.c: Renamed as...
4119 * x86-nat.c: New file. All type, function and variable name
4120 prefixes changed from "i386_" to "x86_". All references updated.
4121 * common/i386-xstate.h: Renamed as...
4122 * common/x86-xstate.h: New file. All type, function and variable
4123 name prefixes changed from "i386_" to "x86_". All references
4124 updated.
4125 * nat/i386-cpuid.h: Renamed as...
4126 * nat/x86-cpuid.h: New file. All type, function and variable name
4127 prefixes changed from "i386_" to "x86_". All references updated.
4128 * nat/i386-gcc-cpuid.h: Renamed as...
4129 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4130 name prefixes changed from "i386_" to "x86_". All references
4131 updated.
4132 * nat/i386-dregs.h: Renamed as...
4133 * nat/x86-dregs.h: New file. All type, function and variable name
4134 prefixes changed from "i386_" to "x86_". All references updated.
4135 * nat/i386-dregs.c: Renamed as...
4136 * nat/x86-dregs.c: New file. All type, function and variable name
4137 prefixes changed from "i386_" to "x86_". All references updated.
4138
1c3569d4
MR
41392014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4140
4141 * varobj.c (_initialize_varobj): Move to the end of file.
4142
ff55e1b5
GB
41432014-08-29 Gary Benson <gbenson@redhat.com>
4144
4145 * common/common-exceptions.h: New file.
4146 * common/common-exceptions.c: Likewise.
4147 * Makefile.in (SFILES): Add common/common-exceptions.c.
4148 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4149 (COMMON_OBS): Add common-exceptions.o.
4150 (common-exceptions.o): New rule.
4151 * exceptions.h (common-exceptions.h): Include.
4152 (gdb_setjmp.h): Do not include.
4153 (return_reason): Moved to common-exceptions.h.
4154 (enum return_reason): Likewise.
4155 (RETURN_MASK): Likewise.
4156 (typedef return_mask): Likewise.
4157 (enum errors): Likewise.
4158 (struct gdb_exception): Likewise.
4159 (exceptions_state_mc_init): Likewise.
4160 (exceptions_state_mc_action_iter): Likewise.
4161 (exceptions_state_mc_action_iter_1): Likewise.
4162 (TRY_CATCH): Likewise.
4163 (throw_exception): Likewise.
4164 (throw_verror): Likewise.
4165 (throw_vquit): Likewise.
4166 (throw_error): Likewise.
4167 (throw_quit): Likewise.
4168 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4169 (enum catcher_action): Likewise.
4170 (struct catcher): Likewise.
4171 (current_catcher): Likewise.
4172 (catcher_list_size): Likewise.
4173 (exceptions_state_mc_init): Likewise.
4174 (catcher_pop): Likewise.
4175 (exceptions_state_mc): Likewise.
4176 (exceptions_state_mc_action_iter): Likewise.
4177 (exceptions_state_mc_action_iter_1): Likewise.
4178 (throw_exception): Likewise.
4179 (exception_messages): Likewise.
4180 (exception_messages_size): Likewise.
4181 (throw_it): Likewise.
4182 (throw_verror): Likewise.
4183 (throw_vquit): Likewise.
4184 (throw_error): Likewise.
4185 (throw_quit): Likewise.
4186 (prepare_to_throw_exception): New function.
4187
e9bcb658
GB
41882014-08-29 Gary Benson <gbenson@redhat.com>
4189
4190 * common/gdb_setjmp.h: New file.
4191 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4192 * configure.ac: Move sigsetjmp check...
4193 * common/common.m4: ...here.
4194 * configure: Regenerate.
4195 * cp-support.c (SIGJMP_BUF): Delete.
4196 (SIGSETJMP): Likewise.
4197 (SIGLONGJMP): Likewise.
4198 * exceptions.h (gdb_setjmp.h): Include.
4199 (setjmp.h): Do not include.
4200 (EXCEPTIONS_SIGJMP_BUF): Delete.
4201 (EXCEPTIONS_SIGSETJMP): Likewise.
4202 (EXCEPTIONS_SIGLONGJMP): Likewise.
4203 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4204 from gdb_setjmp.h.
4205 * exceptions.c: Likewise.
4206
e3180625
GB
42072014-08-29 Gary Benson <gbenson@redhat.com>
4208
4209 * cleanups.h: Moved to...
4210 * common/cleanups.h: New file.
4211 * cleanups.c: Moved to...
4212 * common/cleanups.c: New file. Include common-defs.h and
4213 cleanups.h. Do not include defs.h.
4214 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4215 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4216 (cleanups.o): New rule.
4217
e3d6ba5d
GB
42182014-08-29 Gary Benson <gbenson@redhat.com>
4219
4220 * common/errors.h (internal_warning): New declaration.
4221 (internal_vwarning): Likewise.
4222 * common/errors.c (internal_warning): New function.
4223 * utils.h (internal_warning): Don't declare.
4224 (internal_vwarning): Likewise.
4225 * utils.c (internal_warning): Removed.
4226
075c7033
GB
42272014-08-29 Gary Benson <gbenson@redhat.com>
4228
4229 * main.c (captured_main): Use warning during startup.
4230 Prefix startup warning messages with command name.
4231
91b35fd0
GB
42322014-08-29 Gary Benson <gbenson@redhat.com>
4233
4234 * main.c (captured_main): Handle usage errors with error.
4235
b1ec390e
GB
42362014-08-29 Gary Benson <gbenson@redhat.com>
4237
4238 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4239 exit pair with a call to error. Wrap the message with _().
4240
fd0ef3dd
GB
42412014-08-29 Gary Benson <gbenson@redhat.com>
4242
4243 * main.c (captured_main): Replace a fprintf/exit
4244 pair with a call to error. Wrap the message with _().
4245
e0e6bcab
GB
42462014-08-29 Gary Benson <gbenson@redhat.com>
4247
4248 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4249 pairs with calls to error. Wrap the message with _().
4250
0d2f5c07
GB
42512014-08-29 Gary Benson <gbenson@redhat.com>
4252
4253 * utils.c (vwarning): Protect calls to target_terminal_ours
4254 and wrap_here.
4255
5df43998
GB
42562014-08-29 Gary Benson <gbenson@redhat.com>
4257
4258 * exceptions.c (print_flush): Protect calls to
4259 target_terminal_ours and wrap_here.
4260
2437fd32
GB
42612014-08-29 Gary Benson <gbenson@redhat.com>
4262
4263 * utils.h (filtered_printing_initialized): New declaration.
4264 * utils.c (abort_with_message): New function.
4265 (internal_vproblem): Use abort_with_message for first level
4266 recursive internal problems, and if gdb_stderr is not set up.
4267 Protect calls to target_terminal_ours, begin_line and query.
4268
f1f58506
DE
42692014-08-28 Doug Evans <dje@google.com>
4270
4271 * symtab.c (in_prologue): Move definition to better spot.
4272 (skip_prologue_using_sal): Ditto.
4273
aab2f208
DE
42742014-08-28 Doug Evans <dje@google.com>
4275
4276 * symtab.c (find_function_start_sal): Move definition to better spot.
4277
6b65d1b6
YQ
42782014-08-28 Yao Qi <yao@codesourcery.com>
4279
4280 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4281 found_stack_adjust in forward scan. Remove condition check
4282 on found_stack_adjust which is always true. Indent the code.
4283
a1b34d15
YQ
42842014-08-28 Yao Qi <yao@codesourcery.com>
4285
4286 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4287 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4288 (dwarf_decode_lines): Remove argument
4289 want_line_info. Remove condition check on want_line_info.
4290 Callers update.
4291
d5962de5
DE
42922014-08-27 Doug Evans <dje@google.com>
4293
4294 * dwarf2read.c (dwarf_record_line): Fix typo.
4295
9b139002
SDJ
42962014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4297
4298 * target.h (struct target_ops::to_terminal_save_ours): Remove
4299 declaration.
4300 (target_terminal_save_ours): Remove macro.
4301 * target-delegates.c: Regenerate.
4302 * inf-child.c (inf_child_target): Don't set the nonexistent
4303 field to_terminal_save_ours.
4304 * inferior.h (child_terminal_save_ours): Remove declaration.
4305 * terminal.h (gdb_save_tty_state): New declaration.
4306 * inflow.c (child_terminal_save_ours): Rename to ...
4307 (gdb_save_tty_state): ... this.
4308 * tui/tui.c: Include terminal.h.
4309 (tui_enable): Use gdb_save_tty_state instead of
4310 target_terminal_save_ours.
4311 (tui_disable): Likewise.
4312
9debeba0
DE
43132014-08-25 Doug Evans <dje@google.com>
4314
4315 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4316 Pass NULL instead of 0 for context pointer.
4317
428fc5fc
YQ
43182014-08-25 Yao Qi <yao@codesourcery.com>
4319
4320 * dwarf2read.c: Fix grammatical error.
4321
cdc07690
YQ
43222014-08-24 Yao Qi <yao@codesourcery.com>
4323
4324 * dwarf2read.c (scan_partial_symbols): Update comments.
4325 Rename argument 'need_pc' with 'set_addrmap'.
4326 (add_partial_namespace): Rename argument 'need_pc' with
4327 'set_addrmap'.
4328 (add_partial_module): Likewise.
4329 (add_partial_subprogram): Likewise. Update comments.
4330 (dwarf2_name): Fix typo.
4331
a05a36a5
DE
43322014-08-22 Doug Evans <dje@google.com>
4333
4334 PR 17276
4335 * dwarf2read.c (dwarf_record_line_p): New function.
4336 (dwarf_decode_lines_1): Ignore subsequent line number entries
4337 for the same line if any entry had a non-zero discriminator.
4338
252a6764
DE
43392014-08-22 Doug Evans <dje@google.com>
4340
4341 * buildsym.h (record_line_ftype): New typedef.
4342 (record_line): Use it.
4343 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4344 (dwarf_decode_lines_1): Call them.
4345
510db052
YQ
43462014-08-22 Yao Qi <yao@codesourcery.com>
4347
4348 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4349 (ctf_end): Remove code.
4350
22fd09ae
JK
43512014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4352
4353 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4354 (linux_make_corefile_notes): call update_thread_list, protected against
4355 exceptions.
4356
656e8868
PA
43572014-08-21 Pedro Alves <palves@redhat.com>
4358
4359 * infcmd.c (attach_command): Remove comment.
4360
de589d04
WN
43612014-08-21 Bin Cheng <bin.cheng@arm.com>
4362
4363 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4364 unsigned LONGEST to ULONGEST.
4365
2a31c623
PA
43662014-08-20 Pedro Alves <palves@redhat.com>
4367
4368 * Makefile.in (check-read1): New rule.
4369
d36430db
JB
43702014-08-20 Joel Brobecker <brobecker@adacore.com>
4371
4372 * value.c (value_from_contents_and_address): Strip resolved_type's
4373 typedef layers before checking its TYPE_DATA_LOCATION.
4374
000339af
PA
43752014-08-20 Pedro Alves <palves@redhat.com>
4376
4377 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4378
5f52445b
YQ
43792014-08-20 Yao Qi <yao@codesourcery.com>
4380
4381 * amd64-tdep.c (amd64_classify): Add a blank line after the
4382 example. Move "*/" to a new line.
4383 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4384 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4385 * dwarf2read.c (psymtab_include_file_name): Likewise.
4386
9a0dc9e3
PA
43872014-08-19 Andrew Burgess <aburgess@broadcom.com>
4388 Pedro Alves <palves@redhat.com>
4389
4390 PR symtab/14604
4391 PR symtab/14605
4392 * ada-lang.c (coerce_unspec_val_to_type): Use
4393 value_contents_copy_raw.
4394 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4395 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4396 * cp-valprint.c (cp_print_value_fields): Let the common printing
4397 code handle optimized out values.
4398 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4399 * d-valprint.c (dynamic_array_type): Use
4400 value_bits_any_optimized_out.
4401 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4402 check_any_valid fields.
4403 (check_pieced_value_bits): Delete and inline ...
4404 (check_pieced_synthetic_pointer): ... here.
4405 (check_pieced_value_validity): Delete.
4406 (check_pieced_value_invalid): Delete.
4407 (pieced_value_funcs): Remove check_validity and check_any_valid
4408 fields.
4409 (read_pieced_value): Use mark_value_bits_optimized_out.
4410 (write_pieced_value): Switch to use
4411 mark_value_bytes_optimized_out.
4412 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4413 of assuming the whole value is optimized out.
4414 * findvar.c (read_frame_register_value): Remove special handling
4415 of optimized out registers.
4416 (value_from_register): Use mark_value_bytes_optimized_out.
4417 * frame-unwind.c (frame_unwind_got_optimized): Use
4418 mark_value_bytes_optimized_out.
4419 * jv-valprint.c (java_value_print): Adjust.
4420 (java_print_value_fields): Let the common printing code handle
4421 optimized out values.
4422 * mips-tdep.c (mips_print_register): Remove special handling of
4423 optimized out registers.
4424 * opencl-lang.c (lval_func_check_validity): Delete.
4425 (lval_func_check_any_valid): Delete.
4426 (opencl_value_funcs): Remove check_validity and check_any_valid
4427 fields.
4428 * p-valprint.c (pascal_object_print_value_fields): Let the common
4429 printing code handle optimized out values.
4430 * stack.c (read_frame_arg): Remove special handling of optimized
4431 out values. Fetch both VAL and ENTRYVAL before comparing
4432 contents. Adjust to value_available_contents_eq rename.
4433 * valprint.c (valprint_check_validity)
4434 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4435 (val_print_array_elements): Adjust.
4436 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4437 (value_bits_any_optimized_out): New function.
4438 (value_entirely_covered_by_range_vector): New function, factored
4439 out from value_entirely_unavailable.
4440 (value_entirely_unavailable): Reimplement.
4441 (value_entirely_optimized_out): New function.
4442 (insert_into_bit_range_vector): New function, factored out from
4443 mark_value_bits_unavailable.
4444 (mark_value_bits_unavailable): Reimplement.
4445 (struct ranges_and_idx): New struct.
4446 (find_first_range_overlap_and_match): New function, factored out
4447 from value_available_contents_bits_eq.
4448 (value_available_contents_bits_eq): Rename to ...
4449 (value_contents_bits_eq): ... this. Check both unavailable
4450 contents and optimized out contents.
4451 (value_available_contents_eq): Rename to ...
4452 (value_contents_eq): ... this.
4453 (allocate_value_lazy): Remove reference to the old optimized_out
4454 boolean.
4455 (allocate_optimized_out_value): Use
4456 mark_value_bytes_optimized_out.
4457 (require_not_optimized_out): Adjust to check whether the
4458 optimized_out vec is empty.
4459 (ranges_copy_adjusted): New function, factored out from
4460 value_contents_copy_raw.
4461 (value_contents_copy_raw): Also copy the optimized out ranges.
4462 Assert the destination ranges aren't optimized out.
4463 (value_contents_copy): Update comment, remove call to
4464 require_not_optimized_out.
4465 (value_contents_equal): Adjust to check whether the optimized_out
4466 vec is empty.
4467 (set_value_optimized_out, value_optimized_out_const): Delete.
4468 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4469 New functions.
4470 (value_entirely_optimized_out, value_bits_valid): Delete.
4471 (value_copy): Take a VEC copy of the 'optimized_out' field.
4472 (value_primitive_field): Remove special handling of optimized out.
4473 (value_fetch_lazy): Assert that lazy values have no unavailable
4474 regions. Use value_bits_any_optimized_out. Remove some special
4475 handling for optimized out values.
4476 * value.h: Add intro comment about <optimized out> and
4477 <unavailable>.
4478 (struct lval_funcs): Remove check_validity and check_any_valid
4479 fields.
4480 (set_value_optimized_out, value_optimized_out_const): Remove.
4481 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4482 New declarations.
4483 (value_bits_any_optimized_out): New declaration.
4484 (value_bits_valid): Delete declaration.
4485 (value_available_contents_eq): Rename to ...
4486 (value_contents_eq): ... this, and extend comments.
4487
6694c411
JK
44882014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4489
4490 Fix -fsanitize=address on unreadable inferior strings.
4491 * valprint.c (val_print_string): Fix access before BUFFER.
4492
89a1c21a
SM
44932014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4494
4495 * target.c (target_struct_size): Remove.
4496 (target_struct_allocsize): Remove.
4497 (DEFAULT_ALLOCSIZE): Remove.
4498 (target_ops_p): New typedef.
4499 (DEF_VEC_P (target_ops_p)): New vector type.
4500 (target_structs): Change type to VEC (target_ops_p).
4501 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4502 (find_default_run_target): Rewrite for loop following changes to
4503 target_structs.
4504
cb417230
JB
45052014-08-19 Joel Brobecker <brobecker@adacore.com>
4506
4507 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4508 Adjust code accordingly. Adjust function description comment.
4509
817e0957
YQ
45102014-08-19 Yao Qi <yao@codesourcery.com>
4511
4512 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4513 types.
4514
2974be62
AM
45152014-08-19 Alan Modra <amodra@gmail.com>
4516
4517 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4518 * config.in: Regenerate.
4519 * configure: Regenerate.
4520
34abf635
GB
45212014-08-19 Tom Tromey <tromey@redhat.com>
4522 Gary Benson <gbenson@redhat.com>
4523
4524 * common/common-debug.h: New file.
4525 * common/common-debug.c: Likewise.
4526 * debug.c: Likewise.
4527 * Makefile.in (SFILES): Add common/common-debug.c.
4528 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4529 (COMMON_OBS): Add common-debug.o and debug.o.
4530 (common-debug.o): New rule.
4531 * common/common-defs.h: Include common-debug.h.
4532 * common/agent.c (debug_agent_printf): New function.
4533 (DEBUG_AGENT): Redefine.
4534 * nat/i386-dregs.c (debug_printf): Undefine.
4535
f6e94d78
GB
45362014-08-19 Gary Benson <gbenson@redhat.com>
4537
4538 * common/common-defs.h: Include print-utils.h.
4539 * utils.h: Do not include print-utils.h.
4540
9239eeab
GB
45412014-08-19 Tom Tromey <tromey@redhat.com>
4542 Gary Benson <gbenson@redhat.com>
4543
4544 * common/common-types.h: New file.
4545 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4546 * common/common-defs.h: Include common-types.h.
4547 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4548 (ULONGEST): Remove.
4549
ef87c8bb
GB
45502014-08-19 Tom Tromey <tromey@redhat.com>
4551 Gary Benson <gbenson@redhat.com>
4552
4553 * common/errors.h: New file.
4554 * common/errors.c: Likewise.
4555 * Makefile.in (SFILES): Add common/errors.c.
4556 (HFILES_NO_SRCDIR): Add common/errors.h.
4557 (COMMON_OBS): Add errors.o.
4558 (errors.o): New rule.
4559 * common/common-defs.h: Include errors.h.
4560 * utils.h (perror_with_name, error, verror, warning, vwarning):
4561 Don't declare.
4562 * common/common-utils.h: (malloc_failure, internal_error):
4563 Likewise.
4564
196a707b
GB
45652014-08-19 Gary Benson <gbenson@redhat.com>
4566
4567 * utils.c (internal_vproblem): Always print the message.
4568
ded4fc8f
DE
45692014-08-18 Doug Evans <dje@google.com>
4570
4571 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4572
950c97d8
JB
45732014-08-18 Joel Brobecker <brobecker@adacore.com>
4574
4575 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4576 Return 0 if TYPE is dynamic.
4577 (print_range): Add handling of dynamic ranges.
4578
3cdcd0ce
JB
45792014-08-18 Keven Boell <keven.boell@intel.com>
4580 Joel Brobecker <brobecker@adacore.com>
4581
4582 * gdbtypes.h (struct main_type): Add field "data_location".
4583 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4584 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4585 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4586 a dynamic data location.
4587 (resolve_dynamic_type): Add DW_AT_data_location handling.
4588 (copy_recursive, copy_type): Copy the data_location information
4589 when present.
4590 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4591 * value.c (value_from_contents_and_address): Add
4592 DW_AT_data_location handling.
4593
08412b07
JB
45942014-08-18 Keven Boell <keven.boell@intel.com>
4595 Joel Brobecker <brobecker@adacore.com>
4596
4597 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4598 field "get_object_address".
4599 * dwarf2expr.c (execute_stack_op): Add handling for
4600 DW_OP_push_object_address.
4601 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4602 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4603 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4604 (dwarf_expr_get_obj_addr): New function.
4605 (dwarf_expr_ctx_funcs): Add get_object_address field.
4606 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4607 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4608 (dwarf2_evaluate_property): Add parameter "address". Use it.
4609 (needs_get_obj_addr): New function.
4610 (needs_frame_ctx_funcs): Add get_object_address field.
4611 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4612 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4613 (resolve_dynamic_array): Likewise.
4614
84754697
JB
46152014-08-18 Joel Brobecker <brobecker@adacore.com>
4616
4617 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4618 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4619 fixed value for records and unions for which some GNAT encodings
4620 are present.
4621
da5c522f
JB
46222014-08-18 Joel Brobecker <brobecker@adacore.com>
4623
4624 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4625 rewrite to avoid "else if" and "else" constructs. Should be
4626 a no-op in practice.
4627
0d72a7c3
JB
46282014-08-18 Joel Brobecker <brobecker@adacore.com>
4629
4630 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4631 of lexical block.
4632
e66d4446
SC
46332014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4634
4635 PR c++/17132
4636 * eval.c: Update all calls to find_overload_match.
4637 * valarith.c: Likewise.
4638 (value_user_defined_cpp_op, value_user_defined_op): New
4639 argument NOSIDE. Update all callers.
4640 * valops.c (find_overload_match): New argument NOSIDE.
4641 * value.h (find_overload_match): Update signature.
4642
940df408
SC
46432014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4644
4645 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4646 'items' methods instead of 'iteritems' method on dictionaries.
4647
699ca60a
DE
46482014-08-15 Doug Evans <dje@google.com>
4649
4650 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4651 closer to use.
4652
37780ee5
DE
46532014-08-15 Doug Evans <dje@google.com>
4654
4655 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4656
0ad93d4f
DE
46572014-08-15 Doug Evans <dje@google.com>
4658
4659 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4660
20d8c372
DE
46612014-08-15 Doug Evans <dje@google.com>
4662
4663 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4664 unused.
4665
cb039ba4
EZ
46662014-08-15 Eli Zaretskii <eliz@gnu.org>
4667
4668 * dcache.h: Include target.h, to avoid compile time warnings.
4669
eb7a547a
JB
46702014-08-15 Joel Brobecker <brobecker@adacore.com>
4671
4672 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4673 frame_info" partial declaration.
4674 * gdbarch.h: Regenerate.
4675
783cecc8
YQ
46762014-08-15 Yao Qi <yao@codesourcery.com>
4677
4678 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4679 Add parameter 'decode_for_pst_p'. Callers update.
4680
65c749e7
YQ
46812014-08-13 Yao Qi <yao@codesourcery.com>
4682
4683 PR build/17104
4684 * configure.ac: Use local variable 'pos'.
4685 * configure: Regenerated.
4686
d769e349
DE
46872014-08-11 Doug Evans <dje@google.com>
4688
4689 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4690 message, it is redundant with "Reading symbols from ..." message.
4691
24f1235e
DE
46922014-08-10 Doug Evans <xdje42@gmail.com>
4693
4694 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4695
dcd2e6ef
YQ
46962014-08-09 Yao Qi <yao@codesourcery.com>
4697
4698 PR remote/9053
4699 * remote.c (remote_xfer_partial): Remove dead code.
4700
070bdf0b
AA
47012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4702
4703 * ia64-linux-tdep.c: Include "regset.h".
4704 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4705 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4706 (ia64_linux_supply_fpregset): New function.
4707 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4708 (ia64_linux_regset_from_core_section): New function.
4709 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4710 method.
4711
08f9f542
AA
47122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4713
4714 * m68klinux-tdep.c: Include "regset.h".
4715 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4716 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4717 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4718 (m68k_linux_regset_from_core_section): New function.
4719 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4720 method.
4721
8f1cee41
AA
47222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4723
4724 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4725 function. Move logic to...
4726 (tilegx_linux_regmap): ... this new register map.
4727 (tilegx_linux_regset): Refer to register map, replace supply
4728 method by regcache_supply_regset, and add collect method.
4729 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4730 TILEGX_FIRST_EASY_REGNUM.
4731
c5741217
AA
47322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4733
4734 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4735 that calls regcache_supply_regset and handles the EPC register
4736 separately. Move main logic to...
4737 (score7_linux_gregmap): ... this new register map.
4738 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4739 (score7_linux_gregset): Refer to register map. Add collect method.
4740 (score7_linux_regset_from_core_section): Replace
4741 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4742 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4743 (struct regset): Delete unused forward declaraction.
4744 (struct pt_regs): Delete structure definition.
4745 (elf_gregset_t): Delete typedef.
4746
81580573
AA
47472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4748
4749 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4750 (nios2_core_regset): Add collect method.
4751
ba199d7d
AA
47522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4753
4754 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4755 platform-independent and don't write to read-only input buffer.
4756 (m32r_linux_collect_gregset): New function.
4757 (m32r_linux_gregset): Add collect method.
4758
0006a9da
AA
47592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4760
4761 * hppa-linux-tdep.c (greg_map): Rename to...
4762 (hppa_linux_gregmap): ... this. Also convert to
4763 regcache_map_entry format.
4764 (hppa_linux_supply_regset): Delete function.
4765 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4766 (hppa_linux_fpregmap): ... this new register map.
4767 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4768 register map, replace supply method by regcache_supply_regset, and
4769 add collect method regcache_collect_regset.
4770
901e1b23
AA
47712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4772
4773 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4774 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4775 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4776 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4777 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4778 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4779 (frv_linux_supply_gregset): Replace main logic by call to
4780 regcache_supply_regset, but keep clearing gr32-gr63.
4781 (frv_linux_supply_fpregset): Delete function.
4782 (frv_linux_gregset): Refer to appropriate register map and add
4783 regcache_collect_regset as the collect method.
4784 (frv_linux_fpregset): Likewise. Also exchange the supply method
4785 by regcache_supply_regset.
4786
1d6e7555
AA
47872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4788
4789 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4790 by call to alpha_supply_int_regs.
4791 (alpha_linux_collect_gregset): New function.
4792 (alpha_linux_supply_fpregset): Replace logic by call to
4793 alpha_supply_fp_regs.
4794 (alpha_linux_collect_fpregset): New function.
4795 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4796
d4d793bf
AA
47972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4798
4799 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4800 by call to regcache_collect_regset.
4801 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4802 instead of aarch64_linux_supply_gregset/_fpregset.
4803 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4804 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4805 header file instead.
4806 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4807 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4808 functions. Move logic to ...
4809 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4810 register maps.
4811 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4812 refer to new register maps, replace *_regset_from_core by
4813 regcache_supply_regset, and also use regcache_collect_regset.
4814 * aarch64-linux-tdep.h: Include "regset.h".
4815 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4816 Delete prototypes.
4817 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4818 macros, moved from C source file.
4819 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4820 variable declarations.
4821
99b7da5d
AA
48222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4823
4824 * s390-linux-nat.c: Include "regset.h".
4825 (regmap_gregset): Delete macro.
4826 (s390_64_regmap_gregset): New register map for
4827 regcache_supply/_collect_regset.
4828 (s390_64_gregset): New regset.
4829 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4830 (regmap_fpregset): Delete macro.
4831 (s390_native_supply, s390_native_collect): Delete functions.
4832 (supply_gregset, fill_gregset): Replace s390-specific regmap
4833 handling by a call to regcache_supply/_collect_regset.
4834 (supply_fpregset, fill_fpregset): Call regcache_supply/
4835 _collect_regset instead of s390_native_supply/_collect.
4836 (fetch_regset, store_regset): Likewise. Also change the last
4837 parameter to a regset instead of a regmap.
4838 (s390_linux_fetch_inferior_registers)
4839 (390_linux_store_inferior_registers): Adjust last parameter in
4840 calls to fetch_regset and store_regset.
4841 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4842 (s390_gregmap): ... this. Also make static const and convert to
4843 regcache_map_entry format.
4844 (s390x_regmap_gregset): Delete.
4845 (s390_regmap_fpregset): Rename to...
4846 (s390_fpregmap): ... this. Make static const and convert to
4847 regcache_map_entry format.
4848 (s390_regmap_upper, s390_regmap_last_break)
4849 (s390x_regmap_last_break, s390_regmap_system_call)
4850 (s390_regmap_tdb): Likewise.
4851 (s390_supply_regset, s390_collect_regset): Remove functions.
4852 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4853 s390_supply_regset.
4854 (s390_gregset, s390_fpregset, s390_upper_regset)
4855 (s390_last_break_regset, s390x_last_break_regset)
4856 (s390_system_call_regset, s390_tdb_regset): Make global and
4857 replace s390_supply/_collect_regset by regcache_supply/
4858 _collect_regset.
4859 (s390x_gregset): Delete.
4860 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4861 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4862 (s390_regmap_fpregset, s390_regmap_last_break)
4863 (s390x_regmap_last_break, s390_regmap_system_call)
4864 (s390_regmap_tdb): Delete global variable declarations.
4865 (s390_gregset, s390_fpregset, s390_last_break_regset)
4866 (s390x_last_break_regset, s390_system_call_regset)
4867 (s390_tdb_regset): New global variable declarations.
4868
0b309272
AA
48692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4870
4871 * regcache.c: Include "regset.h".
4872 (regcache_transfer_regset): New local function.
4873 (regcache_supply_regset, regcache_collect_regset): New functions.
4874 * regcache.h (struct regcache_map_entry): New structure.
4875 (REGCACHE_MAP_SKIP): New enum value.
4876 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4877
7fefa8d7
AA
48782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4879
4880 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4881 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4882 (ppc_linux_collect_gregset ): Likewise.
4883 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4884 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4885 (ppc_collect_vrregset): Likewise.
4886 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4887 Likewise.
4888
96c4f946
YQ
48892014-08-07 Yao Qi <yao@codesourcery.com>
4890
4891 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4892 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4893 * remote.c (remote_read_bytes): Likewise.
4894
fffbe6a8
YQ
48952014-08-07 Yao Qi <yao@codesourcery.com>
4896
4897 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4898
5ee8a82c
YQ
48992014-08-07 Yao Qi <yao@codesourcery.com>
4900
4901 PR remote/17230
4902 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4903 TARGET_XFER_OK instead of 0.
4904
bb974a24
GB
49052014-08-07 Gary Benson <gbenson@redhat.com>
4906
4907 * common/common-defs.h: Include errno.h.
4908 * defs.h: Do not include errno.h.
4909 * ada-typeprint.c: Likewise.
4910 * c-typeprint.c: Likewise.
4911 * core-regset.c: Likewise.
4912 * corefile.c: Likewise.
4913 * corelow.c: Likewise.
4914 * event-loop.c: Likewise.
4915 * f-typeprint.c: Likewise.
4916 * gnu-nat.c: Likewise.
4917 * go32-nat.c: Likewise.
4918 * i386gnu-nat.c: Likewise.
4919 * m2-typeprint.c: Likewise.
4920 * nat/linux-btrace.c: Likewise.
4921 * p-typeprint.c: Likewise.
4922 * procfs.c: Likewise.
4923 * remote-sim.c: Likewise.
4924 * rs6000-nat.c: Likewise.
4925 * target.c: Likewise.
4926 * typeprint.c: Likewise.
4927 * ui-file.c: Likewise.
4928 * valops.c: Likewise.
4929 * valprint.c: Likewise.
4930
6d3d12eb
GB
49312014-08-07 Gary Benson <gbenson@redhat.com>
4932
4933 * common/common-defs.h: Include string.h.
4934 * aarch64-tdep.c: Do not include string.h.
4935 * ada-exp.y: Likewise.
4936 * ada-lang.c: Likewise.
4937 * ada-lex.l: Likewise.
4938 * ada-typeprint.c: Likewise.
4939 * ada-valprint.c: Likewise.
4940 * aix-thread.c: Likewise.
4941 * alpha-linux-tdep.c: Likewise.
4942 * alpha-mdebug-tdep.c: Likewise.
4943 * alpha-nat.c: Likewise.
4944 * alpha-osf1-tdep.c: Likewise.
4945 * alpha-tdep.c: Likewise.
4946 * alphanbsd-tdep.c: Likewise.
4947 * amd64-dicos-tdep.c: Likewise.
4948 * amd64-linux-tdep.c: Likewise.
4949 * amd64-nat.c: Likewise.
4950 * amd64-sol2-tdep.c: Likewise.
4951 * amd64fbsd-tdep.c: Likewise.
4952 * amd64obsd-tdep.c: Likewise.
4953 * arch-utils.c: Likewise.
4954 * arm-linux-nat.c: Likewise.
4955 * arm-linux-tdep.c: Likewise.
4956 * arm-tdep.c: Likewise.
4957 * arm-wince-tdep.c: Likewise.
4958 * armbsd-tdep.c: Likewise.
4959 * armnbsd-nat.c: Likewise.
4960 * armnbsd-tdep.c: Likewise.
4961 * armobsd-tdep.c: Likewise.
4962 * avr-tdep.c: Likewise.
4963 * ax-gdb.c: Likewise.
4964 * ax-general.c: Likewise.
4965 * bcache.c: Likewise.
4966 * bfin-tdep.c: Likewise.
4967 * breakpoint.c: Likewise.
4968 * build-id.c: Likewise.
4969 * buildsym.c: Likewise.
4970 * c-exp.y: Likewise.
4971 * c-lang.c: Likewise.
4972 * c-typeprint.c: Likewise.
4973 * c-valprint.c: Likewise.
4974 * charset.c: Likewise.
4975 * cli-out.c: Likewise.
4976 * cli/cli-cmds.c: Likewise.
4977 * cli/cli-decode.c: Likewise.
4978 * cli/cli-dump.c: Likewise.
4979 * cli/cli-interp.c: Likewise.
4980 * cli/cli-logging.c: Likewise.
4981 * cli/cli-script.c: Likewise.
4982 * cli/cli-setshow.c: Likewise.
4983 * cli/cli-utils.c: Likewise.
4984 * coffread.c: Likewise.
4985 * common/agent.c: Likewise.
4986 * common/buffer.c: Likewise.
4987 * common/buffer.h: Likewise.
4988 * common/common-utils.c: Likewise.
4989 * common/filestuff.c: Likewise.
4990 * common/filestuff.c: Likewise.
4991 * common/format.c: Likewise.
4992 * common/print-utils.c: Likewise.
4993 * common/rsp-low.c: Likewise.
4994 * common/signals.c: Likewise.
4995 * common/vec.h: Likewise.
4996 * common/xml-utils.c: Likewise.
4997 * core-regset.c: Likewise.
4998 * corefile.c: Likewise.
4999 * corelow.c: Likewise.
5000 * cp-abi.c: Likewise.
5001 * cp-name-parser.y: Likewise.
5002 * cp-support.c: Likewise.
5003 * cp-valprint.c: Likewise.
5004 * cris-tdep.c: Likewise.
5005 * d-exp.y: Likewise.
5006 * darwin-nat.c: Likewise.
5007 * dbxread.c: Likewise.
5008 * dcache.c: Likewise.
5009 * demangle.c: Likewise.
5010 * dicos-tdep.c: Likewise.
5011 * disasm.c: Likewise.
5012 * doublest.c: Likewise.
5013 * dsrec.c: Likewise.
5014 * dummy-frame.c: Likewise.
5015 * dwarf2-frame.c: Likewise.
5016 * dwarf2loc.c: Likewise.
5017 * dwarf2read.c: Likewise.
5018 * elfread.c: Likewise.
5019 * environ.c: Likewise.
5020 * eval.c: Likewise.
5021 * event-loop.c: Likewise.
5022 * exceptions.c: Likewise.
5023 * exec.c: Likewise.
5024 * expprint.c: Likewise.
5025 * f-exp.y: Likewise.
5026 * f-lang.c: Likewise.
5027 * f-typeprint.c: Likewise.
5028 * f-valprint.c: Likewise.
5029 * fbsd-nat.c: Likewise.
5030 * findcmd.c: Likewise.
5031 * findvar.c: Likewise.
5032 * fork-child.c: Likewise.
5033 * frame.c: Likewise.
5034 * frv-linux-tdep.c: Likewise.
5035 * frv-tdep.c: Likewise.
5036 * gdb.c: Likewise.
5037 * gdb_bfd.c: Likewise.
5038 * gdbarch.c: Likewise.
5039 * gdbarch.sh: Likewise.
5040 * gdbtypes.c: Likewise.
5041 * gnu-nat.c: Likewise.
5042 * gnu-v2-abi.c: Likewise.
5043 * gnu-v3-abi.c: Likewise.
5044 * go-exp.y: Likewise.
5045 * go-lang.c: Likewise.
5046 * go32-nat.c: Likewise.
5047 * guile/guile.c: Likewise.
5048 * guile/scm-auto-load.c: Likewise.
5049 * hppa-hpux-tdep.c: Likewise.
5050 * hppa-linux-nat.c: Likewise.
5051 * hppanbsd-tdep.c: Likewise.
5052 * hppaobsd-tdep.c: Likewise.
5053 * i386-cygwin-tdep.c: Likewise.
5054 * i386-dicos-tdep.c: Likewise.
5055 * i386-linux-tdep.c: Likewise.
5056 * i386-nto-tdep.c: Likewise.
5057 * i386-sol2-tdep.c: Likewise.
5058 * i386-tdep.c: Likewise.
5059 * i386bsd-tdep.c: Likewise.
5060 * i386gnu-nat.c: Likewise.
5061 * i386nbsd-tdep.c: Likewise.
5062 * i386obsd-tdep.c: Likewise.
5063 * i387-tdep.c: Likewise.
5064 * ia64-libunwind-tdep.c: Likewise.
5065 * ia64-linux-nat.c: Likewise.
5066 * inf-child.c: Likewise.
5067 * inf-ptrace.c: Likewise.
5068 * inf-ttrace.c: Likewise.
5069 * infcall.c: Likewise.
5070 * infcmd.c: Likewise.
5071 * inflow.c: Likewise.
5072 * infrun.c: Likewise.
5073 * interps.c: Likewise.
5074 * iq2000-tdep.c: Likewise.
5075 * irix5-nat.c: Likewise.
5076 * jv-exp.y: Likewise.
5077 * jv-lang.c: Likewise.
5078 * jv-typeprint.c: Likewise.
5079 * jv-valprint.c: Likewise.
5080 * language.c: Likewise.
5081 * linux-fork.c: Likewise.
5082 * linux-nat.c: Likewise.
5083 * lm32-tdep.c: Likewise.
5084 * m2-exp.y: Likewise.
5085 * m2-typeprint.c: Likewise.
5086 * m32c-tdep.c: Likewise.
5087 * m32r-linux-nat.c: Likewise.
5088 * m32r-linux-tdep.c: Likewise.
5089 * m32r-rom.c: Likewise.
5090 * m32r-tdep.c: Likewise.
5091 * m68hc11-tdep.c: Likewise.
5092 * m68k-tdep.c: Likewise.
5093 * m68kbsd-tdep.c: Likewise.
5094 * m68klinux-nat.c: Likewise.
5095 * m68klinux-tdep.c: Likewise.
5096 * m88k-tdep.c: Likewise.
5097 * machoread.c: Likewise.
5098 * macrocmd.c: Likewise.
5099 * main.c: Likewise.
5100 * mdebugread.c: Likewise.
5101 * mem-break.c: Likewise.
5102 * memattr.c: Likewise.
5103 * memory-map.c: Likewise.
5104 * mep-tdep.c: Likewise.
5105 * mi/mi-cmd-break.c: Likewise.
5106 * mi/mi-cmd-disas.c: Likewise.
5107 * mi/mi-cmd-env.c: Likewise.
5108 * mi/mi-cmd-stack.c: Likewise.
5109 * mi/mi-cmd-var.c: Likewise.
5110 * mi/mi-cmds.c: Likewise.
5111 * mi/mi-console.c: Likewise.
5112 * mi/mi-getopt.c: Likewise.
5113 * mi/mi-interp.c: Likewise.
5114 * mi/mi-main.c: Likewise.
5115 * mi/mi-parse.c: Likewise.
5116 * microblaze-rom.c: Likewise.
5117 * microblaze-tdep.c: Likewise.
5118 * mingw-hdep.c: Likewise.
5119 * minidebug.c: Likewise.
5120 * minsyms.c: Likewise.
5121 * mips-irix-tdep.c: Likewise.
5122 * mips-linux-tdep.c: Likewise.
5123 * mips-tdep.c: Likewise.
5124 * mips64obsd-tdep.c: Likewise.
5125 * mipsnbsd-tdep.c: Likewise.
5126 * mipsread.c: Likewise.
5127 * mn10300-linux-tdep.c: Likewise.
5128 * mn10300-tdep.c: Likewise.
5129 * monitor.c: Likewise.
5130 * moxie-tdep.c: Likewise.
5131 * mt-tdep.c: Likewise.
5132 * nat/linux-btrace.c: Likewise.
5133 * nat/linux-osdata.c: Likewise.
5134 * nat/linux-procfs.c: Likewise.
5135 * nat/linux-ptrace.c: Likewise.
5136 * nat/linux-waitpid.c: Likewise.
5137 * nbsd-tdep.c: Likewise.
5138 * nios2-linux-tdep.c: Likewise.
5139 * nto-procfs.c: Likewise.
5140 * nto-tdep.c: Likewise.
5141 * objc-lang.c: Likewise.
5142 * objfiles.c: Likewise.
5143 * opencl-lang.c: Likewise.
5144 * osabi.c: Likewise.
5145 * osdata.c: Likewise.
5146 * p-exp.y: Likewise.
5147 * p-lang.c: Likewise.
5148 * p-typeprint.c: Likewise.
5149 * parse.c: Likewise.
5150 * posix-hdep.c: Likewise.
5151 * ppc-linux-nat.c: Likewise.
5152 * ppc-sysv-tdep.c: Likewise.
5153 * ppcfbsd-tdep.c: Likewise.
5154 * ppcnbsd-tdep.c: Likewise.
5155 * ppcobsd-tdep.c: Likewise.
5156 * printcmd.c: Likewise.
5157 * procfs.c: Likewise.
5158 * prologue-value.c: Likewise.
5159 * python/py-auto-load.c: Likewise.
5160 * python/py-gdb-readline.c: Likewise.
5161 * ravenscar-thread.c: Likewise.
5162 * regcache.c: Likewise.
5163 * registry.c: Likewise.
5164 * remote-fileio.c: Likewise.
5165 * remote-m32r-sdi.c: Likewise.
5166 * remote-mips.c: Likewise.
5167 * remote-notif.c: Likewise.
5168 * remote-sim.c: Likewise.
5169 * remote.c: Likewise.
5170 * reverse.c: Likewise.
5171 * rs6000-aix-tdep.c: Likewise.
5172 * ser-base.c: Likewise.
5173 * ser-go32.c: Likewise.
5174 * ser-mingw.c: Likewise.
5175 * ser-pipe.c: Likewise.
5176 * ser-tcp.c: Likewise.
5177 * ser-unix.c: Likewise.
5178 * serial.c: Likewise.
5179 * sh-tdep.c: Likewise.
5180 * sh64-tdep.c: Likewise.
5181 * shnbsd-tdep.c: Likewise.
5182 * skip.c: Likewise.
5183 * sol-thread.c: Likewise.
5184 * solib-dsbt.c: Likewise.
5185 * solib-frv.c: Likewise.
5186 * solib-osf.c: Likewise.
5187 * solib-som.c: Likewise.
5188 * solib-spu.c: Likewise.
5189 * solib-target.c: Likewise.
5190 * solib.c: Likewise.
5191 * somread.c: Likewise.
5192 * source.c: Likewise.
5193 * sparc-nat.c: Likewise.
5194 * sparc-sol2-tdep.c: Likewise.
5195 * sparc-tdep.c: Likewise.
5196 * sparc64-tdep.c: Likewise.
5197 * sparc64fbsd-tdep.c: Likewise.
5198 * sparc64nbsd-tdep.c: Likewise.
5199 * sparcnbsd-tdep.c: Likewise.
5200 * spu-linux-nat.c: Likewise.
5201 * spu-multiarch.c: Likewise.
5202 * spu-tdep.c: Likewise.
5203 * stabsread.c: Likewise.
5204 * stack.c: Likewise.
5205 * std-regs.c: Likewise.
5206 * symfile.c: Likewise.
5207 * symmisc.c: Likewise.
5208 * symtab.c: Likewise.
5209 * target.c: Likewise.
5210 * thread.c: Likewise.
5211 * tilegx-linux-nat.c: Likewise.
5212 * tilegx-tdep.c: Likewise.
5213 * top.c: Likewise.
5214 * tracepoint.c: Likewise.
5215 * tui/tui-command.c: Likewise.
5216 * tui/tui-data.c: Likewise.
5217 * tui/tui-disasm.c: Likewise.
5218 * tui/tui-file.c: Likewise.
5219 * tui/tui-layout.c: Likewise.
5220 * tui/tui-out.c: Likewise.
5221 * tui/tui-regs.c: Likewise.
5222 * tui/tui-source.c: Likewise.
5223 * tui/tui-stack.c: Likewise.
5224 * tui/tui-win.c: Likewise.
5225 * tui/tui-windata.c: Likewise.
5226 * tui/tui-winsource.c: Likewise.
5227 * typeprint.c: Likewise.
5228 * ui-file.c: Likewise.
5229 * ui-out.c: Likewise.
5230 * user-regs.c: Likewise.
5231 * utils.c: Likewise.
5232 * v850-tdep.c: Likewise.
5233 * valarith.c: Likewise.
5234 * valops.c: Likewise.
5235 * valprint.c: Likewise.
5236 * value.c: Likewise.
5237 * varobj.c: Likewise.
5238 * vax-tdep.c: Likewise.
5239 * vaxnbsd-tdep.c: Likewise.
5240 * vaxobsd-tdep.c: Likewise.
5241 * windows-nat.c: Likewise.
5242 * xcoffread.c: Likewise.
5243 * xml-support.c: Likewise.
5244 * xstormy16-tdep.c: Likewise.
5245 * xtensa-linux-nat.c: Likewise.
5246
dccbb609
GB
52472014-08-07 Gary Benson <gbenson@redhat.com>
5248
5249 * common/common-defs.h: Include gdb_assert.h.
5250 * aarch64-tdep.c: Do not include gdb_assert.h.
5251 * addrmap.c: Likewise.
5252 * aix-thread.c: Likewise.
5253 * alpha-linux-tdep.c: Likewise.
5254 * alpha-mdebug-tdep.c: Likewise.
5255 * alphanbsd-tdep.c: Likewise.
5256 * amd64-nat.c: Likewise.
5257 * amd64-tdep.c: Likewise.
5258 * amd64bsd-nat.c: Likewise.
5259 * amd64fbsd-nat.c: Likewise.
5260 * amd64fbsd-tdep.c: Likewise.
5261 * amd64nbsd-nat.c: Likewise.
5262 * amd64nbsd-tdep.c: Likewise.
5263 * amd64obsd-nat.c: Likewise.
5264 * amd64obsd-tdep.c: Likewise.
5265 * arch-utils.c: Likewise.
5266 * arm-tdep.c: Likewise.
5267 * armbsd-tdep.c: Likewise.
5268 * auxv.c: Likewise.
5269 * bcache.c: Likewise.
5270 * bfin-tdep.c: Likewise.
5271 * blockframe.c: Likewise.
5272 * breakpoint.c: Likewise.
5273 * bsd-kvm.c: Likewise.
5274 * bsd-uthread.c: Likewise.
5275 * buildsym.c: Likewise.
5276 * c-exp.y: Likewise.
5277 * c-lang.c: Likewise.
5278 * charset.c: Likewise.
5279 * cleanups.c: Likewise.
5280 * cli-out.c: Likewise.
5281 * cli/cli-decode.c: Likewise.
5282 * cli/cli-dump.c: Likewise.
5283 * cli/cli-logging.c: Likewise.
5284 * cli/cli-script.c: Likewise.
5285 * cli/cli-utils.c: Likewise.
5286 * coffread.c: Likewise.
5287 * common/common-utils.c: Likewise.
5288 * common/queue.h: Likewise.
5289 * common/signals.c: Likewise.
5290 * common/vec.h: Likewise.
5291 * complaints.c: Likewise.
5292 * completer.c: Likewise.
5293 * corelow.c: Likewise.
5294 * cp-abi.c: Likewise.
5295 * cp-name-parser.y: Likewise.
5296 * cp-namespace.c: Likewise.
5297 * cp-support.c: Likewise.
5298 * cris-tdep.c: Likewise.
5299 * dbxread.c: Likewise.
5300 * dictionary.c: Likewise.
5301 * doublest.c: Likewise.
5302 * dsrec.c: Likewise.
5303 * dummy-frame.c: Likewise.
5304 * dwarf2-frame-tailcall.c: Likewise.
5305 * dwarf2-frame.c: Likewise.
5306 * dwarf2expr.c: Likewise.
5307 * dwarf2loc.c: Likewise.
5308 * dwarf2read.c: Likewise.
5309 * eval.c: Likewise.
5310 * event-loop.c: Likewise.
5311 * exceptions.c: Likewise.
5312 * expprint.c: Likewise.
5313 * f-valprint.c: Likewise.
5314 * fbsd-nat.c: Likewise.
5315 * findvar.c: Likewise.
5316 * frame-unwind.c: Likewise.
5317 * frame.c: Likewise.
5318 * frv-tdep.c: Likewise.
5319 * gcore.c: Likewise.
5320 * gdb-dlfcn.c: Likewise.
5321 * gdb_bfd.c: Likewise.
5322 * gdbarch.c: Likewise.
5323 * gdbarch.sh: Likewise.
5324 * gdbtypes.c: Likewise.
5325 * gnu-nat.c: Likewise.
5326 * gnu-v3-abi.c: Likewise.
5327 * go-lang.c: Likewise.
5328 * guile/scm-exception.c: Likewise.
5329 * guile/scm-gsmob.c: Likewise.
5330 * guile/scm-lazy-string.c: Likewise.
5331 * guile/scm-math.c: Likewise.
5332 * guile/scm-pretty-print.c: Likewise.
5333 * guile/scm-safe-call.c: Likewise.
5334 * guile/scm-utils.c: Likewise.
5335 * guile/scm-value.c: Likewise.
5336 * h8300-tdep.c: Likewise.
5337 * hppa-hpux-nat.c: Likewise.
5338 * hppa-tdep.c: Likewise.
5339 * hppanbsd-tdep.c: Likewise.
5340 * hppaobsd-tdep.c: Likewise.
5341 * i386-darwin-nat.c: Likewise.
5342 * i386-darwin-tdep.c: Likewise.
5343 * i386-nto-tdep.c: Likewise.
5344 * i386-tdep.c: Likewise.
5345 * i386bsd-nat.c: Likewise.
5346 * i386fbsd-tdep.c: Likewise.
5347 * i386gnu-nat.c: Likewise.
5348 * i386nbsd-tdep.c: Likewise.
5349 * i386obsd-tdep.c: Likewise.
5350 * i387-tdep.c: Likewise.
5351 * ia64-libunwind-tdep.c: Likewise.
5352 * ia64-tdep.c: Likewise.
5353 * inf-ptrace.c: Likewise.
5354 * inf-ttrace.c: Likewise.
5355 * infcall.c: Likewise.
5356 * infcmd.c: Likewise.
5357 * infrun.c: Likewise.
5358 * inline-frame.c: Likewise.
5359 * interps.c: Likewise.
5360 * jv-lang.c: Likewise.
5361 * jv-typeprint.c: Likewise.
5362 * linux-fork.c: Likewise.
5363 * linux-nat.c: Likewise.
5364 * linux-thread-db.c: Likewise.
5365 * m32c-tdep.c: Likewise.
5366 * m32r-linux-nat.c: Likewise.
5367 * m32r-tdep.c: Likewise.
5368 * m68k-tdep.c: Likewise.
5369 * m68kbsd-nat.c: Likewise.
5370 * m68kbsd-tdep.c: Likewise.
5371 * m88k-tdep.c: Likewise.
5372 * machoread.c: Likewise.
5373 * macroexp.c: Likewise.
5374 * macrotab.c: Likewise.
5375 * maint.c: Likewise.
5376 * mdebugread.c: Likewise.
5377 * memory-map.c: Likewise.
5378 * mep-tdep.c: Likewise.
5379 * mi/mi-common.c: Likewise.
5380 * microblaze-tdep.c: Likewise.
5381 * mingw-hdep.c: Likewise.
5382 * mips-linux-nat.c: Likewise.
5383 * mips-linux-tdep.c: Likewise.
5384 * mips-tdep.c: Likewise.
5385 * mips64obsd-tdep.c: Likewise.
5386 * mipsnbsd-tdep.c: Likewise.
5387 * mn10300-linux-tdep.c: Likewise.
5388 * mn10300-tdep.c: Likewise.
5389 * moxie-tdep.c: Likewise.
5390 * mt-tdep.c: Likewise.
5391 * nat/linux-btrace.c: Likewise.
5392 * nat/linux-osdata.c: Likewise.
5393 * nat/linux-ptrace.c: Likewise.
5394 * nat/mips-linux-watch.c: Likewise.
5395 * nios2-linux-tdep.c: Likewise.
5396 * nios2-tdep.c: Likewise.
5397 * objc-lang.c: Likewise.
5398 * objfiles.c: Likewise.
5399 * obsd-nat.c: Likewise.
5400 * opencl-lang.c: Likewise.
5401 * osabi.c: Likewise.
5402 * parse.c: Likewise.
5403 * ppc-linux-nat.c: Likewise.
5404 * ppc-sysv-tdep.c: Likewise.
5405 * ppcfbsd-nat.c: Likewise.
5406 * ppcfbsd-tdep.c: Likewise.
5407 * ppcnbsd-nat.c: Likewise.
5408 * ppcnbsd-tdep.c: Likewise.
5409 * ppcobsd-nat.c: Likewise.
5410 * ppcobsd-tdep.c: Likewise.
5411 * printcmd.c: Likewise.
5412 * procfs.c: Likewise.
5413 * prologue-value.c: Likewise.
5414 * psymtab.c: Likewise.
5415 * python/py-lazy-string.c: Likewise.
5416 * python/py-value.c: Likewise.
5417 * regcache.c: Likewise.
5418 * reggroups.c: Likewise.
5419 * registry.c: Likewise.
5420 * remote-sim.c: Likewise.
5421 * remote.c: Likewise.
5422 * rs6000-aix-tdep.c: Likewise.
5423 * rs6000-tdep.c: Likewise.
5424 * s390-linux-tdep.c: Likewise.
5425 * score-tdep.c: Likewise.
5426 * ser-base.c: Likewise.
5427 * ser-mingw.c: Likewise.
5428 * sh-tdep.c: Likewise.
5429 * sh64-tdep.c: Likewise.
5430 * solib-darwin.c: Likewise.
5431 * solib-spu.c: Likewise.
5432 * solib-svr4.c: Likewise.
5433 * source.c: Likewise.
5434 * sparc-nat.c: Likewise.
5435 * sparc-sol2-tdep.c: Likewise.
5436 * sparc-tdep.c: Likewise.
5437 * sparc64-sol2-tdep.c: Likewise.
5438 * sparc64-tdep.c: Likewise.
5439 * sparc64fbsd-tdep.c: Likewise.
5440 * sparc64nbsd-tdep.c: Likewise.
5441 * sparc64obsd-tdep.c: Likewise.
5442 * sparcnbsd-tdep.c: Likewise.
5443 * sparcobsd-tdep.c: Likewise.
5444 * spu-multiarch.c: Likewise.
5445 * spu-tdep.c: Likewise.
5446 * stabsread.c: Likewise.
5447 * stack.c: Likewise.
5448 * symfile.c: Likewise.
5449 * symtab.c: Likewise.
5450 * target-descriptions.c: Likewise.
5451 * target-memory.c: Likewise.
5452 * target.c: Likewise.
5453 * tic6x-linux-tdep.c: Likewise.
5454 * tic6x-tdep.c: Likewise.
5455 * tilegx-linux-nat.c: Likewise.
5456 * tilegx-tdep.c: Likewise.
5457 * top.c: Likewise.
5458 * tramp-frame.c: Likewise.
5459 * tui/tui-out.c: Likewise.
5460 * tui/tui-winsource.c: Likewise.
5461 * ui-out.c: Likewise.
5462 * user-regs.c: Likewise.
5463 * utils.c: Likewise.
5464 * v850-tdep.c: Likewise.
5465 * valops.c: Likewise.
5466 * value.c: Likewise.
5467 * varobj.c: Likewise.
5468 * vax-nat.c: Likewise.
5469 * xml-syscall.c: Likewise.
5470 * xml-tdesc.c: Likewise.
5471 * xstormy16-tdep.c: Likewise.
5472 * xtensa-linux-nat.c: Likewise.
5473 * xtensa-tdep.c: Likewise.
5474
e76df0d0
GB
54752014-08-07 Gary Benson <gbenson@redhat.com>
5476
5477 * common/common-defs.h: Include common-utils.h.
5478 * defs.h: Do not include common-utils.h.
5479 * common/gdb_assert.h: Likewise.
5480 * darwin-nat.h: Likewise.
5481 * nat/linux-btrace.c: Likewise.
5482 * target/waitstatus.h: Likewise.
5483
4cb9c816
GB
54842014-08-07 Gary Benson <gbenson@redhat.com>
5485
5486 * common/common-defs.h: Include ptid.h.
5487 * defs.h: Do not include ptid.h.
5488 * inferior.h: Likewise.
5489 * infrun.h: Likewise.
5490 * nat/linux-btrace.h: Likewise.
5491 * nat/linux-osdata.h: Likewise.
5492 * target/waitstatus.h: Likewise.
5493
3995eeee
GB
54942014-08-07 Gary Benson <gbenson@redhat.com>
5495
5496 * common/common-defs.h: Include gdb_locale.h.
5497 * defs.h: Do not include gdb_locale.h.
5498
cb9f1a9b
GB
54992014-08-07 Gary Benson <gbenson@redhat.com>
5500
5501 * common/common-defs.h: Include gdb/signals.h.
5502 * defs.h: Do not include gdb/signals.h.
5503
a5fceff8
GB
55042014-08-07 Gary Benson <gbenson@redhat.com>
5505
5506 * common/common-defs.h: Include pathmax.h.
5507 * defs.h: Do not include pathmax.h.
5508
b9391142
GB
55092014-08-07 Gary Benson <gbenson@redhat.com>
5510
5511 * common/common-defs.h: Include libiberty.h.
5512 * defs.h: Do not include libiberty.h.
5513 * common/queue.h: Likewise.
5514 * cp-name-parser.y: Likewise.
5515 * mi/mi-cmd-catch.c: Likewise.
5516 * python/python.c: Likewise.
5517
0e443c87
GB
55182014-08-07 Gary Benson <gbenson@redhat.com>
5519
5520 * common/common-defs.h: Include ansidecl.h.
5521 * defs.h: Do not include ansidecl.h.
5522 * common/buffer.h: Likewise.
5523 * common/common-utils.h: Likewise.
5524
8ebb3f56
GB
55252014-08-07 Gary Benson <gbenson@redhat.com>
5526
5527 * common/common-defs.h: Include stddef.h.
5528 * defs.h: Do not include stddef.h.
5529 * common/common-utils.h: Likewise.
5530 * amd64fbsd-nat.c: Likewise.
5531 * bcache.c: Likewise.
5532 * charset.c: Likewise.
5533 * common/buffer.h: Likewise.
5534 * common/vec.h: Likewise.
5535 * i386bsd-nat.c: Likewise.
5536 * nat/linux-btrace.h: Likewise.
5537 * ppcfbsd-nat.c: Likewise.
5538 * ppcnbsd-tdep.h: Likewise.
5539 * ppcobsd-nat.c: Likewise.
5540 * ppcobsd-tdep.h: Likewise.
5541 * python/py-gdb-readline.c: Likewise.
5542
8980bdf6
GB
55432014-08-07 Gary Benson <gbenson@redhat.com>
5544
5545 * common/common-defs.h: Include stdarg.h.
5546 * defs.h: Do not include stdarg.h.
5547 * ada-lang.c: Likewise.
5548 * common/common-utils.h: Likewise.
5549 * guile/scm-string.c: Likewise.
5550 * guile/scm-utils.c: Likewise.
5551 * m32c-tdep.c: Likewise.
5552
d7096f71
GB
55532014-08-07 Gary Benson <gbenson@redhat.com>
5554
5555 * common/common-defs.h: Include stdlib.h.
5556 * defs.h: Do not include stdlib.h.
5557 * addrmap.c: Likewise.
5558 * bcache.c: Likewise.
5559 * common/buffer.c: Likewise.
5560 * common/common-utils.c: Likewise.
5561 * cp-name-parser.y: Likewise.
5562 * go32-nat.c: Likewise.
5563 * mn10300-linux-tdep.c: Likewise.
5564 * nat/linux-osdata.c: Likewise.
5565 * tui/tui.c: Likewise.
5566 * windows-nat.c: Likewise.
5567
d02f550d
GB
55682014-08-07 Gary Benson <gbenson@redhat.com>
5569
5570 * common/common-defs.h: Include stdio.h.
5571 * defs.h: Do not include stdio.h.
5572 * ada-lang.c: Likewise.
5573 * common/buffer.c: Likewise.
5574 * common/common-utils.c: Likewise.
5575 * cp-name-parser.y: Likewise.
5576 * gnu-nat.c: Likewise.
5577 * go32-nat.c: Likewise.
5578 * i386gnu-nat.c: Likewise.
5579 * proc-api.c: Likewise.
5580 * proc-events.c: Likewise.
5581 * proc-flags.c: Likewise.
5582 * proc-why.c: Likewise.
5583 * python/python-internal.h: Likewise.
5584 * target-memory.c: Likewise.
5585 * tui/tui-io.c: Likewise.
5586 * tui/tui.c: Likewise.
5587
b6d7a4bf
SM
55882014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5591 (scan_dyntag_auxv): Same.
5592
af19829b
YQ
55932014-08-06 Yao Qi <yao@codesourcery.com>
5594
5595 * amd64-linux-nat.c: Remove duplicated include
5596 "x86-linux-nat.h".
5597 * i386-linux-nat.c: Likewise.
5598
8e07a239
YQ
55992014-08-06 Yao Qi <yao@codesourcery.com>
5600
5601 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5602 operand" with "Special opcode" in comments.
5603
7bfe8241
GB
56042014-08-05 Gary Benson <gbenson@redhat.com>
5605
5606 * interps.c (initialize_interps): Remove prototype.
5607 (interpreter_initialized): Remove static global.
5608 (interp_add): Do not call initialize_interps.
5609 (initialize_interps): Remove function.
5610
d6c95504
GB
56112014-08-05 Gary Benson <gbenson@redhat.com>
5612
5613 * utils.c (vwarning): Remove spurious va_end.
5614
241fd515
AM
56152014-08-05 Alan Modra <amodra@gmail.com>
5616
5617 * charset.c (convert_between_encodings): Cast result of obstack_base.
5618 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5619 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5620 (read_unwind_info): Use size_t for some locals.
5621 * jit.c (finalize_symtab): Likewise.
5622 * utils.c (hashtab_obstack_allocate): Likewise.
5623 * symmisc.c (print_objfile_statistics): Update format strings.
5624
dc304a94
JK
56252014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5628 (Changes in GDB 7.8): ... here.
5629
3cecbbbe
TT
56302014-08-04 Tom Tromey <tromey@redhat.com>
5631
5632 * target.c (set_targetdebug): New function.
5633 (initialize_targets): Pass set_targetdebug when creating "set
5634 debug target".
5635
6908c509
JB
56362014-08-01 Joel Brobecker <brobecker@adacore.com>
5637
5638 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5639 if detecting a variable-sized field that is not the last field.
5640 Fix struct type length computation.
5641
53e8f97d
JB
56422014-08-01 Joel Brobecker <brobecker@adacore.com>
5643
5644 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5645 Add debug trace.
5646
e068c55d
JB
56472014-08-01 Joel Brobecker <brobecker@adacore.com>
5648
5649 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5650 Remove "+ 8" offset in computation of CHAIN_VMA.
5651
4d4ca2a1
DE
56522014-07-31 Doug Evans <dje@google.com>
5653
5654 * inflow.c (child_terminal_inferior): Add comment.
5655 (child_terminal_ours_for_output): Add comment.
5656 (child_terminal_ours): Add comment.
5657 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5658 (linux_nat_terminal_ours): Add comment.
5659
462f517e
GB
56602014-07-31 Gary Benson <gbenson@redhat.com>
5661
5662 * common/btrace-common.h: Do not include defs.h or server.h.
5663 * nat/mips-linux-watch.h: Likewise.
5664 * gdb-dlfcn.h: Do not include defs.h.
5665 * tracefile.h: Likewise.
5666
74228e77
RM
56672014-07-30 Roland McGrath <mcgrathr@google.com>
5668
5669 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5670
014f9477
TT
56712014-07-30 Tom Tromey <tromey@redhat.com>
5672
5673 * bsd-kvm.c (bsd_kvm_open): Constify.
5674 * corelow.c (core_open): Constify.
5675 * ctf.c (ctf_open): Constify.
5676 * dbug-rom.c (dbug_open): Constify.
5677 * exec.c (exec_open): Constify.
5678 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5679 * microblaze-rom.c (picobug_open): Constify.
5680 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5681 Constify.
5682 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5683 * record-btrace.c (record_btrace_open): Constify.
5684 * record-full.c (record_full_core_open_1, record_full_open_1)
5685 (record_full_open): Constify.
5686 * remote-m32r-sdi.c (m32r_open): Constify.
5687 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5688 (rockhopper_open, lsi_open): Constify.
5689 * remote-sim.c (gdbsim_open): Constify.
5690 * remote.c (remote_open, extended_remote_open, remote_open_1):
5691 Constify.
5692 * target.h (struct target_ops) <to_open>: Make "arg" const.
5693 * tracefile-tfile.c (tfile_open): Constify.
5694
e799154c
TT
56952014-07-30 Tom Tromey <tromey@redhat.com>
5696
5697 * breakpoint.c (map_breakpoint_numbers): Update.
5698 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5699 (get_number_const): New function.
5700 (get_number): Rewrite using get_number_const.
5701 (init_number_or_range): Make "string" const.
5702 (number_is_in_list): Make "list" const.
5703 * cli/cli-utils.h (get_number_const): Declare.
5704 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5705 (init_number_or_range, number_is_in_list): Update.
5706 * printcmd.c (map_display_numbers): Update.
5707 * value.c (value_from_history_ref): Constify.
5708 * value.h (value_from_history_ref): Update.
5709
5f08566b
TT
57102014-07-30 Tom Tromey <tromey@redhat.com>
5711
5712 * corefile.c (hook_type, call_extra_exec_file_hooks)
5713 (specify_exec_file_hook): Constify.
5714 * exec.c (exec_file_attach): Make "filename" const.
5715 * gdbcore.h (deprecated_exec_file_display_hook)
5716 (specify_exec_file_hook, exec_file_attach): Constify.
5717 * main.c (captured_main): Use catch_command_errors_const.
5718
8981c758
TT
57192014-07-30 Tom Tromey <tromey@redhat.com>
5720
5721 * target.c (open_target): New function.
5722 (add_target_with_completer, add_deprecated_target_alias): Use
5723 set_cmd_sfunc, set_cmd_context.
5724 (debug_to_open): Remove.
5725 (setup_target_debug): Update.
5726
a1c7835a
YQ
57272014-07-30 Yao Qi <yao@codesourcery.com>
5728
5729 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5730 comments.
5731 * parse.c (exp_iterate): Update comments.
5732
976411d6
GB
57332014-07-30 Gary Benson <gbenson@redhat.com>
5734
5735 * common/common-defs.h: New file.
5736 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5737 * defs.h: Include common-defs.h.
5738 Do not include config.h or build-gnulib/config.h.
5739
5d4848a4
GB
57402014-07-30 Gary Benson <gbenson@redhat.com>
5741
5742 * common/common-utils.h: Do not include config.h.
5743 * nat/linux-btrace.h: Likewise.
5744
d41f6d8e
GB
57452014-07-30 Gary Benson <gbenson@redhat.com>
5746
5747 * btrace.c: Include defs.h.
5748 * common/ptid.c: Include defs.h or server.h as appropriate.
5749 * nat/mips-linux-watch.c: Likewise.
5750
84202f9c
TT
57512014-07-29 Tom Tromey <tromey@redhat.com>
5752
5753 * target.c (target_is_pushed): Simplify.
5754
2530441c
JB
57552014-07-29 Joel Brobecker <brobecker@adacore.com>
5756
5757 GDB 7.8 released.
5758
7e09a223
YQ
57592014-07-29 Yao Qi <yao@codesourcery.com>
5760
5761 PR gdb/17206
5762 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5763
7ebdbe92
DE
57642014-07-28 Doug Evans <xdje42@gmail.com>
5765
5766 PR guile/17203
5767 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5768 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5769 parameters.
5770
f347ffc9
WN
57712014-07-28 Will Newton <will.newton@linaro.org>
5772
5773 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5774 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5775 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5776 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5777 (THUMB2_EABI_SYSCALL): Likewise.
5778 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5779 struct tramp_frame.
5780 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5781 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5782
37c5f1f7
DE
57832014-07-27 Doug Evans <xdje42@gmail.com>
5784
5785 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5786
0c3abbc7
DE
57872014-07-27 Doug Evans <xdje42@gmail.com>
5788
5789 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5790
e76c5d17
DE
57912014-07-26 Ludovic Courtès <ludo@gnu.org>
5792 Doug Evans <xdje42@gmail.com>
5793
5794 PR guile/17146
5795 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5796 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5797 * configure.ac: Try to use guild to compile an scm file, if it fails
5798 then disable guile support.
5799 * configure: Regenerate.
5800 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5801 GUILE_FILE_LIST.
5802 (GUILE_COMPILED_FILES): New variable.
5803 (GUILE_FILES) Update.
5804 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5805 (stamp-guile): Compile scm files.
5806 * guile/guile.c (boot_guile_support): New function.
5807 (standard_throw_args_p): New function.
5808 (print_standard_throw_error, print_throw_error): New functions.
5809 (handle_boot_error): New function.
5810 (initialize_scheme_side): Rewrite to call boot_guile_support.
5811 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5812 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5813
186fcde0
DE
58142014-07-26 Ludovic Courtès <ludo@gnu.org>
5815 Doug Evans <xdje42@gmail.com>
5816
5817 PR guile/17146
5818 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5819 * guile/lib/gdb/support.scm: New file.
5820 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5821 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5822 All uses updated.
5823 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5824 All uses updated.
5825 (%assert-type): Ditto, and renamed to assert-type.
5826 (%exception-print-style): Delete.
5827
4df42755
DE
58282014-07-26 Doug Evans <xdje42@gmail.com>
5829
5830 PR build/17105
5831 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5832 * configure: Regenerate.
5833 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5834 PYTHON_FILES.
5835 (PYTHON_FILES): New variable.
5836 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5837 (GUILE_FILES): New variable.
5838 (stamp-python, install-python, uninstall-python): Handle empty
5839 file list.
5840 (stamp-guile, install-guile, uninstall-guile): Ditto.
5841
ee7333ae
DE
58422014-07-26 Doug Evans <xdje42@gmail.com>
5843
5844 PR guile/17177
5845 * guile/lib/gdb.scm (pretty-printers): Export.
5846 (set-pretty-printers!): Export.
5847 * guile/lib/gdb/printing.scm (gdb module): Update.
5848 (prepend-pretty-printer!, append-pretty-printer!): Update.
5849 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5850 (pretty_printer_list_var): Delete.
5851 (pretty_printer_list): New static global.
5852 (gdbscm_pretty_printers): New function.
5853 (gdbscm_set_pretty_printers_x): New function.
5854 (ppscm_find_pretty_printer_from_gdb): Update.
5855 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5856 (gdbscm_initialize_pretty_printers): Update.
5857
74edf516
DE
58582014-07-26 Doug Evans <xdje42@gmail.com>
5859
5860 PR 17185
5861 * configure.ac: Add check for header gc/gc.h.
5862 Add check for function setenv.
5863 * configure: Regenerate.
5864 * config.in: Regenerate.
5865 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5866
d54398a7
MR
58672014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5868
5869 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5870 variation in gdbarch matching.
5871
ab16fce8
TT
58722014-07-25 Tom Tromey <tromey@redhat.com>
5873
5874 * exec.c (using_exec_ops): Remove.
5875 (exec_close_1): Update. Remove extraneous block, reindent.
5876 (add_target_sections): Use target_is_pushed.
5877
88056fbb
PA
58782014-07-25 Pedro Alves <palves@redhat.com>
5879
5880 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5881 * monitor.c (monitor_create_inferior): Likewise.
5882 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5883 * remote-sim.c (gdbsim_create_inferior): Likewise.
5884 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5885 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5886 * windows-nat.c (do_initial_windows_stuff): Likewise.
5887
70509625
PA
58882014-07-25 Pedro Alves <palves@redhat.com>
5889
5890 * NEWS: Mention signal passing and "signal" command changes.
5891 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5892 comment.
5893 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5894 call.
5895 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5896 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5897 (jump_command): Adjust clear_proceed_status call.
5898 (signal_command): Warn if other thread that are resumed have
5899 signals that will be delivered. Adjust clear_proceed_status call.
5900 (until_next_command, finish_command)
5901 (proceed_after_attach_callback, attach_command_post_wait)
5902 (attach_command): Adjust clear_proceed_status call.
5903 * infrun.c (proceed_after_vfork_done): Likewise.
5904 (proceed_after_attach_callback): Adjust comment.
5905 (clear_proceed_status_thread): Clear stop_signal if not in pass
5906 state.
5907 (clear_proceed_status_callback): Delete.
5908 (clear_proceed_status): New 'step' parameter. Only clear the
5909 proceed status of threads the command being prepared is about to
5910 resume.
5911 (proceed): If passed in an explicit signal, override stop_signal
5912 with it. Don't pass the last stop signal to the thread we're
5913 resuming.
5914 (init_wait_for_inferior): Adjust clear_proceed_status call.
5915 (switch_back_to_stepped_thread): Clear the signal if it should not
5916 be passed.
5917 * infrun.h (clear_proceed_status): New 'step' parameter.
5918 (user_visible_resume_ptid): Add comment.
5919 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5920 signal is in pass state.
5921 * remote.c (append_pending_thread_resumptions): Likewise.
5922 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5923
d8be2939
TT
59242014-07-25 Tom Tromey <tromey@redhat.com>
5925
5926 * target.h (target_stopped_data_address)
5927 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5928 parentheses.
5929
7d0d9d2b
PL
59302014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5931
5932 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5933 comments.
5934 (avr_pointer_to_address): Likewise.
5935
e9e7f724
TT
59362014-07-24 Tom Tromey <tromey@redhat.com>
5937
5938 * monitor.c (compile_pattern): Update.
5939 * target.h (struct target_ops) <to_shortname, to_longname,
5940 to_doc>: Now const.
5941
1947513d
TT
59422014-07-24 Tom Tromey <tromey@redhat.com>
5943
5944 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5945 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5946 (add_info_alias, add_com): Make "doc" const.
5947 (print_doc_line): Make "str" const.
5948 (delete_cmd): Update.
5949 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5950 (print_doc_line): Update.
5951 * cli/cli-script.c (document_command): Update.
5952 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5953 (add_com, add_info, add_info_alias): Update.
5954 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5955 * python/py-cmd.c (cmdpy_destroyer): Update.
5956
64e61d29
TT
59572014-07-24 Tom Tromey <tromey@redhat.com>
5958
5959 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5960 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5961 (help_cmd_list): Constify.
5962 (lookup_cmd): Update.
5963 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5964 const.
5965 (help_cmd_list, apropos_cmd): Update.
5966 * cli/cli-script.c (show_user): Update.
5967 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5968 * cli/cli-setshow.h (cmd_show_list): Update.
5969 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5970 (cmd_show_list): Update.
5971 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5972 * python/py-cmd.c (cmdpy_destroyer): Update.
5973
429e55ea
TT
59742014-07-24 Tom Tromey <tromey@redhat.com>
5975
5976 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5977 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5978 const.
5979 * command.h (deprecate_cmd): Update.
5980 * maint.c (maintenance_do_deprecate): Add casts.
5981
64669f3b
TT
59822014-07-24 Tom Tromey <tromey@redhat.com>
5983
5984 * cli/cli-decode.c (help_cmd): Make parameter "const".
5985 * cli/cli-decode.h (help_cmd): Update.
5986
d3d3328b
TT
59872014-07-24 Tom Tromey <tromey@redhat.com>
5988
5989 * stack.c (up_silently_base, down_silently_base): Make argument
5990 const.
5991
414842dc
TT
59922014-07-24 Tom Tromey <tromey@redhat.com>
5993
5994 * solib.c (solib_add): Make "pattern" const.
5995 * solib.h (solib_add): Update.
5996
baa336ce
TT
59972014-07-24 Tom Tromey <tromey@redhat.com>
5998
5999 * remote.c (remote_serial_open, print_packet, putpkt)
6000 (putpkt_binary): Constify.
6001 * remote.h (putpkt): Update.
6002
5a19e2d0
TT
60032014-07-24 Tom Tromey <tromey@redhat.com>
6004
6005 * monitor.c (monitor_open): Make "args" const.
6006 * monitor.h (monitor_open): Update.
6007
fc4baa5e
TT
60082014-07-24 Tom Tromey <tromey@redhat.com>
6009
6010 * maint.c (match_bfd_flags): Make "string" const.
6011 (print_bfd_section_info): Remove casts.
6012 (print_objfile_section_info): Make "string" const.
6013
0d5f0dbe
TT
60142014-07-24 Tom Tromey <tromey@redhat.com>
6015
6016 * inf-child.c (inf_child_open_target): Make "arg" const.
6017 * inf-child.h (inf_child_open_target): Update.
6018
41c77899
TT
60192014-07-24 Tom Tromey <tromey@redhat.com>
6020
6021 * environ.c (unset_in_environ): Make "var" const.
6022 * environ.h (unset_in_environ): Update.
6023
93db0d79
TT
60242014-07-24 Tom Tromey <tromey@redhat.com>
6025
6026 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6027 Make "cmd" const.
6028 (scan_filename_with_cleanup): Likewise.
6029 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6030 Make arguments const.
6031 (restore_command): Update.
6032
36d6eb95
PA
60332014-07-24 Pedro Alves <palves@redhat.com>
6034
6035 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6036
8009206a
TT
60372014-07-24 Tom Tromey <tromey@redhat.com>
6038 Gary Benson <gbenson@redhat.com>
6039
6040 * nat/linux-ptrace.c (additional_flags): New global.
6041 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6042 additional_flags; don't check GDBSERVER.
6043 (linux_ptrace_set_additional_flags): New function.
6044 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6045 Declare.
6046 * linux-nat.c (_initialize_linux_nat): Call
6047 linux_ptrace_set_additional_flags.
6048
a7068b60
TT
60492014-07-24 Tom Tromey <tromey@redhat.com>
6050
6051 * make-target-delegates (munge_type, write_debugmethod): New
6052 functions.
6053 (debug_names): New global.
6054 ($TARGET_DEBUG_PRINTER): New global.
6055 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6056 name.
6057 Write debug methods. Generate init_debug_target.
6058 * target-debug.h: New file.
6059 * target-delegates.c: Rebuild.
6060 * target.c: Include target-debug.h.
6061 (debug_target): Hoist definition.
6062 (target_kill, target_get_section_table, target_memory_map)
6063 (target_flash_erase, target_flash_done, target_detach)
6064 (target_disconnect, target_wait, target_resume)
6065 (target_pass_signals, target_program_signals, target_follow_fork)
6066 (target_mourn_inferior, target_search_memory)
6067 (target_thread_address_space, target_close)
6068 (target_find_new_threads, target_core_of_thread)
6069 (target_verify_memory, target_insert_mask_watchpoint)
6070 (target_remove_mask_watchpoint): Remove targetdebug code.
6071 (debug_to_post_attach, debug_to_prepare_to_store)
6072 (debug_to_files_info, debug_to_insert_breakpoint)
6073 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6074 (debug_to_region_ok_for_hw_watchpoint)
6075 (debug_to_can_accel_watchpoint_condition)
6076 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6077 (debug_to_watchpoint_addr_within_range)
6078 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6079 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6080 (debug_to_terminal_init, debug_to_terminal_inferior)
6081 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6082 (debug_to_terminal_save_ours, debug_to_terminal_info)
6083 (debug_to_load, debug_to_post_startup_inferior)
6084 (debug_to_insert_fork_catchpoint)
6085 (debug_to_remove_fork_catchpoint)
6086 (debug_to_insert_vfork_catchpoint)
6087 (debug_to_remove_vfork_catchpoint)
6088 (debug_to_insert_exec_catchpoint)
6089 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6090 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6091 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6092 (setup_target_debug): Call init_debug_target.
6093 * target.h (TARGET_DEBUG_PRINTER): New macro.
6094 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6095 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6096
2c51604d
GB
60972014-07-24 Gary Benson <gbenson@redhat.com>
6098
6099 * exceptions.h (throw_vfatal): Renamed to...
6100 (throw_vquit): New declaration.
6101 (throw_quit): Likewise.
6102 * exceptions.c (throw_vfatal): Renamed to...
6103 (throw_vquit): New function.
6104 (throw_quit): Likewise.
6105 (throw_error): Call throw_verror rather than throw_it.
6106 * utils.h (vfatal): Removed.
6107 (fatal): Likewise.
6108 * utils.c (vfatal): Removed.
6109 (fatal): Likewise.
6110 (internal_verror): Replaced call to fatal with call to throw_quit.
6111 (quit): Replaced calls to fatal with calls to throw_quit.
6112
34211963
ME
61132014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6114
6115 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6116 target_read_code.
6117
a52b4d3e
ME
61182014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6119
6120 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6121 less than zero in conditional expression.
6122
a8bdc56b
TT
61232014-07-23 Tom Tromey <tromey@redhat.com>
6124
6125 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6126 ($INTRO_PART): Don't match whitespace.
6127 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6128 argument matching.
6129 ($METHOD): Add $METHOD_TRAILER.
6130 (trim): Rewrite.
6131 (scan_target_h): New sub.
6132 Change main loop not to collect state.
6133 * target-delegates.c: Rebuild.
6134
91b52240
GB
61352014-07-23 Gary Benson <gbenson@redhat.com>
6136
6137 * cp-support.c (gdb_demangle): Fix build on systems without
6138 sigaltstack.
6139
45326f6f
JK
61402014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6141
6142 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6143 for reference entry value target data value.
6144
e214cf6c
JK
61452014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6146
6147 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6148 value_available_contents_eq.
6149
bddbbedd
PA
61502014-07-22 Pedro Alves <palves@redhat.com>
6151
6152 * value.c (allocate_optimized_out_value): Don't mark value as
6153 non-lazy.
6154
45c71484
JW
61552014-07-22 Jiong Wang <jiong.wang@arm.com>
6156
6157 * MAINTAINERS (Write After Approval): Update my email address.
6158
9597b22a
DE
61592014-07-20 Doug Evans <dje@google.com>
6160
6161 PR server/17147
6162 * remote.c (putpkt_binary): Add text to error message.
6163
91101fe5
YQ
61642014-07-20 Yao Qi <yao@codesourcery.com>
6165
6166 * eval.c: Remove "Chill" from comments.
6167 * gdbtypes.h: Likewise.
6168 * symtab.h: Likewise.
6169
c9402c95
YQ
61702014-07-20 Yao Qi <yao@codesourcery.com>
6171
6172 * std-operator.def: Update comments to TERNOP_SLICE.
6173
ae8fddda
YQ
61742014-07-20 Yao Qi <yao@codesourcery.com>
6175
6176 * std-operator.def: Remove BINOP_RANGE.
6177 * breakpoint.c (watchpoint_exp_is_const): Update.
6178 * expprint.c (dump_subexp_body_standard): Likewise.
6179 * eval.c (init_array_element): Remove dead code.
6180 (evaluate_subexp_standard): Likewise.
6181
9c816640
YQ
61822014-07-20 Yao Qi <yao@codesourcery.com>
6183
6184 * std-operator.def: Remove BINOP_IN.
6185 * breakpoint.c (watchpoint_exp_is_const): Update.
6186 * eval.c (evaluate_subexp_standard): Likewise.
6187 * expprint.c (dump_subexp_body_standard): Likewise.
6188
164224e9
ME
61892014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6190
6191 * microblaze-tdep.c (microblaze_register_names): Add
6192 the rshr and rslr register names.
6193 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6194 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6195 Use of tdesc_numbered_register. Use of
6196 microblaze_register_g_packet_guesses. Use of
6197 tdesc_use_registers. Use of set_gdbarch_register_type.
6198 (microblaze_register_g_packet_guesses): New.
6199 * microblaze-tdep.h (microblaze_reg_num): Add
6200 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6201 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6202 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6203 * features/microblaze-core.xml: New file.
6204 * features/microblaze-stack-protect.xml: New file.
6205 * features/microblaze-with-stack-protect.c: New file.
6206 * features/microblaze-with-stack-protect.xml: New file.
6207 * features/microblaze.xml: New file.
6208 * features/microblaze.c: New file.
6209 * features/Makefile (microblaze-with-stack-protect): Add
6210 microblaze-with-stack-protect microblaze and microblaze-expedite.
6211 * regformats/microblaze-with-stack-protect.dat: New file.
6212 * regformats/microblaze.dat: New file.
6213 * doc/gdb.texinfo (MicroBlaze Features): Added.
6214
e8b2341c
TT
62152014-07-18 Tom Tromey <tromey@redhat.com>
6216
6217 * exec.c (exec_ops): Now static.
6218 * exec.h (exec_ops): Don't declare.
6219
44e89118
TT
62202014-07-18 Tom Tromey <tromey@redhat.com>
6221
6222 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6223 to find_target_beneath.
6224 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6225 find_target_beneath.
6226 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6227
b0ed115f
TT
62282014-07-18 Tom Tromey <tromey@redhat.com>
6229
6230 PR gdb/17130:
6231 * utils.c (quit): Use target_supports_terminal_ours.
6232 * target.h (target_supports_terminal_ours): Declare.
6233 * target.c (target_supports_delete_record): Don't check
6234 to_delete_record against NULL.
6235 (target_supports_terminal_ours): New function.
6236
e75fdfca
TT
62372014-07-18 Tom Tromey <tromey@redhat.com>
6238
6239 PR gdb/17130:
6240 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6241 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6242 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6243 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6244 * windows-nat.c (windows_xfer_partial): Always delegate.
6245 * record-btrace.c (record_btrace_xfer_partial): Simplify
6246 delegation.
6247 (record_btrace_fetch_registers, record_btrace_store_registers)
6248 (record_btrace_prepare_to_store, record_btrace_resume)
6249 (record_btrace_wait, record_btrace_find_new_threads)
6250 (record_btrace_thread_alive): Likewise.
6251 * procfs.c (procfs_xfer_partial): Always delegate.
6252 * corelow.c (core_xfer_partial): Always delegate.
6253 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6254
83814951
TT
62552014-07-18 Tom Tromey <tromey@redhat.com>
6256
6257 * exec.c (exec_make_note_section): Move earlier.
6258
b8b8facf
DE
62592014-07-17 Doug Evans <dje@google.com>
6260
74b49205 6261 PR gdb/17170
b8b8facf
DE
6262 * maint.c (count_symtabs_and_blocks): Handle NULL
6263 current_program_space.
6264 (report_command_stats): Check global enabled flag in addition to
6265 recorded enabled flag.
6266 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6267
69ff6be5
PA
62682014-07-16 Pedro Alves <palves@redhat.com>
6269
6270 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6271
252db1b5
TT
62722014-07-16 Tom Tromey <tromey@redhat.com>
6273
6274 * target.h (struct target_ops) <to_delete_record>: Reformat
6275 comment.
6276
a432721e
TT
62772014-07-16 Tom Tromey <tromey@redhat.com>
6278
6279 * target-delegates.c: Rebuild.
6280
487d9753
PL
62812014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6282
6283 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6284 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6285 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6286 (avr_pointer_to_address): Likewise.
6287 (avr_address_class_type_flags): New function.
6288 (avr_address_class_type_flags_to_name): Likewise.
6289 (avr_address_class_name_to_type_flags): Likewise.
6290 (avr_gdbarch_init): Set address_class_type_flags,
6291 address_class_type_flags_to_name and
6292 address_class_name_to_type_flags.
6293
57745c90
PA
62942014-07-15 Pedro Alves <palves@redhat.com>
6295
6296 * linux-nat.c (kill_callback): Save errno and work with saved
6297 copy.
6298
2d40be18
SM
62992014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6300
6301 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6302
572f6555
EBM
63032014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6304
6305 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6306 breakpoint support correctly.
6307
cc1c52ad
PA
63082014-07-14 Pedro Alves <palves@redhat.com>
6309
6310 * utils.c (prompt_for_continue): Call target_terminal_ours.
6311
1e973570
PA
63122014-07-14 Pedro Alves <palves@redhat.com>
6313
6314 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6315 catch_errors. Don't re-enable stdin or notify observers where,
6316 and rethrow error.
6317 (fetch_inferior_event_wrapper): Delete.
6318
93d6eb10
PA
63192014-07-14 Pedro Alves <palves@redhat.com>
6320
6321 PR gdb/17072
6322 * top.c: Include "inf-loop.h".
6323 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6324 field.
6325 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6326 was async before.
6327 (gdb_readline_wrapper): Store whether the target is async, and
6328 make it sync.
6329
0017922d
PA
63302014-07-14 Pedro Alves <palves@redhat.com>
6331
6332 PR gdb/17072
6333 * top.c (gdb_readline_wrapper_line): Tweak comment.
6334 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6335 the input handler callback.
6336
94696ad3
PA
63372014-07-14 Pedro Alves <palves@redhat.com>
6338
6339 PR gdb/17072
6340 * main.c: Include event-top.h.
6341 (handle_command_errors): New function.
6342 (catch_command_errors, catch_command_errors_const): Use it.
6343
9d1e69a2
PA
63442014-07-14 Pedro Alves <palves@redhat.com>
6345
6346 * exceptions.c (catch_command_errors, catch_command_errors_const):
6347 Moved to main.c.
6348 * exceptions.h (catch_command_errors_ftype)
6349 (catch_command_errors_const_ftype): Moved to main.c.
6350 (catch_command_errors, catch_command_errors_const): Delete
6351 declarations.
6352 * main.c (catch_command_errors_ftype)
6353 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6354 (catch_command_errors, catch_command_errors_const)): Moved here
6355 from exceptions.c and make static.
6356
feefc97b
PA
63572014-07-14 Pedro Alves <palves@redhat.com>
6358
6359 * exceptions.c (print_any_exception): Delete.
6360 (catch_exceptions_with_msg): Use exception_print instead of
6361 print_any_exception.
6362 (catch_errors): Use exception_fprintf instead of
6363 print_any_exception.
6364 (catch_command_errors, catch_command_errors_const): Use
6365 exception_print instead of print_any_exception.
6366
c933f875
PA
63672014-07-14 Pedro Alves <palves@redhat.com>
6368
6369 * infcall.c (run_inferior_call): Set 'sync_execution' while
6370 running the inferior call.
6371
feb6f816
PA
63722014-07-14 Pedro Alves <palves@redhat.com>
6373
6374 * value.c (value_contents_equal): Delete function.
6375 * value.h (value_contents_equal): Delete declaration.
6376
d98b7a16
TT
63772014-07-14 Tom Tromey <tromey@redhat.com>
6378
6379 PR exp/17106:
6380 * gdbtypes.c (is_dynamic_type_internal): New function, from
6381 is_dynamic_type.
6382 (is_dynamic_type): Rewrite.
6383 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6384 (resolve_dynamic_struct): Likewise.
6385 (resolve_dynamic_type_internal): New function, from
6386 resolve_dynamic_type.
6387 (resolve_dynamic_type): Rewrite.
6388
548740d6
TT
63892014-07-14 Tom Tromey <tromey@redhat.com>
6390
6391 * target.c (target_require_runnable): Also check record_stratum.
6392 Update comment.
6393
808f7ab1
YQ
63942014-07-11 Yao Qi <yao@codesourcery.com>
6395
6396 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6397 thumb_instruction_restores_sp return true.
6398
540314bd
YQ
63992014-07-11 Yao Qi <yao@codesourcery.com>
6400
6401 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6402 (thumb_in_function_epilogue_p): Call
6403 thumb_instruction_restores_sp.
6404
1db01f22
YQ
64052014-07-11 Yao Qi <yao@codesourcery.com>
6406
6407 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6408 'add sp, #imm'.
6409 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6410
3116063b
GB
64112014-07-11 Gary Benson <gbenson@redhat.com>
6412
6413 * amd64-linux-nat.c (gdbcore.h): Remove include.
6414 (regset.h): Likewise.
6415 (nat/linux-btrace.h): Likewise.
6416 (btrace.h): Likewise.
6417 (gdb_assert.h): Likewise.
6418 (string.h): Likewise.
6419 (sys/uio.h): Likewise.
6420 (sys/debugreg.h): Likewise.
6421 (sys/syscall.h): Likewise.
6422 (sys/procfs.h): Likewise.
6423 (sys/user.h): Likewise.
6424 (asm/ptrace.h): Likewise.
6425 (i386-nat.h): Likewise.
6426 * i386-linux-nat.c (i386-nat.h): Likewise.
6427 (regset.h): Likewise.
6428 (target.h): Likewise.
6429 (linux-nat.h): Likewise.
6430 (nat/linux-btrace.h): Likewise.
6431 (btrace.h): Likewise.
6432 (gdb_assert.h): Likewise.
6433 (string.h): Likewise.
6434 (sys/uio.h): Likewise.
6435 (sys/user.h): Likewise.
6436 (sys/procfs.h): Likewise.
6437 (sys/reg.h): Likewise.
6438 (sys/debugreg.h): Likewise.
6439 (ORIG_EAX): Remove definition.
6440
040baaf6
GB
64412014-07-11 Gary Benson <gbenson@redhat.com>
6442
6443 * i386-linux-nat.h: New file.
6444 * x86-linux-nat.h: Likewise.
6445 * x86-linux-nat.c: Likewise.
6446 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6447 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6448 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6449 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6450 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6451 (PTRACE_SETREGSET): Likewise.
6452 (arch_lwp_info): Now in x86-linux-nat.c.
6453 (have_ptrace_getregset): Now in x86-linux-nat.h.
6454 (x86_linux_dr_get): Now in x86-linux-nat.c.
6455 (x86_linux_dr_set): Likewise.
6456 (x86_linux_dr_get_addr): Likewise.
6457 (x86_linux_dr_get_control): Likewise.
6458 (x86_linux_dr_get_status): Likewise.
6459 (update_debug_registers_callback): Likewise.
6460 (x86_linux_dr_set_control): Likewise.
6461 (x86_linux_dr_set_addr): Likewise.
6462 (x86_linux_prepare_to_resume): Likewise.
6463 (x86_linux_new_thread): Likewise.
6464 (x86_linux_new_fork): Likewise.
6465 (x86_linux_get_thread_area): Likewise.
6466 (super_post_startup_inferior): Likewise.
6467 (x86_linux_child_post_startup_inferior): Likewise.
6468 (AMD64_LINUX_USER64_CS): Likewise.
6469 (AMD64_LINUX_X32_DS): Likewise.
6470 (x86_linux_read_description): Likewise.
6471 (x86_linux_enable_btrace): Likewise.
6472 (x86_linux_disable_btrace): Likewise.
6473 (x86_linux_teardown_btrace): Likewise.
6474 (x86_linux_read_btrace): Likewise.
6475 (x86_linux_create_target): Likewise.
6476 (x86_linux_add_target): Likewise.
6477 * i386-linux-nat.c (x86-linux-nat.h): New include.
6478 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6479 (PTRACE_SETREGSET): Likewise.
6480 (arch_lwp_info): Now in x86-linux-nat.c.
6481 (have_ptrace_getregset): Now in x86-linux-nat.h.
6482 (x86_linux_dr_get): Now in x86-linux-nat.c.
6483 (x86_linux_dr_set): Likewise.
6484 (x86_linux_dr_get_addr): Likewise.
6485 (x86_linux_dr_get_control): Likewise.
6486 (x86_linux_dr_get_status): Likewise.
6487 (update_debug_registers_callback): Likewise.
6488 (x86_linux_dr_set_control): Likewise.
6489 (x86_linux_dr_set_addr): Likewise.
6490 (x86_linux_prepare_to_resume): Likewise.
6491 (x86_linux_new_thread): Likewise.
6492 (x86_linux_new_fork): Likewise.
6493 (x86_linux_get_thread_area): Likewise.
6494 (super_post_startup_inferior): Likewise.
6495 (x86_linux_child_post_startup_inferior): Likewise.
6496 (AMD64_LINUX_USER64_CS): Likewise.
6497 (AMD64_LINUX_X32_DS): Likewise.
6498 (x86_linux_read_description): Likewise.
6499 (x86_linux_enable_btrace): Likewise.
6500 (x86_linux_disable_btrace): Likewise.
6501 (x86_linux_teardown_btrace): Likewise.
6502 (x86_linux_read_btrace): Likewise.
6503 (x86_linux_create_target): Likewise.
6504 (x86_linux_add_target): Likewise.
6505
1aa7e42c
GB
65062014-07-11 Gary Benson <gbenson@redhat.com>
6507
6508 * amd64-linux-nat.c: Comment and whitespace changes.
6509 * i386-linux-nat.c: Comment and whitespace changes.
6510
c1e246a0
GB
65112014-07-11 Gary Benson <gbenson@redhat.com>
6512
6513 * amd64-linux-nat.c (x86_linux_create_target): New function.
6514 (x86_linux_add_target): Likewise.
6515 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6516 * i386-linux-nat.c (x86_linux_create_target): New function.
6517 (x86_linux_add_target): Likewise.
6518 (_initialize_i386_linux_nat): Delegate to the above new functions.
6519
8c420b8d
GB
65202014-07-11 Gary Benson <gbenson@redhat.com>
6521
6522 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6523 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6524 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6525 (ps_get_thread_area): Delegate to the above.
6526
cb1da100
GB
65272014-07-11 Gary Benson <gbenson@redhat.com>
6528
6529 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6530 x86_linux_read_description. All uses updated. amd64-specific
6531 code conditionalized. Conditionalized i386-specific code added.
6532 Redundant cast removed.
6533 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6534 x86_linux_read_description. All uses updated. i386-specific
6535 code conditionalized. Conditionalized amd64-specific code added.
6536 One sizeof replaced with the actual type it is describing.
6537
2acf3cd0
GB
65382014-07-11 Gary Benson <gbenson@redhat.com>
6539
6540 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6541 x86_linux_dr_get. All uses updated.
6542 (amd64_linux_dr_set): Renamed to
6543 x86_linux_dr_set. All uses updated.
6544 (amd64_linux_dr_get_addr): Renamed to
6545 x86_linux_dr_get_addr. All uses updated.
6546 (amd64_linux_dr_get_control): Renamed to
6547 x86_linux_dr_get_control. All uses updated.
6548 (amd64_linux_dr_get_status): Renamed to
6549 x86_linux_dr_get_status. All uses updated.
6550 (amd64_linux_dr_set_control): Renamed to
6551 x86_linux_dr_set_control. All uses updated.
6552 (amd64_linux_dr_set_addr): Renamed to
6553 x86_linux_dr_set_addr. All uses updated.
6554 (amd64_linux_prepare_to_resume): Renamed to
6555 x86_linux_prepare_to_resume. All uses updated.
6556 (amd64_linux_new_thread): Renamed to
6557 x86_linux_new_thread. All uses updated.
6558 (amd64_linux_new_fork): Renamed to
6559 x86_linux_new_fork. All uses updated.
6560 (amd64_linux_child_post_startup_inferior): Renamed to
6561 x86_linux_child_post_startup_inferior. All uses updated.
6562 (amd64_linux_enable_btrace): Renamed to
6563 x86_linux_enable_btrace. All uses updated.
6564 (amd64_linux_disable_btrace): Renamed to
6565 x86_linux_disable_btrace. All uses updated.
6566 (amd64_linux_teardown_btrace): Renamed to
6567 x86_linux_teardown_btrace. All uses updated.
6568 (amd64_linux_read_btrace): Renamed to
6569 x86_linux_read_btrace. All uses updated.
6570 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6571 x86_linux_dr_get. All uses updated.
6572 (i386_linux_dr_set): Renamed to
6573 x86_linux_dr_set. All uses updated.
6574 (i386_linux_dr_get_addr): Renamed to
6575 x86_linux_dr_get_addr. All uses updated.
6576 (i386_linux_dr_get_control): Renamed to
6577 x86_linux_dr_get_control. All uses updated.
6578 (i386_linux_dr_get_status): Renamed to
6579 x86_linux_dr_get_status. All uses updated.
6580 (i386_linux_dr_set_control): Renamed to
6581 x86_linux_dr_set_control. All uses updated.
6582 (i386_linux_dr_set_addr): Renamed to
6583 x86_linux_dr_set_addr. All uses updated.
6584 (i386_linux_prepare_to_resume): Renamed to
6585 x86_linux_prepare_to_resume. All uses updated.
6586 (i386_linux_new_thread): Renamed to
6587 x86_linux_new_thread. All uses updated.
6588 (i386_linux_new_fork): Renamed to
6589 x86_linux_new_fork. All uses updated.
6590 (i386_linux_child_post_startup_inferior): Renamed to
6591 x86_linux_child_post_startup_inferior. All uses updated.
6592 (i386_linux_enable_btrace): Renamed to
6593 x86_linux_enable_btrace. All uses updated.
6594 (i386_linux_disable_btrace): Renamed to
6595 x86_linux_disable_btrace. All uses updated.
6596 (i386_linux_teardown_btrace): Renamed to
6597 x86_linux_teardown_btrace. All uses updated.
6598 (i386_linux_read_btrace): Renamed to
6599 x86_linux_read_btrace. All uses updated.
6600
b9c1d481
AS
66012014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6602
6603 * remote.c (extended_remote_post_attach): New function.
6604 (init_extended_remote_ops): Install it as to_post_attach method.
6605
7180e04a
PA
66062014-07-09 Pedro Alves <palves@redhat.com>
6607
6608 * infcmd.c (attach_command_post_wait): Don't call
6609 target_terminal_inferior here.
6610 (attach_command): Call it here instead.
6611
9a9a7608
AB
66122014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6615 field.
6616 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6617 from varobj.c, with additional checks.
6618 (c_varobj_ops): Fill in is_path_expr_parent field.
6619 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6620 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6621 field.
6622 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6623 ops method.
6624 (varobj_default_is_path_expr_parent): New function.
6625 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6626 (varobj_default_is_path_expr_parent): Declare new function.
6627
1f267ae3
MM
66282014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6629
6630 * infcmd.c (finish_backward): Turn internal error into normal error.
6631
b2ee242b
PA
66322014-07-07 Pedro Alves <palves@redhat.com>
6633
8a869bca 6634 PR gdb/17096
b2ee242b
PA
6635 * remote.c (async_handle_remote_sigint)
6636 (async_handle_remote_sigint_twice): Call
6637 gdb_call_async_signal_handler instead of
6638 mark_async_signal_handler.
6639
38e229b2
TT
66402014-07-07 Tom Tromey <tromey@redhat.com>
6641
6642 * target-delegates.c: Rebuild.
6643 * target.c (target_info_record): Remove.
6644 * record.c (info_record_command): Unconditionally call
6645 to_info_record.
6646 * target.h (struct target_ops) <to_info_record>: Use
6647 TARGET_DEFAULT_IGNORE.
6648 (target_info_record): Remove.
6649
f0f9ff95
TT
66502014-07-07 Tom Tromey <tromey@redhat.com>
6651
6652 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6653 TARGET_DEFAULT_NORETURN.
6654 * target.c (generic_tls_error): New function.
6655 (target_translate_tls_address): Don't search target stack.
6656 * target-delegates.c: Rebuild.
6657 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6658 stack.
6659 * linux-thread-db.c (thread_db_get_thread_local_address):
6660 Unconditionally call beneath target.
6661
4a5be5ee
MK
66622014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6663
6664 * cli/cli-logging.c (pop_output_files): Assign targerr to
6665 gdb_stdtargerr.
6666
92c3b204
AB
66672014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * MAINTAINERS (Write After Approval): Update my email address.
6670
9b11e3a7
GB
66712014-07-02 Gary Benson <gbenson@redhat.com>
6672
6673 * proc-service.c (ps_xfer_memory): Update comment.
6674 (ps_pstop): Remove unused function.
6675 (ps_pcontinue): Likewise.
6676 (ps_lstop): Likewise.
6677 (ps_lcontinue): Likewise.
6678 (ps_lgetxregsize): Likewise.
6679 (ps_lgetxregs): Likewise.
6680 (ps_lsetxregs): Likewise.
6681 (ps_plog): Likewise.
6682 (ps_ptread): Likewise.
6683 (ps_ptwrite): Likewise.
6684
cf363f18
MW
66852014-07-01 Mark Wielaard <mjw@redhat.com>
6686
6687 * dwarf2read.c (add_array_cv_type): New function.
6688 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6689 (read_tag_volatile_type): Likewise.
6690
82ae6c8d
TT
66912014-07-01 Tom Tromey <tromey@redhat.com>
6692
6693 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6694 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6695 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6696 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6697 * command.h (cmd_cfunc_ftype): Move earlier.
6698 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6699 (add_com, add_info): Use cmd_cfunc_ftype.
6700
96142726
TT
67012014-06-30 Tom Tromey <tromey@redhat.com>
6702
6703 * symtab.c (operator_chars): Make parameters and return type
6704 const.
6705 (file_matches): Make "files" const.
6706 (struct search_symbols_data) <files>: Now const.
6707 (search_symbols): Make "regexp" and "files" parameters const.
6708 Update.
6709 (symtab_symbol_info): Remove cast.
6710 (rbreak_command): Update.
6711 * symtab.h (search_symbols): Update.
6712
b67a2c6f
YQ
67132014-06-27 Yao Qi <yao@codesourcery.com>
6714
6715 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6716 Change parameter type to 'struct thread_info *'. Caller
6717 updated.
6718 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6719 Update declaration.
6720 * dummy-frame.c (struct dummy_frame_id): New.
6721 (dummy_frame_id_eq): New function.
6722 (struct dummy_frame) <id>: Change its type to 'struct
6723 dummy_frame_id'.
6724 (dummy_frame_push): Add parameter ptid and save it in
6725 dummy_frame_id.
6726 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6727 inferior_ptid.
6728 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6729 to inferior_ptid.
6730 (lookup_dummy_frame): Change parameter type to 'struct
6731 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6732 instead of frame_id_eq.
6733 (dummy_frame_pop): Add parameter ptid. Callers updated.
6734 Update comments. Compose dummy_frame_id and pass it to
6735 lookup_dummy_frame.
6736 (dummy_frame_discard): Add parameter ptid.
6737 (dummy_frame_sniffer): Compose dummy_frame_id and call
6738 dummy_frame_id_eq instead of frame_id_eq.
6739 (fprint_dummy_frames): Print ptid.
6740 * dummy-frame.h: Remove comments.
6741 (dummy_frame_push): Add ptid in declaration.
6742 (dummy_frame_pop, dummy_frame_discard): Likewise.
6743
5b10184c
TT
67442014-06-26 Tom Tromey <tromey@redhat.com>
6745
6746 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6747 * command.h (error_no_arg): Update.
6748
06900326
TT
67492014-06-26 Tom Tromey <tromey@redhat.com>
6750
6751 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6752 (do_show_command): Make "arg" const.
6753 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6754
c2bcbb1d
TT
67552014-06-26 Tom Tromey <tromey@redhat.com>
6756
6757 * record-full.c (record_full_get_bookmark): Make "args" const.
6758 (record_full_goto_bookmark): Make "raw_bookmark" const.
6759 * record.c (record_goto): New function.
6760 (cmd_record_goto): Use it. Now static.
6761 * record.h (record_goto): Declare.
6762 (cmd_record_goto): Remove declaration.
6763 * target-delegates.c: Rebuild.
6764 * target.h (struct target_ops) <to_get_bookmark,
6765 to_goto_bookmark>: Make parameter const.
6766
9cbe5fff
TT
67672014-06-26 Tom Tromey <tromey@redhat.com>
6768
6769 * defs.h (generic_load): Update.
6770 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6771 * monitor.c (monitor_load): Make "args" const.
6772 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6773 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6774 const.
6775 (mips_load): Make "file" const.
6776 * remote-sim.c (gdbsim_load): Make "args" const.
6777 * remote.c (remote_load): Make "name" const.
6778 * symfile.c (generic_load): Make "args" const.
6779 * target-delegates.c: Rebuild.
6780 * target.c (target_load): Make "arg" const.
6781 (debug_to_load): Make "args" const.
6782 * target.h (struct target_ops) <to_load>: Make parameter const.
6783 (target_load): Update.
6784
34a68019
TT
67852014-06-26 Tom Tromey <tromey@redhat.com>
6786
6787 PR symtab/16902:
6788 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6789 (dwarf2_physname, read_partial_die)
6790 (guess_partial_die_structure_name, fixup_partial_die)
6791 (guess_full_die_structure_name, anonymous_struct_prefix)
6792 (dwarf2_name): Use per-BFD obstack.
6793
efc889c1
YQ
67942014-06-26 Yao Qi <yao@codesourcery.com>
6795
6796 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6797 dummyframe and this_id into inner block below.
6798
4395285e
YQ
67992014-06-26 Yao Qi <yao@codesourcery.com>
6800
6801 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6802 with "signal_pass[0]" in the initialization of signal_pass.
6803
aef92902
MM
68042014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6805
6806 * record-btrace.c (record_btrace_generating_corefile)
6807 (record_btrace_prepare_to_generate_core)
6808 (record_btrace_done_generating_core): New.
6809 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6810 (record_btrace_store_registers, record_btrace_prepare_to_store):
6811 Forward request when generating a core file.
6812 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6813 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6814 to_done_generating_core.
6815
5fff78c4
MM
68162014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6817
6818 * target.h (target_ops) <to_prepare_to_generate_core>
6819 <to_done_generating_core>: New.
6820 (target_prepare_to_generate_core, target_done_generating_core): New.
6821 * target.c (target_prepare_to_generate_core)
6822 (target_done_generating_core): New.
6823 * target-delegates.c: Regenerate.
6824 * gcore.c: (write_gcore_file): Rename to ...
6825 (write_gcore_file_1): ...this.
6826 (write_gcore_file): Call target_prepare_to_generate_core
6827 and target_done_generating_core.
6828
1d1f1ccb
MM
68292014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6830
6831 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6832 * gcore.c (write_gcore_file): Free memory returned from
6833 make_corefile_notes.
6834 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6835 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6836
3343ef86
YQ
68372014-06-24 Yao Qi <yao@codesourcery.com>
6838
6839 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6840 (arm_linux_init_abi): Set skip_trampoline_code with
6841 gdbarch_skip_trampoline_code instead of
6842 find_solib_trampoline_target.
6843
18d18ac8
YQ
68442014-06-24 Yao Qi <yao@codesourcery.com>
6845
6846 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6847 arm_skip_bx_reg returns non-zero.
6848
80d8d390
YQ
68492014-06-24 Yao Qi <yao@codesourcery.com>
6850
6851 * arm-tdep.c (arm_skip_bx_reg): New function.
6852 (arm_skip_stub): Call arm_skip_bx_reg.
6853
6a18a01c
DB
68542014-06-23 Don Breazeal <donb@codesourcery.com>
6855
6856 * MAINTAINERS: Add myself as write-after-approval maintainer.
6857
8e9db26e
PA
68582014-06-23 Pedro Alves <palves@redhat.com>
6859
6860 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6861 DR_CONTROL before setting DR0..DR3.
6862 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6863 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6864 bits of DR_CONTROL related to the debug register slot being
6865 disabled. If all slots are vacant, clear local slowdown as well,
6866 and assert DR_CONTROL is 0.
6867
70afc5b7
SC
68682014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6869
6870 * python/lib/gdb/command/xmethods.py
6871 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6872 current progspace only if the string "progspace" matches LOCUS_RE.
6873
840ed64d
JK
68742014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 Fix --with-system-readline with readline-6.3 patch 5.
6877 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6878 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6879 types.
6880
26f2dc30
TT
68812014-06-20 Tom Tromey <tromey@redhat.com>
6882
6883 * dwarf2read.c (dw2_get_real_path): Use correct type in
6884 OBSTACK_CALLOC.
6885 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6886
125f8a3d
GB
68872014-06-20 Gary Benson <gbenson@redhat.com>
6888
6889 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6890 * common/glibc_thread_db.h: Likewise.
6891 * common/i386-cpuid.h: Likewise.
6892 * common/i386-gcc-cpuid.h: Likewise.
6893 * common/linux-btrace.h: Likewise.
6894 * common/linux-osdata.h: Likewise.
6895 * common/linux-procfs.h: Likewise.
6896 * common/linux-ptrace.h: Likewise.
6897 * common/mips-linux-watch.h: Likewise.
6898 * common/linux-btrace.c: Moved to nat.
6899 * common/linux-osdata.c: Likewise.
6900 * common/linux-procfs.c: Likewise.
6901 * common/linux-ptrace.c: Likewise.
6902 * common/mips-linux-watch.c: Likewise.
6903 * nat/gdb_thread_db.h: Moved from common.
6904 * nat/glibc_thread_db.h: Likewise.
6905 * nat/i386-cpuid.h: Likewise.
6906 * nat/i386-gcc-cpuid.h: Likewise.
6907 * nat/linux-btrace.c: Likewise.
6908 * nat/linux-btrace.h: Likewise.
6909 * nat/linux-osdata.c: Likewise.
6910 * nat/linux-osdata.h: Likewise.
6911 * nat/linux-procfs.c: Likewise.
6912 * nat/linux-procfs.h: Likewise.
6913 * nat/linux-ptrace.c: Likewise.
6914 * nat/linux-ptrace.h: Likewise.
6915 * nat/mips-linux-watch.c: Likewise.
6916 * nat/mips-linux-watch.h: Likewise.
6917 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6918 (object file files): Reordered.
6919 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6920 of glibc_thread_db.h.
6921
42995dbd
GB
69222014-06-20 Gary Benson <gbenson@redhat.com>
6923
6924 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6925 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6926 (i386_dr_low): Likewise.
6927 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6928 (i386_dr_low_set_addr): Likewise.
6929 (i386_dr_low_get_addr): Likewise.
6930 (i386_dr_low_can_set_control): Likewise.
6931 (i386_dr_low_set_control): Likewise.
6932 (i386_dr_low_get_control): Likewise.
6933 (i386_dr_low_get_status): Likewise.
6934 (i386_get_debug_register_length): Likewise.
6935 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6936 (i386_dr_low): Likewise.
6937 * nat/i386-dregs.c (i386-low.h): Remove include.
6938 (i386-nat.h): Likewise.
6939 (nat/i386-dregs.h): New include.
6940 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6941 (i386_dr_low_set_addr): Likewise.
6942 (i386_dr_low_get_addr): Likewise.
6943 (i386_dr_low_can_set_control): Likewise.
6944 (i386_dr_low_set_control): Likewise.
6945 (i386_dr_low_get_control): Likewise.
6946 (i386_dr_low_get_status): Likewise.
6947 (i386_get_debug_register_length): Likewise.
6948 (debug_hw_points): Likewise.
6949
3ed9baed
IB
69502014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6951
6952 * Makefile.in (SFILES): Add d-exp.y.
6953 (YYFILES): Add d-exp.c.
6954 (YYOBJ): Add d-exp.o.
6955 (local-maintainer-clean): Delete d-exp.c.
6956 * d-exp.y: New file.
6957 * d-lang.h (d_parse): New declaration.
6958 (d_error): New declaration.
6959 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6960 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6961 PREC_ORDER operators.
6962 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6963
78c164b0
YQ
69642014-06-19 Yao Qi <yao@codesourcery.com>
6965
6966 * gdbthread.h (any_running): Remove the declaration.
6967 * thread.c (any_running): Remove.
6968
f6e29b6e
YQ
69692014-06-19 Yao Qi <yao@codesourcery.com>
6970
6971 * gdbthread.h (struct thread_info) <state>: Change its type to
6972 'enum thread_state'. Update comments.
6973
034f788c
PA
69742014-06-19 Pedro Alves <palves@redhat.com>
6975
6976 * gdbthread.h (ALL_THREADS): Delete.
6977 (ALL_NON_EXITED_THREADS): New macro.
6978 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6979 instead of ALL_THREADS.
6980 * infrun.c (find_thread_needs_step_over)
6981 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6982 instead of ALL_THREADS.
6983 * record-btrace.c (record_btrace_open)
6984 (record_btrace_stop_recording, record_btrace_close)
6985 (record_btrace_is_replaying, record_btrace_resume)
6986 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6987 * remote.c (append_pending_thread_resumptions): Likewise.
6988 * thread.c (thread_apply_all_command): Likewise.
6989
46e33252
GB
69902014-06-19 Gary Benson <gbenson@redhat.com>
6991
6992 * i386-nat.c (i386_stopped_by_watchpoint):
6993 Use i386_dr_stopped_by_watchpoint.
6994 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6995 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6996
3a8ee006
GB
69972014-06-19 Gary Benson <gbenson@redhat.com>
6998
6999 * nat/i386-dregs.c: New file.
7000 * Makefile.in (i386-dregs.o): New rule.
7001 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7002 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7003 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7004 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7005 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7006 * config/i386/go32.mh (NATDEPFILES): Likewise.
7007 * config/i386/linux.mh (NATDEPFILES): Likewise.
7008 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7009 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7010 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7011 * i386-nat.h (debug_hw_points): New declaration.
7012 * i386-nat.c (breakpoint.h): Remove include.
7013 (command.h): Likewise.
7014 (target.h): Likewise.
7015 (gdb_assert.h): Likewise.
7016 (debug_hw_points): Made nonstatic.
7017 (debug_printf): Now in i386-dregs.c.
7018 (TARGET_HAS_DR_LEN_8): Likewise.
7019 (DR_CONTROL_SHIFT): Likewise.
7020 (DR_CONTROL_SIZE): Likewise.
7021 (DR_RW_EXECUTE): Likewise.
7022 (DR_RW_WRITE): Likewise.
7023 (DR_RW_READ): Likewise.
7024 (DR_RW_IORW): Likewise.
7025 (DR_LEN_1): Likewise.
7026 (DR_LEN_2): Likewise.
7027 (DR_LEN_4): Likewise.
7028 (DR_LEN_8): Likewise.
7029 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7030 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7031 (DR_ENABLE_SIZE): Likewise.
7032 (DR_LOCAL_SLOWDOWN): Likewise.
7033 (DR_GLOBAL_SLOWDOWN): Likewise.
7034 (DR_CONTROL_RESERVED): Likewise.
7035 (I386_DR_CONTROL_MASK): Likewise.
7036 (I386_DR_VACANT): Likewise.
7037 (I386_DR_LOCAL_ENABLE): Likewise.
7038 (I386_DR_GLOBAL_ENABLE): Likewise.
7039 (I386_DR_DISABLE): Likewise.
7040 (I386_DR_SET_RW_LEN): Likewise.
7041 (I386_DR_GET_RW_LEN): Likewise.
7042 (I386_DR_WATCH_HIT): Likewise.
7043 (i386_wp_op_t): Likewise.
7044 (i386_show_dr): Likewise.
7045 (i386_length_and_rw_bits): Likewise.
7046 (i386_insert_aligned_watchpoint): Likewise.
7047 (i386_remove_aligned_watchpoint): Likewise.
7048 (i386_handle_nonaligned_watchpoint): Likewise.
7049 (i386_update_inferior_debug_regs): Likewise.
7050 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7051 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7052 (i386_region_ok_for_watchpoint):
7053 Use i386_dr_region_ok_for_watchpoint.
7054 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7055
322a8e06
GB
70562014-06-19 Gary Benson <gbenson@redhat.com>
7057
7058 * i386-nat.c (i386_insert_hw_breakpoint): Use
7059 i386_insert_watchpoint.
7060 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7061
8f26655c
GB
70622014-06-19 Gary Benson <gbenson@redhat.com>
7063
7064 * i386-nat.c (i386_dr_show): Renamed to
7065 i386_show_dr and made static. All uses updated.
7066 (i386_dr_length_and_rw_bits): Renamed to
7067 i386_length_and_rw_bits and made static.
7068 All uses updated.
7069 (i386_dr_insert_aligned_watchpoint): Renamed to
7070 i386_insert_aligned_watchpoint and made static.
7071 All uses updated.
7072 (i386_dr_remove_aligned_watchpoint): Renamed to
7073 i386_remove_aligned_watchpoint and made static.
7074 All uses updated.
7075 (i386_dr_update_inferior_debug_regs): Renamed to
7076 i386_update_inferior_debug_regs and made static.
7077 All uses updated.
7078 * nat/i386-dregs.h (i386_dr_show): Removed.
7079 (i386_dr_length_and_rw_bits): Likewise.
7080 (i386_dr_insert_aligned_watchpoint): Likewise.
7081 (i386_dr_remove_aligned_watchpoint): Likewise.
7082 (i386_dr_update_inferior_debug_regs): Likewise.
7083
992c7d70
GB
70842014-06-19 Gary Benson <gbenson@redhat.com>
7085
7086 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7087 * configure: Regenerate.
7088 * config.in: Likewise.
7089 * main.c (signal.h): New include.
7090 (setup_alternate_signal_stack): New function.
7091 (captured_main): Call the above.
7092 * cp-support.c (signal.h): New include.
7093 (catch_demangler_crashes): New flag.
7094 (SIGJMP_BUF): New define.
7095 (SIGSETJMP): Likewise.
7096 (SIGLONGJMP): Likewise.
7097 (gdb_demangle_jmp_buf): New static global.
7098 (gdb_demangle_attempt_core_dump): Likewise.
7099 (gdb_demangle_signal_handler): New function.
7100 (gdb_demangle): If catch_demangler_crashes is set, install the
7101 above signal handler before calling bfd_demangle, and restore
7102 the original signal handler afterwards. Display the offending
7103 symbol and call demangler_warning the first time a segmentation
7104 fault is caught.
7105 (_initialize_cp_support): New maint set/show command.
7106
eae7090b
GB
71072014-06-19 Gary Benson <gbenson@redhat.com>
7108
7109 * utils.h (resource_limit_kind): New enum.
7110 (can_dump_core): New declaration.
7111 (warn_cant_dump_core): Likewise.
7112 (dump_core): Likewise.
7113 * utils.c (dump_core): Made nonstatic. Added new
7114 parameter "limit_kind".
7115 (can_dump_core): Made nonstatic. Moved printing code to...
7116 (warn_cant_dump_core): New function.
7117 (can_dump_core_warn): Likewise.
7118 (internal_vproblem): Replace calls to can_dump_core with
7119 calls to can_dump_core_warn. Supply new argument to each.
7120
57fcfb1b
GB
71212014-06-19 Gary Benson <gbenson@redhat.com>
7122
7123 * utils.h (demangler_vwarning): New declaration.
7124 (demangler_warning): Likewise.
7125 * utils.c (struct internal_problem)
7126 <user_settable_should_quit>: New field.
7127 <user_settable_should_dump_core>: Likewise
7128 (internal_error_problem): Add values for above new fields.
7129 (internal_warning_problem): Likewise.
7130 (demangler_warning_problem): New static global.
7131 (demangler_vwarning): New function.
7132 (demangler_warning): Likewise.
7133 (add_internal_problem_command): Selectively add commands.
7134 (_initialize_utils): New internal problem command.
7135 * maint.c (maintenance_demangler_warning): New function.
7136 (_initialize_maint_cmds): New command.
7137
17a40b44
TT
71382014-06-18 Tom Tromey <tromey@redhat.com>
7139
7140 * f-valprint.c (info_common_command_for_block): Update.
7141 * symtab.h (struct general_symbol_info) <common_block>: Now
7142 const.
7143
346d1dfe
TT
71442014-06-18 Tom Tromey <tromey@redhat.com>
7145
7146 * symtab.h (struct symtab) <blockvector>: Now const.
7147 * ada-lang.c (ada_add_global_exceptions): Update.
7148 * buildsym.c (augment_type_symtab): Update.
7149 * dwarf2read.c (dw2_lookup_symbol): Update.
7150 * jit.c (finalize_symtab): Update.
7151 * jv-lang.c (add_class_symtab_symbol): Update.
7152 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7153 Update.
7154 * objfiles.c (objfile_relocate1): Update.
7155 * psymtab.c (lookup_symbol_aux_psymtabs)
7156 (maintenance_check_psymtabs): Update.
7157 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7158 Update.
7159 * spu-tdep.c (spu_catch_start): Update.
7160 * symmisc.c (dump_symtab_1): Update.
7161 * symtab.c (lookup_global_symbol_from_objfile)
7162 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7163 (basic_lookup_transparent_type_quick)
7164 (basic_lookup_transparent_type, find_pc_sect_symtab)
7165 (find_pc_sect_line, search_symbols): Update.
7166 * block.c (find_block_in_blockvector): Make "bl" const.
7167 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7168 const.
7169 (blockvector_contains_pc): Make "bv" const.
7170 (block_for_pc_sect): Update.
7171 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7172 (blockvector_contains_pc): Update.
7173 * breakpoint.c (resolve_sal_pc): Update.
7174 * inline-frame.c (block_starting_point_at): Update.
7175
1834676b
TT
71762014-06-18 Tom Tromey <tromey@redhat.com>
7177
7178 * completer.c (complete_line): Make "line_buffer" const.
7179 * completer.h (complete_line): Update.
7180
ac1a991b
TT
71812014-06-18 Tom Tromey <tromey@redhat.com>
7182
7183 * symtab.c (add_macro_name): Remove unneeded cast.
7184
5bc98e52
TT
71852014-06-18 Tom Tromey <tromey@redhat.com>
7186
7187 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7188 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7189
8236def8
TT
71902014-06-18 Tom Tromey <tromey@redhat.com>
7191
7192 * probe.c (info_probes_for_ops): Make "arg" const.
7193 * probe.h (info_probes_for_ops): Update.
7194
3977b71f
TT
71952014-06-18 Tom Tromey <tromey@redhat.com>
7196
7197 * varobj.c (varobj_create): Update.
7198 * valops.c (value_of_this): Update.
7199 * tracepoint.c (add_local_symbols, scope_info): Update.
7200 * symtab.h (struct general_symbol_info) <block>: Now const.
7201 * symtab.c (skip_prologue_sal)
7202 (default_make_symbol_completion_list_break_on)
7203 (skip_prologue_using_sal): Update.
7204 * stack.h (iterate_over_block_locals)
7205 (iterate_over_block_local_vars): Update.
7206 * stack.c (print_frame_args): Update.
7207 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7208 parameter const.
7209 (get_selected_block): Make return type const.
7210 * python/py-frame.c (frapy_block): Update.
7211 * python/py-block.c (gdbpy_block_for_pc): Update.
7212 * p-exp.y (%union) <bval>: Now const.
7213 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7214 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7215 * m2-exp.y (%union) <bval>: Now const.
7216 * linespec.c (get_current_search_block): Make return type const.
7217 (create_sals_line_offset, find_label_symbols): Update.
7218 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7219 Update.
7220 (block_starting_point_at): Make "block" const.
7221 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7222 (check_exception_resume): Update.
7223 * guile/scm-frame.c (gdbscm_frame_block): Update.
7224 * guile/scm-block.c (gdbscm_lookup_block): Update.
7225 * frame.h (get_frame_block): Update.
7226 (get_selected_block): Make return type const.
7227 * frame.c (frame_id_inner): Update.
7228 * f-valprint.c (info_common_command_for_block)
7229 (info_common_command): Update.
7230 * dwarf2loc.c (dwarf2_find_location_expression)
7231 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7232 (locexpr_describe_location_piece): Update.
7233 * c-exp.y (%union) <bval>: Now const.
7234 * breakpoint.c (resolve_sal_pc): Update.
7235 * blockframe.c (get_frame_block):Make return type const.
7236 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7237 (block_innermost_frame): Update.
7238 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7239 (block_for_pc, block_for_pc_sect): Update.
7240 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7241 'pblock' const.
7242 (block_for_pc_sect, block_for_pc): Make return type const.
7243 * ax-gdb.c (gen_expr): Update.
7244 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7245 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7246 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7247 (ada_read_var_value): Update.
7248 * ada-exp.y (struct name_info) <block>: Now const.
7249 (%union): Likewise.
7250 (block_lookup): Constify.
7251
b9228891
GB
72522014-06-18 Gary Benson <gbenson@redhat.com>
7253
7254 * nat/i386-dregs.h: New file.
7255 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7256 * i386-nat.h (i386-dregs.h): New include.
7257 (DR_FIRSTADDR): Now in i386-dregs.h.
7258 (DR_LASTADDR): Likewise.
7259 (DR_NADDR): Likewise.
7260 (DR_STATUS): Likewise.
7261 (DR_CONTROL): Likewise.
7262 (i386_debug_reg_state): Likewise.
7263 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7264
a1aa2221
LM
72652014-06-18 Don Breazeal <donb@codesourcery.com>
7266
7267 * breakpoint.c (set_longjmp_breakpoint): Call
7268 momentary_breakpoint_from_master with additional argument.
7269 (set_longjmp_breakpoint_for_call_dummy): Call
7270 momentary_breakpoint_from_master with additional argument.
7271 (set_std_terminate_breakpoint): Call
7272 momentary_breakpoint_from_master with additional argument.
7273 (momentary_breakpoint_from_master): Add argument to function
7274 definition and use it to initialize structure member flag.
74228e77 7275 (clone_momentary_breakpoint): Call
a1aa2221
LM
7276 momentary_breakpoint_from_master with additional argument.
7277 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7278 member flags set in momentary_breakpoint_from_master.
7279
4be83cc2
GB
72802014-06-18 Gary Benson <gbenson@redhat.com>
7281
7282 * i386-nat.c (i386_show_dr): Renamed to
7283 i386_dr_show and made nonstatic. All uses updated.
7284 (i386_length_and_rw_bits): Renamed to
7285 i386_dr_length_and_rw_bits and made nonstatic.
7286 All uses updated.
7287 (i386_insert_aligned_watchpoint): Renamed to
7288 i386_dr_insert_aligned_watchpoint and made nonstatic.
7289 All uses updated.
7290 (i386_remove_aligned_watchpoint): Renamed to
7291 i386_dr_remove_aligned_watchpoint and made nonstatic.
7292 All uses updated.
7293 (i386_update_inferior_debug_regs): Renamed to
7294 i386_dr_update_inferior_debug_regs and made nonstatic.
7295 All uses updated.
7296
131aa0d4
GB
72972014-06-18 Gary Benson <gbenson@redhat.com>
7298
7299 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7300 (i386_dr_low_can_set_control): Likewise.
7301 (i386_dr_low_set_addr): Likewise.
7302 (i386_dr_low_set_control): Likewise.
7303 (i386_dr_low_get_addr): Likewise.
7304 (i386_dr_low_get_status): Likewise.
7305 (i386_dr_low_get_control): Likewise.
7306 (i386_insert_aligned_watchpoint): Use new macros.
7307 (i386_update_inferior_debug_regs): Likewise.
7308 (i386_stopped_data_address): Likewise.
7309
d9305f7f
GB
73102014-06-18 Gary Benson <gbenson@redhat.com>
7311
7312 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7313 New parameter. All uses updated.
7314
ea008da4
GB
73152014-06-18 Gary Benson <gbenson@redhat.com>
7316
7317 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7318 All uses updated.
7319
1b6d4134
GB
73202014-06-18 Gary Benson <gbenson@redhat.com>
7321
7322 * i386-nat.c (debug_printf): New macro.
7323 (i386_get_debug_register_length): Likewise.
7324 (TARGET_HAS_DR_LEN_8): Use above macro.
7325 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7326 and printf_unfiltered. Use phex to format values.
7327
9b4550ef
GB
73282014-06-18 Gary Benson <gbenson@redhat.com>
7329
7330 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7331 Make const.
7332
6e62758f
GB
73332014-06-18 Gary Benson <gbenson@redhat.com>
7334
7335 * i386-nat.c: Comment changes.
7336
51c79e94
GB
73372014-06-18 Gary Benson <gbenson@redhat.com>
7338
7339 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7340
3e11889a
GB
73412014-06-18 Gary Benson <gbenson@redhat.com>
7342
7343 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7344 (i386_insert_aligned_watchpoint): Likewise.
7345 (i386_remove_aligned_watchpoint): Likewise.
7346 (i386_handle_nonaligned_watchpoint): Likewise.
7347
fc6e2f03
GB
73482014-06-18 Gary Benson <gbenson@redhat.com>
7349
7350 * i386-nat.c: Whitespace changes.
7351
2afe7d50
SB
73522014-06-17 Samuel Bronson <naesten@gmail.com>
7353
7354 * MAINTAINERS: Update Roland McGrath's email address.
7355 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 7356 Red Hat a while ago, and giving me a current address.
2afe7d50 7357
3bca49ee
TT
73582014-06-17 Tom Tromey <tromey@redhat.com>
7359
7360 * utils.h (savestring): Remove declaration.
7361
6e366df1
TT
73622014-06-17 Tom Tromey <tromey@redhat.com>
7363
7364 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7365
6be47f0c
KS
73662014-06-16 Keith Seitz <keiths@redhat.com>
7367
7368 PR mi/15863
7369 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7370 to update the varobj if inferior_ptid is null_ptid.
7371
7bc112c1
TT
73722014-06-16 Tom Tromey <tromey@redhat.com>
7373
7374 * target.h (struct target_ops) <to_info_proc>: Make parameter
7375 const.
7376 (target_info_proc): Update.
7377 * target.c (target_info_proc): Make "args" const.
7378 * procfs.c (procfs_info_proc): Update.
7379 * linux-tdep.c (linux_info_proc): Update.
7380 (linux_core_info_proc_mappings): Make "args" const.
7381 (linux_core_info_proc): Update.
7382 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7383 * gdbarch.c: Rebuild.
7384 * gdbarch.h: Rebuild.
7385 * corelow.c (core_info_proc): Update.
7386
fee354ee
TT
73872014-06-16 Tom Tromey <tromey@redhat.com>
7388
7389 * target.h (struct target_ops) <to_disconnect>: Make parameter
7390 const.
7391 (target_disconnect): Update.
7392 * target.c (target_disconnect): Make "args" const.
7393 * target-delegates.c: Rebuild.
7394 * remote.c (remote_disconnect): Update.
7395 * record.h (record_disconnect): Update.
7396 * record.c (record_disconnect): Update.
7397 * inf-child.c (inf_child_disconnect): Update.
7398
a30bf1f1
TT
73992014-06-16 Tom Tromey <tromey@redhat.com>
7400
7401 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7402 * target.c (debug_to_rcmd, default_rcmd): Update.
7403 * target-delegates.c: Rebuild.
7404 * remote.c (remote_rcmd): Update.
7405 * monitor.c (monitor_rcmd): Update.
7406
d03de421
PA
74072014-06-16 Pedro Alves <palves@redhat.com>
7408
7409 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7410 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7411 have OBJF_SHARED set.
7412 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7413 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7414 instead of OBJF_USERLOADED.
7415 * objfiles.h (OBJF_SHARED): Update comment.
7416 (userloaded_objfile_contains_address_p): Rename to ...
7417 (shared_objfile_contains_address_p): ... this, and update
7418 comments.
7419 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7420 new objfile.
7421 (remove_symbol_file_command): Skip objfiles that don't have
7422 OBJF_SHARED set.
7423
99f4262f
TT
74242014-06-16 Tom Tromey <tromey@redhat.com>
7425
7426 * minsyms.h (prim_record_minimal_symbol)
7427 (prim_record_minimal_symbol_and_info): Update comments.
7428
97d66cc6
EZ
74292014-06-14 Eli Zaretskii <eliz@gnu.org>
7430
7431 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7432 or --without-guile, according to how GDB was built.
7433
635c7e8a
TT
74342014-06-13 Tom Tromey <tromey@redhat.com>
7435
7436 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7437 to help_list.
7438 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7439 to help_list.
7440 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7441 help_list.
7442 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7443 help_list.Pass all_commands, not -1, to help_list.
7444 * cli/cli-dump.c (dump_command, append_command)
7445 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7446 (binary_dump_command, binary_append_command): Pass all_commands,
7447 not -1, to help_list.
7448 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7449 -1, to help_list.
7450 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7451 -1, to help_list.
7452 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7453 help_list.
7454 * top.c (set_history): Pass all_commands, not -1, to help_list.
7455 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7456 all_commands, not -1, to help_list.
7457 * symfile.c (overlay_command): Pass all_commands, not -1, to
7458 help_list.
7459 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7460 help_list.
7461 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7462 help_list.
7463 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7464 -1, to help_list.
7465 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7466 not -1, to help_list.
7467 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7468 not -1, to help_list.
7469 * maint.c (maintenance_command, maintenance_info_command)
7470 (maintenance_print_command, maintenance_set_cmd): Pass
7471 all_commands, not -1, to help_list.
7472 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7473 help_list.
7474 * language.c (set_check): Pass all_commands, not -1, to help_list.
7475 * infcmd.c (unset_command): Pass all_commands, not -1, to
7476 help_list.
7477 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7478 help_list.
7479 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7480 help_list.
7481 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7482 help_list.
7483 * breakpoint.c (save_command): Pass all_commands, not -1, to
7484 help_list.
7485 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7486 all_commands, not -1, to help_list.
7487
b94ade42
PL
74882014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7489
7490 * regcache.c (struct register_to_invalidate): New structure.
7491 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7492 functions.
7493 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7494
31f628ae
YQ
74952014-06-12 Yao Qi <yao@codesourcery.com>
7496
7497 * varobj.c (varobj_get_num_children): Call
7498 varobj_is_dynamic_p.
7499 (varobj_list_children): Likewise.
7500 (varobj_update): Likewise. Update comments.
7501
cde5ef40
YQ
75022014-06-12 Yao Qi <yao@codesourcery.com>
7503
7504 * varobj.c (varobj_pretty_printed_p): Rename to ...
7505 (varobj_is_dynamic_p): ... this. New function.
7506 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7507 (varobj_is_dynamic_p): Declare.
7508 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7509 (mi_print_value_p, varobj_update_one): Likewise.
7510
576ea091
YQ
75112014-06-12 Pedro Alves <pedro@codesourcery.com>
7512 Yao Qi <yao@codesourcery.com>
7513
7514 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7515 (varobj_get_iterator): Wrap up code for pretty-printer by
7516 "#if HAVE_PYTHON" and "#endif".
7517 (update_dynamic_varobj_children): Likewise.
7518
827f100c
YQ
75192014-06-12 Pedro Alves <pedro@codesourcery.com>
7520 Yao Qi <yao@codesourcery.com>
7521
7522 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7523 gdb_python_initialized is false. Move some code from varobj.c.
7524 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7525 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7526 (struct varobj_item): Moved to varobj-iter.h".
7527 (varobj_clear_saved_item): New function.
7528 (update_dynamic_varobj_children): Move python-related code to
7529 py-varobj.c.
7530 (free_variable): Call varobj_clear_saved_item and
7531 varobj_iter_delete.
7532
e5250216
YQ
75332014-06-12 Pedro Alves <pedro@codesourcery.com>
7534 Yao Qi <yao@codesourcery.com>
7535
7536 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7537 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7538 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7539 (py-varobj.o): New rule.
7540 * python/py-varobj.c: New file.
7541 * python/python-internal.h (py_varobj_get_iterator): Declare.
7542 * varobj-iter.h: New file.
7543 * varobj.c: Include "varobj-iter.h"
7544 (struct varobj) <child_iter>: Change its type from "PyObject *"
7545 to "struct varobj_iter *".
7546 <saved_item>: Likewise.
7547 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7548 [HAVE_PYTHON] (varobj_get_iterator): New function.
7549 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7550 python-specific code to python/py-varobj.c.
7551 (install_visualizer): Call varobj_iter_delete instead of
7552 Py_XDECREF.
7553 * varobj.h (varobj_ensure_python_env): Declare.
7554
5a2e0d6e
YQ
75552014-06-12 Yao Qi <yao@codesourcery.com>
7556
7557 * varobj.c (struct varobj_item): New structure.
7558 (create_child_with_value): Update declaration.
7559 (varobj_add_child): Replace arguments 'name' and 'value' with
7560 'item'. All callers updated.
7561 (install_dynamic_child): Likewise.
7562 (update_dynamic_varobj_children): Likewise.
7563 (varobj_add_child): Likewise.
7564 (create_child_with_value): Likewise.
7565
919b9a93
JB
75662014-06-11 Joel Brobecker <brobecker@adacore.com>
7567
7568 * NEWS: Create a new section for the next release branch.
7569 Rename the section of the current branch, now that it has
7570 been cut.
7571
71a55bdf
JB
75722014-06-11 Joel Brobecker <brobecker@adacore.com>
7573
7574 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7575 * version.in: Bump version to 7.8.50.DATE-cvs.
7576
364fe1f7
PA
75772014-06-11 Pedro Alves <palves@redhat.com>
7578
7579 PR remote/17028
7580 * ser-mingw.c (net_windows_socket_check_pending): New function.
7581 (net_windows_select_thread): Ignore spurious wakeups. Use
7582 net_windows_socket_check_pending.
7583 (net_windows_wait_handle): Check for pending events with
7584 ioctlsocket, through net_windows_socket_check_pending, instead of
7585 checking the socket's event.
7586
5a6c7709
SC
75872014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7588
7589 * python/python-internal.h (gdb_PyObject_GetAttrString)
7590 (gdb_PyObject_HasAttrString): New inline function definitions.
7591 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7592 char * of the second argument to PyObject_GetAttrString.
74228e77 7593
0e58ee40
JB
75942014-06-10 Joel Brobecker <brobecker@adacore.com>
7595
7596 * serial.c (serial_write): Fix index of character to be printed
7597 in call to serial_logchar when serial debug traces are enabled.
7598
d190df30
JB
75992014-06-10 Joel Brobecker <brobecker@adacore.com>
7600
7601 * gdbtypes (resolve_dynamic_range): Add function description.
7602
b4b01d36
PA
76032014-06-09 Pedro Alves <palves@redhat.com>
7604
7605 * linux-nat.c (linux_child_follow_fork): Initialize status with
7606 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7607 inner block. Only pass the signal to PTRACE_DETACH if in pass
7608 state.
7609
3657956b
GB
76102014-06-09 Gary Benson <gbenson@redhat.com>
7611
7612 * common/signals.c (gdb_signal_from_host): Reorder to separate
7613 the always-available ANSI-standard signals from the signals that
7614 require checking.
7615 (do_gdb_signal_to_host): Likewise.
7616 * proc-events.c (signal_table): Likewise.
7617
c077881a
HZ
76182014-06-08 Hui Zhu <hui@codesourcery.com>
7619
7620 * common/linux-ptrace.c (linux_disable_event_reporting): New
7621 function.
7622 * common/linux-ptrace.h (linux_disable_event_reporting): New
7623 declaration.
7624 * linux-nat.c (linux_child_follow_fork): Do a single step before
7625 detach.
7626
4186eb54
KS
76272014-06-07 Keith Seitz <keiths@redhat.com>
7628
7629 Revert:
7630 PR c++/16253
7631 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7632 from symbol_matches_domain in symtab.c. All local callers
7633 of symbol_matches_domain updated.
7634 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7635 search STRUCT_DOMAIN.
7636 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7637 independently. standard_lookup will do that automatically.
7638 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7639 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7640 (cp_lookup_symbol_in_namespace): Likewise.
7641 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7642 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7643 may return a STRUCT_DOMAIN match.
7644 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7645 * cp-support.c: Include language.h.
7646 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7647 VAR_DOMAIN.
7648 * psymtab.c (match_partial_symbol): Compare the requested
7649 domain with the symbol's domain directly.
7650 (lookup_partial_symbol): Likewise.
7651 * symtab.c (lookup_symbol_in_language): Explain when/why
7652 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7653 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7654 appropriate languages.
7655 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7656 and moved to ada-lang.c
7657 (lookup_block_symbol): Explain that this function only returns
7658 symbol matching the requested DOMAIN.
7659 Compare the requested domain with the symbol's domain directly.
7660 (iterate_over_symbols): Compare the requested domain with the
7661 symbol's domain directly.
7662 * symtab.h (symbol_matches_domain): Remove.
7663
25326a28 76642014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7665
7666 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7667 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7668 (gdbscm_guile_version_is_at_least): Declare.
7669 (gdbscm_scm_string_to_int): Declare.
7670 * guile/guile.c (gdbscm_guile_major_version): New global.
7671 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7672 (guile_datadir): New static global.
7673 (gdbscm_guile_data_directory): New function.
7674 (initialize_scheme_side): Update.
7675 (misc_guile_functions): Add guile-data-directory.
7676 (initialize_gdb_module): Fetch guile version number.
7677 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7678 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7679 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7680 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7681 comments.
7682 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7683 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7684 * guile/scm-value.c (gdbscm_value_to_string): Only call
7685 scm_port_conversion_strategy if Guile version >= 2.0.6.
7686
0a770bb2 76872014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7688
7689 * main.c (print_gdb_help): Add -q and --silent.
7690
73ba372c
GB
76912014-06-06 Gary Benson <gbenson@redhat.com>
7692
7693 * common/signals.c: Remove preprocessor conditionals for
7694 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7695 SIGSEGV and SIGTERM.
7696 * proc-events.c: Likewise.
7697
c33b2f12
MM
76982014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7699
7700 * symfile.c (symfile_free_objfile): Remove restriction to
7701 OBJF_USERLOADED.
7702 * symfile-mem.c (symbol_file_add_from_memory): Call
7703 add_target_sections_of_objfile.
7704
fb934770
LC
77052014-06-05 Ludovic Courtès <ludo@gnu.org>
7706
7707 * guile/scm-value.c (gdbscm_history_append_x): Use
7708 'vlscm_get_value_smob_arg_unsafe' instead of
7709 'vlscm_scm_to_value'.
7710
6ef284bd
SM
77112014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7712
7713 PR mi/15806
7714 * utils.c (printchar): Don't escape at all if quoter is NUL.
7715 Update function documentation to clarify effect of parameter
7716 QUOTER.
7717 * remote.c (escape_buffer): Pass '\\' as the quoter to
7718 fputstrn_unfiltered.
7719 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7720 generate the output.
7721 (mi_solib_unloaded): Same.
7722
270c9937
JB
77232014-06-05 Joel Brobecker <brobecker@adacore.com>
7724
7725 * development.sh: Delete.
7726 * Makefile.in (config.status): Adjust dependency on development.sh.
7727 * configure.ac: Adjust development.sh source call.
7728 * configure: Regenerate.
7729
16f691fb
DE
77302014-06-04 Doug Evans <xdje42@gmail.com>
7731
7732 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7733 is_scheme_bkpt, spec.
7734 (bpscm_make_breakpoint_smob): Initialize new members.
7735 (gdbscm_create_breakpoint_x): Split into two ...
7736 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7737 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7738 (scheme_function breakpoint_functions): Update.
7739 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7740 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7741 register-breakpoint!.
7742
ef7cab6b
JB
77432014-06-04 Joel Brobecker <brobecker@adacorer.com>
7744
7745 PR server/17023
7746 * mem-break.c (z_type_supported): Return zero if
7747 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7748
012370f6
TT
77492014-06-04 Tom Tromey <tromey@redhat.com>
7750
7751 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7752 value_from_contents_and_address_unresolved.
7753 (ada_template_to_fixed_record_type_1): Likewise.
7754 (ada_which_variant_applies): Likewise.
7755 * value.h (value_from_contents_and_address_unresolved): Declare.
7756 * value.c (value_from_contents_and_address_unresolved): New
7757 function.
7758 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7759 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7760 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7761
92e2a17f
TT
77622014-06-04 Tom Tromey <tromey@redhat.com>
7763
7764 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7765
c0939df1
TT
77662014-06-04 Tom Tromey <tromey@redhat.com>
7767
7768 * procfs.c (procfs_attach): Make "args" const.
7769 * windows-nat.c (windows_attach): Make "args" const.
7770 * nto-procfs.c (procfs_attach): Make "args" const.
7771 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7772 * go32-nat.c (go32_attach): Make "args" const.
7773 * gnu-nat.c (gnu_attach): Make "args" const.
7774 * darwin-nat.c (darwin_attach): Make "args" const.
7775 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7776 * linux-nat.c (linux_nat_attach): Make "args" const.
7777 * remote.c (extended_remote_attach_1, extended_remote_attach):
7778 Make "args" const.
7779 * target.h (struct target_ops) <to_attach>: Make "args" const.
7780 (find_default_attach): Likewise.
7781 * utils.c (parse_pid_to_attach): Make "args" const.
7782 * utils.h (parse_pid_to_attach): Update.
7783
8eaff7cd
TT
77842014-06-04 Tom Tromey <tromey@redhat.com>
7785
7786 * target-delegates.c: Rebuild.
7787 * target.c (default_thread_address_space): New function.
7788 (target_thread_address_space): Simplify.
7789 * target.h (struct target_ops) <to_thread_address_space>: Add
7790 TARGET_DEFAULT_FUNC.
7791
1913f160
DE
77922014-06-04 Doug Evans <xdje42@gmail.com>
7793
7794 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7795
70ad5bff
MM
77962014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7797
7798 * record-btrace.c: Include event-loop.h and inf-loop.h.
7799 (record_btrace_resume_exec_dir)
7800 (record_btrace_async_inferior_event_handler)
7801 (record_btrace_handle_async_inferior_event): New.
7802 (record_btrace_open): Create async event handler.
7803 (record_btrace_close): Delete async event handler.
7804 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7805 Mark async event handler.
7806 (record_btrace_execution_direction): New.
7807 (init_record_btrace_ops): Initialize to_execution_direction.
7808
b6210538
DE
78092014-06-03 Doug Evans <xdje42@gmail.com>
7810
7811 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7812 (gdbscm_make_parameter): Ditto.
7813
a5b1fd27
DE
78142014-06-03 Doug Evans <dje@google.com>
7815
7816 * exec.c (exec_close_1): Call clear_section_table instead of
7817 resize_section_table.
7818 (clear_section_table): New function.
7819 (resize_section_table): Make static. Rename arg num_added to
7820 adjustment.
7821 * exec.h (clear_section_table): Declare.
7822 (resize_section_table): Delete.
7823 * progspace.c (release_program_space): Call clear_section_table
7824 instead of resize_section_table.
7825
0c6e92a5
SC
78262014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7827
7828 * NEWS (Python Scripting): Add entry about the new xmethods
7829 feature.
7830
883964a7
SC
78312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7832
7833 * python/py-xmethods.c: New file.
7834 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7835 (objfpy_dealloc): XDECREF on the new xmethods field.
7836 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7837 field.
7838 (objfpy_get_xmethods): New function.
7839 (objfile_getset): New entry 'xmethods'.
7840 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7841 (pspy_dealloc): XDECREF on the new xmethods field.
7842 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7843 field.
7844 (pspy_get_xmethods): New function.
7845 (pspace_getset): New entry 'xmethods'.
7846 * python/python-internal.h: Add declarations for new functions.
7847 * python/python.c (_initialize_python): Invoke
7848 gdbpy_initialize_xmethods.
7849 * python/lib/gdb/__init__.py (xmethods): New
7850 attribute.
7851 * python/lib/gdb/xmethod.py: New file.
7852 * python/lib/gdb/command/xmethods.py: New file.
7853
58992dc5
SC
78542014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7855
7856 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7857 best match method returned by find_overload_match is an xmethod.
7858 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7859 the best matching operator returned by find_overload_match is an
7860 xmethod.
7861 * valops.c: #include "extension.h".
7862 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7863 Return void. The list of matching source methods is returned in
7864 "fn_list" and a vector of matching debug method workers is
7865 returned in "xm_worker_vec". Update all callers.
7866 (value_find_oload_method_list): Likewise.
7867 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7868 non-NULL, then the index of the best matching method in this
7869 vector is returned. Update all callers.
7870 (find_overload_match): Include xmethods while performing overload
7871 resolution.
7872
e81e7f5e
SC
78732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7874
7875 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7876 * extension-priv.h (struct extension_language_ops): Add the
7877 xmethod interface.
7878 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7879 get_matching_xmethod_workers, get_xmethod_argtypes,
7880 invoke_xmethod, free_xmethod_worker,
7881 free_xmethod_worker_vec): New functions.
7882 * extension.h: #include "common/vec.h".
7883 New function declarations.
7884 (struct xmethod_worker): New struct.
7885 (VEC (xmethod_worker_ptr)): New vector type.
7886 (xmethod_worker_ptr): New typedef.
7887 (xmethod_worker_vec): Likewise.
7888 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7889 builtin_type.
7890 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7891 (struct builtin_type): New field "xmethod".
7892 * valarith.c (value_ptradd): Assert that the value argument is not
7893 lval_xcallable.
7894 * valops.c (value_must_coerce_to_target): Return 0 for
7895 lval_xcallable values.
7896 * value.c (struct value): New field XM_WORKER in the field
7897 LOCATION.
7898 (value_address, value_raw_address): Return 0 for lval_xcallable
7899 values.
7900 (set_value_address): Assert that the value is not an
7901 lval_xcallable.
7902 (value_free): Free the associated xmethod worker when freeing
7903 lval_xcallable values.
7904 (set_value_component_location): Assert that the WHOLE value is not
7905 lval_xcallable.
7906 (value_of_xmethod, call_xmethod): New functions.
7907 * value.h: Declare "struct xmethod_worker".
7908 Declare new functions value_of_xmethod, call_xmethod.
7909
ef370185
JB
79102014-06-03 Joel Brobecker <brobecker@adacore.com>
7911 Pedro Alves <palves@redhat.com>
7912
7913 PR breakpoints/17000
7914 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7915 New function, extracted from software_breakpoint_inserted_here_p.
7916 (software_breakpoint_inserted_here_p): Replace factored out code
7917 by call to find_non_raw_software_breakpoint_inserted_here.
7918 (bp_target_info_copy_insertion_state): New function.
7919 (bkpt_insert_location): Handle the case of a single-step
7920 breakpoint already inserted at the same address.
7921 (bkpt_remove_location): Handle the case of a single-step
7922 breakpoint still inserted at the same address.
7923 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7924 breakpoint already inserted at the same address.
7925 (deprecated_remove_raw_breakpoint): Handle the case of a
7926 non-raw breakpoint still inserted at the same address.
7927 (find_single_step_breakpoint): New function, extracted from
7928 single_step_breakpoint_inserted_here_p.
7929 (find_single_step_breakpoint): New function,
7930 factored out from single_step_breakpoint_inserted_here_p.
7931 (single_step_breakpoint_inserted_here_p): Reimplement.
7932
1e2ccb61
BM
79332014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7934
7935 Pushed by Joel Brobecker <brobecker@adacore.com>
7936 * source.c (show_substitute_path_command): Fix display of matching
7937 substitution rules.
7938
d3448d85
GB
79392014-06-03 Gary Benson <gbenson@redhat.com>
7940
7941 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7942
06eb1586
DE
79432014-06-02 Doug Evans <xdje42@gmail.com>
7944
7945 Add parameter support for Guile.
7946 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7947 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7948 (scm-param.o): New rule.
7949 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7950 (gdbscm_misc_error): Declare.
7951 (gdbscm_canonicalize_command_name): Declare.
7952 (gdbscm_scm_to_host_string): Declare.
7953 (gdbscm_scm_from_host_string): Declare.
7954 (gdbscm_initialize_parameters): Declare.
7955 * guile/guile.c (initialize_gdb_module): Call
7956 gdbscm_initialize_parameters.
7957 * guile/lib/gdb.scm: Export parameter symbols.
7958 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7959 cmdscm_canonicalize_name and made public. All callers updated.
7960 * guile/scm-exception.c (gdbscm_misc_error): New function.
7961 * guile/scm-param.c: New file.
7962 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7963 (gdbscm_scm_to_host_string): New function.
7964 (gdbscm_scm_from_host_string): New function.
7965 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7966
e698b8c4
DE
79672014-06-02 Doug Evans <xdje42@gmail.com>
7968
7969 Add command support for Guile.
7970 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7971 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7972 (scm-cmd.o): New rule.
7973 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7974 (gdbscm_user_error_p): Declare.
7975 (gdbscm_parse_command_name): Declare.
7976 (gdbscm_valid_command_class_p): Declare.
7977 (gdbscm_initialize_commands): Declare.
7978 * guile/guile.c (initialize_gdb_module): Call
7979 gdbscm_initialize_commands.
7980 * guile/lib/gdb.scm: Export command symbols.
7981 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7982 (throw-user-error): New function.
7983 * guile/scm-cmd.c: New file.
7984 * guile/scm-exception.c (user_error_symbol): New static global.
7985 (gdbscm_user_error_p): New function.
7986 (gdbscm_initialize_exceptions): Set user_error_symbol.
7987 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7988
fb1f94b0
PM
79892014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7990
7991 * top.c (command_loop): Handle comments here...
7992 (command_line_input): ... not here.
7993
ded03782
DE
79942014-06-02 Doug Evans <xdje42@gmail.com>
7995
7996 Add progspace support for Guile.
7997 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7998 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7999 (scm-progspace.o): New rule.
8000 * guile/guile-internal.h (pspace_smob): New typedef.
8001 (psscm_pspace_smob_pretty_printers): Declare.
8002 (psscm_pspace_smob_from_pspace): Declare.
8003 (psscm_scm_from_pspace): Declare.
8004 * guile/guile.c (initialize_gdb_module): Call
8005 gdbscm_initialize_pspaces.
8006 * guile/lib/gdb.scm: Export progspace symbols.
8007 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8008 support.
8009 (append-pretty-printer!): Ditto.
8010 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8011 Implement.
8012 * guile/scm-progspace.c: New file.
8013
397998fc
AM
80142014-06-03 Alan Modra <amodra@gmail.com>
8015
8016 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8017 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8018
6aa5f3a6
DE
80192014-06-02 Doug Evans <dje@google.com>
8020
8021 Add support for skeletonless type units.
8022 * dwarf2read.c (struct dwarf2_per_objfile): New member
8023 n_allocated_type_units.
8024 (struct dwarf2_per_objfile) <tu_stats>: New member
8025 nr_all_type_units_reallocs.
8026 (create_signatured_type_table_from_index): Initialize
8027 n_allocated_type_units
8028 (create_all_type_units): Ditto.
8029 (add_type_unit): Move up in file. New arg slot.
8030 All callers updated. Increase space for all_type_units more
8031 efficiently.
8032 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8033 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8034 (lookup_dwp_signatured_type): Ditto.
8035 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8036 All callers updated.
8037 (build_type_psymtabs_1): Leave type_unit_groups as
8038 NULL if no TUs present.
8039 (print_tu_stats): New function.
8040 (process_skeletonless_type_unit): New function.
8041 (process_dwo_file_for_skeletonless_type_units): New
8042 function.
8043 (process_skeletonless_type_units): New function.
8044 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8045 Call print tu_stats if debugging enabled.
8046
41fac0cf
PA
80472014-06-02 Pedro Alves <palves@redhat.com>
8048
8049 * breakpoint.c (build_target_command_list): Don't build a command
8050 list if we have any duplicate location that isn't a dprintf.
8051
cd1608cc
PA
80522014-06-02 Pedro Alves <palves@redhat.com>
8053
8054 * breakpoint.c (dprintf_breakpoint_hit): New function.
8055 (initialize_breakpoint_ops): Install it as dprintf's
8056 breakpoint_hit method.
8057
486ef3b9
JB
80582014-06-02 Joel Brobecker <brobecker@adacore.com>
8059
8060 * source.c (substitute_path_rule_matches): Simplify using
8061 filename_ncmp instead of FILENAME_CMP.
8062
230cd560
JB
80632014-06-02 Joel Brobecker <brobecker@adacore.com>
8064
8065 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8066
16954d5d
LC
80672014-06-01 Ludovic Courtès <ludo@gnu.org>
8068
8069 * configure.ac: When Guile is available, check for the
8070 availability of 'scm_new_smob'.
8071 * configure, config.h.in: Regenerate.
8072 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8073 function.
8074
53e8a631
AB
80752014-05-30 Andrew Burgess <aburgess@broadcom.com>
8076
8077 * frame.c (struct frame_info): Add stop_string field.
8078 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8079 (get_prev_frame_always): Old content moved into
8080 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8081 TRY_CATCH, handle MEMORY_ERROR exceptions.
8082 (frame_stop_reason_string): New function definition.
8083 * frame.h (unwind_stop_reason_to_string): Extend comment to
8084 mention frame_stop_reason_string.
8085 (frame_stop_reason_string): New function declaration.
8086 * stack.c (frame_info): Switch to frame_stop_reason_string.
8087 (backtrace_command_1): Switch to frame_stop_reason_string.
8088 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8089 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8090 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8091
70e38b8e
AB
80922014-05-30 Andrew Burgess <aburgess@broadcom.com>
8093
8094 * frame.c (frame_stop_reason_string): Rename to ...
8095 (unwind_stop_reason_to_string): this.
8096 * frame.h (frame_stop_reason_string): Rename to ...
8097 (unwind_stop_reason_to_string): this.
8098 * stack.c (frame_info): Update call to frame_stop_reason_string.
8099 (backtrace_command_1): Likewise.
8100 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8101 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8102
938f0e2f
AB
81032014-05-30 Andrew Burgess <aburgess@broadcom.com>
8104
8105 * frame.c (remove_prev_frame): New function.
8106 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8107 remove_prev_frame.
8108
a09dd441
PA
81092014-05-29 Pedro Alves <palves@redhat.com>
8110
8111 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8112 and make it const. When a single-step decays to a continue,
8113 clear 'step', not 'hw_step'. Pass whether the caller wanted
8114 to step to user_visible_resume_ptid, not what we ask the
8115 target to do.
8116
bdc36728
PA
81172014-05-29 Pedro Alves <palves@redhat.com>
8118
8119 * infrun.c (process_event_stop_test, handle_step_into_function)
8120 (handle_step_into_function_backward): Adjust.
8121 Don't set the even thread's stop_step and call stop_waiting before
8122 calling end_stepping_range. Instead do that ...
8123 (end_stepping_range): ... here. Take an ecs pointer parameter.
8124
22bcd14b
PA
81252014-05-29 Pedro Alves <palves@redhat.com>
8126
8127 * infrun.c (stop_stepping): Rename to ...
8128 (stop_waiting): ... this.
8129 (proceed): Update comment.
8130 (process_event_stop_test, handle_inferior_event)
8131 (handle_signal_stop, handle_step_into_function)
8132 (handle_step_into_function_backward): Update.
8133
4ae57c05
PA
81342014-05-29 Pedro Alves <palves@redhat.com>
8135
8136 * infcall.c (run_inferior_call): Don't check whether the current
8137 thread is running after the proceed call.
8138
329ea579
PA
81392014-05-29 Pedro Alves <palves@redhat.com>
8140 Tom Tromey <tromey@redhat.com>
8141
8142 * NEWS: Mention "maint set target-async", "set mi-async", and that
8143 background execution commands are now always available.
8144 * target.h (target_async_permitted): Update comment.
8145 * target.c (target_async_permitted, target_async_permitted_1):
8146 Default to 1.
8147 (set_target_async_command): Rename to ...
8148 (maint_set_target_async_command): ... this.
8149 (show_target_async_command): Rename to ...
8150 (maint_show_target_async_command): ... this.
8151 (_initialize_target): Adjust.
8152 * infcmd.c (prepare_execution_command): Make extern.
8153 * inferior.h (prepare_execution_command): Declare.
8154 * infrun.c (set_observer_mode): Leave target async alone.
8155 * mi/mi-interp.c (mi_interpreter_init): Install
8156 mi_on_sync_execution_done as sync_execution_done observer.
8157 (mi_on_sync_execution_done): New function.
8158 (mi_execute_command_input_handler): Don't print the prompt if we
8159 just started a synchronous command with an async target.
8160 (mi_on_resume): Check sync_execution before printing prompt.
8161 * mi/mi-main.h (mi_async_p): Declare.
8162 * mi/mi-main.c: Include gdbcmd.h.
8163 (mi_async_p): New function.
8164 (mi_async, mi_async_1): New globals.
8165 (set_mi_async_command, show_mi_async_command, mi_async): New
8166 functions.
8167 (exec_continue): Call prepare_execution_command.
8168 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8169 (mi_execute_async_cli_command): Use mi_async_p.
8170 (_initialize_mi_main): Install "set mi-async". Make
8171 "target-async" a deprecated alias.
8172
92bcb5f9
PA
81732014-05-29 Pedro Alves <palves@redhat.com>
8174
8175 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8176 (_initialize_cli_interp): Adjust.
8177 * event-loop.c: Include "observer.h".
8178 (start_event_loop): Notify 'command_error' observers instead of
8179 calling display_gdb_prompt. Remove FIXME comment.
8180 * event-top.c (display_gdb_prompt): Remove call into the
8181 interpreters.
8182 * inf-loop.c: Include "observer.h".
8183 (inferior_event_handler): Notify 'command_error' observers instead
8184 of calling display_gdb_prompt.
8185 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8186 observers instead of calling display_gdb_prompt.
8187 * interps.c (interp_set): Don't call display_gdb_prompt.
8188 (current_interp_display_prompt_p): Delete.
8189 * interps.h (interp_prompt_p): Delete declaration.
8190 (interp_prompt_p_ftype): Delete.
8191 (struct interp_procs) <prompt_proc_p>: Delete field.
8192 (current_interp_display_prompt_p): Delete declaration.
8193 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8194 (_initialize_mi_interp): Adjust.
8195 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8196 'command_error' observers.
8197 (tui_on_sync_execution_done, tui_on_command_error): New
8198 functions.
8199 (tui_display_prompt_p): Delete.
8200 (_initialize_tui_interp): Adjust.
8201
fd664c91
PA
82022014-05-29 Pedro Alves <palves@redhat.com>
8203
8204 PR gdb/13860
8205 * cli/cli-interp.c: Include infrun.h and observer.h.
8206 (cli_uiout, cli_interp): New globals.
8207 (cli_on_signal_received, cli_on_end_stepping_range)
8208 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8209 functions.
8210 (cli_interpreter_init): Install them as 'end_stepping_range',
8211 'signal_received' 'signal_exited', 'exited' and 'no_history'
8212 observers.
8213 (_initialize_cli_interp): Remove cli_interp local.
8214 * infrun.c (handle_inferior_event): Call the several stop reason
8215 observers instead of printing the stop reason directly.
8216 (end_stepping_range): New function.
8217 (print_end_stepping_range_reason, print_signal_exited_reason)
8218 (print_exited_reason, print_signal_received_reason)
8219 (print_no_history_reason): Make static, and add an uiout
8220 parameter. Print to that instead of to CURRENT_UIOUT.
8221 * infrun.h (print_end_stepping_range_reason)
8222 (print_signal_exited_reason, print_exited_reason)
8223 (print_signal_received_reason print_no_history_reason): New
8224 declarations.
8225 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8226 'mi_uiout'.
8227 <cli_uiout>: New field.
8228 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8229 uiout for CLI output. Install 'signal_received',
8230 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8231 observers.
8232 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8233 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8234 (mi_on_no_history): New functions.
8235 (ui_out_free_cleanup): Delete function.
8236 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8237 instead use the one already stored in the MI interpreter data.
8238 (mi_ui_out): Adjust.
8239 * tui/tui-interp.c: Include infrun.h and observer.h.
8240 (tui_interp): New global.
8241 (tui_on_signal_received, tui_on_end_stepping_range)
8242 (tui_on_signal_exited, tui_on_exited)
8243 (tui_on_no_history): New functions.
8244 (tui_init): Install them as 'end_stepping_range',
8245 'signal_received' 'signal_exited', 'exited' and 'no_history'
8246 observers.
8247 (_initialize_tui_interp): Delete tui_interp local.
8248
8817a6f2
PA
82492014-05-29 Pedro Alves <palves@redhat.com>
8250
8251 PR gdb/15713
8252 * linux-nat.c (linux_nat_resume_callback): Rename the second
8253 parameter to 'except'. Skip LP if it points to EXCEPT.
8254 (linux_nat_resume): Don't mark the event lwp as not stopped
8255 before resuming sibling lwps. Instead ask
8256 linux_nat_resume_callback to skip the event lwp. Mark it as not
8257 stopped after actually resuming it.
8258 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8259 resuming it.
8260 (wait_lwp): Mark the lwp as stopped here.
8261 (stop_wait_callback): Mark the lwp as not stopped right after
8262 resuming it. Don't mark lwps as stopped here.
8263 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8264 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8265
251bde03
PA
82662014-05-29 Pedro Alves <palves@redhat.com>
8267
8268 PR PR15693
8269 * infrun.c (resume): Determine how much to resume depending on
8270 whether the caller wanted a step, not whether we can hardware step
8271 the target. Mark all threads that we intend to run as running,
8272 unless we're calling an inferior function.
8273 (normal_stop): If the thread is running an infcall, don't finish
8274 thread state.
8275 * target.c (target_resume): Don't mark threads as running here.
8276
7f3c0343
JB
82772014-05-28 Joel Brobecker <brobecker@adacore.com>
8278
8279 * serial.c (_initialize_serial): Remove support for
8280 the "set remotebaud" and "show remotebaud" commands.
8281 * NEWS: Add entry documenting the removal of that command.
8282
ee34b3f9
YQ
82832014-05-28 Yao Qi <yao@codesourcery.com>
8284
8285 * charset.c: Fix typo in comments.
8286
add6c04d
GB
82872014-05-27 Gary Benson <gbenson@redhat.com>
8288
8289 * utils.c (internal_vproblem): Prompt for a bug report.
8290
92c48fc5
AW
82912014-05-26 Andy Wingo <wingo@igalia.com>
8292
8293 * guile/scm-arch.c (arscm_mark_arch_smob):
8294 * guile/scm-block.c (bkscm_mark_block_smob)
8295 (bkscm_mark_block_syms_progress_smob):
8296 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8297 * guile/scm-exception.c (exscm_mark_exception_smob):
8298 * guile/scm-frame.c (frscm_mark_frame_smob):
8299 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8300 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8301 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8302 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8303 (ppscm_mark_pretty_printer_worker_smob):
8304 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8305 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8306 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8307 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8308 mark functions.
8309 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8310 function.
8311
b2715b27
AW
83122014-05-26 Andy Wingo <wingo@igalia.com>
8313 Doug Evans <xdje42@gmail.com>
8314
8315 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8316 empty_base_class. All uses updated.
8317 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8318 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8319 Adapt all callers.
8320 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8321 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8322 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8323 (gdbscm_gsmob_has_property_p, add_property_name)
8324 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8325 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8326 (gdb-object-has-property?, gdb-object-properties): Remove.
8327 (gdb-object-kind): Renamed from gsmob-kind.
8328
214ab2da
AW
83292014-05-26 Andy Wingo <wingo@igalia.com>
8330
8331 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8332 * configure: Regenerate.
8333
589fdceb
MM
83342014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8335
8336 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8337
67b5c0c1
MM
83382014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8339
8340 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8341 (replay_memory_access_read_only, replay_memory_access_read_write)
8342 (replay_memory_access_types, replay_memory_access)
8343 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8344 (cmd_set_record_btrace, cmd_show_record_btrace)
8345 (cmd_show_replay_memory_access): New.
8346 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8347 (record_btrace_remove_breakpoint): Replace
8348 record_btrace_allow_memory_access with replay_memory_access.
8349 (_initialize_record_btrace): Add commands.
8350 * NEWS: Announce it.
8351
036cd381
RR
83522014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8353
8354 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8355
c77c1e42
RR
83562014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8357
8358 * MAINTAINERS (Write After Approval): Move self back from
8359 paper trail.
8360
45741a9c
PA
83612014-05-22 Pedro Alves <palves@redhat.com>
8362
8363 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8364 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8365 (disable_randomization, enum exec_direction_kind)
8366 (execution_direction, stop_registers, start_remote)
8367 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8368 (wait_for_inferior, normal_stop, get_last_target_status)
8369 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8370 (insert_step_resume_breakpoint_at_sal)
8371 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8372 (set_step_info, print_stop_event, signal_stop_state)
8373 (signal_print_state, signal_pass_state, signal_stop_update)
8374 (signal_print_update, signal_pass_update)
8375 (update_signals_program_target, clear_exit_convenience_vars)
8376 (displaced_step_dump_bytes, update_observer_mode)
8377 (signal_catch_update, gdb_signal_from_command): Move
8378 declarations ...
8379 * infrun.h: ... to this new file.
8380 * amd64-tdep.c: Include infrun.h.
8381 * annotate.c: Include infrun.h.
8382 * arch-utils.c: Include infrun.h.
8383 * arm-linux-tdep.c: Include infrun.h.
8384 * arm-tdep.c: Include infrun.h.
8385 * break-catch-sig.c: Include infrun.h.
8386 * breakpoint.c: Include infrun.h.
8387 * common/agent.c: Include infrun.h instead of inferior.h.
8388 * corelow.c: Include infrun.h.
8389 * event-top.c: Include infrun.h.
8390 * go32-nat.c: Include infrun.h.
8391 * i386-tdep.c: Include infrun.h.
8392 * inf-loop.c: Include infrun.h.
8393 * infcall.c: Include infrun.h.
8394 * infcmd.c: Include infrun.h.
8395 * infrun.c: Include infrun.h.
8396 * linux-fork.c: Include infrun.h.
8397 * linux-nat.c: Include infrun.h.
8398 * linux-thread-db.c: Include infrun.h.
8399 * monitor.c: Include infrun.h.
8400 * nto-tdep.c: Include infrun.h.
8401 * procfs.c: Include infrun.h.
8402 * record-btrace.c: Include infrun.h.
8403 * record-full.c: Include infrun.h.
8404 * remote-m32r-sdi.c: Include infrun.h.
8405 * remote-mips.c: Include infrun.h.
8406 * remote-notif.c: Include infrun.h.
8407 * remote-sim.c: Include infrun.h.
8408 * remote.c: Include infrun.h.
8409 * reverse.c: Include infrun.h.
8410 * rs6000-tdep.c: Include infrun.h.
8411 * s390-linux-tdep.c: Include infrun.h.
8412 * solib-irix.c: Include infrun.h.
8413 * solib-osf.c: Include infrun.h.
8414 * solib-svr4.c: Include infrun.h.
8415 * target.c: Include infrun.h.
8416 * top.c: Include infrun.h.
8417 * windows-nat.c: Include infrun.h.
8418 * mi/mi-interp.c: Include infrun.h.
8419 * mi/mi-main.c: Include infrun.h.
8420 * python/py-threadevent.c: Include infrun.h.
8421
98eb56a4
PA
84222014-05-22 Pedro Alves <palves@redhat.com>
8423
8424 * infrun.c (handle_inferior_event): Store the exit code for
8425 --return-child-result here, instead of ...
8426 (print_exited_reason): ... here.
8427
17b2616c
PA
84282014-05-21 Pedro Alves <palves@redhat.com>
8429
8430 PR gdb/13860
8431 * gdbthread.h (struct thread_control_state): New field
8432 `command_interp'.
8433 * infrun.c (follow_fork): Copy the new thread control field to the
8434 child fork thread.
8435 (clear_proceed_status_thread): Clear the new thread control field.
8436 (proceed): Set the new thread control field.
8437 * interps.h (command_interp): Declare.
8438 * interps.c (command_interpreter): New global.
8439 (command_interp): New function.
8440 (interp_exec): Set `command_interpreter' while here.
8441 * cli-out.c (cli_uiout_dtor): New function.
8442 (cli_ui_out_impl): Install it.
8443 * mi/mi-interp.c: Include cli-out.h.
8444 (mi_cmd_interpreter_exec): Add comment.
8445 (restore_current_uiout_cleanup): New function.
8446 (ui_out_free_cleanup): New function.
8447 (mi_on_normal_stop): If finishing an execution command started by
8448 a CLI command, or any kind of breakpoint-like event triggered,
8449 print the stop event to the output (CLI) stream.
8450 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8451
5166082f
PA
84522014-05-21 Pedro Alves <palves@redhat.com>
8453
8454 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8455 current source line having changed.
8456 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8457 * infrun.c (normal_stop): Adjust call to
8458 set_current_sal_from_frame.
8459 * source.c (clear_lines_listed_range): New function.
8460 (set_current_source_symtab_and_line, identify_source_line): Clear
8461 the lines listed range.
8462 (line_info): Handle the first "info line" after the current source
8463 line having changed.
8464 * stack.c (print_stack_frame): Remove center handling.
8465 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8466 center sal.line.
8467
c1ee2fb3
PA
84682014-05-21 Pedro Alves <palves@redhat.com>
8469
8470 * inf-child.c (inf_child_mourn_inferior): New function.
8471 * inf-child.h (inf_child_mourn_inferior): New declaration.
8472 * darwin-nat.c (darwin_mourn_inferior): Use
8473 inf_child_mourn_inferior.
8474 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8475 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8476 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8477 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8478 * windows-nat.c (windows_mourn_inferior): Likewise.
8479
5c6d4fb2
DE
84802014-05-21 Doug Evans <xdje42@gmail.com>
8481
250748cb 8482 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8483
4a2722c5
DE
84842014-05-21 Doug Evans <xdje42@gmail.com>
8485
17292b30 8486 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8487 (gdbscm_out_of_range_error): Ditto.
8488 (gdbscm_memory_error): Ditto.
250748cb
DE
8489 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8490 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8491 (gdbscm_out_of_range_error): Update.
8492 (gdbscm_memory_error): Update.
8493 (gdbscm_scm_to_target_string_unsafe): Delete.
8494
6a3cb8e8
PA
84952014-05-21 Pedro Alves <palves@redhat.com>
8496
8497 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8498 globals.
8499 (inf_child_open_target): New function.
8500 (inf_child_open): Use inf_child_open_target to push the target
8501 instead of erroring out.
8502 (inf_child_disconnect, inf_child_close)
8503 (inf_child_maybe_unpush_target): New functions.
8504 (inf_child_target): Install inf_child_disconnect and
8505 inf_child_close. Store a pointer to the returned object.
8506 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8507 declarations.
8508 * target.c (auto_connect_native_target): New global.
8509 (show_default_run_target): New function.
8510 (find_default_run_target): Return NULL if automatically connecting
8511 to the native target is disabled.
8512 (_initialize_target): Install set/show auto-connect-native-target.
8513 * NEWS: Mention "set auto-connect-native-target", and "target
8514 native".
8515 * linux-nat.c (super_close): New global.
8516 (linux_nat_close): Call super_close.
8517 (linux_nat_add_target): Store a pointer to the base class's
8518 to_close method.
8519 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8520 inf_child_maybe_unpush.
8521 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8522 already pushed.
8523 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8524 the inferior. Use inf_child_maybe_unpush_target.
8525 (inf_ttrace_attach): Don't push the target if it is already
8526 pushed.
8527 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8528 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8529 after mourning the inferior. Use inf_child_maybe_unpush_target.
8530 (darwin_attach_pid): Don't push the target if it is already
8531 pushed.
8532 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8533 mourning the inferior. Use inf_child_maybe_unpush_target.
8534 (gnu_detach): Use inf_child_maybe_unpush_target.
8535 * go32-nat.c (go32_create_inferior): Don't push the target if it
8536 is already pushed.
8537 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8538 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8539 (procfs_open): Rename to ...
8540 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8541 comments. Can target_preopen before changing node. Call
8542 inf_child_open_target to push the target explicitly.
8543 (procfs_attach): Don't push the target if it is already pushed.
8544 (procfs_detach): Use inf_child_maybe_unpush_target.
8545 (procfs_create_inferior): Don't push the target if it is already
8546 pushed.
8547 (nto_native_ops): New global.
8548 (procfs_open): Reimplement.
8549 (procfs_native_open): New function.
8550 (init_procfs_targets): Install procfs_native_open as to_open of
8551 "target native". Store a pointer to the "native" target in
8552 nto_native_ops.
8553 * procfs.c (procfs_attach): Don't push the target if it is already
8554 pushed.
8555 (procfs_detach): Use inf_child_maybe_unpush_target.
8556 (procfs_mourn_inferior): Only unpush the target after mourning the
8557 inferior. Use inf_child_maybe_unpush_target.
8558 (procfs_init_inferior): Don't push the target if it is already
8559 pushed.
8560 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8561 if it is already pushed.
8562
930ee1b1
PA
85632014-05-21 Pedro Alves <palves@redhat.com>
8564
8565 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8566 and "procfs" targets are now called "native" instead.
8567
1f5d1b13
PA
85682014-05-21 Pedro Alves <palves@redhat.com>
8569
8570 * go32-nat.c (go32_open): Delete.
8571 (go32_target): Don't override the to_open method.
8572
132f8e03
PA
85732014-05-21 Pedro Alves <palves@redhat.com>
8574
8575 * nto-procfs.c (procfs_can_run): New function.
8576 (nto_procfs_ops): New global.
8577 (init_procfs_targets): New, based on procfs_target. Install
8578 "target native" in addition to "target procfs".
8579 (_initialize_procfs): Call init_procfs_targets instead of adding
8580 the target here.
8581
03c136c3
PA
85822014-05-21 Pedro Alves <palves@redhat.com>
8583
8584 * windows-nat.c (windows_target): Don't override to_shortname,
8585 to_longname or to_doc.
8586
a635d0f3
PA
85872014-05-21 Pedro Alves <palves@redhat.com>
8588
8589 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8590 to_doc.
8591
4f9b5133
PA
85922014-05-21 Pedro Alves <palves@redhat.com>
8593
8594 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8595 to_shortname, to_longname or to_doc.
8596
bc85afde
PA
85972014-05-21 Pedro Alves <palves@redhat.com>
8598
8599 * go32-nat.c (go32_target): Don't override to_shortname,
8600 to_longname or to_doc.
8601
4ebfc96e
PA
86022014-05-21 Pedro Alves <palves@redhat.com>
8603
8604 * inf-child.c (inf_child_open): Remove mention of "child".
8605 (inf_child_target): Rename target to "native" instead of "child".
8606
2648dfed
AA
86072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8608
8609 * Makefile.in (SFILES): Delete "regset.c".
8610 (COMMON_OBS): Delete "regset.o".
8611 * regset.c: Remove.
8612 * regset.h (regset_alloc): Delete prototype.
8613
b13feb94
AA
86142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8615
8616 * sparc-linux-tdep.c (sparc32_linux_gregset)
8617 (sparc32_linux_fpregset): New static regset structures.
8618 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8619 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8620 'fpregset' fields.
8621 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8622 (sparc64_linux_fpregset): New static regset structures.
8623 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8624 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8625 New static regset structures.
8626 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8627 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8628 New static regset structures.
8629 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8630 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8631 New static regset structures.
8632 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8633 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8634 New static regset structures.
8635 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8636
b4fd25c9
AA
86372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8638
8639 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8640 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8641 register maps ("regmaps") from "*regset" to "*regmap". Do this
8642 for all regmap types and variables.
8643 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8644 (sparc32_linux_supply_core_gregset)
8645 (sparc32_linux_collect_core_gregset)
8646 (sparc32_linux_supply_core_fpregset)
8647 (sparc32_linux_collect_core_fpregset): Likewise.
8648 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8649 (sparc_gregmap, sparc_fpregmap): ... these.
8650 (sparc_supply_gregset, sparc_collect_gregset)
8651 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8652 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8653 (_initialize_sparc_nat): Rename regmaps.
8654 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8655 (sparc_gregmap, sparc_fpregmap): ... these.
8656 (sparc_supply_gregset, sparc_collect_gregset)
8657 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8658 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8659 Rename macros to...
8660 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8661 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8662 Likewise.
8663 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8664 Rename to...
8665 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8666 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8667 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8668 regmaps.
8669 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8670 (sparc32_bsd_fpregset): Rename to...
8671 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8672 (sparc32_bsd_fpregmap): ... these.
8673 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8674 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8675 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8676 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8677 (struct sparc_gregmap, struct sparc_fpregmap)
8678 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8679 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8680 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8681 (sparc32_supply_regset, sparc32_collect_gregset)
8682 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8683 prototypes.
8684 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8685 (sparc64_linux_ptrace_gregmap): ... this.
8686 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8687 (_initialize_sparc64_linux_nat): Rename regmaps.
8688 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8689 (sparc64_linux_core_gregmap): ... this.
8690 (sparc64_linux_supply_core_gregset)
8691 (sparc64_linux_collect_core_gregset)
8692 (sparc64_linux_supply_core_fpregset)
8693 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8694 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8695 (sparc64_sol2_fpregset): Rename to...
8696 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8697 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8698 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8699 regmaps.
8700 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8701 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8702 (sparc64_bsd_fpregset): Rename to...
8703 (struct sparc_gregmap, sparc64_sol2_gregmap)
8704 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8705 (sparc64_bsd_fpregmap): ... these.
8706 (sparc64_supply_gregset, sparc64_collect_gregset)
8707 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8708 prototypes.
8709 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8710 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8711 (sparc64fbsd_gregmap): ... this.
8712 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8713 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8714 Rename regmaps.
8715 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8716 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8717 (sparc64nbsd_collect_fpregset): Likewise.
8718 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8719 (sparc64nbsd_gregmap): ... this.
8720 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8721 regmaps.
8722 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8723 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8724 (sparc64obsd_gregmap): ... this.
8725 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8726 regmaps.
8727 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8728 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8729 (sparc32nbsd_gregmap): ... this.
8730 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8731 regmaps.
8732
8fea3224
AA
87332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8734
8735 * score-tdep.c (score7_linux_gregset): New static regset
8736 structure.
8737 (score7_linux_regset_from_core_section): Remove dynamic regset
8738 allocation.
8739 (score_gdbarch_init): Drop allocation of tdep structure.
8740 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8741
24534243
AA
87422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8743
8744 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8745 regset structures.
8746 (am33_regset_from_core_section): Remove dynamic regset
8747 allocations.
8748
b7195f27
AA
87492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8750
8751 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8752 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8753 structures.
8754 (mips_linux_regset_from_core_section): Remove dynamic regset
8755 allocations.
8756 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8757 'gregset64', 'fpregset', and 'fpregset64'.
8758 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8759 deleted tdep fields.
8760
ecc37a5a
AA
87612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8762
8763 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8764 regset structures.
8765 (amd64_regset_from_core_section): Remove dynamic regset
8766 allocations.
8767 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8768 structure.
8769 (amd64obsd_regset_from_core_section): Remove dynamic regset
8770 allocation.
8771 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8772 Likewise.
8773 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8774 x86-common regset supply function.
8775 * i386-tdep.c (i386_collect_gregset): Make static.
8776 (i386_gregset): New global regset structure.
8777 (i386_fpregset, i386_xstateregset): New static regset structures.
8778 (i386_regset_from_core_section): Remove dynamic regset
8779 allocations.
8780 (i386_gdbarch_init): Remove initialization of tdep fields
8781 'gregset', 'fpregset', and 'xstateregset'.
8782 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8783 'fpregset', and 'xstateregset'.
8784 (i386_collect_gregset): Remove prototype.
8785 (i386_gregset): New declaration.
8786 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8787 structure.
8788 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8789 allocation.
8790
b7611c43
AA
87912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8792
8793 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8794 (arm_linux_vfpregset): New static regset structures.
8795 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8796 regset structures.
8797 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8798 and 'vfpregset' fields.
8799
a069a2bd
AA
88002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8801
8802 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8803 (aarch64_linux_fpregset): New static regset structures.
8804 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8805 of regset structures.
8806 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8807 'fpregset' fields.
8808
09424cff
AA
88092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8810
8811 * regset.h (struct regset): Remove gdbarch field.
8812 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8813 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8814 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8815 Likewise.
8816 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8817 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8818 (ppc32_linux_vsxregset): Likewise.
8819 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8820 via the regcache instead of the regset.
8821 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8822 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8823 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8824 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8825 Likewise.
8826
3ca7dae4
AA
88272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8828
8829 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8830 Constify structures.
8831 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8832 (alphanbsd_aout_gregset): Likewise.
8833 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8834 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8835 Likewise.
8836 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8837 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8838 Likewise.
8839 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8840 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8841 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8842 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8843 * m88k-tdep.c (m88k_gregset): Likewise.
8844 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8845 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8846 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8847 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8848 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8849 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8850 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8851 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8852 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8853 Likewise.
8854 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8855 * sh-tdep.h (sh_corefile_gregset): Likewise.
8856 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8857 * vax-tdep.c (vax_gregset): Likewise.
8858
5876f503
JK
88592014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8860
8861 Fix TLS access for -static -pthread.
8862 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8863 (try_thread_db_load_1): Initialize it.
8864 (thread_db_get_thread_local_address): Call it if LM is zero.
8865 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8866 * target.h (struct target_ops) (to_get_thread_local_address): Add
8867 load_module_addr comment.
8868
0256a6ac
PA
88692014-05-21 Pedro Alves <palves@redhat.com>
8870
8871 * dcache.c (dcache_read_memory_partial): If reading the cache line
8872 fails, fallback to reading just the memory the caller wanted.
8873
227533ac
DE
88742014-05-20 Doug Evans <dje@google.com>
8875
8876 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8877 instead of get_current_arch.
8878
936d2992
PA
88792014-05-20 Pedro Alves <palves@redhat.com>
8880
8881 * NEWS: Mention that compare-sections now works with all targets.
8882
8883 * remote.c (PACKET_qCRC): New enum value.
8884 (remote_verify_memory): Don't send qCRC if the target has no
8885 execution. Use packet_support/packet_ok. If the target doesn't
8886 support the qCRC packet, fallback to a deep memory copy.
8887 (compare_sections_command): Say "target image" instead of "remote
8888 executable".
8889 (_initialize_remote): Add PACKET_qCRC to the list of config
8890 packets that have no associated command. Extend comment.
8891 * target.c (simple_verify_memory, default_verify_memory): New
8892 function.
8893 * target.h (struct target_ops) <to_verify_memory>: Default to
8894 default_verify_memory.
8895 (simple_verify_memory): New declaration.
8896 * target-delegates.c: Regenerate.
8897
e59fa00f
MM
88982014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8899
8900 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8901
f2205de0
HZ
89022014-05-20 Hui Zhu <hui@codesourcery.com>
8903 Yao Qi <yao@codesourcery.com>
8904
8905 PR backtrace/16558
8906 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8907 and change address of sp and pc.
8908
c4e54771
TT
89092014-05-19 Tom Tromey <tromey@redhat.com>
8910
8911 * gdbtypes.c (rank_function): Use XNEWVEC.
8912 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8913
73051182
DE
89142014-05-19 Doug Evans <dje@google.com>
8915
8916 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8917 build_type_unit_groups and moved closer to only caller. Remove
8918 arguments. All references updated. Remove outdated .gdb_index
8919 comment.
8920 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8921 build_type_psymtabs_1.
8922
8832e7e3
DE
89232014-05-19 Doug Evans <dje@google.com>
8924
8925 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8926 n_type_unit_groups, all_type_unit_groups. All uses removed.
8927 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8928 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8929 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8930 (add_type_unit_group_to_table): Delete.
8931
cd8ae15e
DE
89322014-05-19 Doug Evans <dje@google.com>
8933
8934 * eval.c (evaluate_subexp_standard): Add some comments.
8935
08f4850b
DE
89362014-05-17 Doug Evans <xdje42@gmail.com>
8937
8938 * progspace.c (remove_program_space): Delete, unused.
8939 * progspace.h (remove_program_space): Ditto.
8940
bed8455c
DE
89412014-05-17 Doug Evans <xdje42@gmail.com>
8942
8943 * inferior.c (prune_inferiors): Fix comment.
8944 (remove_inferior_command): Call prune_program_spaces.
8945
8d551b02
DE
89462014-05-16 Doug Evans <dje@google.com>
8947
8948 New command line option -D.
8949 * NEWS: Mention it.
8950 * main.c (set_gdb_data_directory): New function.
8951 (captured_main): Recognize -D. Flag error for --data-directory "".
8952 Call set_gdb_data_directory.
8953 (print_gdb_help): Print --data-directory, -D.
8954 * main.h (set_gdb_data_directory): Declare.
8955 * top.c (staged_gdb_datadir): New static global.
8956 (set_gdb_datadir): Call set_gdb_data_directory
8957 (show_gdb_datadir): New function.
8958 (init_main): Update init of data-directory parameter.
8959
18848e28
GF
89602014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8961
8962 Import the "dirfd" gnulib module.
8963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8964 * gnulib/aclocal.m4: Update.
8965 * gnulib/config.in: Update.
8966 * gnulib/configure: Update.
8967 * gnulib/import/Makefile.am: Update.
8968 * gnulib/import/Makefile.in: Update.
8969 * gnulib/import/dirfd.c: New.
8970 * gnulib/import/m4/dirfd.m4: New.
8971 * gnulib/import/m4/gnulib-cache.m4: Update.
8972 * gnulib/import/m4/gnulib-comp.m4: Update.
8973
95c64f92
YQ
89742014-05-16 Pierre Muller <muller@sourceware.org>
8975 Yao Qi <yao@codesourcery.com>
8976
8977 * valprint.c (print_wchar): Move the code on checking whether
8978 W is a printable wide char to the default branch of switch
8979 statement below. Call wchar_printable instead of gdb_iswprint.
8980
cac395ea
TM
89812014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8982
19679eca 8983 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8984 ldr.w and ldrd instructions.
8985
83655187
DE
89862014-05-15 Doug Evans <dje@google.com>
8987
8988 * dwarf2read.c (read_structure_type): Delete outdated comments.
8989
dd756689
TT
89902014-05-14 Tom Tromey <tromey@redhat.com>
8991
8992 * macrocmd.c (print_macro_definition): Reindent.
8993
75ddda77
DE
89942014-05-13 Doug Evans <xdje42@gmail.com>
8995
8996 * python/py-cmd.c (cmdpy_completer): Add comment.
8997 (completers): Make const.
8998
b0f16a3e
SM
89992014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9000
9001 * infrun.c (resume): Remove should_resume (unused). Move up
9002 declaration of resume_ptid.
9003
033c3379
TT
90042014-05-13 Tom Tromey <tromey@redhat.com>
9005
9006 * language.h (unop_type_check): Remove.
9007 (binop_type_check): Don't declare.
9008
9b44a3a5
AA
90092014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9010
9011 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9012 call to regcache_raw_collect.
9013
303a33fa
SM
90142014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9015
9016 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9017 mi_console->quote as the quoting character.
9018
196100a0
SM
90192014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9020
9021 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9022
f989a1c8
TT
90232014-04-29 Tom Tromey <tromey@redhat.com>
9024
9025 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9026 "show debug varobj".
9027
9404b58f
KM
90282014-05-07 Kyle McMartin <kyle@redhat.com>
9029
9030 Pushed by Joel Brobecker <brobecker@adacore.com>.
9031 * aarch64-tdep.c (aarch64_software_single_step): New function.
9032 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9033 with aarch64_software_single_step.
9034
5e49ba57
JB
90352014-05-05 Joel Brobecker <brobecker@adacore.com>
9036
9037 GDB 7.7.1 released.
9038
c888a17d
KS
90392014-05-05 Keith Seitz <keiths@redhat.com>
9040
9041 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9042 variable or history value is successfully parsed.
9043
290a839c
YQ
90442014-05-05 Yao Qi <yao@codesourcery.com>
9045 Pedro Alves <palves@redhat.com>
9046
9047 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9048 address of blocks that intersects the requested range. Trim
9049 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9050 sections.
9051 * ctf.c (ctf_xfer_partial): Likewise.
9052
91256dc2
YQ
90532014-05-05 Yao Qi <yao@codesourcery.com>
9054
9055 * printcmd.c (display_command): Remove the check to
9056 target_has_execution.
9057
07284463
MK
90582014-05-03 Mark Kettenis <kettenis@gnu.org>
9059
9060 * ppcobsd-nat.c: Include "obsd-nat.h".
9061 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9062 add_target.
9063 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9064
30a1e6cc
SDJ
90652014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9066
9067 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9068 and 16-bit signed and unsigned arguments. Update comment.
9069 (stap_parse_probe_arguments): Extend code to handle such
9070 arguments. Use warning instead of complaint to notify about
9071 unrecognized bitness.
9072
f33da99a
SDJ
90732014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9074
9075 PR breakpoints/16889
9076 * stap-probe.c (stap_parse_probe_arguments): Simplify
9077 check for non-prefixed probes (i.e., probes whose
9078 arguments do not start with "N@"). Always set the
9079 argument type to a sane value.
9080
95cf3b38
DT
90812014-05-01 David Taylor <dtaylor@emc.com>
9082
9083 * remote.c (compare_sections_command): Add -r option to compare
9084 all loadable read-only sections.
9085
1cfdf534
SC
90862014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9087
9088 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9089 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9090 Update all callers.
9091 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9092 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9093 Remove unused CORE_ADDR argument. Update all callers.
9094
ca4f7f8b
PA
90952014-04-29 Pedro Alves <palves@redhat.com>
9096
9097 * remote.c (struct packet_config) <detect>: Extend comment.
9098 (add_packet_config_cmd): Don't set the config's detect or support
9099 fields here.
9100 (init_all_packet_configs): Also initialize the config's 'detect'
9101 field.
9102 (reset_all_packet_configs_support): New function.
9103 (remote_open_1): Call reset_all_packet_configs_support instead of
9104 init_all_packet_configs.
9105 (_initialize_remote): Initialize all packet configs. Assert that
9106 all packets have an associated command, except a few known
9107 outliers.
9108
11c1ba78
JB
91092014-04-28 Joel Brobecker <brobecker@adacore.com>
9110
9111 * dwarf2read.c (read_subrange_type): Handle dynamic
9112 DW_AT_lower_bound attributes.
9113
8739bc53
JB
91142014-04-28 Joel Brobecker <brobecker@adacore.com>
9115
9116 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9117 dynamic bounds before computing its upper bound.
9118 (ada_discrete_type_low_bound): Same as above with the lower bound.
9119
6f8a3220
JB
91202014-04-28 Joel Brobecker <brobecker@adacore.com>
9121
9122 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9123 range types. Adjust the array handling implementation to
9124 take advantage of this change.
9125 (resolve_dynamic_range): New function, mostly extracted from
9126 resolve_dynamic_bounds.
9127 (resolve_dynamic_array): New function, mostly extracted from
9128 resolve_dynamic_bounds.
9129 (resolve_dynamic_bounds): Delete.
9130 (resolve_dynamic_type): Reimplement. Add handling of
9131 TYPE_CODE_RANGE types.
9132
4d072ce4
JB
91332014-04-28 Joel Brobecker <brobecker@adacore.com>
9134
9135 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9136 handling of parallel ___XA types.
9137
52865325
JB
91382014-04-28 Joel Brobecker <brobecker@adacore.com>
9139
9140 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9141 unnecessary second call to static_unwrap_type.
9142
433e77fa
HZ
91432014-04-27 Hui Zhu <hui@codesourcery.com>
9144
9145 * stack.c (print_frame_info): Call do_gdb_disassembly with
9146 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9147
b51a69ee
DE
91482014-04-26 Doug Evans <xdje42@gmail.com>
9149
9150 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9151
7ae1a6a6
PA
91522014-04-25 Pedro Alves <palves@redhat.com>
9153
9154 PR server/16255
9155 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9156 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9157 and newline from built string.
9158 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9159 (linux_ptrace_attach_fail_reason): ... this.
9160 * linux-nat.c (linux_nat_attach): Adjust to use
9161 linux_ptrace_attach_fail_reason.
9162
4082afcc
PA
91632014-04-25 Pedro Alves <palves@redhat.com>
9164
9165 * remote.c (struct remote_state): Remove multi_process_aware,
9166 non_stop_aware, cond_tracepoints, cond_breakpoints,
9167 breakpoint_commands, fast_tracepoints, static_tracepoints,
9168 install_in_trace, disconnected_tracing,
9169 enable_disable_tracepoints, string_tracing, and
9170 augmented_libraries_svr4_read fields.
9171 (remote_multi_process_p): Move further below in the file.
9172 (struct packet_config): Add comments.
9173 (update_packet_config): Delete function.
9174 (show_packet_config_cmd): Use packet_config_support.
9175 (add_packet_config_cmd): Use NULL as set callback.
9176 (packet_ok): "set remote foo-packet"-style commands no longer
9177 change config->supported -- adjust.
9178 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9179 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9180 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9181 (PACKET_QNonStop, PACKET_multiprocess_feature)
9182 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9183 (PACKET_DisconnectedTracing_feature)
9184 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9185 (set_remote_protocol_packet_cmd): Delete function.
9186 (packet_config_support, packet_support): New functions.
9187 (set_remote_protocol_Z_packet_cmd): Don't call
9188 update_packet_config.
9189 (remote_query_attached, remote_pass_signals)
9190 (remote_program_signals, remote_threads_info)
9191 (remote_threads_extra_info, remote_start_remote): Use
9192 packet_support.
9193 (remote_start_remote): Use packet_config_support and
9194 packet_support.
9195 (init_all_packet_configs): Set all packets to unknown support,
9196 instead of calling update_packet_config.
9197 (remote_check_symbols): Use packet_support.
9198 (remote_supported_packet): Unconditionally set the packet config's
9199 support status.
9200 (remote_multi_process_feature, remote_non_stop_feature)
9201 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9202 (remote_breakpoint_commands_feature)
9203 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9204 (remote_install_in_trace_feature)
9205 (remote_disconnected_tracing_feature)
9206 (remote_enable_disable_tracepoint_feature)
9207 (remote_string_tracing_feature)
9208 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9209 (remote_protocol_features): Adjust to use remote_supported_packet
9210 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9211 "ConditionalTracepoints", "ConditionalBreakpoints",
9212 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9213 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9214 "EnableDisableTracepoints", and "tracenz".
9215 (remote_query_supported): Use packet_support.
9216 (remote_open_1): Adjust.
9217 (extended_remote_attach_1): Use packet_support. Switch on the
9218 result of packet_ok instead of checking whether the packet ended
9219 up disabled.
9220 (remote_vcont_resume): Use packet_support.
9221 (remote_resume, remote_stop_ns, fetch_register_using_p)
9222 (remote_prepare_to_store, store_register_using_P)
9223 (check_binary_download, remote_write_bytes): Use packet_support.
9224 (remote_vkill): Use packet_support. Switch on the result of
9225 packet_ok instead of checking whether the packet ended up
9226 disabled.
9227 (extended_remote_supports_disable_randomization): Use
9228 packet_support.
9229 (extended_remote_run): Switch on the result of packet_ok instead
9230 of checking whether the packet ended up disabled.
9231 (remote_insert_breakpoint, remote_remove_breakpoint)
9232 (remote_insert_watchpoint, remote_remove_watchpoint)
9233 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9234 packet_support.
9235 (remote_search_memory): Use packet_config_support.
9236 (remote_get_thread_local_address, remote_get_tib_address)
9237 (remote_hostio_send_command, remote_can_execute_reverse): Use
9238 packet_support.
9239 (remote_supports_cond_tracepoints)
9240 (remote_supports_cond_breakpoints)
9241 (remote_supports_fast_tracepoints)
9242 (remote_supports_static_tracepoints)
9243 (remote_supports_install_in_trace)
9244 (remote_supports_enable_disable_tracepoint)
9245 (remote_supports_string_tracing)
9246 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9247 the packet config says the feature is enabled or disabled.
9248 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9249 (remote_get_trace_status): Use packet_support.
9250 (remote_set_disconnected_tracing): Adjust to check whether the
9251 feature is enabled with packet_support.
9252 (remote_set_trace_buffer_size, remote_use_agent)
9253 (remote_can_use_agent, remote_supports_btrace): Use
9254 packet_support.
9255 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9256 Use packet_config_support.
9257 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9258 the packet config says the feature is enabled or disabled.
9259 (set_range_stepping): Use packet_support.
9260
bdb52a22
TT
92612014-04-25 Tom Tromey <tromey@redhat.com>
9262
9263 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9264 argument.
9265
e9475ead
SA
92662014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9267
9268 * NEWS: Mention support for C99 variable length arrays.
9269
82eacd52
JB
92702014-04-24 Joel Brobecker <brobecker@adacore.com>
9271
9272 * ada-lang.c (standard_exc): Expand introductory comment.
9273
01f9f808
MS
92742014-04-24 Michael Sturm <michael.sturm@mintel.com>
9275 Walfred Tedeschi <walfred.tedeschi@intel.com>
9276
9277 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9278 AVX512 registers.
9279 (amd64_linux_read_description): Add code to handle AVX512 xstate
9280 mask and return respective tdesc.
9281 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9282 and features/i386/x32-avx512-linux.c.
9283 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9284 (amd64_linux_core_read_description): Add code to handle AVX512
9285 xstate mask and return respective tdesc.
9286 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9287 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9288 calculation.
9289 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9290 (tdesc_amd64_avx512_linux): New prototype.
9291 (tdesc_x32_avx512_linux): Likewise.
9292 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9293 features/i386/x32-avx512.c.
9294 (amd64_ymm_avx512_names): New register names for pseudo
9295 registers YMM16-31.
9296 (amd64_ymmh_avx512_names): New register names for raw registers
9297 YMMH16-31.
9298 (amd64_k_names): New register names for K registers.
9299 (amd64_zmmh_names): New register names for ZMM raw registers.
9300 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9301 (amd64_xmm_avx512_names): New register names for XMM16-31
9302 registers.
9303 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9304 registers.
9305 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9306 if feature is present.
9307 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9308 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9309 (AMD64_NUM_REGS): Adjust to new number of registers.
9310 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9311 registers supplied via XSTATE by AVX512 registers.
9312 (i386_linux_read_description): Add case for AVX512.
9313 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9314 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9315 (i386_linux_core_read_description): Add case for AVX512.
9316 (i386_linux_init_abi): Install supported register note section
9317 for AVX512.
9318 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9319 AVX512.
9320 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9321 registers to be number of zmm7h + 1.
9322 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9323 * i386-tdep.c: Include features/i386/i386-avx512.c.
9324 (i386_zmm_names): Add ZMM pseudo register names array.
9325 (i386_zmmh_names): Add ZMM raw register names array.
9326 (i386_k_names): Add K raw register names array.
9327 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9328 registers. AVX512 has 16 more ZMM registers than there are YMM
9329 registers.
9330 (i386_zmmh_regnum_p): Add function to look up register number of
9331 ZMM raw registers.
9332 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9333 (i386_k_regnum_p): Likewise for K raw registers.
9334 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9335 registers added by AVX512.
9336 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9337 registers added by AVX512.
9338 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9339 added by AVX512.
9340 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9341 (i386_pseudo_register_name): Add ZMM pseudo registers.
9342 (i386_zmm_type): Construct and return vector registers type for ZMM
9343 registers.
9344 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9345 ZMM0-31 pseudo registers and K registers.
9346 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9347 and YMM16-31 registers from register cache.
9348 (i386_pseudo_register_write): Add code to write K, ZMM and
9349 YMM16-31 registers.
9350 (i386_register_reggroup_p): Add code to include/exclude AVX512
9351 registers in/from respective register groups.
9352 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9353 registers if feature is present in xcr0.
9354 (i386_gdbarch_init): Add code to initialize AVX512 feature
9355 variables in tdep structure, wire in pseudo registers and call
9356 initialize_tdesc_i386_avx512.
9357 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9358 variables.
9359 (i386_regnum): Add AVX512 registers.
9360 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9361 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9362 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9363 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9364 512 bits wide.
9365 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9366 (i386_ymm_avx512_regnum_p): Likewise.
9367 (i386_k_regnum_p): Likewise.
9368 (i386_zmm_regnum_p): Likewise.
9369 (i386_zmmh_regnum_p): Likewise.
9370 * i387-tdep.c : Update year in copyright notice.
9371 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9372 XSAVE buffer.
9373 (XSAVE_YMM_AVX512_ADDR): New macro.
9374 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9375 XSAVE buffer.
9376 (XSAVE_XMM_AVX512_ADDR): New macro.
9377 (xsave_avx512_k_offset): New table for K register offsets in
9378 XSAVE buffer.
9379 (XSAVE_AVX512_K_ADDR): New macro.
9380 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9381 in XSAVE buffer.
9382 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9383 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9384 buffer.
9385 (i387_collect_xsave): Add code to collect AVX512 registers from
9386 XSAVE buffer.
9387 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9388 of XMM16-31 registers.
9389 (I387_NUM_K_REGS): New define for number of K registers.
9390 (I387_K0_REGNUM): New define for K0 register number.
9391 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9392 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9393 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9394 registers.
9395 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9396 (I387_XMM16_REGNUM): New define for XMM16 register number.
9397 (I387_YMM0_REGNUM): New define for YMM0 register number.
9398 (I387_KEND_REGNUM): New define for last K register number.
9399 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9400 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9401 number.
9402 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9403 number.
9404 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9405 size.
9406 * features/Makefile: Add AVX512 related files.
9407 * features/i386/32bit-avx512.xml: New file.
9408 * features/i386/64bit-avx512.xml: Likewise.
9409 * features/i386/amd64-avx512-linux.c: Likewise.
9410 * features/i386/amd64-avx512-linux.xml: Likewise.
9411 * features/i386/amd64-avx512.c: Likewise.
9412 * features/i386/amd64-avx512.xml: Likewise.
9413 * features/i386/i386-avx512-linux.c: Likewise.
9414 * features/i386/i386-avx512-linux.xml: Likewise.
9415 * features/i386/i386-avx512.c: Likewise.
9416 * features/i386/i386-avx512.xml: Likewise.
9417 * features/i386/x32-avx512-linux.c: Likewise.
9418 * features/i386/x32-avx512-linux.xml: Likewise.
9419 * features/i386/x32-avx512.c: Likewise.
9420 * features/i386/x32-avx512.xml: Likewise.
9421 * regformats/i386/amd64-avx512-linux.dat: New file.
9422 * regformats/i386/amd64-avx512.dat: Likewise.
9423 * regformats/i386/i386-avx512-linux.dat: Likewise.
9424 * regformats/i386/i386-avx512.dat: Likewise.
9425 * regformats/i386/x32-avx512-linux.dat: Likewise.
9426 * regformats/i386/x32-avx512.dat: Likewise.
9427 * NEWS: Add note about new support for AVX512.
9428
9429
08351840
PA
94302014-04-23 Pedro Alves <palves@redhat.com>
9431
9432 * breakpoint.c (insert_bp_location): Tolerate errors if the
9433 breakpoint is set in a user-loaded objfile.
9434 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9435 location is marked shlib_disabled. If the breakpoint is set in a
9436 user-loaded objfile is a GDB-side memory breakpoint, validate it
9437 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9438 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9439 flag.
9440 * mem-break.c (memory_validate_breakpoint): New function.
9441 * objfiles.c (userloaded_objfile_contains_address_p): New
9442 function.
9443 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9444 * target.h (memory_validate_breakpoint): New declaration.
9445
076855f9
PA
94462014-04-23 Pedro Alves <palves@redhat.com>
9447
9448 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9449 the breakpoint is set in a shared library, only suppress
9450 errors for software breakpoints, not hardware breakpoints.
9451
483805cf
PA
94522014-04-22 Pedro Alves <palves@redhat.com>
9453
9454 * infrun.c (schedlock_applies): New function, factored out from
9455 find_thread_needs_step_over.
9456 (find_thread_needs_step_over): Use it.
9457 (switch_back_to_stepped_thread): Always clear trap_expected if the
9458 step over is finished. Return early if scheduler locking applies.
9459 Look for the stepping thread and a potential step-over thread with
9460 a single loop.
9461 (currently_stepping_or_nexting_callback): Delete.
9462
a75fef0e
NC
94632014-04-22 Nick Clifton <nickc@redhat.com>
9464
9465 * NEWS: Mention that ARM sim now supports tracing.
9466
48b6e87e
YQ
94672014-04-22 Yao Qi <yao@codesourcery.com>
9468
9469 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9470 to ...
9471 * tracefile.c (tracefile_fetch_registers): ... it. New
9472 function.
9473 * tracefile.h (tracefile_fetch_registers): Declare.
9474 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9475 tracefile_fetch_registers.
9476
17617f2d
EZ
94772014-04-19 Eli Zaretskii <eliz@gnu.org>
9478
9479 PR gdb/14018
9480 * windows-nat.c (thread_rec): Don't display a warning when
9481 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9482 fails for any reason, set th->suspended to -1, so that we don't
9483 try to resume such a thread. Also, don't return NULL in these
9484 cases, to avoid completely ruin the session due to "PC register is
9485 not available" error.
9486 (do_windows_fetch_inferior_registers): Check errors in
9487 GetThreadContext call.
9488 (windows_continue): Accept an additional argument KILLED; if not
9489 zero, ignore errors in the SetThreadContext call, since the
9490 inferior was killed and is shutting down.
9491 (windows_resume, get_windows_debug_event)
9492 (windows_create_inferior, windows_mourn_inferior)
9493 (windows_kill_inferior): All callers of windows_continue changed
9494 to adjust to its new calling sequence.
9495
5723a6fd
YQ
94962014-04-19 Yao Qi <yao@codesourcery.com>
9497
9498 * ctf.c (ctf_open): Call post_create_inferior.
9499
614d5099
YQ
95002014-04-19 Yao Qi <yao@codesourcery.com>
9501
9502 * ctf.c (handle_id): New static variable.
9503 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9504 value. Get the declaration of event "register" and get length
9505 of field "contents".
9506
dac3e710
YQ
95072014-04-19 Yao Qi <yao@codesourcery.com>
9508
9509 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9510
2bca57ba
SC
95112014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9512
9513 * valops.c (oload_method_static): Remove unnecessary argument
9514 METHOD. Update all callers.
9515
51d48146
PA
95162014-04-18 Pedro alves <palves@redhat.com>
9517 Tom Tromey <tromey@redhat.com>
9518
9519 PR backtrace/15558
9520 * frame.c (get_prev_frame_1): Rename to ...
9521 (get_prev_frame_always): ... this, and make extern. Adjust.
9522 (skip_artificial_frames): Use get_prev_frame_always.
9523 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9524 (get_frame_unwind_stop_reason): Adjust to rename.
9525 * frame.h (get_prev_frame_always): Declare.
9526 * inline-frame.c: Include frame.h.
9527 (inline_frame_this_id): Use get_prev_frame_always.
9528
1bdad2e0
TG
95292014-04-18 Tristan Gingold <gingold@adacore.com>
9530
9531 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9532 code by using bfd_mach_o_get_base_address.
9533
7ce16bd4
UW
95342014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9535
9536 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9537 (spu_ax_pseudo_register_collect): New function.
9538 (spu_ax_pseudo_register_push_stack): Likewise.
9539 (spu_dwarf_reg_to_regnum): Likewise.
9540 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9541
2ed3c037
UW
95422014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9543
9544 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9545 Replace FRAME argument with FRAME_ID.
9546 * gdbarch.c, gdbarch.h: Regenerate.
9547 * findvar.c (default_value_from_register): Add GDBARCH argument;
9548 replace FRAME by FRAME_ID. No longer call get_frame_id.
9549 (value_from_register): Update call to gdbarch_value_from_register.
9550 * value.h (default_value_from_register): Update prototype.
9551 * s390-linux-tdep.c (s390_value_from_register): Update interface
9552 and call to default_value_from_register.
9553 * spu-tdep.c (spu_value_from_register): Likewise.
9554
9555 * findvar.c (address_from_register): Remove TYPE argument.
9556 Do not call value_from_register; use gdbarch_value_from_register
9557 with null_frame_id instead.
9558 * value.h (address_from_register): Update prototype.
9559 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9560 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9561 address_from_register interface change.
9562
71e50e83
YQ
95632014-04-17 Yao Qi <yao@codesourcery.com>
9564
9565 * gdbtypes.h: Update comments to link to types and macros'
9566 definitions.
9567
7a23c549
SC
95682014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9569
9570 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9571
22869d73
KS
95722014-04-16 Keith Seitz <keiths@redhat.com>
9573
9574 PR gdb/15827
9575 * dwarf2read.c (skip_one_die): Check that all relative-offset
9576 sibling DIEs fall within range of the current reader's buffer.
9577 (read_partial_die): Likewise.
9578
c4f87ca6
KS
95792014-04-16 Keith Seitz <keiths@redhat.com>
9580
9581 PR c++/16597
9582 * cp-namespace.c (lookup_symbol_file): If the type name of
9583 `this' is NULL, return immediately.
9584
b50c8614
KS
95852014-04-14 Keith Seitz <keiths@redhat.com>
9586
9587 PR c++/16253
9588 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9589 from symbol_matches_domain in symtab.c. All local callers
9590 of symbol_matches_domain updated.
9591 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9592 search STRUCT_DOMAIN.
9593 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9594 independently. standard_lookup will do that automatically.
9595 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9596 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9597 (cp_lookup_symbol_in_namespace): Likewise.
9598 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9599 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9600 may return a STRUCT_DOMAIN match.
9601 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9602 * cp-support.c: Include language.h.
9603 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9604 VAR_DOMAIN.
9605 * psymtab.c (match_partial_symbol): Compare the requested
9606 domain with the symbol's domain directly.
9607 (lookup_partial_symbol): Likewise.
9608 * symtab.c (lookup_symbol_in_language): Explain when/why
9609 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9610 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9611 appropriate languages.
9612 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9613 and moved to ada-lang.c
9614 (lookup_block_symbol): Explain that this function only returns
9615 symbol matching the requested DOMAIN.
9616 Compare the requested domain with the symbol's domain directly.
9617 (iterate_over_symbols): Compare the requested domain with the
9618 symbol's domain directly.
9619 * symtab.h (symbol_matches_domain): Remove.
9620
3d567982
TT
96212014-04-14 Tom Tromey <tromey@redhat.com>
9622
9623 PR c++/15246:
9624 * c-exp.y (type_aggregate_p): New function.
9625 (qualified_name, classify_inner_name): Use it.
9626 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9627 and TYPE_TARGET_TYPE of an enum type.
9628 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9629 an enum type.
9630 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9631 handle TYPE_DECLARED_CLASS.
9632 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9633 types.
9634 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9635 * valops.c (enum_constant_from_type): New function.
9636 (value_aggregate_elt): Use it.
9637 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9638 TYPE_CODE_ENUM.
9639
c848d642
TT
96402014-04-14 Tom Tromey <tromey@redhat.com>
9641
9642 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9643 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9644 const.
9645 * value.h (value_aggregate_elt): Update.
9646
0626fc76
TT
96472014-04-14 Tom Tromey <tromey@redhat.com>
9648
9649 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9650
5ecaaa66
SA
96512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9652
9653 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9654 (evaluate_subexp_standard): Pass noside argument.
9655 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9656 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9657 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9658 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9659 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9660
1612e0c0
SA
96612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9662
9663 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9664 points to a constant blob.
9665
c451ebe5
SA
96662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9667
9668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9669 property and store it as the high bound and flag the range accordingly.
9670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9672 * gdbtypes.h (enum range_flags): New enum.
9673 (struct range_bounds): Add flags member.
9674
1d42e4c4
SA
96752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9676
9677 * c-typeprint.c (c_type_print_varspec_suffix): Added
9678 check for not yet resolved high bound. If unresolved, print
9679 "variable length" string to the console instead of random
9680 length.
9681
9f1f738a
SA
96822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9683
9684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9685 value.
9686 (ada_template_to_fixed_record_type_1): Likewise.
9687 (ada_to_fixed_type_1): Likewise.
9688 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9689 (cp_print_value): Likewise.
9690 * d-valprint.c (dynamic_array_type): Likewise.
9691 * findvar.c (address_of_variable): Likewise.
9692 * jv-valprint.c (java_value_print): Likewise.
9693 * valops.c (value_ind): Likewise.
9694 * value.c (coerce_ref): Likewise.
9695
3c8452d4
SA
96962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9697
9698 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9699 value and retrieve the dynamic type size.
9700
4ad88275
SA
97012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9702
9703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9704 passed to sizeof is dynamic evaluate the argument to compute the length.
9705
80180f79
SA
97062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9707 Joel Brobecker <brobecker@adacore.com>
9708
9709 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9710 (dwarf2_evaluate_property): New function.
9711 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9712 * dwarf2read.c (attr_to_dynamic_prop): New function.
9713 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9714 attribute.
9715 * gdbtypes.c: Include dwarf2loc.h.
9716 (is_dynamic_type): New function.
9717 (resolve_dynamic_type): New function.
9718 (resolve_dynamic_bounds): New function.
9719 (get_type_length): New function.
9720 (check_typedef): Use get_type_length to compute type length.
9721 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9722 (TYPE_LOW_BOUND_KIND): New macro.
9723 (is_dynamic_type): New function prototype.
9724 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9725 to resolve dynamic properties of the type. Update comment.
9726 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9727
a1556843
RH
97282014-04-14 Richard Henderson <rth@redhat.com>
9729
9730 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9731
0be03e84
DE
97322014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9733 Doug Evans <xdje42@gmail.com>
9734
9735 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9736 dereference TYPE_CODE_REF values.
9737
6b662e19
JB
97382014-04-11 Joel Brobecker <brobecker@adacore.com>
9739
9740 Revert the following changes due to regressions:
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
9761 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9762 passed to sizeof is dynamic evaluate the argument to compute the length.
9763
9764 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9765 value and retrieve the dynamic type size.
9766
9767 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9768 (ada_template_to_fixed_record_type_1): Likewise.
9769 (ada_to_fixed_type_1): Likewise.
9770 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9771 (cp_print_value): Likewise.
9772 * d-valprint.c (dynamic_array_type): Likewise.
9773 * eval.c (evaluate_subexp_with_coercion): Likewise.
9774 * findvar.c (address_of_variable): Likewise.
9775 * jv-valprint.c (java_value_print): Likewise.
9776 * valops.c (value_ind): Likewise.
9777 * value.c (coerce_ref): Likewise.
9778
9779 * c-typeprint.c (c_type_print_varspec_suffix): Added
9780 check for not yet resolved high bound. If unresolved, print
9781 "variable length" string to the console instead of random
9782 length.
9783
9784 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9785 property and store it as the high bound and flag the range accordingly.
9786 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9787 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9788 * gdbtypes.h (enum range_flags): New enum.
9789 (struct range_bounds): Add flags member.
9790
9791 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9792 points to a constant blob.
9793
9794 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9795 (evaluate_subexp_standard): Pass noside argument.
9796 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9797 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9798 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9799 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9800 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9801
245a5f0b
KS
98022014-04-11 Keith Seitz <keiths@redhat.com>
9803
9804 PR c++/16675
9805 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9806 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9807 reference types.
9808
3bce8237
SA
98092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9810
9811 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9812 (evaluate_subexp_standard): Pass noside argument.
9813 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9814 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9815 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9816 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9817 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9818
92b09522
SA
98192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9820
9821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9822 points to a constant blob.
9823
e1969afb
SA
98242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9825
9826 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9827 property and store it as the high bound and flag the range accordingly.
9828 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9829 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9830 * gdbtypes.h (enum range_flags): New enum.
9831 (struct range_bounds): Add flags member.
9832
b86138fb
SA
98332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9834
9835 * c-typeprint.c (c_type_print_varspec_suffix): Added
9836 check for not yet resolved high bound. If unresolved, print
9837 "variable length" string to the console instead of random
9838 length.
9839
bcd629a4
SA
98402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9841
9842 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9843 (ada_template_to_fixed_record_type_1): Likewise.
9844 (ada_to_fixed_type_1): Likewise.
9845 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9846 (cp_print_value): Likewise.
9847 * d-valprint.c (dynamic_array_type): Likewise.
9848 * eval.c (evaluate_subexp_with_coercion): Likewise.
9849 * findvar.c (address_of_variable): Likewise.
9850 * jv-valprint.c (java_value_print): Likewise.
9851 * valops.c (value_ind): Likewise.
9852 * value.c (coerce_ref): Likewise.
9853
04b19544
SA
98542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9855
9856 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9857 value and retrieve the dynamic type size.
9858
26cb189f
SA
98592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9860
9861 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9862 passed to sizeof is dynamic evaluate the argument to compute the length.
9863
37c1ab67
SA
98642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9865
9866 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9867 (dwarf2_evaluate_property): New function.
9868 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9869 * dwarf2read.c (attr_to_dynamic_prop): New function.
9870 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9871 attribute.
9872 * gdbtypes.c: Include dwarf2loc.h.
9873 (is_dynamic_type): New function.
9874 (resolve_dynamic_type): New function.
9875 (resolve_dynamic_bounds): New function.
9876 (get_type_length): New function.
9877 (check_typedef): Use get_type_length to compute type length.
9878 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9879 (TYPE_LOW_BOUND_KIND): New macro.
9880 (is_dynamic_type): New function prototype.
9881 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9882 to resolve dynamic properties of the type. Update comment.
9883 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9884
729efb13
SA
98852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9886
9887 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9888 declaring high/low bounds and change uses accordingly. Call
9889 create_range_type instead of create_static_range_type.
9890 * gdbtypes.c (create_range_type): New function.
9891 (create_range_type): Convert bounds into struct bound_prop and pass
9892 them to create_range_type.
9893 * gdbtypes.h (struct bound_prop): New struct.
9894 (create_range_type): New function prototype.
9895 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9896 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9897 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9898 part of the bound.
9899 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9900
0c9c3474
SA
99012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9902
9903 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9904 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9905 * ada-lang.c: All uses of create_range_type updated.
9906 * coffread.c: All uses of create_range_type updated.
9907 * dwarf2read.c: All uses of create_range_type updated.
9908 * f-exp.y: All uses of create_range_type updated.
9909 * m2-valprint.c: All uses of create_range_type updated.
9910 * mdebugread.c: All uses of create_range_type updated.
9911 * stabsread.c: All uses of create_range_type updated.
9912 * valops.c: All uses of create_range_type updated.
9913 * valprint.c: All uses of create_range_type updated.
9914
9d497a19
PA
99152014-04-10 Pedro Alves <palves@redhat.com>
9916
9917 * breakpoint.c (single_step_breakpoints)
9918 (single_step_gdbarch): Move up in the file.
9919 (one_breakpoint_xfer_memory): New function, factored out from ...
9920 (breakpoint_xfer_memory): ... here. Also process single-step
9921 breakpoints.
9922
15a9128a
TG
99232014-04-09 Tristan Gingold <gingold@adacore.com>
9924
9925 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9926 comments.
9927 (darwin_decode_exception_message): Free port only after use.
9928
9c97a070
PL
99292014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9930
9931 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9932 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9933 when setting the size of call_length.
9934
7af389b8
SC
99352014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9936
9937 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9938 dereference TYPE_CODE_REF values.
9939
86ad98c3
JB
99402014-04-07 Joel Brobecker <brobecker@adacore.com>
9941
9942 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9943 end of warning message.
9944
b0aeadb3
DE
99452014-04-03 Doug Evans <dje@google.com>
9946
9947 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9948 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9949
5979d6b6
AM
99502014-04-02 Alan Modra <amodra@gmail.com>
9951
9952 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9953 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9954 (struct symbol_file_add_from_memory_args): Add size field.
9955 (find_vdso_size): New function.
9956 (add_vsyscall_page): Attempt to find vdso size.
9957
0d60c288
DE
99582014-04-01 Doug Evans <dje@google.com>
9959
9960 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9961
a41f2563
TG
99622014-04-01 Tristan Gingold <gingold@adacore.com>
9963
9964 * darwin-nat.c (darwin_encode_reply): Add prototype.
9965 (darwin_decode_exception_message): Reply to unknown inferiors.
9966 (darwin_decode_message): Handle message by id. Ignore message
9967 to unknown inferior.
9968 (darwin_wait): Discard unknown messages, add debug trace.
9969
11a865c8
DE
99702014-03-31 Doug Evans <dje@google.com>
9971
9972 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9973 comp_dir_string.
9974
770e7fc7
DE
99752014-03-31 Doug Evans <dje@google.com>
9976
9977 New option "set print symbol-loading".
9978 * NEWS: Mention it.
9979 * solib.c (solib_read_symbols): Only print symbol loading messages
9980 if requested.
9981 (solib_add): If symbol loading is in "brief" mode, notify user
9982 symbols are being loaded.
9983 (reload_shared_libraries_1): Ditto.
9984 * symfile.c (print_symbol_loading_off): New static global.
9985 (print_symbol_loading_brief): New static global.
9986 (print_symbol_loading_full): New static global.
9987 (print_symbol_loading_enums): New static global.
9988 (print_symbol_loading): New static global.
9989 (print_symbol_loading_p): New function.
9990 (symbol_file_add_with_addrs): Only print symbol loading messages
9991 if requested.
9992 (_initialize_symfile): Register "print symbol-loading" set/show
9993 command.
9994 * symfile.h (print_symbol_loading_p): Declare.
9995
c32c64b7
DE
99962014-03-30 Doug Evans <xdje42@gmail.com>
9997
9998 * infrun.c (set_last_target_status): New function.
9999 (handle_inferior_event): Call it.
10000
7c0bc051
DE
100012014-03-30 Doug Evans <xdje42@gmail.com>
10002
10003 * inferior.h (enum stop_kind): Improve comment.
10004
8776cfe9
JB
100052014-03-28 Joel Brobecker <brobecker@adacore.com>
10006
10007 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10008 a reference, strip the reference layer before calling
10009 the lang_ops value_has_mutated callback.
10010
410a0ff2
SDJ
100112014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10012
10013 Remove some globals from our parser.
10014 * language.c (unk_lang_parser): Add "struct parser_state"
10015 argument.
10016 * language.h (struct language_defn) <la_parser>: Likewise.
10017 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10018 (initialize_expout): Add "struct parser_state" argument.
10019 Rewrite function to use the parser state.
10020 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10021 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10022 write_exp_elt_longcst, write_exp_elt_dblcst,
10023 write_exp_elt_decfloatcst, write_exp_elt_type,
10024 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10025 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10026 write_dollar_variable): Likewise.
10027 (parse_exp_in_context_1): Use parser state.
10028 (insert_type_address_space): Add "struct parser_state" argument.
10029 Use parser state.
10030 (increase_expout_size): New function.
10031 * parser-defs.h: Forward declare "struct language_defn" and
10032 "struct parser_state".
10033 (expout, expout_size, expout_ptr): Remove extern declarations.
10034 (parse_gdbarch, parse_language): Rewrite macro declarations to
10035 accept the parser state.
10036 (struct parser_state): New struct.
10037 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10038 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10039 write_exp_elt_decfloatcst, write_exp_elt_type,
10040 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10041 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10042 write_exp_msymbol, write_dollar_variable,
10043 mark_struct_expression, insert_type_address_space): Add "struct
10044 parser_state" argument.
10045 (increase_expout_size): New function.
10046 * utils.c (do_clear_parser_state): New function.
10047 (make_cleanup_clear_parser_state): Likewise.
10048 * utils.h (make_cleanup_clear_parser_state): New function
10049 prototype.
10050 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10051 Update calls to write_exp* in order to pass the parser state.
10052 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10053 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10054 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10055 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10056 * stap-probe.c (stap_parse_register_operand): Likewise.
10057 (stap_parse_single_operand): Likewise.
10058 (stap_parse_argument_1): Likewise.
10059 (stap_parse_argument): Use parser state.
10060 * stap-probe.h: Include "parser-defs.h".
10061 (struct stap_parse_info) <pstate>: New field.
10062 * c-exp.y (parse_type): Rewrite to use parser state.
10063 (yyparse): Redefine to c_parse_internal.
10064 (pstate): New global variable.
10065 (parse_number): Add "struct parser_state" argument.
10066 (write_destructor_name): Likewise.
10067 (type_exp): Update calls to write_exp* and similars in order to
10068 use parser state.
10069 (exp1, exp, variable, qualified_name, space_identifier,
10070 typename, typebase): Likewise.
10071 (write_destructor_name, parse_number, lex_one_token,
10072 classify_name, classify_inner_name, c_parse): Add "struct
10073 parser_state" argument. Update function to use parser state.
10074 * c-lang.h: Forward declare "struct parser_state".
10075 (c_parse): Add "struct parser_state" argument.
10076 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10077 (yyparse): Redefine macro to ada_parse_internal.
10078 (pstate): New variable.
10079 (write_int, write_object_renaming, write_var_or_type,
10080 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10081 type_int, type_long, type_long_long, type_float, type_double,
10082 type_long_double, type_char, type_boolean, type_system_address):
10083 Add "struct parser_state" argument.
10084 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10085 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10086 var_or_type, aggregate, aggregate_component_list,
10087 positional_list, others, component_group,
10088 component_associations): Update calls to write_exp* and similar
10089 functions in order to use parser state.
10090 (ada_parse, write_var_from_sym, write_int,
10091 write_exp_op_with_string, write_object_renaming,
10092 find_primitive_type, write_selectors, write_ambiguous_var,
10093 write_var_or_type, write_name_assoc, type_int, type_long,
10094 type_long_long, type_float, type_double, type_long_double,
10095 type_char, type_boolean, type_system_address): Add "struct
10096 parser_state" argument. Adjust function to use parser state.
10097 * ada-lang.c (parse): Likewise.
10098 * ada-lang.h: Forward declare "struct parser_state".
10099 (ada_parse): Add "struct parser_state" argument.
10100 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10101 calls to both functions.
10102 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10103 parser state.
10104 (yyparse): Redefine macro to f_parse_internal.
10105 (pstate): New variable.
10106 (parse_number): Add "struct parser_state" argument.
10107 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10108 and similars in order to use parser state.
10109 (parse_number): Adjust code to use parser state.
10110 (yylex): Likewise.
10111 (f_parse): New function.
10112 * f-lang.h: Forward declare "struct parser_state".
10113 (f_parse): Add "struct parser_state" argument.
10114 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10115 parser state.
10116 (yyparse): Redefine macro for java_parse_internal.
10117 (pstate): New variable.
10118 (push_expression_name, push_expression_name, insert_exp): Add
10119 "struct parser_state" argument.
10120 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10121 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10122 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10123 PostIncrementExpression, PostDecrementExpression,
10124 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10125 UnaryExpressionNotPlusMinus, CastExpression,
10126 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10127 RelationalExpression, EqualityExpression, AndExpression,
10128 ExclusiveOrExpression, InclusiveOrExpression,
10129 ConditionalAndExpression, ConditionalOrExpression,
10130 ConditionalExpression, Assignment, LeftHandSide): Update
10131 calls to write_exp* and similars in order to use parser state.
10132 (parse_number): Ajust code to use parser state.
10133 (yylex): Likewise.
10134 (java_parse): New function.
10135 (push_variable): Add "struct parser_state" argument. Adjust
10136 code to user parser state.
10137 (push_fieldnames, push_qualified_expression_name,
10138 push_expression_name, insert_exp): Likewise.
10139 * jv-lang.h: Forward declare "struct parser_state".
10140 (java_parse): Add "struct parser_state" argument.
10141 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10142 parser state.
10143 (yyparse): Redefine macro to m2_parse_internal.
10144 (pstate): New variable.
10145 (type_exp, exp, fblock, variable, type): Update calls to
10146 write_exp* and similars to use parser state.
10147 (yylex): Likewise.
10148 (m2_parse): New function.
10149 * m2-lang.h: Forward declare "struct parser_state".
10150 (m2_parse): Add "struct parser_state" argument.
10151 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10152 * objc-lang.h: Forward declare "struct parser_state".
10153 (end_msglist): Add "struct parser_state" argument.
10154 * p-exp.y (parse_type): Rewrite macro to use parser state.
10155 (yyparse): Redefine macro to pascal_parse_internal.
10156 (pstate): New variable.
10157 (parse_number): Add "struct parser_state" argument.
10158 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10159 write_exp* and similars in order to use parser state.
10160 (parse_number, yylex): Adjust code to use parser state.
10161 (pascal_parse): New function.
10162 * p-lang.h: Forward declare "struct parser_state".
10163 (pascal_parse): Add "struct parser_state" argument.
10164 * go-exp.y (parse_type): Rewrite macro to use parser state.
10165 (yyparse): Redefine macro to go_parse_internal.
10166 (pstate): New variable.
10167 (parse_number): Add "struct parser_state" argument.
10168 (type_exp, exp1, exp, variable, type): Update calls to
10169 write_exp* and similars in order to use parser state.
10170 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10171 to use parser state.
10172 (go_parse): Likewise.
10173 * go-lang.h: Forward declare "struct parser_state".
10174 (go_parse): Add "struct parser_state" argument.
10175
342587c4
DE
101762014-03-27 Doug Evans <dje@google.com>
10177
10178 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10179
33e80786
DE
101802014-03-27 Doug Evans <dje@google.com>
10181
10182 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10183 Remove argument abbrev_section. All callers updated.
10184
1dbab08b
DE
101852014-03-27 Doug Evans <dje@google.com>
10186
10187 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10188 addr_base, ranges_base.
10189
318d3177
KS
101902014-03-26 Keith Seitz <keiths@redhat.com>
10191
10192 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10193 types, not VAR_DOMAIN.
10194
1e54db15
SL
101952014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10196
10197 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10198 "ra" registers.
10199 * features/nios2-linux.c: Regenerated.
10200 * features/nios2.c: Regenerated.
10201
d3839ede
PA
102022014-03-25 Pedro Alves <palves@redhat.com>
10203
10204 * cli/cli-script.c (script_from_file): Force the interpreter to
10205 sync mode.
10206
7588d2ec
PL
102072014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10208
10209 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10210 small stack allocation.
10211
a6290449
TG
102122014-03-24 Tristan Gingold <gingold@adacore.com>
10213
10214 * darwin-nat.c (exc_server): Remove unused prototype.
10215 (darwin_dump_message): Correctly display data on x86_64.
10216 (darwin_encode_reply): Fix style.
10217 Add comments and fix indentation.
10218
31ae9d24 102192014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
10220
10221 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10222
6339bfc4
DE
102232014-03-22 Doug Evans <xdje42@gmail.com>
10224
10225 * infcmd.c: Whitespace fixes.
10226 (interrupt_command): Merge two function comments into one.
10227
0a07590b
DE
102282014-03-22 Doug Evans <xdje42@gmail.com>
10229
10230 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10231 All uses updated.
10232
b55fbac4
YQ
102332014-03-22 Yao Qi <yao@codesourcery.com>
10234
10235 * remote.c (target_read_live_memory): Remove.
10236 (memory_xfer_live_readonly_partial): Rename it to
10237 remote_xfer_live_readonly_partial. Remove argument 'object'.
10238 All callers updated. Call remote_read_bytes_1
10239 instead of target_read_live_memory.
10240 * tracepoint.c (set_traceframe_number): Remove.
10241 (make_cleanup_restore_traceframe_number): Likewise .
10242 * tracepoint.h (set_traceframe_number): Remove declaration.
10243 (make_cleanup_restore_traceframe_number): Likewise.
10244
9217e74e
YQ
102452014-03-22 Yao Qi <yao@codesourcery.com>
10246
10247 * remote.c (remote_read_bytes): Move code on reading from the
10248 remote stub to ...
10249 (remote_read_bytes_1): ... here. New function.
10250
8acf9577
YQ
102512014-03-22 Yao Qi <yao@codesourcery.com>
10252
10253 * ctf.c (ctf_xfer_partial): Check the return value of
10254 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10255 return TARGET_XFER_UNAVAILABLE.
10256 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10257 * target.c (target_read_live_memory): Move it to remote.c.
10258 (memory_xfer_live_readonly_partial): Likewise.
10259 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10260 * remote.c (target_read_live_memory): Moved from target.c.
10261 (memory_xfer_live_readonly_partial): Likewise.
10262 (remote_read_bytes): Factored out from
10263 memory_xfer_partial_1.
10264
feef67ab
DE
102652014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10266
10267 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10268 NULL pointer.
10269
b65dc60b
PA
102702014-03-21 Pedro Alves <palves@redhat.com>
10271
10272 * infrun.c (normal_stop): Extend comment.
10273
b4ab256d
HZ
102742014-03-21 Hui Zhu <hui@codesourcery.com>
10275 Pedro Alves <palves@redhat.com>
10276
10277 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10278 static buffer.
10279 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10280 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10281 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10282
deba7593
MR
102832014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10284
10285 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10286 `z' formatted output modifier.
10287
1bff71c3
SDJ
102882014-03-20 Tom Tromey <tromey@redhat.com>
10289 Sergio Durigan Junior <sergiodj@redhat.com>
10290
10291 * probe.c (parse_probes): Turn assert into an ordinary error.
10292 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10293 exceptions when parsing probes. Rearrange the code for clarity.
10294
90e28950
TT
102952014-03-20 Tom Tromey <tromey@redhat.com>
10296
10297 PR gdb/14135
10298 * top.c (execute_command): Only dispatch events if the command
10299 started the target.
10300
beb460e8
PA
103012014-03-20 Tom Tromey <tromey@redhat.com>
10302
10303 PR cli/15718
10304 * infcall.c: Include event-top.h.
10305 (run_inferior_call): Call async_disable_stdin if needed.
10306
99619bea
PA
103072014-03-20 Pedro Alves <palves@redhat.com>
10308
10309 * infrun.c (prepare_to_proceed): Delete.
10310 (thread_still_needs_step_over): New function.
10311 (find_thread_needs_step_over): New function.
10312 (proceed): If the current thread needs a step-over, set its
10313 steping_over_breakpoint flag. Adjust to use
10314 find_thread_needs_step_over instead of prepare_to_proceed.
10315 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10316 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10317 breakpoint.
10318 (switch_back_to_stepped_thread): Step over breakpoints of all
10319 threads not the stepping thread, before switching back to the
10320 stepping thread.
10321
2adfaa28
PA
103222014-03-20 Pedro Alves <palves@redhat.com>
10323
10324 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10325 extern.
10326 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10327 * infrun.c (saved_singlestep_ptid)
10328 (stepping_past_singlestep_breakpoint): Delete.
10329 (resume): Remove stepping_past_singlestep_breakpoint handling.
10330 (proceed): Store the prev_pc of the stepping thread too.
10331 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10332 singlestep_pc.
10333 (enum infwait_states): Delete infwait_thread_hop_state.
10334 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10335 field.
10336 (handle_inferior_event): Adjust.
10337 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10338 handling and the thread-hop code. Before removing single-step
10339 breakpoints, check whether the thread hit a single-step breakpoint
10340 of another thread. If it did, the trap is not a random signal.
10341 (switch_back_to_stepped_thread): If the event thread hit a
10342 single-step breakpoint, unblock it before switching to the
10343 stepping thread. Handle the case of the stepped thread having
10344 advanced already.
10345 (keep_going): Handle the case of the current thread moving past a
10346 single-step breakpoint.
10347
31e77af2
PA
103482014-03-20 Pedro Alves <palves@redhat.com>
10349
10350 PR breakpoints/7143
10351 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10352 are being stepped over.
10353 (breakpoint_address_match): Make extern.
10354 * breakpoint.h (breakpoint_address_match): New declaration.
10355 * inferior.h (stepping_past_instruction_at): New declaration.
10356 * infrun.c (struct step_over_info): New type.
10357 (step_over_info): New global.
10358 (set_step_over_info, clear_step_over_info)
10359 (stepping_past_instruction_at): New functions.
10360 (handle_inferior_event): Clear the step-over info when
10361 trap_expected is cleared.
10362 (resume): Remove now stale comment.
10363 (clear_proceed_status): Clear step-over info.
10364 (proceed): Adjust step-over handling to set or clear the step-over
10365 info instead of removing all breakpoints.
10366 (handle_signal_stop): When setting up a thread-hop, don't remove
10367 breakpoints here.
10368 (stop_stepping): Clear step-over info.
10369 (keep_going): Adjust step-over handling to set or clear step-over
10370 info and then always inserting breakpoints, instead of removing
10371 all breakpoints when stepping over one.
10372
b9f437de
PA
103732014-03-20 Pedro Alves <palves@redhat.com>
10374
10375 * infrun.c (previous_inferior_ptid): Adjust comment.
10376 (deferred_step_ptid): Delete.
10377 (infrun_thread_ptid_changed, prepare_to_proceed)
10378 (init_wait_for_inferior): Adjust.
10379 (handle_signal_stop): Delete deferred_step_ptid handling.
10380
06c868a8
JK
103812014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10382
10383 PR gdb/15358
10384 * defs.h (sync_quit_force_run): New declaration.
10385 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10386 * event-top.c (async_sigterm_handler): New declaration.
10387 (async_sigterm_token): New variable.
10388 (async_init_signals): Create also async_sigterm_token.
10389 (async_sigterm_handler): New function.
10390 (sync_quit_force_run): New variable.
10391 (handle_sigterm): Replace quit_force call by other calls.
10392 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10393
dea80df0
MR
103942014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10395
10396 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10397 offset into SPE pseudo registers.
10398
0c7e1a46
PA
103992014-03-18 Pedro Alves <palves@redhat.com>
10400
10401 PR gdb/13860
10402 * inferior.h (print_stop_event): Declare.
10403 * infrun.c (print_stop_event): New, factored out from ...
10404 (normal_stop): ... this.
10405 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10406 of bpstat_print/print_stack_frame.
10407
9c1fcd01
TT
104082014-03-17 Tom Tromey <tromey@redhat.com>
10409
10410 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10411
11aa919a
PMR
104122014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10413
10414 * ada-lang.c (decode_constrained_packed_array): Perform a
10415 minimal coercion for reference with coerce_ref instead of
10416 ada_coerce_ref.
10417
d4ccb5e0
TG
104182014-03-17 Tristan Gingold <gingold@adacore.com>
10419
10420 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10421 (darwin_solib_create_inferior_hook): Emit a warning if version
10422 is unhandled.
10423
49840f2a
UW
104242014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10425
10426 * python/py-value.c (get_field_flag): Cast flag_name argument to
10427 PyObject_GetAttrString to support Python 2.4.
10428
ed4123e5
JK
104292014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10432 (Global Maintainers): Remove Jan Kratochvil.
10433
d6b64346
PA
104342014-03-14 Pedro Alves <palves@redhat.com>
10435
10436 * inferior.h (terminal_ours_for_output): Rename to ...
10437 (child_terminal_ours_for_output): ... this.
10438 (terminal_save_ours): Rename to ...
10439 (child_terminal_save_ours): ... this.
10440 (terminal_ours): Rename to ...
10441 (child_terminal_ours): ... this.
10442 (terminal_inferior): Rename to ...
10443 (child_terminal_inferior): ... this.
10444 (terminal_init_inferior): Rename to ...
10445 (child_terminal_init_inferior): ... this.
10446 (terminal_init_inferior_with_pgrp): Rename to ...
10447 (child_terminal_init_inferior_with_pgrp): ... this.
10448 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10449 (child_terminal_init_with_pgrp): ... this.
10450 (terminal_save_ours): Rename to ...
10451 (child_terminal_save_ours): ... this.
10452 (terminal_init_inferior): Rename to ...
10453 (child_terminal_init): ... this. Adjust.
10454 (terminal_inferior): Rename to ...
10455 (child_terminal_inferior): ... this.
10456 (terminal_ours_for_output): Rename to ...
10457 (child_terminal_ours_for_output): ... this. Adjust.
10458 (terminal_ours): Rename to ...
10459 (child_terminal_ours): ... this.
10460 (terminal_ours_1): Rename to ...
10461 (child_terminal_ours_1): ... this. Adjust.
10462 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10463 * windows-nat.c (do_initial_windows_stuff): Adjust.
10464 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10465 (gnu_terminal_init): ... this. Adjust.
10466 (gnu_target): Adjust.
10467 * inf-child.c (inf_child_target): Adjust.
10468
5a1e8c7a
DE
104692014-03-13 Doug Evans <xdje42@gmail.com>
10470
10471 PR guile/16612
10472 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10473 new eq?-hashtab.
10474
350e1a76
DE
104752014-03-13 Doug Evans <xdje42@gmail.com>
10476
10477 * value.c (record_latest_value): Call release_value_or_incref
10478 instead of release_value.
10479
a69900ae
PA
104802014-03-13 Pedro Alves <palves@redhat.com>
10481
10482 * procfs.c (procfs_target): Don't override to_shortname,
10483 to_longname or to_doc.
10484
5db9f0bd
PA
104852014-03-13 Pedro Alves <palves@redhat.com>
10486
10487 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10488 Unix in user visible strings.
10489
5e3a2c38
SS
104902014-03-12 Stan Shebs <stan@codesourcery.com>
10491
10492 * gdbtypes.h: Annotate comments for Doxygen, add a page
10493 block comment with some general info.
10494
8bc2fe48
PA
104952014-03-12 Pedro Alves <palves@redhat.com>
10496
10497 * infcmd.c (prepare_execution_command): New function, factored out
10498 from several execution commands.
10499 (run_command_1, continue_command, step_1, jump_command)
10500 (signal_command, until_command, advance_command, finish_command)
10501 (attach_command): Use prepare_execution_command.
10502
638c5f49
OJ
105032014-03-12 Omair Javaid <omair.javaid@linaro.org>
10504
10505 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10506 (MAX_BPTS): Define.
10507 (MAX_WPTS): Define.
10508 (struct arm_linux_thread_points): Removed.
10509 (struct arm_linux_process_info): New.
10510 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10511 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10512 (arm_linux_find_breakpoints_by_tid): Removed.
10513 (struct arch_lwp_info): New.
10514 (arm_linux_find_process_pid): New functions.
10515 (arm_linux_add_process): New functions.
10516 (arm_linux_process_info_get): New functions.
10517 (arm_linux_forget_process): New function.
10518 (arm_linux_get_debug_reg_state): New function.
10519 (struct update_registers_data): New.
10520 (update_registers_callback): New function.
10521 (arm_linux_insert_hw_breakpoint1): Updated.
10522 (arm_linux_remove_hw_breakpoint1): Updated.
10523 (arm_linux_insert_hw_breakpoint): Updated.
10524 (arm_linux_remove_hw_breakpoint): Updated.
10525 (arm_linux_insert_watchpoint): Updated.
10526 (arm_linux_remove_watchpoint): Updated.
10527 (arm_linux_new_thread): Updated.
10528 (arm_linux_prepare_to_resume): New function.
10529 (arm_linux_new_fork): New function.
10530 (_initialize_arm_linux_nat): Updated.
10531
6d03af93
PA
105322014-03-12 Pedro Alves <palves@redhat.com>
10533
10534 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10535
b3ccfe11
TT
105362014-03-12 Tom Tromey <tromey@redhat.com>
10537
10538 * inf-child.c (return_zero): New function.
10539 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10540 * aix-thread.c (aix_thread_inferior_created): New function.
10541 (aix_thread_attach): Remove.
10542 (init_aix_thread_ops): Don't set to_attach.
10543 (_initialize_aix_thread): Register inferior_created observer.
10544 * corelow.c (init_core_ops): Don't set to_attach or
10545 to_create_inferior.
10546 * exec.c (init_exec_ops): Don't set to_attach or
10547 to_create_inferior.
10548 * infcmd.c (run_command_1): Use find_run_target. Make direct
10549 target calls.
10550 (attach_command): Use find_attach_target. Make direct target
10551 calls.
10552 * record-btrace.c (init_record_btrace_ops): Don't set
10553 to_create_inferior.
10554 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10555 Remove.
10556 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10557 set to_create_inferior.
10558 * target.c (complete_target_initialization): Add assertion.
10559 (target_create_inferior): Remove.
10560 (find_default_attach, find_default_create_inferior): Remove.
10561 (find_attach_target, find_run_target): New functions.
10562 (find_default_is_async_p, find_default_can_async_p)
10563 (target_supports_non_stop, target_attach): Remove.
10564 (init_dummy_target): Don't set to_create_inferior or
10565 to_supports_non_stop.
10566 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10567 TARGET_DEFAULT_FUNC.
10568 <to_create_inferior>: Add comment.
10569 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10570 TARGET_DEFAULT_RETURN.
10571 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10572 (find_attach_target, find_run_target): Declare.
10573 (target_create_inferior): Remove.
10574 (target_has_execution_1): Update comment.
10575 (target_supports_non_stop): Remove.
10576 * target-delegates.c: Rebuild.
10577
91f83b02
PA
105782014-03-12 Pedro Alves <palves@redhat.com>
10579
10580 * inf-child.h: Update comment to not mention Unix.
10581
f1aea813
PA
105822014-03-12 Pedro Alves <palves@redhat.com>
10583
10584 * inf-child.c: Update top comment to not mention Unix. Add
10585 generic comment describing how this target is meant to be used.
10586 (inf_child_post_attach, inf_child_post_startup_inferior)
10587 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10588 Unix in comment.
10589
ee8e9165
PA
105902014-03-12 Pedro Alves <palves@redhat.com>
10591
10592 * nto-procfs.c: Include inf-child.h.
10593 (procfs_ops): Delete global.
10594 (procfs_can_run): Delete method.
10595 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10596 target pointer instead of referencing procfs_ops.
10597 (procfs_prepare_to_store): Delete.
10598 (init_procfs_ops): Delete function.
10599 (procfs_target): New function, based on init_procfs_ops, but
10600 inherit inf_child_target.
10601 (_initialize_procfs): Use procfs_target.
10602
51a9c8c5
PA
106032014-03-12 Pedro Alves <palves@redhat.com>
10604
10605 * windows-nat.c: Include inf-child.h.
10606 (windows_ops): Delete global.
10607 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10608 methods.
10609 (init_windows_ops): Delete function.
10610 (windows_target): New function, based on init_windows_ops, but
10611 inherit inf_child_target.
10612 (_initialize_windows_nat): Use windows_target. Install x86
10613 specific target methods here.
10614
c1966e26
DE
106152014-03-10 Doug Evans <xdje42@gmail.com>
10616
10617 * guile/guile.c (call_initialize_gdb_module): New function.
10618 (initialize_guile): Replace call to scm_init_guile with call to
10619 scm_with_guile.
10620
023db19c
JB
106212014-03-10 Joel Brobecker <brobecker@adacore.com>
10622
10623 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10624 in call to TYPE_CODE macro.
10625
5ec18f2b
JG
106262014-03-10 Jerome Guitton <guitton@adacore.com>
10627
8668be63
JB
10628 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10629 Resolve tagged types to full view.
5ec18f2b 10630
7d03f2eb
HZ
106312014-03-10 Hui Zhu <hui@codesourcery.com>
10632
10633 * target.h (target_insert_breakpoint): Remove "hardware" from its
10634 comments.
10635
c5164cbc
DE
106362014-03-07 Doug Evans <dje@google.com>
10637
10638 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10639
c4a3fee2
DE
106402014-03-07 Doug Evans <dje@google.com>
10641
10642 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10643 Remove unused local comp_dir_attr. Assert exactly one of
10644 stub_comp_unit_die, stub_comp_dir is non-NULL.
10645
3156469c
JB
106462014-03-07 Joel Brobecker <brobecker@adacore.com>
10647
10648 * target.h (complete_target_initialization, add_target):
10649 Add comment.
10650
c1a7b7c6
PA
106512014-03-07 Pedro Alves <palves@redhat.com>
10652
10653 * go32-nat.c: Include inf-child.h.
10654 (go32_ops): Delete global.
10655 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10656 Delete methods.
10657 (go32_create_inferior): Push the passed in target pointer instead
10658 of referencing go32_ops.
10659 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10660 (go32_target): New function, based on init_go32_ops, but inherit
10661 inf_child_target.
10662 (_initialize_go32_nat): Use go32_target. Move parts of
10663 init_go32_ops here.
10664
d3c1a85f
JB
106652014-03-06 Joel Brobecker <brobecker@adacore.com>
10666
10667 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10668 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10669 SYMBOL_VALUE_ADDRESS.
10670 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10671
5fa1d40e
YQ
106722014-03-06 Yao Qi <yao@codesourcery.com>
10673
10674 * breakpoint.c (get_tracepoint_by_number): Remove argument
10675 optional_p. All callers updated. Adjust comments. Update
10676 output message.
10677 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10678
0c13193f
YQ
106792014-03-06 Yao Qi <yao@codesourcery.com>
10680
10681 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10682 early if get_number returns zero. Use 'p' instead of 'args'.
10683
2217da06
YQ
106842014-03-06 Yao Qi <yao@codesourcery.com>
10685
10686 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10687 message.
10688
cc3da688
YQ
106892014-03-06 Yao Qi <yao@codesourcery.com>
10690
10691 PR breakpoints/16508
10692 * tracepoint.c (check_trace_running): New function.
10693 (trace_find_command): Move code to check_trace_running and
10694 call check_trace_running.
10695 (trace_find_pc_command): Likewise.
10696 (trace_find_tracepoint_command): Likewise.
10697 (trace_find_line_command): Likewise.
10698 (trace_find_range_command): Likewise.
10699 * tracepoint.h (check_trace_running): Likewise.
10700 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10701
6a5f844b
YQ
107022014-03-06 Yao Qi <yao@codesourcery.com>
10703
10704 * target.h (struct target_ops) <to_traceframe_info>: Use
10705 TARGET_DEFAULT_NORETURN (tcomplain ()).
10706 * target-delegates.c: Regenerated.
10707
0f26cec1
PA
107082014-03-05 Pedro Alves <palves@redhat.com>
10709
10710 PR gdb/16575
10711 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10712 void. Update comment.
10713 (dcache_xfer_memory): Delete.
10714 (dcache_read_memory_partial): New, based on the read bits of
10715 dcache_xfer_memory.
10716 (dcache_update): Add status parameter. Use ULONGEST for len, and
10717 adjust. Discard cache lines if the reason for the update was
10718 error.
10719 * dcache.h (dcache_xfer_memory): Delete declaration.
10720 (dcache_read_memory_partial): New declaration.
10721 (dcache_update): Update prototype.
10722 * target.c (raw_memory_xfer_partial): Update the dcache here.
10723 (memory_xfer_partial_1): Don't handle dcache writes here.
10724
b2b255bd
MF
107252014-03-05 Mike Frysinger <vapier@gentoo.org>
10726
10727 * remote-sim.c (gdbsim_load): Add const to prog.
10728
5d9cf8a4
TT
107292014-03-03 Tom Tromey <tromey@redhat.com>
10730
10731 * elfread.c (probe_key): Change to bfd_data.
10732 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10733 now per-BFD, not per-objfile.
10734 * stap-probe.c (stap_probe_destroy): Update comment.
10735 (handle_stap_probe): Allocate on the per-BFD obstack.
10736
729662a5
TT
107372014-03-03 Tom Tromey <tromey@redhat.com>
10738
10739 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10740 * breakpoint.c (create_longjmp_master_breakpoint): Use
10741 get_probe_address.
10742 (add_location_to_breakpoint, bkpt_probe_insert_location)
10743 (bkpt_probe_remove_location): Update.
10744 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10745 * elfread.c (elf_symfile_relocate_probe): Remove.
10746 (elf_probe_fns): Update.
10747 (insert_exception_resume_breakpoint): Change type of "probe"
10748 parameter to bound_probe.
10749 (check_exception_resume): Update.
10750 * objfiles.c (objfile_relocate1): Don't relocate probes.
10751 * probe.c (bound_probe_s): New typedef.
10752 (parse_probes): Use get_probe_address. Set sal's objfile.
10753 (find_probe_by_pc): Return a bound_probe.
10754 (collect_probes): Return a VEC(bound_probe_s).
10755 (compare_probes): Update.
10756 (gen_ui_out_table_header_info): Change type of "probes"
10757 parameter. Update.
10758 (info_probes_for_ops): Update.
10759 (get_probe_address): New function.
10760 (probe_safe_evaluate_at_pc): Update.
10761 * probe.h (struct probe_ops) <get_probe_address>: New field.
10762 <set_semaphore, clear_semaphore>: Add objfile parameter.
10763 (struct probe) <objfile>: Remove field.
10764 <arch>: New field.
10765 <address>: Update comment.
10766 (struct bound_probe): New.
10767 (find_probe_by_pc): Return a bound_probe.
10768 (get_probe_address): Declare.
10769 * solib-svr4.c (struct probe_and_action) <address>: New field.
10770 (hash_probe_and_action, equal_probe_and_action): Update.
10771 (register_solib_event_probe): Add address parameter.
10772 (solib_event_probe_at): Update.
10773 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10774 get_probe_address.
10775 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10776 (stap_get_probe_address): New function.
10777 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10778 (compile_probe_arg): Update.
10779 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10780 address.
10781 (handle_stap_probe): Don't relocate the probe.
10782 (stap_relocate): Remove.
10783 (stap_gen_info_probes_table_values): Update.
10784 (stap_probe_ops): Remove stap_relocate.
10785 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10786 (debug_sym_probe_fns): Update.
10787 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10788 * symtab.c (init_sal): Use memset.
10789 * symtab.h (struct symtab_and_line) <objfile>: New field.
10790 * tracepoint.c (start_tracing, stop_tracing): Update.
10791
ff887920
TT
107922014-03-03 Tom Tromey <tromey@redhat.com>
10793
10794 * probe.h (parse_probes, find_probe_by_pc)
10795 (find_probes_in_objfile): Fix comments.
10796
f0407826
DE
107972014-03-02 Doug Evans <xdje42@gmail.com>
10798
10799 * infrun.c (handle_signal_stop): Replace test for
10800 TARGET_WAITKIND_STOPPED with an assert.
10801
35e6a711
DE
108022014-03-02 Doug Evans <xdje42@gmail.com>
10803
10804 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10805
667f9d0b
DE
108062014-03-02 Doug Evans <xdje42@gmail.com>
10807
10808 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10809
dc92ace0
MK
108102014-03-01 Mark Kettenis <kettenis@gnu.org>
10811
10812 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10813
a900370f
MK
108142014-03-01 Mark Kettenis <kettenis@gnu.org>
10815
10816 * i386obsd-nat.c: Include "obsd-nat.h".
10817 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10818 add_target.
10819 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10820
b72a7981
MK
108212014-03-01 Mark Kettenis <kettenis@gnu.org>
10822
10823 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10824
96c70aba
MK
108252014-03-01 Mark Kettenis <kettenis@gnu.org>
10826
10827 * mips64obsd-nat.c: Include "obsd-nath".
10828 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10829 add_target
10830 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10831
874a80af
MK
108322014-03-01 Mark Kettenis <kettenis@gnu.org>
10833
8fd408f1
MK
10834 * amd64obsd-nat.c: Include "obsd-nat,h.
10835 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10836 add_target.
874a80af
MK
10837 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10838
9cf95373
SC
108392014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10840
10841 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10842 (find_overload_match): Update call to find_oload_champ.
10843 (find_oload_champ_namespace_loop): Likewise
10844
863e4da4
MK
108452014-02-28 Mark Kettenis <kettenis@gnu.org>
10846
025cac40
MK
10847 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10848
1ed586ce
MK
10849 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10850 * config/sparc/obsd64.mh: New file.
10851 * sparc64obsd-nat.c: New file.
10852
863e4da4
MK
10853 * obsd-nat.h: New file.
10854 * obsd-nat.c: New file.
10855 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10856 (ALLDEPFILES): Add obsd-nat.c.
10857
89de4da4
TT
108582014-02-28 Tom Tromey <tromey@redhat.com>
10859
10860 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10861 * cli-out.h (cli_ui_out_impl): Now const.
10862 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10863 * ui-out.c (struct ui_out) <impl>: Now const.
10864 (default_ui_out_impl): Now const.
10865 (ui_out_new): Make 'impl' parameter const.
10866 * ui-out.h (ui_out_new): Update.
10867
c725e7b6
MK
108682014-02-27 Mark Kettenis <kettenis@gnu.org>
10869
10870 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10871
670b46b3
MK
108722014-02-27 Mark Kettenis <kettenis@gnu.org>
10873
10874 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10875
c91550fc
JK
108762014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 Additional PR 8882 fix.
10879 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10880
2fa0369e
PA
108812014-02-27 Pedro Alves <palves@redhat.com>
10882
10883 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10884 isn't set.
10885
d632a097
PA
108862014-02-27 Pedro Alves <palves@redhat.com>
10887
10888 PR 12702
10889 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10890 * nat/linux-waitpid.c: Include string.h.
10891 (status_to_str): Moved here and made extern.
10892 * nat/linux-waitpid.h (status_to_str): New declaration.
10893
2ebd5a35
HZ
108942014-02-27 Hui Zhu <hui@codesourcery.com>
10895
10896 PR 12702
10897 * infrun.c (ptid_match): Move ...
10898 * common/ptid.c (ptid_match): ... here.
10899 * inferior.h (ptid_match): Move ...
10900 * common/ptid.h (ptid_match): ... here.
10901
3cdd631f
MK
109022014-02-27 Mark Kettenis <kettenis@gnu.org>
10903
10904 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10905 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10906 gdb_target_obs.
10907
bee30a64
MK
109082014-02-27 Mark Kettenis <kettenis@gnu.org>
10909
10910 * obsd-tdep.c (obsd_auxv_parse): New function.
10911 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10912
10913 * gdbarch.sh (auxv_parse): New.
10914 * gdbarch.h: Regenerated.
10915 * gdbarch.c: Regenerated.
10916 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10917
7a5a839f
LC
109182014-02-26 Ludovic Courtès <ludo@gnu.org>
10919
10920 * guile/scm-value.c (gdbscm_history_append_x): New function.
10921 (value_functions): Add it.
10922
31aa7e4e
JB
109232014-02-27 Joel Brobecker <brobecker@adacore.com>
10924
10925 * dwarf2read.c (attr_value_as_address): New function.
10926 (dwarf2_find_base_address, read_call_site_scope): Use
10927 attr_value_as_address in place of DW_ADDR.
10928 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10929 the low and high addresses. Slight rework of the handling
10930 of the high pc being a constant form, and limit it to
10931 DWARF verson 4 or higher.
10932 (dwarf2_record_block_ranges): Likewise.
10933 (read_partial_die): Likewise.
10934 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10935
9b333ba3
TT
109362014-02-26 Tom Tromey <tromey@redhat.com>
10937
10938 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10939
5f6cac40
TT
109402014-02-26 Tom Tromey <tromey@redhat.com>
10941
10942 * elfread.c (elf_read_minimal_symbols): Return early if
10943 minimal symbols have already been read. Add "ei" parameter.
10944 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10945 * minsyms.c (prim_record_minimal_symbol_full): Update.
10946 * objfiles.h (struct objstats) <n_minsyms>: Move...
10947 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10948 * symmisc.c (print_objfile_statistics): Update.
10949
2750ef27
TT
109502014-02-26 Tom Tromey <tromey@redhat.com>
10951
10952 * elfread.c (elf_read_minimal_symbols): New function, from
10953 elf_symfile_read.
10954 (elf_symfile_read): Call it.
10955
34643a32
TT
109562014-02-26 Tom Tromey <tromey@redhat.com>
10957
10958 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10959 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10960 (lookup_minimal_symbol_solib_trampoline)
10961 (lookup_minimal_symbol_by_pc_section_1)
10962 (lookup_minimal_symbol_and_objfile): Update.
10963 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10964 Don't allocate a minimal symbol if minsyms have already been read.
10965 (build_minimal_symbol_hash_tables): Update.
10966 (install_minimal_symbols): Do nothing if minsyms already read.
10967 Use the per-BFD obstack.
10968 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10969 * objfiles.c (allocate_objfile): Call
10970 terminate_minimal_symbol_table later.
10971 (have_minimal_symbols): Update.
10972 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10973 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10974 Move from struct objfile.
10975 <minsyms_read>: New field.
10976 (struct objfile) <msymbols, minimal_symbol_count,
10977 msymbol_hash, msymbol_demangled_hash>: Move.
10978 (ALL_OBJFILE_MSYMBOLS): Update.
10979 * symfile.c (read_symbols): Set minsyms_read.
10980 (reread_symbols): Update.
10981 * symmisc.c (dump_objfile, dump_msymbols): Update.
10982
2273f0ac
TT
109832014-02-26 Tom Tromey <tromey@redhat.com>
10984
10985 * minsyms.c (msymbols_sort): Remove.
10986 * minsyms.h (msymbols_sort): Remove.
10987 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10988 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10989 * elfread.c (elf_symtab_read): Don't add section offsets.
10990 * xcoffread.c (record_minimal_symbol): Don't add section offset
10991 to minimal symbol address.
10992 * somread.c (text_offset, data_offset): Remove.
10993 (som_symtab_read): Don't add section offsets to minimal symbol
10994 addresses.
10995 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10996 Don't add section offsets to minimal symbols.
10997 * coffread.c (coff_symtab_read): Don't add section offsets
10998 to minimal symbol addresses.
10999 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11000 to minimal symbol addresses.
11001 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11002 section offset to minimal symbol addresses.
11003 * mdebugread.c (parse_partial_symbols): Don't add section
11004 offset to minimal symbol addresses.
11005 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11006 offset to minimal symbol addresses.
11007
77e371c0
TT
110082014-02-26 Tom Tromey <tromey@redhat.com>
11009
11010 * ada-lang.c (ada_main_name): Update.
11011 (ada_add_standard_exceptions): Update.
11012 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11013 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11014 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11015 * auxv.c (ld_so_xfer_auxv): Update.
11016 * avr-tdep.c (avr_scan_prologue): Update.
11017 * ax-gdb.c (gen_var_ref): Update.
11018 * blockframe.c (get_pc_function_start)
11019 (find_pc_partial_function_gnu_ifunc): Update.
11020 * breakpoint.c (create_overlay_event_breakpoint)
11021 (create_longjmp_master_breakpoint)
11022 (create_std_terminate_master_breakpoint)
11023 (create_exception_master_breakpoint): Update.
11024 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11025 * c-valprint.c (c_val_print): Update.
11026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11027 * common/agent.c (agent_look_up_symbols): Update.
11028 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11029 * dwarf2loc.c (call_site_to_target_addr): Update.
11030 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11031 * elfread.c (elf_gnu_ifunc_record_cache)
11032 (elf_gnu_ifunc_resolve_by_got): Update.
11033 * findvar.c (default_read_var_value): Update.
11034 * frame.c (inside_main_func): Update.
11035 * frv-tdep.c (frv_frame_this_id): Update.
11036 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11037 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11038 Update.
11039 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11040 (hppa_hpux_find_dummy_bpaddr): Update.
11041 * hppa-tdep.c (hppa_symbol_address): Update.
11042 * infcmd.c (until_next_command): Update.
11043 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11044 Update.
11045 * linespec.c (minsym_found, add_minsym): Update.
11046 * linux-nat.c (get_signo): Update.
11047 * linux-thread-db.c (inferior_has_bug): Update.
11048 * m32c-tdep.c (m32c_return_value)
11049 (m32c_m16c_address_to_pointer): Update.
11050 * m32r-tdep.c (m32r_frame_this_id): Update.
11051 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11052 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11053 * maint.c (maintenance_translate_address): Update.
11054 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11055 (frob_address): New function.
11056 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11057 frob_address. Rename parameter to "pc_in".
11058 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11059 addresses.
11060 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11061 Update.
11062 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11063 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11064 * objc-lang.c (find_objc_msgsend): Update.
11065 * objfiles.c (objfile_relocate1): Update.
11066 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11067 * p-valprint.c (pascal_val_print): Update.
11068 * parse.c (write_exp_msymbol): Update.
11069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11070 (ppc_elfv2_skip_entrypoint): Update.
11071 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11072 * printcmd.c (build_address_symbolic, msym_info)
11073 (address_info): Update.
11074 * proc-service.c (ps_pglobal_lookup): Update.
11075 * psymtab.c (find_pc_sect_psymtab_closer)
11076 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11077 Change msymbol parameter to bound_minimal_symbol.
11078 * ravenscar-thread.c (get_running_thread_id): Update.
11079 * remote.c (remote_check_symbols): Update.
11080 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11081 address.
11082 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11083 * solib-dsbt.c (lm_base): Update.
11084 * solib-frv.c (lm_base, main_got): Update.
11085 * solib-irix.c (locate_base): Update.
11086 * solib-som.c (som_solib_create_inferior_hook)
11087 (link_map_start): Update.
11088 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11089 * solib-svr4.c (elf_locate_base, enable_break): Update.
11090 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11091 (flush_ea_cache): Update.
11092 * stabsread.c (define_symbol, scan_file_globals): Update.
11093 * stack.c (find_frame_funname): Update.
11094 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11095 (debug_qf_find_pc_sect_symtab): Update.
11096 * symfile.c (simple_read_overlay_table)
11097 (simple_overlay_update): Update.
11098 * symfile.h (struct quick_symbol_functions)
11099 <find_pc_sect_symtab>: Change type of msymbol to
11100 bound_minimal_symbol.
11101 * symmisc.c (dump_msymbols): Update.
11102 * symtab.c (find_pc_sect_symtab_via_partial)
11103 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11104 (search_symbols, print_msymbol_info): Update.
11105 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11106 (MSYMBOL_VALUE_ADDRESS): Redefine.
11107 (BMSYMBOL_VALUE_ADDRESS): New macro.
11108 * tracepoint.c (scope_info): Update.
11109 * tui/tui-disasm.c (tui_find_disassembly_address)
11110 (tui_get_begin_asm_address): Update.
11111 * valops.c (find_function_in_inferior): Update.
11112 * value.c (value_static_field, value_fn_field): Update.
11113
3b7344d5
TT
111142014-02-26 Tom Tromey <tromey@redhat.com>
11115
11116 * ada-lang.c (ada_update_initial_language): Update.
11117 (ada_main_name, ada_has_this_exception_support): Update.
11118 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11119 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11120 * arm-tdep.c (arm_skip_stub): Update.
11121 * auxv.c (ld_so_xfer_auxv): Update.
11122 * avr-tdep.c (avr_scan_prologue): Update.
11123 * ax-gdb.c (gen_var_ref): Update.
11124 * breakpoint.c (struct breakpoint_objfile_data)
11125 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11126 type to bound_minimal_symbol.
11127 (create_overlay_event_breakpoint)
11128 (create_longjmp_master_breakpoint)
11129 (create_std_terminate_master_breakpoint)
11130 (create_exception_master_breakpoint): Update.
11131 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11132 * c-exp.y (classify_name): Update.
11133 * coffread.c (coff_symfile_read): Update.
11134 * common/agent.c (agent_look_up_symbols): Update.
11135 * d-lang.c (d_main_name): Update.
11136 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11137 * dec-thread.c (enable_dec_thread): Update.
11138 * dwarf2loc.c (call_site_to_target_addr): Update.
11139 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11140 * eval.c (evaluate_subexp_standard): Update.
11141 * findvar.c (struct minsym_lookup_data) <result>: Change type
11142 to bound_minimal_symbol.
11143 <objfile>: Remove.
11144 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11145 * frame.c (inside_main_func): Update.
11146 * frv-tdep.c (frv_frame_this_id): Update.
11147 * gcore.c (call_target_sbrk): Update.
11148 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11149 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11150 Update.
11151 * go-lang.c (go_main_name): Update.
11152 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11153 (hppa_hpux_find_import_stub_for_addr): Update.
11154 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11155 Update. Change return type.
11156 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11157 type.
11158 * jit.c (jit_breakpoint_re_set_internal): Update.
11159 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11160 Update.
11161 * linux-nat.c (get_signo): Update.
11162 * linux-thread-db.c (inferior_has_bug): Update
11163 * m32c-tdep.c (m32c_return_value)
11164 (m32c_m16c_address_to_pointer): Update.
11165 * m32r-tdep.c (m32r_frame_this_id): Update.
11166 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11167 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11168 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11169 lookup_minimal_symbol. Change return type.
11170 (lookup_minimal_symbol): Remove.
11171 (lookup_bound_minimal_symbol): Update.
11172 (lookup_minimal_symbol_text): Change return type.
11173 (lookup_minimal_symbol_solib_trampoline): Change return type.
11174 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11175 (lookup_minimal_symbol_solib_trampoline): Change return type.
11176 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11177 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11178 (value_nsstring, find_imps): Update.
11179 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11180 * p-lang.c (pascal_main_name): Update.
11181 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11182 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11183 * proc-service.c (ps_pglobal_lookup): Update.
11184 * ravenscar-thread.c (get_running_thread_msymbol): Change
11185 return type.
11186 (has_ravenscar_runtime, get_running_thread_id): Update.
11187 * remote.c (remote_check_symbols): Update.
11188 * sol-thread.c (ps_pglobal_lookup): Update.
11189 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11190 * solib-dsbt.c (lm_base): Update.
11191 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11192 Update.
11193 * solib-irix.c (locate_base): Update.
11194 * solib-som.c (som_solib_create_inferior_hook)
11195 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11196 Update.
11197 * solib-spu.c (spu_enable_break): Update.
11198 * solib-svr4.c (elf_locate_base, enable_break): Update.
11199 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11200 (flush_ea_cache): Update.
11201 * stabsread.c (define_symbol): Update.
11202 * symfile.c (simple_read_overlay_table): Update.
11203 * symtab.c (find_pc_sect_line): Update.
11204 * tracepoint.c (scope_info): Update.
11205 * tui-disasm.c (tui_get_begin_asm_address): Update.
11206 * value.c (value_static_field): Update.
11207
40c1a007
TT
112082014-02-26 Tom Tromey <tromey@redhat.com>
11209
11210 * minsyms.c (prim_record_minimal_symbol_full): Use
11211 SET_MSYMBOL_VALUE_ADDRESS.
11212 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11213 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11214 SET_MSYMBOL_VALUE_ADDRESS.
11215 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11216 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11217
efd66ac6
TT
112182014-02-26 Tom Tromey <tromey@redhat.com>
11219
11220 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11221 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11222 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11223 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11224 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11225 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11226 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11227 * ada-lang.c (ada_main_name): Update.
11228 (ada_lookup_simple_minsym): Update.
11229 (ada_make_symbol_completion_list): Update.
11230 (ada_add_standard_exceptions): Update.
11231 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11232 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11233 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11234 * arm-tdep.c (skip_prologue_function): Update.
11235 (arm_skip_stack_protector, arm_skip_stub): Update.
11236 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11237 (arm_wince_skip_main_prologue): Update.
11238 * auxv.c (ld_so_xfer_auxv): Update.
11239 * avr-tdep.c (avr_scan_prologue): Update.
11240 * ax-gdb.c (gen_var_ref): Update.
11241 * block.c (call_site_for_pc): Update.
11242 * blockframe.c (get_pc_function_start): Update.
11243 (find_pc_partial_function_gnu_ifunc): Update.
11244 * breakpoint.c (create_overlay_event_breakpoint): Update.
11245 (create_longjmp_master_breakpoint): Update.
11246 (create_std_terminate_master_breakpoint): Update.
11247 (create_exception_master_breakpoint): Update.
11248 (resolve_sal_pc): Update.
11249 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11250 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11251 Update.
11252 * c-valprint.c (c_val_print): Update.
11253 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11254 * coffread.c (coff_symfile_read): Update.
11255 * common/agent.c (agent_look_up_symbols): Update.
11256 * dbxread.c (find_stab_function_addr): Update.
11257 (end_psymtab): Update.
11258 * dwarf2loc.c (call_site_to_target_addr): Update.
11259 (func_verify_no_selftailcall): Update.
11260 (tailcall_dump): Update.
11261 (call_site_find_chain_1): Update.
11262 (dwarf_expr_reg_to_entry_parameter): Update.
11263 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11264 (elf_gnu_ifunc_resolve_by_got): Update.
11265 * f-valprint.c (info_common_command): Update.
11266 * findvar.c (read_var_value): Update.
11267 * frame.c (get_prev_frame_1): Update.
11268 (inside_main_func): Update.
11269 * frv-tdep.c (frv_skip_main_prologue): Update.
11270 (frv_frame_this_id): Update.
11271 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11272 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11273 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11274 (gnuv3_skip_trampoline): Update.
11275 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11276 (hppa64_hpux_in_solib_call_trampoline): Update.
11277 (hppa_hpux_skip_trampoline_code): Update.
11278 (hppa64_hpux_search_dummy_call_sequence): Update.
11279 (hppa_hpux_find_import_stub_for_addr): Update.
11280 (hppa_hpux_find_dummy_bpaddr): Update.
11281 * hppa-tdep.c (hppa_symbol_address)
11282 (hppa_lookup_stub_minimal_symbol): Update.
11283 * i386-tdep.c (i386_skip_main_prologue): Update.
11284 (i386_pe_skip_trampoline_code): Update.
11285 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11286 * infcall.c (get_function_name): Update.
11287 * infcmd.c (until_next_command): Update.
11288 * jit.c (jit_breakpoint_re_set_internal): Update.
11289 (jit_inferior_init): Update.
11290 * linespec.c (minsym_found): Update.
11291 (add_minsym): Update.
11292 * linux-fork.c (info_checkpoints_command): Update.
11293 * linux-nat.c (get_signo): Update.
11294 * linux-thread-db.c (inferior_has_bug): Update.
11295 * m32c-tdep.c (m32c_return_value): Update.
11296 (m32c_m16c_address_to_pointer): Update.
11297 (m32c_m16c_pointer_to_address): Update.
11298 * m32r-tdep.c (m32r_frame_this_id): Update.
11299 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11300 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11301 * maint.c (maintenance_translate_address): Update.
11302 * minsyms.c (add_minsym_to_hash_table): Update.
11303 (add_minsym_to_demangled_hash_table): Update.
11304 (msymbol_objfile): Update.
11305 (lookup_minimal_symbol): Update.
11306 (iterate_over_minimal_symbols): Update.
11307 (lookup_minimal_symbol_text): Update.
11308 (lookup_minimal_symbol_by_pc_name): Update.
11309 (lookup_minimal_symbol_solib_trampoline): Update.
11310 (lookup_minimal_symbol_by_pc_section_1): Update.
11311 (lookup_minimal_symbol_and_objfile): Update.
11312 (prim_record_minimal_symbol_full): Update.
11313 (compare_minimal_symbols): Update.
11314 (compact_minimal_symbols): Update.
11315 (build_minimal_symbol_hash_tables): Update.
11316 (install_minimal_symbols): Update.
11317 (terminate_minimal_symbol_table): Update.
11318 (find_solib_trampoline_target): Update.
11319 (minimal_symbol_upper_bound): Update.
11320 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11321 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11322 (mips_skip_pic_trampoline_code): Update.
11323 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11324 * objc-lang.c (selectors_info): Update.
11325 (classes_info): Update.
11326 (find_methods): Update.
11327 (find_imps): Update.
11328 (find_objc_msgsend): Update.
11329 * objfiles.c (objfile_relocate1): Update.
11330 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11331 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11332 * p-valprint.c (pascal_val_print): Update.
11333 * parse.c (write_exp_msymbol): Update.
11334 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11335 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11336 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11337 * printcmd.c (build_address_symbolic): Update.
11338 (sym_info): Update.
11339 (address_info): Update.
11340 * proc-service.c (ps_pglobal_lookup): Update.
11341 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11342 (find_pc_sect_psymtab): Update.
11343 * python/py-framefilter.c (py_print_frame): Update.
11344 * ravenscar-thread.c (get_running_thread_id): Update.
11345 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11346 Update.
11347 * remote.c (remote_check_symbols): Update.
11348 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11349 (rs6000_skip_trampoline_code): Update.
11350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11351 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11352 * solib-dsbt.c (lm_base): Update.
11353 * solib-frv.c (lm_base): Update.
11354 (main_got): Update.
11355 * solib-irix.c (locate_base): Update.
11356 * solib-som.c (som_solib_create_inferior_hook): Update.
11357 (som_solib_desire_dynamic_linker_symbols): Update.
11358 (link_map_start): Update.
11359 * solib-spu.c (spu_enable_break): Update.
11360 (ocl_enable_break): Update.
11361 * solib-svr4.c (elf_locate_base): Update.
11362 (enable_break): Update.
11363 * spu-tdep.c (spu_get_overlay_table): Update.
11364 (spu_catch_start): Update.
11365 (flush_ea_cache): Update.
11366 * stabsread.c (define_symbol): Update.
11367 (scan_file_globals): Update.
11368 * stack.c (find_frame_funname): Update.
11369 (frame_info): Update.
11370 * symfile.c (simple_read_overlay_table): Update.
11371 (simple_overlay_update): Update.
11372 * symmisc.c (dump_msymbols): Update.
11373 * symtab.c (fixup_section): Update.
11374 (find_pc_sect_line): Update.
11375 (skip_prologue_sal): Update.
11376 (search_symbols): Update.
11377 (print_msymbol_info): Update.
11378 (rbreak_command): Update.
11379 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11380 (completion_list_objc_symbol): Update.
11381 (default_make_symbol_completion_list_break_on): Update.
11382 * tracepoint.c (scope_info): Update.
11383 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11384 (tui_get_begin_asm_address): Update.
11385 * valops.c (find_function_in_inferior): Update.
11386 * value.c (value_static_field): Update.
11387 (value_fn_field): Update.
11388
50e65b17
TT
113892014-02-26 Tom Tromey <tromey@redhat.com>
11390
11391 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11392 bound minimal symbols. Move code that knows about minsym
11393 table layout...
11394 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11395 function.
11396 * minsyms.h (minimal_symbol_upper_bound): Declare.
11397 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11398 minimal_symbol_upper_bound.
11399
1b588015
JB
114002014-02-27 Joel Brobecker <brobecker@adacore.com>
11401
11402 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11403 Use the type's name if its basic type does not have a tag.
11404
dbb9c2b1
JB
114052014-02-27 Joel Brobecker <brobecker@adacore.com>
11406
11407 * dwarf2read.c (read_subrange_type): Add comment.
11408
55426c9d
JB
114092014-02-27 Joel Brobecker <brobecker@adacore.com>
11410
11411 * dwarf2read.c (update_enumeration_type_from_children): New
11412 function, mostly extracted from process_structure_scope.
11413 (read_enumeration_type): Call update_enumeration_type_from_children.
11414 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11415 and flag_flag_enum fields.
11416
f2fce0ca
PA
114172014-02-26 Pedro Alves <palves@redhat.com>
11418
11419 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11420 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11421 to_xfer_partial method.
11422
7a44e40e
PA
114232014-02-26 Pedro Alves <palves@redhat.com>
11424
11425 * target.c (complete_target_initialization): Don't install
11426 default_xfer_partial as to_xfer_partial hook.
11427 (nomemory): Delete.
11428 (update_current_target): Don't INHERIT nor de_fault
11429 deprecated_xfer_memory. Delete de_fault macro.
11430 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11431 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11432 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11433 field.
11434
bd265cd0
PA
114352014-02-26 Pedro Alves <palves@redhat.com>
11436
11437 * go32-nat.c (my_write_child): New function.
11438 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11439 (go32_xfer_partial): New function.
11440 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11441 Instead install a to_xfer_partial hook.
11442
9d46c4e5
PA
114432014-02-26 Pedro Alves <palves@redhat.com>
11444
11445 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11446 to_xfer_partial helper. Rewrite.
11447 (procfs_xfer_partial): New function.
11448 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11449 Install a to_xfer_partial hook.
11450
a1583b1f
PA
114512014-02-26 Pedro Alves <palves@redhat.com>
11452
11453 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11454 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11455 (m32r_xfer_partial): New function.
11456 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11457 Install a to_xfer_partial hook.
11458
6df1b29f
PA
114592014-02-26 Pedro Alves <palves@redhat.com>
11460
11461 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11462 helper.
11463 (mips_xfer_partial): New function.
11464 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11465 hook. Install a to_xfer_partial hook.
11466
dc53a7ad
JB
114672014-02-26 Joel Brobecker <brobecker@adacore.com>
11468
11469 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11470 * gdbtypes.c (create_array_type_with_stride): New function,
11471 renaming create_array_type, but with an added parameter
11472 called "bit_stride".
11473 (create_array_type): Re-implement using
11474 create_array_type_with_stride.
11475 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11476 and DW_AT_bit_stride attributes.
11477
12ab52e9
PA
114782014-02-26 Pedro Alves <palves@redhat.com>
11479
11480 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11481 task-specific breakpoints.
11482
d16461ae
PA
114832014-02-25 Pedro Alves <palves@redhat.com>
11484
11485 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11486 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11487
a8b16220
SS
114882014-02-25 Stan Shebs <stan@codesourcery.com>
11489
11490 * defs.h: Annotate comments for Doxygen.
11491
b9e795ee
TT
114922014-02-25 Tom Tromey <tromey@redhat.com>
11493
11494 * target.h (target_ignore): Don't declare.
11495 * target.c (target_ignore): Remove.
11496
849c862e
JK
114972014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11498
11499 PR gdb/16626
11500 * auto-load.c (auto_load_objfile_script_1): Change filename to
11501 debugfile.
11502
475109d8
JB
115032014-02-25 Joel Brobecker <brobecker@adacore.com>
11504
11505 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11506 documentation. Adjust prototype to match the target_ops
11507 to_xfer_partial method. Adjust implementation accordingly.
11508
e186c3bd
HZ
115092014-02-25 Hui Zhu <hui@codesourcery.com>
11510
11511 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11512 to_traceframe_info.
11513
6d451942
KB
115142014-02-25 Kevin Buettner <kevinb@redhat.com>
11515
041ab8b4 11516 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11517 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11518 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11519 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11520 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11521 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11522 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11523 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11524 New constants.
11525 (rl78_register_type): Use a data pointer type for SP and
11526 new pseudo registers mentioned above. Use a 16 bit integer
11527 type for all other register pairs.
11528 (rl78_register_name, rl78_g10_register_name): Update for
11529 new pseudo registers.
11530 (rl78_pseudo_register_read): Likewise.
11531 (rl78_pseudo_register_write): Likewise.
11532 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11533 to the newly added pseudo registers.
11534
eddf0bae
DE
115352014-02-24 Doug Evans <dje@google.com>
11536
11537 * value.c (record_latest_value): Fix comment.
11538 * printcmd.c (print_command_1): Remove code to handle -1 return from
11539 record_latest_value.
11540
e96027e0
PA
115412014-02-24 Pedro Alves <palves@redhat.com>
11542
11543 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11544 deprecated_xfer_memory hook.
11545 (procfs_xfer_partial): Call procfs_xfer_memory instead
11546 of the deprecated_xfer_memory target hook.
11547 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11548 helper.
11549
0837c976
YZ
115502014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11551
11552 * windows-nat.c (windows_xfer_shared_libraries): Return
11553 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11554 requested object is TARGET_OBJECT_LIBRARIES.
11555
bc113b4e
YQ
115562014-02-24 Yao Qi <yao@codesourcery.com>
11557
11558 * target.h (enum target_xfer_status)
11559 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11560 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11561 explicitly. New.
11562 * corefile.c (memory_error_message): User updated.
11563 * exec.c (section_table_read_available_memory): Likewise.
11564 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11565 * target.c (target_xfer_status_to_string): Likewise.
11566 (raw_memory_xfer_partial): Likewise.
11567 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11568 * valops.c (read_value_memory): Likewise.
11569 * exec.h: Update comments.
11570
01cb8804
YQ
115712014-02-24 Yao Qi <yao@codesourcery.com>
11572
11573 * target.c (target_xfer_status_to_string): Rename argument err
11574 to status.
11575 * target.h (target_xfer_status_to_string): Update declaration.
11576 Replace target_xfer_error_to_string with
11577 target_xfer_status_to_string in comment.
11578
93063aa6
YQ
115792014-02-24 Yao Qi <yao@codesourcery.com>
11580
11581 * mips-linux-nat.c (super_close): Update its type.
11582 (mips_linux_close): Pass 'self' to super_close.
11583
5c328c05
YQ
115842014-02-24 Yao Qi <yao@codesourcery.com>
11585
11586 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11587 * corefile.c (read_memory): Adjusted.
11588 * target.c (target_write_with_progress): Adjusted.
11589
f73023dd
YQ
115902014-02-23 Yao Qi <yao@codesourcery.com>
11591
11592 Revert two patches:
11593
11594 2013-10-25 Yao Qi <yao@codesourcery.com>
11595
11596 * remote.c (remote_traceframe_info): Return early if
11597 traceframe is not selected.
11598
11599 2013-07-19 Yao Qi <yao@codesourcery.com>
11600
11601 * target.c (update_current_target): Change the default action
11602 of 'to_traceframe_info' from tcomplain to return_zero.
11603 * target.h (struct target_ops) <to_traceframe_info>: Add more
11604 comments.
11605
5a2eb0ef
YQ
116062014-02-23 Yao Qi <yao@codesourcery.com>
11607
11608 * valops.c (read_value_memory): Rewrite it. Call
11609 target_xfer_partial in a loop.
11610 * exec.h (section_table_available_memory): Remove declaration.
11611 Move comments to ...
11612 * exec.c (section_table_available_memory): ... here. Make it
11613 static.
11614
1ee79381
YQ
116152014-02-23 Yao Qi <yao@codesourcery.com>
11616
11617 * exec.c (section_table_read_available_memory): New function.
11618 * exec.h (section_table_read_available_memory): Declare.
11619 * ctf.c (ctf_xfer_partial): Call
11620 section_table_read_available_memory.
11621 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11622
1ca49d37
YQ
116232014-02-23 Yao Qi <yao@codesourcery.com>
11624
11625 * ctf.c (ctf_xfer_partial): Move code to ...
11626 * exec.c (exec_read_partial_read_only): ... it. New function.
11627 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11628 * tracefile.c: Include "exec.h".
11629 * exec.h (exec_read_partial_read_only): Declare.
11630
a283690e
YQ
116312014-02-23 Yao Qi <yao@codesourcery.com>
11632
11633 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11634 (tfile_has_memory): Remove.
11635 (init_tfile_ops): Don't set fields to_has_all_memory and
11636 to_has_memory of tfile_ops.
11637 * tracefile.c (tracefile_has_all_memory): New function.
11638 (tracefile_has_memory): New function.
11639 (init_tracefile_ops): Initialize fields to_has_all_memory and
11640 to_has_memory of 'ops'.
11641
12e03cd0
YQ
116422014-02-23 Yao Qi <yao@codesourcery.com>
11643
11644 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11645 (ctf_thread_alive, ctf_get_trace_status): Remove.
11646 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11647 init_tracefile_ops.
11648 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11649 (tfile_has_stack, tfile_has_registers): Remove.
11650 (tfile_thread_alive): Remove.
11651 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11652 init_tracefile_ops.
11653 * tracefile.c (tracefile_has_stack): New function.
11654 (tracefile_has_registers): New function.
11655 (tracefile_thread_alive): New function.
11656 (tracefile_get_trace_status): New function.
11657 (init_tracefile_ops): New function.
11658 * tracefile.h (init_tracefile_ops): Declare.
11659
11395323
YQ
116602014-02-23 Yao Qi <yao@codesourcery.com>
11661
11662 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11663 (O_LARGEFILE): Likewise.
11664 (tfile_ops): Likewise.
11665 (TRACE_HEADER_SIZE): Likewise.
11666 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11667 (cur_data_size): Likewise.
11668 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11669 (tfile_close, tfile_files_info): Likewise.
11670 (tfile_get_trace_status): Likewise.
11671 (tfile_get_tracepoint_status): Likewise.
11672 (tfile_get_traceframe_address): Likewise.
11673 (tfile_trace_find, match_blocktype): Likewise.
11674 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11675 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11676 (tfile_get_trace_state_variable_value): Likewise.
11677 (tfile_has_all_memory, tfile_has_memory): Likewise.
11678 (tfile_has_stack, tfile_has_registers): Likewise.
11679 (tfile_thread_alive, build_traceframe_info): Likewise.
11680 (tfile_traceframe_info, init_tfile_ops): Likewise.
11681 (_initialize_tracepoint): Don't call init_tfile_ops
11682 and add_target_with_completer.
11683 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11684 exec.h, completer.h and filenames.h.
11685 (_initialize_tracefile_tfile): New function.
11686
7951c4eb
YQ
116872014-02-23 Yao Qi <yao@codesourcery.com>
11688
11689 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11690 tracefile-tfile.o.
11691 (HFILES_NO_SRCDIR): Add tracefile.h.
11692 * ctf.c: Include "tracefile.h".
11693 * tracefile.h: New file.
11694 * tracefile.c: New file
11695 * tracefile-tfile.c: New file.
11696 * tracepoint.c: Include "tracefile.h".
11697 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11698 (stop_reason_names): Add const.
11699 (trace_file_writer_xfree): Move it to tracefile.c.
11700 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11701 (trace_save_ctf): Likewise.
11702 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11703 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11704 (tfile_write_header, tfile_write_regblock_type): Likewise.
11705 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11706 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11707 (tfile_write_raw_data, tfile_end): Likewise.
11708 (tfile_trace_file_writer_new): Likewise.
11709 (free_uploaded_tp): Make it extern.
11710 (free_uploaded_tsv): Make it extern.
11711 (_initialize_tracepoint): Move code to register command 'tsave'
11712 to tracefile.c.
11713 * tracepoint.h (stop_reason_names): Declare.
11714 (struct trace_frame_write_ops): Move it to tracefile.h.
11715 (struct trace_file_write_ops): Likewise.
11716 (struct trace_file_writer): Likewise.
11717 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11718
184cd072
JK
117192014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11720
11721 PR gdb/16594
11722 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11723 process name.
11724 (get_cores_used_by_process): New parameter num_cores, use it.
11725 (linux_xfer_osdata_processes): Pass num_cores to it.
11726 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11727 process name.
11728
c63528fc
AK
117292014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11730
11731 * target.c (memory_xfer_partial): Fix length arg in call to
11732 breakpoint_xfer_memory.
11733
d7b30f67
SDJ
117342014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11735
11736 PR tdep/16397
11737 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11738 number comes after the + or - signs. Adjust length of register
11739 name to be extracted.
11740
8838afaf
TT
117412014-02-20 Tom Tromey <tromey@redhat.com>
11742
11743 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11744 (ada_varobj_ops): Mark "extern".
11745
05227d14
TT
117462014-02-20 Tom Tromey <tromey@redhat.com>
11747
11748 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11749
1254eefc
DE
117502014-02-20 Doug Evans <xdje42@gmail.com>
11751
11752 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11753 All callers updated.
11754 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11755 All callers updated.
11756 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11757 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11758
adde2bff
DE
117592014-02-20 lin zuojian <manjian2006@gmail.com>
11760 Joel Brobecker <brobecker@adacore.com>
11761 Doug Evans <xdje42@gmail.com>
11762
11763 PR symtab/16581
11764 * dwarf2read.c (struct die_info): New member in_process.
11765 (reset_die_in_process): New function.
11766 (process_die): Set it at the start, reset when returning.
11767 (inherit_abstract_dies): Only call process_die if origin_child_die
11768 not already being processed.
11769
3be75f87
JB
117702014-02-20 Joel Brobecker <brobecker@adacore.com>
11771
11772 * windows-nat.c (handle_unload_dll): Add function documentation.
11773 (do_initial_windows_stuff): Add comment explaining why we wait
11774 until after inferior initialization has finished before
11775 processing all DLLs.
11776
47f7ffdb
JB
117772014-02-20 Joel Brobecker <brobecker@adacore.com>
11778
11779 * windows-nat.c (get_module_name): Delete.
11780 (windows_get_exec_module_filename): New function, mostly
11781 inspired from get_module_name.
11782 (windows_pid_to_exec_file): Replace call to get_module_name
11783 by call to windows_get_exec_module_filename.
11784
1cd9feab
JB
117852014-02-20 Joel Brobecker <brobecker@adacore.com>
11786
11787 * windows-nat.c (handle_load_dll): Rewrite this function's
11788 introductory comment. Remove code using get_module_name
11789 to get the DLL's name.
11790
ea39ad35
JB
117912014-02-20 Joel Brobecker <brobecker@adacore.com>
11792
11793 * windows-nat.c (get_windows_debug_event): Ignore
11794 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11795 if windows_initialization_done == 0.
11796 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11797 Adjust implementation to always load all DLLs.
11798 (do_initial_windows_stuff): Replace call to
11799 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11800
95060284
JB
118012014-02-20 Joel Brobecker <brobecker@adacore.com>
11802
11803 * windows-nat.c (_initialize_windows_nat): Deprecate the
11804 "dll-symbols" command. Turn the "add-shared-symbol-files"
11805 and "assf" aliases into commands, and deprecate them as well.
11806 * NEWS: Add entry explaining that "dll-symbols" and its two
11807 aliases are now deprecated.
11808
8d4fdb12
JB
118092014-02-20 Joel Brobecker <brobecker@adacore.com>
11810
11811 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11812 new-line in debug string. Remove trailing spaces.
11813
1b281443
SS
118142014-02-19 Stan Shebs <stan@codesourcery.com>
11815
11816 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11817
f7bd0f78
SC
118182014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11819
11820 * NEWS: Add entry for the new feature
11821 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11822 and class values.
11823
399ebc3d
SS
118242014-02-19 Stan Shebs <stan@codesourcery.com>
11825
11826 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11827
c658158d
PA
118282014-02-19 Pedro Alves <palves@redhat.com>
11829
11830 * common/ptid.h (struct ptid): Mention that process_stratum
11831 targets should prefer ptid.lwp.
11832
ba348170
PA
118332014-02-19 Pedro Alves <palves@redhat.com>
11834
11835 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11836 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11837 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11838 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11839 store remote thread ids rather than ptid.tid.
11840 (_initialize_remote): Adjust.
11841
ac01945b
TT
118422014-02-19 Tom Tromey <tromey@redhat.com>
11843
11844 * target.c (target_get_unwinder): Rewrite.
11845 (target_get_tailcall_unwinder): Rewrite.
11846 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11847 (record_btrace_to_get_tailcall_unwinder): New function.
11848 (init_record_btrace_ops): Update.
11849 * target.h (struct target_ops) <to_get_unwinder,
11850 to_get_tailcall_unwinder>: Now function pointers. Use
11851 TARGET_DEFAULT_RETURN.
11852
8476dc92
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11856 argument.
11857 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11858
c0eca49f
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11862 directly.
11863 * target-delegates.c: Rebuild.
11864 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11865 TARGET_DEFAULT_FUNC.
11866 * target.c (default_target_decr_pc_after_break): Rename from
11867 forward_target_decr_pc_after_break. Simplify.
11868 (target_decr_pc_after_break): Rely on delegation.
11869
596b6b39
TT
118702014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target.c (update_current_target): Do not INHERIT to_doc or
11873 to_magic. Do not de_fault to_open or to_close.
11874
b427c1bc
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * gcore.h (objfile_find_memory_regions): Declare.
11878 * gcore.c (objfile_find_memory_regions): No longer static. Add
11879 "self" argument.
11880 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11881 * exec.c: Include gcore.h.
11882 (exec_set_find_memory_regions): Remove.
11883 (exec_find_memory_regions): Remove.
11884 (exec_do_find_memory_regions): Remove.
11885 (init_exec_ops): Update.
11886 * defs.h (exec_set_find_memory_regions): Remove.
11887
9b144037
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.h (struct target_ops) <to_extra_thread_info,
11892 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11893 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11894 not 0, in TARGET_DEFAULT_RETURN.
11895
555bbdeb
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target.c (complete_target_initialization): Remove casts. Use
11899 return_zero_has_execution.
11900 (return_zero): Add "ignore" argument.
11901 (return_zero_has_execution): New function.
11902 (init_dummy_target): Remove casts. Use
11903 return_zero_has_execution.
11904
be4ddd36
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * target.c (update_current_target): Update comments. Do not
11908 INHERIT to_stratum.
11909
2117c711
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11913 needed.
11914 * corelow.c (core_read_description): Delegate when needed.
11915 * remote.c (remote_read_description): Delegate when needed.
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_read_description): Rewrite.
11918 * target.h (struct target_ops) <to_read_description>: Update
11919 comment. Use TARGET_DEFAULT_RETURN.
11920
e88ef65c
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target-delegates.c: Rebuild.
11924 * target.c (update_current_target): Don't inherit or default
11925 to_can_run.
11926 (find_default_run_target): Check against delegate_can_run.
11927 * target.h (struct target_ops) <to_can_run>: Use
11928 TARGET_DEFAULT_RETURN.
11929
86a0854a
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (target_disconnect): Unconditionally delegate.
11934 * target.h (struct target_ops) <to_disconnect>: Use
11935 TARGET_DEFAULT_NORETURN.
11936
ee97f592
TT
119372014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * record.c (record_stop): Unconditionally delegate.
11940 * target-delegates.c: Rebuild.
11941 * target.c (target_stop_recording): Unconditionally delegate.
11942 * target.h (struct target_ops) <to_stop_recording>: Use
11943 TARGET_DEFAULT_IGNORE.
11944
6dc7fcf4
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target-delegates.c: Rebuild.
11948 * target.c (target_enable_btrace): Unconditionally delegate.
11949 * target.h (struct target_ops) <to_enable_btrace>: Use
11950 TARGET_DEFAULT_NORETURN.
11951
eb5b20d4
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (target_read_btrace): Unconditionally delegate.
11956 * target.h (struct target_ops) <to_read_btrace>: Use
11957 TARGET_DEFAULT_NORETURN.
11958
9ace480d
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target-delegates.c: Rebuild.
11962 * target.c (target_teardown_btrace): Unconditionally delegate.
11963 * target.h (struct target_ops) <to_teardown_btrace>: Use
11964 TARGET_DEFAULT_NORETURN.
11965
8dc292d3
TT
119662014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target-delegates.c: Rebuild.
11969 * target.c (target_disable_btrace): Unconditionally delegate.
11970 * target.h (struct target_ops) <to_disable_btrace>: Use
11971 TARGET_DEFAULT_NORETURN.
11972
58a5184e
TT
119732014-02-19 Tom Tromey <tromey@redhat.com>
11974
11975 * target-delegates.c: Rebuild.
11976 * target.c (default_search_memory): New function.
11977 (simple_search_memory): Update comment.
11978 (target_search_memory): Unconditionally delegate.
11979 * target.h (struct target_ops) <to_search_memory>: Use
11980 TARGET_DEFAULT_FUNC.
11981
8de71aab
TT
119822014-02-19 Tom Tromey <tromey@redhat.com>
11983
11984 * auxv.c (default_auxv_parse): No longer static.
11985 (target_auxv_parse): Unconditionally delegate.
11986 * auxv.h (default_auxv_parse): Declare.
11987 * target-delegates.c: Rebuild.
11988 * target.c: Include auxv.h.
11989 * target.h (struct target_ops) <to_auxv_parse>: Use
11990 TARGET_DEFAULT_FUNC.
11991
6b2c5a57
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_memory_map): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_memory_map>: Use
11997 TARGET_DEFAULT_RETURN.
11998
cbffc065
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target-delegates.c: Rebuild.
12002 * target.c (target_thread_alive): Unconditionally delegate.
12003 * target.h (struct target_ops) <to_thread_alive>: Use
12004 TARGET_DEFAULT_RETURN.
12005
f09e2107
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target-delegates.c: Rebuild.
12009 * target.c (target_save_record): Unconditionally delegate.
12010 * target.h (struct target_ops) <to_save_record>: Use
12011 TARGET_DEFAULT_NORETURN.
12012
07366925
TT
120132014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target-delegates.c: Rebuild.
12016 * target.c (target_delete_record): Unconditionally delegate.
12017 * target.h (struct target_ops) <to_delete_record>: Use
12018 TARGET_DEFAULT_NORETURN.
12019
dd2e9d25
TT
120202014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (target_record_is_replaying): Unconditionally
12024 delegate.
12025 * target.h (struct target_ops) <to_record_is_replaying>: Use
12026 TARGET_DEFAULT_RETURN.
12027
671e76cc
TT
120282014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (target_goto_record_begin): Unconditionally delegate.
12032 * target.h (struct target_ops) <to_goto_record_begin>: Use
12033 TARGET_DEFAULT_NORETURN.
12034
e9179bb3
TT
120352014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (target_goto_record_end): Unconditionally delegate.
12039 * target.h (struct target_ops) <to_goto_record_end>: Use
12040 TARGET_DEFAULT_NORETURN.
12041
05969c84
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (target_goto_record): Unconditionally delegate.
12046 * target.h (struct target_ops) <to_goto_record>: Use
12047 TARGET_DEFAULT_NORETURN.
12048
3679abfa
TT
120492014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (target_insn_history): Unconditionally delegate.
12053 * target.h (struct target_ops) <to_insn_history>: Use
12054 TARGET_DEFAULT_NORETURN.
12055
8444ab58
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (target_insn_history_from): Unconditionally delegate.
12060 * target.h (struct target_ops) <to_insn_history_from>: Use
12061 TARGET_DEFAULT_NORETURN.
12062
c29302cc
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target-delegates.c: Rebuild.
12066 * target.c (target_insn_history_range): Unconditionally delegate.
12067 * target.h (struct target_ops) <to_insn_history_range>: Use
12068 TARGET_DEFAULT_NORETURN.
12069
170049d4
TT
120702014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target-delegates.c: Rebuild.
12073 * target.c (target_call_history): Unconditionally delegate.
12074 * target.h (struct target_ops) <to_call_history>: Use
12075 TARGET_DEFAULT_NORETURN.
12076
16fc27d6
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target-delegates.c: Rebuild.
12080 * target.c (target_call_history_from): Unconditionally delegate.
12081 * target.h (struct target_ops) <to_call_history_from>: Use
12082 TARGET_DEFAULT_NORETURN.
12083
115d9817
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (target_call_history_range): Unconditionally delegate.
12088 * target.h (struct target_ops) <to_call_history_range>: Use
12089 TARGET_DEFAULT_NORETURN.
12090
eb276a6b
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target-delegates.c: Rebuild.
12094 * target.c (target_verify_memory): Unconditionally delegate.
12095 * target.h (struct target_ops) <to_verify_memory>: Use
12096 TARGET_DEFAULT_NORETURN.
12097
9e538d0d
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (target_core_of_thread): Unconditionally delegate.
12102 * target.h (struct target_ops) <to_core_of_thread>: Use
12103 TARGET_DEFAULT_RETURN.
12104
f6fb2925
TT
121052014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * target-delegates.c: Rebuild.
12108 * target.c (target_flash_done): Unconditionally delegate.
12109 * target.h (struct target_ops) <to_flash_done>: Use
12110 TARGET_DEFAULT_NORETURN.
12111
e8a6c6ac
TT
121122014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target-delegates.c: Rebuild.
12115 * target.c (target_flash_erase): Unconditionally delegate.
12116 * target.h (struct target_ops) <to_flash_erase>: Use
12117 TARGET_DEFAULT_NORETURN.
12118
7e35c012
TT
121192014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target-delegates.c: Rebuild.
12122 * target.c (target_get_section_table): Unconditionally delegate.
12123 * target.h (struct target_ops) <to_get_section_table>: Use
12124 TARGET_DEFAULT_RETURN.
12125
770234d3
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target-delegates.c: Rebuild.
12129 * target.c (target_pid_to_str): Unconditionally delegate.
12130 (init_dummy_target): Don't initialize to_pid_to_str.
12131 (default_pid_to_str): Rename from dummy_pid_to_str.
12132 * target.h (struct target_ops) <to_pid_to_str>: Use
12133 TARGET_DEFAULT_FUNC.
12134
09b0dc2b
TT
121352014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target-delegates.c: Rebuild.
12138 * target.c (target_find_new_threads): Unconditionally delegate.
12139 * target.h (struct target_ops) <to_find_new_threads>: Use
12140 TARGET_DEFAULT_RETURN.
12141
7d4f8efa
TT
121422014-02-19 Tom Tromey <tromey@redhat.com>
12143
12144 * target-delegates.c: Rebuild.
12145 * target.c (target_program_signals): Unconditionally delegate.
12146 * target.h (struct target_ops) <to_program_signals>: Use
12147 TARGET_DEFAULT_IGNORE.
12148
035cad7f
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target-delegates.c: Rebuild.
12152 * target.c (target_pass_signals): Unconditionally delegate.
12153 * target.h (struct target_ops) <to_pass_signals>: Use
12154 TARGET_DEFAULT_IGNORE.
12155
8d657035
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target-delegates.c: Rebuild.
12159 * target.c (default_mourn_inferior): New function.
12160 (target_mourn_inferior): Unconditionally delegate.
12161 * target.h (struct target_ops) <to_mourn_inferior>: Use
12162 TARGET_DEFAULT_FUNC.
12163
098dba18
TT
121642014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target-delegates.c: Rebuild.
12167 * target.c (default_follow_fork): New function.
12168 (target_follow_fork): Unconditionally delegate.
12169 * target.h (struct target_ops) <to_follow_fork>: Use
12170 TARGET_DEFAULT_FUNC.
12171
423a4807
TT
121722014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target-delegates.c: Rebuild.
12175 * target.c (target_kill): Unconditionally delegate.
12176 * target.h (struct target_ops) <to_kill>: Use
12177 TARGET_DEFAULT_NORETURN.
12178
6c7e5e5c
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (target_masked_watch_num_registers): Unconditionally
12183 delegate.
12184 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12185 Use TARGET_DEFAULT_RETURN.
12186
8b1c364c
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (target_remove_mask_watchpoint): Unconditionally
12191 delegate.
12192 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12193 TARGET_DEFAULT_RETURN.
12194
cd4ae029
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target-delegates.c: Rebuild.
12198 * target.c (target_insert_mask_watchpoint): Unconditionally
12199 delegate.
12200 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12201 TARGET_DEFAULT_RETURN.
12202
a134316b
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_ranged_break_num_registers): Unconditionally
12207 delegate.
12208 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12209 Use TARGET_DEFAULT_RETURN.
12210
ad5989bd
TT
122112014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target-delegates.c: Rebuild.
12214 * target.c (target_fetch_registers): Unconditionally delegate.
12215 * target.h (struct target_ops) <to_fetch_registers>: Use
12216 TARGET_DEFAULT_NORETURN.
12217
46ee7e8d
TT
122182014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target-delegates.c: Rebuild.
12221 * target.c (update_current_target): Don't inherit or default
12222 to_stop.
12223 * target.h (struct target_ops) <to_stop>: Use
12224 TARGET_DEFAULT_IGNORE.
12225
843f59ed
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_can_run_breakpoint_commands.
12231 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12232 Use TARGET_DEFAULT_RETURN.
12233
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
12239 * target.h (struct target_ops)
12240 <to_supports_evaluation_of_breakpoint_conditions>: Use
12241 TARGET_DEFAULT_RETURN.
12242
0de91722
TT
122432014-02-19 Tom Tromey <tromey@redhat.com>
12244
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_augmented_libraries_svr4_read.
12248 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12249 Use TARGET_DEFAULT_RETURN.
12250
9a7d8b48
TT
122512014-02-19 Tom Tromey <tromey@redhat.com>
12252
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_can_use_agent.
12256 * target.h (struct target_ops) <to_can_use_agent>: Use
12257 TARGET_DEFAULT_RETURN.
12258
d9db5b21
TT
122592014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12263 to_use_agent.
12264 * target.h (struct target_ops) <to_use_agent>: Use
12265 TARGET_DEFAULT_NORETURN.
12266
92155eeb
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_traceframe_info.
12272 (return_null): Remove.
12273 * target.h (struct target_ops) <to_traceframe_info>: Use
12274 TARGET_DEFAULT_RETURN.
12275
d6522a22
TT
122762014-02-19 Tom Tromey <tromey@redhat.com>
12277
12278 * target-delegates.c: Rebuild.
12279 * target.c (update_current_target): Don't inherit or default
12280 to_static_tracepoint_markers_by_strid.
12281 * target.h (struct target_ops)
12282 <to_static_tracepoint_markers_by_strid>: Use
12283 TARGET_DEFAULT_NORETURN.
12284
4c3e4425
TT
122852014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_static_tracepoint_marker_at.
12290 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12291 Use TARGET_DEFAULT_RETURN.
12292
dcd6917f
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_set_permissions.
12298 * target.h (struct target_ops) <to_set_permissions>: Use
12299 TARGET_DEFAULT_IGNORE.
12300
22bcceee
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_get_tib_address.
12306 * target.h (struct target_ops) <to_get_tib_address>: Use
12307 TARGET_DEFAULT_NORETURN.
12308
8586ccaa
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_set_trace_notes.
12314 * target.h (struct target_ops) <to_set_trace_notes>: Use
12315 TARGET_DEFAULT_RETURN.
12316
91df8d1d
TT
123172014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't initialize
12321 to_set_trace_buffer_size.
12322 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12323 TARGET_DEFAULT_IGNORE.
12324
8d526939
TT
123252014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_set_circular_trace_buffer.
12330 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12331 TARGET_DEFAULT_IGNORE.
12332
0bcfeddf
TT
123332014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_set_disconnected_tracing.
12338 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12339 TARGET_DEFAULT_IGNORE.
12340
9249843f
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_get_min_fast_tracepoint_insn_len.
12346 (return_minus_one): Remove.
12347 * target.h (struct target_ops)
12348 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12349
ace92e7d
TT
123502014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_get_raw_trace_data.
12355 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12356 TARGET_DEFAULT_NORETURN.
12357
08120467
TT
123582014-02-19 Tom Tromey <tromey@redhat.com>
12359
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_upload_trace_state_variables.
12363 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12364 Use TARGET_DEFAULT_RETURN.
12365
1e949b00
TT
123662014-02-19 Tom Tromey <tromey@redhat.com>
12367
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_upload_tracepoints.
12371 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12372 TARGET_DEFAULT_RETURN.
12373
a2e6c147
TT
123742014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_save_trace_data.
12379 * target.h (struct target_ops) <to_save_trace_data>: Use
12380 TARGET_DEFAULT_NORETURN.
12381
959bcd0b
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_get_trace_state_variable_value.
12387 * target.h (struct target_ops)
12388 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12389
afc94e66
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_trace_find.
12395 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12396
e51c07ea
TT
123972014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target-delegates.c: Rebuild.
12400 * target.c (update_current_target): Don't inherit or default
12401 to_trace_stop.
12402 * target.h (struct target_ops) <to_trace_stop>: Use
12403 TARGET_DEFAULT_NORETURN.
12404
6fea14cd
TT
124052014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12409 to_get_tracepoint_status.
12410 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12411 TARGET_DEFAULT_NORETURN.
12412
4072d4ff
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_get_trace_status.
12418 * target.h (struct target_ops) <to_get_trace_status>: Use
12419 TARGET_DEFAULT_RETURN.
12420
25da2e80
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12425 to_trace_start.
12426 * target.h (struct target_ops) <to_trace_start>: Use
12427 TARGET_DEFAULT_NORETURN.
12428
86dd181d
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_trace_set_readonly_regions.
12434 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12435 Use TARGET_DEFAULT_NORETURN.
12436
05c41993
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_disable_tracepoint.
12442 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12443 TARGET_DEFAULT_NORETURN.
12444
151f70f1
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_enable_tracepoint.
12450 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12451 TARGET_DEFAULT_NORETURN.
12452
94eb98b9
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_download_trace_state_variable.
12458 * target.h (struct target_ops) <to_download_trace_state_variable>:
12459 Use TARGET_DEFAULT_NORETURN.
12460
719acc4a
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_can_download_tracepoint.
12466 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12467 TARGET_DEFAULT_RETURN.
12468
9a980a22
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_download_tracepoint.
12474 * target.h (struct target_ops) <to_download_tracepoint>: Use
12475 TARGET_DEFAULT_NORETURN.
12476
5536135b
TT
124772014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12481 to_trace_init.
12482 * target.h (struct target_ops) <to_trace_init>: Use
12483 TARGET_DEFAULT_RETURN.
12484
9409d39e
TT
124852014-02-19 Tom Tromey <tromey@redhat.com>
12486
12487 * target-delegates.c: Rebuild.
12488 * target.c (update_current_target): Don't inherit or default
12489 to_supports_string_tracing.
12490 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12491 TARGET_DEFAULT_RETURN.
12492
aab1b22d
TT
124932014-02-19 Tom Tromey <tromey@redhat.com>
12494
12495 * target-delegates.c: Rebuild.
12496 * target.c (update_current_target): Don't inherit or default
12497 to_supports_enable_disable_tracepoint.
12498 * target.h (struct target_ops)
12499 <to_supports_enable_disable_tracepoint>: Use
12500 TARGET_DEFAULT_RETURN.
12501
a7304748
TT
125022014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_supports_multi_process.
12507 * target.h (struct target_ops) <to_supports_multi_process>: Use
12508 TARGET_DEFAULT_RETURN.
12509
4229b31d
TT
125102014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_get_ada_task_ptid.
12515 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12516 TARGET_DEFAULT_FUNC.
12517
43eba180
TT
125182014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_thread_architecture.
12523 * target.h (struct target_ops) <to_thread_architecture>: Use
12524 TARGET_DEFAULT_FUNC.
12525
fe31bf5b
TT
125262014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12530 to_execution_direction.
12531 * target.h (struct target_ops) <to_execution_direction>: Use
12532 TARGET_DEFAULT_FUNC.
12533
53e1cfc7
TT
125342014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12538 to_can_execute_reverse.
12539 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12540 TARGET_DEFAULT_RETURN.
12541 (target_can_execute_reverse): Unconditionally delegate.
12542
9bb9d61d
TT
125432014-02-19 Tom Tromey <tromey@redhat.com>
12544
12545 * target-delegates.c: Rebuild.
12546 * target.c (update_current_target): Don't inherit or default
12547 to_goto_bookmark.
12548 (dummy_goto_bookmark): Remove.
12549 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12550 * target.h (struct target_ops) <to_goto_bookmark>: Use
12551 TARGET_DEFAULT_NORETURN.
12552
3dbafbbb
TT
125532014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target-delegates.c: Rebuild.
12556 * target.c (update_current_target): Don't inherit or default
12557 to_get_bookmark.
12558 (dummy_get_bookmark): Remove.
12559 (init_dummy_target): Don't inherit or default to_get_bookmark.
12560 * target.h (struct target_ops) <to_get_bookmark>: Use
12561 TARGET_DEFAULT_NORETURN
12562
16f796b1
TT
125632014-02-19 Tom Tromey <tromey@redhat.com>
12564
12565 * target-delegates.c: Rebuild.
12566 * target.c (update_current_target): Don't inherit or default
12567 to_make_corefile_notes.
12568 (init_dummy_target): Don't initialize to_make_corefile_notes.
12569 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12570 TARGET_DEFAULT_FUNC.
12571
0b5a2719
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_find_memory_regions.
12577 (init_dummy_target): Don't initialize to_find_memory_regions.
12578 * target.h (struct target_ops) <to_find_memory_regions>: Use
12579 TARGET_DEFAULT_FUNC.
12580
d9cb0195
TT
125812014-02-19 Tom Tromey <tromey@redhat.com>
12582
12583 * target-delegates.c: Rebuild.
12584 * target.c (update_current_target): Don't inherit or default
12585 to_log_command.
12586 * target.h (struct target_ops) <to_log_command>: Use
12587 TARGET_DEFAULT_IGNORE.
12588 (target_log_command): Unconditionally delegate.
12589
830ca330
TT
125902014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target-delegates.c: Rebuild.
12593 * target.c (update_current_target): Don't inherit or default
12594 to_pid_to_exec_file.
12595 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12596 TARGET_DEFAULT_RETURN.
12597
825828fc
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target-delegates.c: Rebuild.
12601 * target.c (update_current_target): Don't inherit or default
12602 to_thread_name.
12603 (target_thread_name): Unconditionally delegate.
12604 * target.h (struct target_ops) <to_thread_name>: Use
12605 TARGET_DEFAULT_RETURN.
12606
4a7e6dda
TT
126072014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target-delegates.c: Rebuild.
12610 * target.c (update_current_target): Don't inherit or default
12611 to_extra_thread_info.
12612 * target.h (struct target_ops) <to_extra_thread_info>: Use
12613 TARGET_DEFAULT_RETURN.
12614
0db88c1d
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12619 to_has_exited.
12620 * target.h (struct target_ops) <to_has_exited>: Use
12621 TARGET_DEFAULT_RETURN..
12622
6a9fa051
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12627 to_set_syscall_catchpoint.
12628 (return_one): Remove.
12629 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12630 TARGET_DEFAULT_RETURN.
12631
62f64d7a
TT
126322014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target-delegates.c: Rebuild.
12635 * target.c (update_current_target): Don't inherit or default
12636 to_insert_exec_catchpoint.
12637 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12638 TARGET_DEFAULT_RETURN.
12639
cda0f38c
TT
126402014-01-08 Tom Tromey <tromey@redhat.com>
12641
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_insert_exec_catchpoint.
12645 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12646 TARGET_DEFAULT_RETURN.
12647
95c3375e
TT
126482014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target-delegates.c: Rebuild.
12651 * target.c (update_current_target): Don't inherit or default
12652 to_remove_vfork_catchpoint.
12653 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12654 TARGET_DEFAULT_RETURN.
12655
7e18a8dc
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target-delegates.c: Rebuild.
12659 * target.c (update_current_target): Don't inherit or default
12660 to_insert_vfork_catchpoint.
12661 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12662 TARGET_DEFAULT_RETURN.
12663
e1a21fb7
TT
126642014-02-19 Tom Tromey <tromey@redhat.com>
12665
12666 * target-delegates.c: Rebuild.
12667 * target.c (update_current_target): Don't inherit or default
12668 to_remove_fork_catchpoint.
12669 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12670 TARGET_DEFAULT_RETURN.
12671
5958ebeb
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target-delegates.c: Rebuild.
12675 * target.c (update_current_target): Don't inherit or default
12676 to_insert_fork_catchpoint.
12677 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12678 TARGET_DEFAULT_RETURN.
12679
340ba4bf
TT
126802014-02-19 Tom Tromey <tromey@redhat.com>
12681
12682 * target-delegates.c: Rebuild.
12683 * target.c (update_current_target): Don't inherit or default
12684 to_post_startup_inferior.
12685 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12686 TARGET_DEFAULT_IGNORE.
12687
7634da87
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target-delegates.c: Rebuild.
12691 * target.c (update_current_target): Don't inherit or default
12692 to_load.
12693 * target.h (struct target_ops) <to_load>: Use
12694 TARGET_DEFAULT_NORETURN.
12695
e19e919f
TT
126962014-02-19 Tom Tromey <tromey@redhat.com>
12697
12698 * target-delegates.c: Rebuild.
12699 * target.c (update_current_target): Don't inherit or default
12700 to_terminal_info.
12701 * target.h (struct target_ops) <to_terminal_info>: Use
12702 TARGET_DEFAULT_FUNC.
12703
c6ea8f79
TT
127042014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target-delegates.c: Rebuild.
12707 * target.c (update_current_target): Don't inherit or default
12708 to_terminal_save_ours.
12709 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12710 TARGET_DEFAULT_IGNORE.
12711
e4a733f1
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target-delegates.c: Rebuild.
12715 * target.c (update_current_target): Don't inherit or default
12716 to_terminal_ours.
12717 * target.h (struct target_ops) <to_terminal_ours>: Use
12718 TARGET_DEFAULT_IGNORE.
12719
74fcbef9
TT
127202014-02-19 Tom Tromey <tromey@redhat.com>
12721
12722 * target-delegates.c: Rebuild.
12723 * target.c (update_current_target): Don't inherit or default
12724 to_terminal_ours_for_output.
12725 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12726 TARGET_DEFAULT_IGNORE.
12727
ddeaacc9
TT
127282014-02-19 Tom Tromey <tromey@redhat.com>
12729
12730 * target-delegates.c: Rebuild.
12731 * target.c (update_current_target): Don't inherit or default
12732 to_terminal_inferior.
12733 * target.h (struct target_ops) <to_terminal_inferior>: Use
12734 TARGET_DEFAULT_IGNORE.
12735
0343661d
TT
127362014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target-delegates.c: Rebuild.
12739 * target.c (update_current_target): Don't inherit or default
12740 to_terminal_init.
12741 * target.h (struct target_ops) <to_terminal_init>: Use
12742 TARGET_DEFAULT_IGNORE.
12743
77cdffe9
TT
127442014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target-delegates.c: Rebuild.
12747 * target.c (update_current_target): Don't inherit or default
12748 to_can_accel_watchpoint_condition.
12749 * target.h (struct target_ops)
12750 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12751
d03655e4
TT
127522014-02-19 Tom Tromey <tromey@redhat.com>
12753
12754 * target-delegates.c: Rebuild.
12755 * target.c (update_current_target): Don't inherit or default
12756 to_region_ok_for_hw_watchpoint.
12757 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12758 Use TARGET_DEFAULT_FUNC.
12759
65f160a9
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target-delegates.c: Rebuild.
12763 * target.c (update_current_target): Don't inherit or default
12764 to_watchpoint_addr_within_range.
12765 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12766 Use TARGET_DEFAULT_FUNC.
12767
61dd109f
TT
127682014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target-delegates.c: Rebuild.
12771 * target.c (update_current_target): Don't inherit or default
12772 to_remove_watchpoint.
12773 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12774 TARGET_DEFAULT_NORETURN.
12775
016facd4
TT
127762014-02-19 Tom Tromey <tromey@redhat.com>
12777
12778 * target-delegates.c: Rebuild.
12779 * target.c (update_current_target): Don't inherit or default
12780 to_insert_watchpoint.
12781 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12782 TARGET_DEFAULT_RETURN.
12783
418dabac
TT
127842014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target-delegates.c: Rebuild.
12787 * target.c (update_current_target): Don't inherit or default
12788 to_remove_hw_breakpoint.
12789 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12790 TARGET_DEFAULT_RETURN.
12791
61b371f9
TT
127922014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * target-delegates.c: Rebuild.
12795 * target.c (update_current_target): Don't inherit or default
12796 to_insert_hw_breakpoint.
12797 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12798 TARGET_DEFAULT_RETURN.
12799
52b51d06
TT
128002014-02-19 Tom Tromey <tromey@redhat.com>
12801
12802 * target-delegates.c: Rebuild.
12803 * target.c (update_current_target): Don't inherit or default
12804 to_can_use_hw_breakpoint.
12805 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12806 TARGET_DEFAULT_RETURN.
12807
f86e59b2
TT
128082014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * target-delegates.c: Rebuild.
12811 * target.c (update_current_target): Don't inherit or default
12812 to_files_info.
12813 * target.h (struct target_ops) <to_files_info>: Use
12814 TARGET_DEFAULT_IGNORE.
12815
6c628163
TT
128162014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target-delegates.c: Rebuild.
12819 * target.c (update_current_target): Don't inherit or default
12820 to_store.
12821 * target.h (struct target_ops) <to_store>: Use
12822 TARGET_DEFAULT_NORETURN.
12823
bebd3233
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target-delegates.c: Rebuild.
12827 * target.c (update_current_target): Don't inherit or default
12828 to_post_attach.
12829 * target.h (struct target_ops) <to_post_attach>: Use
12830 TARGET_DEFAULT_IGNORE.
12831
a53f3625
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target-delegates.c: Rebuild.
12835 * target.c (update_current_target): Don't inherit or default
12836 to_rcmd.
12837 (default_rcmd): New function.
12838 (do_monitor_command): Unconditionally delegate.
12839 * target.h (struct target_ops) <to_rmcd>: Use
12840 TARGET_DEFAULT_FUNC.
12841
e9a29200
TT
128422014-02-19 Tom Tromey <tromey@redhat.com>
12843
12844 * target-delegates.c: Rebuild.
12845 * target.c (init_dummy_target): Don't initialize to_attach.
12846 (target_attach): Unconditionally delegate.
12847 * target.h (struct target_ops) <to_attach>: Use
12848 TARGET_DEFAULT_FUNC.
12849
09da0d0a
TT
128502014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * target-delegates.c: Rebuild.
12853 * target.c (target_detach): Unconditionally delegate.
12854 (init_dummy_target): Don't initialize to_detach.
12855 * target.h (struct target_ops) <to_detach>: Use
12856 TARGET_DEFAULT_IGNORE.
12857
5436ff03
TT
128582014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12861 Add argument.
12862 (target_augmented_libraries_svr4_read): Add argument.
12863 * target.c (update_current_target): Update.
12864 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12865 argument.
12866
f0d960ea
TT
128672014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * target.h (struct target_ops) <to_call_history_range>: Add
12870 argument.
12871 * target.c (target_call_history_range): Add argument.
12872 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12873 argument.
12874 (record_btrace_call_history_from): Update.
12875
ec0aea04
TT
128762014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (struct target_ops) <to_call_history_from>: Add
12879 argument.
12880 * target.c (target_call_history_from): Add argument.
12881 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12882 argument.
12883
5df2fcba
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_call_history>: Add argument.
12887 * target.c (target_call_history): Add argument.
12888 * record-btrace.c (record_btrace_call_history): Add 'self'
12889 argument.
12890
4e99c6b7
TT
128912014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_insn_history_range>: Add
12894 argument.
12895 * target.c (target_insn_history_range): Add argument.
12896 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12897 argument.
12898 (record_btrace_insn_history_from): Update.
12899
9abc3ff3
TT
129002014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <to_insn_history_from>: Add
12903 argument.
12904 * target.c (target_insn_history_from): Add argument.
12905 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12906 argument.
12907
7a6c5609
TT
129082014-02-19 Tom Tromey <tromey@redhat.com>
12909
12910 * target.h (struct target_ops) <to_insn_history>: Add argument.
12911 * target.c (target_insn_history): Add argument.
12912 * record-btrace.c (record_btrace_insn_history): Add 'self'
12913 argument.
12914
606183ac
TT
129152014-02-19 Tom Tromey <tromey@redhat.com>
12916
12917 * target.h (struct target_ops) <to_goto_record>: Add argument.
12918 * target.c (target_goto_record): Add argument.
12919 * record-full.c (record_full_goto): Add 'self' argument.
12920 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12921
307a1b91
TT
129222014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12925 * target.c (target_goto_record_end): Add argument.
12926 * record-full.c (record_full_goto_end): Add 'self' argument.
12927 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12928
08475817
TT
129292014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * target.h (struct target_ops) <to_goto_record_begin>: Add
12932 argument.
12933 * target.c (target_goto_record_begin): Add argument.
12934 * record-full.c (record_full_goto_begin): Add 'self' argument.
12935 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12936 argument.
12937
1c63c994
TT
129382014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * target.h (struct target_ops) <to_record_is_replaying>: Add
12941 argument.
12942 * target.c (target_record_is_replaying): Add argument.
12943 * record-full.c (record_full_is_replaying): Add 'self' argument.
12944 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12945 argument.
12946 (record_btrace_xfer_partial, record_btrace_store_registers)
12947 (record_btrace_prepare_to_store, record_btrace_resume)
12948 (record_btrace_wait, record_btrace_decr_pc_after_break)
12949 (record_btrace_find_new_threads, record_btrace_thread_alive):
12950 Update.
12951
d1b55219
TT
129522014-02-19 Tom Tromey <tromey@redhat.com>
12953
12954 * target.h (struct target_ops) <to_delete_record>: Add argument.
12955 * target.c (target_delete_record): Add argument.
12956 * record-full.c (record_full_delete): Add 'self' argument.
12957
1390f529
TT
129582014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * target.h (struct target_ops) <to_save_record>: Add argument.
12961 * target.c (target_save_record): Add argument.
12962 * record-full.c (record_full_save): Add 'self' argument.
12963 (record_full_save): Add 'self' argument.
12964
630d6a4a
TT
129652014-02-19 Tom Tromey <tromey@redhat.com>
12966
12967 * target.h (struct target_ops) <to_info_record>: Add argument.
12968 * target.c (target_info_record): Add argument.
12969 * record.c (info_record_command): Add argument.
12970 * record-full.c (record_full_info): Add 'self' argument.
12971 * record-btrace.c (record_btrace_info): Add 'self' argument.
12972
c6cd7c02
TT
129732014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12976 * target.c (target_stop_recording): Add argument.
12977 * record.c (record_stop): Add argument.
12978 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12979 argument.
12980
39c49f83
TT
129812014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12984 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12985 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12986 argument.
12987 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12988 (_initialize_amd64_linux_nat): Use it.
12989 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12990 (_initialize_i386_linux_nat): Use it.
12991
1777056d
TT
129922014-02-19 Tom Tromey <tromey@redhat.com>
12993
12994 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12995 * target.c (target_teardown_btrace): Add argument.
12996 * remote.c (remote_teardown_btrace): Add 'self' argument.
12997 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12998 argument.
12999 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13000 argument.
13001
25e95349
TT
130022014-02-19 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13005 * target.c (target_disable_btrace): Add argument.
13006 * remote.c (remote_disable_btrace): Add 'self' argument.
13007 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13008 argument.
13009 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13010 argument.
13011
e3c49f88
TT
130122014-02-19 Tom Tromey <tromey@redhat.com>
13013
13014 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13015 * target.c (target_enable_btrace): Add argument.
13016 * remote.c (remote_enable_btrace): Add 'self' argument.
13017 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13018 argument.
13019 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13020 argument.
13021
fe38f897
TT
130222014-02-19 Tom Tromey <tromey@redhat.com>
13023
13024 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13025 (target_can_use_agent): Add argument.
13026 * target.c (update_current_target): Update.
13027 * remote.c (remote_can_use_agent): Add 'self' argument.
13028 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13029
2c152180
TT
130302014-02-19 Tom Tromey <tromey@redhat.com>
13031
13032 * target.h (struct target_ops) <to_use_agent>: Add argument.
13033 (target_use_agent): Add argument.
13034 * target.c (update_current_target): Update.
13035 * remote.c (remote_use_agent): Add 'self' argument.
13036 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13037
a893e81f
TT
130382014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13041 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13042 (target_traceframe_info): Add argument.
13043 * target.c (update_current_target): Update.
13044 * remote.c (remote_traceframe_info): Add 'self' argument.
13045 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13046
c686c57f
TT
130472014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * target.h (target_static_tracepoint_markers_by_strid): Add
13050 argument.
13051 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13052 'self' argument.
13053 * target.c (update_current_target): Update.
13054 * remote.c (struct target_ops)
13055 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13056 * linux-nat.c (struct target_ops)
13057 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13058
61fc905d
TT
130592014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13062 Add argument.
13063 (target_static_tracepoint_marker_at): Add argument.
13064 * target.c (update_current_target): Update.
13065 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13066 argument.
13067
c378d69d
TT
130682014-02-19 Tom Tromey <tromey@redhat.com>
13069
13070 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13071 (target_set_permissions): Add argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_set_permissions): Add 'self' argument.
13074 (remote_start_remote): Update.
13075
bd7ae0f5
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13079 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13080 (target_get_tib_address): Add argument.
13081 * target.c (update_current_target): Update.
13082 * remote.c (remote_get_tib_address): Add 'self' argument.
13083
d9e68a2c
TT
130842014-02-19 Tom Tromey <tromey@redhat.com>
13085
13086 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13087 (target_set_trace_notes): Add argument.
13088 * target.c (update_current_target): Update.
13089 * remote.c (remote_set_trace_notes): Add 'self' argument.
13090
4da384be
TT
130912014-02-19 Tom Tromey <tromey@redhat.com>
13092
13093 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13094 argument.
13095 (target_set_trace_buffer_size): Add argument.
13096 * target.c (update_current_target): Update.
13097 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13098
736d5b1f
TT
130992014-02-19 Tom Tromey <tromey@redhat.com>
13100
13101 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13102 argument.
13103 (target_set_circular_trace_buffer): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13106 argument.
13107
37b25738
TT
131082014-02-19 Tom Tromey <tromey@redhat.com>
13109
13110 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13111 argument.
13112 (target_set_disconnected_tracing): Add argument.
13113 * target.c (update_current_target): Update.
13114 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13115
0e67620a
TT
131162014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops)
13119 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13120 (target_get_min_fast_tracepoint_insn_len): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13123 argument.
13124
88ee6f45
TT
131252014-02-19 Tom Tromey <tromey@redhat.com>
13126
13127 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13128 argument.
13129 (target_get_raw_trace_data): Add argument.
13130 * target.c (update_current_target): Update.
13131 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13132
181e3713
TT
131332014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13136 Add argument.
13137 (target_upload_trace_state_variables): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_upload_trace_state_variables): Add 'self'
13140 argument.
13141 (remote_start_remote): Update.
13142
ab6617cc
TT
131432014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13146 argument.
13147 (target_upload_tracepoints): Add argument.
13148 * target.c (update_current_target): Update.
13149 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13150 (remote_start_remote): Update.
13151
dc3decaf
TT
131522014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13155 (target_save_trace_data): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_save_trace_data): Add 'self' argument.
13158
4011015b
TT
131592014-02-19 Tom Tromey <tromey@redhat.com>
13160
13161 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13162 argument.
13163 * target.h (struct target_ops)
13164 <to_get_trace_state_variable_value>: Add argument.
13165 (target_get_trace_state_variable_value): Add argument.
13166 * target.c (update_current_target): Update.
13167 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13168 argument.
13169 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13170
bd4c6793
TT
131712014-02-19 Tom Tromey <tromey@redhat.com>
13172
13173 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13174 * target.h (struct target_ops) <to_trace_find>: Add argument.
13175 (target_trace_find): Add argument.
13176 * target.c (update_current_target): Update.
13177 * remote.c (remote_trace_find): Add 'self' argument.
13178 * ctf.c (ctf_trace_find): Add 'self' argument.
13179
74499f1b
TT
131802014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13183 (target_trace_stop): Add argument.
13184 * target.c (update_current_target): Update.
13185 * remote.c (remote_trace_stop): Add 'self' argument.
13186
db90e85c
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13190 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13191 argument.
13192 (target_get_tracepoint_status): Add argument.
13193 * target.c (update_current_target): Update.
13194 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13195
8bd200f1
TT
131962014-02-19 Tom Tromey <tromey@redhat.com>
13197
13198 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13199 * target.h (struct target_ops) <to_get_trace_status>: Add
13200 argument.
13201 (target_get_trace_status): Add argument.
13202 * target.c (update_current_target): Update.
13203 * remote.c (remote_get_trace_status): Add 'self' argument.
13204 (remote_start_remote, remote_can_download_tracepoint): Update.
13205 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13206
e2d1aae3
TT
132072014-02-19 Tom Tromey <tromey@redhat.com>
13208
13209 * target.h (struct target_ops) <to_trace_start>: Add argument.
13210 (target_trace_start): Add argument.
13211 * target.c (update_current_target): Update.
13212 * remote.c (remote_trace_start): Add 'self' argument.
13213
583f9a86
TT
132142014-02-19 Tom Tromey <tromey@redhat.com>
13215
13216 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13217 Add argument.
13218 (target_trace_set_readonly_regions): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13221 argument.
13222
780b049c
TT
132232014-02-19 Tom Tromey <tromey@redhat.com>
13224
13225 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13226 argument.
13227 (target_disable_tracepoint): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13230
46670d57
TT
132312014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13234 argument.
13235 (target_enable_tracepoint): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13238
559d2b81
TT
132392014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * target.h (struct target_ops) <to_download_trace_state_variable>:
13242 Add argument.
13243 (target_download_trace_state_variable): Add argument.
13244 * target.c (update_current_target): Update.
13245 * remote.c (remote_download_trace_state_variable): Add 'self'
13246 argument.
13247
a52a8357
TT
132482014-02-19 Tom Tromey <tromey@redhat.com>
13249
13250 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13251 argument.
13252 (target_can_download_tracepoint): Add argument.
13253 * target.c (update_current_target): Update.
13254 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13255
548f7808
TT
132562014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 * target.h (struct target_ops) <to_download_tracepoint>: Add
13259 argument.
13260 (target_download_tracepoint): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_download_tracepoint): Add 'self' argument.
13263
ecae04e1
TT
132642014-02-19 Tom Tromey <tromey@redhat.com>
13265
13266 * target.h (struct target_ops) <to_trace_init>: Add argument.
13267 (target_trace_init): Add argument.
13268 * target.c (update_current_target): Update.
13269 * remote.c (remote_trace_init): Add 'self' argument.
13270
fab5aa7c
TT
132712014-02-19 Tom Tromey <tromey@redhat.com>
13272
13273 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13274 * target.c (target_fileio_readlink): Add argument.
13275 * remote.c (remote_hostio_readlink): Add 'self' argument.
13276 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13277
dbbca37d
TT
132782014-02-19 Tom Tromey <tromey@redhat.com>
13279
13280 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13281 * target.c (target_fileio_unlink): Add argument.
13282 * remote.c (remote_hostio_unlink): Add 'self' argument.
13283 (remote_file_delete): Update.
13284 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13285
df39ea25
TT
132862014-02-19 Tom Tromey <tromey@redhat.com>
13287
13288 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13289 * target.c (target_fileio_close): Add argument.
13290 * remote.c (remote_hostio_close): Add 'self' argument.
13291 (remote_hostio_close_cleanup): Update.
13292 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13293 Update.
13294 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13295
a3be983c
TT
132962014-02-19 Tom Tromey <tromey@redhat.com>
13297
13298 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13299 * target.c (target_fileio_pread): Add argument.
13300 * remote.c (remote_hostio_pread): Add 'self' argument.
13301 (remote_bfd_iovec_pread, remote_file_get): Update.
13302 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13303
0d866f62
TT
133042014-02-19 Tom Tromey <tromey@redhat.com>
13305
13306 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13307 * target.c (target_fileio_pwrite): Add argument.
13308 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13309 (remote_file_put): Update.
13310 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13311
cd897586
TT
133122014-02-19 Tom Tromey <tromey@redhat.com>
13313
13314 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13315 * target.c (target_fileio_open): Add argument.
13316 * remote.c (remote_hostio_open): Add 'self' argument.
13317 (remote_bfd_iovec_open): Add 'self' argument.
13318 (remote_file_put): Add 'self' argument.
13319 (remote_file_get): Add 'self' argument.
13320 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13321
78eff0ec
TT
133222014-02-19 Tom Tromey <tromey@redhat.com>
13323
13324 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13325 Add argument.
13326 (target_can_run_breakpoint_commands): Add argument.
13327 * target.c (update_current_target): Update.
13328 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13329 argument.
13330 (remote_insert_breakpoint): Add 'self' argument.
13331 (remote_insert_hw_breakpoint): Add 'self' argument.
13332 (remote_can_run_breakpoint_commands): Add 'self' argument.
13333
efcc2da7
TT
133342014-02-19 Tom Tromey <tromey@redhat.com>
13335
13336 * target.h (struct target_ops)
13337 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13338 (target_supports_evaluation_of_breakpoint_conditions): Add
13339 argument.
13340 * target.c (update_current_target): Update.
13341 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13342 argument.
13343 (remote_insert_breakpoint): Add 'self' argument.
13344 (remote_insert_hw_breakpoint): Add 'self' argument.
13345 (remote_supports_cond_breakpoints): Add 'self' argument.
13346
6de37a3a
TT
133472014-02-19 Tom Tromey <tromey@redhat.com>
13348
13349 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13350 argument.
13351 (target_supports_string_tracing): Add argument.
13352 * target.c (update_current_target): Update.
13353 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13354
2bfc0540
TT
133552014-02-19 Tom Tromey <tromey@redhat.com>
13356
13357 * target.h (struct target_ops)
13358 <to_supports_disable_randomization>: Add argument.
13359 * target.c (find_default_supports_disable_randomization): Add
13360 argument.
13361 (target_supports_disable_randomization): Add argument.
13362 (find_default_supports_disable_randomization): Add 'self'
13363 argument.
13364 * remote.c (extended_remote_supports_disable_randomization): Add
13365 'self' argument.
13366 (remote_supports_disable_randomization): Add 'self' argument.
13367 (extended_remote_create_inferior): Update.
13368 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13369 'self' argument.
13370
7d178d6a
TT
133712014-02-19 Tom Tromey <tromey@redhat.com>
13372
13373 * target.h (struct target_ops)
13374 <to_supports_enable_disable_tracepoint>: Add argument.
13375 (target_supports_enable_disable_tracepoint): Add argument.
13376 * target.c (update_current_target): Update.
13377 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13378 argument.
13379
86ce2668
TT
133802014-02-19 Tom Tromey <tromey@redhat.com>
13381
13382 * target.h (struct target_ops) <to_supports_multi_process>: Add
13383 argument.
13384 (target_supports_multi_process): Add argument.
13385 * target.c (update_current_target): Update.
13386 * remote.c (remote_supports_multi_process): Add 'self' argument.
13387 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13388 argument.
13389 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13390 argument.
13391
4c612759
TT
133922014-02-19 Tom Tromey <tromey@redhat.com>
13393
13394 * target.h (struct target_ops) <to_execution_direction>: Add
13395 argument.
13396 (target_execution_direction): Add argument.
13397 * target.c (default_execution_direction): Add 'self' argument.
13398 * record-full.c (record_full_execution_direction): Add 'self'
13399 argument.
13400
19db3e69
TT
134012014-02-19 Tom Tromey <tromey@redhat.com>
13402
13403 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13404 argument.
13405 (target_can_execute_reverse): Add argument.
13406 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13407 * record-full.c (record_full_can_execute_reverse): Add 'self'
13408 argument.
13409 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13410 argument.
13411
1e6b91a4
TT
134122014-02-19 Tom Tromey <tromey@redhat.com>
13413
13414 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13415 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13416 argument.
13417 (target_get_ada_task_ptid): Add argument.
13418 * target.c (update_current_target): Update.
13419 (default_get_ada_task_ptid): Add 'self' argument.
13420 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13421 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13422 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13423 argument.
13424 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13425 argument.
13426 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13427 argument.
13428 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13429 argument.
13430 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13431 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13432 argument.
13433
3c80fb48
TT
134342014-02-19 Tom Tromey <tromey@redhat.com>
13435
13436 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13437 (target_goto_bookmark): Add argument.
13438 * target.c (dummy_goto_bookmark): Add 'self' argument.
13439 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13440
dd0e2830
TT
134412014-02-19 Tom Tromey <tromey@redhat.com>
13442
13443 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13444 (target_get_bookmark): Add argument.
13445 * target.c (dummy_get_bookmark): Add 'self' argument.
13446 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13447
fc6691b2
TT
134482014-02-19 Tom Tromey <tromey@redhat.com>
13449
13450 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13451 argument.
13452 (target_make_corefile_notes): Add argument.
13453 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13454 * procfs.c (procfs_make_note_section): Add 'self' argument.
13455 (procfs_make_note_section): Add 'self' argument.
13456 (procfs_make_note_section): Add 'self' argument.
13457 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13458 argument.
13459 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13460 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13461 * exec.c (exec_make_note_section): Add 'self' argument.
13462 (exec_make_note_section): Add 'self' argument.
13463
2e73927c
TT
134642014-02-19 Tom Tromey <tromey@redhat.com>
13465
13466 * target.h (struct target_ops) <to_find_memory_regions>: Add
13467 argument.
13468 (target_find_memory_regions): Add argument.
13469 * target.c (dummy_find_memory_regions): Add 'self' argument.
13470 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13471 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13472 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13473 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13474 * exec. (exec_do_find_memory_regions): New global.
13475 (exec_set_find_memory_regions): Rewrite.
13476 (exec_find_memory_regions): New function.
13477 (init_exec_ops): Use exec_find_memory_regions.
13478
2a9a2795
TT
134792014-02-19 Tom Tromey <tromey@redhat.com>
13480
13481 * target.h (struct target_ops) <to_supports_non_stop>: Add
13482 argument.
13483 * target.c (find_default_supports_non_stop): Add argument.
13484 (target_supports_non_stop): Add argument.
13485 (find_default_supports_non_stop): Add 'self' argument.
13486 * remote.c (remote_supports_non_stop): Add 'self' argument.
13487 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13488
4ab76ea3
TT
134892014-02-19 Tom Tromey <tromey@redhat.com>
13490
13491 * target.h (struct target_ops) <to_log_command>: Add argument.
13492 (target_log_command): Add argument.
13493 * serial.h (serial_log_command): Add 'self' argument.
13494 * serial.c (serial_log_command): Add 'self' argument.
13495
8dd27370
TT
134962014-02-19 Tom Tromey <tromey@redhat.com>
13497
13498 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13499 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13500 argument.
13501 (target_pid_to_exec_file): Add argument.
13502 * target.c (debug_to_pid_to_exec_file): Add argument.
13503 (update_current_target): Update.
13504 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13505 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13506 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13507 (linux_handle_extended_wait): Update.
13508 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13509 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13510 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13511 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13512
1aac633b
TT
135132014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * target.h (struct target_ops) <to_rcmd>: Add argument.
13516 (target_rcmd): Add argument.
13517 * target.c (debug_to_rcmd): Add argument.
13518 (update_current_target, do_monitor_command): Update.
13519 * remote.c (remote_rcmd): Add 'self' argument.
13520 * monitor.c (monitor_rcmd): Add 'self' argument.
13521
1eab8a48
TT
135222014-02-19 Tom Tromey <tromey@redhat.com>
13523
13524 * windows-nat.c (windows_stop): Add 'self' argument.
13525 * target.h (struct target_ops) <to_stop>: Add argument.
13526 * target.c (target_stop): Add argument.
13527 (debug_to_stop): Add argument.
13528 (update_current_target): Update.
13529 * remote.c (remote_stop): Add 'self' argument.
13530 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13531 (gdbsim_cntrl_c): Update.
13532 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13533 * procfs.c (procfs_stop): Add 'self' argument.
13534 * nto-procfs.c (procfs_stop): Add 'self' argument.
13535 * monitor.c (monitor_stop): Add 'self' argument.
13536 (monitor_open): Update.
13537 * linux-nat.c (linux_nat_stop): Add argument.
13538 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13539 * gnu-nat.c (gnu_stop): Add 'self' argument.
13540 * darwin-nat.c (darwin_stop): Add 'self' argument.
13541
503a628d
TT
135422014-02-19 Tom Tromey <tromey@redhat.com>
13543
13544 * target.h (struct target_ops) <to_thread_name>: Add argument.
13545 * target.c (target_thread_name): Add argument.
13546 (update_current_target): Update.
13547 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13548
c15906d8
TT
135492014-02-19 Tom Tromey <tromey@redhat.com>
13550
13551 * target.h (struct target_ops) <to_extra_thread_info>: Add
13552 argument.
13553 (target_extra_thread_info): Add argument.
13554 * target.c (update_current_target): Update.
13555 * remote.c (remote_threads_extra_info): Add 'self' argument.
13556 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13557 argument.
13558 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13559 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13560 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13561 argument.
13562 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13563 argument.
13564 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13565 argument.
13566 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13567 argument.
13568
daf5e9b6
TT
135692014-02-19 Tom Tromey <tromey@redhat.com>
13570
13571 * target.h (struct target_ops) <to_program_signals>: Add argument.
13572 * target.c (target_program_signals): Add argument.
13573 * remote.c (remote_program_signals): Add 'self' argument.
13574
94bedb42
TT
135752014-02-19 Tom Tromey <tromey@redhat.com>
13576
13577 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13578 * target.c (target_pass_signals): Add argument.
13579 * remote.c (remote_pass_signals): Add 'self' argument.
13580 (remote_start_remote): Update.
13581 * procfs.c (procfs_pass_signals): Add 'self' argument.
13582 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13583 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13584 (linux_nat_create_inferior, linux_nat_attach): Update.
13585
da82bd6b
TT
135862014-02-19 Tom Tromey <tromey@redhat.com>
13587
13588 * windows-nat.c (windows_can_run): Add 'self' argument.
13589 * target.h (struct target_ops) <to_can_run>: Add argument.
13590 (target_can_run): Add argument.
13591 * target.c (debug_to_can_run): Add argument.
13592 (update_current_target): Update.
13593 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13594 * inf-child.c (inf_child_can_run): Add 'self' argument.
13595 * go32-nat.c (go32_can_run): Add 'self' argument.
13596
d796e1d6
TT
135972014-02-19 Tom Tromey <tromey@redhat.com>
13598
13599 * target.h (struct target_ops) <to_has_exited>: Add argument.
13600 (target_has_exited): Add argument.
13601 * target.c (debug_to_has_exited): Add argument.
13602 (update_current_target): Update.
13603
ff214e67
TT
136042014-02-19 Tom Tromey <tromey@redhat.com>
13605
13606 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13607 argument.
13608 (target_set_syscall_catchpoint): Add argument.
13609 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13610 argument.
13611 * target.c (update_current_target): Update.
13612
758e29d2
TT
136132014-02-19 Tom Tromey <tromey@redhat.com>
13614
13615 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13616 argument.
13617 (target_remove_exec_catchpoint): Add argument.
13618 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13619 (update_current_target): Update.
13620 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13621 argument.
13622
ba025e51
TT
136232014-02-19 Tom Tromey <tromey@redhat.com>
13624
13625 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13626 argument.
13627 (target_insert_exec_catchpoint): Add argument.
13628 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13629 (update_current_target): Update.
13630 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13631 argument.
13632
e98cf0cd
TT
136332014-02-19 Tom Tromey <tromey@redhat.com>
13634
13635 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13636 argument.
13637 (target_remove_vfork_catchpoint): Add argument.
13638 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13639 (update_current_target): Update.
13640 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13641 argument.
13642
3ecc7da0
TT
136432014-02-19 Tom Tromey <tromey@redhat.com>
13644
13645 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13646 argument.
13647 (target_insert_vfork_catchpoint): Add argument.
13648 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13649 (update_current_target): Update.
13650 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13651 argument.
13652
973fc227
TT
136532014-02-19 Tom Tromey <tromey@redhat.com>
13654
13655 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13656 argument.
13657 (target_remove_fork_catchpoint): Add argument.
13658 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13659 (update_current_target): Update.
13660 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13661 argument.
13662
a863b201
TT
136632014-02-19 Tom Tromey <tromey@redhat.com>
13664
13665 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13666 argument.
13667 (target_insert_fork_catchpoint): Add argument.
13668 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13669 (update_current_target): Update.
13670 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13671 argument.
13672
2e97a79e
TT
136732014-02-19 Tom Tromey <tromey@redhat.com>
13674
13675 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13676 argument.
13677 (target_post_startup_inferior): Add argument.
13678 * target.c (debug_to_post_startup_inferior): Add argument.
13679 (update_current_target): Update.
13680 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13681 argument.
13682 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13683 argument.
13684 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13685 argument.
13686 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13687 argument.
13688 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13689 'self' argument.
13690 (super_post_startup_inferior): Likewise.
13691 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13692 'self' argument.
13693 (super_post_startup_inferior): Likewise.
13694 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13695 Add 'self' argument.
13696 (super_post_startup_inferior): Likewise.
13697
71a9f134
TT
136982014-02-19 Tom Tromey <tromey@redhat.com>
13699
13700 * target.h (struct target_ops) <to_load>: Add argument.
13701 * target.c (target_load): Add argument.
13702 (debug_to_load): Add argument.
13703 (update_current_target): Update.
13704 * remote.c (remote_load): Add 'self' argument.
13705 * remote-sim.c (gdbsim_load): Add 'self' argument.
13706 * remote-mips.c (mips_load): Add 'self' argument.
13707 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13708 * monitor.c (monitor_load): Add 'self' argument.
13709 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13710
0a4f40a2
TT
137112014-02-19 Tom Tromey <tromey@redhat.com>
13712
13713 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13714 (target_terminal_info): Add argument.
13715 * target.c (debug_to_terminal_info): Add argument.
13716 (default_terminal_info): Likewise.
13717 * inflow.c (child_terminal_info): Add 'self' argument.
13718 * inferior.h (child_terminal_info): Add 'self' argument.
13719 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13720
ae3bd431
TT
137212014-02-19 Tom Tromey <tromey@redhat.com>
13722
13723 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13724 argument.
13725 (target_terminal_save_ours): Add argument.
13726 * target.c (debug_to_terminal_save_ours): Add argument.
13727 (update_current_target): Update.
13728 * inflow.c (terminal_save_ours): Add 'self' argument.
13729 * inferior.h (terminal_save_ours): Add 'self' argument.
13730
e3594fd1
TT
137312014-02-19 Tom Tromey <tromey@redhat.com>
13732
13733 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13734 (target_terminal_ours): Add argument.
13735 * target.c (debug_to_terminal_ours): Add argument.
13736 (update_current_target): Update.
13737 * remote.c (remote_terminal_ours): Add 'self' argument.
13738 (remote_close): Update.
13739 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13740 * inflow.c (terminal_ours): Add 'self' argument.
13741 * inferior.h (terminal_ours): Add 'self' argument.
13742 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13743
2e1e1a19
TT
137442014-02-19 Pedro Alves <palves@redhat.com>
13745 Tom Tromey <tromey@redhat.com>
13746
13747 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13748 argument.
13749 (target_terminal_ours_for_output): Add argument.
13750 * target.c (debug_to_terminal_ours_for_output): Add argument.
13751 (update_current_target): Update.
13752 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13753 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13754 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13755
d2f640d4
TT
137562014-02-19 Tom Tromey <tromey@redhat.com>
13757
13758 * target.h (struct target_ops) <to_terminal_inferior>: Add
13759 argument.
13760 * target.c (target_terminal_inferior): Add argument.
13761 (update_current_target): Update.
13762 * remote.c (remote_terminal_inferior): Add 'self' argument.
13763 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13764 * inflow.c (terminal_inferior): Add 'self' argument.
13765 * inferior.h (terminal_inferior): Add 'self' argument.
13766 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13767 (go32_terminal_inferior): Add 'self' argument.
13768
c42bf286
TT
137692014-02-19 Tom Tromey <tromey@redhat.com>
13770
13771 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13772 (target_terminal_init): Add argument.
13773 * target.c (debug_to_terminal_init): Add argument.
13774 (update_current_target): Update.
13775 * inflow.c (terminal_init_inferior): Add 'self' argument.
13776 * inferior.h (terminal_init_inferior): Add 'self' argument.
13777 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13778 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13779
c3a5ff89
TT
137802014-02-19 Tom Tromey <tromey@redhat.com>
13781
13782 * target.h (struct target_ops)
13783 <to_can_accel_watchpoint_condition>: Add argument.
13784 (target_can_accel_watchpoint_condition): Add argument.
13785 * target.c (debug_to_can_accel_watchpoint_condition): Add
13786 argument.
13787 (update_current_target): Update.
13788 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13789 'self' argument.
13790
31568a15
TT
137912014-02-19 Tom Tromey <tromey@redhat.com>
13792
13793 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13794 Add argument.
13795 (target_region_ok_for_hw_watchpoint): Add argument.
13796 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13797 (default_region_ok_for_hw_watchpoint): Add argument.
13798 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13799 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13800 argument.
13801 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13802 argument.
13803 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13804 argument.
13805 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13806 'self' argument.
13807 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13808 'self' argument.
13809 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13810 'self' argument.
13811 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13812 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13813 'self' argument.
13814 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13815 Add 'self' argument.
13816
7bb99c53
TT
138172014-02-19 Tom Tromey <tromey@redhat.com>
13818
13819 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13820 argument.
13821 (target_insert_watchpoint): Add argument.
13822 * target.c (debug_to_insert_watchpoint): Add argument.
13823 (update_current_target): Update.
13824 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13825 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13826 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13827 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13828 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13829 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13830 argument.
13831 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13832 (procfs_insert_hw_watchpoint): Add 'self' argument.
13833 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13834 argument.
13835 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13836 argument.
13837 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13838 argument.
13839 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13840 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13841 argument.
13842 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13843 'self' argument.
13844
11b5219a
TT
138452014-02-19 Tom Tromey <tromey@redhat.com>
13846
13847 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13848 argument.
13849 (target_remove_watchpoint): Add argument.
13850 * target.c (debug_to_remove_watchpoint): Add argument.
13851 (update_current_target): Update.
13852 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13853 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13854 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13855 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13856 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13857 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13858 argument.
13859 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13860 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13861 argument.
13862 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13863 argument.
13864 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13865 argument.
13866 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13867 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13868 argument.
13869 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13870 'self' argument.
13871
a64dc96c
TT
138722014-02-19 Tom Tromey <tromey@redhat.com>
13873
13874 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13875 argument.
13876 (target_remove_hw_breakpoint): Add argument.
13877 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13878 (update_current_target): Update.
13879 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13880 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13881 argument.
13882 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13883 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13884 argument.
13885 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13886 'self' argument.
13887
23a26771
TT
138882014-02-19 Tom Tromey <tromey@redhat.com>
13889
13890 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13891 argument.
13892 (target_insert_hw_breakpoint): Add argument.
13893 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13894 (update_current_target): Update.
13895 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13896 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13897 argument.
13898 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13899 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13900 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13901 argument.
13902 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13903 'self' argument.
13904
5461485a
TT
139052014-02-19 Tom Tromey <tromey@redhat.com>
13906
13907 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13908 argument.
13909 (target_can_use_hardware_watchpoint): Add argument.
13910 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13911 (update_current_target): Update.
13912 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13913 argument.
13914 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13915 argument.
13916 * remote.c (remote_check_watch_resources): Add 'self' argument.
13917 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13918 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13919 argument.
13920 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13921 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13922 argument.
13923 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13924 argument.
13925 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13926 argument.
13927 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13928 argument.
13929 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13930 argument.
13931 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13932 argument.
13933 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13934 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13935 argument.
13936 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13937 'self' argument.
13938
f045800c
TT
139392014-02-19 Tom Tromey <tromey@redhat.com>
13940
13941 * target.h (struct target_ops) <to_post_attach>: Add argument.
13942 (target_post_attach): Add argument.
13943 * target.c (debug_to_post_attach): Add argument.
13944 (update_current_target): Update.
13945 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13946 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13947 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13948 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13949 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13950
de90e03d
TT
139512014-02-19 Tom Tromey <tromey@redhat.com>
13952
13953 * windows-nat.c (windows_close): Add 'self' argument.
13954 * tracepoint.c (tfile_close): Add 'self' argument.
13955 * target.h (struct target_ops) <to_close>: Add argument.
13956 * target.c (target_close): Add argument.
13957 (update_current_target): Update.
13958 * remote.c (remote_close): Add 'self' argument.
13959 * remote-sim.c (gdbsim_close): Add 'self' argument.
13960 * remote-mips.c (mips_close): Add 'self' argument.
13961 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13962 * record-full.c (record_full_close): Add 'self' argument.
13963 * record-btrace.c (record_btrace_close): Add 'self' argument.
13964 * monitor.h (monitor_close): Add 'self' argument.
13965 * monitor.c (monitor_close): Add 'self' argument.
13966 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13967 * linux-nat.c (linux_nat_close): Add argument.
13968 * go32-nat.c (go32_close): Add 'self' argument.
13969 * exec.c (exec_close_1): Add 'self' argument.
13970 * ctf.c (ctf_close): Add 'self' argument.
13971 * corelow.c (core_close): Add 'self' argument.
13972 (core_close_cleanup): Update.
13973 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13974 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13975
9dd130a0
TT
139762014-02-19 Tom Tromey <tromey@redhat.com>
13977
13978 * remote.c (remote_load): New function.
13979 (init_remote_ops): Use it.
13980
46917d26
TT
139812014-02-19 Tom Tromey <tromey@redhat.com>
13982
13983 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13984 argument.
13985 * common/linux-btrace.h (linux_supports_btrace): Update.
13986 * remote.c (remote_supports_btrace): Add "self" argument.
13987 * target-delegates.c: Rebuild.
13988 * target.c (target_supports_btrace): Remove.
13989 * target.h (struct target_ops) <to_supports_btrace>: Add
13990 target_ops argument.
13991 (target_supports_btrace): New define.
13992
6b84065d
TT
139932014-02-19 Tom Tromey <tromey@redhat.com>
13994
13995 * record-full.c (record_full_beneath_to_resume_ops)
13996 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13997 (record_full_beneath_to_wait)
13998 (record_full_beneath_to_store_registers_ops)
13999 (record_full_beneath_to_store_registers)
14000 (record_full_beneath_to_xfer_partial_ops)
14001 (record_full_beneath_to_xfer_partial)
14002 (record_full_beneath_to_insert_breakpoint_ops)
14003 (record_full_beneath_to_insert_breakpoint)
14004 (record_full_beneath_to_remove_breakpoint_ops)
14005 (record_full_beneath_to_remove_breakpoint)
14006 (record_full_beneath_to_stopped_by_watchpoint)
14007 (record_full_beneath_to_stopped_data_address)
14008 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14009 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14010 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14011 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14012 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14013 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14014 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14015 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14016 (record_full_resume, record_full_wait_1)
14017 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14018 (record_full_store_registers, record_full_xfer_partial)
14019 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14020 (record_full_async, record_full_core_xfer_partial): Use target
14021 delegation.
14022 * target-delegates.c: Rebuild.
14023 * target.c (current_xfer_partial): Remove.
14024 (update_current_target): Do not INHERIT or de_fault
14025 to_insert_breakpoint, to_remove_breakpoint,
14026 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14027 to_is_async_p, to_async. Do not set to_xfer_partial field.
14028 (default_xfer_partial): Simplify.
14029 (current_xfer_partial): Remove.
14030 (target_wait, target_resume): Simplify.
14031 (find_default_can_async_p, find_default_is_async_p): Update.
14032 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14033 to_xfer_partial, to_stopped_by_watchpoint,
14034 to_stopped_data_address.
14035 (target_store_registers): Simplify.
14036 (forward_target_remove_breakpoint)
14037 (forward_target_insert_breakpoint): Remove.
14038 (target_remove_breakpoint, target_insert_breakpoint)
14039 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14040 * target.h (struct target_ops) <to_resume, to_wait,
14041 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14042 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14043 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14044 markup.
14045 (forward_target_remove_breakpoint)
14046 (forward_target_insert_breakpoint): Remove.
14047 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14048 directly.
14049 (record_btrace_insert_breakpoint): Delegate directly.
14050
1101cb7b
TT
140512014-02-19 Tom Tromey <tromey@redhat.com>
14052
14053 PR build/7701:
14054 * target-delegates.c: New file.
14055 * target.c: Include target-delegates.c.
14056 (init_dummy_target): Call install_dummy_methods.
14057 (complete_target_initialization): Call install_delegators.
14058 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14059 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14060 * make-target-delegates: New file.
14061
8b06beed
TT
140622014-02-19 Tom Tromey <tromey@redhat.com>
14063
14064 * record.c (find_record_target): Use find_target_at.
14065 * target.c (find_target_at): New function.
14066 * target.h (find_target_at): Declare.
14067
6a109b6b
TT
140682014-02-19 Tom Tromey <tromey@redhat.com>
14069
14070 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14071 Add 'ops' argument.
14072 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14073 'ops' argument.
14074 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14075 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14076 'ops' argument.
14077 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14078 argument.
14079 * linux-nat.c (save_sigtrap): Update.
14080 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14081 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14082 (linux_nat_close): Update.
14083 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14084 argument.
14085 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14086 argument.
14087 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14088 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14089 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14090 (tmp_to_async): Add 'ops' argument.
14091 (record_full_stopped_by_watchpoint, record_full_async)
14092 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14093 argument.
14094 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14095 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14096 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14097 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14098 (remote_is_async_p, remote_async): Add 'ops' argument.
14099 (remote_stopped_data_address): Update.
14100 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14101 * target.c (update_current_target)
14102 (find_default_can_async_p, find_default_is_async_p): Update.
14103 (init_dummy_target): Update.
14104 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14105 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14106 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14107 (target_can_async_p, target_is_async_p, target_async)
14108 (target_stopped_by_watchpoint): Update.
14109
e095146b
YQ
141102014-02-19 Yao Qi <yao@codesourcery.com>
14111
14112 PR gdb/16220
14113 * gdbarch.sh: Remove startup_gdbarch.
14114 * gdbarch.c: Regenerated.
14115 * gdbarch.h: Likewise.
14116
bc3c6b36
KB
141172014-02-17 Kevin Buettner <kevinb@redhat.com>
14118
14119 * rl78-tdep.c (rl78_g10_register_name): New function.
14120 (rl78_return_value): Add g10 support.
14121 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14122 g10.
14123
98dc0167 141242014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
14125
14126 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14127 (SUBDIR_GUILE_SRCS): Ditto.
14128 (scm-gsmob.o): Ditto.
14129
842c05cd
YQ
141302014-02-17 Yao Qi <yao@codesourcery.com>
14131
14132 * gnu-nat.c (ILL_RPC): Declare defined function.
14133
25c0bd04
YQ
141342014-02-17 Yao Qi <yao@codesourcery.com>
14135
14136 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14137 mach_msg_type_number_t.
14138 (gnu_write_inferior): Likewise.
14139
a9a758e3
YQ
141402014-02-17 Yao Qi <yao@codesourcery.com>
14141
14142 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14143 in format string.
14144 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14145 (inf_validate_procs, inf_signal): Likewise.
14146 (S_exception_raise_request): Likewise.
14147 (do_mach_notify_dead_name): Likewise.
14148 (steal_exc_port): Likewise.
14149 (gnu_read_inferior): Change 'copy_count''s type to
14150 mach_msg_type_number_t.
14151 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14152 format string.
14153
bae8023e
TS
141542014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14155
c82f56d9
TS
14156 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14157 flag. Adjust all users; in particular...
14158 (gnu_wait): ..., don't decrement its value in here...
14159 (gnu_create_inferior): ..., and instead set the flag in here,
14160 around the startup_inferior call, and call that one with
14161 START_INFERIOR_TRAPS_EXPECTED.
14162
3398af6a
TS
14163 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14164 (ILL_RPC): ... new macro.
14165 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14166 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14167 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14168 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14169 functions with ILL_RPC macro.
14170 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14171 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14172 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14173 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14174 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14175 (S_proc_getlogin_reply, S_proc_getsid_reply)
14176 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14177 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14178 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14179 (S_proc_getnports_reply, S_proc_is_important_reply)
14180 (S_proc_get_code_reply): New stub functions, generated with
14181 ILL_RPC macro.
14182
d47642c9
TS
14183 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14184 collected the type check structures.
14185
bae8023e
TS
14186 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14187
8a55ffb0
DE
141882014-02-14 Doug Evans <dje@google.com>
14189
14190 * target.c (target_write_partial): Fix result type.
14191
c2853f3d
JM
141922014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14193
14194 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14195 the proper offsets to access fpregset_t.
14196
ac61d2db
SA
141972014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14198
14199 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14200 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14201 * h8300-tdep.c (setmachinelist): Remove global.
14202 * hppa-tdep.c (hppa_sigtramp): Remove global.
14203 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14204 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14205 * ravenscar-thread.c (update_target_observer): Remove global.
14206 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14207
9d2d0b8b
TT
142082014-02-12 Tom Tromey <tromey@redhat.com>
14209
14210 * common/rsp-low.c: Update comments.
14211 * common/rsp-low.h: Update comments.
14212
a7191e8b
TT
142132014-02-12 Tom Tromey <tromey@redhat.com>
14214
14215 * common/rsp-low.c (convert_ascii_to_int): Remove.
14216 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14217
ff0e980e
TT
142182014-02-12 Tom Tromey <tromey@redhat.com>
14219
14220 * common/rsp-low.h (unhexify): Don't declare.
14221 * common/rsp-low.c (unhexify): Remove.
14222
e9371aff
TT
142232014-02-12 Tom Tromey <tromey@redhat.com>
14224
14225 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14226 * common/rsp-low.c (convert_int_to_ascii): Remove.
14227
971dc0b8
TT
142282014-02-12 Tom Tromey <tromey@redhat.com>
14229
14230 * common/rsp-low.h (hexify): Don't declare.
14231 * common/rsp-low.c (hexify): Remove.
14232
0a822afb
TT
142332014-02-12 Tom Tromey <tromey@redhat.com>
14234
14235 * common/rsp-low.c (hexify): Never take strlen of argument.
14236
9f1b45b0
TT
142372014-02-12 Tom Tromey <tromey@redhat.com>
14238
14239 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14240 * remote.c (extended_remote_run, remote_rcmd)
14241 (remote_download_trace_state_variable, remote_save_trace_data)
14242 (remote_set_trace_notes): Update.
14243 * tracepoint.c (encode_source_string, tfile_write_status)
14244 (tfile_write_uploaded_tsv): Update.
14245
9c3d6531
TT
142462014-02-12 Tom Tromey <tromey@redhat.com>
14247
14248 * tracepoint.c: Include rsp-low.h.
14249 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14250 * remote.c: Include rsp-low.h.
14251 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14252 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14253 (remote_unescape_input): Move to common/rsp-low.c.
14254 * common/rsp-low.h: New file.
14255 * common/rsp-low.c: New file.
14256 * Makefile.in (SFILES): Add common/rsp-low.c.
14257 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14258 (COMMON_OBS): Add rsp-low.o.
14259 (rsp-low.o): New target.
14260
01fd3ea5
TT
142612014-02-12 Tom Tromey <tromey@redhat.com>
14262
14263 * utils.h: Include print-utils.h.
14264 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14265 (int_string, core_addr_to_string, core_addr_to_string_nz)
14266 (hex_string, hex_string_custom): Don't declare.
14267 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14268 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14269 (hex_string_custom, int_string, core_addr_to_string)
14270 (core_addr_to_string_nz, host_address_to_string): Move to
14271 common/print-utils.c.
14272 * common/print-utils.h: New file.
14273 * common/print-utils.c: New file
14274 * Makefile.in (SFILES): Add common/print-utils.c.
14275 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14276 (COMMON_OBS): Add print-utils.o.
14277 (print-utils.o): New target.
14278
9fb50108
TT
142792014-02-12 Tom Tromey <tromey@redhat.com>
14280
14281 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14282
0548b5db
MK
142832014-02-12 Mark Kettenis <kettenis@gnu.org>
14284
14285 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14286
493443a4
MK
142872014-02-12 Mark Kettenis <kettenis@gnu.org>
14288
14289 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14290 if a PT_IO ptrace request returns sucessfully but indicates that 0
14291 bytes were transferred.
14292
706d0883
PA
142932014-02-12 Pedro Alves <palves@redhat.com>
14294 Kevin Buettner <kevinb@redhat.com>
14295
14296 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14297 TYPE_INSTANCE_FLAG_CODE_SPACE.
14298
5caa2f0b
PA
142992014-02-12 Pedro Alves <palves@redhat.com>
14300
14301 * h8300-tdep.c (pseudo_from_raw_register)
14302 (raw_from_pseudo_register): New functions.
14303 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14304 them.
14305
76fd5f74
PA
143062014-02-12 Pedro Alves <palves@redhat.com>
14307
14308 * h8300-tdep.c (h8300_register_sim_regno): New function.
14309 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14310 gdbarch_register_sim_regno hook.
14311
8f008406
SA
143122014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14313
14314 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14315
195abc10
SA
143162014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14317
14318 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14319
93ffa5b9
MK
143202014-02-12 Mark Kettenis <kettenis@gnu.org>
14321
14322 * obsd-tdep.h (obsd_init_abi): New prototype.
14323 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14324 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14325 (obsd_init_abi): New functions.
14326 * i386obsd-tdep.c: Include "obsd-tdep.h".
14327 (i386obsd_init_abi): Call obsd_init_abi.
14328 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14329 (amd64obsd_init_abi): Call obsd_init_abi.
14330 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14331 obsd-tdep.c to gdb_target_obs.
14332
49caec94
JM
143332014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14334
14335 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14336 double float arguments to 16-byte in the argument slots.
14337
e1402065
DE
143382014-02-11 Doug Evans <xdje42@gmail.com>
14339
14340 * configure.ac: Don't crash if pkg-config is not found and guile
14341 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14342 in guile checks.
14343 * configure: Regenerate.
14344
edcc890f
YQ
143452014-02-11 Yao Qi <yao@codesourcery.com>
14346
14347 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14348 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14349 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14350 * gnu-nat.c (gnu_xfer_memory): Likewise.
14351 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14352 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14353 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14354 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14355
9b409511
YQ
143562014-02-11 Yao Qi <yao@codesourcery.com>
14357
14358 * target.h (enum target_xfer_error): Rename to ...
14359 (enum target_xfer_status): ... it. New. All users updated.
14360 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14361 New.
14362 (TARGET_XFER_STATUS_ERROR_P): New macro.
14363 (target_xfer_error_to_string): Remove declaration.
14364 (target_xfer_status_to_string): Declare.
14365 (target_xfer_partial_ftype): Adjust it.
14366 (struct target_ops) <to_xfer_partial>: Return
14367 target_xfer_status. Add argument xfered_len. Update
14368 comments.
14369 * target.c (target_xfer_error_to_string): Rename to ...
14370 (target_xfer_status_to_string): ... it. New. All callers
14371 updated.
14372 (target_read_live_memory): Likewise. Call target_xfer_partial
14373 instead of target_read.
14374 (memory_xfer_live_readonly_partial): Return
14375 target_xfer_status. Add argument xfered_len.
14376 (raw_memory_xfer_partial): Likewise.
14377 (memory_xfer_partial_1): Likewise.
14378 (memory_xfer_partial): Likewise.
14379 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14380 properly. Update debug message.
14381 (default_xfer_partial, current_xfer_partial): Likewise.
14382 (target_write_partial): Likewise.
14383 (target_read_partial): Likewise. All callers updated.
14384 (read_whatever_is_readable): Likewise.
14385 (target_write_with_progress): Likewise.
14386 (target_read_alloc_1): Likewise.
14387
14388 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14389 * auxv.c (procfs_xfer_auxv): Likewise.
14390 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14391 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14392 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14393 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14394 * corefile.c (read_memory): Adjust.
14395 * corelow.c (core_xfer_partial): Likewise.
14396 * ctf.c (ctf_xfer_partial): Likewise.
14397 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14398 updated.
14399 (darwin_xfer_partial): Likewise.
14400 * exec.c (section_table_xfer_memory_partial): Likewise. All
14401 callers updated.
14402 (exec_xfer_partial): Likewise.
14403 * exec.h (section_table_xfer_memory_partial): Update
14404 declaration.
14405 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14406 negative.
14407 (gnu_xfer_partial): Likewise.
14408 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14409 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14410 (ia64_hpux_xfer_solib_got): Likewise.
14411 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14412 type of 'partial_len' to ULONGEST.
14413 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14414 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14415 (linux_nat_xfer_partial): Likewise.
14416 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14417 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14418 * monitor.c (monitor_xfer_memory): Likewise.
14419 (monitor_xfer_partial): Likewise.
14420 * procfs.c (procfs_xfer_partial): Likewise.
14421 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14422 * record-full.c (record_full_xfer_partial): Likewise.
14423 (record_full_core_xfer_partial): Likewise.
14424 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14425 (gdbsim_xfer_partial): Likewise.
14426 * remote.c (remote_write_bytes_aux): Likewise. All callers
14427 updated.
14428 (remote_write_bytes, remote_read_bytes): Likewise. All
14429 callers updated.
14430 (remote_flash_erase): Likewise. All callers updated.
14431 (remote_write_qxfer): Likewise. All callers updated.
14432 (remote_read_qxfer): Likewise. All callers updated.
14433 (remote_xfer_partial): Likewise.
14434 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14435 (rs6000_xfer_shared_libraries): Likewise.
14436 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14437 (sol_thread_xfer_partial): Likewise.
14438 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14439 (sparc_xfer_partial): Likewise.
14440 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14441 updated.
14442 (spu_xfer_partial): Likewise.
14443 * spu-multiarch.c (spu_xfer_partial): Likewise.
14444 * tracepoint.c (tfile_xfer_partial): Likewise.
14445 * windows-nat.c (windows_xfer_memory): Likewise.
14446 (windows_xfer_shared_libraries): Likewise.
14447 (windows_xfer_partial): Likewise.
14448 * valprint.c: Replace 'target_xfer_error' with
14449 'target_xfer_status' in comments.
14450
a8e63083
JB
144512014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14452
14453 Checked in by Joel Brobecker <brobecker@adacore.com>.
14454 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14455
e86b67d3
JB
144562014-02-11 Joel Brobecker <brobecker@adacore.com>
14457
14458 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14459 function parameters.
14460
4b7d1f7f
WN
144612014-02-10 Will Newton <will.newton@linaro.org>
14462
14463 * elfread.c (elf_rel_plt_read): Look for a .got section if
14464 looking up .got.plt fails.
14465 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14466 on address passed to elf_gnu_ifunc_record_cache.
14467 (elf_gnu_ifunc_resolve_addr): Likewise.
14468 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14469
961842b2
JM
144702014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14471
14472 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14473 (X_RETTURN): New macro.
14474 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14475
14476 * sparc64-tdep.c (sparc64_init_abi): Hook
14477 sparc_in_function_epilogue_p.
14478
3f03e7b1
GB
144792014-02-10 Gary Benson <gbenson@redhat.com>
14480
14481 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14482 Rename name_matcher to symbol_matcher.
14483
96f861ef
GB
144842014-02-10 Gary Benson <gbenson@redhat.com>
14485
14486 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14487 Use expand_symtabs_file_matcher_ftype and
14488 expand_symtabs_symbol_matcher_ftype.
14489
ee01b665
JB
144902014-02-10 Joel Brobecker <brobecker@adacore.com>
14491
14492 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14493 (struct ada_symbol_cache): New.
14494 (ada_free_symbol_cache): Forward declare.
14495 (struct ada_pspace_data): New.
14496 (ada_pspace_data_handle): New static global.
14497 (get_ada_pspace_data, ada_pspace_data_cleanup)
14498 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14499 (cache_space, cache): Delete, now folded inside struct
14500 ada_pspace_data.
14501 (ada_get_symbol_cache): New function.
14502 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14503 implementation.
14504 (_initialize_ada_language): Remove initialization of cache_space.
14505 Move call to observer_attach_inferior_exit up, grouping it
14506 with the other observer registrations inside this function.
14507 Rename command to be more general. Add call to
14508 register_program_space_data_with_cleanup.
14509
143adbbf
JB
145102014-02-10 Joel Brobecker <brobecker@adacore.com>
14511
14512 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14513 ada_new_objfile_observer.
14514 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14515 (_initialize_tasks): Update uses of ada_new_objfile_observer
14516 and ada_tasks_normal_stop_observer.
14517
aa4fb036
JB
145182014-02-10 Joel Brobecker <brobecker@adacore.com>
14519
14520 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14521 returned by the 'Length attribute to integer.
14522
9dee8cc6
JB
145232014-02-10 Joel Brobecker <brobecker@adacore.com>
14524
14525 * ada-lang.c (_initialize_ada_language): Initialize
14526 cache_space obstack.
14527
3d9434b5
JB
145282014-02-10 Joel Brobecker <brobecker@adacore.com>
14529
14530 * ada-lang.c (HASH_SIZE): New macro.
14531 (struct cache_entry): New type.
14532 (cache_space, cache): New static globals.
14533 (ada_clear_symbol_cache, find_entry): New functions.
14534 (lookup_cached_symbol, cache_symbol): Implement.
14535 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14536 (_initialize_ada_language): Attach ada_new_objfile_observer
14537 and ada_free_objfile_observer.
14538
f0c5f9b2
JB
145392014-02-10 Joel Brobecker <brobecker@adacore.com>
14540
14541 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14542 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14543 struct block * parameter.
14544 (ada_lookup_symbol_list_worker): Constify local variable "block".
14545 Remove cast which is no longer necessary.
14546
ed3ef339
DE
145472014-02-10 Doug Evans <xdje42@gmail.com>
14548
14549 Add Guile as an extension language.
14550 * NEWS: Mention Guile scripting.
14551 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14552 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14553 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14554 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14555 (CLIBS): Add GUILE_LIBS.
14556 (install-guile): New rule.
14557 (guile.o): New rule.
14558 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14559 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14560 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14561 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14562 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14563 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14564 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14565 * configure.ac: New option --with-guile.
14566 * configure: Regenerate.
14567 * config.in: Regenerate.
14568 * auto-load.c: Remove #include "python/python.h". Add #include
14569 "gdb/section-scripts.h".
14570 (source_section_scripts): Handle Guile scripts.
14571 (_initialize_auto_load): Add name of Guile objfile script to
14572 scripts-directory help text.
14573 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14574 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14575 (struct breakpoint): New member scm_bp_object.
14576 * defs.h (enum command_control_type): New value guile_control.
14577 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14578 "extension.h".
14579 (show_user): Update comment.
14580 (_initialize_cli_cmds): Update help text for "show user". Update help
14581 text for max-user-call-depth.
14582 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14583 "extension.h".
14584 (multi_line_command_p): Add guile_control.
14585 (print_command_lines): Handle guile_control.
14586 (execute_control_command, recurse_read_control_structure): Ditto.
14587 (process_next_line): Recognize "guile" commands.
14588 * disasm.c (gdb_disassemble_info): Make non-static.
14589 * disasm.h: #include "dis-asm.h".
14590 (struct gdbarch): Add forward decl.
14591 (gdb_disassemble_info): Declare.
14592 * extension.c: #include "guile/guile.h".
14593 (extension_languages): Add guile.
14594 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14595 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14596 * gdbtypes.c (get_unsigned_type_max): New function.
14597 (get_signed_type_minmax): New function.
14598 * gdbtypes.h (get_unsigned_type_max): Declare.
14599 (get_signed_type_minmax): Declare.
14600 * guile/README: New file.
14601 * guile/guile-internal.h: New file.
14602 * guile/guile.c: New file.
14603 * guile/guile.h: New file.
14604 * guile/scm-arch.c: New file.
14605 * guile/scm-auto-load.c: New file.
14606 * guile/scm-block.c: New file.
14607 * guile/scm-breakpoint.c: New file.
14608 * guile/scm-disasm.c: New file.
14609 * guile/scm-exception.c: New file.
14610 * guile/scm-frame.c: New file.
14611 * guile/scm-gsmob.c: New file.
14612 * guile/scm-iterator.c: New file.
14613 * guile/scm-lazy-string.c: New file.
14614 * guile/scm-math.c: New file.
14615 * guile/scm-objfile.c: New file.
14616 * guile/scm-ports.c: New file.
14617 * guile/scm-pretty-print.c: New file.
14618 * guile/scm-safe-call.c: New file.
14619 * guile/scm-string.c: New file.
14620 * guile/scm-symbol.c: New file.
14621 * guile/scm-symtab.c: New file.
14622 * guile/scm-type.c: New file.
14623 * guile/scm-utils.c: New file.
14624 * guile/scm-value.c: New file.
14625 * guile/lib/gdb.scm: New file.
14626 * guile/lib/gdb/boot.scm: New file.
14627 * guile/lib/gdb/experimental.scm: New file.
14628 * guile/lib/gdb/init.scm: New file.
14629 * guile/lib/gdb/iterator.scm: New file.
14630 * guile/lib/gdb/printing.scm: New file.
14631 * guile/lib/gdb/types.scm: New file.
14632 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14633 (VPATH): Add $(GUILE_SRCDIR).
14634 (GUILE_DIR): New variable.
14635 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14636 (all): Add stamp-guile dependency.
14637 (stamp-guile): New rule.
14638 (clean-guile, install-guile, uninstall-guile): New rules.
14639 (install-only): Add install-guile dependency.
14640 (uninstall): Add uninstall-guile dependency.
14641 (clean): Add clean-guile dependency.
14642
ac020ec5
DE
146432014-02-09 Doug Evans <xdje42@gmail.com>
14644
14645 Revert this patch (which I approved, mea culpa).
14646
14647 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14648
14649 * Makefile.in (all-lib): Remove.
14650 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14651
2a081c59
JK
146522014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14653
14654 Fix Python stack corruption.
14655 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14656 gdb_py_longest.
14657
0a6bd22d
MK
146582014-02-08 Mark Kettenis <kettenis@gnu.org>
14659
14660 * Makefile.in (all-lib): Remove.
14661 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14662
1a860409
DE
146632014-02-07 Doug Evans <dje@google.com>
14664
14665 * extension-priv.h (extension_language_script_ops): Add comment.
14666 (extension_language_ops): Add comment.
caf5a491 14667 (active_ext_lang_state): Fix typo in comment.
1a860409 14668
d137e6dc
PA
146692014-02-07 Pedro Alves <palves@redhat.com>
14670
0dcb32c3 14671 PR breakpoints/16292
d137e6dc
PA
14672 * infrun.c (handle_signal_stop) <signal arrives while stepping
14673 over a breakpoint>: Switch back to the stepping thread.
14674
ce6d0892
YQ
146752014-02-07 Yao Qi <yao@codesourcery.com>
14676
14677 * target.c (target_xfer_partial): Return zero if LEN is zero.
14678
2ed4b548
YQ
146792014-02-07 Yao Qi <yao@codesourcery.com>
14680
14681 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14682 (ld_so_xfer_auxv): Likewise.
14683 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14684 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14685 * corelow.c (core_xfer_partial): Likewise.
14686 * ctf.c (ctf_xfer_partial): Likewise.
14687 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14688 (darwin_xfer_partial): Likewise.
14689 * exec.c (exec_xfer_partial): Likewise.
14690 * gnu-nat.c (gnu_xfer_partial): Likewise.
14691 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14692 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14693 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14694 * linux-nat.c (linux_xfer_siginfo): Likewise.
14695 (linux_proc_xfer_spu): Likewise.
14696 * procfs.c (procfs_xfer_partial): Likewise.
14697 * record-full.c (record_full_xfer_partial): Likewise.
14698 (record_full_core_xfer_partial): Likewise.
14699 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14700 * remote.c (remote_write_qxfer): Likewise.
14701 (remote_write_qxfer, remote_read_qxfer): Likewise.
14702 (remote_xfer_partial): Likewise.
14703 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14704 (rs6000_xfer_shared_libraries): Likewise.
14705 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14706 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14707 (spu_xfer_partial): Likewise.
14708 * target.c (memory_xfer_partial_1): Likewise.
14709 * tracepoint.c (tfile_xfer_partial): Likewise.
14710 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14711 (windows_xfer_partial): Likewise.
14712
c09f20e4
YQ
147132014-02-07 Yao Qi <yao@codesourcery.com>
14714
14715 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14716 comments.
14717 (core_xfer_shared_libraries_aix): Likewise.
14718 * gdbarch.c, gdbarch.h: Regenerated.
14719 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14720 ULONGEST. Change 'len_avail' type to ULONGEST.
14721 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14722 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14723 declaration.
14724 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14725
8635b3bf
YQ
147262014-02-07 Yao Qi <yao@codesourcery.com>
14727
14728 * corefile.c (memory_error): Get 'exception' from ERR and pass
14729 'exception' to throw_error.
14730
6dddc817
DE
147312014-02-06 Doug Evans <xdje42@gmail.com>
14732
14733 * configure.ac (libpython checking): Remove all but python.o from
14734 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14735 * configure: Regenerate.
14736
14737 * Makefile.in (SFILES): Add extension.c.
14738 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14739 (COMMON_OBS): Add extension.o.
14740 * extension.h: New file.
14741 * extension-priv.h: New file.
14742 * extension.c: New file.
14743
14744 * python/python-internal.h: #include "extension.h".
14745 (gdbpy_auto_load_enabled): Declare.
14746 (gdbpy_apply_val_pretty_printer): Declare.
14747 (gdbpy_apply_frame_filter): Declare.
14748 (gdbpy_preserve_values): Declare.
14749 (gdbpy_breakpoint_cond_says_stop): Declare.
14750 (gdbpy_breakpoint_has_cond): Declare.
14751 (void source_python_script_for_objfile): Delete.
14752 * python/python.c: #include "extension-priv.h".
14753 Delete inclusion of "observer.h".
14754 (extension_language_python): Moved here and renamed from
14755 script_language_python in py-auto-load.c.
14756 Redefined to be of type extension_language_defn.
14757 (python_extension_script_ops): New global.
14758 (python_extension_ops): New global.
14759 (struct python_env): New member previous_active.
14760 (restore_python_env): Call restore_active_ext_lang.
14761 (ensure_python_env): Call set_active_ext_lang.
14762 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14763 New arg extlang.
14764 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14765 New arg extlang.
14766 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14767 New arg extlang.
14768 (gdbpy_eval_from_control_command): Renamed from
14769 eval_python_from_control_command, made static. New arg extlang.
14770 (gdbpy_source_script) Renamed from source_python_script, made static.
14771 New arg extlang.
14772 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14773 result to int. New arg extlang.
14774 (gdbpy_source_objfile_script): Renamed from
14775 source_python_script_for_objfile, made static. New arg extlang.
14776 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14777 static. New args extlang, extlang_printers. Change result type to
14778 "void".
14779 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14780 static. New arg extlang. Rename arg printers to extlang_printers
14781 and change type to ext_lang_type_printers *.
14782 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14783 static. Replace argument arg with extlang, extlang_printers.
14784 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14785 (!HAVE_PYTHON, source_python_script): Delete.
14786 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14787 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14788 (!HAVE_PYTHON, start_type_printers): Delete.
14789 (!HAVE_PYTHON, apply_type_printers): Delete.
14790 (!HAVE_PYTHON, free_type_printers): Delete.
14791 (_initialize_python): Delete call to observer_attach_before_prompt.
14792 (finalize_python): Set/restore active extension language.
14793 (gdbpy_finish_initialization) Renamed from
14794 finish_python_initialization, made static. New arg extlang.
14795 (gdbpy_initialized): New function.
14796 * python/python.h: #include "extension.h". Delete #include
14797 "value.h", "mi/mi-cmds.h".
14798 (extension_language_python): Declare.
14799 (GDBPY_AUTO_FILE_NAME): Delete.
14800 (enum py_bt_status): Moved to extension.h and renamed to
14801 ext_lang_bt_status.
14802 (enum frame_filter_flags): Moved to extension.h.
14803 (enum py_frame_args): Moved to extension.h and renamed to
14804 ext_lang_frame_args.
14805 (finish_python_initialization): Delete.
14806 (eval_python_from_control_command): Delete.
14807 (source_python_script): Delete.
14808 (apply_val_pretty_printer): Delete.
14809 (apply_frame_filter): Delete.
14810 (preserve_python_values): Delete.
14811 (gdbpy_script_language_defn): Delete.
14812 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14813 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14814
14815 * auto-load.c: #include "extension.h".
14816 (GDB_AUTO_FILE_NAME): Delete.
14817 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14818 (script_language_gdb): Delete, moved to extension.c and renamed to
14819 extension_language_gdb.
14820 (source_gdb_script_for_objfile): Delete.
14821 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14822 (loaded_script): Change type of language member to
14823 struct extension_language_defn *.
14824 (init_loaded_scripts_info): Initialize
14825 unsupported_script_warning_printed.
14826 (maybe_add_script): Make static. Change type of language arg to
14827 struct extension_language_defn *.
14828 (clear_section_scripts): Reset unsupported_script_warning_printed.
14829 (auto_load_objfile_script_1): Rewrite to use extension language API.
14830 (auto_load_objfile_script): Make public. Remove support-compiled-in
14831 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14832 (source_section_scripts): Rewrite to use extension language API.
14833 (load_auto_scripts_for_objfile): Rewrite to use
14834 auto_load_scripts_for_objfile.
14835 (collect_matching_scripts_data): Change type of language member to
14836 struct extension_language_defn *.
14837 (auto_load_info_scripts): Change type of language arg to
14838 struct extension_language_defn *.
14839 (unsupported_script_warning_print): New function.
14840 (script_not_found_warning_print): Make static.
14841 (_initialize_auto_load): Rewrite construction of scripts-directory
14842 help.
14843 * auto-load.h (struct objfile): Add forward decl.
14844 (struct script_language): Delete.
14845 (struct auto_load_pspace_info): Add forward decl.
14846 (struct extension_language_defn): Add forward decl.
14847 (maybe_add_script): Delete.
14848 (auto_load_objfile_script): Declare.
14849 (script_not_found_warning_print): Delete.
14850 (auto_load_info_scripts): Update prototype.
14851 (auto_load_gdb_scripts_enabled): Declare.
14852 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14853 auto_load_python_scripts_enabled and made public.
14854 (script_language_python): Delete, moved to python.c.
14855 (gdbpy_script_language_defn): Delete.
14856 (info_auto_load_python_scripts): Update to use
14857 extension_language_python.
14858
14859 * breakpoint.c (condition_command): Replace call to
14860 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14861 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14862 with call to breakpoint_ext_lang_cond_says_stop.
14863 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14864 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14865 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14866 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14867 New arg slang.
14868 (local_setattro): Print name of extension language with existing
14869 stop condition.
14870
14871 * valprint.c (val_print, value_print): Update to call
14872 apply_ext_lang_val_pretty_printer.
14873 * cp-valprint.c (cp_print_value): Update call to
14874 apply_ext_lang_val_pretty_printer.
14875 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14876 (gdbpy_apply_val_pretty_printer): Renamed from
14877 apply_val_pretty_printer. New arg extlang.
14878 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14879
14880 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14881 extension language API.
14882 * cli/cli-script.c (execute_control_command): Update to call
14883 eval_ext_lang_from_control_command.
14884
14885 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14886 enum ext_lang_bt_status values. Update call to
14887 apply_ext_lang_frame_filter.
14888 (mi_cmd_stack_list_locals): Ditto.
14889 (mi_cmd_stack_list_args): Ditto.
14890 (mi_cmd_stack_list_variables): Ditto.
14891 * mi/mi-main.c: Delete #include "python/python-internal.h".
14892 Add #include "extension.h".
14893 (mi_cmd_list_features): Replace reference to python internal variable
14894 gdb_python_initialized with call to ext_lang_initialized_p.
14895
14896 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14897 Update to use enum ext_lang_frame_args. Update to call
14898 apply_ext_lang_frame_filter.
14899 * python/py-framefilter.c (extract_sym): Update to use enum
14900 ext_lang_bt_status.
14901 (extract_value, py_print_type, py_print_value): Ditto.
14902 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14903 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14904 (py_print_frame): Ditto.
14905 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14906 New arg extlang. Update to use enum ext_lang_bt_status.
14907
14908 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14909 finish_python_initialization. Replace with call to
14910 finish_ext_lang_initialization.
14911
14912 * typeprint.c (do_free_global_table): Update to call
14913 free_ext_lang_type_printers.
14914 (create_global_typedef_table): Update to call
14915 start_ext_lang_type_printers.
14916 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14917 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14918 (type_print_options): Change type of global_printers from "void *"
14919 to "struct ext_lang_type_printers *".
14920
14921 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14922 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14923 (gdbpy_preserve_values): Renamed from preserve_python_values.
14924 New arg extlang.
14925 (!HAVE_PYTHON, preserve_python_values): Delete.
14926
14927 * utils.c (quit_flag): Delete, moved to extension.c.
14928 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14929 extension.c.
14930
14931 * eval.c: Delete #include "python/python.h".
14932 * main.c: Delete #include "python/python.h".
14933
14934 * defs.h: Update comment.
14935
6af79985
JB
149362014-02-06 Joel Brobecker <brobecker@adacore.com>
14937
14938 GDB 7.7 released.
14939
12c5175d
MK
149402014-02-05 Mark Kettenis <kettenis@gnu.org>
14941
14942 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14943 defined.
14944
8dc5b319
YQ
149452014-02-05 Yao Qi <yao@codesourcery.com>
14946
14947 * remote.c (remote_pass_signals): Remove local 'buf' and use
14948 rs->buf.
14949 (remote_program_signals): Likewise.
14950
de7b2893
YQ
149512014-02-05 Yao Qi <yao@codesourcery.com>
14952
14953 * ctf.c: Include "inferior.h" and "gdbthread.h".
14954 (CTF_PID): A new macro.
14955 (ctf_open): Call inferior_appeared and add_thread_silent.
14956 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14957 (ctf_thread_alive): New function.
14958 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14959
66d032ac
YQ
149602014-02-05 Yao Qi <yao@codesourcery.com>
14961
14962 Revert this patch:
14963
14964 2013-05-24 Yao Qi <yao@codesourcery.com>
14965
14966 * tracepoint.c (TFILE_PID): Remove.
14967 (tfile_open): Don't add thread and inferior.
14968 (tfile_close): Don't set 'inferior_ptid'. Don't call
14969 exit_inferior_silent.
14970 (tfile_thread_alive): Remove.
14971 (init_tfile_ops): Don't set field 'to_thread_alive' of
14972 tfile_ops.
14973
f4ccffad
CE
149742014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14975
14976 * remote.c (remote_start_remote): Call remote_check_symbols even
14977 if only symbol-file (not file) has been given.
14978
591a12a1
UW
149792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14980
14981 * gdbarch.sh (skip_entrypoint): New callback.
14982 * gdbarch.c, gdbarch.h: Regenerate.
14983 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14984 * infrun.c (fill_in_stop_func): Likewise.
14985 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14986 (ppc_elfv2_elf_make_msymbol_special): New function.
14987 (ppc_elfv2_skip_entrypoint): Likewise.
14988 (ppc_linux_init_abi): Install them for ELFv2.
14989
cc0e89c5
UW
149902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14991
14992 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14993 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14994 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14995 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14996 structures returned in GPRs.
14997
52f548e4
UW
149982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14999
15000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15001 offset to the stack parameter list for the ELFv2 ABI.
15002
d4094b6a
UW
150032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15004
15005 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15006 set_gdbarch_convert_from_func_ptr_addr and
15007 set_gdbarch_elf_make_msymbol_special for ELFv1.
15008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15009 function descriptors on ELFv1.
15010 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15011 set up r12 at function entry.
15012
cd453cd0
UW
150132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15014
15015 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15016 (struct gdbarch_tdep): New member elf_abi.
15017
15018 * rs6000-tdep.c: Include "elf/ppc64.h".
15019 (rs6000_gdbarch_init): Detect ELF ABI version.
15020
0ff3e01f
UW
150212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15022
15023 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15024 within a register pair holding a DFP 128-bit value on little-endian.
15025 (ppc64_sysv_abi_return_value_base): Likewise.
15026 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15027 (dfp_pseudo_register_write): Likewise.
15028
5b757e5d
UW
150292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15030
15031 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15032 offset on little-endian when passing _Decimal32.
15033 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15034
084ee545
UW
150352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15036
15037 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15038 of the overlapped FP register within the VSX register on little-
15039 endian platforms.
15040 (efpr_pseudo_register_write): Likewise.
15041
d63167af
UW
150422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15043
15044 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15045 offset on little-endian when passing small structures.
15046
e765b44c
UW
150472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15048
15049 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15050 (struct ppc64_sysv_argpos): New data structure.
15051 (ppc64_sysv_abi_push_float): Remove.
15052 (ppc64_sysv_abi_push_val): New function.
15053 (ppc64_sysv_abi_push_integer): Likewise.
15054 (ppc64_sysv_abi_push_freg): Likewise.
15055 (ppc64_sysv_abi_push_vreg): Likewise.
15056 (ppc64_sysv_abi_push_param): Likewise.
15057 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15058 (ppc64_sysv_abi_return_value_base): New function.
15059 (ppc64_sysv_abi_return_value): Refactor to use it.
15060
36c24d95
UW
150612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15062
15063 * NEWS: Document new target powerpc64le-*-linux*.
15064
26fd9228
MK
150652014-02-04 Mark Kettenis <kettenis@gnu.org>
15066
15067 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15068 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15069 core dumps.
15070 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15071 register set used in ELF core dumps. Add floating-point register set.
15072
c5bb7362
KB
150732014-02-03 Kevin Buettner <kevinb@redhat.com>
15074
74228e77 15075 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
15076 dwarf2_to_gdb[] table using symbolic constants. Adjust
15077 penultimate entry from number representing the PC register
15078 to symbolic constant representing the MDR register. Add
15079 constant for the PC register to the end of the table.
15080
af09351e
MK
150812014-02-03 Mark Kettenis <kettenis@gnu.org>
15082
15083 * bsd-kvm.c: Include <sys/param.h>
15084
8507e05d
MK
150852014-02-03 Mark Kettenis <kettenis@gnu.org>
15086
15087 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15088
ae56bfb8
JB
150892014-01-31 Joel Brobecker <brobecker@adacore.com>
15090
15091 * ada-lang.h (clear_ada_sym_cache): Delete.
15092
718ee4dc
UW
150932014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
15094
15095 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15096
401e27fd
JM
150972014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15098
15099 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15100 the sigreturn register save area only if the syscall is
15101 sigreturn.
15102
a7c88acd
JB
151032014-01-29 Joel Brobecker <brobecker@adacore.com>
15104
15105 * valops.c (value_slice): Minor reformatting.
15106
fa0079ea
UW
151072014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15108
15109 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15110
c6044dd1
JB
151112014-01-28 Joel Brobecker <brobecker@adacore.com>
15112
15113 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15114 New static globals.
15115 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15116 (ada_ignore_descriptive_types_p): New static global.
15117 (find_parallel_type_by_descriptive_type): Return immediately
15118 if ada_ignore_descriptive_types_p is set.
15119 (_initialize_ada_language): Register new commands "maintenance
15120 set ada", "maintenance show ada", "maintenance set ada
15121 ignore-descriptive-types" and "maintenance show ada
15122 ignore-descriptive-types".
15123 * NEWS: Add entry for new "maint ada set/show
15124 ignore-descriptive-types" commands.
15125
568e808b
MM
151262014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15127
15128 * record-btrace.c (record_btrace_close): Call btrace_teardown
15129 for all threads.
15130
467d141b
JB
151312014-01-27 Joel Brobecker <brobecker@adacore.com>
15132
15133 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15134 "ui-out.h".
15135
fb151210
JB
151362014-01-27 Joel Brobecker <brobecker@adacore.com>
15137
15138 * ada-typeprint (type_is_full_subrange_of_target_type):
15139 New function.
15140 (print_range): Add parameter bounds_prefered_p. If not set,
15141 try printing range types using the name of their base type.
15142 (print_range_type): Add parameter bounds_prefered_p.
15143 Use it in call to print_range.
15144 (print_array_type, ada_print_type): Update calls to print_range
15145 and print_range_type.
15146
aba02109
JB
151472014-01-27 Joel Brobecker <brobecker@adacore.com>
15148
15149 * ada-typeprint.c (print_array_type, print_choices, print_range)
15150 (print_range_bound, print_dynamic_range_bound, print_range_type):
15151 Remove declaration.
15152
e62e21fd
JB
151532014-01-27 Joel Brobecker <brobecker@adacore.com>
15154
15155 * ada-typeprint.c (print_range): Add missing empty line
15156 after local declaration.
15157
859cf5d1
JB
151582014-01-27 Joel Brobecker <brobecker@adacore.com>
15159
15160 * ada-valprint.c (print_optional_low_bound): Get index_type's
15161 target type for as long as it is a TYPE_CODE_RANGE.
15162
25790f6f
JB
151632014-01-27 Joel Brobecker <brobecker@adacore.com>
15164
15165 * procfs.c (procfs_make_note_section): Remove assertion and
15166 associated comment.
15167
6b6aa828
YQ
151682014-01-24 Yao Qi <yao@codesourcery.com>
15169
15170 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15171 * corelow.c (get_core_siginfo): Likewise.
15172
5d6df423
YQ
151732014-01-24 Yao Qi <yao@codesourcery.com>
15174
15175 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15176 ULONGEST. Don't check 'len' is negative.
15177 (remote_write_bytes): Change type of 'len' to ULONGEST.
15178
83b645b8
TT
151792014-01-23 Tom Tromey <tromey@redhat.com>
15180
15181 PR python/16485:
15182 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15183 Handle exception from frame.block.
15184 (FrameVars.fetch_frame_locals): Likewise.
15185
0740f8d8
TT
151862014-01-23 Tom Tromey <tromey@redhat.com>
15187
15188 PR python/16487:
15189 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15190 on a NULL pointer. Move "goto error" to correct place.
15191
21909fa1
TT
151922014-01-23 Tom Tromey <tromey@redhat.com>
15193
15194 PR python/16491:
15195 * python/py-framefilter.c (apply_frame_filter): Call
15196 ensure_python_env after computing gdbarch.
15197
17fde6d0
YQ
151982014-01-23 Yao Qi <yao@codesourcery.com>
15199
15200 * target.c (raw_memory_xfer_partial): Change argument type
15201 from void * to gdb_byte *.
15202 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15203
87ce2a04
DE
152042014-01-22 Doug Evans <dje@google.com>
15205
15206 New gdbserver option --debug-format=timestamp.
15207 * NEWS: Mention it.
15208
237b092b
AA
152092014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15210
15211 * syscalls/s390x-linux.xml: New file.
15212 * syscalls/s390-linux.xml: New file.
15213 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15214 (XML_SYSCALL_FILENAME_S390X): Likewise.
15215 (op_svc): New enum value for SVC opcode.
15216 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15217 (s390_linux_get_syscall_number): New function.
15218 (s390_gdbarch_init): Register '*get_syscall_number' and the
15219 syscall xml file name.
15220 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15221 "s390-linux.xml" and "s390x-linux.xml".
15222 * NEWS: Announce new feature.
15223
54bff650
BS
152242014-01-22 Baruch Siach <baruch@tkos.co.il>
15225
15226 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15227
14e361d7
PA
152282014-01-22 Pedro Alves <palves@redhat.com>
15229
15230 * xtensa-config.c: Include defs.h.
15231
46bbb3ed
JB
152322014-01-22 Joel Brobecker <brobecker@adacore.com>
15233
15234 * common/common-utils.h: Add "ARI:" comment beside __func__
15235 reference.
15236
3a80edfc
JB
152372014-01-22 Joel Brobecker <brobecker@adacore.com>
15238
15239 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15240 documentation a bit.
15241
4869db5e
RM
152422014-01-21 Roland McGrath <mcgrathr@google.com>
15243
15244 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15245 * configure: Regenerate.
15246 * aclocal.m4: Regenerate.
15247 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15248 New substituted variables.
15249 (install-strip): New target.
15250 (INSTALL_SCRIPT): New substituted variable.
15251 (FLAGS_TO_PASS): Add it.
15252 (install-only): Use $(INSTALL_SCRIPT) rather than
15253 $(INSTALL_PROGRAM) for gcore.
15254
9ea4267d
TT
152552014-01-20 Tom Tromey <tromey@redhat.com>
15256
15257 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15258 together.
15259
1f2bdf09
TT
152602014-01-20 Tom Tromey <tromey@redhat.com>
15261
15262 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15263 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15264 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15265 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15266 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15267 (struct cmd_list_element) <flags>: Remove.
15268 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15269 doc_allocated>: New fields.
15270 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15271 bitfields.
15272 * maint.c (maintenance_do_deprecate): Update.
15273 * top.c (execute_command): Update.
15274
e671835b
BS
152752014-01-20 Baruch Siach <baruch@tkos.co.il>
15276
15277 * xtensa-linux-nat.c: Include asm/ptrace.h.
15278
50367cd2
IB
152792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15280
15281 * Makefile.in (SFILES): Add d-support.c.
15282 (COMMON_OBS): Add d-support.o.
15283 * d-lang.h (d_parse_symbol): Add comment, now defined in
15284 d-support.c.
15285 * d-lang.c (parse_call_convention)
15286 (parse_attributes, parse_function_types)
15287 (parse_function_args, parse_type, parse_identifier)
15288 (call_convention_p, d_parse_symbol): Move functions to ...
15289 * d-support.c: ... New file.
15290
ec9f644a
IB
152912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15292
15293 * d-lang.h (d_parse_symbol): Add declaration.
15294 * d-lang.c (extract_identifiers)
15295 (extract_type_info): Remove functions.
15296 (parse_call_convention, parse_attributes)
15297 (parse_function_types, parse_function_args)
15298 (parse_type, parse_identifier, call_convention_p)
15299 (d_parse_symbol): New functions.
15300 (d_demangle): Use d_parse_symbol to demangle D symbols.
15301
94b1b47e
IB
153022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15303
15304 * d-lang.h (struct builtin_d_type): New data type.
15305 (builtin_d_type): Add declaration.
15306 * d-lang.c (d_language_arch_info, build_d_types)
15307 (builtin_d_type): New functions.
15308 (enum d_primitive_types): New data type.
15309 (d_language_defn): Change c_language_arch_info to
15310 d_language_arch_info.
15311 (d_type_data): New static variable.
15312 (_initialize_d_language): Initialize d_type_data.
15313
63778547
IB
153142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15315
15316 * d-lang.h (d_main_name): Add declaration.
15317 * d-lang.c (d_main_name): New function.
15318 * symtab.c (find_main_name): Add call to d_main_name.
15319
3271ba66
IB
153202014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15321
15322 * d-lang.c (d_language_defn): Change macro_expansion_c to
15323 macro_expansion_no.
15324
d36b3012
IB
153252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15326
15327 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15328
c90a6fb7
SDJ
153292014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15330
15331 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15332 gdb_exception" declaration.
15333 * remote.c (getpkt_or_notif_sane): Likewise.
15334
749234e5
DE
153352014-01-17 Doug Evans <dje@google.com>
15336
15337 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15338 function, contents of dirnames_to_char_ptr_vec_append moved here.
15339 (delim_string_to_char_ptr_vec): New function.
15340 (dirnames_to_char_ptr_vec_append): Rewrite.
15341 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15342
df049a58
DE
153432014-01-17 Doug Evans <dje@google.com>
15344
15345 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15346 and moved here ...
15347 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15348 #include "common-utils.h".
15349 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15350 * common/vec.h (VEC_ASSERT_PASS): Update.
15351 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15352 (MACH_CHECK_ERROR): Update.
15353
69f97648
SM
153542014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15355
15356 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15357 comments.
15358 * gdbarch.h: Regenerate.
15359
98b1cfdc
TT
153602014-01-16 Tom Tromey <tromey@redhat.com>
15361
15362 * value.c (struct value) <regnum>: Move earlier.
15363
77a19445
TT
153642014-01-16 Tom Tromey <tromey@redhat.com>
15365
15366 * remote.c (extended_remote_create_inferior): Rename from
15367 extended_remote_create_inferior_1. Add "ops" argument. Remove
15368 old implementation.
15369
62261490
PA
153702014-01-16 Pedro Alves <palves@redhat.com>
15371
15372 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15373 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15374 the backchain.
15375
4d65956b
DE
153762014-01-16 Doug Evans <dje@google.com>
15377
15378 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15379
52834460
MM
153802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15381
15382 * btrace.h (btrace_thread_flag): New.
15383 (struct btrace_thread_info) <flags>: New.
15384 * record-btrace.c (record_btrace_resume_thread)
15385 (record_btrace_find_thread_to_move, btrace_step_no_history)
15386 (btrace_step_stopped, record_btrace_start_replaying)
15387 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15388 (record_btrace_find_resume_thread): New.
15389 (record_btrace_resume, record_btrace_wait): Extend.
15390 (record_btrace_can_execute_reverse): New.
15391 (record_btrace_open): Fail in non-stop mode.
15392 (record_btrace_set_replay): Split into this, ...
15393 (record_btrace_stop_replaying): ... this, ...
15394 (record_btrace_clear_histories): ... and this.
15395 (init_record_btrace_ops): Init to_can_execute_reverse.
15396 * NEWS: Announce it.
15397
118e6252
MM
153982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15399
15400 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15401 (forward_target_decr_pc_after_break)
15402 (target_decr_pc_after_break): New.
15403 * target.c (forward_target_decr_pc_after_break)
15404 (target_decr_pc_after_break): New.
15405 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15406 instead of gdbarch_decr_pc_after_break.
15407 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15408 instead of gdbarch_decr_pc_after_break.
15409 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15410 instead of gdbarch_decr_pc_after_break.
15411 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15412 instead of gdbarch_decr_pc_after_break.
15413 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15414 instead of gdbarch_decr_pc_after_break.
15415 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15416 instead of gdbarch_decr_pc_after_break.
15417
6e07b1d2
MM
154182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15419
15420 * btrace.c: Include regcache.h.
15421 (btrace_add_pc): New.
15422 (btrace_enable): Call btrace_add_pc.
15423 (btrace_is_empty): New.
15424 * btrace.h (btrace_is_empty): New.
15425 * record-btrace.c (require_btrace, record_btrace_info): Call
15426 btrace_is_empty.
15427
969c39fb
MM
154282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15429
15430 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15431 Support delta reads.
15432 (linux_disable_btrace): Change return type.
15433 * common/linux-btrace.h (linux_read_btrace): Change parameters
15434 and return type to allow error reporting. Update users.
15435 (linux_disable_btrace): Change return type. Update users.
15436 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15437 New.
15438 (btrace_error): New.
15439 (btrace_block) <begin>: Comment on BEGIN == 0.
15440 * btrace.c (btrace_compute_ftrace): Start from the end of
15441 the current trace.
15442 (btrace_stitch_trace, btrace_clear_history): New.
15443 (btrace_fetch): Read delta trace, return if replaying.
15444 (btrace_clear): Move clear history code to btrace_clear_history.
15445 (parse_xml_btrace): Throw an error if parsing failed.
15446 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15447 and return type to allow error reporting.
15448 (target_read_btrace): Change parameters and return type to allow
15449 error reporting.
15450 * target.c (target_read_btrace): Update.
15451 * remote.c (remote_read_btrace): Support delta reads. Pass
15452 errors on.
15453 * NEWS: Announce it.
15454
0b722aec
MM
154552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15456
15457 * record.h (record_btrace_frame_unwind)
15458 (record_btrace_tailcall_frame_unwind): New declarations.
15459 * dwarf2-frame: Include record.h
15460 (dwarf2_frame_cfa): Throw an error for btrace frames.
15461 * record-btrace.c: Include hashtab.h.
15462 (btrace_get_bfun_name): New.
15463 (btrace_call_history): Call btrace_get_bfun_name.
15464 (struct btrace_frame_cache): New.
15465 (bfcache): New.
15466 (bfcache_hash, bfcache_eq, bfcache_new): New.
15467 (btrace_get_frame_function): New.
15468 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15469 (record_btrace_frame_this_id): Compute own id.
15470 (record_btrace_frame_prev_register): Provide PC, throw_error
15471 for all other registers.
15472 (record_btrace_frame_sniffer): Detect btrace frames.
15473 (record_btrace_tailcall_frame_sniffer): New.
15474 (record_btrace_frame_dealloc_cache): New.
15475 (record_btrace_frame_unwind): Add new functions.
15476 (record_btrace_tailcall_frame_unwind): New.
15477 (_initialize_record_btrace): Allocate cache.
15478 * btrace.c (btrace_clear): Call reinit_frame_cache.
15479 * NEWS: Announce it.
15480
066ce621
MM
154812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15482
15483 * record-btrace.c (record_btrace_set_replay)
15484 (record_btrace_goto_begin, record_btrace_goto_end)
15485 (record_btrace_goto): New.
15486 (init_record_btrace_ops): Initialize them.
15487 * NEWS: Announce it.
15488
e2887aa3
MM
154892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15490
15491 * record-btrace.c (record_btrace_find_new_threads)
15492 (record_btrace_thread_alive): New.
15493 (init_record_btrace_ops): Initialize to_find_new_threads and
15494 to_thread_alive.
15495
b2f4cfde
MM
154962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15497
15498 * record-btrace.c (record_btrace_resume): New.
15499 (record_btrace_wait): New.
15500 (init_record_btrace_ops): Initialize to_wait and to_resume.
15501
633785ff
MM
155022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15503
15504 * record-btrace.c (record_btrace_xfer_partial)
15505 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15506 (record_btrace_allow_memory_access): New.
15507 (init_record_btrace_ops): Initialize new methods.
15508 * target.c (raw_memory_xfer_partial): Bail out if target reports
15509 that this memory is not available.
15510
3db08215
MM
155112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15512
15513 * target.h (target_ops) <to_insert_breakpoint>
15514 <to_remove_breakpoint>: Add target_ops parameter.
15515 (forward_target_insert_breakpoint): New.
15516 (forward_target_remove_breakpoint): New.
15517 (memory_remove_breakpoint, memory_insert_breakpoint):
15518 Add target_ops parameter.
15519 * target.c (target_insert_breakpoint): Split into this and ...
15520 (forward_target_insert_breakpoint): ... this.
15521 (target_remove_breakpoint): Split into this and ...
15522 (forward_target_remove_breakpoint): ... this.
15523 (debug_to_insert_breakpoint): Add target_ops parameter.
15524 Call forward_target_insert_breakpoint.
15525 (debug_to_remove_breakpoint): Add target_ops parameter.
15526 Call forward_target_remove_breakpoint.
15527 (update_current_target): Do not inherit or default to_insert_breakpoint
15528 and to_remove_breakpoint.
15529 * corelow.c (ignore): Add target_ops parameter.
15530 * exec.c (ignore): Add target_ops parameter.
15531 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15532 Add target_ops parameter.
15533 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15534 Add target_ops parameter.
15535 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15536 Add target_ops parameter.
15537 * record-full.c (record_full_beneath_to_insert_breakpoint)
15538 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15539 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15540 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15541 (record_full_core_remove_breakpoint): Add target_ops parameter.
15542 Update users.
15543 (record_full_beneath_to_insert_breakpoint_ops)
15544 (record_full_beneath_to_remove_breakpoint_ops)
15545 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15546 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15547 tmp_to_remove_breakpoint_ops,
15548 record_full_beneath_to_insert_breakpoint_ops, and
15549 record_full_beneath_to_remove_breakpoint_ops.
15550 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15551 (m32r_remove_breakpoint): Add target_ops parameter.
15552 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15553 Add target_ops parameter.
15554 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15555 Add target_ops parameter.
15556
cecac1ab
MM
155572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15558 Markus Metzger <markus.t.metzger@intel.com>
15559
15560 * record-btrace.c: Include frame-unwind.h.
15561 (record_btrace_frame_unwind_stop_reason)
15562 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15563 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15564 New.
15565 (init_record_btrace_ops): Install it.
15566
824344ca
MM
155672014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15568
15569 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15570 get_prev_frame_1.
15571
32261e52
MM
155722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15573
15574 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15575 earlier.
15576
ea001bdc
MM
155772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15578
15579 * frame-unwind.c: Include target.h.
15580 (frame_unwind_try_unwinder): New function with code from ...
15581 (frame_unwind_find_by_frame): ... here. New variable
15582 unwinder_from_target, call also target_get_unwinder)
15583 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15584 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15585 * target.h (struct target_ops): New fields to_get_unwinder and
15586 to_get_tailcall_unwinder.
15587 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15588
1f3ef581
MM
155892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15590
15591 * record-btrace.c (record_btrace_fetch_registers)
15592 (record_btrace_store_registers)
15593 (record_btrace_to_prepare_to_store): New.
15594 (init_record_btrace_ops): Add the above.
15595
f32dbf8c
MM
155962014-01-16 Tom Tromey <tromey@redhat.com>
15597
15598 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15599 * target.h (struct target_ops) <to_prepare_to_store>: Add
15600 argument.
15601 (target_prepare_to_store): Add argument.
15602 * target.c (debug_to_prepare_to_store): Add argument.
15603 (update_current_target): Update.
15604 * remote.c (remote_prepare_to_store): Add 'self' argument.
15605 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15606 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15607 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15608 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15609 argument.
15610 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15611 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15612 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15613 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15614 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15615
07bbe694
MM
156162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15617
15618 * btrace.h (replay) <replay>: New.
15619 (btrace_is_replaying): New.
15620 * btrace.c (btrace_clear): Free replay iterator.
15621 (btrace_is_replaying): New.
15622 * record-btrace.c (record_btrace_is_replaying): New.
15623 (record_btrace_info): Print insn number if replaying.
15624 (record_btrace_insn_history): Start at replay position.
15625 (record_btrace_call_history): Start at replay position.
15626 (init_record_btrace_ops): Init to_record_is_replaying.
15627
0688d04e
MM
156282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15629
15630 * record-btrace.c (record_btrace_insn_history_range): Include
15631 end.
15632 (record_btrace_insn_history_from): Adjust range.
15633 (record_btrace_call_history_range): Include
15634 end.
15635 (record_btrace_call_history_from): Adjust range.
15636 * NEWS: Announce changes.
15637
8710b709
MM
156382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15639
15640 * record.h (enum record_print_flag)
15641 <record_print_indent_calls>: New.
15642 * record.c (get_call_history_modifiers): Recognize /c modifier.
15643 (_initialize_record): Document /c modifier.
15644 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15645 Reorder fields. Optionally indent the function name. Update
15646 all users.
15647 * NEWS: Announce changes.
15648
d0fa7535
MM
156492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15650
15651 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15652
5de9129b
MM
156532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15654
15655 * btrace.c (ftrace_new_function): Start counting at one.
15656 * record-btrace.c (record_btrace_info): Adjust number of calls
15657 and insns.
15658 * NEWS: Announce it.
15659
7acbe133
MM
156602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15661
15662 * record-btrace.c (btrace_call_history_insn_range): Print
15663 insn range as [begin, end].
15664
23a7fe75
MM
156652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15666
15667 * btrace.h (struct btrace_func_link): New.
15668 (enum btrace_function_flag): New.
15669 (struct btrace_inst): Rename to ...
15670 (struct btrace_insn): ...this. Update all users.
15671 (struct btrace_func) <ibegin, iend>: Remove.
15672 (struct btrace_func_link): New.
15673 (struct btrace_func): Rename to ...
15674 (struct btrace_function): ...this. Update all users.
15675 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15676 (number, level, flags>: New.
15677 (struct btrace_insn_iterator): Rename to ...
15678 (struct btrace_insn_history): ...this.
15679 Update all users.
15680 (struct btrace_insn_iterator, btrace_call_iterator): New.
15681 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15682 (struct btrace_target_info) <begin, end, level>
15683 <insn_history, call_history>: New.
15684 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15685 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15686 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15687 (btrace_call_number, btrace_call_begin, btrace_call_end)
15688 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15689 (btrace_find_function_by_number, btrace_set_insn_history)
15690 (btrace_set_call_history): New.
15691 * btrace.c (btrace_init_insn_iterator)
15692 (btrace_init_func_iterator, compute_itrace): Remove.
15693 (ftrace_print_function_name, ftrace_print_filename)
15694 (ftrace_skip_file): Change
15695 parameter to const.
15696 (ftrace_init_func): Remove.
15697 (ftrace_debug): Use new btrace_function fields.
15698 (ftrace_function_switched): Also consider gaining and
15699 losing symbol information).
15700 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15701 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15702 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15703 New.
15704 (ftrace_new_function): Move. Remove debug print.
15705 (ftrace_update_lines, ftrace_update_insns): New.
15706 (ftrace_update_function): Check for call, ret, and jump.
15707 (compute_ftrace): Renamed to ...
15708 (btrace_compute_ftrace): ...this. Rewritten to compute call
15709 stack.
15710 (btrace_fetch, btrace_clear): Updated.
15711 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15712 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15713 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15714 (btrace_call_number, btrace_call_begin, btrace_call_end)
15715 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15716 (btrace_find_function_by_number, btrace_set_insn_history)
15717 (btrace_set_call_history): New.
15718 * record-btrace.c (require_btrace): Use new btrace thread
15719 info fields.
15720 (record_btrace_info, btrace_insn_history)
15721 (record_btrace_insn_history, record_btrace_insn_history_range):
15722 Use new btrace thread info fields and new iterator.
15723 (btrace_func_history_src_line): Rename to ...
15724 (btrace_call_history_src_line): ...this. Use new btrace
15725 thread info fields.
15726 (btrace_func_history): Rename to ...
15727 (btrace_call_history): ...this. Use new btrace thread info
15728 fields and new iterator.
15729 (record_btrace_call_history, record_btrace_call_history_range):
15730 Use new btrace thread info fields and new iterator.
15731
8372a7cb
MM
157322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15733
15734 * frame.h (frame_id_build_unavailable_stack_special): New.
15735 * frame.c (frame_id_build_unavailable_stack_special): New.
15736
c2170eef
MM
157372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15738
15739 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15740 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15741 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15742 to gdbarch.
15743 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15744 (i386_insn_is_jump, i386_jmp_p): New.
15745 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15746 insn_is_jump to gdbarch.
15747 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15748 * gdbarch.h: Regenerated.
15749 * gdbarch.c: Regenerated.
15750 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15751 (default_insn_is_jump): New.
15752 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15753 (default_insn_is_jump): New.
15754
864089d2
MM
157552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15756
15757 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15758 Change to ...
15759 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15760 (btrace_read_type) <btrace_read_new>: Change to ...
15761 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15762
ed9edfb5
MM
157632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15764
15765 * common/linux-btrace.c (linux_read_btrace): Free trace from
15766 previous iteration.
15767
fbcbc3fd
DE
157682014-01-15 Doug Evans <dje@google.com>
15769
15770 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15771 uint32_t.
15772
3d548a53
TT
157732014-01-15 Tom Tromey <tromey@redhat.com>
15774
15775 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15776 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15777 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15778 (set_objfile_main_name): New function.
15779 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15780 language_of_main>: New fields.
15781 (set_objfile_main_name): Declare.
15782 * symtab.c (find_main_name): Loop over objfiles to find the main
15783 name and language.
15784 (set_main_name): Now static.
15785 (get_main_info): Add comment.
15786 * symtab.h (set_main_name): Don't declare.
15787
32ac0d11
TT
157882014-01-15 Tom Tromey <tromey@redhat.com>
15789
15790 * symtab.c (main_progspace_key): New global.
15791 (struct main_info): New.
15792 (name_of_main, language_of_main): Remove.
15793 (get_main_info, main_info_cleanup): New function.
15794 (set_main_name, main_name, main_language): Use get_main_info.
15795 (_initialize_symtab): Initialize main_progspace_key.
15796
9e6c82ad
TT
157972014-01-15 Tom Tromey <tromey@redhat.com>
15798
15799 * dbxread.c (process_one_symbol): Update.
15800 * dwarf2read.c (read_partial_die): Update.
15801 * symfile.c (set_initial_language): Call main_language.
15802 * symtab.c (language_of_main): Now static.
15803 (set_main_name): Add 'lang' parameter.
15804 (find_main_name): Update.
15805 (main_language): New function.
15806 (symtab_observer_executable_changed): Update.
15807 * symtab.h (set_main_name): Update.
15808 (language_of_main): Remove.
15809 (main_language): Declare.
15810
6ef55de7
TT
158112014-01-15 Tom Tromey <tromey@redhat.com>
15812
15813 * symfile.c (init_entry_point_info): Use new "initialized" field.
15814 Update.
15815 * objfiles.h (struct entry_point) <initialized>: New field.
15816 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15817 (struct objfile) <ei>: ...here. Remove.
15818 * objfiles.c (entry_point_address_query): Update.
15819
53eddfa6
TT
158202014-01-15 Tom Tromey <tromey@redhat.com>
15821
15822 * objfiles.c (entry_point_address_query): Relocate entry point
15823 address.
15824 (objfile_relocate1): Do not relocate entry point address.
15825 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15826 <the_bfd_section_index>: New field.
15827 * symfile.c (init_entry_point_info): Find the entry point's
15828 section.
15829
d56e56aa
TT
158302014-01-15 Tom Tromey <tromey@redhat.com>
15831
15832 * solib-frv.c (enable_break): Use entry_point_address_query.
15833
33a97bbe
OJ
158342014-01-15 Omair Javaid <omair.javaid@linaro.org>
15835
15836 * NEWS: Add note on improved process record-replay on
15837 arm*-linux* targets.
15838
c6ec2b30
OJ
158392014-01-15 Omair Javaid <omair.javaid@linaro.org>
15840
15841 * arm-tdep.c (enum arm_record_result): New enum.
15842 (arm_record_unsupported_insn): New function.
15843 (arm_record_coproc_data_proc): Removed.
15844 (thumb2_record_ld_st_multiple): New function.
15845 (thumb2_record_ld_st_dual_ex_tbb): New function.
15846 (thumb2_record_data_proc_sreg_mimm): New function.
15847 (thumb2_record_ps_dest_generic): New function.
15848 (thumb2_record_branch_misc_cntrl): New function.
15849 (thumb2_record_str_single_data): New function.
15850 (thumb2_record_ld_mem_hints): New function.
15851 (thumb2_record_ld_word): New function.
15852 (thumb2_record_lmul_lmla_div): New function.
15853 (thumb2_record_decode_insn_handler): New function.
15854 (decode_insn): Add thumb32 instruction handlers.
15855
97dfe206
OJ
158562014-01-15 Omair Javaid <omair.javaid@linaro.org>
15857
15858 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15859 (struct arm_linux_record_tdep): Declare.
15860 (arm_canonicalize_syscall): New function.
15861 (arm_all_but_pc_registers_record): New function.
15862 (arm_linux_syscall_record): New function.
15863 (arm_linux_init_abi): Add syscall recording constructs.
15864 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15865 decoding. (arm_record_coproc_data_proc): Update arm syscall
15866 decoding.
15867 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15868 <arm_syscall_record>: New field.
15869 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15870 gdb_target_obs.
15871
9904a494
OJ
158722014-01-15 Omair Javaid <omair.javaid@linaro.org>
15873
15874 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15875 register for push instruction recording.
15876
f969241e
OJ
158772014-01-15 Omair Javaid <omair.javaid@linaro.org>
15878
15879 * arm-tdep.c (thumb_record_misc): Update to correct logical
15880 error while recording ldm, ldmia and pop instructions.
15881
bfbbec00
OJ
158822014-01-15 Omair Javaid <omair.javaid@linaro.org>
15883
15884 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15885
e40adcc9
PA
158862014-01-15 Pedro Alves <palves@redhat.com>
15887
15888 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15889 (go32_resume, go32_fetch_registers, store_register)
15890 (go32_store_registers, go32_prepare_to_store)
15891 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15892 (go32_create_inferior, go32_can_run, go32_terminal_init)
15893 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15894 declarations.
15895
b0a16e66
TT
158962014-01-15 Tom Tromey <tromey@redhat.com>
15897
15898 * target.h (async_callback_ftype): New typedef.
15899 (struct target_ops) <to_async>: Use it.
15900
bf7105a4
JB
159012014-01-15 Joel Brobecker <brobecker@adacore.com>
15902
15903 * python/py-value.c (get_field_type): Remove unnecessary curly
15904 braces for single-statement if block.
15905
a8f35c2e
JB
159062014-01-15 Joel Brobecker <brobecker@adacore.com>
15907
15908 * python/py-type.c (convert_field): Add missing empty line
15909 after declarations.
15910
bb4142cf
DE
159112014-01-14 Doug Evans <dje@google.com>
15912
15913 * symfile.h (expand_symtabs_matching): Renamed from
15914 expand_partial_symbol_names. Update prototype.
15915 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15916 * symfile.c (expand_symtabs_matching): Renamed from
15917 expand_partial_symbol_names. New args file_matcher, kind.
15918 Rename arg fun to symbol_matcher.
15919 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15920 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15921 ada_expand_partial_symbol_name.
15922 (ada_make_symbol_completion_list): Update to call
15923 expand_symtabs_matching.
15924 (ada_add_global_exceptions): Call expand_symtabs_matching.
15925 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15926 call map_symbol_filenames.
15927 * symtab.c (sources_info): Update to call map_symbol_filenames.
15928 (search_symbols): Call expand_symtabs_matching.
15929 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15930 (default_make_symbol_completion_list_break_on): Update to call
15931 expand_symtabs_matching.
15932 (make_source_files_completion_list): Update to call
15933 map_symbol_filenames.
15934
206f2a57
DE
159352014-01-14 Doug Evans <dje@google.com>
15936
15937 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15938 (expand_symtabs_symbol_matcher_ftype): New typedef.
15939 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15940 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15941 * symfile.c (expand_partial_symbol_names): Update to use
15942 expand_symtabs_symbol_matcher_ftype.
15943 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15944 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15945 Arg name_matcher renamed to symbol_matcher.
15946 * psymtab.c (recursively_search_psymtabs): Update to use
15947 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15948 sym_matcher.
15949 (expand_symtabs_matching_via_partial): Update to use
15950 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15951 Arg name_matcher renamed to symbol_matcher.
15952
540c2971
DE
159532014-01-14 Doug Evans <dje@google.com>
15954
15955 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15956 (map_partial_symbol_filenames): Ditto.
15957 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15958 (map_partial_symbol_filenames): Ditto.
15959 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15960 (map_partial_symbol_filenames): Ditto.
15961 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15962 (map_partial_symbol_filenames): Ditto.
15963 * symtab.c: Delete #include "psymtab.h".
15964
8213266a
PA
159652014-01-14 Pedro Alves <palves@redhat.com>
15966 Tom Tromey <tromey@redhat.com>
15967
15968 * infrun.c (use_displaced_stepping): Use find_record_target
15969 instead of RECORD_IS_USED.
15970 (adjust_pc_after_break): Use record_full_is_used instead of
15971 RECORD_IS_USED.
15972 * record-btrace.c (record_btrace_open): Call record_preopen
15973 instead of checking RECORD_IS_USED.
15974 * record-full.c (record_full_shortname)
15975 (record_full_core_shortname): New globals.
15976 (record_full_is_used): New function.
15977 (find_full_open): Call record_preopen instead of checking
15978 RECORD_IS_USED.
15979 (init_record_full_ops): Set the target's shortname to
15980 record_full_shortname.
15981 (init_record_full_core_ops): Set the target's shortname to
15982 record_full_core_shortname.
15983 * record-full.h (record_full_is_used): Declare.
15984 * record.c (find_record_target): Make extern.
15985 (record_preopen): New function.
15986 * record.h (RECORD_IS_USED): Delete macro.
15987 (find_record_target, record_preopen): Declare functions.
15988
7ec1862d
YQ
159892014-01-14 Yao Qi <yao@codesourcery.com>
15990
15991 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15992 'len''s type to ULONGEST.
15993 (core_xfer_shared_libraries_aix): Likewise.
15994 * gdbarch.c, gdbarch.h: Regenerated.
15995 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15996 Change type of 'len' to ULONGEST.
15997 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15998 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15999
dea80a27
YQ
160002014-01-14 Yao Qi <yao@codesourcery.com>
16001
16002 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16003 type of 'len' to ULONGEST.
16004 (linux_xfer_osdata_processgroups): Likewise.
16005 (linux_xfer_osdata_threads): Likewise.
16006 (linux_xfer_osdata_fds): Likewise.
16007 (linux_xfer_osdata_isockets): Likewise.
16008 (linux_xfer_osdata_shm): Likewise.
16009 (linux_xfer_osdata_sem): Likewise.
16010 (linux_xfer_osdata_msg): Likewise.
16011 (linux_common_xfer_osdata): Likewise.
16012 (struct osdata_type) <getter>: Likewise.
16013 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16014 the declaration.
16015
b55e14c7
YQ
160162014-01-14 Yao Qi <yao@codesourcery.com>
16017
16018 * target.h (target_xfer_partial_ftype): Update.
16019 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16020 ULONGEST.
16021 * aix-thread.c (aix_thread_xfer_partial): Change type of
16022 argument 'len' to ULONGEST.
16023 * auxv.c (procfs_xfer_auxv): Likewise.
16024 (ld_so_xfer_auxv): Likewise.
16025 (memory_xfer_auxv): Likewise.
16026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16028 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16029 * corelow.c (core_xfer_partial): Likewise.
16030 * ctf.c (ctf_xfer_partial): Likewise.
16031 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16032 '%u'.
16033 (darwin_read_dyld_info): Likewise.
16034 (darwin_xfer_partial): Likewise.
16035 * exec.c (section_table_xfer_memory_partial): Likewise.
16036 (exec_xfer_partial): Likewise.
16037 * exec.h (section_table_xfer_memory_partial): Update
16038 declaration.
16039 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16040 instead of plongest.
16041 (gnu_xfer_partial): Likewise.
16042 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16043 (ia64_hpux_xfer_solib_got): Likewise.
16044 (ia64_hpux_xfer_partial): Likewise.
16045 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16046 * inf-ptrace.c (inf_ptrace_xfer_partial):
16047 * inf-ttrace.c (inf_ttrace_xfer_partial):
16048 * linux-nat.c (linux_xfer_siginfo): Likewise.
16049 (linux_nat_xfer_partial): Likewise.
16050 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16051 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16052 * monitor.c (monitor_xfer_memory): Likewise.
16053 (monitor_xfer_partial): Likewise.
16054 * procfs.c (procfs_xfer_partial): Likewise.
16055 * record-full.c (record_full_xfer_partial): Likewise.
16056 (record_full_core_xfer_partial): Likewise.
16057 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16058 instead of plongest.
16059 (gdbsim_xfer_partial): Likewise.
16060 * remote.c (remote_xfer_partial): Likewise.
16061 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16062 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16063 declaration.
16064 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16065 (rs6000_xfer_shared_libraries): Likewise.
16066 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16067 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16068 (sparc_xfer_partial): Likewise.
16069 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16070 (spu_xfer_partial): Likewise.
16071 * spu-multiarch.c (spu_xfer_partial): Likewise.
16072 * target.c (target_read_live_memory): Likewise.
16073 (memory_xfer_live_readonly_partial): Likewise.
16074 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16075 (target_xfer_partial, default_xfer_partial): Likewise.
16076 (current_xfer_partial): Likewise.
16077 * tracepoint.c (tfile_xfer_partial): Likewise.
16078 * windows-nat.c (windows_xfer_memory): Likewise. Call
16079 pulongest instead of plongest.
16080 (windows_xfer_partial): Likewise.
16081 (windows_xfer_shared_libraries): Likewise.
16082
05804640
YQ
160832014-01-14 Yao Qi <yao@codesourcery.com>
16084
16085 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16086 target_xfer_partial_ftype.
16087
b5b08fb4
SC
160882014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16089
16090 PR python/15464
16091 PR python/16113
16092 * valops.c (value_struct_elt_bitpos): New function
16093 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16094 object to 'None' if the field name is an empty string ("").
16095 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16096 attribute to look for a field when 'name' is 'None'.
16097 (get_field_type): New function
16098
13aaf454
DE
160992014-01-13 Doug Evans <dje@google.com>
16100
16101 PR symtab/16426
16102 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16103 (try_open_dwop_file): Ditto.
16104 * gdb_bfd.c: #include "vec.h".
16105 (bfdp): New typedef.
16106 (struct gdb_bfd_data): New member included_bfds.
16107 (gdb_bfd_unref): Unref all included bfds.
16108 (gdb_bfd_record_inclusion): New function.
16109 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16110
c2cec97c
TT
161112014-01-13 Tom Tromey <tromey@redhat.com>
16112
16113 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16114
78e5999d
TT
161152014-01-13 Tom Tromey <tromey@redhat.com>
16116
16117 * defs.h (use_windows): Remove.
16118 * gdb.c (main): Update.
16119 * main.c (captured_main, gdb_main): Update.
16120 * main.h (struct captured_main_args) <use_windows>: Remove.
16121 * top.c (use_windows): Remove.
16122
f2052bbe
TT
161232014-01-13 Tom Tromey <tromey@redhat.com>
16124
16125 * defs.h (deprecated_flush_hook): Remove.
16126
fde4f8ed
JK
161272014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16128
16129 PR threads/16216
16130 * linux-thread-db.c (try_thread_db_load): Add parameter
16131 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16132 (try_thread_db_load_from_pdir_1): Move it there from here.
16133 (try_thread_db_load_from_sdir): Update caller.
16134 (try_thread_db_load_from_dir): Move it there from here.
16135
bdf61915
PP
161362014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16137
16138 * regformats/regdat.sh: Always rewrite the register file.
16139
f71e1a8d
PA
161402014-01-13 Pedro Alves <palves@redhat.com>
16141
16142 * Makefile.in (CHECK_HEADERS): New variable.
16143 (check-headers:): New rule.
16144
42c85435
TT
161452014-01-13 Tom Tromey <tromey@redhat.com>
16146
16147 * cli/cli-setshow.c (do_set_command): Update.
16148 * defs.h (deprecated_set_hook): Remove.
16149 * top.c (deprecated_set_hook): Remove.
16150
f8de5129
PA
161512014-01-13 Pedro Alves <palves@redhat.com>
16152
16153 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16154 the tracepoint if the PC is a pseudo-register.
16155
fc270c35
TT
161562014-01-13 Tom Tromey <tromey@redhat.com>
16157
16158 * defs.h (XCALLOC): Remove.
16159 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16160 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16161 * dwarf2loc.c (allocate_piece_closure): Likewise.
16162 * elfread.c (elf_symfile_segments): Likewise.
16163 (elf_symfile_segments): Likewise.
16164 * gdbtypes.c (copy_type_recursive): Likewise.
16165 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16166 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16167 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16168 XCALLOC.
16169 * mt-tdep.c (mt_gdbarch_init): Likewise.
16170 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16171 XCALLOC.
16172 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16173 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16174 * registry.c (registry_alloc_data): Likewise.
16175 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16176 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16177 * serial.c (serial_fdopen_ops): Likewise.
16178 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16179 XCALLOC.
16180 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16181 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16182 not XCALLOC.
16183
70ba0933
TT
161842014-01-13 Tom Tromey <tromey@redhat.com>
16185
16186 * defs.h (XMALLOC): Remove.
16187 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16188 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16189 * cli-out.c (struct ui_out *): Likewise.
16190 * cli/cli-dump.c (add_dump_command): Likewise.
16191 (add_dump_command): Likewise.
16192 * complaints.c (get_complaints): Likewise.
16193 (find_complaint): Likewise.
16194 * dwarf2-frame.c (execute_cfa_program): Likewise.
16195 * dwarf2read.c (abbrev_table_read_table): Likewise.
16196 * gdbarch.sh: Likewise.
16197 * gdbarch.c: Rebuild.
16198 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16199 * interps.c (interp_new): Likewise.
16200 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16201 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16202 * mi/mi-console.c (mi_console_file_new): Likewise.
16203 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16204 * mi/mi-out.c (mi_out_new): Likewise.
16205 * mi/mi-parse.c (mi_parse): Likewise.
16206 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16207 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16208 * observer.c (xalloc_observer_list_node): Likewise.
16209 * regcache.c (regcache_xmalloc_1): Likewise.
16210 * reggroups.c (reggroup_new): Likewise.
16211 (_initialize_reggroup): Likewise.
16212 * registry.c (register_data_with_cleanup): Likewise.
16213 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16214 * ser-base.c (serial_ttystate): Likewise.
16215 * ser-mingw.c (make_pipe_state): Likewise.
16216 * ser-pipe.c (pipe_open): Likewise.
16217 * serial.c (serial_open): Likewise.
16218 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16219 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16220 (tui_alloc_win_info): Likewise.
16221 (tui_add_content_elements): Likewise.
16222 * tui/tui-file.c (tui_file_new): Likewise.
16223 * tui/tui-out.c (tui_out_new): Likewise.
16224 * ui-file.c (mem_file_new): Likewise.
16225 * ui-out.c (push_level): Likewise.
16226 (make_cleanup_ui_out_end): Likewise.
16227 (append_header_to_list): Likewise.
16228 (ui_out_new): Likewise.
16229 * user-regs.c (user_reg_add_builtin): Likewise.
16230
41bf6aca
TT
162312014-01-13 Tom Tromey <tromey@redhat.com>
16232
16233 * defs.h (XZALLOC): Remove.
16234 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16235 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16236 (get_ada_tasks_inferior_data): Likewise.
16237 * auto-load.c (get_auto_load_pspace_data): Likewise.
16238 * auxv.c (get_auxv_inferior_data): Likewise.
16239 * bfd-target.c (target_bfd_reopen): Likewise.
16240 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16241 (deprecated_insert_raw_breakpoint): Likewise.
16242 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16243 * corelow.c (core_open): Likewise.
16244 * darwin-nat.c (darwin_check_new_threads): Likewise.
16245 (darwin_attach_pid): Likewise.
16246 * dummy-frame.c (dummy_frame_push): Likewise.
16247 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16248 * dwarf2loc.c (allocate_piece_closure): Likewise.
16249 * elfread.c (elf_symfile_segments): Likewise.
16250 * eval.c (ptrmath_type_p): Likewise.
16251 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16252 * gdbtypes.c (alloc_type_arch): Likewise.
16253 (alloc_type_instance): Likewise.
16254 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16255 * inf-child.c (inf_child_can_use_agent): Likewise.
16256 * inflow.c (get_inflow_inferior_data): Likewise.
16257 * infrun.c (save_infcall_suspend_state): Likewise.
16258 * jit.c (jit_reader_load): Likewise.
16259 (get_jit_objfile_data): Likewise.
16260 (get_jit_program_space_data): Likewise.
16261 (jit_object_open_impl): Likewise.
16262 (jit_symtab_open_impl): Likewise.
16263 (jit_block_open_impl): Likewise.
16264 (jit_frame_sniffer): Likewise.
16265 * linux-fork.c (add_fork): Likewise.
16266 * maint.c (make_command_stats_cleanup): Likewise.
16267 * objfiles.c (get_objfile_pspace_data): Likewise.
16268 * opencl-lang.c (struct lval_closure): Likewise.
16269 * osdata.c (osdata_start_osdata): Likewise.
16270 * progspace.c (new_address_space): Likewise.
16271 (add_program_space): Likewise.
16272 * remote-sim.c (get_sim_inferior_data): Likewise.
16273 * sh-tdep.c (sh_gdbarch_init): Likewise.
16274 * skip.c (Ignore): Likewise.
16275 (skip_delete_command): Likewise.
16276 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16277 (library_list_start_library): Likewise.
16278 (solib_aix_current_sos): Likewise.
16279 * solib-darwin.c (get_darwin_info): Likewise.
16280 (darwin_current_sos): Likewise.
16281 * solib-dsbt.c (get_dsbt_info): Likewise.
16282 * solib-ia64-hpux.c (new_so_list): Likewise.
16283 (ia64_hpux_get_solib_linkage_addr): Likewise.
16284 * solib-spu.c (append_ocl_sos): Likewise.
16285 (spu_current_sos): Likewise.
16286 * solib-svr4.c (get_svr4_info): Likewise.
16287 (svr4_keep_data_in_core): Likewise.
16288 (library_list_start_library): Likewise.
16289 (svr4_default_sos): Likewise.
16290 (svr4_read_so_list): Likewise.
16291 * solib-target.c (library_list_start_library): Likewise.
16292 (solib_target_current_sos): Likewise.
16293 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16294 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16295 * symfile.c (default_symfile_segments): Likewise.
16296 * target-descriptions.c (tdesc_data_init): Likewise.
16297 (tdesc_create_reg): Likewise.
16298 (struct tdesc_type *): Likewise.
16299 (tdesc_create_vector): Likewise.
16300 (tdesc_set_struct_size): Likewise.
16301 (struct tdesc_type *): Likewise.
16302 (tdesc_free_feature): Likewise.
16303 (tdesc_create_feature): Likewise.
16304 * windows-nat.c (windows_add_thread): Likewise.
16305 (windows_make_so): Likewise.
16306 * xml-support.c (gdb_xml_body_text): Likewise.
16307 (gdb_xml_create_parser_and_cleanup): Likewise.
16308 (xml_process_xincludes): Likewise.
16309 * xml-syscall.c (allocate_syscalls_info): Likewise.
16310 (syscall_create_syscall_desc): Likewise.
16311
5acfdbae
SDJ
163122014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16313
16314 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16315 function, with code from i386_stap_parse_special_token.
16316 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16317 (i386_stap_parse_special_token): Move code to the two functions
16318 above; simplify it.
16319
0000e5cc
PA
163202014-01-09 Pedro Alves <palves@redhat.com>
16321 Hui Zhu <hui@codesourcery.com>
16322
16323 PR gdb/16101
16324 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16325 bp_err_string. Don't mark the location shlib_disabled if the
16326 error thrown wasn't a generic or memory error. Catch errors
16327 thrown while inserting breakpoints in overlayed code. Output
16328 error message of software breakpoints.
16329 * remote.c (remote_insert_breakpoint): If this breakpoint has
16330 target-side commands but this stub doesn't support Z0 packets,
16331 throw NOT_SUPPORTED_ERROR error.
16332 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16333 * target.h (target_insert_breakpoint): Extend comment.
16334 (target_insert_hw_breakpoint): Add comment.
16335
b7ea362b
PA
163362014-01-08 Pedro Alves <palves@redhat.com>
16337
16338 * remote.c (remote_add_thread): Add threads silently if starting
16339 up.
16340 (remote_notice_new_inferior): If in all-stop, and starting up,
16341 don't call notice_new_inferior.
16342 (get_current_thread): New function, factored out from ...
16343 (add_current_inferior_and_thread): ... this. Adjust.
16344 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16345 found any thread, then select the remote's current thread as GDB's
16346 current thread too.
16347
b7bba001
JB
163482014-01-08 Joel Brobecker <brobecker@adacore.com>
16349
16350 * NEWS: Create a new section for the next release branch.
16351 Rename the section of the current branch, now that it has
16352 been cut.
16353
16dfbded
JB
163542014-01-08 Joel Brobecker <brobecker@adacore.com>
16355
16356 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16357 * version.in: Bump version to 7.7.50.DATE-cvs.
16358
22c90ac1
YQ
163592014-01-08 Yao Qi <yao@codesourcery.com>
16360
16361 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16362 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16363 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16364
d64ad97c
YQ
163652014-01-08 Yao Qi <yao@codesourcery.com>
16366
16367 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16368 return value of bfd_get_filename to symbol_file_add_from_bfd.
16369
f93ba80c
PM
163702014-01-08 Pierre Muller <muller@sourceware.org>
16371
16372 Fix PR16201.
16373 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16374 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16375 to prim_record_mininal_symbol_and_info.
16376 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16377 in call to prim_record_minimal_symbol_and_info.
16378 (read_pe_exported_syms): Set index field of section_data.
16379
a4d9ba85
AP
163802014-01-07 Andrew Pinski <apinski@cavium.com>
16381
16382 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16383 * features/aarch64.c: Regenerate.
16384
1b67eb02
AS
163852014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16386
16387 * target.c (return_null): Define.
16388 (update_current_target): Use it instead of return_zero for
16389 functions that return a pointer.
16390
5e3f4fab
EBM
163912014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16392
16393 * source.c (add_path): Fix check for duplicated paths in the previously
16394 included paths.
16395
e2616788
HK
163962014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16397
16398 * ada-lang.c: Remove duplicated include statements.
16399 * alphabsd-nat.c: Ditto.
16400 * amd64-darwin-tdep.c: Ditto.
16401 * amd64fbsd-nat.c: Ditto.
16402 * auto-load.c: Ditto.
16403 * ax-gdb.c: Ditto.
16404 * breakpoint.c: Ditto.
16405 * dbxread.c: Ditto.
16406 * fork-child.c: Ditto.
16407 * gdb_usleep.c: Ditto.
16408 * i386-darwin-tdep.c: Ditto.
16409 * i386fbsd-nat.c: Ditto.
16410 * infcmd.c: Ditto.
16411 * inferior.c: Ditto.
16412 * jv-lang.c: Ditto.
16413 * linux-nat.c: Ditto.
16414 * linux-tdep.c: Ditto.
16415 * m68kbsd-nat.c: Ditto.
16416 * m68klinux-nat.c: Ditto.
16417 * microblaze-tdep.c: Ditto.
16418 * mips-linux-tdep.c: Ditto.
16419 * mn10300-tdep.c: Ditto.
16420 * nto-tdep.c: Ditto.
16421 * opencl-lang.c: Ditto.
16422 * osdata.c: Ditto.
16423 * printcmd.c: Ditto.
16424 * regcache.c: Ditto.
16425 * remote-m32r-sdi.c: Ditto.
16426 * remote.c: Ditto.
16427 * symfile.c: Ditto.
16428 * symtab.c: Ditto.
16429 * tilegx-linux-nat.c: Ditto.
16430 * tilegx-tdep.c: Ditto.
16431 * tracepoint.c: Ditto.
16432 * valops.c: Ditto.
16433 * vaxbsd-nat.c: Ditto.
16434 * windows-nat.c: Ditto.
16435 * xtensa-tdep.c: Ditto.
16436
bd1f7788
YQ
164372014-01-07 Yao Qi <yao@codesourcery.com>
16438
16439 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16440
79301218
JB
164412014-01-07 Yao Qi <yao@codesourcery.com>
16442 Joel Brobecker <brobecker@adacore.com>
16443
16444 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16445 (pdc_write_regs): Likewise.
16446 (fetch_regs_kernel_thread): Likewise.
16447 (store_regs_kernel_thread): Likewise.
16448
164492014-01-07 Joel Brobecker <brobecker@adacore.com>
16450
16451 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16452 tagged type objects to their actual type.
16453
8e355c5d
JB
164542014-01-07 Joel Brobecker <brobecker@adacore.com>
16455
16456 * ada-valprint.c (print_field_values): Add "language" parameter.
16457 Update calls to print_field_values and print_variant_part.
16458 Pass new parameter "language" in call to val_print instead
16459 of "current_language". Replace call to ada_val_print by call
16460 to val_print.
16461 (print_variant_part): Add "language" parameter.
16462 (ada_val_print_struct_union): Update call to print_field_values.
16463
4fbf5aa5
JB
164642014-01-07 Joel Brobecker <brobecker@adacore.com>
16465
16466 * ada-valprint.c (ui_memcpy): Delete.
16467 (ada_print_floating): Update documentation. Add empty line
16468 between between function documentation and implementation.
16469 Delete variable "buffer". Use ui_file_xstrdup in place of
16470 ui_file_put. Minor adjustments following this change.
16471
71855601
JB
164722014-01-07 Joel Brobecker <brobecker@adacore.com>
16473
16474 * ada-valprint.c (ada_val_print_string): New function,
16475 extracted from ada_val_print_array.
16476 (ada_val_print_array): Replace extracted code by call
16477 to ada_val_print_string followed by a return. Move
16478 "else" branch to the function's top block.
16479
4eb27a30
JB
164802014-01-07 Joel Brobecker <brobecker@adacore.com>
16481
16482 * ada-valprint.c (ada_val_print_array): Move implementation
16483 down. Rename parameter "offset" and "val" into "offset_aligned"
16484 and "original_value" respectively. Add parameter "offset".
16485
34b27950
JB
164862014-01-07 Joel Brobecker <brobecker@adacore.com>
16487
16488 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16489 re-organizing the code. Change the "???" message printed
16490 when target type is a TYPE_CODE_UNDEF into
16491 "<ref to undefined type>".
16492
079e4591
JB
164932014-01-07 Joel Brobecker <brobecker@adacore.com>
16494
16495 * ada-valprint.c (print_record): Delete, implementation inlined...
16496 (ada_val_print_struct_union): ... here. Remove call to
16497 ada_check_typedef in inlined implementation.
16498
8004dfd1
JB
164992014-01-07 Joel Brobecker <brobecker@adacore.com>
16500
16501 * ada-valprint.c (ada_val_print_gnat_array): New function,
16502 extracted from ada_val_print_1;
16503 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16504 (ada_val_print_flt, ada_val_print_struct_union)
16505 (ada_val_print_ref): Likewise.
16506 (ada_val_print_1): Delete variables i and elttype.
16507 Replace extracted-out code by call to corresponding
16508 new functions.
16509
760a2db0
JB
165102014-01-07 Joel Brobecker <brobecker@adacore.com>
16511
16512 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16513
3a92c861
JB
165142014-01-07 Joel Brobecker <brobecker@adacore.com>
16515
16516 * ada-valprint.c (ada_val_print_1): Replace calls to
16517 ada_val_print_1 by calls to val_print.
16518
cd1630f9
JB
165192014-01-07 Joel Brobecker <brobecker@adacore.com>
16520
16521 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16522 Update calls to self accordingly. Replace calls to c_val_print
16523 by calls to val_print.
16524
bdf779a0
JB
165252014-01-07 Joel Brobecker <brobecker@adacore.com>
16526
16527 * ada-valprint.c (print_record): Delete declaration.
16528 (adjust_type_signedness, ada_val_print_1): Likewise.
16529 (ada_val_print): Move function implementation down.
16530 (print_variant_part, print_field_values, print_record):
16531 Move function implementation up.
16532
c0d48811
JB
165332014-01-07 Joel Brobecker <brobecker@adacore.com>
16534
16535 * python/py-type.c (typy_get_name): New function.
16536 (type_object_getset): Add entry for attribute "name".
16537 * NEWS: Add entry mentioning this new attribute.
16538
c26e9cbb
YQ
165392014-01-07 Yao Qi <yao@codesourcery.com>
16540
16541 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16542 statement.
16543
0cc6f43d
YQ
165442014-01-07 Yao Qi <yao@codesourcery.com>
16545
16546 * gnu-nat.c (info_port_rights): Add qualifier const to
16547 argument args.
16548
eec03155
YQ
165492014-01-07 Yao Qi <yao@codesourcery.com>
16550
16551 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16552
f04a82ef
YQ
165532014-01-07 Yao Qi <yao@codesourcery.com>
16554
16555 * gnu-nat.c (make_inf) Update declaration.
16556 (make_inf): Make it static.
16557 (inf_set_traced): Likewise.
16558 (inf_port_to_thread, inf_task_died_status): Likewise.
16559
d57dda0a
YQ
165602014-01-07 Yao Qi <yao@codesourcery.com>
16561
16562 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16563
3aa8c969
YQ
165642014-01-07 Yao Qi <yao@codesourcery.com>
16565
16566 * gnu-nat.c (_initialize_gnu_nat): Declare.
16567
94123b4f
YQ
165682014-01-07 Yao Qi <yao@codesourcery.com>
16569
16570 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16571 'enum bfd_endian'.
16572 (struct gdbarch_info) <byte_order>: Change type to
16573 'enum bfd_endian'.
16574 <byte_order_for_code>: Likewise.
16575 * gdbarch.c, gdbarch.h: Regenerated.
16576
dc81d70a
TT
165772014-01-06 Sasha Smundak <asmundak@google.com>
16578
16579 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16580
cc2f3c35
TT
165812014-01-06 Tom Tromey <tromey@redhat.com>
16582
16583 * doublest.c (convert_doublest_to_floatformat): Use const, not
16584 CONST.
16585 * somread.c (som_symtab_read): Likewise.
16586
adcf2eed
HZ
165872014-01-07 Hui Zhu <hui@codesourcery.com>
16588
16589 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16590 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16591 (gdb_bfd_fopen): Ditto.
16592 (gdb_bfd_openr): Ditto.
16593 (gdb_bfd_openw): Ditto.
16594 (gdb_bfd_openr_iovec): Ditto.
16595 (gdb_bfd_fdopenr): Ditto.
16596 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16597 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16598 with xstrdup.
16599 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16600 with xstrdup.
16601 * symfile-mem.c (symbol_file_add_from_memory): Removed
16602 gdb_bfd_stash_filename.
16603
50722198
DE
166042014-01-03 Doug Evans <dje@google.com>
16605
16606 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16607 output.
16608
2fa4b862
JB
166092014-01-01 Joel Brobecker <brobecker@adacore.com>
16610
16611 Update year range in copyright notice of all files.
16612
28498c42
JB
166132014-01-01 Joel Brobecker <brobecker@adacore.com>
16614
16615 * top.c (print_gdb_version): Set copyright year to 2014.
16616
7b6e1046
JB
166172014-01-01 Joel Brobecker <brobecker@adacore.com>
16618
16619 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16620
df96af55 16621For older changes see ChangeLog-2013.
c906108c
SS
16622\f
16623Local Variables:
16624mode: change-log
16625left-margin: 8
16626fill-column: 74
16627version-control: never
57da7796 16628coding: utf-8
c906108c 16629End:
This page took 2.506329 seconds and 4 git commands to generate.