[PATCH] Remove cast in Tag_ABI_VFP_args switch case stmts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-29 Thomas Preud'homme <thomas.preudhomme@arm.com>
2
3 * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch
4 case statements.
5
6 2014-12-29 Anthony Green <green@moxielogic.com>
7
8 * configure.tgt: Add support for moxiebox target.
9
10 2014-12-27 Anthony Green <green@moxielogic.com>
11
12 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
13 are 32 bits, not 48. Update comments for various instructions.
14 (moxie_process_record): Update for new shorter ldo/sto
15 instructions. Add support for sex, zex, umul.x and mul.x
16 instructions. Update comments for various instructions.
17
18 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
19
20 * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
21 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
22 switch handling the different values of Tag_ABI_VFP_args.
23
24 2014-12-23 Doug Evans <xdje42@gmail.com>
25
26 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
27 objfile-owned.
28 (cache_symbol): Ignore symbols that are not objfile-owned.
29 * block.c (block_objfile): New function.
30 (block_gdbarch): New function.
31 * block.h (block_objfile): Declare.
32 (block_gdbarch): Declare.
33 * c-exp.y (classify_name): Remove call to
34 language_lookup_primitive_type. No longer necessary.
35 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
36 Remove call to language_lookup_primitive_type. No longer necessary.
37 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
38 (syscm_gdbarch_data): New struct.
39 (syscm_init_arch_symbols): New function.
40 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
41 All callers updated. Handle symbols owned by arches.
42 (gdbscm_symbol_symtab): Handle symbols owned by arches.
43 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
44 * language.c (language_lookup_primitive_type_1): New function.
45 (language_lookup_primitive_type): Call it.
46 (language_alloc_type_symbol): New function.
47 (language_init_primitive_type_symbols): New function.
48 (language_lookup_primitive_type_as_symbol): New function.
49 * language.h (struct language_arch_info) <primitive_type_symbols>:
50 New member.
51 (language_lookup_primitive_type): Add function comment.
52 (language_lookup_primitive_type_as_symbol): Declare.
53 * printcmd.c (address_info): Handle arch-owned symbols.
54 * python/py-symbol.c (sympy_get_symtab): Ditto.
55 (set_symbol): Ditto.
56 (sympy_dealloc): Ditto.
57 * symmisc.c (print_symbol): Ditto.
58 * symtab.c (fixup_symbol_section): Ditto.
59 (lookup_symbol_aux): Initialize block_found.
60 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
61 primitive type.
62 (initialize_objfile_symbol_1): New function.
63 (initialize_objfile_symbol): Call it.
64 (allocate_symbol): Call it.
65 (allocate_template_symbol): Call it.
66 (symbol_objfile): Assert symbol is objfile-owned.
67 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
68 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
69 (struct symbol) <is_objfile_owned>: New member.
70 (SYMBOL_OBJFILE_OWNED): New macro.
71 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
72 All callers updated. Try to find the symbol as a primitive type.
73 (lookup_namespace_scope): New arg langdef. All callers updated.
74 Call cp_lookup_bare_symbol directly for simple bare symbols.
75
76 2014-12-23 Doug Evans <xdje42@gmail.com>
77
78 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
79 (struct symbol) <domain>: Use it.
80
81 2014-12-23 Doug Evans <xdje42@gmail.com>
82
83 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
84 All callers updated.
85
86 2014-12-23 Doug Evans <xdje42@gmail.com>
87
88 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
89 New arg language_defn. All uses updated.
90
91 2014-12-23 Doug Evans <xdje42@gmail.com>
92
93 * symtab.h (SYMBOL_SYMTAB): Delete
94 (SYMBOL_OBJFILE): Delete.
95 (symbol_symtab, symbol_set_symtab): Declare.
96 (symbol_objfile, symbol_arch): Declare.
97 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
98 All references to symbol->symtab redirected through here.
99 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
100 redirected through here.
101 (symbol_arch): New function.
102 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
103 All uses updated.
104 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
105 symbol_arch.
106 * findvar.c (default_read_var_value): Call symbol_arch.
107 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
108 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
109 * printcmd.c (address_info): Call symbol_arch.
110 * tracepoint.c (scope_info): Call symbol_arch.
111
112 2014-12-22 Doug Evans <xdje42@gmail.com>
113
114 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
115 (cp_lookup_symbol_namespace): Call it.
116 (cp_lookup_symbol_nonlocal): Ditto.
117
118 2014-12-22 Doug Evans <xdje42@gmail.com>
119
120 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
121 "search_scope_first". All callers updated.
122
123 2014-12-22 Doug Evans <xdje42@gmail.com>
124
125 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
126 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
127 arg "search". All callers updated.
128 (cp_lookup_bare_symbol): New function.
129 (cp_search_static_and_baseclasses): New function.
130 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
131 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
132 (cp_lookup_nested_symbol): Ditto.
133
134 2014-12-22 Doug Evans <xdje42@gmail.com>
135
136 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
137
138 2014-12-22 Doug Evans <xdje42@gmail.com>
139
140 * cp-namespace.c: Whitespace cleanup.
141
142 2014-12-20 Keith Seitz <keiths@redhat.com>
143 Mihail-Marian Nistor <mihail.nistor@freescale.com>
144
145 PR gdb/17394
146 * linespec.c (struct collect_minsyms): Add new member `symtab'.
147 (add_minsym): Handle cases where info.symtab is non-NULL.
148 (search_minsyms_for_name): Add new parameter `symtab'.
149 Handle limiting searches to a specific symtab.
150 (add_matching_symtabs_to_info): Search through minimal symbols
151 for language_asm files for which no new symbols are found.
152
153 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
154 Nigel Stephens <nigel@mips.com>
155 Chris Dearman <chris@mips.com>
156 Luis Machado <lgustavo@codesourcery.com>
157
158 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
159 (ALLDEPFILES): Add mips-sde-tdep.c.
160 * mips-sde-tdep.c: New file containg SDE specific code.
161 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
162 gdb_target_obs.
163 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
164 * osabi.c (gdb_osabi_names): Add SDE.
165 * NEWS: Mention the change.
166
167 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
168
169 * elfread.c (elf_symfile_init): Remove stale comment.
170 (elf_symfile_read): Same.
171 * symfile.h (struct sym_fns): Same.
172
173 2014-12-18 Nigel Stephens <nigel@mips.com>
174 Maciej W. Rozycki <macro@codesourcery.com>
175
176 * mips-tdep.c (print_fpu_flags): New function.
177 (mips_print_float_info): Likewise.
178 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
179 print_float_info routine.
180
181 2014-12-18 Yao Qi <yao@codesourcery.com>
182
183 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
184 * gdbarch.c: Re-generated.
185 * gdbarch.h: Likewise.
186 * infcmd.c (default_print_float_info): New function.
187 (print_float_info): Removed. Move code to
188 default_print_float_info.
189 (float_info): Adjust to call gdbarch_print_float_info.
190 * inferior.h (default_print_float_info): Declare it.
191
192 2014-12-18 Yao Qi <yao@codesourcery.com>
193
194 * h8300-tdep.c (h8300_print_float_info): Remove.
195 (h8300_gdbarch_init): Remove the call to
196 set_gdbarch_print_float_info.
197
198 2014-12-18 Doug Evans <xdje42@gmail.com>
199
200 * infcmd.c (jump_command): Minor simplification.
201
202 2014-12-18 Doug Evans <xdje42@gmail.com>
203
204 * language.c (language_lookup_primitive_type): Renamed from
205 language_lookup_primitive_type_by_name. All callers updated.
206
207 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 Fix MinGW compilation.
210 * compile/compile.c (get_compile_file_tempdir): Call error if
211 !HAVE_MKDTEMP.
212 * config.in: Regenerate.
213 * configure: Regenerate.
214 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
215
216 2014-12-17 Doug Evans <xdje42@gmail.com>
217
218 * valops.c (value_maybe_namespace_elt): Remove redundant call to
219 lookup_static_symbol.
220
221 2014-12-17 Doug Evans <xdje42@gmail.com>
222
223 New parameter "debug symbol-lookup".
224 * NEWS: Mention it.
225 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
226 output.
227 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
228 (cp_lookup_nested_symbol): Ditto.
229 * language.c (language_lookup_primitive_type_by_name): Add debug
230 output.
231 * minsyms.c (lookup_minimal_symbol): Add debug output.
232 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
233 * symfile-debug.c (debug_objfile_name): ... from here. All callers
234 updated.
235 * objfiles.h (objfile_debug_name): Declare.
236 * symtab.h (symbol_lookup_debug): Declare.
237 * symtab.c (symbol_lookup_debug): New global.
238 (lookup_language_this): Add debug output.
239 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
240 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
241 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
242 (_initialize_symtab): Add new parameter "debug symbol-lookup".
243
244 2014-12-16 Doug Evans <xdje42@gmail.com>
245
246 * buildsym.c: Add comments describing how the buildsym machinery
247 is used by the various file formats.
248 (really_free_pendings): Enhance function comment.
249 See pending_macros to NULL. Simplify resetting pending_addrmap.
250 Call free_buildsym_compunit.
251 (free_buildsym_compunit): Set current_subfile to NULL.
252 (prepare_for_building): New function.
253 (start_symtab): Call it. Remove call to set_last_source_file.
254 (restart_symtab): New arg "cust". All callers updated.
255 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
256 (reset_symtab_globals): Enhance function comment.
257 Set local_symbols, file_symbols, global_symbols to NULL.
258 Set pending_macros to NULL. Simplify resetting pending_addrmap.
259 Call free_buildysym_compunit.
260 (end_symtab_without_blockvector): Delete. All callers updated.
261 (end_symtab_with_blockvector): Remove redundant call to
262 free_buildsym_compunit.
263 (augment_type_symtab): Remove arg "cust". All callers updated.
264 (buildsym_init): Remove resetting of free_pendings, file_symbols,
265 global_symbols, pending_blocks, pending_macros. Instead make
266 handling consistent with pending_addrmap: Assert value was reset
267 at end of previous symtab building. Initialize context_stack here.
268
269 2014-12-16 Doug Evans <xdje42@gmail.com>
270
271 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
272 cp_lookup_symbol_imports. All callers updated.
273
274 2014-12-16 Doug Evans <xdje42@gmail.com>
275
276 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
277 find_type_baseclass_by_name. All callers updated.
278
279 2014-12-16 Doug Evans <xdje42@gmail.com>
280
281 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
282 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
283 (print_symbol_info): Delete arg symtab. All callers updated.
284 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
285
286 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
287
288 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
289 "Name" columns. Assure that the output is always indented.
290
291 2014-12-16 Joel Brobecker <brobecker@adacore.com>
292
293 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
294 already defined.
295 (linux_enable_event_reporting): Add parameter "attached".
296 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
297 declaration. New function.
298 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
299 (linux_enable_event_reporting): Add new parameter "attached".
300 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
301 nonzero.
302 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
303 Use it. Update function description.
304 (linux_child_post_attach, linux_child_post_startup_inferior):
305 Update call to linux_enable_event_reporting.
306
307 2014-12-16 Yao Qi <yao@codesourcery.com>
308
309 * NEWS: Move some entries to "Changes since GDB 7.8" section.
310
311 2014-12-16 Yao Qi <yao@codesourcery.com>
312
313 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
314 ARG_LAST.
315
316 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
317
318 * inferior.c (find_inferior_ptid): New function.
319 * inferior.h (find_inferior_ptid): New declaration.
320 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
321 * corelow.c (core_pid_to_str): Same.
322 * darwin-nat.c (darwin_resume): Same.
323 * infrun.c (fetch_inferior_event): Same.
324 (get_inferior_stop_soon): Same.
325 (handle_inferior_event): Same.
326 (handle_signal_stop): Same.
327 * linux-nat.c (resume_lwp): Same.
328 (stop_wait_callback): Same.
329 * mi/mi-interp.c (mi_new_thread): Same.
330 (mi_thread_exit): Same.
331 * proc-service.c (ps_pglobal_lookup): Same.
332 * record-btrace.c (record_btrace_step_thread): Same.
333 * remote-sim.c (gdbsim_close_inferior): Same.
334 (gdbsim_resume): Same.
335 (gdbsim_stop): Same.
336 * sol2-tdep.c (sol2_core_pid_to_str): Same.
337 * target.c (memory_xfer_partial_1): Same.
338 (default_thread_address_space): Same.
339 * thread.c (thread_change_ptid): Same.
340 (switch_to_thread): Same.
341 (do_restore_current_thread_cleanup): Same.
342
343 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
344
345 * defs.h (gdb_readline): Constify argument.
346 (gdb_readline_wrapper): Same.
347 (command_line_input): Same.
348 (deprecated_readline_hook): Same.
349 * top.c (deprecated_readline_hook): Same.
350 (gdb_readline): Same.
351 (gdb_readline_wrapper): Same.
352 (command_line_input): Constify argument. Pass prompt_arg to called
353 functions instead of local_prompt, overwriting prompt_arg if necessary.
354 * event-top.h (display_gdb_prompt): Constify argument.
355 * event-top.c (display_gdb_prompt): Same.
356 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
357 if building with Python 3.4 and up.
358
359 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
360
361 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
362 os.getcwdu().
363
364 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
365
366 PR gdb/15684
367 * memattr.c (mem_info_command): Remove "unsigned long" casts.
368
369 2014-12-13 Doug Evans <xdje42@gmail.com>
370
371 * utils.c (make_hex_string): Fix off-by-one error.
372
373 2014-12-13 Joel Brobecker <brobecker@adacore.com>
374
375 * ada-lang.h (ada_ensure_varsize_limit): Declare.
376 * ada-lang.c (check_size): Remove advance declaration.
377 (ada_ensure_varsize_limit): Renames check_size.
378 Replace calls to check_size by calls to ada_ensure_varsize_limit
379 throughout.
380 * ada-valprint.c (ada_val_print_ref): Add call to
381 ada_ensure_varsize_limit. Add comment explaining why.
382
383 2014-12-13 Joel Brobecker <brobecker@adacore.com>
384
385 * utils.c (make_hex_string): Replace use of sprintf by use of
386 xsnprintf.
387
388 2014-12-13 Joel Brobecker <brobecker@adacore.com>
389
390 * compile/compile-object-load.c (link_callbacks_multiple_definition)
391 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
392 newline at end of warning message.
393
394 2014-12-13 Joel Brobecker <brobecker@adacore.com>
395
396 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
397 new "EXTRA-ARGS" parameter.
398 * configure.ac: If large-file support is disabled in GDB,
399 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
400 * configure: Regenerate.
401
402 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 PR symtab/17642
405 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
406 TYPE if not TYPE_CODE_TYPEDEF.
407
408 2014-12-13 Joel Brobecker <brobecker@adacore.com>
409
410 PR backtrace/16215:
411 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
412 the frame unwinder must either be the dwarf2_frame_unwind
413 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
414 stack_addr is valid before calling get_frame_base. Throw
415 an error if not valid.
416
417 2014-12-12 Doug Evans <xdje42@gmail.com>
418
419 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
420 result != NULL.
421
422 2014-12-12 Doug Evans <xdje42@gmail.com>
423
424 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
425 All callers updated. Rename arg "namespace" to "symbol_name".
426
427 2014-12-12 Doug Evans <xdje42@gmail.com>
428
429 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
430 partial_map_symtabs_matching_filename. All uses updated.
431 (psym_find_pc_sect_compunit_symtab): Renamed from
432 find_pc_sect_compunit_symtab_from_partial. All uses updated.
433 Add function comment.
434 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
435 All uses updated. Add function comment.
436 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
437 Add function comment.
438 (psym_find_last_source_symtab): Renamed from
439 find_last_source_symtab_from_partial. All uses updated.
440 Add function comment.
441 (psym_forget_cached_source_info): Renamed from
442 forget_cached_source_info_partial. All uses updated.
443 Add function comment.
444 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
445 All uses updated. Add function comment.
446 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
447 updated. Add function comment.
448 (psym_expand_symtabs_for_function): Renamed from
449 read_symtabs_for_function. All uses updated. Update function comment.
450 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
451 All uses updated. Add function comment.
452 (psym_expand_symtabs_with_fullname): Renamed from
453 read_psymtabs_with_fullname. All uses updated. Add function comment.
454 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
455 All uses updated. Add function comment.
456 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
457 All uses updated.
458 (psym_expand_symtabs_matching): Renamed from
459 expand_symtabs_matching_via_partial. All uses updated.
460 Add function comment.
461 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
462 Add function comment.
463
464 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
465 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Tom Tromey <tromey@redhat.com>
467
468 * NEWS: Update.
469 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
470 field.
471 * p-lang.c (pascal_language_defn): Update.
472 * opencl-lang.c (opencl_language_defn): Update.
473 * objc-lang.c (objc_language_defn): Update.
474 * m2-lang.c (m2_language_defn): Update.
475 * language.h (struct language_defn) <la_get_compile_instance,
476 la_compute_program>: New fields.
477 * language.c (unknown_language_defn, auto_language_defn)
478 (local_language_defn): Update.
479 * jv-lang.c (java_language_defn): Update.
480 * go-lang.c (go_language_defn): Update.
481 * f-lang.c (f_language_defn): Update.
482 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
483 * dwarf2loc.c (dwarf2_compile_property_to_c)
484 (locexpr_generate_c_location, loclist_generate_c_location): New
485 functions.
486 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
487 * defs.h (enum compile_i_scope_types): New.
488 (enum command_control_type) <compile_control>: New constant.
489 (struct command_line) <control_u>: New field.
490 * d-lang.c (d_language_defn): Update.
491 * compile/compile.c: New file.
492 * compile/compile-c-support.c: New file.
493 * compile/compile-c-symbols.c: New file.
494 * compile/compile-c-types.c: New file.
495 * compile/compile.h: New file.
496 * compile/compile-internal.h: New file.
497 * compile/compile-loc2c.c: New file.
498 * compile/compile-object-load.c: New file.
499 * compile/compile-object-load.h: New file.
500 * compile/compile-object-run.c: New file.
501 * compile/compile-object-run.h: New file.
502 * cli/cli-script.c (multi_line_command_p, print_command_lines)
503 (execute_control_command, process_next_line)
504 (recurse_read_control_structure): Handle compile_control.
505 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
506 * c-lang.c (c_language_defn, cplus_language_defn)
507 (asm_language_defn, minimal_language_defn): Update.
508 * ada-lang.c (ada_language_defn): Update.
509 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
510 New variables.
511 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
512 (HFILES_NO_SRCDIR): Add compile.h.
513 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
514 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
515 (compile.o, compile-c-types.o, compile-c-symbols.o)
516 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
517 (compile-c-support.o): New targets.
518
519 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
520
521 * s390-linux-tdep.c (s390_gcc_target_options): New function.
522 (s390_gdbarch_init): Add it to gdbarch.
523
524 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
525
526 * linux-tdep.c: Include objfiles.h and infcall.h.
527 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
528 function.
529 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
530
531 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
534 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
535 translate_register. Now public.
536 (dwarf2_compile_expr_to_ax): Update.
537
538 2014-12-12 Tom Tromey <tromey@redhat.com>
539 Jan Kratochvil <jan.kratochvil@redhat.com>
540
541 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
542 (dwarf_expr_frame_base): Update caller.
543 (dwarf_expr_frame_base_1): Rename to ...
544 (func_get_frame_base_dwarf_block): ... this and make it public.
545 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
546 callers.
547 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
548
549 2014-12-12 Tom Tromey <tromey@redhat.com>
550
551 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
552 Update.
553 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
554 dwarf2_compile_cfa_to_ax.
555 (dwarf2_compile_cfa_to_ax): Remove.
556 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
557 (dwarf2_compile_cfa_to_ax): Remove.
558
559 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * infcall.h (call_function_by_hand_dummy): Declare.
562 * infcall.c (call_function_by_hand): Use
563 call_function_by_hand_dummy.
564 (call_function_by_hand_dummy): Rename from call_function_by_hand.
565 Add arguments. Register a destructor.
566
567 2014-12-12 Tom Tromey <tromey@redhat.com>
568 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 * osabi.h (osabi_triplet_regexp): Declare.
571 * osabi.c (struct osabi_names): New.
572 (gdb_osabi_names): Change type to struct osabi_names. Update
573 values.
574 (gdbarch_osabi_name): Update.
575 (osabi_triplet_regexp): New function.
576 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
577 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
578 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
579 set_gdbarch_gnu_triplet_regexp.
580 * gdbarch.sh (gnu_triplet_regexp): New method.
581 * gdbarch.c, gdbarch.h: Rebuild.
582 * arch-utils.h (default_gnu_triplet_regexp): Declare.
583 * arch-utils.c (default_gnu_triplet_regexp): New function.
584
585 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 * arch-utils.c (default_infcall_mmap)
588 (default_gcc_target_options): New functions.
589 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
590 (GDB_MMAP_PROT_EXEC): Define.
591 (default_infcall_mmap, default_gcc_target_options): Declare.
592 * gdbarch.h: Rebuild.
593 * gdbarch.c: Rebuild.
594 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
595
596 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
597
598 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
599 fields.
600 (pop_dummy_frame): Call the destructor if it exists.
601 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
602 functions.
603 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
604 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
605
606 2014-12-12 Tom Tromey <tromey@redhat.com>
607
608 * gdbtypes.h (make_unqualified_type): Declare.
609 * gdbtypes.c (make_unqualified_type): New function.
610
611 2014-12-12 Tom Tromey <tromey@redhat.com>
612
613 * ui-file.h (ui_file_write_for_put): Declare.
614 * ui-file.c (ui_file_write_for_put): New function.
615 * mi/mi-out.c (do_write): Remove.
616 (mi_out_put): Use ui_file_write_for_put.
617
618 2014-12-12 Doug Evans <dje@google.com>
619
620 * NEWS: Mention gdb.lookup_objfile.
621 * python/python.c (GdbMethods): Add lookup_objfile.
622 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
623 * python/py-objfile.c: #include "symtab.h".
624 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
625 (objfpy_lookup_objfile_by_name): New function.
626 (objfpy_lookup_objfile_by_build_id): New function.
627 (gdbpy_lookup_objfile): New function.
628
629 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
630
631 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
632 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
633 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
634 macros.
635 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
636 Likewise.
637
638 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
639
640 * completer.c: Include "target.h", "reggroups.h", and
641 "user-regs.h".
642 (reg_or_group_completer): New.
643 * completer.h (reg_or_group_completer): Declare.
644 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
645 the "info registers" and "info all-registers" commands and the
646 dbx-mode "lr" command.
647
648 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
649
650 * user-regs.c: Include "arch-utils.h", "command.h", and
651 "cli/cli-cmds.h".
652 (maintenance_print_user_registers): New.
653 (_initialize_user_regs): Register new "maint print user-registers"
654 subcommand.
655 * NEWS: Mention new GDB command "maint print user-registers".
656
657 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
658 Maciej W. Rozycki <macro@mips.com>
659 Pedro Alves <pedro@codesourcery.com>
660
661 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
662 remove `predefault' and `invalid_p' initializers.
663 (make_symbol_special): New architecture method.
664 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
665 (objfile, symbol): New declarations.
666 * arch-utils.h (default_elf_make_msymbol_special): Remove
667 prototype.
668 (default_make_symbol_special): New prototype.
669 (default_adjust_dwarf2_addr): Likewise.
670 (default_adjust_dwarf2_line): Likewise.
671 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
672 * arch-utils.c (default_elf_make_msymbol_special): Remove
673 function.
674 (default_make_symbol_special): New function.
675 (default_adjust_dwarf2_addr): Likewise.
676 (default_adjust_dwarf2_line): Likewise.
677 * dwarf2-frame.c (decode_frame_entry_1): Call
678 `gdbarch_adjust_dwarf2_addr'.
679 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
680 * dwarf2read.c (create_addrmap_from_index): Likewise.
681 (process_psymtab_comp_unit_reader): Likewise.
682 (add_partial_symbol): Likewise.
683 (add_partial_subprogram): Likewise.
684 (process_full_comp_unit): Likewise.
685 (read_file_scope): Likewise.
686 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
687 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
688 (read_call_site_scope): Likewise.
689 (dwarf2_ranges_read): Likewise.
690 (dwarf2_record_block_ranges): Likewise.
691 (read_attribute_value): Likewise.
692 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
693 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
694 * elfread.c (elf_symtab_read): Don't call
695 `gdbarch_elf_make_msymbol_special' if unset.
696 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
697 the ISA bit from the PC.
698 * mips-tdep.c (mips_unmake_compact_addr): New function.
699 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
700 address appropriately.
701 (mips_make_symbol_special): New function.
702 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
703 (mips_pc_is_mips16): Likewise.
704 (mips_pc_is_micromips): Likewise.
705 (mips_pc_isa): Likewise.
706 (mips_adjust_dwarf2_addr): New function.
707 (mips_adjust_dwarf2_line): Likewise.
708 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
709 (mips_addr_bits_remove): Likewise.
710 (mips_skip_trampoline_code): Likewise.
711 (mips_write_pc): Don't set the ISA bit.
712 (mips_eabi_push_dummy_call): Likewise.
713 (mips_o64_push_dummy_call): Likewise.
714 (mips_gdbarch_init): Install `mips_make_symbol_special',
715 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
716 handlers.
717 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
718 target-specific symbol address adjustments.
719 * gdbarch.h: Regenerate.
720 * gdbarch.c: Regenerate.
721
722 2014-12-12 Yao Qi <yao@codesourcery.com>
723
724 PR tdep/14261
725 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
726 'skip_pc'. Remove code skipping prologue instructions, use
727 arm_analyze_prologue instead.
728 (arm_analyze_prologue): Stop the scanning for unrecognized
729 instruction when skipping prologue.
730
731 2014-12-12 Yao Qi <yao@codesourcery.com>
732
733 * arm-tdep.c (arm_instruction_restores_sp): New function.
734 (arm_analyze_prologue): Call arm_instruction_restores_sp.
735 (arm_in_function_epilogue_p): Move code to
736 arm_instruction_restores_sp.
737
738 2014-12-11 Doug Evans <xdje42@gmail.com>
739
740 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
741
742 2014-12-11 Doug Evans <xdje42@gmail.com>
743
744 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
745 (symbol *lookup_symbol_via_quick_fns): Ditto.
746 (lookup_symbol_in_objfile): Add forward decl.
747 (lookup_global_symbol_from_objfile): Simplify, call
748 lookup_symbol_in_objfile.
749
750 2014-12-11 Doug Evans <xdje42@gmail.com>
751
752 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
753
754 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
755
756 PR breakpoints/17012
757 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
758 it is marked as persistent.
759
760 2014-12-10 Doug Evans <xdje42@gmail.com>
761
762 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
763 closer to its subroutines.
764
765 2014-12-10 Doug Evans <xdje42@gmail.com>
766
767 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
768
769 2014-12-10 Doug Evans <xdje42@gmail.com>
770
771 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
772 * cp-support.h (cp_lookup_symbol_imports): Delete.
773
774 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
775
776 PR gdb/17627
777 * target.c (cleanup_restore_target_terminal): New function.
778 (make_cleanup_restore_target_terminal): New function.
779 * target.h (make_cleanup_restore_target_terminal): New declaration.
780 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
781
782 2014-12-08 Doug Evans <dje@google.com>
783
784 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
785
786 2014-12-08 Doug Evans <dje@google.com>
787
788 * NEWS: Mention gdb.Objfile.owner.
789 * python/py-objfile.c (objfpy_get_owner): New function.
790 (objfile_getset): Add "owner".
791
792 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
795 (lookup_global_symbol_from_objfile): Call it.
796
797 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
798
799 Remove const from struct objfile *.
800 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
801 symtab.c, symtab.h: In these files.
802
803 2014-12-05 Andreas From <andreas.from@ericsson.com>
804
805 * MAINTAINERS (Write After Approval): Add "Andreas From"
806
807 2014-12-05 Doug Evans <xdje42@gmail.com>
808
809 Revert:
810 PR symtab/17602
811 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
812
813 2014-12-04 Doug Evans <dje@google.com>
814
815 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
816 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
817 (objfile_getset): Add "add_separate_debug_file".
818
819 2014-12-04 Doug Evans <dje@google.com>
820
821 * NEWS: Mention gdb.Objfile.build_id.
822 * build-id.c (build_id_bfd_get): Make non-static.
823 * build-id.h (build_id_bfd_get): Add declaration.
824 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
825 (OBJFPY_REQUIRE_VALID): New macro.
826 (objfpy_get_build_id): New function.
827 (objfile_getset): Add "build_id".
828 * utils.c (make_hex_string): New function.
829 * utils.h (make_hex_string): Add declaration.
830
831 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 * block.c (block_lookup_symbol_primary): New function.
834 * block.h (block_lookup_symbol_primary): New declaration.
835 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
836 Call block_lookup_symbol_primary.
837
838 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
839
840 * tramp-frame.h (tramp_frame): Add `validate' member.
841 * tramp-frame.c (tramp_frame_start): Validate trampoline before
842 scanning.
843 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
844 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
845 (mips_linux_o32_sigframe): Initialize `validate' member.
846 (mips_linux_o32_rt_sigframe): Likewise.
847 (mips_linux_n32_rt_sigframe): Likewise.
848 (mips_linux_n64_rt_sigframe): Likewise.
849 (micromips_linux_o32_sigframe): New variable.
850 (micromips_linux_o32_rt_sigframe): Likewise.
851 (micromips_linux_n32_rt_sigframe): Likewise.
852 (micromips_linux_n64_rt_sigframe): Likewise.
853 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
854 (mips_linux_n32n64_sigframe_init): Likewise.
855 (mips_linux_sigframe_validate): New function.
856 (micromips_linux_sigframe_validate): Likewise.
857 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
858
859 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
860
861 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
862 * sparc-sol2-tdep.c: Include "regset.h".
863 (sparc32_sol2_supply_core_gregset): New function.
864 (sparc32_sol2_collect_core_gregset): Likewise.
865 (sparc32_sol2_supply_core_fpregset): Likewise.
866 (sparc32_sol2_collect_core_fpregset): Likewise.
867 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
868 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
869 tdep->fpregset/sizeof_fpregset.
870 * sparc64-sol2-tdep.c: Include "regset.h".
871 (sparc64_sol2_supply_core_gregset): New function.
872 (sparc64_sol2_collect_core_gregset): Likewise.
873 (sparc64_sol2_supply_core_fpregset): Likewise.
874 (sparc64_sol2_collect_core_fpregset): Likewise.
875 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
876 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
877 tdep->fpregset/sizeof_fpregset.
878
879 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
880
881 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
882 type.
883
884 2014-12-02 Doug Evans <dje@google.com>
885
886 * symtab.c (symbol_init_cplus_specific): Delete.
887 (symbol_set_demangled_name): Remove special c++ support.
888 (symbol_get_demangled_name, symbol_set_language): Ditto.
889 * symtab.h (struct cplus_specific): Delete.
890 (struct general_symbol_info) <language_specific>: Remove
891 cplus_specific.
892
893 2014-12-02 Doug Evans <dje@google.com>
894
895 PR symtab/17602
896 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
897
898 2014-12-02 Doug Evans <dje@google.com>
899
900 PR symtab/17591
901 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
902 to strip parameters.
903
904 2014-12-02 Doug Evans <dje@google.com>
905
906 * dwarf2read.c (peek_die_abbrev): Improve error message text.
907
908 2014-12-02 Doug Evans <dje@google.com>
909
910 * valops.c (do_search_struct_field): Remove remnant of Chill support.
911 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
912
913 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
914
915 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
916
917 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
918
919 * NEWS: Mention new Python events.
920 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
921 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
922 (py-infevents.o): New rule.
923 * doc/observer.texi (inferior_call_pre, inferior_call_post)
924 (memory_changed, register_changed): New observers.
925 * infcall.c (call_function_by_hand): Notify observer before and
926 after inferior call.
927 * python/py-event.h (inferior_call_kind): New enum.
928 (emit_inferior_call_event): New prototype.
929 (emit_register_changed_event): New prototype.
930 (emit_memory_changed_event): New prototype.
931 * python/py-events.h (events_object): New registries
932 inferior_call, memory_changed and register_changed.
933 * python/py-evts.c (gdbpy_initialize_py_events): Add the
934 inferior_call, memory_changed and register_changed registries.
935 * python/py-infevents.c: New.
936 * python/py-inferior.c (python_on_inferior_call_pre)
937 (python_on_inferior_call_post, python_on_register_change)
938 (python_on_memory_change): New functions.
939 (gdbpy_initialize_inferior): Attach python handler to new
940 observers.
941 * python/py-infthread.c(gdbpy_create_ptid_object): New.
942 (thpy_get_ptid) Use gdbpy_create_ptid_object.
943 * python/python-internal.h:
944 (gdbpy_create_ptid_object)
945 (gdbpy_initialize_inferior_call_pre_event)
946 (gdbpy_initialize_inferior_call_post_event)
947 (gdbpy_initialize_register_changed_event)
948 (gdbpy_initialize_memory_changed_event): New prototypes.
949 * python/python.c (_initialize_python): Initialize new events.
950 * valops.c (value_assign): Notify register_changed observer.
951
952 2014-12-02 Doug Evans <dje@google.com>
953
954 * python/py-infthread.c: Whitespace fixes.
955
956 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
957
958 * features/Makefile (s390-te-linux64-expedite): Replace
959 non-existant r14 and r15 by r14l and r15l, respectively.
960 * regformats/s390-te-linux64.dat: Regenerate.
961
962 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
963
964 * objfiles.c (allocate_objfile): Remove duplicate comment.
965
966 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
967
968 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
969 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
970 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
971 (supply_gregset, supply_fpregset): Remove.
972 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
973 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
974 and sizeof_gregset.
975
976 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
977
978 Add add-auto-load-scripts-directory.
979 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
980 * auto-load.c (add_auto_load_dir): New function.
981 (_initialize_auto_load): Install it.
982
983 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
984
985 Pushed by Joel Brobecker <brobecker@adacore.com>.
986 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
987
988 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
989
990 * eval.c (evaluate_subexp): Check that the thread stack temporaries
991 are not already enabled before enabling them.
992
993 2014-11-29 Yao Qi <yao@codesourcery.com>
994
995 * arm-tdep.c (arm_analyze_prologue): Move local variables
996 'framereg' and 'framesize' to inner block. Move code to
997 inner block too.
998
999 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
1000
1001 * eval.c: Include gdbthread.h.
1002 (evaluate_subexp): Enable thread stack temporaries before
1003 evaluating a complete expression and clean them up after the
1004 evaluation is complete.
1005 * gdbthread.h: Include common/vec.h.
1006 (value_ptr): New typedef.
1007 (VEC (value_ptr)): New vector type.
1008 (value_vec): New typedef.
1009 (struct thread_info): Add new fields stack_temporaries_enabled
1010 and stack_temporaries.
1011 (enable_thread_stack_temporaries)
1012 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1013 (get_last_thread_stack_temporary)
1014 (value_in_thread_stack_temporaries): Declare.
1015 * gdbtypes.c (class_or_union_p): New function.
1016 * gdbtypes.h (class_or_union_p): Declare.
1017 * infcall.c (call_function_by_hand): Store return values of class
1018 type as temporaries on stack.
1019 * thread.c (enable_thread_stack_temporaries): New function.
1020 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1021 (get_last_thread_stack_temporary): Likewise.
1022 (value_in_thread_stack_temporaries): Likewise.
1023 * value.c (value_force_lval): New function.
1024 * value.h (value_force_lval): Declare.
1025
1026 2014-11-28 Pierre Muller <muller@sourceware.org>
1027
1028 Pushed by Joel Brobecker <brobecker@adacore.com>.
1029 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1030 registers.
1031
1032 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
1033
1034 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1035 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1036 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1037 * m68klinux-nat.c (fetch_core_registers): Remove.
1038 (linux_elf_core_fns): Remove.
1039 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1040
1041 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1042
1043 * utils.c (gdb_realpath): Rework comment about handling on
1044 Windows.
1045
1046 2014-11-28 Yao Qi <yao@codesourcery.com>
1047
1048 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1049 rename.
1050 * gnulib/aclocal.m4: Re-generated.
1051 * gnulib/config.in: Re-generated.
1052 * gnulib/configure: Re-generated.
1053 * gnulib/import/Makefile.am: Re-generated.
1054 * gnulib/import/Makefile.in: Re-generated.
1055 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1056 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1057 * import/basename-lgpl.c: New file.
1058 * import/dirname-lgpl.c: New file.
1059 * import/dirname.h: New file.
1060 * import/m4/dirname.m4: New file.
1061 * import/m4/malloc.m4: New file.
1062 * import/m4/rename.m4: New file.
1063 * import/m4/rmdir.m4: New file.
1064 * import/m4/stdio_h.m4: New file.
1065 * import/malloc.c: New file.
1066 * import/rename.c: New file.
1067 * import/rmdir.c: New file.
1068 * import/same-inode.h: New file.
1069 * import/stdio.c: New file.
1070 * import/stdio.in.h: New file.
1071 * import/stripslash.c: New file.
1072
1073 2014-11-28 Yao Qi <yao@codesourcery.com>
1074
1075 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1076 and realpath.
1077 * config.in: Re-generated.
1078 * configure: Re-generated.
1079 * utils.c (gdb_realpath): Remove code calling realpath,
1080 canonicalize_file_name and pathconf.
1081 [!_WIN32]: Call canonicalize_file_name.
1082
1083 2014-11-28 Yao Qi <yao@codesourcery.com>
1084
1085 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1086 canonicalize-lgpl.
1087 * aclocal.m4: Re-generated.
1088 * config.in: Re-generated.
1089 * configure: Re-generated.
1090 * import/Makefile.am: Re-generated.
1091 * import/Makefile.in: Re-generated.
1092 * import/m4/gnulib-cache.m4: Re-generated.
1093 * import/m4/gnulib-comp.m4: Re-generated.
1094 * import/canonicalize-lgpl.c: New file.
1095 * import/extra/snippet/_Noreturn.h: New file.
1096 * import/m4/canonicalize.m4: New file.
1097 * import/m4/double-slash-root.m4: New file.
1098 * import/m4/eealloc.m4: New file.
1099 * import/m4/malloca.m4: New file.
1100 * import/m4/nocrash.m4: New file.
1101 * import/m4/stdlib_h.m4: New file.
1102 * import/malloca.c: New file.
1103 * import/malloca.h: New file.
1104 * import/malloca.valgrind: New file.
1105
1106 2014-11-28 Yao Qi <yao@codesourcery.com>
1107
1108 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1109 * config.in, configure: Regenerate.
1110 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1111 code checking HAVE_LSTAT is defined.
1112
1113 2014-11-28 Yao Qi <yao@codesourcery.com>
1114
1115 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1116 lstat.
1117 * gnulib/aclocal.m4: Re-generated.
1118 * gnulib/config.in: Re-generated.
1119 * gnulib/configure: Re-generated.
1120 * gnulib/import/Makefile.am: Re-generated.
1121 * gnulib/import/Makefile.in: Re-generated.
1122 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1123 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1124 * gnulib/import/lstat.c: New file.
1125 * gnulib/import/m4/lstat.m4: New file.
1126
1127 2014-11-28 Yao Qi <yao@codesourcery.com>
1128
1129 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1130 * config.in, configure: Re-generate.
1131 * inf-child.c (inf_child_fileio_readlink): Don't check
1132 HAVE_READLINK is defined.
1133
1134 2014-11-28 Yao Qi <yao@codesourcery.com>
1135
1136 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1137 * gnulib/aclocal.m4: Re-generated.
1138 * gnulib/config.in: Likewise.
1139 * gnulib/configure: Likewise.
1140 * gnulib/import/Makefile.am: Likewise.
1141 * gnulib/import/Makefile.in: Likewise.
1142 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1143 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1144 * gnulib/import/dosname.h: New file
1145 * gnulib/import/m4/largefile.m4: New file.
1146 * gnulib/import/m4/readlink.m4: New file.
1147 * gnulib/import/m4/stat.m4: New file.
1148 * gnulib/import/readlink.c: New file.
1149 * gnulib/import/stat.c: New file.
1150
1151 2014-11-26 Mark Wielaard <mjw@redhat.com>
1152
1153 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1154 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1155
1156 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1157
1158 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1159 that there can be only one stack adjustment in the prologue
1160 with tests to detect specific disallowed stack adjustments.
1161
1162 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1163
1164 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1165 adjustments.
1166
1167 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1168
1169 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1170 the instruction as well as reading it from memory.
1171 (nios2_match_add): New.
1172 (nios2_match_sub): New.
1173 (nios2_match_addi): New.
1174 (nios2_match_orhi): New.
1175 (nios2_match_stw): New.
1176 (nios2_match_ldw): New.
1177 (nios2_match_rdctl): New.
1178 (enum branch_condition): New.
1179 (nios2_match_branch): New.
1180 (nios2_match_jmpi): New.
1181 (nios2_match_calli): New.
1182 (nios2_match_jmpr): New.
1183 (nios2_match_callr): New.
1184 (nios2_match_break): New.
1185 (nios2_match_trap): New.
1186 (nios2_in_epilogue_p): Rewrite to use new functions.
1187 (nios2_analyze_prologue): Likewise.
1188 (nios2_skip_prologue): Delete unused local limit_pc.
1189 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1190 (nios2_get_next_pc): Rewrite to use new functions.
1191
1192 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1193
1194 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1195
1196 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1197
1198 Pushed by Joel Brobecker <brobecker@adacore.com>
1199 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1200 elements pi_len by the size of the elements before calling
1201 vm_deallocate.
1202 (inf_validate_task_sc): Likewise, and properly deallocate the
1203 noise array.
1204
1205 2014-11-23 Doug Evans <xdje42@gmail.com>
1206
1207 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1208 number and name if present. All callers updated.
1209 (dump_fn_fieldlists): Fix indentation of args.
1210
1211 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1212
1213 * MAINTAINERS (Write After Approval): Add myself.
1214
1215 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1216
1217 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1218 to a bp_call_dummy breakpoint type.
1219
1220 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1221
1222 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1223 registering the signal handler.
1224
1225 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1226
1227 * event-top.h (call_stdin_event_handler_again_p): Declare.
1228 * event-top.c (call_stdin_event_handler_again_p): Define.
1229 (stdin_event_handler): Use it.
1230 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1231 handler again if there is pending input following a
1232 start sequence.
1233
1234 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1235
1236 Pushed by Joel Brobecker <brobecker@adacore.com>
1237 * linux-fork.c (checkpoint_command): Print index of new
1238 checkpoint in response message.
1239
1240 2014-11-23 Yao Qi <yao@codesourcery.com>
1241
1242 * valprint.c (read_string): Move local variables 'found_nul',
1243 'chunksize' and 'limit' to inner scope. Update comments.
1244
1245 2014-11-22 Doug Evans <xdje42@gmail.com>
1246
1247 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1248 function comment.
1249 (search_symbols): Fix comments and whitespace.
1250
1251 2014-11-22 Doug Evans <xdje42@gmail.com>
1252
1253 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1254
1255 2014-11-21 Doug Evans <dje@google.com>
1256
1257 * psymtab.c (psymtab_search_name): Fix whitespace.
1258
1259 2014-11-21 Yao Qi <yao@codesourcery.com>
1260
1261 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1262 errno.
1263 * gnulib/import/Makefile.am: Re-generated.
1264 * gnulib/import/Makefile.in: Likewise.
1265 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1266
1267 2014-11-21 Yao Qi <yao@codesourcery.com>
1268
1269 * gdb_wchar.h: Include wchar.h and wctype.h.
1270 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1271 include wchar.h and wctype.h.
1272 Don't check HAVE_WCHAR_H.
1273
1274 2014-11-21 Yao Qi <yao@codesourcery.com>
1275
1276 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1277 and wctype-h.
1278 * gnulib/import/Makefile.am: Re-generated.
1279 * gnulib/import/Makefile.in: Likewise.
1280 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1281
1282 2014-11-21 Yao Qi <yao@codesourcery.com>
1283
1284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1285 memchr.
1286 * gnulib/import/Makefile.am: Re-generated.
1287 * gnulib/import/Makefile.in: Likewise.
1288 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1289
1290 2014-11-21 Yao Qi <yao@codesourcery.com>
1291
1292 * common/common-defs.h: Include alloca.h
1293 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1294 * configure: Re-generated.
1295 * defs.h: Remove code handling alloca.
1296 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1297 or not.
1298
1299 2014-11-21 Yao Qi <yao@codesourcery.com>
1300
1301 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1302 alloca.
1303 * gnulib/import/Makefile.am: Re-generated.
1304 * gnulib/import/Makefile.in: Likewise..
1305 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1306
1307 2014-11-21 Yao Qi <yao@codesourcery.com>
1308
1309 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1310 alphabetical order.
1311
1312 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1313
1314 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1315 flag_unsigned if HIGH_BOUND is constant and negative.
1316
1317 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1318
1319 PR breakpoints/10737
1320 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1321 modifier from "struct gdbarch" when compiling without Expat (XML)
1322 support.
1323 (get_syscall_by_number): Likewise.
1324 (get_syscall_by_name): Likewise.
1325 (get_syscall_names): Likewise.
1326
1327 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1328
1329 PR breakpoints/10737
1330 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1331 set_xml_syscall_file_name to provide gdbarch.
1332 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1333 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1334 * breakpoint.c (print_it_catch_syscall): Adjust call to
1335 get_syscall_by_number to provide gdbarch.
1336 (print_one_catch_syscall): Likewise.
1337 (print_mention_catch_syscall): Likewise.
1338 (print_recreate_catch_syscall): Likewise.
1339 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1340 and get_syscall_by_name to provide gdbarch.
1341 (catch_syscall_completer): Adjust call to get_syscall_names to
1342 provide gdbarch.
1343 * gdbarch.c: Regenerate.
1344 * gdbarch.h: Likewise.
1345 * gdbarch.sh: Forward declare "struct syscalls_info".
1346 (xml_syscall_file): New variable.
1347 (syscalls_info): Likewise.
1348 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1349 set_xml_syscall_file_name to provide gdbarch.
1350 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1351 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1352 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1353 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1354 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1355 * xml-syscall.c: Include gdbarch.h.
1356 (set_xml_syscall_file_name): Accept gdbarch parameter.
1357 (get_syscall_by_number): Likewise.
1358 (get_syscall_by_name): Likewise.
1359 (get_syscall_names): Likewise.
1360 (my_gdb_datadir): Delete global variable.
1361 (struct syscalls_info) <my_gdb_datadir>: New variable.
1362 (struct syscalls_info) <sysinfo>: Rename variable to
1363 "syscalls_info".
1364 (sysinfo): Delete global variable.
1365 (have_initialized_sysinfo): Likewise.
1366 (xml_syscall_file): Likewise.
1367 (sysinfo_free_syscalls_desc): Rename to...
1368 (syscalls_info_free_syscalls_desc): ... this.
1369 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1370 code to the new layout of "struct syscalls_info".
1371 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1372 "syscalls_info".
1373 (syscall_create_syscall_desc): Likewise.
1374 (syscall_start_syscall): Likewise.
1375 (syscall_parse_xml): Likewise.
1376 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1377 (init_sysinfo): Rename to...
1378 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1379 Adjust function to deal with gdbarch.
1380 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1381 gdbarch as a parameter. Adjust code.
1382 (xml_get_syscall_name): Likewise.
1383 (xml_list_of_syscalls): Likewise.
1384 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1385 (get_syscall_by_number): Likewise.
1386 (get_syscall_by_name): Likewise.
1387 (get_syscall_names): Likewise.
1388 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1389 (get_syscall_by_number): Likewise.
1390 (get_syscall_by_name): Likewise.
1391 (get_syscall_names): Likewise.
1392
1393 2014-11-20 Doug Evans <xdje42@gmail.com>
1394
1395 Split struct symtab into two: struct symtab and compunit_symtab.
1396 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1397 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1398 to "struct compunit_symtab *". All callers updated.
1399 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1400 "struct symtab *" argument to "struct compunit_symtab *".
1401 All callers updated.
1402 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1403 result to "struct compunit_symtab *". All callers updated.
1404 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1405 Change result to "struct compunit_symtab *". All callers updated.
1406 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1407 hange type to "struct compunit_symtab *". All uses updated.
1408 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1409 Change type to "struct compunit_symtab *". All uses updated.
1410 * buildsym.c (struct buildsym_compunit): New struct.
1411 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1412 (buildsym_compunit): New static global.
1413 (finish_block_internal): Update to fetch objfile from
1414 buildsym_compunit.
1415 (make_blockvector): Delete objfile argument.
1416 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1417 debugformat, producer.
1418 (start_buildsym_compunit): New function.
1419 (free_buildsym_compunit): Renamed from free_subfiles_list.
1420 All callers updated.
1421 (patch_subfile_names): Rewrite to use buildsym_compunit.
1422 (get_compunit_symtab): New function.
1423 (get_macro_table): Delete argument comp_dir. All callers updated.
1424 (start_symtab): Change result to "struct compunit_symtab *".
1425 All callers updated. Create the subfile of the main source file.
1426 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1427 (reset_symtab_globals): Update.
1428 (end_symtab_get_static_block): Update to use buildsym_compunit.
1429 (end_symtab_without_blockvector): Rewrite.
1430 (end_symtab_with_blockvector): Change result to
1431 "struct compunit_symtab *". All callers updated.
1432 Update to use buildsym_compunit. Don't set symtab->dirname,
1433 instead set it in the compunit.
1434 Explicitly make sure main symtab is first in its list.
1435 Set debugformat, producer, blockvector, block_line_section, and
1436 macrotable in the compunit.
1437 (end_symtab_from_static_block): Change result to
1438 "struct compunit_symtab *". All callers updated.
1439 (end_symtab, end_expandable_symtab): Ditto.
1440 (set_missing_symtab): Change symtab argument to
1441 "struct compunit_symtab *". All callers updated.
1442 (augment_type_symtab): Ditto.
1443 (record_debugformat): Update to use buildsym_compunit.
1444 (record_producer): Update to use buildsym_compunit.
1445 * buildsym.h (struct subfile) <dirname>: Delete.
1446 <producer, debugformat>: Delete.
1447 <buildsym_compunit>: New member.
1448 (get_compunit_symtab): Declare.
1449 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1450 from primary_symtab. Change type to "struct compunit_symtab *".
1451 All uses updated.
1452 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1453 All callers updated.
1454 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1455 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1456 symtab. Change type to "struct compunit_symtab *". All uses updated.
1457 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1458 All callers updated.
1459 (dw2_find_last_source_symtab): Ditto.
1460 (dw2_lookup_symbol): Ditto.
1461 (recursively_find_pc_sect_compunit_symtab): Renamed from
1462 recursively_find_pc_sect_symtab. Change result to
1463 "struct compunit_symtab *". All callers updated.
1464 (dw2_find_pc_sect_compunit_symtab): Renamed from
1465 dw2_find_pc_sect_symtab. Change result to
1466 "struct compunit_symtab *". All callers updated.
1467 (get_compunit_symtab): Renamed from get_symtab. Change result to
1468 "struct compunit_symtab *". All callers updated.
1469 (recursively_compute_inclusions): Change type of immediate_parent
1470 argument to "struct compunit_symtab *". All callers updated.
1471 (compute_compunit_symtab_includes): Renamed from
1472 compute_symtab_includes. All callers updated. Rewrite to compute
1473 includes of compunit_symtabs and not symtabs.
1474 (process_full_comp_unit): Update to work with struct compunit_symtab.
1475 (process_full_type_unit): Ditto.
1476 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1477 (dwarf_decode_lines): Remove special case handling of main subfile.
1478 (macro_start_file): Delete argument comp_dir. All callers updated.
1479 (dwarf_decode_macro_bytes): Ditto.
1480 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1481 use struct compunit_symtab.
1482 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1483 * jit.c (finalize_symtab): Build compunit_symtab.
1484 * jv-lang.c (get_java_class_symtab): Change result to
1485 "struct compunit_symtab *". All callers updated.
1486 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1487 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1488 comp_dir. Change type to "struct compunit_symtab *".
1489 All uses updated.
1490 (new_macro_table): Change comp_dir argument to cust,
1491 "struct compunit_symtab *". All callers updated.
1492 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1493 nr_primary_symtabs. All uses updated.
1494 (count_symtabs_and_blocks): Update to handle compunits.
1495 (report_command_stats): Update output, "primary symtabs" renamed to
1496 "compunits".
1497 * mdebugread.c (new_symtab): Change result to
1498 "struct compunit_symtab *". All callers updated.
1499 (parse_procedure): Change type of search_symtab argument to
1500 "struct compunit_symtab *". All callers updated.
1501 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1502 separate loop.
1503 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1504 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1505 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1506 All uses updated.
1507 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1508 All uses updated.
1509 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1510 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1511 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1512 symtab. Change type to "struct compunit_symtab *". All uses updated.
1513 * psymtab.c (psymtab_to_symtab): Change result type to
1514 "struct compunit_symtab *". All callers updated.
1515 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1516 find_pc_sect_symtab_from_partial. Change result type to
1517 "struct compunit_symtab *". All callers updated.
1518 (lookup_symbol_aux_psymtabs): Change result type to
1519 "struct compunit_symtab *". All callers updated.
1520 (find_last_source_symtab_from_partial): Ditto.
1521 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1522 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1523 and macro_table from compunit.
1524 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1525 type to "struct compunit_symtab *". All callers updated.
1526 (debug_qf_lookup_symbol): Ditto.
1527 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1528 debug_qf_find_pc_sect_symtab, change result type to
1529 "struct compunit_symtab *". All callers updated.
1530 * symfile.c (allocate_symtab): Delete objfile argument.
1531 New argument cust.
1532 (allocate_compunit_symtab): New function.
1533 (add_compunit_symtab_to_objfile): New function.
1534 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1535 Change result type to "struct compunit_symtab *". All uses updated.
1536 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1537 Change result type to "struct compunit_symtab *". All uses updated.
1538 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1539 separate loop.
1540 (dump_symtab_1): Update test for primary source symtab.
1541 (maintenance_info_symtabs): Update to handle compunit symtabs.
1542 (maintenance_check_symtabs): Ditto.
1543 * symtab.c (set_primary_symtab): Delete.
1544 (compunit_primary_filetab): New function.
1545 (compunit_language): New function.
1546 (iterate_over_some_symtabs): Change type of arguments "first",
1547 "after_last" to "struct compunit_symtab *". All callers updated.
1548 Update to loop over symtabs in each compunit.
1549 (error_in_psymtab_expansion): Rename symtab argument to cust,
1550 and change type to "struct compunit_symtab *". All callers updated.
1551 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1552 Change result type to "struct compunit_symtab *". All callers updated.
1553 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1554 Change result type to "struct compunit_symtab *". All callers updated.
1555 (find_pc_sect_line): Only loop over symtabs within selected compunit
1556 instead of all symtabs in the objfile.
1557 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1558 <compunit_symtab> New member.
1559 <block_line_section>: Moved to compunit_symtab.
1560 <locations_valid>: Ditto.
1561 <epilogue_unwind_valid>: Ditto.
1562 <macro_table>: Ditto.
1563 <dirname>: Ditto.
1564 <debugformat>: Ditto.
1565 <producer>: Ditto.
1566 <objfile>: Ditto.
1567 <call_site_htab>: Ditto.
1568 <includes>: Ditto.
1569 <user>: Ditto.
1570 <primary>: Delete
1571 (SYMTAB_COMPUNIT): New macro.
1572 (SYMTAB_BLOCKVECTOR): Update definition.
1573 (SYMTAB_OBJFILE): Update definition.
1574 (SYMTAB_DIRNAME): Update definition.
1575 (struct compunit_symtab): New type. Common members among all source
1576 symtabs within a compilation unit moved here. All uses updated.
1577 (COMPUNIT_OBJFILE): New macro.
1578 (COMPUNIT_FILETABS): New macro.
1579 (COMPUNIT_DEBUGFORMAT): New macro.
1580 (COMPUNIT_PRODUCER): New macro.
1581 (COMPUNIT_DIRNAME): New macro.
1582 (COMPUNIT_BLOCKVECTOR): New macro.
1583 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1584 (COMPUNIT_LOCATIONS_VALID): New macro.
1585 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1586 (COMPUNIT_CALL_SITE_HTAB): New macro.
1587 (COMPUNIT_MACRO_TABLE): New macro.
1588 (ALL_COMPUNIT_FILETABS): New macro.
1589 (compunit_symtab_ptr): New typedef.
1590 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1591
1592 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1593
1594 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1595 if the TYPE_CODE of range_type's base type does not match
1596 the TYPE_CODE of encoding_type's base type.
1597
1598 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1599
1600 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1601 it starts with '<'.
1602
1603 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1604
1605 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1606 (ada_is_redundant_index_type_desc): New function.
1607 (to_fixed_array_type): Ignore parallel XA type if redundant.
1608
1609 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1610
1611 * ada-lang.c (constrained_packed_array_type): Set the length
1612 of the return array as if both bounds where zero if that
1613 returned array's index type is dynamic.
1614
1615 2014-11-19 Yao Qi <yao@codesourcery.com>
1616
1617 * config/i386/go32.mh (CC): Remove.
1618
1619 2014-11-18 Doug Evans <xdje42@gmail.com>
1620
1621 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1622 updated.
1623
1624 2014-11-18 Doug Evans <xdje42@gmail.com>
1625
1626 * buildsym.c (buildsym_objfile): New static global.
1627 (buildsym_comp_dir): New static global.
1628 (finish_block_internal): Delete arg objfile. All callers updated.
1629 (finish_block): Delete arg objfile. All callers updated.
1630 (start_subfile): Delete arg dirname. All callers updated.
1631 (patch_subfile_names): Update buildsym_comp_dir.
1632 (get_macro_table): Delete arg objfile. All callers updated.
1633 (start_symtab): New arg objfile. All callers updated.
1634 Rename arg dirname to comp_dir.
1635 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1636 (end_symtab_get_static_block): Delete arg objfile. All callers
1637 updated.
1638 (end_symtab_without_blockvector): Ditto.
1639 (end_symtab_with_blockvector): Ditto.
1640 (end_symtab_from_static_block): Ditto.
1641 (end_symtab): Ditto.
1642 (end_expandable_symtab): Ditto.
1643 (augment_type_symtab): Ditto.
1644 * coffread.c (coff_start_symtab): New arg objfile. All callers
1645 updated.
1646
1647 2014-11-18 Doug Evans <xdje42@gmail.com>
1648
1649 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1650 updated.
1651
1652 2014-11-18 Doug Evans <xdje42@gmail.com>
1653
1654 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1655 symtab.dirname updated to use it.
1656
1657 2014-11-18 Doug Evans <xdje42@gmail.com>
1658
1659 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1660 symtab.objfile updated to use it.
1661
1662 2014-11-18 Doug Evans <xdje42@gmail.com>
1663
1664 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1665
1666 2014-11-18 Doug Evans <xdje42@gmail.com>
1667
1668 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1669 SYMBOL_OBJFILE.
1670 * findvar.c (default_read_var_value): Ditto.
1671 * jv-lang.c (add_class_symtab_symbol): Ditto.
1672 * parse.c (operator_check_standard): Ditto.
1673 * printcmd.c (address_info): Ditto.
1674 * symtab.c (fixup_symbol_section): Ditto.
1675 (skip_prologue_sal): Ditto.
1676 * tracepoint.c (scope_info): Ditto.
1677 * valops.c (find_function_in_inferior): Ditto.
1678 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1679 * python/py-symbol.c (set_symbol): Ditto.
1680
1681 2014-11-18 Doug Evans <xdje42@gmail.com>
1682
1683 * buildsym.c (main_subfile): New static global.
1684 (free_subfiles_list): New function.
1685 (start_symtab): Set main_subfile.
1686 (restart_symtab): Replace init of subfiles, current_subfile with
1687 call to free_subfiles_list.
1688 (watch_main_source_file_lossage): Use main_subfile.
1689 (reset_symtab_globals): Replace init of current_subfile with call
1690 to free_subfiles_list.
1691 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1692 functions, split out from ...
1693 (end_symtab_from_static_block): ... here. Rewrite to call them.
1694
1695 2014-11-18 Doug Evans <xdje42@gmail.com>
1696
1697 The result of symtab expansion is always a primary symtab.
1698 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1699 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1700 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1701 (psymtab_to_symtab): Add comment and assert.
1702 (map_matching_symbols_psymtab): Remove unnecessary test for
1703 non-primary symtab.
1704
1705 2014-11-15 Doug Evans <xdje42@gmail.com>
1706
1707 PR symtab/17559
1708 * symtab.c (find_pc_line_symtab): New function.
1709 * symtab.h (find_pc_line_symtab): Declare.
1710 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1711 find_pc_symtab.
1712 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1713 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1714 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1715 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1716 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1717 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1718
1719 2014-11-15 Doug Evans <xdje42@gmail.com>
1720
1721 * symtab.c (expand_symtab_containing_pc): Renamed from
1722 find_pc_sect_symtab_via_partial. All callers updated.
1723
1724 2014-11-15 Yao Qi <yao@codesourcery.com>
1725
1726 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1727
1728 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1729
1730 * common/common-defs.h: Move <stdarg.h> #include ahead of
1731 <stdio.h> #include.
1732
1733 2014-11-14 Pedro Alves <palves@redhat.com>
1734
1735 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1736 [!PHONY_ICONV] (gdb_iconv): New function.
1737 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1738
1739 2014-11-13 Doug Evans <dje@google.com>
1740
1741 PR symtab/17591
1742 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1743 "(anonymous namespace)".
1744
1745 2014-11-13 Doug Evans <dje@google.com>
1746
1747 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1748 infinite loop.
1749
1750 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 * NEWS (maint set target-async): Fix typo.
1753
1754 2014-11-12 Pedro Alves <palves@redhat.com>
1755
1756 * infrun.c (enum infwait_states, infwait_state): Delete.
1757
1758 2014-11-12 Pedro Alves <palves@redhat.com>
1759
1760 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1761 Rewrite stepping over a permanent breakpoint.
1762 (thread_still_needs_step_over, proceed): Don't set
1763 stepping_over_breakpoint for permanent breakpoints.
1764 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1765 single-step breakpoints out of the target on hardware step
1766 targets.
1767 (process_event_stop_test): If stepping a permanent breakpoint
1768 doesn't hit the step-resume breakpoint, delete the step-resume
1769 breakpoint.
1770 (switch_back_to_stepped_thread): Also check if the stepped thread
1771 has advanced already on hardware step targets.
1772 (currently_stepping): Return true if the thread stepped a
1773 breakpoint.
1774
1775 2014-11-12 Pedro Alves <palves@redhat.com>
1776
1777 Mark locations as permanent, not the whole breakpoint.
1778 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1779 (mark_breakpoints_out): Don't mark permanent breakpoints as
1780 uninserted.
1781 (breakpoint_init_inferior): Use mark_breakpoints_out.
1782 (breakpoint_here_p): Adjust.
1783 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1784 of permanent breakpoints.
1785 (make_breakpoint_permanent): Mark each location as permanent,
1786 instead of marking the breakpoint.
1787 (add_location_to_breakpoint): If the location is permanent, mark
1788 it as such, and as inserted.
1789 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1790 (bp_location_compare, update_global_location_list): Adjust.
1791 (update_breakpoint_locations): Don't make the breakpoint permanent
1792 here.
1793 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1794 breakpoints.
1795 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1796 (struct bp_location) <permanent>: New field.
1797 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1798 reference to bp_permanent.
1799
1800 2014-11-12 Pedro Alves <palves@redhat.com>
1801
1802 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1803 * arch-utils.h (default_skip_permanent_breakpoint): New
1804 declaration.
1805 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1806 Install default_skip_permanent_breakpoint as default method.
1807 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1808 (i386_gdbarch_init): Don't install it.
1809 * infrun.c (resume): Assume there's always a
1810 gdbarch_skip_permanent_breakpoint implementation.
1811 * gdbarch.h, gdbarch.c: Regenerate.
1812
1813 2014-11-11 Daniel Colascione <dancol@dancol.org>
1814
1815 Warn about cross-PID-namespace debugging.
1816 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1817 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1818 * linux-thread-db.c (check_pid_namespace_match): New function.
1819 (thread_db_inferior_created): Call it.
1820
1821 2014-11-10 Doug Evans <xdje42@gmail.com>
1822
1823 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1824 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1825
1826 2014-11-10 Doug Evans <xdje42@gmail.com>
1827
1828 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1829
1830 2014-11-10 Doug Evans <xdje42@gmail.com>
1831
1832 PR symtab/17564
1833 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1834 (lookup_static_symbol): Move definition to new location and rewrite.
1835 (lookup_symbol_in_objfile): New function.
1836 (lookup_symbol_global_iterator_cb): Call it.
1837
1838 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1839
1840 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1841
1842 2014-11-07 Pedro Alves <palves@redhat.com>
1843
1844 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1845 check if we did a "nexti" inside a prologue.
1846 * symtab.c (in_prologue): Delete function.
1847 * symtab.h (in_prologue): Delete declaration.
1848
1849 2014-11-06 Doug Evans <xdje42@gmail.com>
1850
1851 * symtab.h (lookup_global_symbol): Improve function comment.
1852
1853 2014-11-06 Doug Evans <xdje42@gmail.com>
1854
1855 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1856 All callers updated.
1857 * symtab.h (lookup_global_symbol): Update decl.
1858 (lookup_static_symbol): Move decl to better location.
1859
1860 2014-11-06 Doug Evans <xdje42@gmail.com>
1861
1862 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1863
1864 2014-11-06 Doug Evans <xdje42@gmail.com>
1865
1866 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1867 All callers updated.
1868 (lookup_symbol_in_all_objfiles): Renamed from
1869 lookup_symbol_aux_symtabs. All callers updated.
1870 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1871 All callers updated.
1872 (lookup_symbol_in_objfile_symtabs): Renamed from
1873 lookup_symbol_aux_objfile. All callers updated.
1874
1875 2014-11-06 Doug Evans <xdje42@gmail.com>
1876
1877 * symtab.c (lookup_symbol_in_block): Renamed from
1878 lookup_symbol_aux_block. All callers updated.
1879
1880 2014-11-06 Doug Evans <xdje42@gmail.com>
1881
1882 * symtab.c (lookup_static_symbol): Renamed from
1883 lookup_static_symbol_aux. All callers updated.
1884 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1885 All callers updated.
1886
1887 2014-11-06 Doug Evans <xdje42@gmail.com>
1888
1889 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1890 * block.c (block_lookup_symbol): Use it.
1891 * cp-support.c (make_symbol_overload_list_block): Use it.
1892 * symtab.c (iterate_over_symbols): Use it.
1893
1894 2014-11-06 Doug Evans <xdje42@gmail.com>
1895
1896 * symtab.c (lookup_block_symbol): Moved to ...
1897 * block.c (block_lookup_symbol): ... here and renamed.
1898 All callers updated.
1899 * block.h (block_lookup_symbol): Declare.
1900 * symtab.h (lookup_block_symbol): Delete.
1901
1902 2014-11-06 Doug Evans <xdje42@gmail.com>
1903
1904 * ada-lang.c (ada_make_symbol_completion_list): Use
1905 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1906 * symtab.c (lookup_objfile_from_block): Ditto.
1907
1908 2014-11-06 Doug Evans <xdje42@gmail.com>
1909
1910 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1911 TYPE_CODE_STRUCT.
1912
1913 2014-11-06 Doug Evans <xdje42@gmail.com>
1914
1915 * objfiles.c (get_objfile_arch): Constify.
1916 * objfiles.h (get_objfile_arch): Update prototype.
1917 * solib.c (solib_global_lookup): Fetch arch from objfile,
1918 not target_gdbarch.
1919
1920 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1921
1922 * nios2-tdep.c (wild_insn): Delete.
1923 (profiler_insn, irqentry_insn): Delete.
1924 (nios2_match_sequence): Delete.
1925 (nios2_analyze_prologue): Update comments. Remove matching
1926 of obsolete profiler_insn and irqentry_insn sequences.
1927
1928 2014-11-05 Alan Modra <amodra@gmail.com>
1929
1930 * charset.c (convert_between_encodings): Shrink obstack using
1931 obstack_blank_fast.
1932 * minsyms.c (install_minimal_symbols): Likewise.
1933 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1934 to char* before doing pointer arithmetic.
1935
1936 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1937
1938 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1939
1940 2014-11-04 Pedro Alves <palves@redhat.com>
1941
1942 * breakpoint.c (breakpoint_thread_match): Delete function.
1943 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1944
1945 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1946
1947 PR c++/17494
1948 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1949 the method args also under EVAL_SKIP when evaluating method
1950 calls under EVAL_SKIP.
1951
1952 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1953
1954 * dwarf2loc.c (read_pieced_value): Do big endian
1955 processing only if gdb_regnum is not -1.
1956 (write_pieced_value): Ditto.
1957
1958 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1959
1960 * arm-linux-tdep.c (arm_linux_init_abi): Use
1961 info.byte_order_for_code to choose endianity of breakpoint
1962 instructions snippets.
1963
1964 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1965
1966 * arm-tdep.c (extract_arm_insn): Use
1967 gdbarch_byte_order_for_code to read arm instruction.
1968
1969 2014-11-02 Doug Evans <xdje42@gmail.com>
1970
1971 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1972
1973 2014-11-02 Doug Evans <xdje42@gmail.com>
1974
1975 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1976 main_subfile before returning.
1977
1978 2014-10-31 Doug Evans <xdje42@gmail.com>
1979
1980 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1981 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1982
1983 2014-10-31 Doug Evans <xdje42@gmail.com>
1984
1985 * valops.c (value_cast_pointers): Fix whitespace.
1986 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1987 Ditto.
1988
1989 2014-10-30 Doug Evans <dje@google.com>
1990
1991 * NEWS: Mention ability add attributes to gdb.Objfile and
1992 gdb.Progspace objects.
1993 * python/py-objfile.c (objfile_object): New member dict.
1994 (objfpy_dealloc): Py_XDECREF dict.
1995 (objfpy_initialize): Initialize dict.
1996 (objfile_getset): Add __dict__.
1997 (objfile_object_type): Set tp_dictoffset member.
1998 * python/py-progspace.c (progspace_object): New member dict.
1999 (pspy_dealloc): Py_XDECREF dict.
2000 (pspy_initialize): Initialize dict.
2001 (pspace_getset): Add __dict__.
2002 (pspace_object_type): Set tp_dictoffset member.
2003
2004 2014-10-30 Yao Qi <yao@codesourcery.com>
2005
2006 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
2007 replace '\\' with '\\\\'.
2008
2009 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2010
2011 GDB 7.8.1 released.
2012
2013 2014-10-29 Pedro Alves <palves@redhat.com>
2014
2015 PR gdb/17408
2016 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2017 instead of assuming a thread with a stepping range is always
2018 stepping.
2019
2020 2014-10-29 Pedro Alves <palves@redhat.com>
2021
2022 PR python/17372
2023 * event-top.c (change_line_handler): Call
2024 gdb_rl_callback_handler_remove instead of
2025 rl_callback_handler_remove.
2026 (callback_handler_installed): New global.
2027 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2028 (gdb_rl_callback_handler_reinstall): New functions.
2029 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2030 gdb_rl_callback_handler_install instead of
2031 rl_callback_handler_remove and rl_callback_handler_install.
2032 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2033 instead of rl_callback_handler_remove.
2034 * event-top.h (gdb_rl_callback_handler_remove)
2035 (gdb_rl_callback_handler_install)
2036 (gdb_rl_callback_handler_reinstall): New declarations.
2037 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2038 cleanup function.
2039 (fetch_inferior_event): Install it.
2040 * top.c (gdb_readline_wrapper_line) Call
2041 gdb_rl_callback_handler_remove instead of
2042 rl_callback_handler_remove.
2043 (gdb_readline_wrapper_cleanup): Don't call
2044 rl_callback_handler_install.
2045
2046 2014-10-29 Pedro Alves <palves@redhat.com>
2047
2048 * event-top.c (command_line_handler): Clear the first byte of
2049 linebuffer, when it is first allocated.
2050
2051 2014-10-29 Pedro Alves <palves@redhat.com>
2052
2053 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2054 TRY_CATCH.
2055
2056 2014-10-29 Pedro Alves <palves@redhat.com>
2057
2058 PR tui/16138
2059 PR tui/17519
2060 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2061 (tui_allowed_p): Delete function.
2062 * tui/tui.c: Include "interps.h".
2063 (tui_enable): Don't use tui_allowed_p. Error out here with
2064 detailed error messages if the TUI is the top level interpreter,
2065 or if output is not a terminal. Use newterm instead of initscr,
2066 and error out if initializing the terminal fails. Also error out if
2067 the terminal doesn't support cursor addressing.
2068 * tui/tui.h (tui_allowed_p): Delete declaration.
2069
2070 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2071
2072 * arm-tdep.c (arm_skip_stack_protector): Return early if
2073 address loaded by first "ldr" instruction does not have
2074 a corresponding minimal symbol. Update comment.
2075
2076 2014-10-29 Yao Qi <yao@codesourcery.com>
2077
2078 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2079 loaded address correctly of ldr instruction.
2080
2081 2014-10-28 Pedro Alves <palves@redhat.com>
2082
2083 PR gdb/12623
2084 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2085 field.
2086 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2087 thread's stepped_breakpoint field. Skip if reverse debugging.
2088 Add comment.
2089 (init_thread_stepping_state, handle_signal_stop): Clear the
2090 thread's stepped_breakpoint field.
2091
2092 2014-10-27 Pedro Alves <palves@redhat.com>
2093
2094 * remote.c (remote_thread_alive): New, factored out from ...
2095 (remote_thread_alive): ... this.
2096 (remote_update_thread_list): Bail out before deleting threads if
2097 the target returned an empty list, and, the current thread has a
2098 magic/fake ptid.
2099
2100 2014-10-27 Pedro Alves <palves@redhat.com>
2101
2102 * infrun.c (handle_signal_stop): Also skip handlers when a random
2103 signal arrives while handling a "stepi" or a "nexti". Set the
2104 thread's 'step_after_step_resume_breakpoint' flag.
2105
2106 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2107
2108 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2109 (arm_record_ld_st_imm_offset): Reimplement to cover all
2110 load/store cases for ARM opcode 010.
2111 (arm_record_ld_st_multiple): Reimplement to cover all
2112 load/store cases for ARM opcode 100.
2113
2114 2014-10-26 Doug Evans <xdje42@gmail.com>
2115
2116 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2117
2118 2014-10-26 Doug Evans <xdje42@gmail.com>
2119
2120 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2121 parameter "kind" to "block_index".
2122 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2123 "block_index".
2124 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2125
2126 2014-10-26 Doug Evans <xdje42@gmail.com>
2127
2128 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2129
2130 2014-10-26 Doug Evans <xdje42@gmail.com>
2131
2132 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2133 obstack_alloc.
2134
2135 2014-10-26 Doug Evans <xdje42@gmail.com>
2136
2137 * parser-defs.h (block_found): Move decl from here ...
2138 * symtab.h (block_found): ... to here.
2139
2140 2014-10-26 Doug Evans <xdje42@gmail.com>
2141
2142 * symtab.h (struct field_of_this_result): Fix typo in comment.
2143 (lookup_symbol_in_language): Move function comment here.
2144 (lookup_symbol): Improve function comment.
2145 (basic_lookup_symbol_nonlocal): Ditto.
2146 (lookup_symbol_static, lookup_symbol_global): Ditto.
2147 (lookup_symbol_aux_block): Ditto.
2148 (lookup_language_this): Add function comment.
2149 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2150 function comment.
2151 (lookup_block_symbol): Improve function comment.
2152 (lookup_struct): Fix capitalization in function comment.
2153 (lookup_transparent_type): Add function comment.
2154 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2155 Improve function comment.
2156 (lookup_objfile_from_block): Add function comment.
2157 * symtab.c (lookup_symbol_in_language): Update function comment.
2158 (lookup_symbol, lookup_language_this): Ditto.
2159 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2160 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2161 (basic_lookup_symbol_nonlocal): Ditto.
2162 (lookup_symbol_static, lookup_symbol_global): Ditto.
2163 (lookup_transparent_type, lookup_block_symbol): Ditto.
2164
2165 2014-10-25 Doug Evans <xdje42@gmail.com>
2166
2167 * symtab.c (types_info): Delete forward decl.
2168 (functions_info, variables_info, sources_info): Ditto.
2169 (_initialize_symtab): Rewrite forward decl to use
2170 initialize_file_ftype.
2171
2172 2014-10-25 Doug Evans <xdje42@gmail.com>
2173
2174 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2175
2176 2014-10-25 Doug Evans <xdje42@gmail.com>
2177
2178 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2179 of local var child_die.
2180
2181 2014-10-24 Don Breazeal <donb@codesourcery.com>
2182
2183 * infrun.c (follow_fork_inferior): Update fork message printing
2184 to use target_terminal_ours_for_output instead of
2185 target_terminal_ours, to use _() for all format strings, to print
2186 "vfork" instead of "fork" for vforks, and to add a detach message.
2187 (handle_vfork_child_exec_or_exit): Update message printing to use
2188 target_terminal_ours_for_output instead of target_terminal_ours, to
2189 use _() for all format strings, and to fix some formatting.
2190
2191 2014-10-24 Pedro Alves <palves@redhat.com>
2192
2193 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2194 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2195 * config/vax/vax.mh: Delete.
2196 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2197 obsolete configurations section.
2198 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2199 * vax-nat.c: Delete file.
2200
2201 2014-10-24 Pedro Alves <palves@redhat.com>
2202
2203 * NEWS (Removed targets): Add OS/arch column.
2204
2205 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2206
2207 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2208 on the arg type of a constructor only if it is of reference type.
2209
2210 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2211
2212 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2213 accessors and constants from nios2 opcodes update.
2214 (nios2_get_next_pc): Likewise.
2215
2216 2014-10-19 Doug Evans <xdje42@gmail.com>
2217
2218 * gdbthread.h (set_running): Fix comment.
2219 (set_executing, finish_thread_state): Fix comment.
2220
2221 2014-10-18 Doug Evans <xdje42@gmail.com>
2222
2223 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2224
2225 2014-10-17 Doug Evans <dje@google.com>
2226
2227 * NEWS: Mention new event gdb.clear_objfiles.
2228 * python/py-event.h (emit_clear_objfiles_event): Clear
2229 * python/py-events.h (events_object): New member clear_objfiles.
2230 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2231 event.
2232 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2233 emit clear_objfiles event.
2234 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2235 function.
2236 (emit_clear_objfiles_event): New function.
2237 (clear_objfiles): New event.
2238 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2239 Declare.
2240 * python/python.c (_initialize_python): Call
2241 gdbpy_initialize_clear_objfiles_event.
2242
2243 2014-10-17 Doug Evans <dje@google.com>
2244
2245 * NEWS: Mention new gdb.Objfile.progspace attribute.
2246 * python/py-objfile.c (objfpy_get_progspace): New function.
2247 (objfile_getset): New entry for "progspace".
2248
2249 2014-10-17 Pedro Alves <palves@redhat.com>
2250
2251 PR gdb/17471
2252 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2253 returns a copy of the input.
2254 (run_command_1, continue_command, step_1, jump_command)
2255 (signal_command, until_command, advance_command, finish_command)
2256 (attach_command): Adjust and install a cleanup to free the
2257 stripped args.
2258
2259 2014-10-17 Pedro Alves <palves@redhat.com>
2260
2261 PR gdb/17300
2262 * infcmd.c (continue_1): If continuing all threads in the
2263 foreground, make sure the inferior's terminal settings are put in
2264 effect.
2265
2266 2014-10-17 Pedro Alves <palves@redhat.com>
2267
2268 PR gdb/17472
2269 * annotate.c (annotate_breakpoints_invalid): Use
2270 target_terminal_our_for_output instead of target_terminal_ours.
2271 Give back the terminal to the target.
2272 (annotate_frames_invalid): Likewise.
2273
2274 2014-10-17 Pedro Alves <palves@redhat.com>
2275
2276 * target.c (enum terminal_state): New enum.
2277 (terminal_state): New global.
2278 (target_terminal_init): New function.
2279 (target_terminal_inferior): Skip if inferior already owns the
2280 terminal.
2281 (target_terminal_ours, target_terminal_ours_for_output): New
2282 functions.
2283 * target.h (target_terminal_init): Convert to function prototype.
2284 (target_terminal_ours_for_output): Convert to function prototype
2285 and tweak comment.
2286 (target_terminal_ours): Convert to function prototype and tweak
2287 comment.
2288 * windows-nat.c (do_initial_windows_stuff): Call
2289 target_terminal_init instead of child_terminal_init_with_pgrp.
2290
2291 2014-10-17 Pedro Alves <palves@redhat.com>
2292
2293 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2294 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2295 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2296 solib-osf.c.
2297 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2298 * ada-lang.h [__alpha__ && __osf__]
2299 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2300 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2301 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2302 GDB_OSABI_OSF1.
2303 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2304 files.
2305 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2306 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2307 * configure: Regenerate.
2308 * configure.ac: Remove references to osf.
2309 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2310 section. Remove all other references to osf.
2311 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2312 Remove all other references to osf.
2313 * dec-thread.c: Delete file.
2314 * defs.h (GDB_OSABI_OSF1): Delete.
2315 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2316 defined.
2317 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2318 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2319 Delete code.
2320 (unconditionally_kill_inferior)
2321 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2322 * solib-osf.c: Delete file.
2323
2324 2014-10-17 Pedro Alves <palves@redhat.com>
2325
2326 * remote.c (clear_threads_listing_context): Move higher up, out of
2327 the HAVE_LIBEXPAT guard.
2328
2329 2014-10-16 Tristan Gingold <gingold@adacore.com>
2330
2331 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2332 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2333 on amd64.
2334
2335 2014-10-15 Pedro Alves <palves@redhat.com>
2336
2337 * dec-thread.c (dec_thread_count_gdb_threads)
2338 (dec_thread_add_gdb_thread): Delete.
2339 (dec_thread_update_thread_list): Delete.
2340 (dec_thread_find_new_threads): Rename to ...
2341 (dec_thread_update_thread_list): ... this. Delete GDB-size
2342 threads that are no longer found in dec_thread_list.
2343 (resync_thread_list): Delete.
2344 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2345 resync_thread_list.
2346
2347 2014-10-15 Pedro Alves <palves@redhat.com>
2348
2349 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2350 * remote.c (remote_update_thread_list): Skip calling prune_threads
2351 if any thread listing method is supported, and instead walk over
2352 the set of remote threads listed, deleting those that are not
2353 found in GDB's thread list.
2354
2355 2014-10-15 Pedro Alves <palves@redhat.com>
2356
2357 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2358 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2359 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2360 (bsd_uthread_target): Adjust.
2361 * corelow.c (core_open): Adjust.
2362 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2363 (dec_thread_update_thread_list): New function.
2364 (init_dec_thread_ops): Adjust.
2365 * gdbthread.h (prune_threads): New declaration.
2366 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2367 (thread_db_update_thread_list): ... this. Call prune_threads.
2368 (init_thread_db_ops): Adjust.
2369 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2370 (procfs_update_thread_list): ... this. Call prune_threads.
2371 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2372 Adjust.
2373 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2374 (obsd_update_thread_list): ... this. Call prune_threads.
2375 (obsd_add_target): Adjust.
2376 * procfs.c (procfs_target): Adjust.
2377 (procfs_notice_thread): Update comment.
2378 (procfs_find_new_threads): Rename to ...
2379 (procfs_update_thread_list): ... this. Call prune_threads.
2380 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2381 comment.
2382 (ravenscar_wait): Adjust.
2383 (ravenscar_find_new_threads): Rename to ...
2384 (ravenscar_update_thread_list): ... this. Call prune_threads.
2385 (init_ravenscar_thread_ops): Adjust.
2386 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2387 (record_btrace_update_thread_list): ... this. Adjust comment.
2388 (init_record_btrace_ops): Adjust.
2389 * remote.c (remote_threads_info): Rename to ...
2390 (remote_update_thread_list): ... this. Call prune_threads.
2391 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2392 Adjust.
2393 * sol-thread.c (check_for_thread_db): Adjust.
2394 (sol_find_new_threads_callback): Rename to ...
2395 (sol_update_thread_list_callback): ... this.
2396 (sol_find_new_threads): Rename to ...
2397 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2398 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2399 * target-delegates.c: Regenerate.
2400 * target.c (target_find_new_threads): Rename to ...
2401 (target_update_thread_list): ... this.
2402 * target.h (struct target_ops): Rename to_find_new_threads field
2403 to to_update_thread_list.
2404 (target_find_new_threads): Rename to ...
2405 (target_update_thread_list): ... this.
2406 * thread.c (prune_threads): Make extern.
2407 (update_thread_list): Adjust.
2408
2409 2014-10-15 Pedro Alves <palves@redhat.com>
2410
2411 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2412 Add describing comment. Return -1 if the qL packet is not
2413 supported.
2414 (struct thread_item, thread_item_t): Move higher up in
2415 the file. Add comments.
2416 (struct threads_parsing_context): Move higher up in
2417 the file, add comments, and remote to ...
2418 (struct threads_listing_context): ... this.
2419 (remote_newthread_step): Don't add the thread to GDB's thread
2420 database here. Instead push it to the thread_listing_context
2421 list.
2422 (remote_find_new_threads): Rename to ...
2423 (remote_get_threads_with_ql): ... this. Add target_ops and
2424 targets_listing_context parameters. Pass down context.
2425 (start_thread): Adjust.
2426 (clear_threads_parsing_context): Rename to ...
2427 (clear_threads_listing_context): ... this.
2428 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2429 remote_threads_info.
2430 (remote_get_threads_with_qthreadinfo): Ditto.
2431 (remote_threads_info): Reimplement.
2432
2433 2014-10-15 Pedro Alves <palves@redhat.com>
2434
2435 * infrun.c (resume): Don't force displaced-stepping for all
2436 single-steps on software single-stepping archs.
2437
2438 2014-10-15 Pedro Alves <palves@redhat.com>
2439
2440 * breakpoint.c (single_step_breakpoints): Delete global.
2441 (insert_single_step_breakpoint): Adjust to store the breakpoint
2442 pointer in the current thread.
2443 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2444 (cancel_single_step_breakpoints): Delete functions.
2445 (breakpoint_has_location_inserted_here): Make extern.
2446 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2447 breakpoint list.
2448 * breakpoint.h (breakpoint_has_location_inserted_here): New
2449 declaration.
2450 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2451 (cancel_single_step_breakpoints): Remove declarations.
2452 * gdbthread.h (struct thread_control_state)
2453 <single_step_breakpoints>: New field.
2454 (delete_single_step_breakpoints)
2455 (thread_has_single_step_breakpoints_set)
2456 (thread_has_single_step_breakpoint_here): New declarations.
2457 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2458 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2459 (singlestep_pc): Delete globals.
2460 (infrun_thread_ptid_changed): Remove references to removed
2461 globals.
2462 (resume_cleanups): Delete the current thread's single-step
2463 breakpoints.
2464 (maybe_software_singlestep): Remove references to removed globals.
2465 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2466 delete_single_step_breakpoints.
2467 (init_wait_for_inferior): Remove references to removed globals.
2468 (delete_thread_infrun_breakpoints): Delete the thread's
2469 single-step breakpoints too.
2470 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2471 single-step breakpoints here.
2472 (delete_stopped_threads_single_step_breakpoints): New function.
2473 (adjust_pc_after_break): Adjust to use
2474 thread_has_single_step_breakpoints_set.
2475 (handle_inferior_event): Remove references to removed globals.
2476 Use delete_stopped_threads_single_step_breakpoints.
2477 (handle_signal_stop): Adjust to per-thread single-step
2478 breakpoints. Swap test order to do cheaper tests first.
2479 (switch_back_to_stepped_thread): Extend debug output. Remove
2480 references to removed globals.
2481 * record-full.c (record_full_wait_1): Adjust to per-thread
2482 single-step breakpoints.
2483 * thread.c (delete_single_step_breakpoints)
2484 (thread_has_single_step_breakpoints_set)
2485 (thread_has_single_step_breakpoint_here): New functions.
2486 (clear_thread_inferior_resources): Also delete the thread's
2487 single-step breakpoints.
2488
2489 2014-10-15 Pedro Alves <palves@redhat.com>
2490
2491 * thread.c (delete_thread_breakpoint): New function.
2492 (delete_step_resume_breakpoint)
2493 (delete_exception_resume_breakpoint): Use it.
2494 (delete_at_next_stop): New function.
2495 (clear_thread_inferior_resources): Use delete_at_next_stop.
2496
2497 2014-10-15 Pedro Alves <palves@redhat.com>
2498
2499 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2500 (breakpoint_inserted_here_p): ... here. Remove special case for
2501 software single-step breakpoints.
2502 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2503 (software_breakpoint_inserted_here_p): ... here. Remove special
2504 case for software single-step breakpoints.
2505 (bp_target_info_copy_insertion_state)
2506 (deprecated_insert_raw_breakpoint)
2507 (deprecated_remove_raw_breakpoint): Delete functions.
2508 * breakpoint.h (deprecated_insert_raw_breakpoint)
2509 (deprecated_remove_raw_breakpoint): Remove declarations.
2510
2511 2014-10-15 Pedro Alves <palves@redhat.com>
2512
2513 PR breakpoints/9649
2514 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2515 Delete array globals.
2516 (single_step_breakpoints): New global.
2517 (breakpoint_xfer_memory): Remove special handling for single-step
2518 breakpoints.
2519 (update_breakpoints_after_exec): Delete bp_single_step
2520 breakpoints.
2521 (detach_breakpoints): Remove special handling for single-step
2522 breakpoints.
2523 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2524 (bpstat_stop_status): Add comment.
2525 (bpstat_what, bptype_string, print_one_breakpoint_location)
2526 (adjust_breakpoint_address, init_bp_location): Handle
2527 bp_single_step.
2528 (new_single_step_breakpoint): New function.
2529 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2530 handling for single-step breakpoints.
2531 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2532 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2533 Rewrite.
2534 (detach_single_step_breakpoints, find_single_step_breakpoint):
2535 Delete functions.
2536 (breakpoint_has_location_inserted_here): New function.
2537 (single_step_breakpoint_inserted_here_p): Rewrite.
2538 * breakpoint.h: Remove FIXME.
2539 (enum bptype) <bp_single_step>: New enum value.
2540 (insert_single_step_breakpoint): Update comment.
2541 * infrun.c (resume_cleanups)
2542 (delete_step_thread_step_resume_breakpoint): Remove single-step
2543 breakpoints.
2544 (fetch_inferior_event): Install a cleanup that removes infrun
2545 breakpoints.
2546 (switch_back_to_stepped_thread) <expect thread advanced also>:
2547 Clear step-over info.
2548
2549 2014-10-15 Pedro Alves <palves@redhat.com>
2550
2551 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2552 (delete_thread_infrun_breakpoints): New function, with parts
2553 salvaged from delete_step_resume_breakpoint_callback.
2554 (delete_step_thread_step_resume_breakpoint): Delete.
2555 (for_each_just_stopped_thread_callback_func): New typedef.
2556 (for_each_just_stopped_thread): New function.
2557 (delete_just_stopped_threads_infrun_breakpoints): New function.
2558 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2559 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2560 ... this. Adjust.
2561 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2562
2563 2014-10-15 Pedro Alves <palves@redhat.com>
2564
2565 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2566 trying to step past a non-steppable watchpoint.
2567 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2568 field.
2569 * infrun.c (struct step_over_info): Add new field
2570 'nonsteppable_watchpoint_p' and adjust comments.
2571 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2572 Adjust.
2573 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2574 (stepping_past_nonsteppable_watchpoint): New function.
2575 (step_over_info_valid_p): Also return true if stepping past a
2576 nonsteppable watchpoint.
2577 (proceed): Adjust call to set_step_over_info. Remove reference to
2578 init_infwait_state.
2579 (init_wait_for_inferior): Remove reference to init_infwait_state.
2580 (waiton_ptid): Delete global.
2581 (struct execution_control_state)
2582 <stepped_after_stopped_by_watchpoint>: Delete field.
2583 (wait_for_inferior, fetch_inferior_event): Always pass
2584 minus_one_ptid to target_wait.
2585 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2586 field.
2587 (init_infwait_state): Delete function.
2588 (handle_inferior_event): Remove infwait_state handling.
2589 (handle_signal_stop) <watchpoints handling>: Adjust after
2590 stepped_after_stopped_by_watchpoint removal. Don't remove
2591 breakpoints here nor set infwait_state. Set the thread's
2592 stepping_over_watchpoint flag, and call keep_going instead.
2593 (keep_going): Handle stepping_over_watchpoint. Adjust
2594 set_step_over_info calls.
2595 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2596 function.
2597
2598 2014-10-15 Pedro Alves <palves@redhat.com>
2599
2600 * infrun.c (step_over_info_valid_p): New function.
2601 (resume): Use step_over_info_valid_p instead of checking the
2602 threads's trap_expected flag.
2603
2604 2014-10-15 Doug Evans <dje@google.com>
2605 Walfred Tedeschi <walfred.tedeschi@intel.com>
2606
2607 PR python/17364
2608 * python/lib/gdb/__init__.py (packages): Add "printer".
2609 * python/lib/gdb/command/bound_registers.py: Moved to ...
2610 * python/lib/gdb/printer/bound_registers.py: ... here.
2611 Add printer to global set of builtin printers. Rename printer from
2612 "bound" to "mpx_bound128".
2613 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2614 registered as global "builtin" printer.
2615 (add_builtin_pretty_printer): New function.
2616 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2617 gdb/printer/__init__.py.
2618
2619 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2620
2621 * Makefile.in (SFILES): Remove d-support.c.
2622 (COMMON_OBS): Remove d-support.o.
2623 * d-lang.h (d_parse_symbol): Remove declaration.
2624 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2625 * d-support.c: Remove file.
2626
2627 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2628
2629 * gdb/infrun.c (process_event_stop_test): Apply
2630 gdbarch_addr_bits_remove to longjmp resume address.
2631
2632 2014-10-15 Pedro Alves <palves@redhat.com>
2633
2634 * regformats/microblaze.dat: Delete file.
2635
2636 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2637
2638 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2639 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2640
2641 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2642
2643 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2644 as non-trivial.
2645
2646 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2647
2648 PR c++/13403
2649 PR c++/15154
2650 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2651 with qualified args.
2652
2653 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2654
2655 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2656 of the case where the second operand is a pointer.
2657 <BINOP_SUB>: Likewise.
2658
2659 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2660
2661 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2662 only if it is not NULL.
2663 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2664 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2665 (struct probe_ops) <clear_semaphore>: Likewise.
2666 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2667 not NULL.
2668 (stop_tracing): Likewise, for clear_semaphore.
2669
2670 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2671
2672 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2673 using language_c, instead of current_language.
2674
2675 2014-10-13 Doug Evans <dje@google.com>
2676
2677 * python/py-objfile.c (objfpy_initialize): New function.
2678 (objfpy_new, objfile_to_objfile_object): Call it.
2679 * python/py-progspace.c (pspy_initialize): New function.
2680 (pspy_new, pspace_to_pspace_object): Call it.
2681
2682 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2683 Jan Kratochvil <jan.kratochvil@redhat.com>
2684
2685 Fix "save breakpoints" for "catch" command.
2686 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2687 newline.
2688
2689 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2690
2691 Fix "save breakpoints" for "disable $bpnum" command.
2692 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2693
2694 2014-10-10 Pedro Alves <palves@redhat.com>
2695
2696 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2697 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2698 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2699 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2700 and been removed.
2701 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2702 * configure.ac: Remove references to IRIX.
2703 * configure.host: Add *-*-irix* to the obsolete hosts section.
2704 Remove all other references to irix.
2705 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2706 Delete files.
2707
2708 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2709
2710 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2711 isn't valid, release the tdesc arch data and return NULL.
2712
2713 2014-10-10 Pedro Alves <palves@redhat.com>
2714
2715 * linux-tdep.c: Include observer.h.
2716 (linux_inferior_data): New global.
2717 (struct linux_info): New structure.
2718 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2719 (get_linux_inferior_data): New functions.
2720 (linux_vsyscall_range): Rename to ...
2721 (linux_vsyscall_range_raw): ... this.
2722 (linux_vsyscall_range): New function; handles caching.
2723 (_initialize_linux_tdep): Register linux_inferior_data. Install
2724 inferior_exit and inferior_appeared observers.
2725
2726 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Pedro Alves <palves@redhat.com>
2728
2729 PR symtab/14466
2730 * solib-svr4.c (svr4_read_so_list): Rename to ...
2731 (svr4_current_sos_1): ... this and change the function comment.
2732 (svr4_current_sos): New function.
2733
2734 2014-10-10 Pedro Alves <palves@redhat.com>
2735
2736 * arch-utils.c (default_vsyscall_range): New function.
2737 * arch-utils.h (default_vsyscall_range): New declaration.
2738 * gdbarch.sh (vsyscall_range): New hook.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2740 * linux-tdep.c (linux_vsyscall_range): New function.
2741 (linux_init_abi): Install linux_vsyscall_range as
2742 vsyscall_range gdbarch hook.
2743 * memrange.c (address_in_mem_range): New function.
2744 * memrange.h (address_in_mem_range): New declaration.
2745 * symfile-mem.c (find_vdso_size): Delete function.
2746 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2747
2748 2014-10-10 Pedro Alves <palves@redhat.com>
2749
2750 * infrun.c (normal_stop): Fix typo in comment.
2751
2752 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2753
2754 PR tdep/9390
2755 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2756 typo when using logical AND to determine instruction type.
2757
2758 2014-10-09 Yao Qi <yao@codesourcery.com>
2759
2760 * infrun.c (handle_signal_stop): Remove local variable
2761 'printed'.
2762
2763 2014-10-08 Stan Shebs <stan@codesourcery.com>
2764
2765 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2766
2767 2014-10-08 Gary Benson <gbenson@redhat.com>
2768
2769 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2770
2771 2014-10-08 Gary Benson <gbenson@redhat.com>
2772
2773 * common/common-defs.h: Include common-exceptions.h.
2774 * exceptions.h: Do not include common-exceptions.h.
2775
2776 2014-10-08 Gary Benson <gbenson@redhat.com>
2777
2778 * common/common-defs.h: Include cleanups.h.
2779 * common/common-exceptions.c: Do not include cleanups.h.
2780 * utils.h: Likewise.
2781
2782 2014-10-08 Gary Benson <gbenson@redhat.com>
2783
2784 * ada-lang.c: Do not include exceptions.h.
2785 * ada-valprint.c: Likewise.
2786 * amd64-tdep.c: Likewise.
2787 * auto-load.c: Likewise.
2788 * block.c: Likewise.
2789 * break-catch-throw.c: Likewise.
2790 * breakpoint.c: Likewise.
2791 * btrace.c: Likewise.
2792 * c-lang.c: Likewise.
2793 * cli/cli-cmds.c: Likewise.
2794 * cli/cli-interp.c: Likewise.
2795 * cli/cli-script.c: Likewise.
2796 * completer.c: Likewise.
2797 * corefile.c: Likewise.
2798 * corelow.c: Likewise.
2799 * cp-abi.c: Likewise.
2800 * cp-support.c: Likewise.
2801 * cp-valprint.c: Likewise.
2802 * darwin-nat.c: Likewise.
2803 * dwarf2-frame-tailcall.c: Likewise.
2804 * dwarf2-frame.c: Likewise.
2805 * dwarf2loc.c: Likewise.
2806 * dwarf2read.c: Likewise.
2807 * eval.c: Likewise.
2808 * event-loop.c: Likewise.
2809 * event-top.c: Likewise.
2810 * f-valprint.c: Likewise.
2811 * frame-unwind.c: Likewise.
2812 * frame.c: Likewise.
2813 * gdbtypes.c: Likewise.
2814 * gnu-v2-abi.c: Likewise.
2815 * gnu-v3-abi.c: Likewise.
2816 * guile/scm-auto-load.c: Likewise.
2817 * guile/scm-breakpoint.c: Likewise.
2818 * guile/scm-cmd.c: Likewise.
2819 * guile/scm-frame.c: Likewise.
2820 * guile/scm-lazy-string.c: Likewise.
2821 * guile/scm-param.c: Likewise.
2822 * guile/scm-symbol.c: Likewise.
2823 * guile/scm-type.c: Likewise.
2824 * hppa-hpux-tdep.c: Likewise.
2825 * i386-tdep.c: Likewise.
2826 * inf-loop.c: Likewise.
2827 * infcall.c: Likewise.
2828 * infcmd.c: Likewise.
2829 * infrun.c: Likewise.
2830 * interps.c: Likewise.
2831 * interps.h: Likewise.
2832 * jit.c: Likewise.
2833 * linespec.c: Likewise.
2834 * linux-nat.c: Likewise.
2835 * linux-thread-db.c: Likewise.
2836 * m32r-rom.c: Likewise.
2837 * main.c: Likewise.
2838 * memory-map.c: Likewise.
2839 * mi/mi-cmd-break.c: Likewise.
2840 * mi/mi-cmd-stack.c: Likewise.
2841 * mi/mi-interp.c: Likewise.
2842 * mi/mi-main.c: Likewise.
2843 * monitor.c: Likewise.
2844 * nto-procfs.c: Likewise.
2845 * objc-lang.c: Likewise.
2846 * p-valprint.c: Likewise.
2847 * parse.c: Likewise.
2848 * ppc-linux-tdep.c: Likewise.
2849 * printcmd.c: Likewise.
2850 * probe.c: Likewise.
2851 * python/py-auto-load.c: Likewise.
2852 * python/py-breakpoint.c: Likewise.
2853 * python/py-cmd.c: Likewise.
2854 * python/py-finishbreakpoint.c: Likewise.
2855 * python/py-frame.c: Likewise.
2856 * python/py-framefilter.c: Likewise.
2857 * python/py-function.c: Likewise.
2858 * python/py-gdb-readline.c: Likewise.
2859 * python/py-inferior.c: Likewise.
2860 * python/py-infthread.c: Likewise.
2861 * python/py-lazy-string.c: Likewise.
2862 * python/py-linetable.c: Likewise.
2863 * python/py-param.c: Likewise.
2864 * python/py-prettyprint.c: Likewise.
2865 * python/py-symbol.c: Likewise.
2866 * python/py-type.c: Likewise.
2867 * python/py-value.c: Likewise.
2868 * python/python-internal.h: Likewise.
2869 * python/python.c: Likewise.
2870 * record-btrace.c: Likewise.
2871 * record-full.c: Likewise.
2872 * regcache.c: Likewise.
2873 * remote-fileio.c: Likewise.
2874 * remote-mips.c: Likewise.
2875 * remote.c: Likewise.
2876 * rs6000-aix-tdep.c: Likewise.
2877 * rs6000-nat.c: Likewise.
2878 * skip.c: Likewise.
2879 * solib-darwin.c: Likewise.
2880 * solib-dsbt.c: Likewise.
2881 * solib-frv.c: Likewise.
2882 * solib-ia64-hpux.c: Likewise.
2883 * solib-spu.c: Likewise.
2884 * solib-svr4.c: Likewise.
2885 * solib.c: Likewise.
2886 * spu-tdep.c: Likewise.
2887 * stack.c: Likewise.
2888 * stap-probe.c: Likewise.
2889 * symfile-mem.c: Likewise.
2890 * symmisc.c: Likewise.
2891 * target.c: Likewise.
2892 * thread.c: Likewise.
2893 * top.c: Likewise.
2894 * tracepoint.c: Likewise.
2895 * tui/tui-interp.c: Likewise.
2896 * typeprint.c: Likewise.
2897 * utils.c: Likewise.
2898 * valarith.c: Likewise.
2899 * valops.c: Likewise.
2900 * valprint.c: Likewise.
2901 * value.c: Likewise.
2902 * varobj.c: Likewise.
2903 * windows-nat.c: Likewise.
2904 * xml-support.c: Likewise.
2905
2906 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2907
2908 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2909 name implies.
2910 (extended_mips16_next_pc): Update accordingly.
2911
2912 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2913
2914 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2915 function.
2916 (micromips_instruction_is_compact_branch): Likewise.
2917 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2918 or a compact jump, reaching a jump delay slot, or seeing a
2919 second non-prologue instruction.
2920 (micromips_scan_prologue): Also terminate scanning upon seeing a
2921 compact branch or jump, or reaching a branch or jump delay slot.
2922 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2923 or jump delay slot, or seeing a second non-prologue instruction.
2924 (mips32_instruction_has_delay_slot): Retain instruction
2925 examination code only, update arguments accordingly and move
2926 instruction fetch pieces to...
2927 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2928 (micromips_instruction_has_delay_slot): Likewise and to...
2929 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2930 (mips16_instruction_has_delay_slot): Likewise and to...
2931 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2932 (mips_single_step_through_delay): Update accordingly.
2933 (mips_adjust_breakpoint_address): Likewise.
2934
2935 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2936
2937 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2938 !mustbe32 also return 1 for 32-bit instructions.
2939 (mips16_instruction_has_delay_slot): Likewise. Add an
2940 explanatory comment.
2941
2942 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2943
2944 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2945 symbols special.
2946
2947 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2948
2949 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2950 update comments.
2951 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2952 for the breakpoint's address. Don't preinitialize `placed_size'.
2953 (insert_bp_location): Set `reqstd_address' rather than
2954 `placed_address'.
2955 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2956 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2957 address.
2958 (bkpt_remove_location): Likewise.
2959 (deprecated_insert_raw_breakpoint): Likewise.
2960 (deprecated_remove_raw_breakpoint): Likewise.
2961 (find_single_step_breakpoint): Likewise.
2962 * mem-break.c (default_memory_insert_breakpoint): Use
2963 `reqstd_address' for the breakpoint's address. Don't set
2964 `placed_address' or `placed_size' if breakpoint contents couldn't
2965 have been determined.
2966 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2967 the breakpoint's address.
2968 (remote_insert_hw_breakpoint): Likewise. Don't set
2969 `placed_address' or `placed_size' if breakpoint couldn't have been
2970 set.
2971 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2972 `reqstd_address' for the breakpoint's address.
2973 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2974 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2975 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2976 * microblaze-linux-tdep.c
2977 (microblaze_linux_memory_remove_breakpoint): Likewise.
2978 * monitor.c (monitor_insert_breakpoint): Likewise.
2979 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2980 (procfs_insert_hw_breakpoint): Likewise.
2981 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2982 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2983 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2984 * remote-mips.c (mips_insert_breakpoint): Likewise.
2985 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2986
2987 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2988
2989 * valops.c (value_assign): Check for bit field assignments
2990 before calling architecture-specific register value
2991 conversion functions.
2992
2993 2014-10-03 Pierre Muller <muller@sourceware.org>
2994
2995 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2996
2997 2014-10-02 Pedro Alves <palves@redhat.com>
2998
2999 * breakpoint.c (breakpoints_should_be_inserted_now): Use
3000 threads_are_executing.
3001 * breakpoint.h (breakpoints_should_be_inserted_now): Add
3002 describing comment.
3003 * gdbthread.h (threads_are_executing): Declare.
3004 (handle_signal_stop) <random signals>: Don't print about the
3005 signal here if stopping.
3006 (end_stepping_range): Don't notify observers here.
3007 (normal_stop): Update the thread list. If stopped by a random
3008 signal or a stepping range ended, notify observers.
3009 * thread.c (threads_executing): New global.
3010 (init_thread_list): Clear 'threads_executing'.
3011 (set_executing): Set or clear 'threads_executing'.
3012 (threads_are_executing): New function.
3013 (update_threads_executing): New function.
3014 (update_thread_list): Use it.
3015
3016 2014-10-02 Pedro Alves <palves@redhat.com>
3017
3018 PR breakpoints/17431
3019 * breakpoint.c (update_breakpoints_after_exec): Don't create
3020 overlay, longjmp, std terminate nor exception breakpoints here.
3021
3022 2014-10-02 Pedro Alves <palves@redhat.com>
3023
3024 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3025 Adjust comments.
3026 * inferior.c (find_inferior_for_program_space): Give preference to
3027 the current inferior.
3028 * inferior.h (find_inferior_for_program_space): Update comment.
3029 * progspace.c (switch_to_program_space_and_thread): Prefer the
3030 current inferior if it's bound to the program space requested. If
3031 the inferior found doesn't have a PID yet, don't bother looking up
3032 a thread.
3033 * progspace.h (switch_to_program_space_and_thread): Adjust
3034 comment.
3035 * thread.c (any_thread_of_process, any_live_thread_of_process):
3036 Give preference to the current thread.
3037
3038 2014-10-01 Pedro Alves <palves@redhat.com>
3039
3040 * breakpoint.c (insert_bp_location): Error out if inserting a
3041 software breakpoint at a read-only address.
3042 * target.c (memory_xfer_check_region): New function, factored out
3043 from ...
3044 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3045 ULONGEST.
3046 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3047 against the memory region attributes.
3048
3049 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3050
3051 * NEWS: Announce new exit-code field in -list-thread-groups
3052 output.
3053 * inferior.c (exit_inferior_1): Don't clear exit code.
3054 (inferior_appeared): Clear exit code.
3055 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3056 code.
3057
3058 2014-10-01 Pedro Alves <palves@redhat.com>
3059
3060 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3061 GENERATED" along with emacs/vi read-only markers.
3062 * regformats/aarch64.dat: Regenerate.
3063 * regformats/arm-with-iwmmxt.dat: Regenerate.
3064 * regformats/arm-with-neon.dat: Regenerate.
3065 * regformats/arm-with-vfpv2.dat: Regenerate.
3066 * regformats/arm-with-vfpv3.dat: Regenerate.
3067 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3068 * regformats/i386/amd64-avx.dat: Regenerate.
3069 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3070 * regformats/i386/amd64-avx512.dat: Regenerate.
3071 * regformats/i386/amd64-linux.dat: Regenerate.
3072 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3073 * regformats/i386/amd64-mpx.dat: Regenerate.
3074 * regformats/i386/amd64.dat: Regenerate.
3075 * regformats/i386/i386-avx-linux.dat: Regenerate.
3076 * regformats/i386/i386-avx.dat: Regenerate.
3077 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3078 * regformats/i386/i386-avx512.dat: Regenerate.
3079 * regformats/i386/i386-linux.dat: Regenerate.
3080 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3081 * regformats/i386/i386-mmx.dat: Regenerate.
3082 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3083 * regformats/i386/i386-mpx.dat: Regenerate.
3084 * regformats/i386/i386.dat: Regenerate.
3085 * regformats/i386/x32-avx-linux.dat: Regenerate.
3086 * regformats/i386/x32-avx.dat: Regenerate.
3087 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3088 * regformats/i386/x32-avx512.dat: Regenerate.
3089 * regformats/i386/x32-linux.dat: Regenerate.
3090 * regformats/i386/x32.dat: Regenerate.
3091 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3092 * regformats/mips-dsp-linux.dat: Regenerate.
3093 * regformats/mips-linux.dat: Regenerate.
3094 * regformats/mips64-dsp-linux.dat: Regenerate.
3095 * regformats/mips64-linux.dat: Regenerate.
3096 * regformats/nios2-linux.dat: Regenerate.
3097 * regformats/rs6000/powerpc-32.dat: Regenerate.
3098 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3099 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3100 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3101 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3102 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3103 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3104 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3105 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3106 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3107 * regformats/s390-linux32.dat: Regenerate.
3108 * regformats/s390-linux32v1.dat: Regenerate.
3109 * regformats/s390-linux32v2.dat: Regenerate.
3110 * regformats/s390-linux64.dat: Regenerate.
3111 * regformats/s390-linux64v1.dat: Regenerate.
3112 * regformats/s390-linux64v2.dat: Regenerate.
3113 * regformats/s390-te-linux64.dat: Regenerate.
3114 * regformats/s390x-linux64.dat: Regenerate.
3115 * regformats/s390x-linux64v1.dat: Regenerate.
3116 * regformats/s390x-linux64v2.dat: Regenerate.
3117 * regformats/s390x-te-linux64.dat: Regenerate.
3118 * regformats/tic6x-c62x-linux.dat: Regenerate.
3119 * regformats/tic6x-c62x.dat: Regenerate.
3120 * regformats/tic6x-c64x-linux.dat: Regenerate.
3121 * regformats/tic6x-c64x.dat: Regenerate.
3122 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3123 * regformats/tic6x-c64xp.dat: Regenerate.
3124
3125 2014-10-01 Pedro Alves <palves@redhat.com>
3126
3127 * features/Makefile: Update comments.
3128 (XMLTOC): List all xml files we build C files from.
3129 (clean-cfiles): New rule.
3130
3131 2014-10-01 Pedro Alves <palves@redhat.com>
3132
3133 * features/i386/amd64-avx512-linux.c: Regenerate.
3134 * features/i386/amd64-avx512.c: Regenerate.
3135 * features/i386/x32-avx512-linux.c: Regenerate.
3136 * features/i386/x32-avx512.c: Regenerate.
3137
3138 2014-10-01 Pedro Alves <palves@redhat.com>
3139
3140 * features/Makefile (WHICH): Remove arm-with-m,
3141 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3142
3143 2014-10-01 Pedro Alves <palves@redhat.com>
3144
3145 * features/Makefile (clean): New rule.
3146
3147 2014-10-01 Pedro Alves <palves@redhat.com>
3148
3149 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3150 (zmm14h): Add missing end quotes.
3151
3152 2014-10-01 Pedro Alves <palves@redhat.com>
3153
3154 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3155 * features/aarch64.c: Regenerate.
3156
3157 2014-09-30 Don Breazeal <donb@codesourcery.com>
3158
3159 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3160 code so as to work with follow_fork_inferior.
3161 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3162 (inf_ttrace_create_inferior): Remove reference to
3163 inf_ttrace_vfork_ppid.
3164 (inf_ttrace_attach): Ditto.
3165 (inf_ttrace_detach): Ditto.
3166 (inf_ttrace_kill): Use current_inferior instead of
3167 inf_ttrace_vfork_ppid.
3168 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3169 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3170 inferior away from the parent.
3171 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3172 target_follow_fork.
3173 (follow_fork_inferior): New function.
3174 (follow_inferior_reset_breakpoints): Make function static.
3175 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3176 * linux-nat.c (linux_child_follow_fork): Move target-independent
3177 code to infrun.c:follow_fork_inferior.
3178
3179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3180
3181 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3182 * gdbarch.c: Regenerate.
3183 * gdbarch.h: Likewise.
3184 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3185 gdbarch method 'regset_from_core_section'.
3186 (get_core_register_section): Remove handling for the case that
3187 regset == NULL and regset_from_core_section is defined.
3188 (get_core_registers): Drop check for deleted method.
3189 * procfs.c (procfs_do_thread_registers): Adjust comment.
3190
3191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3192
3193 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3194 (linux_nat_make_corefile_notes): Remove.
3195 (linux_target_install_ops): Do not set target method
3196 'make_corefile_notes'.
3197 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3198 Remove field.
3199 (linux_corefile_thread_callback): Instead of args->collect, call
3200 linux_collect_thread_registers.
3201 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3202 NULL unless there is a regset iterator.
3203 (linux_make_corefile_notes_1): Remove.
3204 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3205 by linux_make_corefile_notes.
3206 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3207
3208 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209
3210 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3211 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3212 Remove.
3213 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3214
3215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3216
3217 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3218 (xtensa_iterate_over_regset_sections): New.
3219 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3220
3221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3222
3223 * vax-tdep.c (vax_regset_from_core_section): Remove.
3224 (vax_iterate_over_regset_sections): New.
3225 (vax_gdbarch_init): Adjust gdbarch initialization.
3226
3227 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3228
3229 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3230 (tilegx_regset_from_core_section): Remove.
3231 (tilegx_iterate_over_regset_sections): New.
3232 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3233
3234 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3235
3236 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3237 (sparc_iterate_over_regset_sections): New.
3238 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3239 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3240 targets.
3241 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3242 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3243 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3244 target method 'make_corefile_notes'.
3245
3246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3247
3248 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3249 'sizeof_gregset' and 'sizeof_fpregset'.
3250 * sh-tdep.c (sh_regset_from_core_section): Remove.
3251 (sh_iterate_over_regset_sections): New.
3252 (sh_gdbarch_init): Adjust gdbarch initialization.
3253 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3254 sizeof_fpregset.
3255 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3256 'sizeof_gregset'.
3257
3258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3259
3260 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3261 (score7_linux_iterate_over_regset_sections): New.
3262 (score_gdbarch_init): Adjust gdbarch initialization.
3263
3264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3265
3266 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3267 FreeBSD targets.
3268 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3269 method 'make_corefile_notes'.
3270 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3271 (ppcfbsd_regset_from_core_section): Remove.
3272 (ppcfbsd_iterate_over_regset_sections): New.
3273 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3274 initialization.
3275 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3276 (ppcnbsd_iterate_over_regset_sections): New.
3277 (ppcnbsd_init_abi): Adjust.
3278 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3279 (ppcobsd_iterate_over_regset_sections): New.
3280 (ppcobsd_init_abi): Adjust.
3281 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3282 (rs6000_aix_iterate_over_regset_sections): New.
3283 (rs6000_aix_init_osabi): Adjust.
3284
3285 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3286
3287 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3288 (nios2_regset_from_core_section): Remove.
3289 (nios2_iterate_over_regset_sections): New.
3290 (nios2_linux_init_abi): Adjust gdbarch initialization.
3291
3292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3293
3294 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3295 (am33_iterate_over_regset_sections): New.
3296 (am33_linux_init_osabi): Adjust gdbarch initialization.
3297
3298 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3299
3300 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3301 (mips_linux_iterate_over_regset_sections): New.
3302 (mips_linux_init_abi): Adjust gdbarch initialization.
3303 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3304 (mips64obsd_iterate_over_regset_sections): New.
3305 (mips64obsd_init_abi): Adjust.
3306 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3307 (mipsnbsd_iterate_over_regset_sections): New.
3308 (mipsnbsd_init_abi): Adjust.
3309
3310 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3311
3312 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3313 (m88k_iterate_over_regset_sections): New.
3314 (m88k_gdbarch_init): Adjust gdbarch initialization.
3315
3316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3317
3318 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3319 (ia64_linux_iterate_over_regset_sections): New.
3320 (ia64_linux_init_abi): Adjust gdbarch initialization.
3321
3322 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3323
3324 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3325 (m68kbsd_iterate_over_regset_sections): New.
3326 (m68kbsd_init_abi): Adjust gdbarch initialization.
3327 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3328 (m68k_linux_iterate_over_regset_sections): New.
3329 (m68k_linux_init_abi): Adjust gdbarch initialization.
3330
3331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3332
3333 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3334 (m32r_linux_regset_from_core_section): Remove.
3335 (m32r_linux_iterate_over_regset_sections): New.
3336 (m32r_linux_init_abi): Adjust gdbarch initialization.
3337
3338 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3339
3340 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3341 (amd64obsd_iterate_over_regset_sections): New.
3342 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3343 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3344 Remove.
3345 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3346 regset_from_core_section initialization.
3347 * i386-tdep.c (i386_regset_from_core_section): Remove.
3348 (i386_iterate_over_regset_sections): New.
3349 (i386_gdbarch_init): Adjust gdbarch initialization.
3350 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3351 (i386_iterate_over_regset_sections): New prototype.
3352 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3353 Remove.
3354 (i386obsd_aout_iterate_over_regset_sections): New.
3355 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3356 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3357 targets.
3358 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3359 (amd64fbsd_init_abi): Call fbsd_init_abi.
3360 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3361 (i386fbsd4_init_abi): Call fbsd_init_abi.
3362 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3363 target method 'make_corefile_notes'.
3364 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3365
3366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3367
3368 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3369 (hppa_hpux_iterate_over_regset_sections): New.
3370 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3371 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3372 (hppa_linux_iterate_over_regset_sections): New.
3373 (hppa_linux_init_abi): Adjust.
3374 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3375 (hppanbsd_iterate_over_regset_sections): New.
3376 (hppanbsd_init_abi): Adjust.
3377 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3378 (hppaobsd_iterate_over_regset_sections): New.
3379 (hppaobsd_init_abi): Adjust.
3380
3381 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3382
3383 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3384 (frv_linux_iterate_over_regset_sections): New.
3385 (frv_linux_init_abi): Adjust gdbarch initialization.
3386
3387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3388
3389 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3390 (armbsd_iterate_over_regset_sections): New prototype.
3391 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3392 (armbsd_iterate_over_regset_sections): New.
3393 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3394 initialization.
3395
3396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3397
3398 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3399 (alpha_linux_iterate_over_regset_sections): New.
3400 (alpha_linux_init_abi): Adjust gdbarch initialization.
3401 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3402 prototype.
3403 (alphanbsd_iterate_over_regset_sections): New prototype.
3404
3405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3406
3407 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3408 Remove.
3409 (aarch64_linux_iterate_over_regset_sections): New.
3410 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3411
3412 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3413
3414 * fbsd-tdep.c: New file.
3415 * fbsd-tdep.h: New file.
3416 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3417 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3418 (ALLDEPFILES): Add fbsd-tdep.c.
3419
3420 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3421
3422 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3423 parameter.
3424 * gdbarch.h: Regenerate.
3425 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3426 iterator.
3427 (get_core_register_section): Add parameter 'regset' and use it, if
3428 set. Add parameter 'min_size' and verify the bfd section size
3429 against it.
3430 (get_core_registers_cb): Add parameter 'regset' and pass it to
3431 get_core_register section. For the "standard" register sections
3432 ".reg" and ".reg2", set an appropriate default for human_name.
3433 (get_core_registers): Don't abort when the gdbarch has an iterator
3434 but no regset_from_core_section. Add NULL/0 for parameters
3435 'regset'/'min_size' in calls to get_core_register_section.
3436 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3437 'regset' and use it instead of calling the
3438 regset_from_core_section gdbarch method.
3439 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3440 * i386-tdep.c (i386_supply_xstateregset)
3441 (i386_collect_xstateregset, i386_xstateregset): Moved to
3442 i386-linux-tdep.c.
3443 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3444 .reg-xstate.
3445 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3446 core file support only if the regset iterator hasn't been set.
3447 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3448 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3449 Moved from i386-tdep.c and renamed to *_linux*.
3450 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3451 each callback invocation. Allow any .reg-xstate size when reading
3452 from a core file.
3453 * amd64-tdep.c (amd64_supply_xstateregset)
3454 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3455 amd64-linux-tdep.c.
3456 (amd64_regset_from_core_section): Remove.
3457 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3458 install an amd64-specific regset_from_core_section gdbarch method.
3459 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3460 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3461 Moved from amd64-tdep.c and renamed to *_linux*.
3462 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3463 to each callback invocation. Allow any .reg-xstate size when
3464 reading from a core file.
3465 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3466 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3467 each callback invocation.
3468 (arm_linux_init_abi): No longer set the regset_from_core_section
3469 gdbarch method.
3470 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3471 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3472 each callback invocation.
3473 (ppc_linux_init_abi): No longer set the regset_from_core_section
3474 gdbarch method.
3475 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3476 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3477 (s390_regset_from_core_section): Remove.
3478 (s390_iterate_over_regset_sections): Add regset parameter to each
3479 callback invocation.
3480 (s390_gdbarch_init): No longer set the regset_from_core_section
3481 gdbarch method. Drop initialization of deleted tdep fields.
3482
3483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3484
3485 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3486 (amd64_linux_iterate_over_regset_sections): New.
3487 (amd64_linux_init_abi_common): Don't install the regset section
3488 list, but the new iterator in gdbarch.
3489 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3490 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3491 (arm_linux_iterate_over_regset_sections): ...here. New function.
3492 (arm_linux_init_abi): Set iterator instead of section list.
3493 * corelow.c (get_core_registers_cb): New function, logic moved
3494 from...
3495 (get_core_registers): ...loop body here. Use new iterator method
3496 instead of walking through the regset section list.
3497 * gdbarch.sh: Remove 'core_regset_sections'. New method
3498 'iterate_over_regset_sections'. New typedef
3499 'iterate_over_regset_sections_cb'.
3500 * gdbarch.c: Regenerate.
3501 * gdbarch.h: Likewise.
3502 * i386-linux-tdep.c (i386_linux_regset_sections)
3503 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3504 Remove.
3505 (i386_linux_iterate_over_regset_sections): New.
3506 (i386_linux_init_abi): Don't choose a regset section list, but
3507 install new iterator in gdbarch.
3508 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3509 (linux_collect_regset_section_cb): New function, logic moved
3510 from...
3511 (linux_collect_thread_registers): ...loop body here. Use iterator
3512 method instead of walking through list.
3513 (linux_make_corefile_notes_1): Check for presence of iterator
3514 method instead of regset section list.
3515 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3516 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3517 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3518 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3519 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3520 (ppc_linux_init_abi): Don't choose from above regset section
3521 lists, but install new iterator in gdbarch.
3522 * regset.h (struct core_regset_section): Remove.
3523 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3524 have_linux_v1, have_linux_v2, and have_tdb.
3525 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3526 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3527 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3528 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3529 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3530 (s390_iterate_over_regset_sections): ...here. New function. Use
3531 new tdep fields.
3532 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3533 regset section lists, but install new iterator.
3534
3535 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3538
3539 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3540
3541 * progspace.c (print_program_space): Don't prune program spaces
3542 before printing them.
3543
3544 2014-09-25 Pedro Alves <palves@redhat.com>
3545
3546 * infrun.c (user_visible_resume_ptid): Don't check
3547 singlestep_breakpoints_inserted_p.
3548
3549 2014-09-25 Pedro Alves <palves@redhat.com>
3550
3551 * breakpoint.c (should_be_inserted): Add debug output.
3552
3553 2014-09-25 Pedro Alves <palves@redhat.com>
3554
3555 * infrun.c (stepping_past_instruction_at)
3556 (clear_exit_convenience_vars): Point at infrun.h instead of
3557 inferior.h.
3558 (handle_signal_stop): Fix typo.
3559
3560 2014-09-24 Yao Qi <yao@codesourcery.com>
3561
3562 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3563 bitmask.
3564
3565 2014-09-22 Gary Benson <gbenson@redhat.com>
3566
3567 * target.c (target_stop): Updated comment.
3568
3569 2014-09-22 Gary Benson <gbenson@redhat.com>
3570
3571 * target/target.h (target_stop_ptid): Renamed as...
3572 (target_stop_and_wait): New function. Updated comment.
3573 All uses updated.
3574 (target_continue_ptid): Renamed as...
3575 (target_continue_no_signal): New function. Updated comment.
3576 All uses updated.
3577
3578 2014-09-22 Pedro Alves <palves@redhat.com>
3579
3580 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3581 and "auto" merged.
3582 * breakpoint.c (enum ugll_insert_mode): New enum.
3583 (always_inserted_mode): Now a plain boolean.
3584 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3585 (breakpoints_always_inserted_mode): Delete.
3586 (breakpoints_should_be_inserted_now): New function.
3587 (insert_breakpoints): Pass UGLL_INSERT to
3588 update_global_location_list instead of calling
3589 insert_breakpoint_locations manually.
3590 (create_solib_event_breakpoint_1): New, factored out from ...
3591 (create_solib_event_breakpoint): ... this.
3592 (create_and_insert_solib_event_breakpoint): Use
3593 create_solib_event_breakpoint_1 instead of calling
3594 insert_breakpoint_locations manually.
3595 (update_global_location_list): Change parameter type from boolean
3596 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3597 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3598 (update_global_location_list_nothrow): Change parameter type from
3599 boolean to enum ugll_insert_mode.
3600 (_initialize_breakpoint): "breakpoint always-inserted" option is
3601 now a boolean command. Update help text.
3602 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3603 (breakpoints_should_be_inserted_now): New declaration.
3604 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3605 Remove breakpoints_always_inserted_mode check.
3606 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3607 * remote.c (remote_start_remote): Likewise.
3608
3609 2014-09-22 Pedro Alves <palves@redhat.com>
3610
3611 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3612 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3613 Instead, pass UGLL_INSERT to update_global_location_list.
3614 (update_global_location_list): Change parameter type from boolean
3615 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3616 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3617 (create_solib_event_breakpoint_1): New, factored out from ...
3618 (create_solib_event_breakpoint): ... this.
3619 (create_and_insert_solib_event_breakpoint): Use
3620 create_solib_event_breakpoint_1 instead of calling
3621 insert_breakpoint_locations manually.
3622 (update_global_location_list): Handle UGLL_INSERT.
3623
3624 2014-09-22 Pedro Alves <palves@redhat.com>
3625
3626 * breakpoint.c (enum ugll_insert_mode): New enum.
3627 (update_global_location_list)
3628 (update_global_location_list_nothrow): Change parameter type from
3629 boolean to enum ugll_insert_mode. All callers adjusted.
3630
3631 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3632
3633 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3634 SystemTap support in GDB.
3635
3636 2014-09-19 Don Breazeal <donb@codesourcery.com>
3637
3638 * linux-nat.c (linux_handle_extended_wait): Call
3639 linux_ptrace_get_extended_event.
3640 (wait_lwp): Call linux_is_extended_waitstatus.
3641 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3642 and linux_is_extended_waitstatus.
3643 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3644 linux_ptrace_get_extended_event.
3645 (linux_ptrace_get_extended_event): New function.
3646 (linux_is_extended_waitstatus): New function.
3647 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3648 (linux_is_extended_waitstatus): New declarations.
3649
3650 2014-09-19 Yao Qi <yao@codesourcery.com>
3651
3652 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3653 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3654 comments. Callers update.
3655 (dwarf_decode_lines): Likewise.
3656 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3657 comments. Skip the line table if 'lowpc' is greater than
3658 'address'. Don't check
3659 dwarf2_per_objfile->has_section_at_zero.
3660
3661 2014-09-18 Doug Evans <dje@google.com>
3662
3663 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3664 * python/py-symtab.c (stpy_get_producer): New function.
3665 (symtab_object_getset): Add "producer" attribute.
3666
3667 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3668
3669 PR gdb/17384
3670 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3671 (do_captured_read_memory_integer): Remove.
3672 (safe_read_memory_integer): Use target_read_memory directly instead
3673 of catching errors in do_captured_read_memory_integer.
3674
3675 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3676
3677 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3678 not gdb/doc.
3679
3680 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3681
3682 * objc-lang.c (find_implementation_from_class): Remove dead code.
3683
3684 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3685
3686 PR cli/7233
3687 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3688 "fprintf_unfiltered (gdb_stdlog...)".
3689
3690 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3691
3692 PR breakpoints/12526
3693 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3694 val_bitsize.
3695 * breakpoint.c (watch_command_1): Use these fields to retain
3696 bitfield information.
3697 (extract_bitfield_from_watchpoint_value): New function.
3698 (watchpoint_check): Use it.
3699 (update_watchpoint): Use it. Optimize the address and length of a
3700 HW watchpoint pointing to a bitfield.
3701 * value.h (unpack_value_bitfield): New prototype.
3702 * value.c (unpack_value_bitfield): Make extern.
3703
3704 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3705
3706 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3707 x86-dregs.o.
3708 * gnu-nat.c (inf_threads): New function.
3709 * gnu-nat.h (inf_threads_ftype): New typedef.
3710 (inf_threads): New declaration.
3711 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3712 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3713 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3714 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3715 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3716 (i386_gnu_dr_get_control): New functions.
3717 (reg_addr): New structure.
3718 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3719 i386 debugging register hooks.
3720 * NEWS: Mention this.
3721
3722 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3723
3724 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3725 vector data transfer instructions.
3726 (arm_record_coproc_data_proc): Updated.
3727
3728 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3729
3730 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3731 arm_record_exreg_ld_st_insn.
3732 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3733 load/store insns.
3734
3735 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3736
3737 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3738 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3739 processing instructions.
3740
3741 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3742
3743 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3744 for advance SIMD struct ld/st insn.
3745 (thumb2_record_decode_insn_handler): Replace stub handler with
3746 thumb2_record_asimd_struct_ld_st.
3747
3748 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3749
3750 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3751 for asimd, vfp and coprocessor insns.
3752 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3753 and coprocessor insns.
3754 (thumb2_record_coproc_insn): New function.
3755 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3756 handlers.
3757 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3758 opcode 110 insns.
3759
3760 2014-09-13 Doug Evans <xdje42@gmail.com>
3761
3762 * NEWS: Mention new "queue-signal" command.
3763 * infcmd.c (queue_signal_command): New function.
3764 (_initialize_infcmd): Add new queue-signal command.
3765
3766 2014-09-13 Doug Evans <xdje42@gmail.com>
3767
3768 * linux-nat.c (wait_lwp): Add debugging printf.
3769 (linux_nat_wait_1): Ditto.
3770
3771 2014-09-12 Pedro Alves <palves@redhat.com>
3772
3773 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3774 (create_and_insert_solib_event_breakpoint): New functions.
3775 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3776 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3777 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3778 (remove_dbx_link_breakpoint): Delete function.
3779 (insert_dbx_link_bpt_in_file): Use
3780 create_and_insert_solib_event_breakpoint instead of
3781 deprecated_insert_raw_breakpoint.
3782 (procfs_wait): Don't check whether we hit __dbx_link here.
3783 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3784 here.
3785 * solib-irix.c (base_breakpoint): Delete global.
3786 (disable_break): Delete function.
3787 (enable_break): Use create_solib_event_breakpoint
3788 instead of deprecated_insert_raw_breakpoint.
3789 (irix_solib_handle_event): New function.
3790 (irix_solib_create_inferior_hook): Don't run the target or disable
3791 the mapping-complete breakpoint here.
3792 (_initialize_irix_solib): Install irix_solib_handle_event as
3793 so_ops->handle_event hook.
3794
3795 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3796 Ulrich Weigand  <uweigand@de.ibm.com>
3797
3798 PR tdep/17379
3799 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3800 instead of read_memory_unsigned_integer.
3801
3802 2014-09-12 Gary Benson <gbenson@redhat.com>
3803
3804 * nat/linux-waitpid.c: Include common-defs.h.
3805 [GDBSERVER]: Add FIXME comment.
3806 [!GDBSERVER]: Don't include defs.h or signal.h.
3807 (linux_debug) [!GDBSERVER]: Remove empty block.
3808
3809 2014-09-12 Gary Benson <gbenson@redhat.com>
3810
3811 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3812 Don't include defs.h or server.h.
3813
3814 2014-09-12 Gary Benson <gbenson@redhat.com>
3815
3816 * nat/linux-btrace.c: Include common-defs.h.
3817 Don't include defs.h, server.h or gdbthread.h.
3818 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3819
3820 2014-09-12 Gary Benson <gbenson@redhat.com>
3821
3822 * common/agent.c: Include common-defs.h.
3823 Don't include defs.h or server.h.
3824 * common/buffer.c: Likewise.
3825 * common/common-debug.c: Likewise.
3826 * common/common-utils.c: Likewise.
3827 * common/errors.c: Likewise.
3828 * common/filestuff.c: Likewise.
3829 * common/format.c: Likewise.
3830 * common/gdb_vecs.c: Likewise.
3831 * common/print-utils.c: Likewise.
3832 * common/ptid.c: Likewise.
3833 * common/rsp-low.c: Likewise.
3834 * common/signals.c: Likewise.
3835 * common/vec.c: Likewise.
3836 * common/xml-utils.c: Likewise.
3837 * nat/linux-osdata.c: Likewise.
3838 * nat/linux-procfs.c: Likewise.
3839 * nat/linux-ptrace.c: Likewise.
3840 * nat/mips-linux-watch.c: Likewise.
3841 * target/waitstatus.c: Likewise.
3842
3843 2014-09-12 Tom Tromey <tromey@redhat.com>
3844 Gary Benson <gbenson@redhat.com>
3845
3846 * common/common-regcache.h: New file.
3847 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3848 * regcache.h: Include common-regcache.h.
3849 (regcache_read_pc): Don't declare.
3850 * regcache.c (get_thread_regcache_for_ptid): New function.
3851 * nat/linux-btrace.c: Don't include regcache.h.
3852 Include common-regcache.h.
3853 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3854
3855 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3856
3857 * regcache.h (struct regset): Declare.
3858
3859 2014-09-11 Pedro Alves <palves@redhat.com>
3860
3861 PR gdb/17347
3862 * main.c: Include "infrun.h".
3863 (catch_command_errors, catch_command_errors_const): Wait for the
3864 foreground command to complete.
3865 * top.c (maybe_wait_sync_command_done): New function, factored out
3866 from ...
3867 (maybe_wait_sync_command_done): ... here.
3868 * top.h (maybe_wait_sync_command_done): New declaration.
3869
3870 2014-09-11 Tom Tromey <tromey@redhat.com>
3871 Gary Benson <gbenson@redhat.com>
3872
3873 * common/symbol.h: New file.
3874 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3875 * minsyms.c (find_minimal_symbol_address): New function.
3876 * common/agent.c: Include common/symbol.h.
3877 [!GDBSERVER]: Don't include objfiles.h.
3878 (agent_look_up_symbols): Use find_minimal_symbol_address.
3879
3880 2014-09-11 Gary Benson <gbenson@redhat.com>
3881
3882 * target/target.h (target_stop_ptid, target_continue_ptid):
3883 Declare.
3884 * target.c (target_stop_ptid, target_continue_ptid): New
3885 functions.
3886 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3887 (agent_run_command): Always use target_stop_ptid and
3888 target_continue_ptid.
3889
3890 2014-09-11 Tom Tromey <tromey@redhat.com>
3891 Gary Benson <gbenson@redhat.com>
3892
3893 * target/target.h: New file.
3894 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3895 * target.h: Include target/target.h.
3896 (target_read_memory, target_write_memory): Don't declare.
3897 * target.c (target_read_uint32): New function.
3898 * common/agent.c: Include target/target.h.
3899 [!GDBSERVER]: Don't include target.h.
3900 (helper_thread_id): Type changed to uint32_t.
3901 (agent_get_helper_thread_id): Use target_read_uint32.
3902 (agent_run_command): Always use target_read_memory and
3903 target_write_memory.
3904 (agent_capability): Type changed to uint32_t.
3905 (agent_capability_check): Use target_read_uint32.
3906
3907 2014-09-11 Gary Benson <gbenson@redhat.com>
3908
3909 * common/common-debug.h (show_debug_regs): Declare.
3910 * common/common-debug.c (show_debug_regs): Define.
3911 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3912 all uses with show_debug_regs. Replace all uses that considered
3913 debug_hw_points as a multi-value integer with straight boolean
3914 uses.
3915 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3916 with show_debug_regs.
3917 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3918 all uses with show_debug_regs.
3919 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3920 uses with show_debug_regs.
3921
3922 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3923
3924 * findvar.c (address_from_register): Handle targets requiring
3925 a special conversion routine even for plain pointer types.
3926
3927 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3928
3929 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3930 (store_register): Do not call exec_one_dummy_insn.
3931
3932 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3933
3934 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3935 dereference it first. Use value_enclosing_type instead of
3936 value_type.
3937 (ada_array_length): Likewise.
3938
3939 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3940
3941 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3942 Adjust function implementation and documentation accordingly.
3943 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3944 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3945 Update call to ada_value_ptr_subscript.
3946
3947 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3948
3949 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3950 instead of VAL's type.
3951
3952 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3953
3954 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3955
3956 2014-09-09 Doug Evans <xdje42@gmail.com>
3957
3958 PR guile/17367
3959 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3960 last parameter to pkg-config, not first.
3961 * configure.ac: Pass --with-guile provided pkg-config path to
3962 GDB_GUILE_PROGRAM_NAMES.
3963 * configure: Regenerate.
3964
3965 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3966
3967 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3968 Bertazi".
3969
3970 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3971
3972 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3973 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3974 the list of sections determining GDB_OSABI_IRIX.
3975
3976 2014-09-09 James Hogan <james.hogan@imgtec.com>
3977
3978 * MAINTAINERS (Write After Approval): Add "James Hogan".
3979
3980 2014-09-09 James Hogan <james.hogan@imgtec.com>
3981
3982 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3983
3984 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3985
3986 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3987
3988 2014-09-08 Doug Evans <xdje42@gmail.com>
3989
3990 PR 17247
3991 * guile.c: #include <signal.h>.
3992 (_initialize_guile): Block SIGCHLD while initializing Guile.
3993
3994 Replaces the following, which is reverted.
3995
3996 2014-07-26 Doug Evans <xdje42@gmail.com>
3997
3998 PR 17185
3999 * configure.ac: Add check for header gc/gc.h.
4000 Add check for function setenv.
4001 * configure: Regenerate.
4002 * config.in: Regenerate.
4003 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4004
4005 2014-09-08 Doug Evans <xdje42@gmail.com>
4006
4007 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
4008 with named constant. Fix style of pointer comparison.
4009 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4010
4011 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4012
4013 PR gdb/17035
4014 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4015 decide whether we display the command on "show user".
4016 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4017 printing command name.
4018 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4019 * cli/cli-decode.c (cli_user_command_p): Create helper function
4020 to verify whether cmd_list_element is a user-defined command.
4021
4022 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4023
4024 PR python/17355
4025 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4026 Fix goto out of TRY_CATCH.
4027
4028 2014-09-06 Doug Evans <xdje42@gmail.com>
4029 Tom Tromey <tromey@redhat.com>
4030
4031 PR 15276
4032 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4033 $_any_caller_matches.
4034 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4035 * python/lib/gdb/function/caller_is.py: New file.
4036
4037 2014-09-06 Doug Evans <xdje42@gmail.com>
4038
4039 * infcmd.c (program_info): Fix typo.
4040
4041 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4042
4043 PR gdb/17235
4044 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4045 'number'. New variable 'has_digit'. Rewrite code to deal with
4046 subexpressions on SDT probes.
4047
4048 2014-09-04 Pedro Alves <palves@redhat.com>
4049
4050 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4051 the input is only one character long.
4052
4053 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4054
4055 PR fortran/17237
4056 * f-valprint.c (f_val_print): Specify the correct print option to
4057 use when printing integer values.
4058
4059 2014-09-04 Gary Benson <gbenson@redhat.com>
4060
4061 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4062 Remove code to cope with LWPs wrapped as PIDs.
4063 Add assertions to ensure no wrapped LWPs are passed.
4064
4065 2014-09-04 Pedro Alves <palves@redhat.com>
4066
4067 * value.c (value_ranges_copy_adjusted): New function, factored out
4068 from ...
4069 (value_contents_copy_raw): ... here.
4070 (unpack_value_bits_as_long_1): Rename back to ...
4071 (unpack_bits_as_long): ... this. Remove 'original_value' and
4072 'result' parameters. Change return type to LONGEST.
4073 (unpack_value_bits_as_long): Delete.
4074 (unpack_value_field_as_long_1): Delete.
4075 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4076 (unpack_value_bitfield): New function.
4077 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4078 (value_fetch_lazy): Use unpack_value_bitfield.
4079 * value.h (unpack_value_bits_as_long): Delete declaration.
4080
4081 2014-09-03 Sasha Smundak <asmundak@google.com>
4082
4083 * python/py-frame.c (frapy_read_register): New function.
4084
4085 2014-09-03 James Hogan <james.hogan@imgtec.com>
4086
4087 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4088 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4089
4090 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4091
4092 PR python/16699
4093 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4094 function.
4095 (add_cmd): Set "completer_handle_brkchars" to NULL.
4096 * cli/cli-decode.h (struct cmd_list_element)
4097 <completer_handle_brkchars>: New field.
4098 * command.h (completer_ftype_void): New typedef.
4099 (set_cmd_completer_handle_brkchars): New prototype.
4100 * completer.c (set_gdb_completion_word_break_characters): New
4101 function.
4102 (complete_line_internal): Call "completer_handle_brkchars"
4103 callback from command.
4104 * completer.h: Include "command.h".
4105 (set_gdb_completion_word_break_characters): New prototype.
4106 * python/py-cmd.c (cmdpy_completer_helper): New function.
4107 (cmdpy_completer_handle_brkchars): New function.
4108 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4109 (cmdpy_init): Set completer_handle_brkchars to
4110 cmdpy_completer_handle_brkchars.
4111
4112 2014-09-03 Gary Benson <gbenson@redhat.com>
4113
4114 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4115 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4116 Loop conditions changed to equivalent form.
4117 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4118 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4119 ALL_DEBUG_ADDRESS_REGISTERS.
4120
4121 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4122
4123 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4124 description fix.
4125
4126 2014-09-02 Doug Evans <dje@google.com>
4127
4128 * typeprint.c (find_global_typedef): Fix comment.
4129
4130 2014-09-02 Gary Benson <gbenson@redhat.com>
4131
4132 * i386-nat.h: Renamed as...
4133 * x86-nat.h: New file. All type, function and variable name
4134 prefixes changed from "i386_" to "x86_". All references updated.
4135 * i386-nat.c: Renamed as...
4136 * x86-nat.c: New file. All type, function and variable name
4137 prefixes changed from "i386_" to "x86_". All references updated.
4138 * common/i386-xstate.h: Renamed as...
4139 * common/x86-xstate.h: New file. All type, function and variable
4140 name prefixes changed from "i386_" to "x86_". All references
4141 updated.
4142 * nat/i386-cpuid.h: Renamed as...
4143 * nat/x86-cpuid.h: New file. All type, function and variable name
4144 prefixes changed from "i386_" to "x86_". All references updated.
4145 * nat/i386-gcc-cpuid.h: Renamed as...
4146 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4147 name prefixes changed from "i386_" to "x86_". All references
4148 updated.
4149 * nat/i386-dregs.h: Renamed as...
4150 * nat/x86-dregs.h: New file. All type, function and variable name
4151 prefixes changed from "i386_" to "x86_". All references updated.
4152 * nat/i386-dregs.c: Renamed as...
4153 * nat/x86-dregs.c: New file. All type, function and variable name
4154 prefixes changed from "i386_" to "x86_". All references updated.
4155
4156 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4157
4158 * varobj.c (_initialize_varobj): Move to the end of file.
4159
4160 2014-08-29 Gary Benson <gbenson@redhat.com>
4161
4162 * common/common-exceptions.h: New file.
4163 * common/common-exceptions.c: Likewise.
4164 * Makefile.in (SFILES): Add common/common-exceptions.c.
4165 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4166 (COMMON_OBS): Add common-exceptions.o.
4167 (common-exceptions.o): New rule.
4168 * exceptions.h (common-exceptions.h): Include.
4169 (gdb_setjmp.h): Do not include.
4170 (return_reason): Moved to common-exceptions.h.
4171 (enum return_reason): Likewise.
4172 (RETURN_MASK): Likewise.
4173 (typedef return_mask): Likewise.
4174 (enum errors): Likewise.
4175 (struct gdb_exception): Likewise.
4176 (exceptions_state_mc_init): Likewise.
4177 (exceptions_state_mc_action_iter): Likewise.
4178 (exceptions_state_mc_action_iter_1): Likewise.
4179 (TRY_CATCH): Likewise.
4180 (throw_exception): Likewise.
4181 (throw_verror): Likewise.
4182 (throw_vquit): Likewise.
4183 (throw_error): Likewise.
4184 (throw_quit): Likewise.
4185 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4186 (enum catcher_action): Likewise.
4187 (struct catcher): Likewise.
4188 (current_catcher): Likewise.
4189 (catcher_list_size): Likewise.
4190 (exceptions_state_mc_init): Likewise.
4191 (catcher_pop): Likewise.
4192 (exceptions_state_mc): Likewise.
4193 (exceptions_state_mc_action_iter): Likewise.
4194 (exceptions_state_mc_action_iter_1): Likewise.
4195 (throw_exception): Likewise.
4196 (exception_messages): Likewise.
4197 (exception_messages_size): Likewise.
4198 (throw_it): Likewise.
4199 (throw_verror): Likewise.
4200 (throw_vquit): Likewise.
4201 (throw_error): Likewise.
4202 (throw_quit): Likewise.
4203 (prepare_to_throw_exception): New function.
4204
4205 2014-08-29 Gary Benson <gbenson@redhat.com>
4206
4207 * common/gdb_setjmp.h: New file.
4208 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4209 * configure.ac: Move sigsetjmp check...
4210 * common/common.m4: ...here.
4211 * configure: Regenerate.
4212 * cp-support.c (SIGJMP_BUF): Delete.
4213 (SIGSETJMP): Likewise.
4214 (SIGLONGJMP): Likewise.
4215 * exceptions.h (gdb_setjmp.h): Include.
4216 (setjmp.h): Do not include.
4217 (EXCEPTIONS_SIGJMP_BUF): Delete.
4218 (EXCEPTIONS_SIGSETJMP): Likewise.
4219 (EXCEPTIONS_SIGLONGJMP): Likewise.
4220 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4221 from gdb_setjmp.h.
4222 * exceptions.c: Likewise.
4223
4224 2014-08-29 Gary Benson <gbenson@redhat.com>
4225
4226 * cleanups.h: Moved to...
4227 * common/cleanups.h: New file.
4228 * cleanups.c: Moved to...
4229 * common/cleanups.c: New file. Include common-defs.h and
4230 cleanups.h. Do not include defs.h.
4231 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4232 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4233 (cleanups.o): New rule.
4234
4235 2014-08-29 Gary Benson <gbenson@redhat.com>
4236
4237 * common/errors.h (internal_warning): New declaration.
4238 (internal_vwarning): Likewise.
4239 * common/errors.c (internal_warning): New function.
4240 * utils.h (internal_warning): Don't declare.
4241 (internal_vwarning): Likewise.
4242 * utils.c (internal_warning): Removed.
4243
4244 2014-08-29 Gary Benson <gbenson@redhat.com>
4245
4246 * main.c (captured_main): Use warning during startup.
4247 Prefix startup warning messages with command name.
4248
4249 2014-08-29 Gary Benson <gbenson@redhat.com>
4250
4251 * main.c (captured_main): Handle usage errors with error.
4252
4253 2014-08-29 Gary Benson <gbenson@redhat.com>
4254
4255 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4256 exit pair with a call to error. Wrap the message with _().
4257
4258 2014-08-29 Gary Benson <gbenson@redhat.com>
4259
4260 * main.c (captured_main): Replace a fprintf/exit
4261 pair with a call to error. Wrap the message with _().
4262
4263 2014-08-29 Gary Benson <gbenson@redhat.com>
4264
4265 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4266 pairs with calls to error. Wrap the message with _().
4267
4268 2014-08-29 Gary Benson <gbenson@redhat.com>
4269
4270 * utils.c (vwarning): Protect calls to target_terminal_ours
4271 and wrap_here.
4272
4273 2014-08-29 Gary Benson <gbenson@redhat.com>
4274
4275 * exceptions.c (print_flush): Protect calls to
4276 target_terminal_ours and wrap_here.
4277
4278 2014-08-29 Gary Benson <gbenson@redhat.com>
4279
4280 * utils.h (filtered_printing_initialized): New declaration.
4281 * utils.c (abort_with_message): New function.
4282 (internal_vproblem): Use abort_with_message for first level
4283 recursive internal problems, and if gdb_stderr is not set up.
4284 Protect calls to target_terminal_ours, begin_line and query.
4285
4286 2014-08-28 Doug Evans <dje@google.com>
4287
4288 * symtab.c (in_prologue): Move definition to better spot.
4289 (skip_prologue_using_sal): Ditto.
4290
4291 2014-08-28 Doug Evans <dje@google.com>
4292
4293 * symtab.c (find_function_start_sal): Move definition to better spot.
4294
4295 2014-08-28 Yao Qi <yao@codesourcery.com>
4296
4297 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4298 found_stack_adjust in forward scan. Remove condition check
4299 on found_stack_adjust which is always true. Indent the code.
4300
4301 2014-08-28 Yao Qi <yao@codesourcery.com>
4302
4303 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4304 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4305 (dwarf_decode_lines): Remove argument
4306 want_line_info. Remove condition check on want_line_info.
4307 Callers update.
4308
4309 2014-08-27 Doug Evans <dje@google.com>
4310
4311 * dwarf2read.c (dwarf_record_line): Fix typo.
4312
4313 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4314
4315 * target.h (struct target_ops::to_terminal_save_ours): Remove
4316 declaration.
4317 (target_terminal_save_ours): Remove macro.
4318 * target-delegates.c: Regenerate.
4319 * inf-child.c (inf_child_target): Don't set the nonexistent
4320 field to_terminal_save_ours.
4321 * inferior.h (child_terminal_save_ours): Remove declaration.
4322 * terminal.h (gdb_save_tty_state): New declaration.
4323 * inflow.c (child_terminal_save_ours): Rename to ...
4324 (gdb_save_tty_state): ... this.
4325 * tui/tui.c: Include terminal.h.
4326 (tui_enable): Use gdb_save_tty_state instead of
4327 target_terminal_save_ours.
4328 (tui_disable): Likewise.
4329
4330 2014-08-25 Doug Evans <dje@google.com>
4331
4332 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4333 Pass NULL instead of 0 for context pointer.
4334
4335 2014-08-25 Yao Qi <yao@codesourcery.com>
4336
4337 * dwarf2read.c: Fix grammatical error.
4338
4339 2014-08-24 Yao Qi <yao@codesourcery.com>
4340
4341 * dwarf2read.c (scan_partial_symbols): Update comments.
4342 Rename argument 'need_pc' with 'set_addrmap'.
4343 (add_partial_namespace): Rename argument 'need_pc' with
4344 'set_addrmap'.
4345 (add_partial_module): Likewise.
4346 (add_partial_subprogram): Likewise. Update comments.
4347 (dwarf2_name): Fix typo.
4348
4349 2014-08-22 Doug Evans <dje@google.com>
4350
4351 PR 17276
4352 * dwarf2read.c (dwarf_record_line_p): New function.
4353 (dwarf_decode_lines_1): Ignore subsequent line number entries
4354 for the same line if any entry had a non-zero discriminator.
4355
4356 2014-08-22 Doug Evans <dje@google.com>
4357
4358 * buildsym.h (record_line_ftype): New typedef.
4359 (record_line): Use it.
4360 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4361 (dwarf_decode_lines_1): Call them.
4362
4363 2014-08-22 Yao Qi <yao@codesourcery.com>
4364
4365 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4366 (ctf_end): Remove code.
4367
4368 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4369
4370 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4371 (linux_make_corefile_notes): call update_thread_list, protected against
4372 exceptions.
4373
4374 2014-08-21 Pedro Alves <palves@redhat.com>
4375
4376 * infcmd.c (attach_command): Remove comment.
4377
4378 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4379
4380 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4381 unsigned LONGEST to ULONGEST.
4382
4383 2014-08-20 Pedro Alves <palves@redhat.com>
4384
4385 * Makefile.in (check-read1): New rule.
4386
4387 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4388
4389 * value.c (value_from_contents_and_address): Strip resolved_type's
4390 typedef layers before checking its TYPE_DATA_LOCATION.
4391
4392 2014-08-20 Pedro Alves <palves@redhat.com>
4393
4394 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4395
4396 2014-08-20 Yao Qi <yao@codesourcery.com>
4397
4398 * amd64-tdep.c (amd64_classify): Add a blank line after the
4399 example. Move "*/" to a new line.
4400 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4401 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4402 * dwarf2read.c (psymtab_include_file_name): Likewise.
4403
4404 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4405 Pedro Alves <palves@redhat.com>
4406
4407 PR symtab/14604
4408 PR symtab/14605
4409 * ada-lang.c (coerce_unspec_val_to_type): Use
4410 value_contents_copy_raw.
4411 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4412 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4413 * cp-valprint.c (cp_print_value_fields): Let the common printing
4414 code handle optimized out values.
4415 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4416 * d-valprint.c (dynamic_array_type): Use
4417 value_bits_any_optimized_out.
4418 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4419 check_any_valid fields.
4420 (check_pieced_value_bits): Delete and inline ...
4421 (check_pieced_synthetic_pointer): ... here.
4422 (check_pieced_value_validity): Delete.
4423 (check_pieced_value_invalid): Delete.
4424 (pieced_value_funcs): Remove check_validity and check_any_valid
4425 fields.
4426 (read_pieced_value): Use mark_value_bits_optimized_out.
4427 (write_pieced_value): Switch to use
4428 mark_value_bytes_optimized_out.
4429 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4430 of assuming the whole value is optimized out.
4431 * findvar.c (read_frame_register_value): Remove special handling
4432 of optimized out registers.
4433 (value_from_register): Use mark_value_bytes_optimized_out.
4434 * frame-unwind.c (frame_unwind_got_optimized): Use
4435 mark_value_bytes_optimized_out.
4436 * jv-valprint.c (java_value_print): Adjust.
4437 (java_print_value_fields): Let the common printing code handle
4438 optimized out values.
4439 * mips-tdep.c (mips_print_register): Remove special handling of
4440 optimized out registers.
4441 * opencl-lang.c (lval_func_check_validity): Delete.
4442 (lval_func_check_any_valid): Delete.
4443 (opencl_value_funcs): Remove check_validity and check_any_valid
4444 fields.
4445 * p-valprint.c (pascal_object_print_value_fields): Let the common
4446 printing code handle optimized out values.
4447 * stack.c (read_frame_arg): Remove special handling of optimized
4448 out values. Fetch both VAL and ENTRYVAL before comparing
4449 contents. Adjust to value_available_contents_eq rename.
4450 * valprint.c (valprint_check_validity)
4451 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4452 (val_print_array_elements): Adjust.
4453 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4454 (value_bits_any_optimized_out): New function.
4455 (value_entirely_covered_by_range_vector): New function, factored
4456 out from value_entirely_unavailable.
4457 (value_entirely_unavailable): Reimplement.
4458 (value_entirely_optimized_out): New function.
4459 (insert_into_bit_range_vector): New function, factored out from
4460 mark_value_bits_unavailable.
4461 (mark_value_bits_unavailable): Reimplement.
4462 (struct ranges_and_idx): New struct.
4463 (find_first_range_overlap_and_match): New function, factored out
4464 from value_available_contents_bits_eq.
4465 (value_available_contents_bits_eq): Rename to ...
4466 (value_contents_bits_eq): ... this. Check both unavailable
4467 contents and optimized out contents.
4468 (value_available_contents_eq): Rename to ...
4469 (value_contents_eq): ... this.
4470 (allocate_value_lazy): Remove reference to the old optimized_out
4471 boolean.
4472 (allocate_optimized_out_value): Use
4473 mark_value_bytes_optimized_out.
4474 (require_not_optimized_out): Adjust to check whether the
4475 optimized_out vec is empty.
4476 (ranges_copy_adjusted): New function, factored out from
4477 value_contents_copy_raw.
4478 (value_contents_copy_raw): Also copy the optimized out ranges.
4479 Assert the destination ranges aren't optimized out.
4480 (value_contents_copy): Update comment, remove call to
4481 require_not_optimized_out.
4482 (value_contents_equal): Adjust to check whether the optimized_out
4483 vec is empty.
4484 (set_value_optimized_out, value_optimized_out_const): Delete.
4485 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4486 New functions.
4487 (value_entirely_optimized_out, value_bits_valid): Delete.
4488 (value_copy): Take a VEC copy of the 'optimized_out' field.
4489 (value_primitive_field): Remove special handling of optimized out.
4490 (value_fetch_lazy): Assert that lazy values have no unavailable
4491 regions. Use value_bits_any_optimized_out. Remove some special
4492 handling for optimized out values.
4493 * value.h: Add intro comment about <optimized out> and
4494 <unavailable>.
4495 (struct lval_funcs): Remove check_validity and check_any_valid
4496 fields.
4497 (set_value_optimized_out, value_optimized_out_const): Remove.
4498 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4499 New declarations.
4500 (value_bits_any_optimized_out): New declaration.
4501 (value_bits_valid): Delete declaration.
4502 (value_available_contents_eq): Rename to ...
4503 (value_contents_eq): ... this, and extend comments.
4504
4505 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4506
4507 Fix -fsanitize=address on unreadable inferior strings.
4508 * valprint.c (val_print_string): Fix access before BUFFER.
4509
4510 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4511
4512 * target.c (target_struct_size): Remove.
4513 (target_struct_allocsize): Remove.
4514 (DEFAULT_ALLOCSIZE): Remove.
4515 (target_ops_p): New typedef.
4516 (DEF_VEC_P (target_ops_p)): New vector type.
4517 (target_structs): Change type to VEC (target_ops_p).
4518 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4519 (find_default_run_target): Rewrite for loop following changes to
4520 target_structs.
4521
4522 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4523
4524 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4525 Adjust code accordingly. Adjust function description comment.
4526
4527 2014-08-19 Yao Qi <yao@codesourcery.com>
4528
4529 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4530 types.
4531
4532 2014-08-19 Alan Modra <amodra@gmail.com>
4533
4534 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4535 * config.in: Regenerate.
4536 * configure: Regenerate.
4537
4538 2014-08-19 Tom Tromey <tromey@redhat.com>
4539 Gary Benson <gbenson@redhat.com>
4540
4541 * common/common-debug.h: New file.
4542 * common/common-debug.c: Likewise.
4543 * debug.c: Likewise.
4544 * Makefile.in (SFILES): Add common/common-debug.c.
4545 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4546 (COMMON_OBS): Add common-debug.o and debug.o.
4547 (common-debug.o): New rule.
4548 * common/common-defs.h: Include common-debug.h.
4549 * common/agent.c (debug_agent_printf): New function.
4550 (DEBUG_AGENT): Redefine.
4551 * nat/i386-dregs.c (debug_printf): Undefine.
4552
4553 2014-08-19 Gary Benson <gbenson@redhat.com>
4554
4555 * common/common-defs.h: Include print-utils.h.
4556 * utils.h: Do not include print-utils.h.
4557
4558 2014-08-19 Tom Tromey <tromey@redhat.com>
4559 Gary Benson <gbenson@redhat.com>
4560
4561 * common/common-types.h: New file.
4562 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4563 * common/common-defs.h: Include common-types.h.
4564 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4565 (ULONGEST): Remove.
4566
4567 2014-08-19 Tom Tromey <tromey@redhat.com>
4568 Gary Benson <gbenson@redhat.com>
4569
4570 * common/errors.h: New file.
4571 * common/errors.c: Likewise.
4572 * Makefile.in (SFILES): Add common/errors.c.
4573 (HFILES_NO_SRCDIR): Add common/errors.h.
4574 (COMMON_OBS): Add errors.o.
4575 (errors.o): New rule.
4576 * common/common-defs.h: Include errors.h.
4577 * utils.h (perror_with_name, error, verror, warning, vwarning):
4578 Don't declare.
4579 * common/common-utils.h: (malloc_failure, internal_error):
4580 Likewise.
4581
4582 2014-08-19 Gary Benson <gbenson@redhat.com>
4583
4584 * utils.c (internal_vproblem): Always print the message.
4585
4586 2014-08-18 Doug Evans <dje@google.com>
4587
4588 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4589
4590 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4591
4592 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4593 Return 0 if TYPE is dynamic.
4594 (print_range): Add handling of dynamic ranges.
4595
4596 2014-08-18 Keven Boell <keven.boell@intel.com>
4597 Joel Brobecker <brobecker@adacore.com>
4598
4599 * gdbtypes.h (struct main_type): Add field "data_location".
4600 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4601 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4602 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4603 a dynamic data location.
4604 (resolve_dynamic_type): Add DW_AT_data_location handling.
4605 (copy_recursive, copy_type): Copy the data_location information
4606 when present.
4607 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4608 * value.c (value_from_contents_and_address): Add
4609 DW_AT_data_location handling.
4610
4611 2014-08-18 Keven Boell <keven.boell@intel.com>
4612 Joel Brobecker <brobecker@adacore.com>
4613
4614 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4615 field "get_object_address".
4616 * dwarf2expr.c (execute_stack_op): Add handling for
4617 DW_OP_push_object_address.
4618 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4619 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4620 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4621 (dwarf_expr_get_obj_addr): New function.
4622 (dwarf_expr_ctx_funcs): Add get_object_address field.
4623 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4624 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4625 (dwarf2_evaluate_property): Add parameter "address". Use it.
4626 (needs_get_obj_addr): New function.
4627 (needs_frame_ctx_funcs): Add get_object_address field.
4628 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4629 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4630 (resolve_dynamic_array): Likewise.
4631
4632 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4633
4634 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4635 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4636 fixed value for records and unions for which some GNAT encodings
4637 are present.
4638
4639 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4640
4641 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4642 rewrite to avoid "else if" and "else" constructs. Should be
4643 a no-op in practice.
4644
4645 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4646
4647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4648 of lexical block.
4649
4650 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4651
4652 PR c++/17132
4653 * eval.c: Update all calls to find_overload_match.
4654 * valarith.c: Likewise.
4655 (value_user_defined_cpp_op, value_user_defined_op): New
4656 argument NOSIDE. Update all callers.
4657 * valops.c (find_overload_match): New argument NOSIDE.
4658 * value.h (find_overload_match): Update signature.
4659
4660 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4661
4662 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4663 'items' methods instead of 'iteritems' method on dictionaries.
4664
4665 2014-08-15 Doug Evans <dje@google.com>
4666
4667 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4668 closer to use.
4669
4670 2014-08-15 Doug Evans <dje@google.com>
4671
4672 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4673
4674 2014-08-15 Doug Evans <dje@google.com>
4675
4676 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4677
4678 2014-08-15 Doug Evans <dje@google.com>
4679
4680 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4681 unused.
4682
4683 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4684
4685 * dcache.h: Include target.h, to avoid compile time warnings.
4686
4687 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4688
4689 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4690 frame_info" partial declaration.
4691 * gdbarch.h: Regenerate.
4692
4693 2014-08-15 Yao Qi <yao@codesourcery.com>
4694
4695 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4696 Add parameter 'decode_for_pst_p'. Callers update.
4697
4698 2014-08-13 Yao Qi <yao@codesourcery.com>
4699
4700 PR build/17104
4701 * configure.ac: Use local variable 'pos'.
4702 * configure: Regenerated.
4703
4704 2014-08-11 Doug Evans <dje@google.com>
4705
4706 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4707 message, it is redundant with "Reading symbols from ..." message.
4708
4709 2014-08-10 Doug Evans <xdje42@gmail.com>
4710
4711 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4712
4713 2014-08-09 Yao Qi <yao@codesourcery.com>
4714
4715 PR remote/9053
4716 * remote.c (remote_xfer_partial): Remove dead code.
4717
4718 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4719
4720 * ia64-linux-tdep.c: Include "regset.h".
4721 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4722 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4723 (ia64_linux_supply_fpregset): New function.
4724 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4725 (ia64_linux_regset_from_core_section): New function.
4726 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4727 method.
4728
4729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4730
4731 * m68klinux-tdep.c: Include "regset.h".
4732 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4733 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4734 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4735 (m68k_linux_regset_from_core_section): New function.
4736 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4737 method.
4738
4739 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4740
4741 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4742 function. Move logic to...
4743 (tilegx_linux_regmap): ... this new register map.
4744 (tilegx_linux_regset): Refer to register map, replace supply
4745 method by regcache_supply_regset, and add collect method.
4746 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4747 TILEGX_FIRST_EASY_REGNUM.
4748
4749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750
4751 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4752 that calls regcache_supply_regset and handles the EPC register
4753 separately. Move main logic to...
4754 (score7_linux_gregmap): ... this new register map.
4755 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4756 (score7_linux_gregset): Refer to register map. Add collect method.
4757 (score7_linux_regset_from_core_section): Replace
4758 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4759 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4760 (struct regset): Delete unused forward declaraction.
4761 (struct pt_regs): Delete structure definition.
4762 (elf_gregset_t): Delete typedef.
4763
4764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4765
4766 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4767 (nios2_core_regset): Add collect method.
4768
4769 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4770
4771 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4772 platform-independent and don't write to read-only input buffer.
4773 (m32r_linux_collect_gregset): New function.
4774 (m32r_linux_gregset): Add collect method.
4775
4776 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4777
4778 * hppa-linux-tdep.c (greg_map): Rename to...
4779 (hppa_linux_gregmap): ... this. Also convert to
4780 regcache_map_entry format.
4781 (hppa_linux_supply_regset): Delete function.
4782 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4783 (hppa_linux_fpregmap): ... this new register map.
4784 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4785 register map, replace supply method by regcache_supply_regset, and
4786 add collect method regcache_collect_regset.
4787
4788 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4789
4790 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4791 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4792 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4793 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4794 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4795 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4796 (frv_linux_supply_gregset): Replace main logic by call to
4797 regcache_supply_regset, but keep clearing gr32-gr63.
4798 (frv_linux_supply_fpregset): Delete function.
4799 (frv_linux_gregset): Refer to appropriate register map and add
4800 regcache_collect_regset as the collect method.
4801 (frv_linux_fpregset): Likewise. Also exchange the supply method
4802 by regcache_supply_regset.
4803
4804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4805
4806 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4807 by call to alpha_supply_int_regs.
4808 (alpha_linux_collect_gregset): New function.
4809 (alpha_linux_supply_fpregset): Replace logic by call to
4810 alpha_supply_fp_regs.
4811 (alpha_linux_collect_fpregset): New function.
4812 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4813
4814 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4815
4816 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4817 by call to regcache_collect_regset.
4818 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4819 instead of aarch64_linux_supply_gregset/_fpregset.
4820 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4821 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4822 header file instead.
4823 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4824 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4825 functions. Move logic to ...
4826 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4827 register maps.
4828 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4829 refer to new register maps, replace *_regset_from_core by
4830 regcache_supply_regset, and also use regcache_collect_regset.
4831 * aarch64-linux-tdep.h: Include "regset.h".
4832 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4833 Delete prototypes.
4834 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4835 macros, moved from C source file.
4836 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4837 variable declarations.
4838
4839 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4840
4841 * s390-linux-nat.c: Include "regset.h".
4842 (regmap_gregset): Delete macro.
4843 (s390_64_regmap_gregset): New register map for
4844 regcache_supply/_collect_regset.
4845 (s390_64_gregset): New regset.
4846 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4847 (regmap_fpregset): Delete macro.
4848 (s390_native_supply, s390_native_collect): Delete functions.
4849 (supply_gregset, fill_gregset): Replace s390-specific regmap
4850 handling by a call to regcache_supply/_collect_regset.
4851 (supply_fpregset, fill_fpregset): Call regcache_supply/
4852 _collect_regset instead of s390_native_supply/_collect.
4853 (fetch_regset, store_regset): Likewise. Also change the last
4854 parameter to a regset instead of a regmap.
4855 (s390_linux_fetch_inferior_registers)
4856 (390_linux_store_inferior_registers): Adjust last parameter in
4857 calls to fetch_regset and store_regset.
4858 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4859 (s390_gregmap): ... this. Also make static const and convert to
4860 regcache_map_entry format.
4861 (s390x_regmap_gregset): Delete.
4862 (s390_regmap_fpregset): Rename to...
4863 (s390_fpregmap): ... this. Make static const and convert to
4864 regcache_map_entry format.
4865 (s390_regmap_upper, s390_regmap_last_break)
4866 (s390x_regmap_last_break, s390_regmap_system_call)
4867 (s390_regmap_tdb): Likewise.
4868 (s390_supply_regset, s390_collect_regset): Remove functions.
4869 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4870 s390_supply_regset.
4871 (s390_gregset, s390_fpregset, s390_upper_regset)
4872 (s390_last_break_regset, s390x_last_break_regset)
4873 (s390_system_call_regset, s390_tdb_regset): Make global and
4874 replace s390_supply/_collect_regset by regcache_supply/
4875 _collect_regset.
4876 (s390x_gregset): Delete.
4877 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4878 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4879 (s390_regmap_fpregset, s390_regmap_last_break)
4880 (s390x_regmap_last_break, s390_regmap_system_call)
4881 (s390_regmap_tdb): Delete global variable declarations.
4882 (s390_gregset, s390_fpregset, s390_last_break_regset)
4883 (s390x_last_break_regset, s390_system_call_regset)
4884 (s390_tdb_regset): New global variable declarations.
4885
4886 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4887
4888 * regcache.c: Include "regset.h".
4889 (regcache_transfer_regset): New local function.
4890 (regcache_supply_regset, regcache_collect_regset): New functions.
4891 * regcache.h (struct regcache_map_entry): New structure.
4892 (REGCACHE_MAP_SKIP): New enum value.
4893 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4894
4895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4896
4897 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4898 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4899 (ppc_linux_collect_gregset ): Likewise.
4900 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4901 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4902 (ppc_collect_vrregset): Likewise.
4903 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4904 Likewise.
4905
4906 2014-08-07 Yao Qi <yao@codesourcery.com>
4907
4908 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4909 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4910 * remote.c (remote_read_bytes): Likewise.
4911
4912 2014-08-07 Yao Qi <yao@codesourcery.com>
4913
4914 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4915
4916 2014-08-07 Yao Qi <yao@codesourcery.com>
4917
4918 PR remote/17230
4919 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4920 TARGET_XFER_OK instead of 0.
4921
4922 2014-08-07 Gary Benson <gbenson@redhat.com>
4923
4924 * common/common-defs.h: Include errno.h.
4925 * defs.h: Do not include errno.h.
4926 * ada-typeprint.c: Likewise.
4927 * c-typeprint.c: Likewise.
4928 * core-regset.c: Likewise.
4929 * corefile.c: Likewise.
4930 * corelow.c: Likewise.
4931 * event-loop.c: Likewise.
4932 * f-typeprint.c: Likewise.
4933 * gnu-nat.c: Likewise.
4934 * go32-nat.c: Likewise.
4935 * i386gnu-nat.c: Likewise.
4936 * m2-typeprint.c: Likewise.
4937 * nat/linux-btrace.c: Likewise.
4938 * p-typeprint.c: Likewise.
4939 * procfs.c: Likewise.
4940 * remote-sim.c: Likewise.
4941 * rs6000-nat.c: Likewise.
4942 * target.c: Likewise.
4943 * typeprint.c: Likewise.
4944 * ui-file.c: Likewise.
4945 * valops.c: Likewise.
4946 * valprint.c: Likewise.
4947
4948 2014-08-07 Gary Benson <gbenson@redhat.com>
4949
4950 * common/common-defs.h: Include string.h.
4951 * aarch64-tdep.c: Do not include string.h.
4952 * ada-exp.y: Likewise.
4953 * ada-lang.c: Likewise.
4954 * ada-lex.l: Likewise.
4955 * ada-typeprint.c: Likewise.
4956 * ada-valprint.c: Likewise.
4957 * aix-thread.c: Likewise.
4958 * alpha-linux-tdep.c: Likewise.
4959 * alpha-mdebug-tdep.c: Likewise.
4960 * alpha-nat.c: Likewise.
4961 * alpha-osf1-tdep.c: Likewise.
4962 * alpha-tdep.c: Likewise.
4963 * alphanbsd-tdep.c: Likewise.
4964 * amd64-dicos-tdep.c: Likewise.
4965 * amd64-linux-tdep.c: Likewise.
4966 * amd64-nat.c: Likewise.
4967 * amd64-sol2-tdep.c: Likewise.
4968 * amd64fbsd-tdep.c: Likewise.
4969 * amd64obsd-tdep.c: Likewise.
4970 * arch-utils.c: Likewise.
4971 * arm-linux-nat.c: Likewise.
4972 * arm-linux-tdep.c: Likewise.
4973 * arm-tdep.c: Likewise.
4974 * arm-wince-tdep.c: Likewise.
4975 * armbsd-tdep.c: Likewise.
4976 * armnbsd-nat.c: Likewise.
4977 * armnbsd-tdep.c: Likewise.
4978 * armobsd-tdep.c: Likewise.
4979 * avr-tdep.c: Likewise.
4980 * ax-gdb.c: Likewise.
4981 * ax-general.c: Likewise.
4982 * bcache.c: Likewise.
4983 * bfin-tdep.c: Likewise.
4984 * breakpoint.c: Likewise.
4985 * build-id.c: Likewise.
4986 * buildsym.c: Likewise.
4987 * c-exp.y: Likewise.
4988 * c-lang.c: Likewise.
4989 * c-typeprint.c: Likewise.
4990 * c-valprint.c: Likewise.
4991 * charset.c: Likewise.
4992 * cli-out.c: Likewise.
4993 * cli/cli-cmds.c: Likewise.
4994 * cli/cli-decode.c: Likewise.
4995 * cli/cli-dump.c: Likewise.
4996 * cli/cli-interp.c: Likewise.
4997 * cli/cli-logging.c: Likewise.
4998 * cli/cli-script.c: Likewise.
4999 * cli/cli-setshow.c: Likewise.
5000 * cli/cli-utils.c: Likewise.
5001 * coffread.c: Likewise.
5002 * common/agent.c: Likewise.
5003 * common/buffer.c: Likewise.
5004 * common/buffer.h: Likewise.
5005 * common/common-utils.c: Likewise.
5006 * common/filestuff.c: Likewise.
5007 * common/filestuff.c: Likewise.
5008 * common/format.c: Likewise.
5009 * common/print-utils.c: Likewise.
5010 * common/rsp-low.c: Likewise.
5011 * common/signals.c: Likewise.
5012 * common/vec.h: Likewise.
5013 * common/xml-utils.c: Likewise.
5014 * core-regset.c: Likewise.
5015 * corefile.c: Likewise.
5016 * corelow.c: Likewise.
5017 * cp-abi.c: Likewise.
5018 * cp-name-parser.y: Likewise.
5019 * cp-support.c: Likewise.
5020 * cp-valprint.c: Likewise.
5021 * cris-tdep.c: Likewise.
5022 * d-exp.y: Likewise.
5023 * darwin-nat.c: Likewise.
5024 * dbxread.c: Likewise.
5025 * dcache.c: Likewise.
5026 * demangle.c: Likewise.
5027 * dicos-tdep.c: Likewise.
5028 * disasm.c: Likewise.
5029 * doublest.c: Likewise.
5030 * dsrec.c: Likewise.
5031 * dummy-frame.c: Likewise.
5032 * dwarf2-frame.c: Likewise.
5033 * dwarf2loc.c: Likewise.
5034 * dwarf2read.c: Likewise.
5035 * elfread.c: Likewise.
5036 * environ.c: Likewise.
5037 * eval.c: Likewise.
5038 * event-loop.c: Likewise.
5039 * exceptions.c: Likewise.
5040 * exec.c: Likewise.
5041 * expprint.c: Likewise.
5042 * f-exp.y: Likewise.
5043 * f-lang.c: Likewise.
5044 * f-typeprint.c: Likewise.
5045 * f-valprint.c: Likewise.
5046 * fbsd-nat.c: Likewise.
5047 * findcmd.c: Likewise.
5048 * findvar.c: Likewise.
5049 * fork-child.c: Likewise.
5050 * frame.c: Likewise.
5051 * frv-linux-tdep.c: Likewise.
5052 * frv-tdep.c: Likewise.
5053 * gdb.c: Likewise.
5054 * gdb_bfd.c: Likewise.
5055 * gdbarch.c: Likewise.
5056 * gdbarch.sh: Likewise.
5057 * gdbtypes.c: Likewise.
5058 * gnu-nat.c: Likewise.
5059 * gnu-v2-abi.c: Likewise.
5060 * gnu-v3-abi.c: Likewise.
5061 * go-exp.y: Likewise.
5062 * go-lang.c: Likewise.
5063 * go32-nat.c: Likewise.
5064 * guile/guile.c: Likewise.
5065 * guile/scm-auto-load.c: Likewise.
5066 * hppa-hpux-tdep.c: Likewise.
5067 * hppa-linux-nat.c: Likewise.
5068 * hppanbsd-tdep.c: Likewise.
5069 * hppaobsd-tdep.c: Likewise.
5070 * i386-cygwin-tdep.c: Likewise.
5071 * i386-dicos-tdep.c: Likewise.
5072 * i386-linux-tdep.c: Likewise.
5073 * i386-nto-tdep.c: Likewise.
5074 * i386-sol2-tdep.c: Likewise.
5075 * i386-tdep.c: Likewise.
5076 * i386bsd-tdep.c: Likewise.
5077 * i386gnu-nat.c: Likewise.
5078 * i386nbsd-tdep.c: Likewise.
5079 * i386obsd-tdep.c: Likewise.
5080 * i387-tdep.c: Likewise.
5081 * ia64-libunwind-tdep.c: Likewise.
5082 * ia64-linux-nat.c: Likewise.
5083 * inf-child.c: Likewise.
5084 * inf-ptrace.c: Likewise.
5085 * inf-ttrace.c: Likewise.
5086 * infcall.c: Likewise.
5087 * infcmd.c: Likewise.
5088 * inflow.c: Likewise.
5089 * infrun.c: Likewise.
5090 * interps.c: Likewise.
5091 * iq2000-tdep.c: Likewise.
5092 * irix5-nat.c: Likewise.
5093 * jv-exp.y: Likewise.
5094 * jv-lang.c: Likewise.
5095 * jv-typeprint.c: Likewise.
5096 * jv-valprint.c: Likewise.
5097 * language.c: Likewise.
5098 * linux-fork.c: Likewise.
5099 * linux-nat.c: Likewise.
5100 * lm32-tdep.c: Likewise.
5101 * m2-exp.y: Likewise.
5102 * m2-typeprint.c: Likewise.
5103 * m32c-tdep.c: Likewise.
5104 * m32r-linux-nat.c: Likewise.
5105 * m32r-linux-tdep.c: Likewise.
5106 * m32r-rom.c: Likewise.
5107 * m32r-tdep.c: Likewise.
5108 * m68hc11-tdep.c: Likewise.
5109 * m68k-tdep.c: Likewise.
5110 * m68kbsd-tdep.c: Likewise.
5111 * m68klinux-nat.c: Likewise.
5112 * m68klinux-tdep.c: Likewise.
5113 * m88k-tdep.c: Likewise.
5114 * machoread.c: Likewise.
5115 * macrocmd.c: Likewise.
5116 * main.c: Likewise.
5117 * mdebugread.c: Likewise.
5118 * mem-break.c: Likewise.
5119 * memattr.c: Likewise.
5120 * memory-map.c: Likewise.
5121 * mep-tdep.c: Likewise.
5122 * mi/mi-cmd-break.c: Likewise.
5123 * mi/mi-cmd-disas.c: Likewise.
5124 * mi/mi-cmd-env.c: Likewise.
5125 * mi/mi-cmd-stack.c: Likewise.
5126 * mi/mi-cmd-var.c: Likewise.
5127 * mi/mi-cmds.c: Likewise.
5128 * mi/mi-console.c: Likewise.
5129 * mi/mi-getopt.c: Likewise.
5130 * mi/mi-interp.c: Likewise.
5131 * mi/mi-main.c: Likewise.
5132 * mi/mi-parse.c: Likewise.
5133 * microblaze-rom.c: Likewise.
5134 * microblaze-tdep.c: Likewise.
5135 * mingw-hdep.c: Likewise.
5136 * minidebug.c: Likewise.
5137 * minsyms.c: Likewise.
5138 * mips-irix-tdep.c: Likewise.
5139 * mips-linux-tdep.c: Likewise.
5140 * mips-tdep.c: Likewise.
5141 * mips64obsd-tdep.c: Likewise.
5142 * mipsnbsd-tdep.c: Likewise.
5143 * mipsread.c: Likewise.
5144 * mn10300-linux-tdep.c: Likewise.
5145 * mn10300-tdep.c: Likewise.
5146 * monitor.c: Likewise.
5147 * moxie-tdep.c: Likewise.
5148 * mt-tdep.c: Likewise.
5149 * nat/linux-btrace.c: Likewise.
5150 * nat/linux-osdata.c: Likewise.
5151 * nat/linux-procfs.c: Likewise.
5152 * nat/linux-ptrace.c: Likewise.
5153 * nat/linux-waitpid.c: Likewise.
5154 * nbsd-tdep.c: Likewise.
5155 * nios2-linux-tdep.c: Likewise.
5156 * nto-procfs.c: Likewise.
5157 * nto-tdep.c: Likewise.
5158 * objc-lang.c: Likewise.
5159 * objfiles.c: Likewise.
5160 * opencl-lang.c: Likewise.
5161 * osabi.c: Likewise.
5162 * osdata.c: Likewise.
5163 * p-exp.y: Likewise.
5164 * p-lang.c: Likewise.
5165 * p-typeprint.c: Likewise.
5166 * parse.c: Likewise.
5167 * posix-hdep.c: Likewise.
5168 * ppc-linux-nat.c: Likewise.
5169 * ppc-sysv-tdep.c: Likewise.
5170 * ppcfbsd-tdep.c: Likewise.
5171 * ppcnbsd-tdep.c: Likewise.
5172 * ppcobsd-tdep.c: Likewise.
5173 * printcmd.c: Likewise.
5174 * procfs.c: Likewise.
5175 * prologue-value.c: Likewise.
5176 * python/py-auto-load.c: Likewise.
5177 * python/py-gdb-readline.c: Likewise.
5178 * ravenscar-thread.c: Likewise.
5179 * regcache.c: Likewise.
5180 * registry.c: Likewise.
5181 * remote-fileio.c: Likewise.
5182 * remote-m32r-sdi.c: Likewise.
5183 * remote-mips.c: Likewise.
5184 * remote-notif.c: Likewise.
5185 * remote-sim.c: Likewise.
5186 * remote.c: Likewise.
5187 * reverse.c: Likewise.
5188 * rs6000-aix-tdep.c: Likewise.
5189 * ser-base.c: Likewise.
5190 * ser-go32.c: Likewise.
5191 * ser-mingw.c: Likewise.
5192 * ser-pipe.c: Likewise.
5193 * ser-tcp.c: Likewise.
5194 * ser-unix.c: Likewise.
5195 * serial.c: Likewise.
5196 * sh-tdep.c: Likewise.
5197 * sh64-tdep.c: Likewise.
5198 * shnbsd-tdep.c: Likewise.
5199 * skip.c: Likewise.
5200 * sol-thread.c: Likewise.
5201 * solib-dsbt.c: Likewise.
5202 * solib-frv.c: Likewise.
5203 * solib-osf.c: Likewise.
5204 * solib-som.c: Likewise.
5205 * solib-spu.c: Likewise.
5206 * solib-target.c: Likewise.
5207 * solib.c: Likewise.
5208 * somread.c: Likewise.
5209 * source.c: Likewise.
5210 * sparc-nat.c: Likewise.
5211 * sparc-sol2-tdep.c: Likewise.
5212 * sparc-tdep.c: Likewise.
5213 * sparc64-tdep.c: Likewise.
5214 * sparc64fbsd-tdep.c: Likewise.
5215 * sparc64nbsd-tdep.c: Likewise.
5216 * sparcnbsd-tdep.c: Likewise.
5217 * spu-linux-nat.c: Likewise.
5218 * spu-multiarch.c: Likewise.
5219 * spu-tdep.c: Likewise.
5220 * stabsread.c: Likewise.
5221 * stack.c: Likewise.
5222 * std-regs.c: Likewise.
5223 * symfile.c: Likewise.
5224 * symmisc.c: Likewise.
5225 * symtab.c: Likewise.
5226 * target.c: Likewise.
5227 * thread.c: Likewise.
5228 * tilegx-linux-nat.c: Likewise.
5229 * tilegx-tdep.c: Likewise.
5230 * top.c: Likewise.
5231 * tracepoint.c: Likewise.
5232 * tui/tui-command.c: Likewise.
5233 * tui/tui-data.c: Likewise.
5234 * tui/tui-disasm.c: Likewise.
5235 * tui/tui-file.c: Likewise.
5236 * tui/tui-layout.c: Likewise.
5237 * tui/tui-out.c: Likewise.
5238 * tui/tui-regs.c: Likewise.
5239 * tui/tui-source.c: Likewise.
5240 * tui/tui-stack.c: Likewise.
5241 * tui/tui-win.c: Likewise.
5242 * tui/tui-windata.c: Likewise.
5243 * tui/tui-winsource.c: Likewise.
5244 * typeprint.c: Likewise.
5245 * ui-file.c: Likewise.
5246 * ui-out.c: Likewise.
5247 * user-regs.c: Likewise.
5248 * utils.c: Likewise.
5249 * v850-tdep.c: Likewise.
5250 * valarith.c: Likewise.
5251 * valops.c: Likewise.
5252 * valprint.c: Likewise.
5253 * value.c: Likewise.
5254 * varobj.c: Likewise.
5255 * vax-tdep.c: Likewise.
5256 * vaxnbsd-tdep.c: Likewise.
5257 * vaxobsd-tdep.c: Likewise.
5258 * windows-nat.c: Likewise.
5259 * xcoffread.c: Likewise.
5260 * xml-support.c: Likewise.
5261 * xstormy16-tdep.c: Likewise.
5262 * xtensa-linux-nat.c: Likewise.
5263
5264 2014-08-07 Gary Benson <gbenson@redhat.com>
5265
5266 * common/common-defs.h: Include gdb_assert.h.
5267 * aarch64-tdep.c: Do not include gdb_assert.h.
5268 * addrmap.c: Likewise.
5269 * aix-thread.c: Likewise.
5270 * alpha-linux-tdep.c: Likewise.
5271 * alpha-mdebug-tdep.c: Likewise.
5272 * alphanbsd-tdep.c: Likewise.
5273 * amd64-nat.c: Likewise.
5274 * amd64-tdep.c: Likewise.
5275 * amd64bsd-nat.c: Likewise.
5276 * amd64fbsd-nat.c: Likewise.
5277 * amd64fbsd-tdep.c: Likewise.
5278 * amd64nbsd-nat.c: Likewise.
5279 * amd64nbsd-tdep.c: Likewise.
5280 * amd64obsd-nat.c: Likewise.
5281 * amd64obsd-tdep.c: Likewise.
5282 * arch-utils.c: Likewise.
5283 * arm-tdep.c: Likewise.
5284 * armbsd-tdep.c: Likewise.
5285 * auxv.c: Likewise.
5286 * bcache.c: Likewise.
5287 * bfin-tdep.c: Likewise.
5288 * blockframe.c: Likewise.
5289 * breakpoint.c: Likewise.
5290 * bsd-kvm.c: Likewise.
5291 * bsd-uthread.c: Likewise.
5292 * buildsym.c: Likewise.
5293 * c-exp.y: Likewise.
5294 * c-lang.c: Likewise.
5295 * charset.c: Likewise.
5296 * cleanups.c: Likewise.
5297 * cli-out.c: Likewise.
5298 * cli/cli-decode.c: Likewise.
5299 * cli/cli-dump.c: Likewise.
5300 * cli/cli-logging.c: Likewise.
5301 * cli/cli-script.c: Likewise.
5302 * cli/cli-utils.c: Likewise.
5303 * coffread.c: Likewise.
5304 * common/common-utils.c: Likewise.
5305 * common/queue.h: Likewise.
5306 * common/signals.c: Likewise.
5307 * common/vec.h: Likewise.
5308 * complaints.c: Likewise.
5309 * completer.c: Likewise.
5310 * corelow.c: Likewise.
5311 * cp-abi.c: Likewise.
5312 * cp-name-parser.y: Likewise.
5313 * cp-namespace.c: Likewise.
5314 * cp-support.c: Likewise.
5315 * cris-tdep.c: Likewise.
5316 * dbxread.c: Likewise.
5317 * dictionary.c: Likewise.
5318 * doublest.c: Likewise.
5319 * dsrec.c: Likewise.
5320 * dummy-frame.c: Likewise.
5321 * dwarf2-frame-tailcall.c: Likewise.
5322 * dwarf2-frame.c: Likewise.
5323 * dwarf2expr.c: Likewise.
5324 * dwarf2loc.c: Likewise.
5325 * dwarf2read.c: Likewise.
5326 * eval.c: Likewise.
5327 * event-loop.c: Likewise.
5328 * exceptions.c: Likewise.
5329 * expprint.c: Likewise.
5330 * f-valprint.c: Likewise.
5331 * fbsd-nat.c: Likewise.
5332 * findvar.c: Likewise.
5333 * frame-unwind.c: Likewise.
5334 * frame.c: Likewise.
5335 * frv-tdep.c: Likewise.
5336 * gcore.c: Likewise.
5337 * gdb-dlfcn.c: Likewise.
5338 * gdb_bfd.c: Likewise.
5339 * gdbarch.c: Likewise.
5340 * gdbarch.sh: Likewise.
5341 * gdbtypes.c: Likewise.
5342 * gnu-nat.c: Likewise.
5343 * gnu-v3-abi.c: Likewise.
5344 * go-lang.c: Likewise.
5345 * guile/scm-exception.c: Likewise.
5346 * guile/scm-gsmob.c: Likewise.
5347 * guile/scm-lazy-string.c: Likewise.
5348 * guile/scm-math.c: Likewise.
5349 * guile/scm-pretty-print.c: Likewise.
5350 * guile/scm-safe-call.c: Likewise.
5351 * guile/scm-utils.c: Likewise.
5352 * guile/scm-value.c: Likewise.
5353 * h8300-tdep.c: Likewise.
5354 * hppa-hpux-nat.c: Likewise.
5355 * hppa-tdep.c: Likewise.
5356 * hppanbsd-tdep.c: Likewise.
5357 * hppaobsd-tdep.c: Likewise.
5358 * i386-darwin-nat.c: Likewise.
5359 * i386-darwin-tdep.c: Likewise.
5360 * i386-nto-tdep.c: Likewise.
5361 * i386-tdep.c: Likewise.
5362 * i386bsd-nat.c: Likewise.
5363 * i386fbsd-tdep.c: Likewise.
5364 * i386gnu-nat.c: Likewise.
5365 * i386nbsd-tdep.c: Likewise.
5366 * i386obsd-tdep.c: Likewise.
5367 * i387-tdep.c: Likewise.
5368 * ia64-libunwind-tdep.c: Likewise.
5369 * ia64-tdep.c: Likewise.
5370 * inf-ptrace.c: Likewise.
5371 * inf-ttrace.c: Likewise.
5372 * infcall.c: Likewise.
5373 * infcmd.c: Likewise.
5374 * infrun.c: Likewise.
5375 * inline-frame.c: Likewise.
5376 * interps.c: Likewise.
5377 * jv-lang.c: Likewise.
5378 * jv-typeprint.c: Likewise.
5379 * linux-fork.c: Likewise.
5380 * linux-nat.c: Likewise.
5381 * linux-thread-db.c: Likewise.
5382 * m32c-tdep.c: Likewise.
5383 * m32r-linux-nat.c: Likewise.
5384 * m32r-tdep.c: Likewise.
5385 * m68k-tdep.c: Likewise.
5386 * m68kbsd-nat.c: Likewise.
5387 * m68kbsd-tdep.c: Likewise.
5388 * m88k-tdep.c: Likewise.
5389 * machoread.c: Likewise.
5390 * macroexp.c: Likewise.
5391 * macrotab.c: Likewise.
5392 * maint.c: Likewise.
5393 * mdebugread.c: Likewise.
5394 * memory-map.c: Likewise.
5395 * mep-tdep.c: Likewise.
5396 * mi/mi-common.c: Likewise.
5397 * microblaze-tdep.c: Likewise.
5398 * mingw-hdep.c: Likewise.
5399 * mips-linux-nat.c: Likewise.
5400 * mips-linux-tdep.c: Likewise.
5401 * mips-tdep.c: Likewise.
5402 * mips64obsd-tdep.c: Likewise.
5403 * mipsnbsd-tdep.c: Likewise.
5404 * mn10300-linux-tdep.c: Likewise.
5405 * mn10300-tdep.c: Likewise.
5406 * moxie-tdep.c: Likewise.
5407 * mt-tdep.c: Likewise.
5408 * nat/linux-btrace.c: Likewise.
5409 * nat/linux-osdata.c: Likewise.
5410 * nat/linux-ptrace.c: Likewise.
5411 * nat/mips-linux-watch.c: Likewise.
5412 * nios2-linux-tdep.c: Likewise.
5413 * nios2-tdep.c: Likewise.
5414 * objc-lang.c: Likewise.
5415 * objfiles.c: Likewise.
5416 * obsd-nat.c: Likewise.
5417 * opencl-lang.c: Likewise.
5418 * osabi.c: Likewise.
5419 * parse.c: Likewise.
5420 * ppc-linux-nat.c: Likewise.
5421 * ppc-sysv-tdep.c: Likewise.
5422 * ppcfbsd-nat.c: Likewise.
5423 * ppcfbsd-tdep.c: Likewise.
5424 * ppcnbsd-nat.c: Likewise.
5425 * ppcnbsd-tdep.c: Likewise.
5426 * ppcobsd-nat.c: Likewise.
5427 * ppcobsd-tdep.c: Likewise.
5428 * printcmd.c: Likewise.
5429 * procfs.c: Likewise.
5430 * prologue-value.c: Likewise.
5431 * psymtab.c: Likewise.
5432 * python/py-lazy-string.c: Likewise.
5433 * python/py-value.c: Likewise.
5434 * regcache.c: Likewise.
5435 * reggroups.c: Likewise.
5436 * registry.c: Likewise.
5437 * remote-sim.c: Likewise.
5438 * remote.c: Likewise.
5439 * rs6000-aix-tdep.c: Likewise.
5440 * rs6000-tdep.c: Likewise.
5441 * s390-linux-tdep.c: Likewise.
5442 * score-tdep.c: Likewise.
5443 * ser-base.c: Likewise.
5444 * ser-mingw.c: Likewise.
5445 * sh-tdep.c: Likewise.
5446 * sh64-tdep.c: Likewise.
5447 * solib-darwin.c: Likewise.
5448 * solib-spu.c: Likewise.
5449 * solib-svr4.c: Likewise.
5450 * source.c: Likewise.
5451 * sparc-nat.c: Likewise.
5452 * sparc-sol2-tdep.c: Likewise.
5453 * sparc-tdep.c: Likewise.
5454 * sparc64-sol2-tdep.c: Likewise.
5455 * sparc64-tdep.c: Likewise.
5456 * sparc64fbsd-tdep.c: Likewise.
5457 * sparc64nbsd-tdep.c: Likewise.
5458 * sparc64obsd-tdep.c: Likewise.
5459 * sparcnbsd-tdep.c: Likewise.
5460 * sparcobsd-tdep.c: Likewise.
5461 * spu-multiarch.c: Likewise.
5462 * spu-tdep.c: Likewise.
5463 * stabsread.c: Likewise.
5464 * stack.c: Likewise.
5465 * symfile.c: Likewise.
5466 * symtab.c: Likewise.
5467 * target-descriptions.c: Likewise.
5468 * target-memory.c: Likewise.
5469 * target.c: Likewise.
5470 * tic6x-linux-tdep.c: Likewise.
5471 * tic6x-tdep.c: Likewise.
5472 * tilegx-linux-nat.c: Likewise.
5473 * tilegx-tdep.c: Likewise.
5474 * top.c: Likewise.
5475 * tramp-frame.c: Likewise.
5476 * tui/tui-out.c: Likewise.
5477 * tui/tui-winsource.c: Likewise.
5478 * ui-out.c: Likewise.
5479 * user-regs.c: Likewise.
5480 * utils.c: Likewise.
5481 * v850-tdep.c: Likewise.
5482 * valops.c: Likewise.
5483 * value.c: Likewise.
5484 * varobj.c: Likewise.
5485 * vax-nat.c: Likewise.
5486 * xml-syscall.c: Likewise.
5487 * xml-tdesc.c: Likewise.
5488 * xstormy16-tdep.c: Likewise.
5489 * xtensa-linux-nat.c: Likewise.
5490 * xtensa-tdep.c: Likewise.
5491
5492 2014-08-07 Gary Benson <gbenson@redhat.com>
5493
5494 * common/common-defs.h: Include common-utils.h.
5495 * defs.h: Do not include common-utils.h.
5496 * common/gdb_assert.h: Likewise.
5497 * darwin-nat.h: Likewise.
5498 * nat/linux-btrace.c: Likewise.
5499 * target/waitstatus.h: Likewise.
5500
5501 2014-08-07 Gary Benson <gbenson@redhat.com>
5502
5503 * common/common-defs.h: Include ptid.h.
5504 * defs.h: Do not include ptid.h.
5505 * inferior.h: Likewise.
5506 * infrun.h: Likewise.
5507 * nat/linux-btrace.h: Likewise.
5508 * nat/linux-osdata.h: Likewise.
5509 * target/waitstatus.h: Likewise.
5510
5511 2014-08-07 Gary Benson <gbenson@redhat.com>
5512
5513 * common/common-defs.h: Include gdb_locale.h.
5514 * defs.h: Do not include gdb_locale.h.
5515
5516 2014-08-07 Gary Benson <gbenson@redhat.com>
5517
5518 * common/common-defs.h: Include gdb/signals.h.
5519 * defs.h: Do not include gdb/signals.h.
5520
5521 2014-08-07 Gary Benson <gbenson@redhat.com>
5522
5523 * common/common-defs.h: Include pathmax.h.
5524 * defs.h: Do not include pathmax.h.
5525
5526 2014-08-07 Gary Benson <gbenson@redhat.com>
5527
5528 * common/common-defs.h: Include libiberty.h.
5529 * defs.h: Do not include libiberty.h.
5530 * common/queue.h: Likewise.
5531 * cp-name-parser.y: Likewise.
5532 * mi/mi-cmd-catch.c: Likewise.
5533 * python/python.c: Likewise.
5534
5535 2014-08-07 Gary Benson <gbenson@redhat.com>
5536
5537 * common/common-defs.h: Include ansidecl.h.
5538 * defs.h: Do not include ansidecl.h.
5539 * common/buffer.h: Likewise.
5540 * common/common-utils.h: Likewise.
5541
5542 2014-08-07 Gary Benson <gbenson@redhat.com>
5543
5544 * common/common-defs.h: Include stddef.h.
5545 * defs.h: Do not include stddef.h.
5546 * common/common-utils.h: Likewise.
5547 * amd64fbsd-nat.c: Likewise.
5548 * bcache.c: Likewise.
5549 * charset.c: Likewise.
5550 * common/buffer.h: Likewise.
5551 * common/vec.h: Likewise.
5552 * i386bsd-nat.c: Likewise.
5553 * nat/linux-btrace.h: Likewise.
5554 * ppcfbsd-nat.c: Likewise.
5555 * ppcnbsd-tdep.h: Likewise.
5556 * ppcobsd-nat.c: Likewise.
5557 * ppcobsd-tdep.h: Likewise.
5558 * python/py-gdb-readline.c: Likewise.
5559
5560 2014-08-07 Gary Benson <gbenson@redhat.com>
5561
5562 * common/common-defs.h: Include stdarg.h.
5563 * defs.h: Do not include stdarg.h.
5564 * ada-lang.c: Likewise.
5565 * common/common-utils.h: Likewise.
5566 * guile/scm-string.c: Likewise.
5567 * guile/scm-utils.c: Likewise.
5568 * m32c-tdep.c: Likewise.
5569
5570 2014-08-07 Gary Benson <gbenson@redhat.com>
5571
5572 * common/common-defs.h: Include stdlib.h.
5573 * defs.h: Do not include stdlib.h.
5574 * addrmap.c: Likewise.
5575 * bcache.c: Likewise.
5576 * common/buffer.c: Likewise.
5577 * common/common-utils.c: Likewise.
5578 * cp-name-parser.y: Likewise.
5579 * go32-nat.c: Likewise.
5580 * mn10300-linux-tdep.c: Likewise.
5581 * nat/linux-osdata.c: Likewise.
5582 * tui/tui.c: Likewise.
5583 * windows-nat.c: Likewise.
5584
5585 2014-08-07 Gary Benson <gbenson@redhat.com>
5586
5587 * common/common-defs.h: Include stdio.h.
5588 * defs.h: Do not include stdio.h.
5589 * ada-lang.c: Likewise.
5590 * common/buffer.c: Likewise.
5591 * common/common-utils.c: Likewise.
5592 * cp-name-parser.y: Likewise.
5593 * gnu-nat.c: Likewise.
5594 * go32-nat.c: Likewise.
5595 * i386gnu-nat.c: Likewise.
5596 * proc-api.c: Likewise.
5597 * proc-events.c: Likewise.
5598 * proc-flags.c: Likewise.
5599 * proc-why.c: Likewise.
5600 * python/python-internal.h: Likewise.
5601 * target-memory.c: Likewise.
5602 * tui/tui-io.c: Likewise.
5603 * tui/tui.c: Likewise.
5604
5605 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5606
5607 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5608 (scan_dyntag_auxv): Same.
5609
5610 2014-08-06 Yao Qi <yao@codesourcery.com>
5611
5612 * amd64-linux-nat.c: Remove duplicated include
5613 "x86-linux-nat.h".
5614 * i386-linux-nat.c: Likewise.
5615
5616 2014-08-06 Yao Qi <yao@codesourcery.com>
5617
5618 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5619 operand" with "Special opcode" in comments.
5620
5621 2014-08-05 Gary Benson <gbenson@redhat.com>
5622
5623 * interps.c (initialize_interps): Remove prototype.
5624 (interpreter_initialized): Remove static global.
5625 (interp_add): Do not call initialize_interps.
5626 (initialize_interps): Remove function.
5627
5628 2014-08-05 Gary Benson <gbenson@redhat.com>
5629
5630 * utils.c (vwarning): Remove spurious va_end.
5631
5632 2014-08-05 Alan Modra <amodra@gmail.com>
5633
5634 * charset.c (convert_between_encodings): Cast result of obstack_base.
5635 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5636 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5637 (read_unwind_info): Use size_t for some locals.
5638 * jit.c (finalize_symtab): Likewise.
5639 * utils.c (hashtab_obstack_allocate): Likewise.
5640 * symmisc.c (print_objfile_statistics): Update format strings.
5641
5642 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5643
5644 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5645 (Changes in GDB 7.8): ... here.
5646
5647 2014-08-04 Tom Tromey <tromey@redhat.com>
5648
5649 * target.c (set_targetdebug): New function.
5650 (initialize_targets): Pass set_targetdebug when creating "set
5651 debug target".
5652
5653 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5654
5655 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5656 if detecting a variable-sized field that is not the last field.
5657 Fix struct type length computation.
5658
5659 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5660
5661 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5662 Add debug trace.
5663
5664 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5665
5666 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5667 Remove "+ 8" offset in computation of CHAIN_VMA.
5668
5669 2014-07-31 Doug Evans <dje@google.com>
5670
5671 * inflow.c (child_terminal_inferior): Add comment.
5672 (child_terminal_ours_for_output): Add comment.
5673 (child_terminal_ours): Add comment.
5674 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5675 (linux_nat_terminal_ours): Add comment.
5676
5677 2014-07-31 Gary Benson <gbenson@redhat.com>
5678
5679 * common/btrace-common.h: Do not include defs.h or server.h.
5680 * nat/mips-linux-watch.h: Likewise.
5681 * gdb-dlfcn.h: Do not include defs.h.
5682 * tracefile.h: Likewise.
5683
5684 2014-07-30 Roland McGrath <mcgrathr@google.com>
5685
5686 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5687
5688 2014-07-30 Tom Tromey <tromey@redhat.com>
5689
5690 * bsd-kvm.c (bsd_kvm_open): Constify.
5691 * corelow.c (core_open): Constify.
5692 * ctf.c (ctf_open): Constify.
5693 * dbug-rom.c (dbug_open): Constify.
5694 * exec.c (exec_open): Constify.
5695 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5696 * microblaze-rom.c (picobug_open): Constify.
5697 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5698 Constify.
5699 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5700 * record-btrace.c (record_btrace_open): Constify.
5701 * record-full.c (record_full_core_open_1, record_full_open_1)
5702 (record_full_open): Constify.
5703 * remote-m32r-sdi.c (m32r_open): Constify.
5704 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5705 (rockhopper_open, lsi_open): Constify.
5706 * remote-sim.c (gdbsim_open): Constify.
5707 * remote.c (remote_open, extended_remote_open, remote_open_1):
5708 Constify.
5709 * target.h (struct target_ops) <to_open>: Make "arg" const.
5710 * tracefile-tfile.c (tfile_open): Constify.
5711
5712 2014-07-30 Tom Tromey <tromey@redhat.com>
5713
5714 * breakpoint.c (map_breakpoint_numbers): Update.
5715 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5716 (get_number_const): New function.
5717 (get_number): Rewrite using get_number_const.
5718 (init_number_or_range): Make "string" const.
5719 (number_is_in_list): Make "list" const.
5720 * cli/cli-utils.h (get_number_const): Declare.
5721 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5722 (init_number_or_range, number_is_in_list): Update.
5723 * printcmd.c (map_display_numbers): Update.
5724 * value.c (value_from_history_ref): Constify.
5725 * value.h (value_from_history_ref): Update.
5726
5727 2014-07-30 Tom Tromey <tromey@redhat.com>
5728
5729 * corefile.c (hook_type, call_extra_exec_file_hooks)
5730 (specify_exec_file_hook): Constify.
5731 * exec.c (exec_file_attach): Make "filename" const.
5732 * gdbcore.h (deprecated_exec_file_display_hook)
5733 (specify_exec_file_hook, exec_file_attach): Constify.
5734 * main.c (captured_main): Use catch_command_errors_const.
5735
5736 2014-07-30 Tom Tromey <tromey@redhat.com>
5737
5738 * target.c (open_target): New function.
5739 (add_target_with_completer, add_deprecated_target_alias): Use
5740 set_cmd_sfunc, set_cmd_context.
5741 (debug_to_open): Remove.
5742 (setup_target_debug): Update.
5743
5744 2014-07-30 Yao Qi <yao@codesourcery.com>
5745
5746 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5747 comments.
5748 * parse.c (exp_iterate): Update comments.
5749
5750 2014-07-30 Gary Benson <gbenson@redhat.com>
5751
5752 * common/common-defs.h: New file.
5753 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5754 * defs.h: Include common-defs.h.
5755 Do not include config.h or build-gnulib/config.h.
5756
5757 2014-07-30 Gary Benson <gbenson@redhat.com>
5758
5759 * common/common-utils.h: Do not include config.h.
5760 * nat/linux-btrace.h: Likewise.
5761
5762 2014-07-30 Gary Benson <gbenson@redhat.com>
5763
5764 * btrace.c: Include defs.h.
5765 * common/ptid.c: Include defs.h or server.h as appropriate.
5766 * nat/mips-linux-watch.c: Likewise.
5767
5768 2014-07-29 Tom Tromey <tromey@redhat.com>
5769
5770 * target.c (target_is_pushed): Simplify.
5771
5772 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5773
5774 GDB 7.8 released.
5775
5776 2014-07-29 Yao Qi <yao@codesourcery.com>
5777
5778 PR gdb/17206
5779 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5780
5781 2014-07-28 Doug Evans <xdje42@gmail.com>
5782
5783 PR guile/17203
5784 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5785 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5786 parameters.
5787
5788 2014-07-28 Will Newton <will.newton@linaro.org>
5789
5790 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5791 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5792 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5793 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5794 (THUMB2_EABI_SYSCALL): Likewise.
5795 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5796 struct tramp_frame.
5797 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5798 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5799
5800 2014-07-27 Doug Evans <xdje42@gmail.com>
5801
5802 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5803
5804 2014-07-27 Doug Evans <xdje42@gmail.com>
5805
5806 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5807
5808 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5809 Doug Evans <xdje42@gmail.com>
5810
5811 PR guile/17146
5812 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5813 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5814 * configure.ac: Try to use guild to compile an scm file, if it fails
5815 then disable guile support.
5816 * configure: Regenerate.
5817 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5818 GUILE_FILE_LIST.
5819 (GUILE_COMPILED_FILES): New variable.
5820 (GUILE_FILES) Update.
5821 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5822 (stamp-guile): Compile scm files.
5823 * guile/guile.c (boot_guile_support): New function.
5824 (standard_throw_args_p): New function.
5825 (print_standard_throw_error, print_throw_error): New functions.
5826 (handle_boot_error): New function.
5827 (initialize_scheme_side): Rewrite to call boot_guile_support.
5828 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5829 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5830
5831 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5832 Doug Evans <xdje42@gmail.com>
5833
5834 PR guile/17146
5835 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5836 * guile/lib/gdb/support.scm: New file.
5837 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5838 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5839 All uses updated.
5840 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5841 All uses updated.
5842 (%assert-type): Ditto, and renamed to assert-type.
5843 (%exception-print-style): Delete.
5844
5845 2014-07-26 Doug Evans <xdje42@gmail.com>
5846
5847 PR build/17105
5848 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5849 * configure: Regenerate.
5850 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5851 PYTHON_FILES.
5852 (PYTHON_FILES): New variable.
5853 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5854 (GUILE_FILES): New variable.
5855 (stamp-python, install-python, uninstall-python): Handle empty
5856 file list.
5857 (stamp-guile, install-guile, uninstall-guile): Ditto.
5858
5859 2014-07-26 Doug Evans <xdje42@gmail.com>
5860
5861 PR guile/17177
5862 * guile/lib/gdb.scm (pretty-printers): Export.
5863 (set-pretty-printers!): Export.
5864 * guile/lib/gdb/printing.scm (gdb module): Update.
5865 (prepend-pretty-printer!, append-pretty-printer!): Update.
5866 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5867 (pretty_printer_list_var): Delete.
5868 (pretty_printer_list): New static global.
5869 (gdbscm_pretty_printers): New function.
5870 (gdbscm_set_pretty_printers_x): New function.
5871 (ppscm_find_pretty_printer_from_gdb): Update.
5872 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5873 (gdbscm_initialize_pretty_printers): Update.
5874
5875 2014-07-26 Doug Evans <xdje42@gmail.com>
5876
5877 PR 17185
5878 * configure.ac: Add check for header gc/gc.h.
5879 Add check for function setenv.
5880 * configure: Regenerate.
5881 * config.in: Regenerate.
5882 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5883
5884 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5885
5886 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5887 variation in gdbarch matching.
5888
5889 2014-07-25 Tom Tromey <tromey@redhat.com>
5890
5891 * exec.c (using_exec_ops): Remove.
5892 (exec_close_1): Update. Remove extraneous block, reindent.
5893 (add_target_sections): Use target_is_pushed.
5894
5895 2014-07-25 Pedro Alves <palves@redhat.com>
5896
5897 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5898 * monitor.c (monitor_create_inferior): Likewise.
5899 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5900 * remote-sim.c (gdbsim_create_inferior): Likewise.
5901 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5902 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5903 * windows-nat.c (do_initial_windows_stuff): Likewise.
5904
5905 2014-07-25 Pedro Alves <palves@redhat.com>
5906
5907 * NEWS: Mention signal passing and "signal" command changes.
5908 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5909 comment.
5910 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5911 call.
5912 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5913 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5914 (jump_command): Adjust clear_proceed_status call.
5915 (signal_command): Warn if other thread that are resumed have
5916 signals that will be delivered. Adjust clear_proceed_status call.
5917 (until_next_command, finish_command)
5918 (proceed_after_attach_callback, attach_command_post_wait)
5919 (attach_command): Adjust clear_proceed_status call.
5920 * infrun.c (proceed_after_vfork_done): Likewise.
5921 (proceed_after_attach_callback): Adjust comment.
5922 (clear_proceed_status_thread): Clear stop_signal if not in pass
5923 state.
5924 (clear_proceed_status_callback): Delete.
5925 (clear_proceed_status): New 'step' parameter. Only clear the
5926 proceed status of threads the command being prepared is about to
5927 resume.
5928 (proceed): If passed in an explicit signal, override stop_signal
5929 with it. Don't pass the last stop signal to the thread we're
5930 resuming.
5931 (init_wait_for_inferior): Adjust clear_proceed_status call.
5932 (switch_back_to_stepped_thread): Clear the signal if it should not
5933 be passed.
5934 * infrun.h (clear_proceed_status): New 'step' parameter.
5935 (user_visible_resume_ptid): Add comment.
5936 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5937 signal is in pass state.
5938 * remote.c (append_pending_thread_resumptions): Likewise.
5939 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5940
5941 2014-07-25 Tom Tromey <tromey@redhat.com>
5942
5943 * target.h (target_stopped_data_address)
5944 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5945 parentheses.
5946
5947 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5948
5949 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5950 comments.
5951 (avr_pointer_to_address): Likewise.
5952
5953 2014-07-24 Tom Tromey <tromey@redhat.com>
5954
5955 * monitor.c (compile_pattern): Update.
5956 * target.h (struct target_ops) <to_shortname, to_longname,
5957 to_doc>: Now const.
5958
5959 2014-07-24 Tom Tromey <tromey@redhat.com>
5960
5961 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5962 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5963 (add_info_alias, add_com): Make "doc" const.
5964 (print_doc_line): Make "str" const.
5965 (delete_cmd): Update.
5966 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5967 (print_doc_line): Update.
5968 * cli/cli-script.c (document_command): Update.
5969 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5970 (add_com, add_info, add_info_alias): Update.
5971 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5972 * python/py-cmd.c (cmdpy_destroyer): Update.
5973
5974 2014-07-24 Tom Tromey <tromey@redhat.com>
5975
5976 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5977 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5978 (help_cmd_list): Constify.
5979 (lookup_cmd): Update.
5980 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5981 const.
5982 (help_cmd_list, apropos_cmd): Update.
5983 * cli/cli-script.c (show_user): Update.
5984 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5985 * cli/cli-setshow.h (cmd_show_list): Update.
5986 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5987 (cmd_show_list): Update.
5988 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5989 * python/py-cmd.c (cmdpy_destroyer): Update.
5990
5991 2014-07-24 Tom Tromey <tromey@redhat.com>
5992
5993 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5994 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5995 const.
5996 * command.h (deprecate_cmd): Update.
5997 * maint.c (maintenance_do_deprecate): Add casts.
5998
5999 2014-07-24 Tom Tromey <tromey@redhat.com>
6000
6001 * cli/cli-decode.c (help_cmd): Make parameter "const".
6002 * cli/cli-decode.h (help_cmd): Update.
6003
6004 2014-07-24 Tom Tromey <tromey@redhat.com>
6005
6006 * stack.c (up_silently_base, down_silently_base): Make argument
6007 const.
6008
6009 2014-07-24 Tom Tromey <tromey@redhat.com>
6010
6011 * solib.c (solib_add): Make "pattern" const.
6012 * solib.h (solib_add): Update.
6013
6014 2014-07-24 Tom Tromey <tromey@redhat.com>
6015
6016 * remote.c (remote_serial_open, print_packet, putpkt)
6017 (putpkt_binary): Constify.
6018 * remote.h (putpkt): Update.
6019
6020 2014-07-24 Tom Tromey <tromey@redhat.com>
6021
6022 * monitor.c (monitor_open): Make "args" const.
6023 * monitor.h (monitor_open): Update.
6024
6025 2014-07-24 Tom Tromey <tromey@redhat.com>
6026
6027 * maint.c (match_bfd_flags): Make "string" const.
6028 (print_bfd_section_info): Remove casts.
6029 (print_objfile_section_info): Make "string" const.
6030
6031 2014-07-24 Tom Tromey <tromey@redhat.com>
6032
6033 * inf-child.c (inf_child_open_target): Make "arg" const.
6034 * inf-child.h (inf_child_open_target): Update.
6035
6036 2014-07-24 Tom Tromey <tromey@redhat.com>
6037
6038 * environ.c (unset_in_environ): Make "var" const.
6039 * environ.h (unset_in_environ): Update.
6040
6041 2014-07-24 Tom Tromey <tromey@redhat.com>
6042
6043 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6044 Make "cmd" const.
6045 (scan_filename_with_cleanup): Likewise.
6046 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6047 Make arguments const.
6048 (restore_command): Update.
6049
6050 2014-07-24 Pedro Alves <palves@redhat.com>
6051
6052 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6053
6054 2014-07-24 Tom Tromey <tromey@redhat.com>
6055 Gary Benson <gbenson@redhat.com>
6056
6057 * nat/linux-ptrace.c (additional_flags): New global.
6058 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6059 additional_flags; don't check GDBSERVER.
6060 (linux_ptrace_set_additional_flags): New function.
6061 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6062 Declare.
6063 * linux-nat.c (_initialize_linux_nat): Call
6064 linux_ptrace_set_additional_flags.
6065
6066 2014-07-24 Tom Tromey <tromey@redhat.com>
6067
6068 * make-target-delegates (munge_type, write_debugmethod): New
6069 functions.
6070 (debug_names): New global.
6071 ($TARGET_DEBUG_PRINTER): New global.
6072 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6073 name.
6074 Write debug methods. Generate init_debug_target.
6075 * target-debug.h: New file.
6076 * target-delegates.c: Rebuild.
6077 * target.c: Include target-debug.h.
6078 (debug_target): Hoist definition.
6079 (target_kill, target_get_section_table, target_memory_map)
6080 (target_flash_erase, target_flash_done, target_detach)
6081 (target_disconnect, target_wait, target_resume)
6082 (target_pass_signals, target_program_signals, target_follow_fork)
6083 (target_mourn_inferior, target_search_memory)
6084 (target_thread_address_space, target_close)
6085 (target_find_new_threads, target_core_of_thread)
6086 (target_verify_memory, target_insert_mask_watchpoint)
6087 (target_remove_mask_watchpoint): Remove targetdebug code.
6088 (debug_to_post_attach, debug_to_prepare_to_store)
6089 (debug_to_files_info, debug_to_insert_breakpoint)
6090 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6091 (debug_to_region_ok_for_hw_watchpoint)
6092 (debug_to_can_accel_watchpoint_condition)
6093 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6094 (debug_to_watchpoint_addr_within_range)
6095 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6096 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6097 (debug_to_terminal_init, debug_to_terminal_inferior)
6098 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6099 (debug_to_terminal_save_ours, debug_to_terminal_info)
6100 (debug_to_load, debug_to_post_startup_inferior)
6101 (debug_to_insert_fork_catchpoint)
6102 (debug_to_remove_fork_catchpoint)
6103 (debug_to_insert_vfork_catchpoint)
6104 (debug_to_remove_vfork_catchpoint)
6105 (debug_to_insert_exec_catchpoint)
6106 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6107 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6108 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6109 (setup_target_debug): Call init_debug_target.
6110 * target.h (TARGET_DEBUG_PRINTER): New macro.
6111 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6112 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6113
6114 2014-07-24 Gary Benson <gbenson@redhat.com>
6115
6116 * exceptions.h (throw_vfatal): Renamed to...
6117 (throw_vquit): New declaration.
6118 (throw_quit): Likewise.
6119 * exceptions.c (throw_vfatal): Renamed to...
6120 (throw_vquit): New function.
6121 (throw_quit): Likewise.
6122 (throw_error): Call throw_verror rather than throw_it.
6123 * utils.h (vfatal): Removed.
6124 (fatal): Likewise.
6125 * utils.c (vfatal): Removed.
6126 (fatal): Likewise.
6127 (internal_verror): Replaced call to fatal with call to throw_quit.
6128 (quit): Replaced calls to fatal with calls to throw_quit.
6129
6130 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6131
6132 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6133 target_read_code.
6134
6135 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6136
6137 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6138 less than zero in conditional expression.
6139
6140 2014-07-23 Tom Tromey <tromey@redhat.com>
6141
6142 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6143 ($INTRO_PART): Don't match whitespace.
6144 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6145 argument matching.
6146 ($METHOD): Add $METHOD_TRAILER.
6147 (trim): Rewrite.
6148 (scan_target_h): New sub.
6149 Change main loop not to collect state.
6150 * target-delegates.c: Rebuild.
6151
6152 2014-07-23 Gary Benson <gbenson@redhat.com>
6153
6154 * cp-support.c (gdb_demangle): Fix build on systems without
6155 sigaltstack.
6156
6157 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6158
6159 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6160 for reference entry value target data value.
6161
6162 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6163
6164 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6165 value_available_contents_eq.
6166
6167 2014-07-22 Pedro Alves <palves@redhat.com>
6168
6169 * value.c (allocate_optimized_out_value): Don't mark value as
6170 non-lazy.
6171
6172 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6173
6174 * MAINTAINERS (Write After Approval): Update my email address.
6175
6176 2014-07-20 Doug Evans <dje@google.com>
6177
6178 PR server/17147
6179 * remote.c (putpkt_binary): Add text to error message.
6180
6181 2014-07-20 Yao Qi <yao@codesourcery.com>
6182
6183 * eval.c: Remove "Chill" from comments.
6184 * gdbtypes.h: Likewise.
6185 * symtab.h: Likewise.
6186
6187 2014-07-20 Yao Qi <yao@codesourcery.com>
6188
6189 * std-operator.def: Update comments to TERNOP_SLICE.
6190
6191 2014-07-20 Yao Qi <yao@codesourcery.com>
6192
6193 * std-operator.def: Remove BINOP_RANGE.
6194 * breakpoint.c (watchpoint_exp_is_const): Update.
6195 * expprint.c (dump_subexp_body_standard): Likewise.
6196 * eval.c (init_array_element): Remove dead code.
6197 (evaluate_subexp_standard): Likewise.
6198
6199 2014-07-20 Yao Qi <yao@codesourcery.com>
6200
6201 * std-operator.def: Remove BINOP_IN.
6202 * breakpoint.c (watchpoint_exp_is_const): Update.
6203 * eval.c (evaluate_subexp_standard): Likewise.
6204 * expprint.c (dump_subexp_body_standard): Likewise.
6205
6206 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6207
6208 * microblaze-tdep.c (microblaze_register_names): Add
6209 the rshr and rslr register names.
6210 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6211 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6212 Use of tdesc_numbered_register. Use of
6213 microblaze_register_g_packet_guesses. Use of
6214 tdesc_use_registers. Use of set_gdbarch_register_type.
6215 (microblaze_register_g_packet_guesses): New.
6216 * microblaze-tdep.h (microblaze_reg_num): Add
6217 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6218 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6219 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6220 * features/microblaze-core.xml: New file.
6221 * features/microblaze-stack-protect.xml: New file.
6222 * features/microblaze-with-stack-protect.c: New file.
6223 * features/microblaze-with-stack-protect.xml: New file.
6224 * features/microblaze.xml: New file.
6225 * features/microblaze.c: New file.
6226 * features/Makefile (microblaze-with-stack-protect): Add
6227 microblaze-with-stack-protect microblaze and microblaze-expedite.
6228 * regformats/microblaze-with-stack-protect.dat: New file.
6229 * regformats/microblaze.dat: New file.
6230 * doc/gdb.texinfo (MicroBlaze Features): Added.
6231
6232 2014-07-18 Tom Tromey <tromey@redhat.com>
6233
6234 * exec.c (exec_ops): Now static.
6235 * exec.h (exec_ops): Don't declare.
6236
6237 2014-07-18 Tom Tromey <tromey@redhat.com>
6238
6239 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6240 to find_target_beneath.
6241 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6242 find_target_beneath.
6243 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6244
6245 2014-07-18 Tom Tromey <tromey@redhat.com>
6246
6247 PR gdb/17130:
6248 * utils.c (quit): Use target_supports_terminal_ours.
6249 * target.h (target_supports_terminal_ours): Declare.
6250 * target.c (target_supports_delete_record): Don't check
6251 to_delete_record against NULL.
6252 (target_supports_terminal_ours): New function.
6253
6254 2014-07-18 Tom Tromey <tromey@redhat.com>
6255
6256 PR gdb/17130:
6257 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6258 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6259 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6260 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6261 * windows-nat.c (windows_xfer_partial): Always delegate.
6262 * record-btrace.c (record_btrace_xfer_partial): Simplify
6263 delegation.
6264 (record_btrace_fetch_registers, record_btrace_store_registers)
6265 (record_btrace_prepare_to_store, record_btrace_resume)
6266 (record_btrace_wait, record_btrace_find_new_threads)
6267 (record_btrace_thread_alive): Likewise.
6268 * procfs.c (procfs_xfer_partial): Always delegate.
6269 * corelow.c (core_xfer_partial): Always delegate.
6270 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6271
6272 2014-07-18 Tom Tromey <tromey@redhat.com>
6273
6274 * exec.c (exec_make_note_section): Move earlier.
6275
6276 2014-07-17 Doug Evans <dje@google.com>
6277
6278 PR gdb/17170
6279 * maint.c (count_symtabs_and_blocks): Handle NULL
6280 current_program_space.
6281 (report_command_stats): Check global enabled flag in addition to
6282 recorded enabled flag.
6283 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6284
6285 2014-07-16 Pedro Alves <palves@redhat.com>
6286
6287 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6288
6289 2014-07-16 Tom Tromey <tromey@redhat.com>
6290
6291 * target.h (struct target_ops) <to_delete_record>: Reformat
6292 comment.
6293
6294 2014-07-16 Tom Tromey <tromey@redhat.com>
6295
6296 * target-delegates.c: Rebuild.
6297
6298 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6299
6300 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6301 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6302 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6303 (avr_pointer_to_address): Likewise.
6304 (avr_address_class_type_flags): New function.
6305 (avr_address_class_type_flags_to_name): Likewise.
6306 (avr_address_class_name_to_type_flags): Likewise.
6307 (avr_gdbarch_init): Set address_class_type_flags,
6308 address_class_type_flags_to_name and
6309 address_class_name_to_type_flags.
6310
6311 2014-07-15 Pedro Alves <palves@redhat.com>
6312
6313 * linux-nat.c (kill_callback): Save errno and work with saved
6314 copy.
6315
6316 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6317
6318 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6319
6320 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6321
6322 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6323 breakpoint support correctly.
6324
6325 2014-07-14 Pedro Alves <palves@redhat.com>
6326
6327 * utils.c (prompt_for_continue): Call target_terminal_ours.
6328
6329 2014-07-14 Pedro Alves <palves@redhat.com>
6330
6331 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6332 catch_errors. Don't re-enable stdin or notify observers where,
6333 and rethrow error.
6334 (fetch_inferior_event_wrapper): Delete.
6335
6336 2014-07-14 Pedro Alves <palves@redhat.com>
6337
6338 PR gdb/17072
6339 * top.c: Include "inf-loop.h".
6340 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6341 field.
6342 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6343 was async before.
6344 (gdb_readline_wrapper): Store whether the target is async, and
6345 make it sync.
6346
6347 2014-07-14 Pedro Alves <palves@redhat.com>
6348
6349 PR gdb/17072
6350 * top.c (gdb_readline_wrapper_line): Tweak comment.
6351 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6352 the input handler callback.
6353
6354 2014-07-14 Pedro Alves <palves@redhat.com>
6355
6356 PR gdb/17072
6357 * main.c: Include event-top.h.
6358 (handle_command_errors): New function.
6359 (catch_command_errors, catch_command_errors_const): Use it.
6360
6361 2014-07-14 Pedro Alves <palves@redhat.com>
6362
6363 * exceptions.c (catch_command_errors, catch_command_errors_const):
6364 Moved to main.c.
6365 * exceptions.h (catch_command_errors_ftype)
6366 (catch_command_errors_const_ftype): Moved to main.c.
6367 (catch_command_errors, catch_command_errors_const): Delete
6368 declarations.
6369 * main.c (catch_command_errors_ftype)
6370 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6371 (catch_command_errors, catch_command_errors_const)): Moved here
6372 from exceptions.c and make static.
6373
6374 2014-07-14 Pedro Alves <palves@redhat.com>
6375
6376 * exceptions.c (print_any_exception): Delete.
6377 (catch_exceptions_with_msg): Use exception_print instead of
6378 print_any_exception.
6379 (catch_errors): Use exception_fprintf instead of
6380 print_any_exception.
6381 (catch_command_errors, catch_command_errors_const): Use
6382 exception_print instead of print_any_exception.
6383
6384 2014-07-14 Pedro Alves <palves@redhat.com>
6385
6386 * infcall.c (run_inferior_call): Set 'sync_execution' while
6387 running the inferior call.
6388
6389 2014-07-14 Pedro Alves <palves@redhat.com>
6390
6391 * value.c (value_contents_equal): Delete function.
6392 * value.h (value_contents_equal): Delete declaration.
6393
6394 2014-07-14 Tom Tromey <tromey@redhat.com>
6395
6396 PR exp/17106:
6397 * gdbtypes.c (is_dynamic_type_internal): New function, from
6398 is_dynamic_type.
6399 (is_dynamic_type): Rewrite.
6400 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6401 (resolve_dynamic_struct): Likewise.
6402 (resolve_dynamic_type_internal): New function, from
6403 resolve_dynamic_type.
6404 (resolve_dynamic_type): Rewrite.
6405
6406 2014-07-14 Tom Tromey <tromey@redhat.com>
6407
6408 * target.c (target_require_runnable): Also check record_stratum.
6409 Update comment.
6410
6411 2014-07-11 Yao Qi <yao@codesourcery.com>
6412
6413 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6414 thumb_instruction_restores_sp return true.
6415
6416 2014-07-11 Yao Qi <yao@codesourcery.com>
6417
6418 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6419 (thumb_in_function_epilogue_p): Call
6420 thumb_instruction_restores_sp.
6421
6422 2014-07-11 Yao Qi <yao@codesourcery.com>
6423
6424 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6425 'add sp, #imm'.
6426 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6427
6428 2014-07-11 Gary Benson <gbenson@redhat.com>
6429
6430 * amd64-linux-nat.c (gdbcore.h): Remove include.
6431 (regset.h): Likewise.
6432 (nat/linux-btrace.h): Likewise.
6433 (btrace.h): Likewise.
6434 (gdb_assert.h): Likewise.
6435 (string.h): Likewise.
6436 (sys/uio.h): Likewise.
6437 (sys/debugreg.h): Likewise.
6438 (sys/syscall.h): Likewise.
6439 (sys/procfs.h): Likewise.
6440 (sys/user.h): Likewise.
6441 (asm/ptrace.h): Likewise.
6442 (i386-nat.h): Likewise.
6443 * i386-linux-nat.c (i386-nat.h): Likewise.
6444 (regset.h): Likewise.
6445 (target.h): Likewise.
6446 (linux-nat.h): Likewise.
6447 (nat/linux-btrace.h): Likewise.
6448 (btrace.h): Likewise.
6449 (gdb_assert.h): Likewise.
6450 (string.h): Likewise.
6451 (sys/uio.h): Likewise.
6452 (sys/user.h): Likewise.
6453 (sys/procfs.h): Likewise.
6454 (sys/reg.h): Likewise.
6455 (sys/debugreg.h): Likewise.
6456 (ORIG_EAX): Remove definition.
6457
6458 2014-07-11 Gary Benson <gbenson@redhat.com>
6459
6460 * i386-linux-nat.h: New file.
6461 * x86-linux-nat.h: Likewise.
6462 * x86-linux-nat.c: Likewise.
6463 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6464 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6465 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6466 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6467 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6468 (PTRACE_SETREGSET): Likewise.
6469 (arch_lwp_info): Now in x86-linux-nat.c.
6470 (have_ptrace_getregset): Now in x86-linux-nat.h.
6471 (x86_linux_dr_get): Now in x86-linux-nat.c.
6472 (x86_linux_dr_set): Likewise.
6473 (x86_linux_dr_get_addr): Likewise.
6474 (x86_linux_dr_get_control): Likewise.
6475 (x86_linux_dr_get_status): Likewise.
6476 (update_debug_registers_callback): Likewise.
6477 (x86_linux_dr_set_control): Likewise.
6478 (x86_linux_dr_set_addr): Likewise.
6479 (x86_linux_prepare_to_resume): Likewise.
6480 (x86_linux_new_thread): Likewise.
6481 (x86_linux_new_fork): Likewise.
6482 (x86_linux_get_thread_area): Likewise.
6483 (super_post_startup_inferior): Likewise.
6484 (x86_linux_child_post_startup_inferior): Likewise.
6485 (AMD64_LINUX_USER64_CS): Likewise.
6486 (AMD64_LINUX_X32_DS): Likewise.
6487 (x86_linux_read_description): Likewise.
6488 (x86_linux_enable_btrace): Likewise.
6489 (x86_linux_disable_btrace): Likewise.
6490 (x86_linux_teardown_btrace): Likewise.
6491 (x86_linux_read_btrace): Likewise.
6492 (x86_linux_create_target): Likewise.
6493 (x86_linux_add_target): Likewise.
6494 * i386-linux-nat.c (x86-linux-nat.h): New include.
6495 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6496 (PTRACE_SETREGSET): Likewise.
6497 (arch_lwp_info): Now in x86-linux-nat.c.
6498 (have_ptrace_getregset): Now in x86-linux-nat.h.
6499 (x86_linux_dr_get): Now in x86-linux-nat.c.
6500 (x86_linux_dr_set): Likewise.
6501 (x86_linux_dr_get_addr): Likewise.
6502 (x86_linux_dr_get_control): Likewise.
6503 (x86_linux_dr_get_status): Likewise.
6504 (update_debug_registers_callback): Likewise.
6505 (x86_linux_dr_set_control): Likewise.
6506 (x86_linux_dr_set_addr): Likewise.
6507 (x86_linux_prepare_to_resume): Likewise.
6508 (x86_linux_new_thread): Likewise.
6509 (x86_linux_new_fork): Likewise.
6510 (x86_linux_get_thread_area): Likewise.
6511 (super_post_startup_inferior): Likewise.
6512 (x86_linux_child_post_startup_inferior): Likewise.
6513 (AMD64_LINUX_USER64_CS): Likewise.
6514 (AMD64_LINUX_X32_DS): Likewise.
6515 (x86_linux_read_description): Likewise.
6516 (x86_linux_enable_btrace): Likewise.
6517 (x86_linux_disable_btrace): Likewise.
6518 (x86_linux_teardown_btrace): Likewise.
6519 (x86_linux_read_btrace): Likewise.
6520 (x86_linux_create_target): Likewise.
6521 (x86_linux_add_target): Likewise.
6522
6523 2014-07-11 Gary Benson <gbenson@redhat.com>
6524
6525 * amd64-linux-nat.c: Comment and whitespace changes.
6526 * i386-linux-nat.c: Comment and whitespace changes.
6527
6528 2014-07-11 Gary Benson <gbenson@redhat.com>
6529
6530 * amd64-linux-nat.c (x86_linux_create_target): New function.
6531 (x86_linux_add_target): Likewise.
6532 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6533 * i386-linux-nat.c (x86_linux_create_target): New function.
6534 (x86_linux_add_target): Likewise.
6535 (_initialize_i386_linux_nat): Delegate to the above new functions.
6536
6537 2014-07-11 Gary Benson <gbenson@redhat.com>
6538
6539 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6540 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6541 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6542 (ps_get_thread_area): Delegate to the above.
6543
6544 2014-07-11 Gary Benson <gbenson@redhat.com>
6545
6546 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6547 x86_linux_read_description. All uses updated. amd64-specific
6548 code conditionalized. Conditionalized i386-specific code added.
6549 Redundant cast removed.
6550 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6551 x86_linux_read_description. All uses updated. i386-specific
6552 code conditionalized. Conditionalized amd64-specific code added.
6553 One sizeof replaced with the actual type it is describing.
6554
6555 2014-07-11 Gary Benson <gbenson@redhat.com>
6556
6557 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6558 x86_linux_dr_get. All uses updated.
6559 (amd64_linux_dr_set): Renamed to
6560 x86_linux_dr_set. All uses updated.
6561 (amd64_linux_dr_get_addr): Renamed to
6562 x86_linux_dr_get_addr. All uses updated.
6563 (amd64_linux_dr_get_control): Renamed to
6564 x86_linux_dr_get_control. All uses updated.
6565 (amd64_linux_dr_get_status): Renamed to
6566 x86_linux_dr_get_status. All uses updated.
6567 (amd64_linux_dr_set_control): Renamed to
6568 x86_linux_dr_set_control. All uses updated.
6569 (amd64_linux_dr_set_addr): Renamed to
6570 x86_linux_dr_set_addr. All uses updated.
6571 (amd64_linux_prepare_to_resume): Renamed to
6572 x86_linux_prepare_to_resume. All uses updated.
6573 (amd64_linux_new_thread): Renamed to
6574 x86_linux_new_thread. All uses updated.
6575 (amd64_linux_new_fork): Renamed to
6576 x86_linux_new_fork. All uses updated.
6577 (amd64_linux_child_post_startup_inferior): Renamed to
6578 x86_linux_child_post_startup_inferior. All uses updated.
6579 (amd64_linux_enable_btrace): Renamed to
6580 x86_linux_enable_btrace. All uses updated.
6581 (amd64_linux_disable_btrace): Renamed to
6582 x86_linux_disable_btrace. All uses updated.
6583 (amd64_linux_teardown_btrace): Renamed to
6584 x86_linux_teardown_btrace. All uses updated.
6585 (amd64_linux_read_btrace): Renamed to
6586 x86_linux_read_btrace. All uses updated.
6587 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6588 x86_linux_dr_get. All uses updated.
6589 (i386_linux_dr_set): Renamed to
6590 x86_linux_dr_set. All uses updated.
6591 (i386_linux_dr_get_addr): Renamed to
6592 x86_linux_dr_get_addr. All uses updated.
6593 (i386_linux_dr_get_control): Renamed to
6594 x86_linux_dr_get_control. All uses updated.
6595 (i386_linux_dr_get_status): Renamed to
6596 x86_linux_dr_get_status. All uses updated.
6597 (i386_linux_dr_set_control): Renamed to
6598 x86_linux_dr_set_control. All uses updated.
6599 (i386_linux_dr_set_addr): Renamed to
6600 x86_linux_dr_set_addr. All uses updated.
6601 (i386_linux_prepare_to_resume): Renamed to
6602 x86_linux_prepare_to_resume. All uses updated.
6603 (i386_linux_new_thread): Renamed to
6604 x86_linux_new_thread. All uses updated.
6605 (i386_linux_new_fork): Renamed to
6606 x86_linux_new_fork. All uses updated.
6607 (i386_linux_child_post_startup_inferior): Renamed to
6608 x86_linux_child_post_startup_inferior. All uses updated.
6609 (i386_linux_enable_btrace): Renamed to
6610 x86_linux_enable_btrace. All uses updated.
6611 (i386_linux_disable_btrace): Renamed to
6612 x86_linux_disable_btrace. All uses updated.
6613 (i386_linux_teardown_btrace): Renamed to
6614 x86_linux_teardown_btrace. All uses updated.
6615 (i386_linux_read_btrace): Renamed to
6616 x86_linux_read_btrace. All uses updated.
6617
6618 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6619
6620 * remote.c (extended_remote_post_attach): New function.
6621 (init_extended_remote_ops): Install it as to_post_attach method.
6622
6623 2014-07-09 Pedro Alves <palves@redhat.com>
6624
6625 * infcmd.c (attach_command_post_wait): Don't call
6626 target_terminal_inferior here.
6627 (attach_command): Call it here instead.
6628
6629 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6630
6631 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6632 field.
6633 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6634 from varobj.c, with additional checks.
6635 (c_varobj_ops): Fill in is_path_expr_parent field.
6636 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6637 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6638 field.
6639 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6640 ops method.
6641 (varobj_default_is_path_expr_parent): New function.
6642 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6643 (varobj_default_is_path_expr_parent): Declare new function.
6644
6645 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6646
6647 * infcmd.c (finish_backward): Turn internal error into normal error.
6648
6649 2014-07-07 Pedro Alves <palves@redhat.com>
6650
6651 PR gdb/17096
6652 * remote.c (async_handle_remote_sigint)
6653 (async_handle_remote_sigint_twice): Call
6654 gdb_call_async_signal_handler instead of
6655 mark_async_signal_handler.
6656
6657 2014-07-07 Tom Tromey <tromey@redhat.com>
6658
6659 * target-delegates.c: Rebuild.
6660 * target.c (target_info_record): Remove.
6661 * record.c (info_record_command): Unconditionally call
6662 to_info_record.
6663 * target.h (struct target_ops) <to_info_record>: Use
6664 TARGET_DEFAULT_IGNORE.
6665 (target_info_record): Remove.
6666
6667 2014-07-07 Tom Tromey <tromey@redhat.com>
6668
6669 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6670 TARGET_DEFAULT_NORETURN.
6671 * target.c (generic_tls_error): New function.
6672 (target_translate_tls_address): Don't search target stack.
6673 * target-delegates.c: Rebuild.
6674 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6675 stack.
6676 * linux-thread-db.c (thread_db_get_thread_local_address):
6677 Unconditionally call beneath target.
6678
6679 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6680
6681 * cli/cli-logging.c (pop_output_files): Assign targerr to
6682 gdb_stdtargerr.
6683
6684 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6685
6686 * MAINTAINERS (Write After Approval): Update my email address.
6687
6688 2014-07-02 Gary Benson <gbenson@redhat.com>
6689
6690 * proc-service.c (ps_xfer_memory): Update comment.
6691 (ps_pstop): Remove unused function.
6692 (ps_pcontinue): Likewise.
6693 (ps_lstop): Likewise.
6694 (ps_lcontinue): Likewise.
6695 (ps_lgetxregsize): Likewise.
6696 (ps_lgetxregs): Likewise.
6697 (ps_lsetxregs): Likewise.
6698 (ps_plog): Likewise.
6699 (ps_ptread): Likewise.
6700 (ps_ptwrite): Likewise.
6701
6702 2014-07-01 Mark Wielaard <mjw@redhat.com>
6703
6704 * dwarf2read.c (add_array_cv_type): New function.
6705 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6706 (read_tag_volatile_type): Likewise.
6707
6708 2014-07-01 Tom Tromey <tromey@redhat.com>
6709
6710 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6711 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6712 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6713 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6714 * command.h (cmd_cfunc_ftype): Move earlier.
6715 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6716 (add_com, add_info): Use cmd_cfunc_ftype.
6717
6718 2014-06-30 Tom Tromey <tromey@redhat.com>
6719
6720 * symtab.c (operator_chars): Make parameters and return type
6721 const.
6722 (file_matches): Make "files" const.
6723 (struct search_symbols_data) <files>: Now const.
6724 (search_symbols): Make "regexp" and "files" parameters const.
6725 Update.
6726 (symtab_symbol_info): Remove cast.
6727 (rbreak_command): Update.
6728 * symtab.h (search_symbols): Update.
6729
6730 2014-06-27 Yao Qi <yao@codesourcery.com>
6731
6732 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6733 Change parameter type to 'struct thread_info *'. Caller
6734 updated.
6735 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6736 Update declaration.
6737 * dummy-frame.c (struct dummy_frame_id): New.
6738 (dummy_frame_id_eq): New function.
6739 (struct dummy_frame) <id>: Change its type to 'struct
6740 dummy_frame_id'.
6741 (dummy_frame_push): Add parameter ptid and save it in
6742 dummy_frame_id.
6743 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6744 inferior_ptid.
6745 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6746 to inferior_ptid.
6747 (lookup_dummy_frame): Change parameter type to 'struct
6748 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6749 instead of frame_id_eq.
6750 (dummy_frame_pop): Add parameter ptid. Callers updated.
6751 Update comments. Compose dummy_frame_id and pass it to
6752 lookup_dummy_frame.
6753 (dummy_frame_discard): Add parameter ptid.
6754 (dummy_frame_sniffer): Compose dummy_frame_id and call
6755 dummy_frame_id_eq instead of frame_id_eq.
6756 (fprint_dummy_frames): Print ptid.
6757 * dummy-frame.h: Remove comments.
6758 (dummy_frame_push): Add ptid in declaration.
6759 (dummy_frame_pop, dummy_frame_discard): Likewise.
6760
6761 2014-06-26 Tom Tromey <tromey@redhat.com>
6762
6763 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6764 * command.h (error_no_arg): Update.
6765
6766 2014-06-26 Tom Tromey <tromey@redhat.com>
6767
6768 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6769 (do_show_command): Make "arg" const.
6770 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6771
6772 2014-06-26 Tom Tromey <tromey@redhat.com>
6773
6774 * record-full.c (record_full_get_bookmark): Make "args" const.
6775 (record_full_goto_bookmark): Make "raw_bookmark" const.
6776 * record.c (record_goto): New function.
6777 (cmd_record_goto): Use it. Now static.
6778 * record.h (record_goto): Declare.
6779 (cmd_record_goto): Remove declaration.
6780 * target-delegates.c: Rebuild.
6781 * target.h (struct target_ops) <to_get_bookmark,
6782 to_goto_bookmark>: Make parameter const.
6783
6784 2014-06-26 Tom Tromey <tromey@redhat.com>
6785
6786 * defs.h (generic_load): Update.
6787 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6788 * monitor.c (monitor_load): Make "args" const.
6789 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6790 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6791 const.
6792 (mips_load): Make "file" const.
6793 * remote-sim.c (gdbsim_load): Make "args" const.
6794 * remote.c (remote_load): Make "name" const.
6795 * symfile.c (generic_load): Make "args" const.
6796 * target-delegates.c: Rebuild.
6797 * target.c (target_load): Make "arg" const.
6798 (debug_to_load): Make "args" const.
6799 * target.h (struct target_ops) <to_load>: Make parameter const.
6800 (target_load): Update.
6801
6802 2014-06-26 Tom Tromey <tromey@redhat.com>
6803
6804 PR symtab/16902:
6805 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6806 (dwarf2_physname, read_partial_die)
6807 (guess_partial_die_structure_name, fixup_partial_die)
6808 (guess_full_die_structure_name, anonymous_struct_prefix)
6809 (dwarf2_name): Use per-BFD obstack.
6810
6811 2014-06-26 Yao Qi <yao@codesourcery.com>
6812
6813 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6814 dummyframe and this_id into inner block below.
6815
6816 2014-06-26 Yao Qi <yao@codesourcery.com>
6817
6818 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6819 with "signal_pass[0]" in the initialization of signal_pass.
6820
6821 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6822
6823 * record-btrace.c (record_btrace_generating_corefile)
6824 (record_btrace_prepare_to_generate_core)
6825 (record_btrace_done_generating_core): New.
6826 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6827 (record_btrace_store_registers, record_btrace_prepare_to_store):
6828 Forward request when generating a core file.
6829 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6830 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6831 to_done_generating_core.
6832
6833 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6834
6835 * target.h (target_ops) <to_prepare_to_generate_core>
6836 <to_done_generating_core>: New.
6837 (target_prepare_to_generate_core, target_done_generating_core): New.
6838 * target.c (target_prepare_to_generate_core)
6839 (target_done_generating_core): New.
6840 * target-delegates.c: Regenerate.
6841 * gcore.c: (write_gcore_file): Rename to ...
6842 (write_gcore_file_1): ...this.
6843 (write_gcore_file): Call target_prepare_to_generate_core
6844 and target_done_generating_core.
6845
6846 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6847
6848 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6849 * gcore.c (write_gcore_file): Free memory returned from
6850 make_corefile_notes.
6851 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6852 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6853
6854 2014-06-24 Yao Qi <yao@codesourcery.com>
6855
6856 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6857 (arm_linux_init_abi): Set skip_trampoline_code with
6858 gdbarch_skip_trampoline_code instead of
6859 find_solib_trampoline_target.
6860
6861 2014-06-24 Yao Qi <yao@codesourcery.com>
6862
6863 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6864 arm_skip_bx_reg returns non-zero.
6865
6866 2014-06-24 Yao Qi <yao@codesourcery.com>
6867
6868 * arm-tdep.c (arm_skip_bx_reg): New function.
6869 (arm_skip_stub): Call arm_skip_bx_reg.
6870
6871 2014-06-23 Don Breazeal <donb@codesourcery.com>
6872
6873 * MAINTAINERS: Add myself as write-after-approval maintainer.
6874
6875 2014-06-23 Pedro Alves <palves@redhat.com>
6876
6877 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6878 DR_CONTROL before setting DR0..DR3.
6879 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6880 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6881 bits of DR_CONTROL related to the debug register slot being
6882 disabled. If all slots are vacant, clear local slowdown as well,
6883 and assert DR_CONTROL is 0.
6884
6885 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6886
6887 * python/lib/gdb/command/xmethods.py
6888 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6889 current progspace only if the string "progspace" matches LOCUS_RE.
6890
6891 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6892
6893 Fix --with-system-readline with readline-6.3 patch 5.
6894 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6895 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6896 types.
6897
6898 2014-06-20 Tom Tromey <tromey@redhat.com>
6899
6900 * dwarf2read.c (dw2_get_real_path): Use correct type in
6901 OBSTACK_CALLOC.
6902 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6903
6904 2014-06-20 Gary Benson <gbenson@redhat.com>
6905
6906 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6907 * common/glibc_thread_db.h: Likewise.
6908 * common/i386-cpuid.h: Likewise.
6909 * common/i386-gcc-cpuid.h: Likewise.
6910 * common/linux-btrace.h: Likewise.
6911 * common/linux-osdata.h: Likewise.
6912 * common/linux-procfs.h: Likewise.
6913 * common/linux-ptrace.h: Likewise.
6914 * common/mips-linux-watch.h: Likewise.
6915 * common/linux-btrace.c: Moved to nat.
6916 * common/linux-osdata.c: Likewise.
6917 * common/linux-procfs.c: Likewise.
6918 * common/linux-ptrace.c: Likewise.
6919 * common/mips-linux-watch.c: Likewise.
6920 * nat/gdb_thread_db.h: Moved from common.
6921 * nat/glibc_thread_db.h: Likewise.
6922 * nat/i386-cpuid.h: Likewise.
6923 * nat/i386-gcc-cpuid.h: Likewise.
6924 * nat/linux-btrace.c: Likewise.
6925 * nat/linux-btrace.h: Likewise.
6926 * nat/linux-osdata.c: Likewise.
6927 * nat/linux-osdata.h: Likewise.
6928 * nat/linux-procfs.c: Likewise.
6929 * nat/linux-procfs.h: Likewise.
6930 * nat/linux-ptrace.c: Likewise.
6931 * nat/linux-ptrace.h: Likewise.
6932 * nat/mips-linux-watch.c: Likewise.
6933 * nat/mips-linux-watch.h: Likewise.
6934 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6935 (object file files): Reordered.
6936 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6937 of glibc_thread_db.h.
6938
6939 2014-06-20 Gary Benson <gbenson@redhat.com>
6940
6941 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6942 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6943 (i386_dr_low): Likewise.
6944 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6945 (i386_dr_low_set_addr): Likewise.
6946 (i386_dr_low_get_addr): Likewise.
6947 (i386_dr_low_can_set_control): Likewise.
6948 (i386_dr_low_set_control): Likewise.
6949 (i386_dr_low_get_control): Likewise.
6950 (i386_dr_low_get_status): Likewise.
6951 (i386_get_debug_register_length): Likewise.
6952 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6953 (i386_dr_low): Likewise.
6954 * nat/i386-dregs.c (i386-low.h): Remove include.
6955 (i386-nat.h): Likewise.
6956 (nat/i386-dregs.h): New include.
6957 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6958 (i386_dr_low_set_addr): Likewise.
6959 (i386_dr_low_get_addr): Likewise.
6960 (i386_dr_low_can_set_control): Likewise.
6961 (i386_dr_low_set_control): Likewise.
6962 (i386_dr_low_get_control): Likewise.
6963 (i386_dr_low_get_status): Likewise.
6964 (i386_get_debug_register_length): Likewise.
6965 (debug_hw_points): Likewise.
6966
6967 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6968
6969 * Makefile.in (SFILES): Add d-exp.y.
6970 (YYFILES): Add d-exp.c.
6971 (YYOBJ): Add d-exp.o.
6972 (local-maintainer-clean): Delete d-exp.c.
6973 * d-exp.y: New file.
6974 * d-lang.h (d_parse): New declaration.
6975 (d_error): New declaration.
6976 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6977 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6978 PREC_ORDER operators.
6979 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6980
6981 2014-06-19 Yao Qi <yao@codesourcery.com>
6982
6983 * gdbthread.h (any_running): Remove the declaration.
6984 * thread.c (any_running): Remove.
6985
6986 2014-06-19 Yao Qi <yao@codesourcery.com>
6987
6988 * gdbthread.h (struct thread_info) <state>: Change its type to
6989 'enum thread_state'. Update comments.
6990
6991 2014-06-19 Pedro Alves <palves@redhat.com>
6992
6993 * gdbthread.h (ALL_THREADS): Delete.
6994 (ALL_NON_EXITED_THREADS): New macro.
6995 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6996 instead of ALL_THREADS.
6997 * infrun.c (find_thread_needs_step_over)
6998 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6999 instead of ALL_THREADS.
7000 * record-btrace.c (record_btrace_open)
7001 (record_btrace_stop_recording, record_btrace_close)
7002 (record_btrace_is_replaying, record_btrace_resume)
7003 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
7004 * remote.c (append_pending_thread_resumptions): Likewise.
7005 * thread.c (thread_apply_all_command): Likewise.
7006
7007 2014-06-19 Gary Benson <gbenson@redhat.com>
7008
7009 * i386-nat.c (i386_stopped_by_watchpoint):
7010 Use i386_dr_stopped_by_watchpoint.
7011 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7012 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7013
7014 2014-06-19 Gary Benson <gbenson@redhat.com>
7015
7016 * nat/i386-dregs.c: New file.
7017 * Makefile.in (i386-dregs.o): New rule.
7018 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7019 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7020 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7021 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7022 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7023 * config/i386/go32.mh (NATDEPFILES): Likewise.
7024 * config/i386/linux.mh (NATDEPFILES): Likewise.
7025 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7026 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7027 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7028 * i386-nat.h (debug_hw_points): New declaration.
7029 * i386-nat.c (breakpoint.h): Remove include.
7030 (command.h): Likewise.
7031 (target.h): Likewise.
7032 (gdb_assert.h): Likewise.
7033 (debug_hw_points): Made nonstatic.
7034 (debug_printf): Now in i386-dregs.c.
7035 (TARGET_HAS_DR_LEN_8): Likewise.
7036 (DR_CONTROL_SHIFT): Likewise.
7037 (DR_CONTROL_SIZE): Likewise.
7038 (DR_RW_EXECUTE): Likewise.
7039 (DR_RW_WRITE): Likewise.
7040 (DR_RW_READ): Likewise.
7041 (DR_RW_IORW): Likewise.
7042 (DR_LEN_1): Likewise.
7043 (DR_LEN_2): Likewise.
7044 (DR_LEN_4): Likewise.
7045 (DR_LEN_8): Likewise.
7046 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7047 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7048 (DR_ENABLE_SIZE): Likewise.
7049 (DR_LOCAL_SLOWDOWN): Likewise.
7050 (DR_GLOBAL_SLOWDOWN): Likewise.
7051 (DR_CONTROL_RESERVED): Likewise.
7052 (I386_DR_CONTROL_MASK): Likewise.
7053 (I386_DR_VACANT): Likewise.
7054 (I386_DR_LOCAL_ENABLE): Likewise.
7055 (I386_DR_GLOBAL_ENABLE): Likewise.
7056 (I386_DR_DISABLE): Likewise.
7057 (I386_DR_SET_RW_LEN): Likewise.
7058 (I386_DR_GET_RW_LEN): Likewise.
7059 (I386_DR_WATCH_HIT): Likewise.
7060 (i386_wp_op_t): Likewise.
7061 (i386_show_dr): Likewise.
7062 (i386_length_and_rw_bits): Likewise.
7063 (i386_insert_aligned_watchpoint): Likewise.
7064 (i386_remove_aligned_watchpoint): Likewise.
7065 (i386_handle_nonaligned_watchpoint): Likewise.
7066 (i386_update_inferior_debug_regs): Likewise.
7067 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7068 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7069 (i386_region_ok_for_watchpoint):
7070 Use i386_dr_region_ok_for_watchpoint.
7071 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7072
7073 2014-06-19 Gary Benson <gbenson@redhat.com>
7074
7075 * i386-nat.c (i386_insert_hw_breakpoint): Use
7076 i386_insert_watchpoint.
7077 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7078
7079 2014-06-19 Gary Benson <gbenson@redhat.com>
7080
7081 * i386-nat.c (i386_dr_show): Renamed to
7082 i386_show_dr and made static. All uses updated.
7083 (i386_dr_length_and_rw_bits): Renamed to
7084 i386_length_and_rw_bits and made static.
7085 All uses updated.
7086 (i386_dr_insert_aligned_watchpoint): Renamed to
7087 i386_insert_aligned_watchpoint and made static.
7088 All uses updated.
7089 (i386_dr_remove_aligned_watchpoint): Renamed to
7090 i386_remove_aligned_watchpoint and made static.
7091 All uses updated.
7092 (i386_dr_update_inferior_debug_regs): Renamed to
7093 i386_update_inferior_debug_regs and made static.
7094 All uses updated.
7095 * nat/i386-dregs.h (i386_dr_show): Removed.
7096 (i386_dr_length_and_rw_bits): Likewise.
7097 (i386_dr_insert_aligned_watchpoint): Likewise.
7098 (i386_dr_remove_aligned_watchpoint): Likewise.
7099 (i386_dr_update_inferior_debug_regs): Likewise.
7100
7101 2014-06-19 Gary Benson <gbenson@redhat.com>
7102
7103 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7104 * configure: Regenerate.
7105 * config.in: Likewise.
7106 * main.c (signal.h): New include.
7107 (setup_alternate_signal_stack): New function.
7108 (captured_main): Call the above.
7109 * cp-support.c (signal.h): New include.
7110 (catch_demangler_crashes): New flag.
7111 (SIGJMP_BUF): New define.
7112 (SIGSETJMP): Likewise.
7113 (SIGLONGJMP): Likewise.
7114 (gdb_demangle_jmp_buf): New static global.
7115 (gdb_demangle_attempt_core_dump): Likewise.
7116 (gdb_demangle_signal_handler): New function.
7117 (gdb_demangle): If catch_demangler_crashes is set, install the
7118 above signal handler before calling bfd_demangle, and restore
7119 the original signal handler afterwards. Display the offending
7120 symbol and call demangler_warning the first time a segmentation
7121 fault is caught.
7122 (_initialize_cp_support): New maint set/show command.
7123
7124 2014-06-19 Gary Benson <gbenson@redhat.com>
7125
7126 * utils.h (resource_limit_kind): New enum.
7127 (can_dump_core): New declaration.
7128 (warn_cant_dump_core): Likewise.
7129 (dump_core): Likewise.
7130 * utils.c (dump_core): Made nonstatic. Added new
7131 parameter "limit_kind".
7132 (can_dump_core): Made nonstatic. Moved printing code to...
7133 (warn_cant_dump_core): New function.
7134 (can_dump_core_warn): Likewise.
7135 (internal_vproblem): Replace calls to can_dump_core with
7136 calls to can_dump_core_warn. Supply new argument to each.
7137
7138 2014-06-19 Gary Benson <gbenson@redhat.com>
7139
7140 * utils.h (demangler_vwarning): New declaration.
7141 (demangler_warning): Likewise.
7142 * utils.c (struct internal_problem)
7143 <user_settable_should_quit>: New field.
7144 <user_settable_should_dump_core>: Likewise
7145 (internal_error_problem): Add values for above new fields.
7146 (internal_warning_problem): Likewise.
7147 (demangler_warning_problem): New static global.
7148 (demangler_vwarning): New function.
7149 (demangler_warning): Likewise.
7150 (add_internal_problem_command): Selectively add commands.
7151 (_initialize_utils): New internal problem command.
7152 * maint.c (maintenance_demangler_warning): New function.
7153 (_initialize_maint_cmds): New command.
7154
7155 2014-06-18 Tom Tromey <tromey@redhat.com>
7156
7157 * f-valprint.c (info_common_command_for_block): Update.
7158 * symtab.h (struct general_symbol_info) <common_block>: Now
7159 const.
7160
7161 2014-06-18 Tom Tromey <tromey@redhat.com>
7162
7163 * symtab.h (struct symtab) <blockvector>: Now const.
7164 * ada-lang.c (ada_add_global_exceptions): Update.
7165 * buildsym.c (augment_type_symtab): Update.
7166 * dwarf2read.c (dw2_lookup_symbol): Update.
7167 * jit.c (finalize_symtab): Update.
7168 * jv-lang.c (add_class_symtab_symbol): Update.
7169 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7170 Update.
7171 * objfiles.c (objfile_relocate1): Update.
7172 * psymtab.c (lookup_symbol_aux_psymtabs)
7173 (maintenance_check_psymtabs): Update.
7174 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7175 Update.
7176 * spu-tdep.c (spu_catch_start): Update.
7177 * symmisc.c (dump_symtab_1): Update.
7178 * symtab.c (lookup_global_symbol_from_objfile)
7179 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7180 (basic_lookup_transparent_type_quick)
7181 (basic_lookup_transparent_type, find_pc_sect_symtab)
7182 (find_pc_sect_line, search_symbols): Update.
7183 * block.c (find_block_in_blockvector): Make "bl" const.
7184 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7185 const.
7186 (blockvector_contains_pc): Make "bv" const.
7187 (block_for_pc_sect): Update.
7188 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7189 (blockvector_contains_pc): Update.
7190 * breakpoint.c (resolve_sal_pc): Update.
7191 * inline-frame.c (block_starting_point_at): Update.
7192
7193 2014-06-18 Tom Tromey <tromey@redhat.com>
7194
7195 * completer.c (complete_line): Make "line_buffer" const.
7196 * completer.h (complete_line): Update.
7197
7198 2014-06-18 Tom Tromey <tromey@redhat.com>
7199
7200 * symtab.c (add_macro_name): Remove unneeded cast.
7201
7202 2014-06-18 Tom Tromey <tromey@redhat.com>
7203
7204 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7205 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7206
7207 2014-06-18 Tom Tromey <tromey@redhat.com>
7208
7209 * probe.c (info_probes_for_ops): Make "arg" const.
7210 * probe.h (info_probes_for_ops): Update.
7211
7212 2014-06-18 Tom Tromey <tromey@redhat.com>
7213
7214 * varobj.c (varobj_create): Update.
7215 * valops.c (value_of_this): Update.
7216 * tracepoint.c (add_local_symbols, scope_info): Update.
7217 * symtab.h (struct general_symbol_info) <block>: Now const.
7218 * symtab.c (skip_prologue_sal)
7219 (default_make_symbol_completion_list_break_on)
7220 (skip_prologue_using_sal): Update.
7221 * stack.h (iterate_over_block_locals)
7222 (iterate_over_block_local_vars): Update.
7223 * stack.c (print_frame_args): Update.
7224 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7225 parameter const.
7226 (get_selected_block): Make return type const.
7227 * python/py-frame.c (frapy_block): Update.
7228 * python/py-block.c (gdbpy_block_for_pc): Update.
7229 * p-exp.y (%union) <bval>: Now const.
7230 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7231 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7232 * m2-exp.y (%union) <bval>: Now const.
7233 * linespec.c (get_current_search_block): Make return type const.
7234 (create_sals_line_offset, find_label_symbols): Update.
7235 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7236 Update.
7237 (block_starting_point_at): Make "block" const.
7238 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7239 (check_exception_resume): Update.
7240 * guile/scm-frame.c (gdbscm_frame_block): Update.
7241 * guile/scm-block.c (gdbscm_lookup_block): Update.
7242 * frame.h (get_frame_block): Update.
7243 (get_selected_block): Make return type const.
7244 * frame.c (frame_id_inner): Update.
7245 * f-valprint.c (info_common_command_for_block)
7246 (info_common_command): Update.
7247 * dwarf2loc.c (dwarf2_find_location_expression)
7248 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7249 (locexpr_describe_location_piece): Update.
7250 * c-exp.y (%union) <bval>: Now const.
7251 * breakpoint.c (resolve_sal_pc): Update.
7252 * blockframe.c (get_frame_block):Make return type const.
7253 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7254 (block_innermost_frame): Update.
7255 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7256 (block_for_pc, block_for_pc_sect): Update.
7257 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7258 'pblock' const.
7259 (block_for_pc_sect, block_for_pc): Make return type const.
7260 * ax-gdb.c (gen_expr): Update.
7261 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7262 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7263 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7264 (ada_read_var_value): Update.
7265 * ada-exp.y (struct name_info) <block>: Now const.
7266 (%union): Likewise.
7267 (block_lookup): Constify.
7268
7269 2014-06-18 Gary Benson <gbenson@redhat.com>
7270
7271 * nat/i386-dregs.h: New file.
7272 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7273 * i386-nat.h (i386-dregs.h): New include.
7274 (DR_FIRSTADDR): Now in i386-dregs.h.
7275 (DR_LASTADDR): Likewise.
7276 (DR_NADDR): Likewise.
7277 (DR_STATUS): Likewise.
7278 (DR_CONTROL): Likewise.
7279 (i386_debug_reg_state): Likewise.
7280 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7281
7282 2014-06-18 Don Breazeal <donb@codesourcery.com>
7283
7284 * breakpoint.c (set_longjmp_breakpoint): Call
7285 momentary_breakpoint_from_master with additional argument.
7286 (set_longjmp_breakpoint_for_call_dummy): Call
7287 momentary_breakpoint_from_master with additional argument.
7288 (set_std_terminate_breakpoint): Call
7289 momentary_breakpoint_from_master with additional argument.
7290 (momentary_breakpoint_from_master): Add argument to function
7291 definition and use it to initialize structure member flag.
7292 (clone_momentary_breakpoint): Call
7293 momentary_breakpoint_from_master with additional argument.
7294 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7295 member flags set in momentary_breakpoint_from_master.
7296
7297 2014-06-18 Gary Benson <gbenson@redhat.com>
7298
7299 * i386-nat.c (i386_show_dr): Renamed to
7300 i386_dr_show and made nonstatic. All uses updated.
7301 (i386_length_and_rw_bits): Renamed to
7302 i386_dr_length_and_rw_bits and made nonstatic.
7303 All uses updated.
7304 (i386_insert_aligned_watchpoint): Renamed to
7305 i386_dr_insert_aligned_watchpoint and made nonstatic.
7306 All uses updated.
7307 (i386_remove_aligned_watchpoint): Renamed to
7308 i386_dr_remove_aligned_watchpoint and made nonstatic.
7309 All uses updated.
7310 (i386_update_inferior_debug_regs): Renamed to
7311 i386_dr_update_inferior_debug_regs and made nonstatic.
7312 All uses updated.
7313
7314 2014-06-18 Gary Benson <gbenson@redhat.com>
7315
7316 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7317 (i386_dr_low_can_set_control): Likewise.
7318 (i386_dr_low_set_addr): Likewise.
7319 (i386_dr_low_set_control): Likewise.
7320 (i386_dr_low_get_addr): Likewise.
7321 (i386_dr_low_get_status): Likewise.
7322 (i386_dr_low_get_control): Likewise.
7323 (i386_insert_aligned_watchpoint): Use new macros.
7324 (i386_update_inferior_debug_regs): Likewise.
7325 (i386_stopped_data_address): Likewise.
7326
7327 2014-06-18 Gary Benson <gbenson@redhat.com>
7328
7329 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7330 New parameter. All uses updated.
7331
7332 2014-06-18 Gary Benson <gbenson@redhat.com>
7333
7334 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7335 All uses updated.
7336
7337 2014-06-18 Gary Benson <gbenson@redhat.com>
7338
7339 * i386-nat.c (debug_printf): New macro.
7340 (i386_get_debug_register_length): Likewise.
7341 (TARGET_HAS_DR_LEN_8): Use above macro.
7342 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7343 and printf_unfiltered. Use phex to format values.
7344
7345 2014-06-18 Gary Benson <gbenson@redhat.com>
7346
7347 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7348 Make const.
7349
7350 2014-06-18 Gary Benson <gbenson@redhat.com>
7351
7352 * i386-nat.c: Comment changes.
7353
7354 2014-06-18 Gary Benson <gbenson@redhat.com>
7355
7356 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7357
7358 2014-06-18 Gary Benson <gbenson@redhat.com>
7359
7360 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7361 (i386_insert_aligned_watchpoint): Likewise.
7362 (i386_remove_aligned_watchpoint): Likewise.
7363 (i386_handle_nonaligned_watchpoint): Likewise.
7364
7365 2014-06-18 Gary Benson <gbenson@redhat.com>
7366
7367 * i386-nat.c: Whitespace changes.
7368
7369 2014-06-17 Samuel Bronson <naesten@gmail.com>
7370
7371 * MAINTAINERS: Update Roland McGrath's email address.
7372 Thanks to Sergio Durigan Junior for pointing out that he left
7373 Red Hat a while ago, and giving me a current address.
7374
7375 2014-06-17 Tom Tromey <tromey@redhat.com>
7376
7377 * utils.h (savestring): Remove declaration.
7378
7379 2014-06-17 Tom Tromey <tromey@redhat.com>
7380
7381 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7382
7383 2014-06-16 Keith Seitz <keiths@redhat.com>
7384
7385 PR mi/15863
7386 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7387 to update the varobj if inferior_ptid is null_ptid.
7388
7389 2014-06-16 Tom Tromey <tromey@redhat.com>
7390
7391 * target.h (struct target_ops) <to_info_proc>: Make parameter
7392 const.
7393 (target_info_proc): Update.
7394 * target.c (target_info_proc): Make "args" const.
7395 * procfs.c (procfs_info_proc): Update.
7396 * linux-tdep.c (linux_info_proc): Update.
7397 (linux_core_info_proc_mappings): Make "args" const.
7398 (linux_core_info_proc): Update.
7399 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7400 * gdbarch.c: Rebuild.
7401 * gdbarch.h: Rebuild.
7402 * corelow.c (core_info_proc): Update.
7403
7404 2014-06-16 Tom Tromey <tromey@redhat.com>
7405
7406 * target.h (struct target_ops) <to_disconnect>: Make parameter
7407 const.
7408 (target_disconnect): Update.
7409 * target.c (target_disconnect): Make "args" const.
7410 * target-delegates.c: Rebuild.
7411 * remote.c (remote_disconnect): Update.
7412 * record.h (record_disconnect): Update.
7413 * record.c (record_disconnect): Update.
7414 * inf-child.c (inf_child_disconnect): Update.
7415
7416 2014-06-16 Tom Tromey <tromey@redhat.com>
7417
7418 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7419 * target.c (debug_to_rcmd, default_rcmd): Update.
7420 * target-delegates.c: Rebuild.
7421 * remote.c (remote_rcmd): Update.
7422 * monitor.c (monitor_rcmd): Update.
7423
7424 2014-06-16 Pedro Alves <palves@redhat.com>
7425
7426 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7427 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7428 have OBJF_SHARED set.
7429 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7430 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7431 instead of OBJF_USERLOADED.
7432 * objfiles.h (OBJF_SHARED): Update comment.
7433 (userloaded_objfile_contains_address_p): Rename to ...
7434 (shared_objfile_contains_address_p): ... this, and update
7435 comments.
7436 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7437 new objfile.
7438 (remove_symbol_file_command): Skip objfiles that don't have
7439 OBJF_SHARED set.
7440
7441 2014-06-16 Tom Tromey <tromey@redhat.com>
7442
7443 * minsyms.h (prim_record_minimal_symbol)
7444 (prim_record_minimal_symbol_and_info): Update comments.
7445
7446 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7447
7448 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7449 or --without-guile, according to how GDB was built.
7450
7451 2014-06-13 Tom Tromey <tromey@redhat.com>
7452
7453 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7454 to help_list.
7455 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7456 to help_list.
7457 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7458 help_list.
7459 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7460 help_list.Pass all_commands, not -1, to help_list.
7461 * cli/cli-dump.c (dump_command, append_command)
7462 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7463 (binary_dump_command, binary_append_command): Pass all_commands,
7464 not -1, to help_list.
7465 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7466 -1, to help_list.
7467 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7468 -1, to help_list.
7469 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7470 help_list.
7471 * top.c (set_history): Pass all_commands, not -1, to help_list.
7472 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7473 all_commands, not -1, to help_list.
7474 * symfile.c (overlay_command): Pass all_commands, not -1, to
7475 help_list.
7476 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7477 help_list.
7478 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7479 help_list.
7480 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7481 -1, to help_list.
7482 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7483 not -1, to help_list.
7484 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7485 not -1, to help_list.
7486 * maint.c (maintenance_command, maintenance_info_command)
7487 (maintenance_print_command, maintenance_set_cmd): Pass
7488 all_commands, not -1, to help_list.
7489 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7490 help_list.
7491 * language.c (set_check): Pass all_commands, not -1, to help_list.
7492 * infcmd.c (unset_command): Pass all_commands, not -1, to
7493 help_list.
7494 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7495 help_list.
7496 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7497 help_list.
7498 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7499 help_list.
7500 * breakpoint.c (save_command): Pass all_commands, not -1, to
7501 help_list.
7502 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7503 all_commands, not -1, to help_list.
7504
7505 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7506
7507 * regcache.c (struct register_to_invalidate): New structure.
7508 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7509 functions.
7510 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7511
7512 2014-06-12 Yao Qi <yao@codesourcery.com>
7513
7514 * varobj.c (varobj_get_num_children): Call
7515 varobj_is_dynamic_p.
7516 (varobj_list_children): Likewise.
7517 (varobj_update): Likewise. Update comments.
7518
7519 2014-06-12 Yao Qi <yao@codesourcery.com>
7520
7521 * varobj.c (varobj_pretty_printed_p): Rename to ...
7522 (varobj_is_dynamic_p): ... this. New function.
7523 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7524 (varobj_is_dynamic_p): Declare.
7525 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7526 (mi_print_value_p, varobj_update_one): Likewise.
7527
7528 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7529 Yao Qi <yao@codesourcery.com>
7530
7531 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7532 (varobj_get_iterator): Wrap up code for pretty-printer by
7533 "#if HAVE_PYTHON" and "#endif".
7534 (update_dynamic_varobj_children): Likewise.
7535
7536 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7537 Yao Qi <yao@codesourcery.com>
7538
7539 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7540 gdb_python_initialized is false. Move some code from varobj.c.
7541 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7542 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7543 (struct varobj_item): Moved to varobj-iter.h".
7544 (varobj_clear_saved_item): New function.
7545 (update_dynamic_varobj_children): Move python-related code to
7546 py-varobj.c.
7547 (free_variable): Call varobj_clear_saved_item and
7548 varobj_iter_delete.
7549
7550 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7551 Yao Qi <yao@codesourcery.com>
7552
7553 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7554 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7555 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7556 (py-varobj.o): New rule.
7557 * python/py-varobj.c: New file.
7558 * python/python-internal.h (py_varobj_get_iterator): Declare.
7559 * varobj-iter.h: New file.
7560 * varobj.c: Include "varobj-iter.h"
7561 (struct varobj) <child_iter>: Change its type from "PyObject *"
7562 to "struct varobj_iter *".
7563 <saved_item>: Likewise.
7564 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7565 [HAVE_PYTHON] (varobj_get_iterator): New function.
7566 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7567 python-specific code to python/py-varobj.c.
7568 (install_visualizer): Call varobj_iter_delete instead of
7569 Py_XDECREF.
7570 * varobj.h (varobj_ensure_python_env): Declare.
7571
7572 2014-06-12 Yao Qi <yao@codesourcery.com>
7573
7574 * varobj.c (struct varobj_item): New structure.
7575 (create_child_with_value): Update declaration.
7576 (varobj_add_child): Replace arguments 'name' and 'value' with
7577 'item'. All callers updated.
7578 (install_dynamic_child): Likewise.
7579 (update_dynamic_varobj_children): Likewise.
7580 (varobj_add_child): Likewise.
7581 (create_child_with_value): Likewise.
7582
7583 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7584
7585 * NEWS: Create a new section for the next release branch.
7586 Rename the section of the current branch, now that it has
7587 been cut.
7588
7589 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7590
7591 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7592 * version.in: Bump version to 7.8.50.DATE-cvs.
7593
7594 2014-06-11 Pedro Alves <palves@redhat.com>
7595
7596 PR remote/17028
7597 * ser-mingw.c (net_windows_socket_check_pending): New function.
7598 (net_windows_select_thread): Ignore spurious wakeups. Use
7599 net_windows_socket_check_pending.
7600 (net_windows_wait_handle): Check for pending events with
7601 ioctlsocket, through net_windows_socket_check_pending, instead of
7602 checking the socket's event.
7603
7604 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7605
7606 * python/python-internal.h (gdb_PyObject_GetAttrString)
7607 (gdb_PyObject_HasAttrString): New inline function definitions.
7608 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7609 char * of the second argument to PyObject_GetAttrString.
7610
7611 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7612
7613 * serial.c (serial_write): Fix index of character to be printed
7614 in call to serial_logchar when serial debug traces are enabled.
7615
7616 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7617
7618 * gdbtypes (resolve_dynamic_range): Add function description.
7619
7620 2014-06-09 Pedro Alves <palves@redhat.com>
7621
7622 * linux-nat.c (linux_child_follow_fork): Initialize status with
7623 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7624 inner block. Only pass the signal to PTRACE_DETACH if in pass
7625 state.
7626
7627 2014-06-09 Gary Benson <gbenson@redhat.com>
7628
7629 * common/signals.c (gdb_signal_from_host): Reorder to separate
7630 the always-available ANSI-standard signals from the signals that
7631 require checking.
7632 (do_gdb_signal_to_host): Likewise.
7633 * proc-events.c (signal_table): Likewise.
7634
7635 2014-06-08 Hui Zhu <hui@codesourcery.com>
7636
7637 * common/linux-ptrace.c (linux_disable_event_reporting): New
7638 function.
7639 * common/linux-ptrace.h (linux_disable_event_reporting): New
7640 declaration.
7641 * linux-nat.c (linux_child_follow_fork): Do a single step before
7642 detach.
7643
7644 2014-06-07 Keith Seitz <keiths@redhat.com>
7645
7646 Revert:
7647 PR c++/16253
7648 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7649 from symbol_matches_domain in symtab.c. All local callers
7650 of symbol_matches_domain updated.
7651 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7652 search STRUCT_DOMAIN.
7653 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7654 independently. standard_lookup will do that automatically.
7655 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7656 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7657 (cp_lookup_symbol_in_namespace): Likewise.
7658 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7659 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7660 may return a STRUCT_DOMAIN match.
7661 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7662 * cp-support.c: Include language.h.
7663 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7664 VAR_DOMAIN.
7665 * psymtab.c (match_partial_symbol): Compare the requested
7666 domain with the symbol's domain directly.
7667 (lookup_partial_symbol): Likewise.
7668 * symtab.c (lookup_symbol_in_language): Explain when/why
7669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7670 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7671 appropriate languages.
7672 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7673 and moved to ada-lang.c
7674 (lookup_block_symbol): Explain that this function only returns
7675 symbol matching the requested DOMAIN.
7676 Compare the requested domain with the symbol's domain directly.
7677 (iterate_over_symbols): Compare the requested domain with the
7678 symbol's domain directly.
7679 * symtab.h (symbol_matches_domain): Remove.
7680
7681 2014-06-06 Doug Evans <xdje42@gmail.com>
7682
7683 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7684 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7685 (gdbscm_guile_version_is_at_least): Declare.
7686 (gdbscm_scm_string_to_int): Declare.
7687 * guile/guile.c (gdbscm_guile_major_version): New global.
7688 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7689 (guile_datadir): New static global.
7690 (gdbscm_guile_data_directory): New function.
7691 (initialize_scheme_side): Update.
7692 (misc_guile_functions): Add guile-data-directory.
7693 (initialize_gdb_module): Fetch guile version number.
7694 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7695 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7696 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7697 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7698 comments.
7699 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7700 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7701 * guile/scm-value.c (gdbscm_value_to_string): Only call
7702 scm_port_conversion_strategy if Guile version >= 2.0.6.
7703
7704 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7705
7706 * main.c (print_gdb_help): Add -q and --silent.
7707
7708 2014-06-06 Gary Benson <gbenson@redhat.com>
7709
7710 * common/signals.c: Remove preprocessor conditionals for
7711 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7712 SIGSEGV and SIGTERM.
7713 * proc-events.c: Likewise.
7714
7715 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7716
7717 * symfile.c (symfile_free_objfile): Remove restriction to
7718 OBJF_USERLOADED.
7719 * symfile-mem.c (symbol_file_add_from_memory): Call
7720 add_target_sections_of_objfile.
7721
7722 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7723
7724 * guile/scm-value.c (gdbscm_history_append_x): Use
7725 'vlscm_get_value_smob_arg_unsafe' instead of
7726 'vlscm_scm_to_value'.
7727
7728 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7729
7730 PR mi/15806
7731 * utils.c (printchar): Don't escape at all if quoter is NUL.
7732 Update function documentation to clarify effect of parameter
7733 QUOTER.
7734 * remote.c (escape_buffer): Pass '\\' as the quoter to
7735 fputstrn_unfiltered.
7736 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7737 generate the output.
7738 (mi_solib_unloaded): Same.
7739
7740 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7741
7742 * development.sh: Delete.
7743 * Makefile.in (config.status): Adjust dependency on development.sh.
7744 * configure.ac: Adjust development.sh source call.
7745 * configure: Regenerate.
7746
7747 2014-06-04 Doug Evans <xdje42@gmail.com>
7748
7749 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7750 is_scheme_bkpt, spec.
7751 (bpscm_make_breakpoint_smob): Initialize new members.
7752 (gdbscm_create_breakpoint_x): Split into two ...
7753 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7754 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7755 (scheme_function breakpoint_functions): Update.
7756 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7757 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7758 register-breakpoint!.
7759
7760 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7761
7762 PR server/17023
7763 * mem-break.c (z_type_supported): Return zero if
7764 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7765
7766 2014-06-04 Tom Tromey <tromey@redhat.com>
7767
7768 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7769 value_from_contents_and_address_unresolved.
7770 (ada_template_to_fixed_record_type_1): Likewise.
7771 (ada_which_variant_applies): Likewise.
7772 * value.h (value_from_contents_and_address_unresolved): Declare.
7773 * value.c (value_from_contents_and_address_unresolved): New
7774 function.
7775 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7776 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7777 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7778
7779 2014-06-04 Tom Tromey <tromey@redhat.com>
7780
7781 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7782
7783 2014-06-04 Tom Tromey <tromey@redhat.com>
7784
7785 * procfs.c (procfs_attach): Make "args" const.
7786 * windows-nat.c (windows_attach): Make "args" const.
7787 * nto-procfs.c (procfs_attach): Make "args" const.
7788 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7789 * go32-nat.c (go32_attach): Make "args" const.
7790 * gnu-nat.c (gnu_attach): Make "args" const.
7791 * darwin-nat.c (darwin_attach): Make "args" const.
7792 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7793 * linux-nat.c (linux_nat_attach): Make "args" const.
7794 * remote.c (extended_remote_attach_1, extended_remote_attach):
7795 Make "args" const.
7796 * target.h (struct target_ops) <to_attach>: Make "args" const.
7797 (find_default_attach): Likewise.
7798 * utils.c (parse_pid_to_attach): Make "args" const.
7799 * utils.h (parse_pid_to_attach): Update.
7800
7801 2014-06-04 Tom Tromey <tromey@redhat.com>
7802
7803 * target-delegates.c: Rebuild.
7804 * target.c (default_thread_address_space): New function.
7805 (target_thread_address_space): Simplify.
7806 * target.h (struct target_ops) <to_thread_address_space>: Add
7807 TARGET_DEFAULT_FUNC.
7808
7809 2014-06-04 Doug Evans <xdje42@gmail.com>
7810
7811 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7812
7813 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7814
7815 * record-btrace.c: Include event-loop.h and inf-loop.h.
7816 (record_btrace_resume_exec_dir)
7817 (record_btrace_async_inferior_event_handler)
7818 (record_btrace_handle_async_inferior_event): New.
7819 (record_btrace_open): Create async event handler.
7820 (record_btrace_close): Delete async event handler.
7821 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7822 Mark async event handler.
7823 (record_btrace_execution_direction): New.
7824 (init_record_btrace_ops): Initialize to_execution_direction.
7825
7826 2014-06-03 Doug Evans <xdje42@gmail.com>
7827
7828 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7829 (gdbscm_make_parameter): Ditto.
7830
7831 2014-06-03 Doug Evans <dje@google.com>
7832
7833 * exec.c (exec_close_1): Call clear_section_table instead of
7834 resize_section_table.
7835 (clear_section_table): New function.
7836 (resize_section_table): Make static. Rename arg num_added to
7837 adjustment.
7838 * exec.h (clear_section_table): Declare.
7839 (resize_section_table): Delete.
7840 * progspace.c (release_program_space): Call clear_section_table
7841 instead of resize_section_table.
7842
7843 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7844
7845 * NEWS (Python Scripting): Add entry about the new xmethods
7846 feature.
7847
7848 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7849
7850 * python/py-xmethods.c: New file.
7851 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7852 (objfpy_dealloc): XDECREF on the new xmethods field.
7853 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7854 field.
7855 (objfpy_get_xmethods): New function.
7856 (objfile_getset): New entry 'xmethods'.
7857 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7858 (pspy_dealloc): XDECREF on the new xmethods field.
7859 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7860 field.
7861 (pspy_get_xmethods): New function.
7862 (pspace_getset): New entry 'xmethods'.
7863 * python/python-internal.h: Add declarations for new functions.
7864 * python/python.c (_initialize_python): Invoke
7865 gdbpy_initialize_xmethods.
7866 * python/lib/gdb/__init__.py (xmethods): New
7867 attribute.
7868 * python/lib/gdb/xmethod.py: New file.
7869 * python/lib/gdb/command/xmethods.py: New file.
7870
7871 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7872
7873 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7874 best match method returned by find_overload_match is an xmethod.
7875 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7876 the best matching operator returned by find_overload_match is an
7877 xmethod.
7878 * valops.c: #include "extension.h".
7879 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7880 Return void. The list of matching source methods is returned in
7881 "fn_list" and a vector of matching debug method workers is
7882 returned in "xm_worker_vec". Update all callers.
7883 (value_find_oload_method_list): Likewise.
7884 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7885 non-NULL, then the index of the best matching method in this
7886 vector is returned. Update all callers.
7887 (find_overload_match): Include xmethods while performing overload
7888 resolution.
7889
7890 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7891
7892 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7893 * extension-priv.h (struct extension_language_ops): Add the
7894 xmethod interface.
7895 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7896 get_matching_xmethod_workers, get_xmethod_argtypes,
7897 invoke_xmethod, free_xmethod_worker,
7898 free_xmethod_worker_vec): New functions.
7899 * extension.h: #include "common/vec.h".
7900 New function declarations.
7901 (struct xmethod_worker): New struct.
7902 (VEC (xmethod_worker_ptr)): New vector type.
7903 (xmethod_worker_ptr): New typedef.
7904 (xmethod_worker_vec): Likewise.
7905 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7906 builtin_type.
7907 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7908 (struct builtin_type): New field "xmethod".
7909 * valarith.c (value_ptradd): Assert that the value argument is not
7910 lval_xcallable.
7911 * valops.c (value_must_coerce_to_target): Return 0 for
7912 lval_xcallable values.
7913 * value.c (struct value): New field XM_WORKER in the field
7914 LOCATION.
7915 (value_address, value_raw_address): Return 0 for lval_xcallable
7916 values.
7917 (set_value_address): Assert that the value is not an
7918 lval_xcallable.
7919 (value_free): Free the associated xmethod worker when freeing
7920 lval_xcallable values.
7921 (set_value_component_location): Assert that the WHOLE value is not
7922 lval_xcallable.
7923 (value_of_xmethod, call_xmethod): New functions.
7924 * value.h: Declare "struct xmethod_worker".
7925 Declare new functions value_of_xmethod, call_xmethod.
7926
7927 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7928 Pedro Alves <palves@redhat.com>
7929
7930 PR breakpoints/17000
7931 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7932 New function, extracted from software_breakpoint_inserted_here_p.
7933 (software_breakpoint_inserted_here_p): Replace factored out code
7934 by call to find_non_raw_software_breakpoint_inserted_here.
7935 (bp_target_info_copy_insertion_state): New function.
7936 (bkpt_insert_location): Handle the case of a single-step
7937 breakpoint already inserted at the same address.
7938 (bkpt_remove_location): Handle the case of a single-step
7939 breakpoint still inserted at the same address.
7940 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7941 breakpoint already inserted at the same address.
7942 (deprecated_remove_raw_breakpoint): Handle the case of a
7943 non-raw breakpoint still inserted at the same address.
7944 (find_single_step_breakpoint): New function, extracted from
7945 single_step_breakpoint_inserted_here_p.
7946 (find_single_step_breakpoint): New function,
7947 factored out from single_step_breakpoint_inserted_here_p.
7948 (single_step_breakpoint_inserted_here_p): Reimplement.
7949
7950 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7951
7952 Pushed by Joel Brobecker <brobecker@adacore.com>
7953 * source.c (show_substitute_path_command): Fix display of matching
7954 substitution rules.
7955
7956 2014-06-03 Gary Benson <gbenson@redhat.com>
7957
7958 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7959
7960 2014-06-02 Doug Evans <xdje42@gmail.com>
7961
7962 Add parameter support for Guile.
7963 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7964 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7965 (scm-param.o): New rule.
7966 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7967 (gdbscm_misc_error): Declare.
7968 (gdbscm_canonicalize_command_name): Declare.
7969 (gdbscm_scm_to_host_string): Declare.
7970 (gdbscm_scm_from_host_string): Declare.
7971 (gdbscm_initialize_parameters): Declare.
7972 * guile/guile.c (initialize_gdb_module): Call
7973 gdbscm_initialize_parameters.
7974 * guile/lib/gdb.scm: Export parameter symbols.
7975 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7976 cmdscm_canonicalize_name and made public. All callers updated.
7977 * guile/scm-exception.c (gdbscm_misc_error): New function.
7978 * guile/scm-param.c: New file.
7979 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7980 (gdbscm_scm_to_host_string): New function.
7981 (gdbscm_scm_from_host_string): New function.
7982 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7983
7984 2014-06-02 Doug Evans <xdje42@gmail.com>
7985
7986 Add command support for Guile.
7987 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7988 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7989 (scm-cmd.o): New rule.
7990 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7991 (gdbscm_user_error_p): Declare.
7992 (gdbscm_parse_command_name): Declare.
7993 (gdbscm_valid_command_class_p): Declare.
7994 (gdbscm_initialize_commands): Declare.
7995 * guile/guile.c (initialize_gdb_module): Call
7996 gdbscm_initialize_commands.
7997 * guile/lib/gdb.scm: Export command symbols.
7998 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7999 (throw-user-error): New function.
8000 * guile/scm-cmd.c: New file.
8001 * guile/scm-exception.c (user_error_symbol): New static global.
8002 (gdbscm_user_error_p): New function.
8003 (gdbscm_initialize_exceptions): Set user_error_symbol.
8004 * scm-utils.c (gdbscm_gc_xstrdup): New function.
8005
8006 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
8007
8008 * top.c (command_loop): Handle comments here...
8009 (command_line_input): ... not here.
8010
8011 2014-06-02 Doug Evans <xdje42@gmail.com>
8012
8013 Add progspace support for Guile.
8014 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8015 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8016 (scm-progspace.o): New rule.
8017 * guile/guile-internal.h (pspace_smob): New typedef.
8018 (psscm_pspace_smob_pretty_printers): Declare.
8019 (psscm_pspace_smob_from_pspace): Declare.
8020 (psscm_scm_from_pspace): Declare.
8021 * guile/guile.c (initialize_gdb_module): Call
8022 gdbscm_initialize_pspaces.
8023 * guile/lib/gdb.scm: Export progspace symbols.
8024 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8025 support.
8026 (append-pretty-printer!): Ditto.
8027 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8028 Implement.
8029 * guile/scm-progspace.c: New file.
8030
8031 2014-06-03 Alan Modra <amodra@gmail.com>
8032
8033 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8034 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8035
8036 2014-06-02 Doug Evans <dje@google.com>
8037
8038 Add support for skeletonless type units.
8039 * dwarf2read.c (struct dwarf2_per_objfile): New member
8040 n_allocated_type_units.
8041 (struct dwarf2_per_objfile) <tu_stats>: New member
8042 nr_all_type_units_reallocs.
8043 (create_signatured_type_table_from_index): Initialize
8044 n_allocated_type_units
8045 (create_all_type_units): Ditto.
8046 (add_type_unit): Move up in file. New arg slot.
8047 All callers updated. Increase space for all_type_units more
8048 efficiently.
8049 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8050 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8051 (lookup_dwp_signatured_type): Ditto.
8052 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8053 All callers updated.
8054 (build_type_psymtabs_1): Leave type_unit_groups as
8055 NULL if no TUs present.
8056 (print_tu_stats): New function.
8057 (process_skeletonless_type_unit): New function.
8058 (process_dwo_file_for_skeletonless_type_units): New
8059 function.
8060 (process_skeletonless_type_units): New function.
8061 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8062 Call print tu_stats if debugging enabled.
8063
8064 2014-06-02 Pedro Alves <palves@redhat.com>
8065
8066 * breakpoint.c (build_target_command_list): Don't build a command
8067 list if we have any duplicate location that isn't a dprintf.
8068
8069 2014-06-02 Pedro Alves <palves@redhat.com>
8070
8071 * breakpoint.c (dprintf_breakpoint_hit): New function.
8072 (initialize_breakpoint_ops): Install it as dprintf's
8073 breakpoint_hit method.
8074
8075 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8076
8077 * source.c (substitute_path_rule_matches): Simplify using
8078 filename_ncmp instead of FILENAME_CMP.
8079
8080 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8081
8082 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8083
8084 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8085
8086 * configure.ac: When Guile is available, check for the
8087 availability of 'scm_new_smob'.
8088 * configure, config.h.in: Regenerate.
8089 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8090 function.
8091
8092 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8093
8094 * frame.c (struct frame_info): Add stop_string field.
8095 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8096 (get_prev_frame_always): Old content moved into
8097 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8098 TRY_CATCH, handle MEMORY_ERROR exceptions.
8099 (frame_stop_reason_string): New function definition.
8100 * frame.h (unwind_stop_reason_to_string): Extend comment to
8101 mention frame_stop_reason_string.
8102 (frame_stop_reason_string): New function declaration.
8103 * stack.c (frame_info): Switch to frame_stop_reason_string.
8104 (backtrace_command_1): Switch to frame_stop_reason_string.
8105 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8106 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8107 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8108
8109 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8110
8111 * frame.c (frame_stop_reason_string): Rename to ...
8112 (unwind_stop_reason_to_string): this.
8113 * frame.h (frame_stop_reason_string): Rename to ...
8114 (unwind_stop_reason_to_string): this.
8115 * stack.c (frame_info): Update call to frame_stop_reason_string.
8116 (backtrace_command_1): Likewise.
8117 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8118 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8119
8120 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8121
8122 * frame.c (remove_prev_frame): New function.
8123 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8124 remove_prev_frame.
8125
8126 2014-05-29 Pedro Alves <palves@redhat.com>
8127
8128 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8129 and make it const. When a single-step decays to a continue,
8130 clear 'step', not 'hw_step'. Pass whether the caller wanted
8131 to step to user_visible_resume_ptid, not what we ask the
8132 target to do.
8133
8134 2014-05-29 Pedro Alves <palves@redhat.com>
8135
8136 * infrun.c (process_event_stop_test, handle_step_into_function)
8137 (handle_step_into_function_backward): Adjust.
8138 Don't set the even thread's stop_step and call stop_waiting before
8139 calling end_stepping_range. Instead do that ...
8140 (end_stepping_range): ... here. Take an ecs pointer parameter.
8141
8142 2014-05-29 Pedro Alves <palves@redhat.com>
8143
8144 * infrun.c (stop_stepping): Rename to ...
8145 (stop_waiting): ... this.
8146 (proceed): Update comment.
8147 (process_event_stop_test, handle_inferior_event)
8148 (handle_signal_stop, handle_step_into_function)
8149 (handle_step_into_function_backward): Update.
8150
8151 2014-05-29 Pedro Alves <palves@redhat.com>
8152
8153 * infcall.c (run_inferior_call): Don't check whether the current
8154 thread is running after the proceed call.
8155
8156 2014-05-29 Pedro Alves <palves@redhat.com>
8157 Tom Tromey <tromey@redhat.com>
8158
8159 * NEWS: Mention "maint set target-async", "set mi-async", and that
8160 background execution commands are now always available.
8161 * target.h (target_async_permitted): Update comment.
8162 * target.c (target_async_permitted, target_async_permitted_1):
8163 Default to 1.
8164 (set_target_async_command): Rename to ...
8165 (maint_set_target_async_command): ... this.
8166 (show_target_async_command): Rename to ...
8167 (maint_show_target_async_command): ... this.
8168 (_initialize_target): Adjust.
8169 * infcmd.c (prepare_execution_command): Make extern.
8170 * inferior.h (prepare_execution_command): Declare.
8171 * infrun.c (set_observer_mode): Leave target async alone.
8172 * mi/mi-interp.c (mi_interpreter_init): Install
8173 mi_on_sync_execution_done as sync_execution_done observer.
8174 (mi_on_sync_execution_done): New function.
8175 (mi_execute_command_input_handler): Don't print the prompt if we
8176 just started a synchronous command with an async target.
8177 (mi_on_resume): Check sync_execution before printing prompt.
8178 * mi/mi-main.h (mi_async_p): Declare.
8179 * mi/mi-main.c: Include gdbcmd.h.
8180 (mi_async_p): New function.
8181 (mi_async, mi_async_1): New globals.
8182 (set_mi_async_command, show_mi_async_command, mi_async): New
8183 functions.
8184 (exec_continue): Call prepare_execution_command.
8185 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8186 (mi_execute_async_cli_command): Use mi_async_p.
8187 (_initialize_mi_main): Install "set mi-async". Make
8188 "target-async" a deprecated alias.
8189
8190 2014-05-29 Pedro Alves <palves@redhat.com>
8191
8192 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8193 (_initialize_cli_interp): Adjust.
8194 * event-loop.c: Include "observer.h".
8195 (start_event_loop): Notify 'command_error' observers instead of
8196 calling display_gdb_prompt. Remove FIXME comment.
8197 * event-top.c (display_gdb_prompt): Remove call into the
8198 interpreters.
8199 * inf-loop.c: Include "observer.h".
8200 (inferior_event_handler): Notify 'command_error' observers instead
8201 of calling display_gdb_prompt.
8202 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8203 observers instead of calling display_gdb_prompt.
8204 * interps.c (interp_set): Don't call display_gdb_prompt.
8205 (current_interp_display_prompt_p): Delete.
8206 * interps.h (interp_prompt_p): Delete declaration.
8207 (interp_prompt_p_ftype): Delete.
8208 (struct interp_procs) <prompt_proc_p>: Delete field.
8209 (current_interp_display_prompt_p): Delete declaration.
8210 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8211 (_initialize_mi_interp): Adjust.
8212 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8213 'command_error' observers.
8214 (tui_on_sync_execution_done, tui_on_command_error): New
8215 functions.
8216 (tui_display_prompt_p): Delete.
8217 (_initialize_tui_interp): Adjust.
8218
8219 2014-05-29 Pedro Alves <palves@redhat.com>
8220
8221 PR gdb/13860
8222 * cli/cli-interp.c: Include infrun.h and observer.h.
8223 (cli_uiout, cli_interp): New globals.
8224 (cli_on_signal_received, cli_on_end_stepping_range)
8225 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8226 functions.
8227 (cli_interpreter_init): Install them as 'end_stepping_range',
8228 'signal_received' 'signal_exited', 'exited' and 'no_history'
8229 observers.
8230 (_initialize_cli_interp): Remove cli_interp local.
8231 * infrun.c (handle_inferior_event): Call the several stop reason
8232 observers instead of printing the stop reason directly.
8233 (end_stepping_range): New function.
8234 (print_end_stepping_range_reason, print_signal_exited_reason)
8235 (print_exited_reason, print_signal_received_reason)
8236 (print_no_history_reason): Make static, and add an uiout
8237 parameter. Print to that instead of to CURRENT_UIOUT.
8238 * infrun.h (print_end_stepping_range_reason)
8239 (print_signal_exited_reason, print_exited_reason)
8240 (print_signal_received_reason print_no_history_reason): New
8241 declarations.
8242 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8243 'mi_uiout'.
8244 <cli_uiout>: New field.
8245 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8246 uiout for CLI output. Install 'signal_received',
8247 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8248 observers.
8249 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8250 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8251 (mi_on_no_history): New functions.
8252 (ui_out_free_cleanup): Delete function.
8253 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8254 instead use the one already stored in the MI interpreter data.
8255 (mi_ui_out): Adjust.
8256 * tui/tui-interp.c: Include infrun.h and observer.h.
8257 (tui_interp): New global.
8258 (tui_on_signal_received, tui_on_end_stepping_range)
8259 (tui_on_signal_exited, tui_on_exited)
8260 (tui_on_no_history): New functions.
8261 (tui_init): Install them as 'end_stepping_range',
8262 'signal_received' 'signal_exited', 'exited' and 'no_history'
8263 observers.
8264 (_initialize_tui_interp): Delete tui_interp local.
8265
8266 2014-05-29 Pedro Alves <palves@redhat.com>
8267
8268 PR gdb/15713
8269 * linux-nat.c (linux_nat_resume_callback): Rename the second
8270 parameter to 'except'. Skip LP if it points to EXCEPT.
8271 (linux_nat_resume): Don't mark the event lwp as not stopped
8272 before resuming sibling lwps. Instead ask
8273 linux_nat_resume_callback to skip the event lwp. Mark it as not
8274 stopped after actually resuming it.
8275 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8276 resuming it.
8277 (wait_lwp): Mark the lwp as stopped here.
8278 (stop_wait_callback): Mark the lwp as not stopped right after
8279 resuming it. Don't mark lwps as stopped here.
8280 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8281 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8282
8283 2014-05-29 Pedro Alves <palves@redhat.com>
8284
8285 PR PR15693
8286 * infrun.c (resume): Determine how much to resume depending on
8287 whether the caller wanted a step, not whether we can hardware step
8288 the target. Mark all threads that we intend to run as running,
8289 unless we're calling an inferior function.
8290 (normal_stop): If the thread is running an infcall, don't finish
8291 thread state.
8292 * target.c (target_resume): Don't mark threads as running here.
8293
8294 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8295
8296 * serial.c (_initialize_serial): Remove support for
8297 the "set remotebaud" and "show remotebaud" commands.
8298 * NEWS: Add entry documenting the removal of that command.
8299
8300 2014-05-28 Yao Qi <yao@codesourcery.com>
8301
8302 * charset.c: Fix typo in comments.
8303
8304 2014-05-27 Gary Benson <gbenson@redhat.com>
8305
8306 * utils.c (internal_vproblem): Prompt for a bug report.
8307
8308 2014-05-26 Andy Wingo <wingo@igalia.com>
8309
8310 * guile/scm-arch.c (arscm_mark_arch_smob):
8311 * guile/scm-block.c (bkscm_mark_block_smob)
8312 (bkscm_mark_block_syms_progress_smob):
8313 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8314 * guile/scm-exception.c (exscm_mark_exception_smob):
8315 * guile/scm-frame.c (frscm_mark_frame_smob):
8316 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8317 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8318 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8319 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8320 (ppscm_mark_pretty_printer_worker_smob):
8321 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8322 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8323 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8324 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8325 mark functions.
8326 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8327 function.
8328
8329 2014-05-26 Andy Wingo <wingo@igalia.com>
8330 Doug Evans <xdje42@gmail.com>
8331
8332 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8333 empty_base_class. All uses updated.
8334 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8335 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8336 Adapt all callers.
8337 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8338 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8339 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8340 (gdbscm_gsmob_has_property_p, add_property_name)
8341 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8342 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8343 (gdb-object-has-property?, gdb-object-properties): Remove.
8344 (gdb-object-kind): Renamed from gsmob-kind.
8345
8346 2014-05-26 Andy Wingo <wingo@igalia.com>
8347
8348 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8349 * configure: Regenerate.
8350
8351 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8352
8353 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8354
8355 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8356
8357 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8358 (replay_memory_access_read_only, replay_memory_access_read_write)
8359 (replay_memory_access_types, replay_memory_access)
8360 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8361 (cmd_set_record_btrace, cmd_show_record_btrace)
8362 (cmd_show_replay_memory_access): New.
8363 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8364 (record_btrace_remove_breakpoint): Replace
8365 record_btrace_allow_memory_access with replay_memory_access.
8366 (_initialize_record_btrace): Add commands.
8367 * NEWS: Announce it.
8368
8369 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8370
8371 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8372
8373 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8374
8375 * MAINTAINERS (Write After Approval): Move self back from
8376 paper trail.
8377
8378 2014-05-22 Pedro Alves <palves@redhat.com>
8379
8380 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8381 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8382 (disable_randomization, enum exec_direction_kind)
8383 (execution_direction, stop_registers, start_remote)
8384 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8385 (wait_for_inferior, normal_stop, get_last_target_status)
8386 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8387 (insert_step_resume_breakpoint_at_sal)
8388 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8389 (set_step_info, print_stop_event, signal_stop_state)
8390 (signal_print_state, signal_pass_state, signal_stop_update)
8391 (signal_print_update, signal_pass_update)
8392 (update_signals_program_target, clear_exit_convenience_vars)
8393 (displaced_step_dump_bytes, update_observer_mode)
8394 (signal_catch_update, gdb_signal_from_command): Move
8395 declarations ...
8396 * infrun.h: ... to this new file.
8397 * amd64-tdep.c: Include infrun.h.
8398 * annotate.c: Include infrun.h.
8399 * arch-utils.c: Include infrun.h.
8400 * arm-linux-tdep.c: Include infrun.h.
8401 * arm-tdep.c: Include infrun.h.
8402 * break-catch-sig.c: Include infrun.h.
8403 * breakpoint.c: Include infrun.h.
8404 * common/agent.c: Include infrun.h instead of inferior.h.
8405 * corelow.c: Include infrun.h.
8406 * event-top.c: Include infrun.h.
8407 * go32-nat.c: Include infrun.h.
8408 * i386-tdep.c: Include infrun.h.
8409 * inf-loop.c: Include infrun.h.
8410 * infcall.c: Include infrun.h.
8411 * infcmd.c: Include infrun.h.
8412 * infrun.c: Include infrun.h.
8413 * linux-fork.c: Include infrun.h.
8414 * linux-nat.c: Include infrun.h.
8415 * linux-thread-db.c: Include infrun.h.
8416 * monitor.c: Include infrun.h.
8417 * nto-tdep.c: Include infrun.h.
8418 * procfs.c: Include infrun.h.
8419 * record-btrace.c: Include infrun.h.
8420 * record-full.c: Include infrun.h.
8421 * remote-m32r-sdi.c: Include infrun.h.
8422 * remote-mips.c: Include infrun.h.
8423 * remote-notif.c: Include infrun.h.
8424 * remote-sim.c: Include infrun.h.
8425 * remote.c: Include infrun.h.
8426 * reverse.c: Include infrun.h.
8427 * rs6000-tdep.c: Include infrun.h.
8428 * s390-linux-tdep.c: Include infrun.h.
8429 * solib-irix.c: Include infrun.h.
8430 * solib-osf.c: Include infrun.h.
8431 * solib-svr4.c: Include infrun.h.
8432 * target.c: Include infrun.h.
8433 * top.c: Include infrun.h.
8434 * windows-nat.c: Include infrun.h.
8435 * mi/mi-interp.c: Include infrun.h.
8436 * mi/mi-main.c: Include infrun.h.
8437 * python/py-threadevent.c: Include infrun.h.
8438
8439 2014-05-22 Pedro Alves <palves@redhat.com>
8440
8441 * infrun.c (handle_inferior_event): Store the exit code for
8442 --return-child-result here, instead of ...
8443 (print_exited_reason): ... here.
8444
8445 2014-05-21 Pedro Alves <palves@redhat.com>
8446
8447 PR gdb/13860
8448 * gdbthread.h (struct thread_control_state): New field
8449 `command_interp'.
8450 * infrun.c (follow_fork): Copy the new thread control field to the
8451 child fork thread.
8452 (clear_proceed_status_thread): Clear the new thread control field.
8453 (proceed): Set the new thread control field.
8454 * interps.h (command_interp): Declare.
8455 * interps.c (command_interpreter): New global.
8456 (command_interp): New function.
8457 (interp_exec): Set `command_interpreter' while here.
8458 * cli-out.c (cli_uiout_dtor): New function.
8459 (cli_ui_out_impl): Install it.
8460 * mi/mi-interp.c: Include cli-out.h.
8461 (mi_cmd_interpreter_exec): Add comment.
8462 (restore_current_uiout_cleanup): New function.
8463 (ui_out_free_cleanup): New function.
8464 (mi_on_normal_stop): If finishing an execution command started by
8465 a CLI command, or any kind of breakpoint-like event triggered,
8466 print the stop event to the output (CLI) stream.
8467 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8468
8469 2014-05-21 Pedro Alves <palves@redhat.com>
8470
8471 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8472 current source line having changed.
8473 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8474 * infrun.c (normal_stop): Adjust call to
8475 set_current_sal_from_frame.
8476 * source.c (clear_lines_listed_range): New function.
8477 (set_current_source_symtab_and_line, identify_source_line): Clear
8478 the lines listed range.
8479 (line_info): Handle the first "info line" after the current source
8480 line having changed.
8481 * stack.c (print_stack_frame): Remove center handling.
8482 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8483 center sal.line.
8484
8485 2014-05-21 Pedro Alves <palves@redhat.com>
8486
8487 * inf-child.c (inf_child_mourn_inferior): New function.
8488 * inf-child.h (inf_child_mourn_inferior): New declaration.
8489 * darwin-nat.c (darwin_mourn_inferior): Use
8490 inf_child_mourn_inferior.
8491 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8492 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8493 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8494 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8495 * windows-nat.c (windows_mourn_inferior): Likewise.
8496
8497 2014-05-21 Doug Evans <xdje42@gmail.com>
8498
8499 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8500
8501 2014-05-21 Doug Evans <xdje42@gmail.com>
8502
8503 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8504 (gdbscm_out_of_range_error): Ditto.
8505 (gdbscm_memory_error): Ditto.
8506 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8507 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8508 (gdbscm_out_of_range_error): Update.
8509 (gdbscm_memory_error): Update.
8510 (gdbscm_scm_to_target_string_unsafe): Delete.
8511
8512 2014-05-21 Pedro Alves <palves@redhat.com>
8513
8514 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8515 globals.
8516 (inf_child_open_target): New function.
8517 (inf_child_open): Use inf_child_open_target to push the target
8518 instead of erroring out.
8519 (inf_child_disconnect, inf_child_close)
8520 (inf_child_maybe_unpush_target): New functions.
8521 (inf_child_target): Install inf_child_disconnect and
8522 inf_child_close. Store a pointer to the returned object.
8523 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8524 declarations.
8525 * target.c (auto_connect_native_target): New global.
8526 (show_default_run_target): New function.
8527 (find_default_run_target): Return NULL if automatically connecting
8528 to the native target is disabled.
8529 (_initialize_target): Install set/show auto-connect-native-target.
8530 * NEWS: Mention "set auto-connect-native-target", and "target
8531 native".
8532 * linux-nat.c (super_close): New global.
8533 (linux_nat_close): Call super_close.
8534 (linux_nat_add_target): Store a pointer to the base class's
8535 to_close method.
8536 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8537 inf_child_maybe_unpush.
8538 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8539 already pushed.
8540 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8541 the inferior. Use inf_child_maybe_unpush_target.
8542 (inf_ttrace_attach): Don't push the target if it is already
8543 pushed.
8544 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8545 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8546 after mourning the inferior. Use inf_child_maybe_unpush_target.
8547 (darwin_attach_pid): Don't push the target if it is already
8548 pushed.
8549 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8550 mourning the inferior. Use inf_child_maybe_unpush_target.
8551 (gnu_detach): Use inf_child_maybe_unpush_target.
8552 * go32-nat.c (go32_create_inferior): Don't push the target if it
8553 is already pushed.
8554 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8555 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8556 (procfs_open): Rename to ...
8557 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8558 comments. Can target_preopen before changing node. Call
8559 inf_child_open_target to push the target explicitly.
8560 (procfs_attach): Don't push the target if it is already pushed.
8561 (procfs_detach): Use inf_child_maybe_unpush_target.
8562 (procfs_create_inferior): Don't push the target if it is already
8563 pushed.
8564 (nto_native_ops): New global.
8565 (procfs_open): Reimplement.
8566 (procfs_native_open): New function.
8567 (init_procfs_targets): Install procfs_native_open as to_open of
8568 "target native". Store a pointer to the "native" target in
8569 nto_native_ops.
8570 * procfs.c (procfs_attach): Don't push the target if it is already
8571 pushed.
8572 (procfs_detach): Use inf_child_maybe_unpush_target.
8573 (procfs_mourn_inferior): Only unpush the target after mourning the
8574 inferior. Use inf_child_maybe_unpush_target.
8575 (procfs_init_inferior): Don't push the target if it is already
8576 pushed.
8577 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8578 if it is already pushed.
8579
8580 2014-05-21 Pedro Alves <palves@redhat.com>
8581
8582 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8583 and "procfs" targets are now called "native" instead.
8584
8585 2014-05-21 Pedro Alves <palves@redhat.com>
8586
8587 * go32-nat.c (go32_open): Delete.
8588 (go32_target): Don't override the to_open method.
8589
8590 2014-05-21 Pedro Alves <palves@redhat.com>
8591
8592 * nto-procfs.c (procfs_can_run): New function.
8593 (nto_procfs_ops): New global.
8594 (init_procfs_targets): New, based on procfs_target. Install
8595 "target native" in addition to "target procfs".
8596 (_initialize_procfs): Call init_procfs_targets instead of adding
8597 the target here.
8598
8599 2014-05-21 Pedro Alves <palves@redhat.com>
8600
8601 * windows-nat.c (windows_target): Don't override to_shortname,
8602 to_longname or to_doc.
8603
8604 2014-05-21 Pedro Alves <palves@redhat.com>
8605
8606 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8607 to_doc.
8608
8609 2014-05-21 Pedro Alves <palves@redhat.com>
8610
8611 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8612 to_shortname, to_longname or to_doc.
8613
8614 2014-05-21 Pedro Alves <palves@redhat.com>
8615
8616 * go32-nat.c (go32_target): Don't override to_shortname,
8617 to_longname or to_doc.
8618
8619 2014-05-21 Pedro Alves <palves@redhat.com>
8620
8621 * inf-child.c (inf_child_open): Remove mention of "child".
8622 (inf_child_target): Rename target to "native" instead of "child".
8623
8624 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8625
8626 * Makefile.in (SFILES): Delete "regset.c".
8627 (COMMON_OBS): Delete "regset.o".
8628 * regset.c: Remove.
8629 * regset.h (regset_alloc): Delete prototype.
8630
8631 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8632
8633 * sparc-linux-tdep.c (sparc32_linux_gregset)
8634 (sparc32_linux_fpregset): New static regset structures.
8635 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8636 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8637 'fpregset' fields.
8638 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8639 (sparc64_linux_fpregset): New static regset structures.
8640 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8641 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8642 New static regset structures.
8643 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8644 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8645 New static regset structures.
8646 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8647 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8648 New static regset structures.
8649 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8650 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8651 New static regset structures.
8652 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8653
8654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8655
8656 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8657 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8658 register maps ("regmaps") from "*regset" to "*regmap". Do this
8659 for all regmap types and variables.
8660 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8661 (sparc32_linux_supply_core_gregset)
8662 (sparc32_linux_collect_core_gregset)
8663 (sparc32_linux_supply_core_fpregset)
8664 (sparc32_linux_collect_core_fpregset): Likewise.
8665 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8666 (sparc_gregmap, sparc_fpregmap): ... these.
8667 (sparc_supply_gregset, sparc_collect_gregset)
8668 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8669 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8670 (_initialize_sparc_nat): Rename regmaps.
8671 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8672 (sparc_gregmap, sparc_fpregmap): ... these.
8673 (sparc_supply_gregset, sparc_collect_gregset)
8674 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8675 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8676 Rename macros to...
8677 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8678 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8679 Likewise.
8680 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8681 Rename to...
8682 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8683 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8684 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8685 regmaps.
8686 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8687 (sparc32_bsd_fpregset): Rename to...
8688 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8689 (sparc32_bsd_fpregmap): ... these.
8690 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8691 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8692 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8693 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8694 (struct sparc_gregmap, struct sparc_fpregmap)
8695 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8696 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8697 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8698 (sparc32_supply_regset, sparc32_collect_gregset)
8699 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8700 prototypes.
8701 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8702 (sparc64_linux_ptrace_gregmap): ... this.
8703 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8704 (_initialize_sparc64_linux_nat): Rename regmaps.
8705 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8706 (sparc64_linux_core_gregmap): ... this.
8707 (sparc64_linux_supply_core_gregset)
8708 (sparc64_linux_collect_core_gregset)
8709 (sparc64_linux_supply_core_fpregset)
8710 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8711 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8712 (sparc64_sol2_fpregset): Rename to...
8713 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8714 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8715 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8716 regmaps.
8717 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8718 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8719 (sparc64_bsd_fpregset): Rename to...
8720 (struct sparc_gregmap, sparc64_sol2_gregmap)
8721 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8722 (sparc64_bsd_fpregmap): ... these.
8723 (sparc64_supply_gregset, sparc64_collect_gregset)
8724 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8725 prototypes.
8726 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8727 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8728 (sparc64fbsd_gregmap): ... this.
8729 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8730 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8731 Rename regmaps.
8732 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8733 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8734 (sparc64nbsd_collect_fpregset): Likewise.
8735 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8736 (sparc64nbsd_gregmap): ... this.
8737 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8738 regmaps.
8739 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8740 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8741 (sparc64obsd_gregmap): ... this.
8742 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8743 regmaps.
8744 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8745 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8746 (sparc32nbsd_gregmap): ... this.
8747 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8748 regmaps.
8749
8750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8751
8752 * score-tdep.c (score7_linux_gregset): New static regset
8753 structure.
8754 (score7_linux_regset_from_core_section): Remove dynamic regset
8755 allocation.
8756 (score_gdbarch_init): Drop allocation of tdep structure.
8757 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8758
8759 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8760
8761 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8762 regset structures.
8763 (am33_regset_from_core_section): Remove dynamic regset
8764 allocations.
8765
8766 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8767
8768 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8769 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8770 structures.
8771 (mips_linux_regset_from_core_section): Remove dynamic regset
8772 allocations.
8773 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8774 'gregset64', 'fpregset', and 'fpregset64'.
8775 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8776 deleted tdep fields.
8777
8778 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8779
8780 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8781 regset structures.
8782 (amd64_regset_from_core_section): Remove dynamic regset
8783 allocations.
8784 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8785 structure.
8786 (amd64obsd_regset_from_core_section): Remove dynamic regset
8787 allocation.
8788 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8789 Likewise.
8790 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8791 x86-common regset supply function.
8792 * i386-tdep.c (i386_collect_gregset): Make static.
8793 (i386_gregset): New global regset structure.
8794 (i386_fpregset, i386_xstateregset): New static regset structures.
8795 (i386_regset_from_core_section): Remove dynamic regset
8796 allocations.
8797 (i386_gdbarch_init): Remove initialization of tdep fields
8798 'gregset', 'fpregset', and 'xstateregset'.
8799 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8800 'fpregset', and 'xstateregset'.
8801 (i386_collect_gregset): Remove prototype.
8802 (i386_gregset): New declaration.
8803 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8804 structure.
8805 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8806 allocation.
8807
8808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8809
8810 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8811 (arm_linux_vfpregset): New static regset structures.
8812 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8813 regset structures.
8814 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8815 and 'vfpregset' fields.
8816
8817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8818
8819 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8820 (aarch64_linux_fpregset): New static regset structures.
8821 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8822 of regset structures.
8823 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8824 'fpregset' fields.
8825
8826 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8827
8828 * regset.h (struct regset): Remove gdbarch field.
8829 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8830 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8831 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8832 Likewise.
8833 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8834 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8835 (ppc32_linux_vsxregset): Likewise.
8836 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8837 via the regcache instead of the regset.
8838 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8839 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8840 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8841 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8842 Likewise.
8843
8844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8845
8846 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8847 Constify structures.
8848 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8849 (alphanbsd_aout_gregset): Likewise.
8850 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8851 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8852 Likewise.
8853 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8854 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8855 Likewise.
8856 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8857 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8858 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8859 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8860 * m88k-tdep.c (m88k_gregset): Likewise.
8861 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8862 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8863 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8864 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8865 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8866 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8867 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8868 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8869 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8870 Likewise.
8871 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8872 * sh-tdep.h (sh_corefile_gregset): Likewise.
8873 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8874 * vax-tdep.c (vax_gregset): Likewise.
8875
8876 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8877
8878 Fix TLS access for -static -pthread.
8879 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8880 (try_thread_db_load_1): Initialize it.
8881 (thread_db_get_thread_local_address): Call it if LM is zero.
8882 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8883 * target.h (struct target_ops) (to_get_thread_local_address): Add
8884 load_module_addr comment.
8885
8886 2014-05-21 Pedro Alves <palves@redhat.com>
8887
8888 * dcache.c (dcache_read_memory_partial): If reading the cache line
8889 fails, fallback to reading just the memory the caller wanted.
8890
8891 2014-05-20 Doug Evans <dje@google.com>
8892
8893 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8894 instead of get_current_arch.
8895
8896 2014-05-20 Pedro Alves <palves@redhat.com>
8897
8898 * NEWS: Mention that compare-sections now works with all targets.
8899
8900 * remote.c (PACKET_qCRC): New enum value.
8901 (remote_verify_memory): Don't send qCRC if the target has no
8902 execution. Use packet_support/packet_ok. If the target doesn't
8903 support the qCRC packet, fallback to a deep memory copy.
8904 (compare_sections_command): Say "target image" instead of "remote
8905 executable".
8906 (_initialize_remote): Add PACKET_qCRC to the list of config
8907 packets that have no associated command. Extend comment.
8908 * target.c (simple_verify_memory, default_verify_memory): New
8909 function.
8910 * target.h (struct target_ops) <to_verify_memory>: Default to
8911 default_verify_memory.
8912 (simple_verify_memory): New declaration.
8913 * target-delegates.c: Regenerate.
8914
8915 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8916
8917 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8918
8919 2014-05-20 Hui Zhu <hui@codesourcery.com>
8920 Yao Qi <yao@codesourcery.com>
8921
8922 PR backtrace/16558
8923 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8924 and change address of sp and pc.
8925
8926 2014-05-19 Tom Tromey <tromey@redhat.com>
8927
8928 * gdbtypes.c (rank_function): Use XNEWVEC.
8929 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8930
8931 2014-05-19 Doug Evans <dje@google.com>
8932
8933 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8934 build_type_unit_groups and moved closer to only caller. Remove
8935 arguments. All references updated. Remove outdated .gdb_index
8936 comment.
8937 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8938 build_type_psymtabs_1.
8939
8940 2014-05-19 Doug Evans <dje@google.com>
8941
8942 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8943 n_type_unit_groups, all_type_unit_groups. All uses removed.
8944 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8945 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8946 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8947 (add_type_unit_group_to_table): Delete.
8948
8949 2014-05-19 Doug Evans <dje@google.com>
8950
8951 * eval.c (evaluate_subexp_standard): Add some comments.
8952
8953 2014-05-17 Doug Evans <xdje42@gmail.com>
8954
8955 * progspace.c (remove_program_space): Delete, unused.
8956 * progspace.h (remove_program_space): Ditto.
8957
8958 2014-05-17 Doug Evans <xdje42@gmail.com>
8959
8960 * inferior.c (prune_inferiors): Fix comment.
8961 (remove_inferior_command): Call prune_program_spaces.
8962
8963 2014-05-16 Doug Evans <dje@google.com>
8964
8965 New command line option -D.
8966 * NEWS: Mention it.
8967 * main.c (set_gdb_data_directory): New function.
8968 (captured_main): Recognize -D. Flag error for --data-directory "".
8969 Call set_gdb_data_directory.
8970 (print_gdb_help): Print --data-directory, -D.
8971 * main.h (set_gdb_data_directory): Declare.
8972 * top.c (staged_gdb_datadir): New static global.
8973 (set_gdb_datadir): Call set_gdb_data_directory
8974 (show_gdb_datadir): New function.
8975 (init_main): Update init of data-directory parameter.
8976
8977 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8978
8979 Import the "dirfd" gnulib module.
8980 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8981 * gnulib/aclocal.m4: Update.
8982 * gnulib/config.in: Update.
8983 * gnulib/configure: Update.
8984 * gnulib/import/Makefile.am: Update.
8985 * gnulib/import/Makefile.in: Update.
8986 * gnulib/import/dirfd.c: New.
8987 * gnulib/import/m4/dirfd.m4: New.
8988 * gnulib/import/m4/gnulib-cache.m4: Update.
8989 * gnulib/import/m4/gnulib-comp.m4: Update.
8990
8991 2014-05-16 Pierre Muller <muller@sourceware.org>
8992 Yao Qi <yao@codesourcery.com>
8993
8994 * valprint.c (print_wchar): Move the code on checking whether
8995 W is a printable wide char to the default branch of switch
8996 statement below. Call wchar_printable instead of gdb_iswprint.
8997
8998 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8999
9000 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
9001 ldr.w and ldrd instructions.
9002
9003 2014-05-15 Doug Evans <dje@google.com>
9004
9005 * dwarf2read.c (read_structure_type): Delete outdated comments.
9006
9007 2014-05-14 Tom Tromey <tromey@redhat.com>
9008
9009 * macrocmd.c (print_macro_definition): Reindent.
9010
9011 2014-05-13 Doug Evans <xdje42@gmail.com>
9012
9013 * python/py-cmd.c (cmdpy_completer): Add comment.
9014 (completers): Make const.
9015
9016 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9017
9018 * infrun.c (resume): Remove should_resume (unused). Move up
9019 declaration of resume_ptid.
9020
9021 2014-05-13 Tom Tromey <tromey@redhat.com>
9022
9023 * language.h (unop_type_check): Remove.
9024 (binop_type_check): Don't declare.
9025
9026 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9027
9028 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9029 call to regcache_raw_collect.
9030
9031 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9032
9033 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9034 mi_console->quote as the quoting character.
9035
9036 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9037
9038 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9039
9040 2014-04-29 Tom Tromey <tromey@redhat.com>
9041
9042 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9043 "show debug varobj".
9044
9045 2014-05-07 Kyle McMartin <kyle@redhat.com>
9046
9047 Pushed by Joel Brobecker <brobecker@adacore.com>.
9048 * aarch64-tdep.c (aarch64_software_single_step): New function.
9049 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9050 with aarch64_software_single_step.
9051
9052 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9053
9054 GDB 7.7.1 released.
9055
9056 2014-05-05 Keith Seitz <keiths@redhat.com>
9057
9058 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9059 variable or history value is successfully parsed.
9060
9061 2014-05-05 Yao Qi <yao@codesourcery.com>
9062 Pedro Alves <palves@redhat.com>
9063
9064 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9065 address of blocks that intersects the requested range. Trim
9066 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9067 sections.
9068 * ctf.c (ctf_xfer_partial): Likewise.
9069
9070 2014-05-05 Yao Qi <yao@codesourcery.com>
9071
9072 * printcmd.c (display_command): Remove the check to
9073 target_has_execution.
9074
9075 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9076
9077 * ppcobsd-nat.c: Include "obsd-nat.h".
9078 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9079 add_target.
9080 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9081
9082 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9083
9084 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9085 and 16-bit signed and unsigned arguments. Update comment.
9086 (stap_parse_probe_arguments): Extend code to handle such
9087 arguments. Use warning instead of complaint to notify about
9088 unrecognized bitness.
9089
9090 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9091
9092 PR breakpoints/16889
9093 * stap-probe.c (stap_parse_probe_arguments): Simplify
9094 check for non-prefixed probes (i.e., probes whose
9095 arguments do not start with "N@"). Always set the
9096 argument type to a sane value.
9097
9098 2014-05-01 David Taylor <dtaylor@emc.com>
9099
9100 * remote.c (compare_sections_command): Add -r option to compare
9101 all loadable read-only sections.
9102
9103 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9104
9105 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9106 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9107 Update all callers.
9108 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9109 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9110 Remove unused CORE_ADDR argument. Update all callers.
9111
9112 2014-04-29 Pedro Alves <palves@redhat.com>
9113
9114 * remote.c (struct packet_config) <detect>: Extend comment.
9115 (add_packet_config_cmd): Don't set the config's detect or support
9116 fields here.
9117 (init_all_packet_configs): Also initialize the config's 'detect'
9118 field.
9119 (reset_all_packet_configs_support): New function.
9120 (remote_open_1): Call reset_all_packet_configs_support instead of
9121 init_all_packet_configs.
9122 (_initialize_remote): Initialize all packet configs. Assert that
9123 all packets have an associated command, except a few known
9124 outliers.
9125
9126 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9127
9128 * dwarf2read.c (read_subrange_type): Handle dynamic
9129 DW_AT_lower_bound attributes.
9130
9131 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9132
9133 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9134 dynamic bounds before computing its upper bound.
9135 (ada_discrete_type_low_bound): Same as above with the lower bound.
9136
9137 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9138
9139 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9140 range types. Adjust the array handling implementation to
9141 take advantage of this change.
9142 (resolve_dynamic_range): New function, mostly extracted from
9143 resolve_dynamic_bounds.
9144 (resolve_dynamic_array): New function, mostly extracted from
9145 resolve_dynamic_bounds.
9146 (resolve_dynamic_bounds): Delete.
9147 (resolve_dynamic_type): Reimplement. Add handling of
9148 TYPE_CODE_RANGE types.
9149
9150 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9151
9152 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9153 handling of parallel ___XA types.
9154
9155 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9156
9157 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9158 unnecessary second call to static_unwrap_type.
9159
9160 2014-04-27 Hui Zhu <hui@codesourcery.com>
9161
9162 * stack.c (print_frame_info): Call do_gdb_disassembly with
9163 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9164
9165 2014-04-26 Doug Evans <xdje42@gmail.com>
9166
9167 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9168
9169 2014-04-25 Pedro Alves <palves@redhat.com>
9170
9171 PR server/16255
9172 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9173 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9174 and newline from built string.
9175 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9176 (linux_ptrace_attach_fail_reason): ... this.
9177 * linux-nat.c (linux_nat_attach): Adjust to use
9178 linux_ptrace_attach_fail_reason.
9179
9180 2014-04-25 Pedro Alves <palves@redhat.com>
9181
9182 * remote.c (struct remote_state): Remove multi_process_aware,
9183 non_stop_aware, cond_tracepoints, cond_breakpoints,
9184 breakpoint_commands, fast_tracepoints, static_tracepoints,
9185 install_in_trace, disconnected_tracing,
9186 enable_disable_tracepoints, string_tracing, and
9187 augmented_libraries_svr4_read fields.
9188 (remote_multi_process_p): Move further below in the file.
9189 (struct packet_config): Add comments.
9190 (update_packet_config): Delete function.
9191 (show_packet_config_cmd): Use packet_config_support.
9192 (add_packet_config_cmd): Use NULL as set callback.
9193 (packet_ok): "set remote foo-packet"-style commands no longer
9194 change config->supported -- adjust.
9195 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9196 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9197 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9198 (PACKET_QNonStop, PACKET_multiprocess_feature)
9199 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9200 (PACKET_DisconnectedTracing_feature)
9201 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9202 (set_remote_protocol_packet_cmd): Delete function.
9203 (packet_config_support, packet_support): New functions.
9204 (set_remote_protocol_Z_packet_cmd): Don't call
9205 update_packet_config.
9206 (remote_query_attached, remote_pass_signals)
9207 (remote_program_signals, remote_threads_info)
9208 (remote_threads_extra_info, remote_start_remote): Use
9209 packet_support.
9210 (remote_start_remote): Use packet_config_support and
9211 packet_support.
9212 (init_all_packet_configs): Set all packets to unknown support,
9213 instead of calling update_packet_config.
9214 (remote_check_symbols): Use packet_support.
9215 (remote_supported_packet): Unconditionally set the packet config's
9216 support status.
9217 (remote_multi_process_feature, remote_non_stop_feature)
9218 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9219 (remote_breakpoint_commands_feature)
9220 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9221 (remote_install_in_trace_feature)
9222 (remote_disconnected_tracing_feature)
9223 (remote_enable_disable_tracepoint_feature)
9224 (remote_string_tracing_feature)
9225 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9226 (remote_protocol_features): Adjust to use remote_supported_packet
9227 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9228 "ConditionalTracepoints", "ConditionalBreakpoints",
9229 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9230 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9231 "EnableDisableTracepoints", and "tracenz".
9232 (remote_query_supported): Use packet_support.
9233 (remote_open_1): Adjust.
9234 (extended_remote_attach_1): Use packet_support. Switch on the
9235 result of packet_ok instead of checking whether the packet ended
9236 up disabled.
9237 (remote_vcont_resume): Use packet_support.
9238 (remote_resume, remote_stop_ns, fetch_register_using_p)
9239 (remote_prepare_to_store, store_register_using_P)
9240 (check_binary_download, remote_write_bytes): Use packet_support.
9241 (remote_vkill): Use packet_support. Switch on the result of
9242 packet_ok instead of checking whether the packet ended up
9243 disabled.
9244 (extended_remote_supports_disable_randomization): Use
9245 packet_support.
9246 (extended_remote_run): Switch on the result of packet_ok instead
9247 of checking whether the packet ended up disabled.
9248 (remote_insert_breakpoint, remote_remove_breakpoint)
9249 (remote_insert_watchpoint, remote_remove_watchpoint)
9250 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9251 packet_support.
9252 (remote_search_memory): Use packet_config_support.
9253 (remote_get_thread_local_address, remote_get_tib_address)
9254 (remote_hostio_send_command, remote_can_execute_reverse): Use
9255 packet_support.
9256 (remote_supports_cond_tracepoints)
9257 (remote_supports_cond_breakpoints)
9258 (remote_supports_fast_tracepoints)
9259 (remote_supports_static_tracepoints)
9260 (remote_supports_install_in_trace)
9261 (remote_supports_enable_disable_tracepoint)
9262 (remote_supports_string_tracing)
9263 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9264 the packet config says the feature is enabled or disabled.
9265 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9266 (remote_get_trace_status): Use packet_support.
9267 (remote_set_disconnected_tracing): Adjust to check whether the
9268 feature is enabled with packet_support.
9269 (remote_set_trace_buffer_size, remote_use_agent)
9270 (remote_can_use_agent, remote_supports_btrace): Use
9271 packet_support.
9272 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9273 Use packet_config_support.
9274 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9275 the packet config says the feature is enabled or disabled.
9276 (set_range_stepping): Use packet_support.
9277
9278 2014-04-25 Tom Tromey <tromey@redhat.com>
9279
9280 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9281 argument.
9282
9283 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9284
9285 * NEWS: Mention support for C99 variable length arrays.
9286
9287 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9288
9289 * ada-lang.c (standard_exc): Expand introductory comment.
9290
9291 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9292 Walfred Tedeschi <walfred.tedeschi@intel.com>
9293
9294 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9295 AVX512 registers.
9296 (amd64_linux_read_description): Add code to handle AVX512 xstate
9297 mask and return respective tdesc.
9298 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9299 and features/i386/x32-avx512-linux.c.
9300 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9301 (amd64_linux_core_read_description): Add code to handle AVX512
9302 xstate mask and return respective tdesc.
9303 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9304 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9305 calculation.
9306 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9307 (tdesc_amd64_avx512_linux): New prototype.
9308 (tdesc_x32_avx512_linux): Likewise.
9309 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9310 features/i386/x32-avx512.c.
9311 (amd64_ymm_avx512_names): New register names for pseudo
9312 registers YMM16-31.
9313 (amd64_ymmh_avx512_names): New register names for raw registers
9314 YMMH16-31.
9315 (amd64_k_names): New register names for K registers.
9316 (amd64_zmmh_names): New register names for ZMM raw registers.
9317 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9318 (amd64_xmm_avx512_names): New register names for XMM16-31
9319 registers.
9320 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9321 registers.
9322 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9323 if feature is present.
9324 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9325 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9326 (AMD64_NUM_REGS): Adjust to new number of registers.
9327 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9328 registers supplied via XSTATE by AVX512 registers.
9329 (i386_linux_read_description): Add case for AVX512.
9330 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9331 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9332 (i386_linux_core_read_description): Add case for AVX512.
9333 (i386_linux_init_abi): Install supported register note section
9334 for AVX512.
9335 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9336 AVX512.
9337 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9338 registers to be number of zmm7h + 1.
9339 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9340 * i386-tdep.c: Include features/i386/i386-avx512.c.
9341 (i386_zmm_names): Add ZMM pseudo register names array.
9342 (i386_zmmh_names): Add ZMM raw register names array.
9343 (i386_k_names): Add K raw register names array.
9344 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9345 registers. AVX512 has 16 more ZMM registers than there are YMM
9346 registers.
9347 (i386_zmmh_regnum_p): Add function to look up register number of
9348 ZMM raw registers.
9349 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9350 (i386_k_regnum_p): Likewise for K raw registers.
9351 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9352 registers added by AVX512.
9353 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9354 registers added by AVX512.
9355 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9356 added by AVX512.
9357 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9358 (i386_pseudo_register_name): Add ZMM pseudo registers.
9359 (i386_zmm_type): Construct and return vector registers type for ZMM
9360 registers.
9361 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9362 ZMM0-31 pseudo registers and K registers.
9363 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9364 and YMM16-31 registers from register cache.
9365 (i386_pseudo_register_write): Add code to write K, ZMM and
9366 YMM16-31 registers.
9367 (i386_register_reggroup_p): Add code to include/exclude AVX512
9368 registers in/from respective register groups.
9369 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9370 registers if feature is present in xcr0.
9371 (i386_gdbarch_init): Add code to initialize AVX512 feature
9372 variables in tdep structure, wire in pseudo registers and call
9373 initialize_tdesc_i386_avx512.
9374 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9375 variables.
9376 (i386_regnum): Add AVX512 registers.
9377 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9378 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9379 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9380 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9381 512 bits wide.
9382 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9383 (i386_ymm_avx512_regnum_p): Likewise.
9384 (i386_k_regnum_p): Likewise.
9385 (i386_zmm_regnum_p): Likewise.
9386 (i386_zmmh_regnum_p): Likewise.
9387 * i387-tdep.c : Update year in copyright notice.
9388 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9389 XSAVE buffer.
9390 (XSAVE_YMM_AVX512_ADDR): New macro.
9391 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9392 XSAVE buffer.
9393 (XSAVE_XMM_AVX512_ADDR): New macro.
9394 (xsave_avx512_k_offset): New table for K register offsets in
9395 XSAVE buffer.
9396 (XSAVE_AVX512_K_ADDR): New macro.
9397 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9398 in XSAVE buffer.
9399 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9400 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9401 buffer.
9402 (i387_collect_xsave): Add code to collect AVX512 registers from
9403 XSAVE buffer.
9404 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9405 of XMM16-31 registers.
9406 (I387_NUM_K_REGS): New define for number of K registers.
9407 (I387_K0_REGNUM): New define for K0 register number.
9408 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9409 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9410 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9411 registers.
9412 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9413 (I387_XMM16_REGNUM): New define for XMM16 register number.
9414 (I387_YMM0_REGNUM): New define for YMM0 register number.
9415 (I387_KEND_REGNUM): New define for last K register number.
9416 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9417 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9418 number.
9419 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9420 number.
9421 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9422 size.
9423 * features/Makefile: Add AVX512 related files.
9424 * features/i386/32bit-avx512.xml: New file.
9425 * features/i386/64bit-avx512.xml: Likewise.
9426 * features/i386/amd64-avx512-linux.c: Likewise.
9427 * features/i386/amd64-avx512-linux.xml: Likewise.
9428 * features/i386/amd64-avx512.c: Likewise.
9429 * features/i386/amd64-avx512.xml: Likewise.
9430 * features/i386/i386-avx512-linux.c: Likewise.
9431 * features/i386/i386-avx512-linux.xml: Likewise.
9432 * features/i386/i386-avx512.c: Likewise.
9433 * features/i386/i386-avx512.xml: Likewise.
9434 * features/i386/x32-avx512-linux.c: Likewise.
9435 * features/i386/x32-avx512-linux.xml: Likewise.
9436 * features/i386/x32-avx512.c: Likewise.
9437 * features/i386/x32-avx512.xml: Likewise.
9438 * regformats/i386/amd64-avx512-linux.dat: New file.
9439 * regformats/i386/amd64-avx512.dat: Likewise.
9440 * regformats/i386/i386-avx512-linux.dat: Likewise.
9441 * regformats/i386/i386-avx512.dat: Likewise.
9442 * regformats/i386/x32-avx512-linux.dat: Likewise.
9443 * regformats/i386/x32-avx512.dat: Likewise.
9444 * NEWS: Add note about new support for AVX512.
9445
9446
9447 2014-04-23 Pedro Alves <palves@redhat.com>
9448
9449 * breakpoint.c (insert_bp_location): Tolerate errors if the
9450 breakpoint is set in a user-loaded objfile.
9451 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9452 location is marked shlib_disabled. If the breakpoint is set in a
9453 user-loaded objfile is a GDB-side memory breakpoint, validate it
9454 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9455 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9456 flag.
9457 * mem-break.c (memory_validate_breakpoint): New function.
9458 * objfiles.c (userloaded_objfile_contains_address_p): New
9459 function.
9460 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9461 * target.h (memory_validate_breakpoint): New declaration.
9462
9463 2014-04-23 Pedro Alves <palves@redhat.com>
9464
9465 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9466 the breakpoint is set in a shared library, only suppress
9467 errors for software breakpoints, not hardware breakpoints.
9468
9469 2014-04-22 Pedro Alves <palves@redhat.com>
9470
9471 * infrun.c (schedlock_applies): New function, factored out from
9472 find_thread_needs_step_over.
9473 (find_thread_needs_step_over): Use it.
9474 (switch_back_to_stepped_thread): Always clear trap_expected if the
9475 step over is finished. Return early if scheduler locking applies.
9476 Look for the stepping thread and a potential step-over thread with
9477 a single loop.
9478 (currently_stepping_or_nexting_callback): Delete.
9479
9480 2014-04-22 Nick Clifton <nickc@redhat.com>
9481
9482 * NEWS: Mention that ARM sim now supports tracing.
9483
9484 2014-04-22 Yao Qi <yao@codesourcery.com>
9485
9486 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9487 to ...
9488 * tracefile.c (tracefile_fetch_registers): ... it. New
9489 function.
9490 * tracefile.h (tracefile_fetch_registers): Declare.
9491 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9492 tracefile_fetch_registers.
9493
9494 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9495
9496 PR gdb/14018
9497 * windows-nat.c (thread_rec): Don't display a warning when
9498 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9499 fails for any reason, set th->suspended to -1, so that we don't
9500 try to resume such a thread. Also, don't return NULL in these
9501 cases, to avoid completely ruin the session due to "PC register is
9502 not available" error.
9503 (do_windows_fetch_inferior_registers): Check errors in
9504 GetThreadContext call.
9505 (windows_continue): Accept an additional argument KILLED; if not
9506 zero, ignore errors in the SetThreadContext call, since the
9507 inferior was killed and is shutting down.
9508 (windows_resume, get_windows_debug_event)
9509 (windows_create_inferior, windows_mourn_inferior)
9510 (windows_kill_inferior): All callers of windows_continue changed
9511 to adjust to its new calling sequence.
9512
9513 2014-04-19 Yao Qi <yao@codesourcery.com>
9514
9515 * ctf.c (ctf_open): Call post_create_inferior.
9516
9517 2014-04-19 Yao Qi <yao@codesourcery.com>
9518
9519 * ctf.c (handle_id): New static variable.
9520 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9521 value. Get the declaration of event "register" and get length
9522 of field "contents".
9523
9524 2014-04-19 Yao Qi <yao@codesourcery.com>
9525
9526 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9527
9528 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9529
9530 * valops.c (oload_method_static): Remove unnecessary argument
9531 METHOD. Update all callers.
9532
9533 2014-04-18 Pedro alves <palves@redhat.com>
9534 Tom Tromey <tromey@redhat.com>
9535
9536 PR backtrace/15558
9537 * frame.c (get_prev_frame_1): Rename to ...
9538 (get_prev_frame_always): ... this, and make extern. Adjust.
9539 (skip_artificial_frames): Use get_prev_frame_always.
9540 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9541 (get_frame_unwind_stop_reason): Adjust to rename.
9542 * frame.h (get_prev_frame_always): Declare.
9543 * inline-frame.c: Include frame.h.
9544 (inline_frame_this_id): Use get_prev_frame_always.
9545
9546 2014-04-18 Tristan Gingold <gingold@adacore.com>
9547
9548 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9549 code by using bfd_mach_o_get_base_address.
9550
9551 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9552
9553 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9554 (spu_ax_pseudo_register_collect): New function.
9555 (spu_ax_pseudo_register_push_stack): Likewise.
9556 (spu_dwarf_reg_to_regnum): Likewise.
9557 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9558
9559 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9560
9561 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9562 Replace FRAME argument with FRAME_ID.
9563 * gdbarch.c, gdbarch.h: Regenerate.
9564 * findvar.c (default_value_from_register): Add GDBARCH argument;
9565 replace FRAME by FRAME_ID. No longer call get_frame_id.
9566 (value_from_register): Update call to gdbarch_value_from_register.
9567 * value.h (default_value_from_register): Update prototype.
9568 * s390-linux-tdep.c (s390_value_from_register): Update interface
9569 and call to default_value_from_register.
9570 * spu-tdep.c (spu_value_from_register): Likewise.
9571
9572 * findvar.c (address_from_register): Remove TYPE argument.
9573 Do not call value_from_register; use gdbarch_value_from_register
9574 with null_frame_id instead.
9575 * value.h (address_from_register): Update prototype.
9576 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9577 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9578 address_from_register interface change.
9579
9580 2014-04-17 Yao Qi <yao@codesourcery.com>
9581
9582 * gdbtypes.h: Update comments to link to types and macros'
9583 definitions.
9584
9585 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9586
9587 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9588
9589 2014-04-16 Keith Seitz <keiths@redhat.com>
9590
9591 PR gdb/15827
9592 * dwarf2read.c (skip_one_die): Check that all relative-offset
9593 sibling DIEs fall within range of the current reader's buffer.
9594 (read_partial_die): Likewise.
9595
9596 2014-04-16 Keith Seitz <keiths@redhat.com>
9597
9598 PR c++/16597
9599 * cp-namespace.c (lookup_symbol_file): If the type name of
9600 `this' is NULL, return immediately.
9601
9602 2014-04-14 Keith Seitz <keiths@redhat.com>
9603
9604 PR c++/16253
9605 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9606 from symbol_matches_domain in symtab.c. All local callers
9607 of symbol_matches_domain updated.
9608 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9609 search STRUCT_DOMAIN.
9610 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9611 independently. standard_lookup will do that automatically.
9612 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9613 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9614 (cp_lookup_symbol_in_namespace): Likewise.
9615 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9616 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9617 may return a STRUCT_DOMAIN match.
9618 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9619 * cp-support.c: Include language.h.
9620 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9621 VAR_DOMAIN.
9622 * psymtab.c (match_partial_symbol): Compare the requested
9623 domain with the symbol's domain directly.
9624 (lookup_partial_symbol): Likewise.
9625 * symtab.c (lookup_symbol_in_language): Explain when/why
9626 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9627 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9628 appropriate languages.
9629 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9630 and moved to ada-lang.c
9631 (lookup_block_symbol): Explain that this function only returns
9632 symbol matching the requested DOMAIN.
9633 Compare the requested domain with the symbol's domain directly.
9634 (iterate_over_symbols): Compare the requested domain with the
9635 symbol's domain directly.
9636 * symtab.h (symbol_matches_domain): Remove.
9637
9638 2014-04-14 Tom Tromey <tromey@redhat.com>
9639
9640 PR c++/15246:
9641 * c-exp.y (type_aggregate_p): New function.
9642 (qualified_name, classify_inner_name): Use it.
9643 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9644 and TYPE_TARGET_TYPE of an enum type.
9645 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9646 an enum type.
9647 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9648 handle TYPE_DECLARED_CLASS.
9649 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9650 types.
9651 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9652 * valops.c (enum_constant_from_type): New function.
9653 (value_aggregate_elt): Use it.
9654 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9655 TYPE_CODE_ENUM.
9656
9657 2014-04-14 Tom Tromey <tromey@redhat.com>
9658
9659 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9660 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9661 const.
9662 * value.h (value_aggregate_elt): Update.
9663
9664 2014-04-14 Tom Tromey <tromey@redhat.com>
9665
9666 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9667
9668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9669
9670 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9671 (evaluate_subexp_standard): Pass noside argument.
9672 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9673 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9674 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9675 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9676 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9677
9678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9679
9680 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9681 points to a constant blob.
9682
9683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9684
9685 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9686 property and store it as the high bound and flag the range accordingly.
9687 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9688 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9689 * gdbtypes.h (enum range_flags): New enum.
9690 (struct range_bounds): Add flags member.
9691
9692 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9693
9694 * c-typeprint.c (c_type_print_varspec_suffix): Added
9695 check for not yet resolved high bound. If unresolved, print
9696 "variable length" string to the console instead of random
9697 length.
9698
9699 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9700
9701 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9702 value.
9703 (ada_template_to_fixed_record_type_1): Likewise.
9704 (ada_to_fixed_type_1): Likewise.
9705 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9706 (cp_print_value): Likewise.
9707 * d-valprint.c (dynamic_array_type): Likewise.
9708 * findvar.c (address_of_variable): Likewise.
9709 * jv-valprint.c (java_value_print): Likewise.
9710 * valops.c (value_ind): Likewise.
9711 * value.c (coerce_ref): Likewise.
9712
9713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9714
9715 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9716 value and retrieve the dynamic type size.
9717
9718 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9719
9720 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9721 passed to sizeof is dynamic evaluate the argument to compute the length.
9722
9723 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9724 Joel Brobecker <brobecker@adacore.com>
9725
9726 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9727 (dwarf2_evaluate_property): New function.
9728 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9729 * dwarf2read.c (attr_to_dynamic_prop): New function.
9730 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9731 attribute.
9732 * gdbtypes.c: Include dwarf2loc.h.
9733 (is_dynamic_type): New function.
9734 (resolve_dynamic_type): New function.
9735 (resolve_dynamic_bounds): New function.
9736 (get_type_length): New function.
9737 (check_typedef): Use get_type_length to compute type length.
9738 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9739 (TYPE_LOW_BOUND_KIND): New macro.
9740 (is_dynamic_type): New function prototype.
9741 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9742 to resolve dynamic properties of the type. Update comment.
9743 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9744
9745 2014-04-14 Richard Henderson <rth@redhat.com>
9746
9747 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9748
9749 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9750 Doug Evans <xdje42@gmail.com>
9751
9752 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9753 dereference TYPE_CODE_REF values.
9754
9755 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9756
9757 Revert the following changes due to regressions:
9758
9759 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9760 (dwarf2_evaluate_property): New function.
9761 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9762 * dwarf2read.c (attr_to_dynamic_prop): New function.
9763 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9764 attribute.
9765 * gdbtypes.c: Include dwarf2loc.h.
9766 (is_dynamic_type): New function.
9767 (resolve_dynamic_type): New function.
9768 (resolve_dynamic_bounds): New function.
9769 (get_type_length): New function.
9770 (check_typedef): Use get_type_length to compute type length.
9771 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9772 (TYPE_LOW_BOUND_KIND): New macro.
9773 (is_dynamic_type): New function prototype.
9774 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9775 to resolve dynamic properties of the type. Update comment.
9776 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9777
9778 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9779 passed to sizeof is dynamic evaluate the argument to compute the length.
9780
9781 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9782 value and retrieve the dynamic type size.
9783
9784 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9785 (ada_template_to_fixed_record_type_1): Likewise.
9786 (ada_to_fixed_type_1): Likewise.
9787 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9788 (cp_print_value): Likewise.
9789 * d-valprint.c (dynamic_array_type): Likewise.
9790 * eval.c (evaluate_subexp_with_coercion): Likewise.
9791 * findvar.c (address_of_variable): Likewise.
9792 * jv-valprint.c (java_value_print): Likewise.
9793 * valops.c (value_ind): Likewise.
9794 * value.c (coerce_ref): Likewise.
9795
9796 * c-typeprint.c (c_type_print_varspec_suffix): Added
9797 check for not yet resolved high bound. If unresolved, print
9798 "variable length" string to the console instead of random
9799 length.
9800
9801 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9802 property and store it as the high bound and flag the range accordingly.
9803 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9804 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9805 * gdbtypes.h (enum range_flags): New enum.
9806 (struct range_bounds): Add flags member.
9807
9808 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9809 points to a constant blob.
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
9819 2014-04-11 Keith Seitz <keiths@redhat.com>
9820
9821 PR c++/16675
9822 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9823 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9824 reference types.
9825
9826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9827
9828 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9829 (evaluate_subexp_standard): Pass noside argument.
9830 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9831 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9832 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9833 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9834 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9835
9836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9837
9838 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9839 points to a constant blob.
9840
9841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9842
9843 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9844 property and store it as the high bound and flag the range accordingly.
9845 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9846 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9847 * gdbtypes.h (enum range_flags): New enum.
9848 (struct range_bounds): Add flags member.
9849
9850 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9851
9852 * c-typeprint.c (c_type_print_varspec_suffix): Added
9853 check for not yet resolved high bound. If unresolved, print
9854 "variable length" string to the console instead of random
9855 length.
9856
9857 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9858
9859 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9860 (ada_template_to_fixed_record_type_1): Likewise.
9861 (ada_to_fixed_type_1): Likewise.
9862 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9863 (cp_print_value): Likewise.
9864 * d-valprint.c (dynamic_array_type): Likewise.
9865 * eval.c (evaluate_subexp_with_coercion): Likewise.
9866 * findvar.c (address_of_variable): Likewise.
9867 * jv-valprint.c (java_value_print): Likewise.
9868 * valops.c (value_ind): Likewise.
9869 * value.c (coerce_ref): Likewise.
9870
9871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9872
9873 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9874 value and retrieve the dynamic type size.
9875
9876 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9877
9878 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9879 passed to sizeof is dynamic evaluate the argument to compute the length.
9880
9881 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9882
9883 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9884 (dwarf2_evaluate_property): New function.
9885 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9886 * dwarf2read.c (attr_to_dynamic_prop): New function.
9887 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9888 attribute.
9889 * gdbtypes.c: Include dwarf2loc.h.
9890 (is_dynamic_type): New function.
9891 (resolve_dynamic_type): New function.
9892 (resolve_dynamic_bounds): New function.
9893 (get_type_length): New function.
9894 (check_typedef): Use get_type_length to compute type length.
9895 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9896 (TYPE_LOW_BOUND_KIND): New macro.
9897 (is_dynamic_type): New function prototype.
9898 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9899 to resolve dynamic properties of the type. Update comment.
9900 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9901
9902 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9903
9904 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9905 declaring high/low bounds and change uses accordingly. Call
9906 create_range_type instead of create_static_range_type.
9907 * gdbtypes.c (create_range_type): New function.
9908 (create_range_type): Convert bounds into struct bound_prop and pass
9909 them to create_range_type.
9910 * gdbtypes.h (struct bound_prop): New struct.
9911 (create_range_type): New function prototype.
9912 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9913 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9914 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9915 part of the bound.
9916 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9917
9918 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9919
9920 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9921 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9922 * ada-lang.c: All uses of create_range_type updated.
9923 * coffread.c: All uses of create_range_type updated.
9924 * dwarf2read.c: All uses of create_range_type updated.
9925 * f-exp.y: All uses of create_range_type updated.
9926 * m2-valprint.c: All uses of create_range_type updated.
9927 * mdebugread.c: All uses of create_range_type updated.
9928 * stabsread.c: All uses of create_range_type updated.
9929 * valops.c: All uses of create_range_type updated.
9930 * valprint.c: All uses of create_range_type updated.
9931
9932 2014-04-10 Pedro Alves <palves@redhat.com>
9933
9934 * breakpoint.c (single_step_breakpoints)
9935 (single_step_gdbarch): Move up in the file.
9936 (one_breakpoint_xfer_memory): New function, factored out from ...
9937 (breakpoint_xfer_memory): ... here. Also process single-step
9938 breakpoints.
9939
9940 2014-04-09 Tristan Gingold <gingold@adacore.com>
9941
9942 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9943 comments.
9944 (darwin_decode_exception_message): Free port only after use.
9945
9946 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9947
9948 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9949 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9950 when setting the size of call_length.
9951
9952 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9953
9954 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9955 dereference TYPE_CODE_REF values.
9956
9957 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9958
9959 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9960 end of warning message.
9961
9962 2014-04-03 Doug Evans <dje@google.com>
9963
9964 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9965 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9966
9967 2014-04-02 Alan Modra <amodra@gmail.com>
9968
9969 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9970 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9971 (struct symbol_file_add_from_memory_args): Add size field.
9972 (find_vdso_size): New function.
9973 (add_vsyscall_page): Attempt to find vdso size.
9974
9975 2014-04-01 Doug Evans <dje@google.com>
9976
9977 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9978
9979 2014-04-01 Tristan Gingold <gingold@adacore.com>
9980
9981 * darwin-nat.c (darwin_encode_reply): Add prototype.
9982 (darwin_decode_exception_message): Reply to unknown inferiors.
9983 (darwin_decode_message): Handle message by id. Ignore message
9984 to unknown inferior.
9985 (darwin_wait): Discard unknown messages, add debug trace.
9986
9987 2014-03-31 Doug Evans <dje@google.com>
9988
9989 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9990 comp_dir_string.
9991
9992 2014-03-31 Doug Evans <dje@google.com>
9993
9994 New option "set print symbol-loading".
9995 * NEWS: Mention it.
9996 * solib.c (solib_read_symbols): Only print symbol loading messages
9997 if requested.
9998 (solib_add): If symbol loading is in "brief" mode, notify user
9999 symbols are being loaded.
10000 (reload_shared_libraries_1): Ditto.
10001 * symfile.c (print_symbol_loading_off): New static global.
10002 (print_symbol_loading_brief): New static global.
10003 (print_symbol_loading_full): New static global.
10004 (print_symbol_loading_enums): New static global.
10005 (print_symbol_loading): New static global.
10006 (print_symbol_loading_p): New function.
10007 (symbol_file_add_with_addrs): Only print symbol loading messages
10008 if requested.
10009 (_initialize_symfile): Register "print symbol-loading" set/show
10010 command.
10011 * symfile.h (print_symbol_loading_p): Declare.
10012
10013 2014-03-30 Doug Evans <xdje42@gmail.com>
10014
10015 * infrun.c (set_last_target_status): New function.
10016 (handle_inferior_event): Call it.
10017
10018 2014-03-30 Doug Evans <xdje42@gmail.com>
10019
10020 * inferior.h (enum stop_kind): Improve comment.
10021
10022 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10023
10024 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10025 a reference, strip the reference layer before calling
10026 the lang_ops value_has_mutated callback.
10027
10028 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10029
10030 Remove some globals from our parser.
10031 * language.c (unk_lang_parser): Add "struct parser_state"
10032 argument.
10033 * language.h (struct language_defn) <la_parser>: Likewise.
10034 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10035 (initialize_expout): Add "struct parser_state" argument.
10036 Rewrite function to use the parser state.
10037 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10038 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10039 write_exp_elt_longcst, write_exp_elt_dblcst,
10040 write_exp_elt_decfloatcst, write_exp_elt_type,
10041 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10042 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10043 write_dollar_variable): Likewise.
10044 (parse_exp_in_context_1): Use parser state.
10045 (insert_type_address_space): Add "struct parser_state" argument.
10046 Use parser state.
10047 (increase_expout_size): New function.
10048 * parser-defs.h: Forward declare "struct language_defn" and
10049 "struct parser_state".
10050 (expout, expout_size, expout_ptr): Remove extern declarations.
10051 (parse_gdbarch, parse_language): Rewrite macro declarations to
10052 accept the parser state.
10053 (struct parser_state): New struct.
10054 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10055 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10056 write_exp_elt_decfloatcst, write_exp_elt_type,
10057 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10058 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10059 write_exp_msymbol, write_dollar_variable,
10060 mark_struct_expression, insert_type_address_space): Add "struct
10061 parser_state" argument.
10062 (increase_expout_size): New function.
10063 * utils.c (do_clear_parser_state): New function.
10064 (make_cleanup_clear_parser_state): Likewise.
10065 * utils.h (make_cleanup_clear_parser_state): New function
10066 prototype.
10067 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10068 Update calls to write_exp* in order to pass the parser state.
10069 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10070 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10071 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10072 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10073 * stap-probe.c (stap_parse_register_operand): Likewise.
10074 (stap_parse_single_operand): Likewise.
10075 (stap_parse_argument_1): Likewise.
10076 (stap_parse_argument): Use parser state.
10077 * stap-probe.h: Include "parser-defs.h".
10078 (struct stap_parse_info) <pstate>: New field.
10079 * c-exp.y (parse_type): Rewrite to use parser state.
10080 (yyparse): Redefine to c_parse_internal.
10081 (pstate): New global variable.
10082 (parse_number): Add "struct parser_state" argument.
10083 (write_destructor_name): Likewise.
10084 (type_exp): Update calls to write_exp* and similars in order to
10085 use parser state.
10086 (exp1, exp, variable, qualified_name, space_identifier,
10087 typename, typebase): Likewise.
10088 (write_destructor_name, parse_number, lex_one_token,
10089 classify_name, classify_inner_name, c_parse): Add "struct
10090 parser_state" argument. Update function to use parser state.
10091 * c-lang.h: Forward declare "struct parser_state".
10092 (c_parse): Add "struct parser_state" argument.
10093 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10094 (yyparse): Redefine macro to ada_parse_internal.
10095 (pstate): New variable.
10096 (write_int, write_object_renaming, write_var_or_type,
10097 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10098 type_int, type_long, type_long_long, type_float, type_double,
10099 type_long_double, type_char, type_boolean, type_system_address):
10100 Add "struct parser_state" argument.
10101 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10102 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10103 var_or_type, aggregate, aggregate_component_list,
10104 positional_list, others, component_group,
10105 component_associations): Update calls to write_exp* and similar
10106 functions in order to use parser state.
10107 (ada_parse, write_var_from_sym, write_int,
10108 write_exp_op_with_string, write_object_renaming,
10109 find_primitive_type, write_selectors, write_ambiguous_var,
10110 write_var_or_type, write_name_assoc, type_int, type_long,
10111 type_long_long, type_float, type_double, type_long_double,
10112 type_char, type_boolean, type_system_address): Add "struct
10113 parser_state" argument. Adjust function to use parser state.
10114 * ada-lang.c (parse): Likewise.
10115 * ada-lang.h: Forward declare "struct parser_state".
10116 (ada_parse): Add "struct parser_state" argument.
10117 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10118 calls to both functions.
10119 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10120 parser state.
10121 (yyparse): Redefine macro to f_parse_internal.
10122 (pstate): New variable.
10123 (parse_number): Add "struct parser_state" argument.
10124 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10125 and similars in order to use parser state.
10126 (parse_number): Adjust code to use parser state.
10127 (yylex): Likewise.
10128 (f_parse): New function.
10129 * f-lang.h: Forward declare "struct parser_state".
10130 (f_parse): Add "struct parser_state" argument.
10131 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10132 parser state.
10133 (yyparse): Redefine macro for java_parse_internal.
10134 (pstate): New variable.
10135 (push_expression_name, push_expression_name, insert_exp): Add
10136 "struct parser_state" argument.
10137 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10138 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10139 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10140 PostIncrementExpression, PostDecrementExpression,
10141 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10142 UnaryExpressionNotPlusMinus, CastExpression,
10143 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10144 RelationalExpression, EqualityExpression, AndExpression,
10145 ExclusiveOrExpression, InclusiveOrExpression,
10146 ConditionalAndExpression, ConditionalOrExpression,
10147 ConditionalExpression, Assignment, LeftHandSide): Update
10148 calls to write_exp* and similars in order to use parser state.
10149 (parse_number): Ajust code to use parser state.
10150 (yylex): Likewise.
10151 (java_parse): New function.
10152 (push_variable): Add "struct parser_state" argument. Adjust
10153 code to user parser state.
10154 (push_fieldnames, push_qualified_expression_name,
10155 push_expression_name, insert_exp): Likewise.
10156 * jv-lang.h: Forward declare "struct parser_state".
10157 (java_parse): Add "struct parser_state" argument.
10158 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10159 parser state.
10160 (yyparse): Redefine macro to m2_parse_internal.
10161 (pstate): New variable.
10162 (type_exp, exp, fblock, variable, type): Update calls to
10163 write_exp* and similars to use parser state.
10164 (yylex): Likewise.
10165 (m2_parse): New function.
10166 * m2-lang.h: Forward declare "struct parser_state".
10167 (m2_parse): Add "struct parser_state" argument.
10168 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10169 * objc-lang.h: Forward declare "struct parser_state".
10170 (end_msglist): Add "struct parser_state" argument.
10171 * p-exp.y (parse_type): Rewrite macro to use parser state.
10172 (yyparse): Redefine macro to pascal_parse_internal.
10173 (pstate): New variable.
10174 (parse_number): Add "struct parser_state" argument.
10175 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10176 write_exp* and similars in order to use parser state.
10177 (parse_number, yylex): Adjust code to use parser state.
10178 (pascal_parse): New function.
10179 * p-lang.h: Forward declare "struct parser_state".
10180 (pascal_parse): Add "struct parser_state" argument.
10181 * go-exp.y (parse_type): Rewrite macro to use parser state.
10182 (yyparse): Redefine macro to go_parse_internal.
10183 (pstate): New variable.
10184 (parse_number): Add "struct parser_state" argument.
10185 (type_exp, exp1, exp, variable, type): Update calls to
10186 write_exp* and similars in order to use parser state.
10187 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10188 to use parser state.
10189 (go_parse): Likewise.
10190 * go-lang.h: Forward declare "struct parser_state".
10191 (go_parse): Add "struct parser_state" argument.
10192
10193 2014-03-27 Doug Evans <dje@google.com>
10194
10195 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10196
10197 2014-03-27 Doug Evans <dje@google.com>
10198
10199 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10200 Remove argument abbrev_section. All callers updated.
10201
10202 2014-03-27 Doug Evans <dje@google.com>
10203
10204 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10205 addr_base, ranges_base.
10206
10207 2014-03-26 Keith Seitz <keiths@redhat.com>
10208
10209 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10210 types, not VAR_DOMAIN.
10211
10212 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10213
10214 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10215 "ra" registers.
10216 * features/nios2-linux.c: Regenerated.
10217 * features/nios2.c: Regenerated.
10218
10219 2014-03-25 Pedro Alves <palves@redhat.com>
10220
10221 * cli/cli-script.c (script_from_file): Force the interpreter to
10222 sync mode.
10223
10224 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10225
10226 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10227 small stack allocation.
10228
10229 2014-03-24 Tristan Gingold <gingold@adacore.com>
10230
10231 * darwin-nat.c (exc_server): Remove unused prototype.
10232 (darwin_dump_message): Correctly display data on x86_64.
10233 (darwin_encode_reply): Fix style.
10234 Add comments and fix indentation.
10235
10236 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10237
10238 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10239
10240 2014-03-22 Doug Evans <xdje42@gmail.com>
10241
10242 * infcmd.c: Whitespace fixes.
10243 (interrupt_command): Merge two function comments into one.
10244
10245 2014-03-22 Doug Evans <xdje42@gmail.com>
10246
10247 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10248 All uses updated.
10249
10250 2014-03-22 Yao Qi <yao@codesourcery.com>
10251
10252 * remote.c (target_read_live_memory): Remove.
10253 (memory_xfer_live_readonly_partial): Rename it to
10254 remote_xfer_live_readonly_partial. Remove argument 'object'.
10255 All callers updated. Call remote_read_bytes_1
10256 instead of target_read_live_memory.
10257 * tracepoint.c (set_traceframe_number): Remove.
10258 (make_cleanup_restore_traceframe_number): Likewise .
10259 * tracepoint.h (set_traceframe_number): Remove declaration.
10260 (make_cleanup_restore_traceframe_number): Likewise.
10261
10262 2014-03-22 Yao Qi <yao@codesourcery.com>
10263
10264 * remote.c (remote_read_bytes): Move code on reading from the
10265 remote stub to ...
10266 (remote_read_bytes_1): ... here. New function.
10267
10268 2014-03-22 Yao Qi <yao@codesourcery.com>
10269
10270 * ctf.c (ctf_xfer_partial): Check the return value of
10271 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10272 return TARGET_XFER_UNAVAILABLE.
10273 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10274 * target.c (target_read_live_memory): Move it to remote.c.
10275 (memory_xfer_live_readonly_partial): Likewise.
10276 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10277 * remote.c (target_read_live_memory): Moved from target.c.
10278 (memory_xfer_live_readonly_partial): Likewise.
10279 (remote_read_bytes): Factored out from
10280 memory_xfer_partial_1.
10281
10282 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10283
10284 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10285 NULL pointer.
10286
10287 2014-03-21 Pedro Alves <palves@redhat.com>
10288
10289 * infrun.c (normal_stop): Extend comment.
10290
10291 2014-03-21 Hui Zhu <hui@codesourcery.com>
10292 Pedro Alves <palves@redhat.com>
10293
10294 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10295 static buffer.
10296 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10297 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10298 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10299
10300 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10301
10302 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10303 `z' formatted output modifier.
10304
10305 2014-03-20 Tom Tromey <tromey@redhat.com>
10306 Sergio Durigan Junior <sergiodj@redhat.com>
10307
10308 * probe.c (parse_probes): Turn assert into an ordinary error.
10309 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10310 exceptions when parsing probes. Rearrange the code for clarity.
10311
10312 2014-03-20 Tom Tromey <tromey@redhat.com>
10313
10314 PR gdb/14135
10315 * top.c (execute_command): Only dispatch events if the command
10316 started the target.
10317
10318 2014-03-20 Tom Tromey <tromey@redhat.com>
10319
10320 PR cli/15718
10321 * infcall.c: Include event-top.h.
10322 (run_inferior_call): Call async_disable_stdin if needed.
10323
10324 2014-03-20 Pedro Alves <palves@redhat.com>
10325
10326 * infrun.c (prepare_to_proceed): Delete.
10327 (thread_still_needs_step_over): New function.
10328 (find_thread_needs_step_over): New function.
10329 (proceed): If the current thread needs a step-over, set its
10330 steping_over_breakpoint flag. Adjust to use
10331 find_thread_needs_step_over instead of prepare_to_proceed.
10332 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10333 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10334 breakpoint.
10335 (switch_back_to_stepped_thread): Step over breakpoints of all
10336 threads not the stepping thread, before switching back to the
10337 stepping thread.
10338
10339 2014-03-20 Pedro Alves <palves@redhat.com>
10340
10341 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10342 extern.
10343 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10344 * infrun.c (saved_singlestep_ptid)
10345 (stepping_past_singlestep_breakpoint): Delete.
10346 (resume): Remove stepping_past_singlestep_breakpoint handling.
10347 (proceed): Store the prev_pc of the stepping thread too.
10348 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10349 singlestep_pc.
10350 (enum infwait_states): Delete infwait_thread_hop_state.
10351 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10352 field.
10353 (handle_inferior_event): Adjust.
10354 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10355 handling and the thread-hop code. Before removing single-step
10356 breakpoints, check whether the thread hit a single-step breakpoint
10357 of another thread. If it did, the trap is not a random signal.
10358 (switch_back_to_stepped_thread): If the event thread hit a
10359 single-step breakpoint, unblock it before switching to the
10360 stepping thread. Handle the case of the stepped thread having
10361 advanced already.
10362 (keep_going): Handle the case of the current thread moving past a
10363 single-step breakpoint.
10364
10365 2014-03-20 Pedro Alves <palves@redhat.com>
10366
10367 PR breakpoints/7143
10368 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10369 are being stepped over.
10370 (breakpoint_address_match): Make extern.
10371 * breakpoint.h (breakpoint_address_match): New declaration.
10372 * inferior.h (stepping_past_instruction_at): New declaration.
10373 * infrun.c (struct step_over_info): New type.
10374 (step_over_info): New global.
10375 (set_step_over_info, clear_step_over_info)
10376 (stepping_past_instruction_at): New functions.
10377 (handle_inferior_event): Clear the step-over info when
10378 trap_expected is cleared.
10379 (resume): Remove now stale comment.
10380 (clear_proceed_status): Clear step-over info.
10381 (proceed): Adjust step-over handling to set or clear the step-over
10382 info instead of removing all breakpoints.
10383 (handle_signal_stop): When setting up a thread-hop, don't remove
10384 breakpoints here.
10385 (stop_stepping): Clear step-over info.
10386 (keep_going): Adjust step-over handling to set or clear step-over
10387 info and then always inserting breakpoints, instead of removing
10388 all breakpoints when stepping over one.
10389
10390 2014-03-20 Pedro Alves <palves@redhat.com>
10391
10392 * infrun.c (previous_inferior_ptid): Adjust comment.
10393 (deferred_step_ptid): Delete.
10394 (infrun_thread_ptid_changed, prepare_to_proceed)
10395 (init_wait_for_inferior): Adjust.
10396 (handle_signal_stop): Delete deferred_step_ptid handling.
10397
10398 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 PR gdb/15358
10401 * defs.h (sync_quit_force_run): New declaration.
10402 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10403 * event-top.c (async_sigterm_handler): New declaration.
10404 (async_sigterm_token): New variable.
10405 (async_init_signals): Create also async_sigterm_token.
10406 (async_sigterm_handler): New function.
10407 (sync_quit_force_run): New variable.
10408 (handle_sigterm): Replace quit_force call by other calls.
10409 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10410
10411 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10412
10413 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10414 offset into SPE pseudo registers.
10415
10416 2014-03-18 Pedro Alves <palves@redhat.com>
10417
10418 PR gdb/13860
10419 * inferior.h (print_stop_event): Declare.
10420 * infrun.c (print_stop_event): New, factored out from ...
10421 (normal_stop): ... this.
10422 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10423 of bpstat_print/print_stack_frame.
10424
10425 2014-03-17 Tom Tromey <tromey@redhat.com>
10426
10427 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10428
10429 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10430
10431 * ada-lang.c (decode_constrained_packed_array): Perform a
10432 minimal coercion for reference with coerce_ref instead of
10433 ada_coerce_ref.
10434
10435 2014-03-17 Tristan Gingold <gingold@adacore.com>
10436
10437 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10438 (darwin_solib_create_inferior_hook): Emit a warning if version
10439 is unhandled.
10440
10441 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10442
10443 * python/py-value.c (get_field_flag): Cast flag_name argument to
10444 PyObject_GetAttrString to support Python 2.4.
10445
10446 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10447
10448 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10449 (Global Maintainers): Remove Jan Kratochvil.
10450
10451 2014-03-14 Pedro Alves <palves@redhat.com>
10452
10453 * inferior.h (terminal_ours_for_output): Rename to ...
10454 (child_terminal_ours_for_output): ... this.
10455 (terminal_save_ours): Rename to ...
10456 (child_terminal_save_ours): ... this.
10457 (terminal_ours): Rename to ...
10458 (child_terminal_ours): ... this.
10459 (terminal_inferior): Rename to ...
10460 (child_terminal_inferior): ... this.
10461 (terminal_init_inferior): Rename to ...
10462 (child_terminal_init_inferior): ... this.
10463 (terminal_init_inferior_with_pgrp): Rename to ...
10464 (child_terminal_init_inferior_with_pgrp): ... this.
10465 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10466 (child_terminal_init_with_pgrp): ... this.
10467 (terminal_save_ours): Rename to ...
10468 (child_terminal_save_ours): ... this.
10469 (terminal_init_inferior): Rename to ...
10470 (child_terminal_init): ... this. Adjust.
10471 (terminal_inferior): Rename to ...
10472 (child_terminal_inferior): ... this.
10473 (terminal_ours_for_output): Rename to ...
10474 (child_terminal_ours_for_output): ... this. Adjust.
10475 (terminal_ours): Rename to ...
10476 (child_terminal_ours): ... this.
10477 (terminal_ours_1): Rename to ...
10478 (child_terminal_ours_1): ... this. Adjust.
10479 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10480 * windows-nat.c (do_initial_windows_stuff): Adjust.
10481 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10482 (gnu_terminal_init): ... this. Adjust.
10483 (gnu_target): Adjust.
10484 * inf-child.c (inf_child_target): Adjust.
10485
10486 2014-03-13 Doug Evans <xdje42@gmail.com>
10487
10488 PR guile/16612
10489 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10490 new eq?-hashtab.
10491
10492 2014-03-13 Doug Evans <xdje42@gmail.com>
10493
10494 * value.c (record_latest_value): Call release_value_or_incref
10495 instead of release_value.
10496
10497 2014-03-13 Pedro Alves <palves@redhat.com>
10498
10499 * procfs.c (procfs_target): Don't override to_shortname,
10500 to_longname or to_doc.
10501
10502 2014-03-13 Pedro Alves <palves@redhat.com>
10503
10504 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10505 Unix in user visible strings.
10506
10507 2014-03-12 Stan Shebs <stan@codesourcery.com>
10508
10509 * gdbtypes.h: Annotate comments for Doxygen, add a page
10510 block comment with some general info.
10511
10512 2014-03-12 Pedro Alves <palves@redhat.com>
10513
10514 * infcmd.c (prepare_execution_command): New function, factored out
10515 from several execution commands.
10516 (run_command_1, continue_command, step_1, jump_command)
10517 (signal_command, until_command, advance_command, finish_command)
10518 (attach_command): Use prepare_execution_command.
10519
10520 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10521
10522 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10523 (MAX_BPTS): Define.
10524 (MAX_WPTS): Define.
10525 (struct arm_linux_thread_points): Removed.
10526 (struct arm_linux_process_info): New.
10527 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10528 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10529 (arm_linux_find_breakpoints_by_tid): Removed.
10530 (struct arch_lwp_info): New.
10531 (arm_linux_find_process_pid): New functions.
10532 (arm_linux_add_process): New functions.
10533 (arm_linux_process_info_get): New functions.
10534 (arm_linux_forget_process): New function.
10535 (arm_linux_get_debug_reg_state): New function.
10536 (struct update_registers_data): New.
10537 (update_registers_callback): New function.
10538 (arm_linux_insert_hw_breakpoint1): Updated.
10539 (arm_linux_remove_hw_breakpoint1): Updated.
10540 (arm_linux_insert_hw_breakpoint): Updated.
10541 (arm_linux_remove_hw_breakpoint): Updated.
10542 (arm_linux_insert_watchpoint): Updated.
10543 (arm_linux_remove_watchpoint): Updated.
10544 (arm_linux_new_thread): Updated.
10545 (arm_linux_prepare_to_resume): New function.
10546 (arm_linux_new_fork): New function.
10547 (_initialize_arm_linux_nat): Updated.
10548
10549 2014-03-12 Pedro Alves <palves@redhat.com>
10550
10551 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10552
10553 2014-03-12 Tom Tromey <tromey@redhat.com>
10554
10555 * inf-child.c (return_zero): New function.
10556 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10557 * aix-thread.c (aix_thread_inferior_created): New function.
10558 (aix_thread_attach): Remove.
10559 (init_aix_thread_ops): Don't set to_attach.
10560 (_initialize_aix_thread): Register inferior_created observer.
10561 * corelow.c (init_core_ops): Don't set to_attach or
10562 to_create_inferior.
10563 * exec.c (init_exec_ops): Don't set to_attach or
10564 to_create_inferior.
10565 * infcmd.c (run_command_1): Use find_run_target. Make direct
10566 target calls.
10567 (attach_command): Use find_attach_target. Make direct target
10568 calls.
10569 * record-btrace.c (init_record_btrace_ops): Don't set
10570 to_create_inferior.
10571 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10572 Remove.
10573 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10574 set to_create_inferior.
10575 * target.c (complete_target_initialization): Add assertion.
10576 (target_create_inferior): Remove.
10577 (find_default_attach, find_default_create_inferior): Remove.
10578 (find_attach_target, find_run_target): New functions.
10579 (find_default_is_async_p, find_default_can_async_p)
10580 (target_supports_non_stop, target_attach): Remove.
10581 (init_dummy_target): Don't set to_create_inferior or
10582 to_supports_non_stop.
10583 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10584 TARGET_DEFAULT_FUNC.
10585 <to_create_inferior>: Add comment.
10586 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10587 TARGET_DEFAULT_RETURN.
10588 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10589 (find_attach_target, find_run_target): Declare.
10590 (target_create_inferior): Remove.
10591 (target_has_execution_1): Update comment.
10592 (target_supports_non_stop): Remove.
10593 * target-delegates.c: Rebuild.
10594
10595 2014-03-12 Pedro Alves <palves@redhat.com>
10596
10597 * inf-child.h: Update comment to not mention Unix.
10598
10599 2014-03-12 Pedro Alves <palves@redhat.com>
10600
10601 * inf-child.c: Update top comment to not mention Unix. Add
10602 generic comment describing how this target is meant to be used.
10603 (inf_child_post_attach, inf_child_post_startup_inferior)
10604 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10605 Unix in comment.
10606
10607 2014-03-12 Pedro Alves <palves@redhat.com>
10608
10609 * nto-procfs.c: Include inf-child.h.
10610 (procfs_ops): Delete global.
10611 (procfs_can_run): Delete method.
10612 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10613 target pointer instead of referencing procfs_ops.
10614 (procfs_prepare_to_store): Delete.
10615 (init_procfs_ops): Delete function.
10616 (procfs_target): New function, based on init_procfs_ops, but
10617 inherit inf_child_target.
10618 (_initialize_procfs): Use procfs_target.
10619
10620 2014-03-12 Pedro Alves <palves@redhat.com>
10621
10622 * windows-nat.c: Include inf-child.h.
10623 (windows_ops): Delete global.
10624 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10625 methods.
10626 (init_windows_ops): Delete function.
10627 (windows_target): New function, based on init_windows_ops, but
10628 inherit inf_child_target.
10629 (_initialize_windows_nat): Use windows_target. Install x86
10630 specific target methods here.
10631
10632 2014-03-10 Doug Evans <xdje42@gmail.com>
10633
10634 * guile/guile.c (call_initialize_gdb_module): New function.
10635 (initialize_guile): Replace call to scm_init_guile with call to
10636 scm_with_guile.
10637
10638 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10639
10640 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10641 in call to TYPE_CODE macro.
10642
10643 2014-03-10 Jerome Guitton <guitton@adacore.com>
10644
10645 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10646 Resolve tagged types to full view.
10647
10648 2014-03-10 Hui Zhu <hui@codesourcery.com>
10649
10650 * target.h (target_insert_breakpoint): Remove "hardware" from its
10651 comments.
10652
10653 2014-03-07 Doug Evans <dje@google.com>
10654
10655 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10656
10657 2014-03-07 Doug Evans <dje@google.com>
10658
10659 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10660 Remove unused local comp_dir_attr. Assert exactly one of
10661 stub_comp_unit_die, stub_comp_dir is non-NULL.
10662
10663 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10664
10665 * target.h (complete_target_initialization, add_target):
10666 Add comment.
10667
10668 2014-03-07 Pedro Alves <palves@redhat.com>
10669
10670 * go32-nat.c: Include inf-child.h.
10671 (go32_ops): Delete global.
10672 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10673 Delete methods.
10674 (go32_create_inferior): Push the passed in target pointer instead
10675 of referencing go32_ops.
10676 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10677 (go32_target): New function, based on init_go32_ops, but inherit
10678 inf_child_target.
10679 (_initialize_go32_nat): Use go32_target. Move parts of
10680 init_go32_ops here.
10681
10682 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10683
10684 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10685 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10686 SYMBOL_VALUE_ADDRESS.
10687 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10688
10689 2014-03-06 Yao Qi <yao@codesourcery.com>
10690
10691 * breakpoint.c (get_tracepoint_by_number): Remove argument
10692 optional_p. All callers updated. Adjust comments. Update
10693 output message.
10694 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10695
10696 2014-03-06 Yao Qi <yao@codesourcery.com>
10697
10698 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10699 early if get_number returns zero. Use 'p' instead of 'args'.
10700
10701 2014-03-06 Yao Qi <yao@codesourcery.com>
10702
10703 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10704 message.
10705
10706 2014-03-06 Yao Qi <yao@codesourcery.com>
10707
10708 PR breakpoints/16508
10709 * tracepoint.c (check_trace_running): New function.
10710 (trace_find_command): Move code to check_trace_running and
10711 call check_trace_running.
10712 (trace_find_pc_command): Likewise.
10713 (trace_find_tracepoint_command): Likewise.
10714 (trace_find_line_command): Likewise.
10715 (trace_find_range_command): Likewise.
10716 * tracepoint.h (check_trace_running): Likewise.
10717 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10718
10719 2014-03-06 Yao Qi <yao@codesourcery.com>
10720
10721 * target.h (struct target_ops) <to_traceframe_info>: Use
10722 TARGET_DEFAULT_NORETURN (tcomplain ()).
10723 * target-delegates.c: Regenerated.
10724
10725 2014-03-05 Pedro Alves <palves@redhat.com>
10726
10727 PR gdb/16575
10728 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10729 void. Update comment.
10730 (dcache_xfer_memory): Delete.
10731 (dcache_read_memory_partial): New, based on the read bits of
10732 dcache_xfer_memory.
10733 (dcache_update): Add status parameter. Use ULONGEST for len, and
10734 adjust. Discard cache lines if the reason for the update was
10735 error.
10736 * dcache.h (dcache_xfer_memory): Delete declaration.
10737 (dcache_read_memory_partial): New declaration.
10738 (dcache_update): Update prototype.
10739 * target.c (raw_memory_xfer_partial): Update the dcache here.
10740 (memory_xfer_partial_1): Don't handle dcache writes here.
10741
10742 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10743
10744 * remote-sim.c (gdbsim_load): Add const to prog.
10745
10746 2014-03-03 Tom Tromey <tromey@redhat.com>
10747
10748 * elfread.c (probe_key): Change to bfd_data.
10749 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10750 now per-BFD, not per-objfile.
10751 * stap-probe.c (stap_probe_destroy): Update comment.
10752 (handle_stap_probe): Allocate on the per-BFD obstack.
10753
10754 2014-03-03 Tom Tromey <tromey@redhat.com>
10755
10756 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10757 * breakpoint.c (create_longjmp_master_breakpoint): Use
10758 get_probe_address.
10759 (add_location_to_breakpoint, bkpt_probe_insert_location)
10760 (bkpt_probe_remove_location): Update.
10761 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10762 * elfread.c (elf_symfile_relocate_probe): Remove.
10763 (elf_probe_fns): Update.
10764 (insert_exception_resume_breakpoint): Change type of "probe"
10765 parameter to bound_probe.
10766 (check_exception_resume): Update.
10767 * objfiles.c (objfile_relocate1): Don't relocate probes.
10768 * probe.c (bound_probe_s): New typedef.
10769 (parse_probes): Use get_probe_address. Set sal's objfile.
10770 (find_probe_by_pc): Return a bound_probe.
10771 (collect_probes): Return a VEC(bound_probe_s).
10772 (compare_probes): Update.
10773 (gen_ui_out_table_header_info): Change type of "probes"
10774 parameter. Update.
10775 (info_probes_for_ops): Update.
10776 (get_probe_address): New function.
10777 (probe_safe_evaluate_at_pc): Update.
10778 * probe.h (struct probe_ops) <get_probe_address>: New field.
10779 <set_semaphore, clear_semaphore>: Add objfile parameter.
10780 (struct probe) <objfile>: Remove field.
10781 <arch>: New field.
10782 <address>: Update comment.
10783 (struct bound_probe): New.
10784 (find_probe_by_pc): Return a bound_probe.
10785 (get_probe_address): Declare.
10786 * solib-svr4.c (struct probe_and_action) <address>: New field.
10787 (hash_probe_and_action, equal_probe_and_action): Update.
10788 (register_solib_event_probe): Add address parameter.
10789 (solib_event_probe_at): Update.
10790 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10791 get_probe_address.
10792 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10793 (stap_get_probe_address): New function.
10794 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10795 (compile_probe_arg): Update.
10796 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10797 address.
10798 (handle_stap_probe): Don't relocate the probe.
10799 (stap_relocate): Remove.
10800 (stap_gen_info_probes_table_values): Update.
10801 (stap_probe_ops): Remove stap_relocate.
10802 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10803 (debug_sym_probe_fns): Update.
10804 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10805 * symtab.c (init_sal): Use memset.
10806 * symtab.h (struct symtab_and_line) <objfile>: New field.
10807 * tracepoint.c (start_tracing, stop_tracing): Update.
10808
10809 2014-03-03 Tom Tromey <tromey@redhat.com>
10810
10811 * probe.h (parse_probes, find_probe_by_pc)
10812 (find_probes_in_objfile): Fix comments.
10813
10814 2014-03-02 Doug Evans <xdje42@gmail.com>
10815
10816 * infrun.c (handle_signal_stop): Replace test for
10817 TARGET_WAITKIND_STOPPED with an assert.
10818
10819 2014-03-02 Doug Evans <xdje42@gmail.com>
10820
10821 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10822
10823 2014-03-02 Doug Evans <xdje42@gmail.com>
10824
10825 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10826
10827 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10828
10829 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10830
10831 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10832
10833 * i386obsd-nat.c: Include "obsd-nat.h".
10834 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10835 add_target.
10836 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10837
10838 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10839
10840 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10841
10842 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10843
10844 * mips64obsd-nat.c: Include "obsd-nath".
10845 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10846 add_target
10847 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10848
10849 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10850
10851 * amd64obsd-nat.c: Include "obsd-nat,h.
10852 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10853 add_target.
10854 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10855
10856 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10857
10858 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10859 (find_overload_match): Update call to find_oload_champ.
10860 (find_oload_champ_namespace_loop): Likewise
10861
10862 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10863
10864 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10865
10866 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10867 * config/sparc/obsd64.mh: New file.
10868 * sparc64obsd-nat.c: New file.
10869
10870 * obsd-nat.h: New file.
10871 * obsd-nat.c: New file.
10872 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10873 (ALLDEPFILES): Add obsd-nat.c.
10874
10875 2014-02-28 Tom Tromey <tromey@redhat.com>
10876
10877 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10878 * cli-out.h (cli_ui_out_impl): Now const.
10879 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10880 * ui-out.c (struct ui_out) <impl>: Now const.
10881 (default_ui_out_impl): Now const.
10882 (ui_out_new): Make 'impl' parameter const.
10883 * ui-out.h (ui_out_new): Update.
10884
10885 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10886
10887 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10888
10889 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10890
10891 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10892
10893 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10894
10895 Additional PR 8882 fix.
10896 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10897
10898 2014-02-27 Pedro Alves <palves@redhat.com>
10899
10900 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10901 isn't set.
10902
10903 2014-02-27 Pedro Alves <palves@redhat.com>
10904
10905 PR 12702
10906 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10907 * nat/linux-waitpid.c: Include string.h.
10908 (status_to_str): Moved here and made extern.
10909 * nat/linux-waitpid.h (status_to_str): New declaration.
10910
10911 2014-02-27 Hui Zhu <hui@codesourcery.com>
10912
10913 PR 12702
10914 * infrun.c (ptid_match): Move ...
10915 * common/ptid.c (ptid_match): ... here.
10916 * inferior.h (ptid_match): Move ...
10917 * common/ptid.h (ptid_match): ... here.
10918
10919 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10920
10921 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10922 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10923 gdb_target_obs.
10924
10925 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10926
10927 * obsd-tdep.c (obsd_auxv_parse): New function.
10928 (obsd_init_abi): Set auxv_parse.
10929
10930 * gdbarch.sh (auxv_parse): New.
10931 * gdbarch.h: Regenerated.
10932 * gdbarch.c: Regenerated.
10933 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10934
10935 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10936
10937 * guile/scm-value.c (gdbscm_history_append_x): New function.
10938 (value_functions): Add it.
10939
10940 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10941
10942 * dwarf2read.c (attr_value_as_address): New function.
10943 (dwarf2_find_base_address, read_call_site_scope): Use
10944 attr_value_as_address in place of DW_ADDR.
10945 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10946 the low and high addresses. Slight rework of the handling
10947 of the high pc being a constant form, and limit it to
10948 DWARF verson 4 or higher.
10949 (dwarf2_record_block_ranges): Likewise.
10950 (read_partial_die): Likewise.
10951 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10952
10953 2014-02-26 Tom Tromey <tromey@redhat.com>
10954
10955 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10956
10957 2014-02-26 Tom Tromey <tromey@redhat.com>
10958
10959 * elfread.c (elf_read_minimal_symbols): Return early if
10960 minimal symbols have already been read. Add "ei" parameter.
10961 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10962 * minsyms.c (prim_record_minimal_symbol_full): Update.
10963 * objfiles.h (struct objstats) <n_minsyms>: Move...
10964 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10965 * symmisc.c (print_objfile_statistics): Update.
10966
10967 2014-02-26 Tom Tromey <tromey@redhat.com>
10968
10969 * elfread.c (elf_read_minimal_symbols): New function, from
10970 elf_symfile_read.
10971 (elf_symfile_read): Call it.
10972
10973 2014-02-26 Tom Tromey <tromey@redhat.com>
10974
10975 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10976 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10977 (lookup_minimal_symbol_solib_trampoline)
10978 (lookup_minimal_symbol_by_pc_section_1)
10979 (lookup_minimal_symbol_and_objfile): Update.
10980 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10981 Don't allocate a minimal symbol if minsyms have already been read.
10982 (build_minimal_symbol_hash_tables): Update.
10983 (install_minimal_symbols): Do nothing if minsyms already read.
10984 Use the per-BFD obstack.
10985 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10986 * objfiles.c (allocate_objfile): Call
10987 terminate_minimal_symbol_table later.
10988 (have_minimal_symbols): Update.
10989 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10990 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10991 Move from struct objfile.
10992 <minsyms_read>: New field.
10993 (struct objfile) <msymbols, minimal_symbol_count,
10994 msymbol_hash, msymbol_demangled_hash>: Move.
10995 (ALL_OBJFILE_MSYMBOLS): Update.
10996 * symfile.c (read_symbols): Set minsyms_read.
10997 (reread_symbols): Update.
10998 * symmisc.c (dump_objfile, dump_msymbols): Update.
10999
11000 2014-02-26 Tom Tromey <tromey@redhat.com>
11001
11002 * minsyms.c (msymbols_sort): Remove.
11003 * minsyms.h (msymbols_sort): Remove.
11004 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
11005 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
11006 * elfread.c (elf_symtab_read): Don't add section offsets.
11007 * xcoffread.c (record_minimal_symbol): Don't add section offset
11008 to minimal symbol address.
11009 * somread.c (text_offset, data_offset): Remove.
11010 (som_symtab_read): Don't add section offsets to minimal symbol
11011 addresses.
11012 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11013 Don't add section offsets to minimal symbols.
11014 * coffread.c (coff_symtab_read): Don't add section offsets
11015 to minimal symbol addresses.
11016 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11017 to minimal symbol addresses.
11018 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11019 section offset to minimal symbol addresses.
11020 * mdebugread.c (parse_partial_symbols): Don't add section
11021 offset to minimal symbol addresses.
11022 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11023 offset to minimal symbol addresses.
11024
11025 2014-02-26 Tom Tromey <tromey@redhat.com>
11026
11027 * ada-lang.c (ada_main_name): Update.
11028 (ada_add_standard_exceptions): Update.
11029 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11030 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11031 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11032 * auxv.c (ld_so_xfer_auxv): Update.
11033 * avr-tdep.c (avr_scan_prologue): Update.
11034 * ax-gdb.c (gen_var_ref): Update.
11035 * blockframe.c (get_pc_function_start)
11036 (find_pc_partial_function_gnu_ifunc): Update.
11037 * breakpoint.c (create_overlay_event_breakpoint)
11038 (create_longjmp_master_breakpoint)
11039 (create_std_terminate_master_breakpoint)
11040 (create_exception_master_breakpoint): Update.
11041 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11042 * c-valprint.c (c_val_print): Update.
11043 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11044 * common/agent.c (agent_look_up_symbols): Update.
11045 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11046 * dwarf2loc.c (call_site_to_target_addr): Update.
11047 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11048 * elfread.c (elf_gnu_ifunc_record_cache)
11049 (elf_gnu_ifunc_resolve_by_got): Update.
11050 * findvar.c (default_read_var_value): Update.
11051 * frame.c (inside_main_func): Update.
11052 * frv-tdep.c (frv_frame_this_id): Update.
11053 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11054 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11055 Update.
11056 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11057 (hppa_hpux_find_dummy_bpaddr): Update.
11058 * hppa-tdep.c (hppa_symbol_address): Update.
11059 * infcmd.c (until_next_command): Update.
11060 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11061 Update.
11062 * linespec.c (minsym_found, add_minsym): Update.
11063 * linux-nat.c (get_signo): Update.
11064 * linux-thread-db.c (inferior_has_bug): Update.
11065 * m32c-tdep.c (m32c_return_value)
11066 (m32c_m16c_address_to_pointer): Update.
11067 * m32r-tdep.c (m32r_frame_this_id): Update.
11068 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11069 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11070 * maint.c (maintenance_translate_address): Update.
11071 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11072 (frob_address): New function.
11073 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11074 frob_address. Rename parameter to "pc_in".
11075 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11076 addresses.
11077 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11078 Update.
11079 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11080 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11081 * objc-lang.c (find_objc_msgsend): Update.
11082 * objfiles.c (objfile_relocate1): Update.
11083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11084 * p-valprint.c (pascal_val_print): Update.
11085 * parse.c (write_exp_msymbol): Update.
11086 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11087 (ppc_elfv2_skip_entrypoint): Update.
11088 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11089 * printcmd.c (build_address_symbolic, msym_info)
11090 (address_info): Update.
11091 * proc-service.c (ps_pglobal_lookup): Update.
11092 * psymtab.c (find_pc_sect_psymtab_closer)
11093 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11094 Change msymbol parameter to bound_minimal_symbol.
11095 * ravenscar-thread.c (get_running_thread_id): Update.
11096 * remote.c (remote_check_symbols): Update.
11097 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11098 address.
11099 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11100 * solib-dsbt.c (lm_base): Update.
11101 * solib-frv.c (lm_base, main_got): Update.
11102 * solib-irix.c (locate_base): Update.
11103 * solib-som.c (som_solib_create_inferior_hook)
11104 (link_map_start): Update.
11105 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11106 * solib-svr4.c (elf_locate_base, enable_break): Update.
11107 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11108 (flush_ea_cache): Update.
11109 * stabsread.c (define_symbol, scan_file_globals): Update.
11110 * stack.c (find_frame_funname): Update.
11111 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11112 (debug_qf_find_pc_sect_symtab): Update.
11113 * symfile.c (simple_read_overlay_table)
11114 (simple_overlay_update): Update.
11115 * symfile.h (struct quick_symbol_functions)
11116 <find_pc_sect_symtab>: Change type of msymbol to
11117 bound_minimal_symbol.
11118 * symmisc.c (dump_msymbols): Update.
11119 * symtab.c (find_pc_sect_symtab_via_partial)
11120 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11121 (search_symbols, print_msymbol_info): Update.
11122 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11123 (MSYMBOL_VALUE_ADDRESS): Redefine.
11124 (BMSYMBOL_VALUE_ADDRESS): New macro.
11125 * tracepoint.c (scope_info): Update.
11126 * tui/tui-disasm.c (tui_find_disassembly_address)
11127 (tui_get_begin_asm_address): Update.
11128 * valops.c (find_function_in_inferior): Update.
11129 * value.c (value_static_field, value_fn_field): Update.
11130
11131 2014-02-26 Tom Tromey <tromey@redhat.com>
11132
11133 * ada-lang.c (ada_update_initial_language): Update.
11134 (ada_main_name, ada_has_this_exception_support): Update.
11135 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11136 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11137 * arm-tdep.c (arm_skip_stub): Update.
11138 * auxv.c (ld_so_xfer_auxv): Update.
11139 * avr-tdep.c (avr_scan_prologue): Update.
11140 * ax-gdb.c (gen_var_ref): Update.
11141 * breakpoint.c (struct breakpoint_objfile_data)
11142 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11143 type to bound_minimal_symbol.
11144 (create_overlay_event_breakpoint)
11145 (create_longjmp_master_breakpoint)
11146 (create_std_terminate_master_breakpoint)
11147 (create_exception_master_breakpoint): Update.
11148 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11149 * c-exp.y (classify_name): Update.
11150 * coffread.c (coff_symfile_read): Update.
11151 * common/agent.c (agent_look_up_symbols): Update.
11152 * d-lang.c (d_main_name): Update.
11153 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11154 * dec-thread.c (enable_dec_thread): Update.
11155 * dwarf2loc.c (call_site_to_target_addr): Update.
11156 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11157 * eval.c (evaluate_subexp_standard): Update.
11158 * findvar.c (struct minsym_lookup_data) <result>: Change type
11159 to bound_minimal_symbol.
11160 <objfile>: Remove.
11161 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11162 * frame.c (inside_main_func): Update.
11163 * frv-tdep.c (frv_frame_this_id): Update.
11164 * gcore.c (call_target_sbrk): Update.
11165 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11166 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11167 Update.
11168 * go-lang.c (go_main_name): Update.
11169 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11170 (hppa_hpux_find_import_stub_for_addr): Update.
11171 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11172 Update. Change return type.
11173 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11174 type.
11175 * jit.c (jit_breakpoint_re_set_internal): Update.
11176 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11177 Update.
11178 * linux-nat.c (get_signo): Update.
11179 * linux-thread-db.c (inferior_has_bug): Update
11180 * m32c-tdep.c (m32c_return_value)
11181 (m32c_m16c_address_to_pointer): Update.
11182 * m32r-tdep.c (m32r_frame_this_id): Update.
11183 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11184 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11185 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11186 lookup_minimal_symbol. Change return type.
11187 (lookup_minimal_symbol): Remove.
11188 (lookup_bound_minimal_symbol): Update.
11189 (lookup_minimal_symbol_text): Change return type.
11190 (lookup_minimal_symbol_solib_trampoline): Change return type.
11191 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11192 (lookup_minimal_symbol_solib_trampoline): Change return type.
11193 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11194 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11195 (value_nsstring, find_imps): Update.
11196 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11197 * p-lang.c (pascal_main_name): Update.
11198 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11199 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11200 * proc-service.c (ps_pglobal_lookup): Update.
11201 * ravenscar-thread.c (get_running_thread_msymbol): Change
11202 return type.
11203 (has_ravenscar_runtime, get_running_thread_id): Update.
11204 * remote.c (remote_check_symbols): Update.
11205 * sol-thread.c (ps_pglobal_lookup): Update.
11206 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11207 * solib-dsbt.c (lm_base): Update.
11208 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11209 Update.
11210 * solib-irix.c (locate_base): Update.
11211 * solib-som.c (som_solib_create_inferior_hook)
11212 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11213 Update.
11214 * solib-spu.c (spu_enable_break): Update.
11215 * solib-svr4.c (elf_locate_base, enable_break): Update.
11216 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11217 (flush_ea_cache): Update.
11218 * stabsread.c (define_symbol): Update.
11219 * symfile.c (simple_read_overlay_table): Update.
11220 * symtab.c (find_pc_sect_line): Update.
11221 * tracepoint.c (scope_info): Update.
11222 * tui-disasm.c (tui_get_begin_asm_address): Update.
11223 * value.c (value_static_field): Update.
11224
11225 2014-02-26 Tom Tromey <tromey@redhat.com>
11226
11227 * minsyms.c (prim_record_minimal_symbol_full): Use
11228 SET_MSYMBOL_VALUE_ADDRESS.
11229 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11230 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11231 SET_MSYMBOL_VALUE_ADDRESS.
11232 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11233 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11234
11235 2014-02-26 Tom Tromey <tromey@redhat.com>
11236
11237 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11238 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11239 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11240 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11241 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11242 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11243 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11244 * ada-lang.c (ada_main_name): Update.
11245 (ada_lookup_simple_minsym): Update.
11246 (ada_make_symbol_completion_list): Update.
11247 (ada_add_standard_exceptions): Update.
11248 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11249 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11250 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11251 * arm-tdep.c (skip_prologue_function): Update.
11252 (arm_skip_stack_protector, arm_skip_stub): Update.
11253 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11254 (arm_wince_skip_main_prologue): Update.
11255 * auxv.c (ld_so_xfer_auxv): Update.
11256 * avr-tdep.c (avr_scan_prologue): Update.
11257 * ax-gdb.c (gen_var_ref): Update.
11258 * block.c (call_site_for_pc): Update.
11259 * blockframe.c (get_pc_function_start): Update.
11260 (find_pc_partial_function_gnu_ifunc): Update.
11261 * breakpoint.c (create_overlay_event_breakpoint): Update.
11262 (create_longjmp_master_breakpoint): Update.
11263 (create_std_terminate_master_breakpoint): Update.
11264 (create_exception_master_breakpoint): Update.
11265 (resolve_sal_pc): Update.
11266 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11267 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11268 Update.
11269 * c-valprint.c (c_val_print): Update.
11270 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11271 * coffread.c (coff_symfile_read): Update.
11272 * common/agent.c (agent_look_up_symbols): Update.
11273 * dbxread.c (find_stab_function_addr): Update.
11274 (end_psymtab): Update.
11275 * dwarf2loc.c (call_site_to_target_addr): Update.
11276 (func_verify_no_selftailcall): Update.
11277 (tailcall_dump): Update.
11278 (call_site_find_chain_1): Update.
11279 (dwarf_expr_reg_to_entry_parameter): Update.
11280 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11281 (elf_gnu_ifunc_resolve_by_got): Update.
11282 * f-valprint.c (info_common_command): Update.
11283 * findvar.c (read_var_value): Update.
11284 * frame.c (get_prev_frame_1): Update.
11285 (inside_main_func): Update.
11286 * frv-tdep.c (frv_skip_main_prologue): Update.
11287 (frv_frame_this_id): Update.
11288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11289 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11290 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11291 (gnuv3_skip_trampoline): Update.
11292 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11293 (hppa64_hpux_in_solib_call_trampoline): Update.
11294 (hppa_hpux_skip_trampoline_code): Update.
11295 (hppa64_hpux_search_dummy_call_sequence): Update.
11296 (hppa_hpux_find_import_stub_for_addr): Update.
11297 (hppa_hpux_find_dummy_bpaddr): Update.
11298 * hppa-tdep.c (hppa_symbol_address)
11299 (hppa_lookup_stub_minimal_symbol): Update.
11300 * i386-tdep.c (i386_skip_main_prologue): Update.
11301 (i386_pe_skip_trampoline_code): Update.
11302 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11303 * infcall.c (get_function_name): Update.
11304 * infcmd.c (until_next_command): Update.
11305 * jit.c (jit_breakpoint_re_set_internal): Update.
11306 (jit_inferior_init): Update.
11307 * linespec.c (minsym_found): Update.
11308 (add_minsym): Update.
11309 * linux-fork.c (info_checkpoints_command): Update.
11310 * linux-nat.c (get_signo): Update.
11311 * linux-thread-db.c (inferior_has_bug): Update.
11312 * m32c-tdep.c (m32c_return_value): Update.
11313 (m32c_m16c_address_to_pointer): Update.
11314 (m32c_m16c_pointer_to_address): Update.
11315 * m32r-tdep.c (m32r_frame_this_id): Update.
11316 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11317 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11318 * maint.c (maintenance_translate_address): Update.
11319 * minsyms.c (add_minsym_to_hash_table): Update.
11320 (add_minsym_to_demangled_hash_table): Update.
11321 (msymbol_objfile): Update.
11322 (lookup_minimal_symbol): Update.
11323 (iterate_over_minimal_symbols): Update.
11324 (lookup_minimal_symbol_text): Update.
11325 (lookup_minimal_symbol_by_pc_name): Update.
11326 (lookup_minimal_symbol_solib_trampoline): Update.
11327 (lookup_minimal_symbol_by_pc_section_1): Update.
11328 (lookup_minimal_symbol_and_objfile): Update.
11329 (prim_record_minimal_symbol_full): Update.
11330 (compare_minimal_symbols): Update.
11331 (compact_minimal_symbols): Update.
11332 (build_minimal_symbol_hash_tables): Update.
11333 (install_minimal_symbols): Update.
11334 (terminate_minimal_symbol_table): Update.
11335 (find_solib_trampoline_target): Update.
11336 (minimal_symbol_upper_bound): Update.
11337 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11338 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11339 (mips_skip_pic_trampoline_code): Update.
11340 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11341 * objc-lang.c (selectors_info): Update.
11342 (classes_info): Update.
11343 (find_methods): Update.
11344 (find_imps): Update.
11345 (find_objc_msgsend): Update.
11346 * objfiles.c (objfile_relocate1): Update.
11347 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11348 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11349 * p-valprint.c (pascal_val_print): Update.
11350 * parse.c (write_exp_msymbol): Update.
11351 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11352 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11353 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11354 * printcmd.c (build_address_symbolic): Update.
11355 (sym_info): Update.
11356 (address_info): Update.
11357 * proc-service.c (ps_pglobal_lookup): Update.
11358 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11359 (find_pc_sect_psymtab): Update.
11360 * python/py-framefilter.c (py_print_frame): Update.
11361 * ravenscar-thread.c (get_running_thread_id): Update.
11362 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11363 Update.
11364 * remote.c (remote_check_symbols): Update.
11365 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11366 (rs6000_skip_trampoline_code): Update.
11367 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11368 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11369 * solib-dsbt.c (lm_base): Update.
11370 * solib-frv.c (lm_base): Update.
11371 (main_got): Update.
11372 * solib-irix.c (locate_base): Update.
11373 * solib-som.c (som_solib_create_inferior_hook): Update.
11374 (som_solib_desire_dynamic_linker_symbols): Update.
11375 (link_map_start): Update.
11376 * solib-spu.c (spu_enable_break): Update.
11377 (ocl_enable_break): Update.
11378 * solib-svr4.c (elf_locate_base): Update.
11379 (enable_break): Update.
11380 * spu-tdep.c (spu_get_overlay_table): Update.
11381 (spu_catch_start): Update.
11382 (flush_ea_cache): Update.
11383 * stabsread.c (define_symbol): Update.
11384 (scan_file_globals): Update.
11385 * stack.c (find_frame_funname): Update.
11386 (frame_info): Update.
11387 * symfile.c (simple_read_overlay_table): Update.
11388 (simple_overlay_update): Update.
11389 * symmisc.c (dump_msymbols): Update.
11390 * symtab.c (fixup_section): Update.
11391 (find_pc_sect_line): Update.
11392 (skip_prologue_sal): Update.
11393 (search_symbols): Update.
11394 (print_msymbol_info): Update.
11395 (rbreak_command): Update.
11396 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11397 (completion_list_objc_symbol): Update.
11398 (default_make_symbol_completion_list_break_on): Update.
11399 * tracepoint.c (scope_info): Update.
11400 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11401 (tui_get_begin_asm_address): Update.
11402 * valops.c (find_function_in_inferior): Update.
11403 * value.c (value_static_field): Update.
11404 (value_fn_field): Update.
11405
11406 2014-02-26 Tom Tromey <tromey@redhat.com>
11407
11408 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11409 bound minimal symbols. Move code that knows about minsym
11410 table layout...
11411 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11412 function.
11413 * minsyms.h (minimal_symbol_upper_bound): Declare.
11414 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11415 minimal_symbol_upper_bound.
11416
11417 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11418
11419 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11420 Use the type's name if its basic type does not have a tag.
11421
11422 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11423
11424 * dwarf2read.c (read_subrange_type): Add comment.
11425
11426 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11427
11428 * dwarf2read.c (update_enumeration_type_from_children): New
11429 function, mostly extracted from process_structure_scope.
11430 (read_enumeration_type): Call update_enumeration_type_from_children.
11431 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11432 and flag_flag_enum fields.
11433
11434 2014-02-26 Pedro Alves <palves@redhat.com>
11435
11436 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11437 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11438 to_xfer_partial method.
11439
11440 2014-02-26 Pedro Alves <palves@redhat.com>
11441
11442 * target.c (complete_target_initialization): Don't install
11443 default_xfer_partial as to_xfer_partial hook.
11444 (nomemory): Delete.
11445 (update_current_target): Don't INHERIT nor de_fault
11446 deprecated_xfer_memory. Delete de_fault macro.
11447 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11448 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11449 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11450 field.
11451
11452 2014-02-26 Pedro Alves <palves@redhat.com>
11453
11454 * go32-nat.c (my_write_child): New function.
11455 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11456 (go32_xfer_partial): New function.
11457 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11458 Instead install a to_xfer_partial hook.
11459
11460 2014-02-26 Pedro Alves <palves@redhat.com>
11461
11462 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11463 to_xfer_partial helper. Rewrite.
11464 (procfs_xfer_partial): New function.
11465 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11466 Install a to_xfer_partial hook.
11467
11468 2014-02-26 Pedro Alves <palves@redhat.com>
11469
11470 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11471 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11472 (m32r_xfer_partial): New function.
11473 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11474 Install a to_xfer_partial hook.
11475
11476 2014-02-26 Pedro Alves <palves@redhat.com>
11477
11478 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11479 helper.
11480 (mips_xfer_partial): New function.
11481 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11482 hook. Install a to_xfer_partial hook.
11483
11484 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11485
11486 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11487 * gdbtypes.c (create_array_type_with_stride): New function,
11488 renaming create_array_type, but with an added parameter
11489 called "bit_stride".
11490 (create_array_type): Re-implement using
11491 create_array_type_with_stride.
11492 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11493 and DW_AT_bit_stride attributes.
11494
11495 2014-02-26 Pedro Alves <palves@redhat.com>
11496
11497 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11498 task-specific breakpoints.
11499
11500 2014-02-25 Pedro Alves <palves@redhat.com>
11501
11502 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11503 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11504
11505 2014-02-25 Stan Shebs <stan@codesourcery.com>
11506
11507 * defs.h: Annotate comments for Doxygen.
11508
11509 2014-02-25 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (target_ignore): Don't declare.
11512 * target.c (target_ignore): Remove.
11513
11514 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11515
11516 PR gdb/16626
11517 * auto-load.c (auto_load_objfile_script_1): Change filename to
11518 debugfile.
11519
11520 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11521
11522 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11523 documentation. Adjust prototype to match the target_ops
11524 to_xfer_partial method. Adjust implementation accordingly.
11525
11526 2014-02-25 Hui Zhu <hui@codesourcery.com>
11527
11528 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11529 to_traceframe_info.
11530
11531 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11532
11533 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11534 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11535 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11536 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11537 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11538 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11539 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11540 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11541 New constants.
11542 (rl78_register_type): Use a data pointer type for SP and
11543 new pseudo registers mentioned above. Use a 16 bit integer
11544 type for all other register pairs.
11545 (rl78_register_name, rl78_g10_register_name): Update for
11546 new pseudo registers.
11547 (rl78_pseudo_register_read): Likewise.
11548 (rl78_pseudo_register_write): Likewise.
11549 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11550 to the newly added pseudo registers.
11551
11552 2014-02-24 Doug Evans <dje@google.com>
11553
11554 * value.c (record_latest_value): Fix comment.
11555 * printcmd.c (print_command_1): Remove code to handle -1 return from
11556 record_latest_value.
11557
11558 2014-02-24 Pedro Alves <palves@redhat.com>
11559
11560 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11561 deprecated_xfer_memory hook.
11562 (procfs_xfer_partial): Call procfs_xfer_memory instead
11563 of the deprecated_xfer_memory target hook.
11564 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11565 helper.
11566
11567 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11568
11569 * windows-nat.c (windows_xfer_shared_libraries): Return
11570 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11571 requested object is TARGET_OBJECT_LIBRARIES.
11572
11573 2014-02-24 Yao Qi <yao@codesourcery.com>
11574
11575 * target.h (enum target_xfer_status)
11576 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11577 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11578 explicitly. New.
11579 * corefile.c (memory_error_message): User updated.
11580 * exec.c (section_table_read_available_memory): Likewise.
11581 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11582 * target.c (target_xfer_status_to_string): Likewise.
11583 (raw_memory_xfer_partial): Likewise.
11584 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11585 * valops.c (read_value_memory): Likewise.
11586 * exec.h: Update comments.
11587
11588 2014-02-24 Yao Qi <yao@codesourcery.com>
11589
11590 * target.c (target_xfer_status_to_string): Rename argument err
11591 to status.
11592 * target.h (target_xfer_status_to_string): Update declaration.
11593 Replace target_xfer_error_to_string with
11594 target_xfer_status_to_string in comment.
11595
11596 2014-02-24 Yao Qi <yao@codesourcery.com>
11597
11598 * mips-linux-nat.c (super_close): Update its type.
11599 (mips_linux_close): Pass 'self' to super_close.
11600
11601 2014-02-24 Yao Qi <yao@codesourcery.com>
11602
11603 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11604 * corefile.c (read_memory): Adjusted.
11605 * target.c (target_write_with_progress): Adjusted.
11606
11607 2014-02-23 Yao Qi <yao@codesourcery.com>
11608
11609 Revert two patches:
11610
11611 2013-10-25 Yao Qi <yao@codesourcery.com>
11612
11613 * remote.c (remote_traceframe_info): Return early if
11614 traceframe is not selected.
11615
11616 2013-07-19 Yao Qi <yao@codesourcery.com>
11617
11618 * target.c (update_current_target): Change the default action
11619 of 'to_traceframe_info' from tcomplain to return_zero.
11620 * target.h (struct target_ops) <to_traceframe_info>: Add more
11621 comments.
11622
11623 2014-02-23 Yao Qi <yao@codesourcery.com>
11624
11625 * valops.c (read_value_memory): Rewrite it. Call
11626 target_xfer_partial in a loop.
11627 * exec.h (section_table_available_memory): Remove declaration.
11628 Move comments to ...
11629 * exec.c (section_table_available_memory): ... here. Make it
11630 static.
11631
11632 2014-02-23 Yao Qi <yao@codesourcery.com>
11633
11634 * exec.c (section_table_read_available_memory): New function.
11635 * exec.h (section_table_read_available_memory): Declare.
11636 * ctf.c (ctf_xfer_partial): Call
11637 section_table_read_available_memory.
11638 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11639
11640 2014-02-23 Yao Qi <yao@codesourcery.com>
11641
11642 * ctf.c (ctf_xfer_partial): Move code to ...
11643 * exec.c (exec_read_partial_read_only): ... it. New function.
11644 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11645 * tracefile.c: Include "exec.h".
11646 * exec.h (exec_read_partial_read_only): Declare.
11647
11648 2014-02-23 Yao Qi <yao@codesourcery.com>
11649
11650 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11651 (tfile_has_memory): Remove.
11652 (init_tfile_ops): Don't set fields to_has_all_memory and
11653 to_has_memory of tfile_ops.
11654 * tracefile.c (tracefile_has_all_memory): New function.
11655 (tracefile_has_memory): New function.
11656 (init_tracefile_ops): Initialize fields to_has_all_memory and
11657 to_has_memory of 'ops'.
11658
11659 2014-02-23 Yao Qi <yao@codesourcery.com>
11660
11661 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11662 (ctf_thread_alive, ctf_get_trace_status): Remove.
11663 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11664 init_tracefile_ops.
11665 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11666 (tfile_has_stack, tfile_has_registers): Remove.
11667 (tfile_thread_alive): Remove.
11668 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11669 init_tracefile_ops.
11670 * tracefile.c (tracefile_has_stack): New function.
11671 (tracefile_has_registers): New function.
11672 (tracefile_thread_alive): New function.
11673 (tracefile_get_trace_status): New function.
11674 (init_tracefile_ops): New function.
11675 * tracefile.h (init_tracefile_ops): Declare.
11676
11677 2014-02-23 Yao Qi <yao@codesourcery.com>
11678
11679 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11680 (O_LARGEFILE): Likewise.
11681 (tfile_ops): Likewise.
11682 (TRACE_HEADER_SIZE): Likewise.
11683 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11684 (cur_data_size): Likewise.
11685 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11686 (tfile_close, tfile_files_info): Likewise.
11687 (tfile_get_trace_status): Likewise.
11688 (tfile_get_tracepoint_status): Likewise.
11689 (tfile_get_traceframe_address): Likewise.
11690 (tfile_trace_find, match_blocktype): Likewise.
11691 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11692 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11693 (tfile_get_trace_state_variable_value): Likewise.
11694 (tfile_has_all_memory, tfile_has_memory): Likewise.
11695 (tfile_has_stack, tfile_has_registers): Likewise.
11696 (tfile_thread_alive, build_traceframe_info): Likewise.
11697 (tfile_traceframe_info, init_tfile_ops): Likewise.
11698 (_initialize_tracepoint): Don't call init_tfile_ops
11699 and add_target_with_completer.
11700 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11701 exec.h, completer.h and filenames.h.
11702 (_initialize_tracefile_tfile): New function.
11703
11704 2014-02-23 Yao Qi <yao@codesourcery.com>
11705
11706 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11707 tracefile-tfile.o.
11708 (HFILES_NO_SRCDIR): Add tracefile.h.
11709 * ctf.c: Include "tracefile.h".
11710 * tracefile.h: New file.
11711 * tracefile.c: New file
11712 * tracefile-tfile.c: New file.
11713 * tracepoint.c: Include "tracefile.h".
11714 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11715 (stop_reason_names): Add const.
11716 (trace_file_writer_xfree): Move it to tracefile.c.
11717 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11718 (trace_save_ctf): Likewise.
11719 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11720 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11721 (tfile_write_header, tfile_write_regblock_type): Likewise.
11722 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11723 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11724 (tfile_write_raw_data, tfile_end): Likewise.
11725 (tfile_trace_file_writer_new): Likewise.
11726 (free_uploaded_tp): Make it extern.
11727 (free_uploaded_tsv): Make it extern.
11728 (_initialize_tracepoint): Move code to register command 'tsave'
11729 to tracefile.c.
11730 * tracepoint.h (stop_reason_names): Declare.
11731 (struct trace_frame_write_ops): Move it to tracefile.h.
11732 (struct trace_file_write_ops): Likewise.
11733 (struct trace_file_writer): Likewise.
11734 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11735
11736 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11737
11738 PR gdb/16594
11739 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11740 process name.
11741 (get_cores_used_by_process): New parameter num_cores, use it.
11742 (linux_xfer_osdata_processes): Pass num_cores to it.
11743 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11744 process name.
11745
11746 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11747
11748 * target.c (memory_xfer_partial): Fix length arg in call to
11749 breakpoint_xfer_memory.
11750
11751 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11752
11753 PR tdep/16397
11754 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11755 number comes after the + or - signs. Adjust length of register
11756 name to be extracted.
11757
11758 2014-02-20 Tom Tromey <tromey@redhat.com>
11759
11760 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11761 (ada_varobj_ops): Mark "extern".
11762
11763 2014-02-20 Tom Tromey <tromey@redhat.com>
11764
11765 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11766
11767 2014-02-20 Doug Evans <xdje42@gmail.com>
11768
11769 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11770 All callers updated.
11771 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11772 All callers updated.
11773 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11774 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11775
11776 2014-02-20 lin zuojian <manjian2006@gmail.com>
11777 Joel Brobecker <brobecker@adacore.com>
11778 Doug Evans <xdje42@gmail.com>
11779
11780 PR symtab/16581
11781 * dwarf2read.c (struct die_info): New member in_process.
11782 (reset_die_in_process): New function.
11783 (process_die): Set it at the start, reset when returning.
11784 (inherit_abstract_dies): Only call process_die if origin_child_die
11785 not already being processed.
11786
11787 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11788
11789 * windows-nat.c (handle_unload_dll): Add function documentation.
11790 (do_initial_windows_stuff): Add comment explaining why we wait
11791 until after inferior initialization has finished before
11792 processing all DLLs.
11793
11794 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11795
11796 * windows-nat.c (get_module_name): Delete.
11797 (windows_get_exec_module_filename): New function, mostly
11798 inspired from get_module_name.
11799 (windows_pid_to_exec_file): Replace call to get_module_name
11800 by call to windows_get_exec_module_filename.
11801
11802 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11803
11804 * windows-nat.c (handle_load_dll): Rewrite this function's
11805 introductory comment. Remove code using get_module_name
11806 to get the DLL's name.
11807
11808 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11809
11810 * windows-nat.c (get_windows_debug_event): Ignore
11811 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11812 if windows_initialization_done == 0.
11813 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11814 Adjust implementation to always load all DLLs.
11815 (do_initial_windows_stuff): Replace call to
11816 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11817
11818 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11819
11820 * windows-nat.c (_initialize_windows_nat): Deprecate the
11821 "dll-symbols" command. Turn the "add-shared-symbol-files"
11822 and "assf" aliases into commands, and deprecate them as well.
11823 * NEWS: Add entry explaining that "dll-symbols" and its two
11824 aliases are now deprecated.
11825
11826 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11827
11828 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11829 new-line in debug string. Remove trailing spaces.
11830
11831 2014-02-19 Stan Shebs <stan@codesourcery.com>
11832
11833 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11834
11835 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11836
11837 * NEWS: Add entry for the new feature
11838 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11839 and class values.
11840
11841 2014-02-19 Stan Shebs <stan@codesourcery.com>
11842
11843 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11844
11845 2014-02-19 Pedro Alves <palves@redhat.com>
11846
11847 * common/ptid.h (struct ptid): Mention that process_stratum
11848 targets should prefer ptid.lwp.
11849
11850 2014-02-19 Pedro Alves <palves@redhat.com>
11851
11852 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11853 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11854 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11855 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11856 store remote thread ids rather than ptid.tid.
11857 (_initialize_remote): Adjust.
11858
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target.c (target_get_unwinder): Rewrite.
11862 (target_get_tailcall_unwinder): Rewrite.
11863 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11864 (record_btrace_to_get_tailcall_unwinder): New function.
11865 (init_record_btrace_ops): Update.
11866 * target.h (struct target_ops) <to_get_unwinder,
11867 to_get_tailcall_unwinder>: Now function pointers. Use
11868 TARGET_DEFAULT_RETURN.
11869
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11873 argument.
11874 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11875
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11879 directly.
11880 * target-delegates.c: Rebuild.
11881 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11882 TARGET_DEFAULT_FUNC.
11883 * target.c (default_target_decr_pc_after_break): Rename from
11884 forward_target_decr_pc_after_break. Simplify.
11885 (target_decr_pc_after_break): Rely on delegation.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target.c (update_current_target): Do not INHERIT to_doc or
11890 to_magic. Do not de_fault to_open or to_close.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * gcore.h (objfile_find_memory_regions): Declare.
11895 * gcore.c (objfile_find_memory_regions): No longer static. Add
11896 "self" argument.
11897 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11898 * exec.c: Include gcore.h.
11899 (exec_set_find_memory_regions): Remove.
11900 (exec_find_memory_regions): Remove.
11901 (exec_do_find_memory_regions): Remove.
11902 (init_exec_ops): Update.
11903 * defs.h (exec_set_find_memory_regions): Remove.
11904
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * target-delegates.c: Rebuild.
11908 * target.h (struct target_ops) <to_extra_thread_info,
11909 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11910 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11911 not 0, in TARGET_DEFAULT_RETURN.
11912
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target.c (complete_target_initialization): Remove casts. Use
11916 return_zero_has_execution.
11917 (return_zero): Add "ignore" argument.
11918 (return_zero_has_execution): New function.
11919 (init_dummy_target): Remove casts. Use
11920 return_zero_has_execution.
11921
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target.c (update_current_target): Update comments. Do not
11925 INHERIT to_stratum.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11930 needed.
11931 * corelow.c (core_read_description): Delegate when needed.
11932 * remote.c (remote_read_description): Delegate when needed.
11933 * target-delegates.c: Rebuild.
11934 * target.c (target_read_description): Rewrite.
11935 * target.h (struct target_ops) <to_read_description>: Update
11936 comment. Use TARGET_DEFAULT_RETURN.
11937
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_can_run.
11943 (find_default_run_target): Check against delegate_can_run.
11944 * target.h (struct target_ops) <to_can_run>: Use
11945 TARGET_DEFAULT_RETURN.
11946
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target-delegates.c: Rebuild.
11950 * target.c (target_disconnect): Unconditionally delegate.
11951 * target.h (struct target_ops) <to_disconnect>: Use
11952 TARGET_DEFAULT_NORETURN.
11953
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * record.c (record_stop): Unconditionally delegate.
11957 * target-delegates.c: Rebuild.
11958 * target.c (target_stop_recording): Unconditionally delegate.
11959 * target.h (struct target_ops) <to_stop_recording>: Use
11960 TARGET_DEFAULT_IGNORE.
11961
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target-delegates.c: Rebuild.
11965 * target.c (target_enable_btrace): Unconditionally delegate.
11966 * target.h (struct target_ops) <to_enable_btrace>: Use
11967 TARGET_DEFAULT_NORETURN.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target-delegates.c: Rebuild.
11972 * target.c (target_read_btrace): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_read_btrace>: Use
11974 TARGET_DEFAULT_NORETURN.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (target_teardown_btrace): Unconditionally delegate.
11980 * target.h (struct target_ops) <to_teardown_btrace>: Use
11981 TARGET_DEFAULT_NORETURN.
11982
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (target_disable_btrace): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_disable_btrace>: Use
11988 TARGET_DEFAULT_NORETURN.
11989
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target-delegates.c: Rebuild.
11993 * target.c (default_search_memory): New function.
11994 (simple_search_memory): Update comment.
11995 (target_search_memory): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_search_memory>: Use
11997 TARGET_DEFAULT_FUNC.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * auxv.c (default_auxv_parse): No longer static.
12002 (target_auxv_parse): Unconditionally delegate.
12003 * auxv.h (default_auxv_parse): Declare.
12004 * target-delegates.c: Rebuild.
12005 * target.c: Include auxv.h.
12006 * target.h (struct target_ops) <to_auxv_parse>: Use
12007 TARGET_DEFAULT_FUNC.
12008
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target-delegates.c: Rebuild.
12012 * target.c (target_memory_map): Unconditionally delegate.
12013 * target.h (struct target_ops) <to_memory_map>: Use
12014 TARGET_DEFAULT_RETURN.
12015
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target-delegates.c: Rebuild.
12019 * target.c (target_thread_alive): Unconditionally delegate.
12020 * target.h (struct target_ops) <to_thread_alive>: Use
12021 TARGET_DEFAULT_RETURN.
12022
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (target_save_record): Unconditionally delegate.
12027 * target.h (struct target_ops) <to_save_record>: Use
12028 TARGET_DEFAULT_NORETURN.
12029
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_delete_record): Unconditionally delegate.
12034 * target.h (struct target_ops) <to_delete_record>: Use
12035 TARGET_DEFAULT_NORETURN.
12036
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (target_record_is_replaying): Unconditionally
12041 delegate.
12042 * target.h (struct target_ops) <to_record_is_replaying>: Use
12043 TARGET_DEFAULT_RETURN.
12044
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target-delegates.c: Rebuild.
12048 * target.c (target_goto_record_begin): Unconditionally delegate.
12049 * target.h (struct target_ops) <to_goto_record_begin>: Use
12050 TARGET_DEFAULT_NORETURN.
12051
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (target_goto_record_end): Unconditionally delegate.
12056 * target.h (struct target_ops) <to_goto_record_end>: Use
12057 TARGET_DEFAULT_NORETURN.
12058
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target-delegates.c: Rebuild.
12062 * target.c (target_goto_record): Unconditionally delegate.
12063 * target.h (struct target_ops) <to_goto_record>: Use
12064 TARGET_DEFAULT_NORETURN.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target-delegates.c: Rebuild.
12069 * target.c (target_insn_history): Unconditionally delegate.
12070 * target.h (struct target_ops) <to_insn_history>: Use
12071 TARGET_DEFAULT_NORETURN.
12072
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * target-delegates.c: Rebuild.
12076 * target.c (target_insn_history_from): Unconditionally delegate.
12077 * target.h (struct target_ops) <to_insn_history_from>: Use
12078 TARGET_DEFAULT_NORETURN.
12079
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target-delegates.c: Rebuild.
12083 * target.c (target_insn_history_range): Unconditionally delegate.
12084 * target.h (struct target_ops) <to_insn_history_range>: Use
12085 TARGET_DEFAULT_NORETURN.
12086
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target-delegates.c: Rebuild.
12090 * target.c (target_call_history): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_call_history>: Use
12092 TARGET_DEFAULT_NORETURN.
12093
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target-delegates.c: Rebuild.
12097 * target.c (target_call_history_from): Unconditionally delegate.
12098 * target.h (struct target_ops) <to_call_history_from>: Use
12099 TARGET_DEFAULT_NORETURN.
12100
12101 2014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * target-delegates.c: Rebuild.
12104 * target.c (target_call_history_range): Unconditionally delegate.
12105 * target.h (struct target_ops) <to_call_history_range>: Use
12106 TARGET_DEFAULT_NORETURN.
12107
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (target_verify_memory): Unconditionally delegate.
12112 * target.h (struct target_ops) <to_verify_memory>: Use
12113 TARGET_DEFAULT_NORETURN.
12114
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target-delegates.c: Rebuild.
12118 * target.c (target_core_of_thread): Unconditionally delegate.
12119 * target.h (struct target_ops) <to_core_of_thread>: Use
12120 TARGET_DEFAULT_RETURN.
12121
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (target_flash_done): Unconditionally delegate.
12126 * target.h (struct target_ops) <to_flash_done>: Use
12127 TARGET_DEFAULT_NORETURN.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target-delegates.c: Rebuild.
12132 * target.c (target_flash_erase): Unconditionally delegate.
12133 * target.h (struct target_ops) <to_flash_erase>: Use
12134 TARGET_DEFAULT_NORETURN.
12135
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target-delegates.c: Rebuild.
12139 * target.c (target_get_section_table): Unconditionally delegate.
12140 * target.h (struct target_ops) <to_get_section_table>: Use
12141 TARGET_DEFAULT_RETURN.
12142
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_pid_to_str): Unconditionally delegate.
12147 (init_dummy_target): Don't initialize to_pid_to_str.
12148 (default_pid_to_str): Rename from dummy_pid_to_str.
12149 * target.h (struct target_ops) <to_pid_to_str>: Use
12150 TARGET_DEFAULT_FUNC.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (target_find_new_threads): Unconditionally delegate.
12156 * target.h (struct target_ops) <to_find_new_threads>: Use
12157 TARGET_DEFAULT_RETURN.
12158
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target-delegates.c: Rebuild.
12162 * target.c (target_program_signals): Unconditionally delegate.
12163 * target.h (struct target_ops) <to_program_signals>: Use
12164 TARGET_DEFAULT_IGNORE.
12165
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target-delegates.c: Rebuild.
12169 * target.c (target_pass_signals): Unconditionally delegate.
12170 * target.h (struct target_ops) <to_pass_signals>: Use
12171 TARGET_DEFAULT_IGNORE.
12172
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target-delegates.c: Rebuild.
12176 * target.c (default_mourn_inferior): New function.
12177 (target_mourn_inferior): Unconditionally delegate.
12178 * target.h (struct target_ops) <to_mourn_inferior>: Use
12179 TARGET_DEFAULT_FUNC.
12180
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target-delegates.c: Rebuild.
12184 * target.c (default_follow_fork): New function.
12185 (target_follow_fork): Unconditionally delegate.
12186 * target.h (struct target_ops) <to_follow_fork>: Use
12187 TARGET_DEFAULT_FUNC.
12188
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target-delegates.c: Rebuild.
12192 * target.c (target_kill): Unconditionally delegate.
12193 * target.h (struct target_ops) <to_kill>: Use
12194 TARGET_DEFAULT_NORETURN.
12195
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target-delegates.c: Rebuild.
12199 * target.c (target_masked_watch_num_registers): Unconditionally
12200 delegate.
12201 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12202 Use TARGET_DEFAULT_RETURN.
12203
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target-delegates.c: Rebuild.
12207 * target.c (target_remove_mask_watchpoint): Unconditionally
12208 delegate.
12209 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12210 TARGET_DEFAULT_RETURN.
12211
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (target_insert_mask_watchpoint): Unconditionally
12216 delegate.
12217 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12218 TARGET_DEFAULT_RETURN.
12219
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target-delegates.c: Rebuild.
12223 * target.c (target_ranged_break_num_registers): Unconditionally
12224 delegate.
12225 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12226 Use TARGET_DEFAULT_RETURN.
12227
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target-delegates.c: Rebuild.
12231 * target.c (target_fetch_registers): Unconditionally delegate.
12232 * target.h (struct target_ops) <to_fetch_registers>: Use
12233 TARGET_DEFAULT_NORETURN.
12234
12235 2014-02-19 Tom Tromey <tromey@redhat.com>
12236
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12239 to_stop.
12240 * target.h (struct target_ops) <to_stop>: Use
12241 TARGET_DEFAULT_IGNORE.
12242
12243 2014-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_can_run_breakpoint_commands.
12248 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12249 Use TARGET_DEFAULT_RETURN.
12250
12251 2014-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_supports_evaluation_of_breakpoint_conditions.
12256 * target.h (struct target_ops)
12257 <to_supports_evaluation_of_breakpoint_conditions>: Use
12258 TARGET_DEFAULT_RETURN.
12259
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target-delegates.c: Rebuild.
12263 * target.c (update_current_target): Don't inherit or default
12264 to_augmented_libraries_svr4_read.
12265 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12266 Use TARGET_DEFAULT_RETURN.
12267
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target-delegates.c: Rebuild.
12271 * target.c (update_current_target): Don't inherit or default
12272 to_can_use_agent.
12273 * target.h (struct target_ops) <to_can_use_agent>: Use
12274 TARGET_DEFAULT_RETURN.
12275
12276 2014-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_use_agent.
12281 * target.h (struct target_ops) <to_use_agent>: Use
12282 TARGET_DEFAULT_NORETURN.
12283
12284 2014-02-19 Tom Tromey <tromey@redhat.com>
12285
12286 * target-delegates.c: Rebuild.
12287 * target.c (update_current_target): Don't inherit or default
12288 to_traceframe_info.
12289 (return_null): Remove.
12290 * target.h (struct target_ops) <to_traceframe_info>: Use
12291 TARGET_DEFAULT_RETURN.
12292
12293 2014-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_static_tracepoint_markers_by_strid.
12298 * target.h (struct target_ops)
12299 <to_static_tracepoint_markers_by_strid>: Use
12300 TARGET_DEFAULT_NORETURN.
12301
12302 2014-02-19 Tom Tromey <tromey@redhat.com>
12303
12304 * target-delegates.c: Rebuild.
12305 * target.c (update_current_target): Don't inherit or default
12306 to_static_tracepoint_marker_at.
12307 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12308 Use TARGET_DEFAULT_RETURN.
12309
12310 2014-02-19 Tom Tromey <tromey@redhat.com>
12311
12312 * target-delegates.c: Rebuild.
12313 * target.c (update_current_target): Don't inherit or default
12314 to_set_permissions.
12315 * target.h (struct target_ops) <to_set_permissions>: Use
12316 TARGET_DEFAULT_IGNORE.
12317
12318 2014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * target-delegates.c: Rebuild.
12321 * target.c (update_current_target): Don't inherit or default
12322 to_get_tib_address.
12323 * target.h (struct target_ops) <to_get_tib_address>: Use
12324 TARGET_DEFAULT_NORETURN.
12325
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target-delegates.c: Rebuild.
12329 * target.c (update_current_target): Don't inherit or default
12330 to_set_trace_notes.
12331 * target.h (struct target_ops) <to_set_trace_notes>: Use
12332 TARGET_DEFAULT_RETURN.
12333
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target-delegates.c: Rebuild.
12337 * target.c (update_current_target): Don't initialize
12338 to_set_trace_buffer_size.
12339 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12340 TARGET_DEFAULT_IGNORE.
12341
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12346 to_set_circular_trace_buffer.
12347 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12348 TARGET_DEFAULT_IGNORE.
12349
12350 2014-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_set_disconnected_tracing.
12355 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12356 TARGET_DEFAULT_IGNORE.
12357
12358 2014-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_get_min_fast_tracepoint_insn_len.
12363 (return_minus_one): Remove.
12364 * target.h (struct target_ops)
12365 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12366
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_get_raw_trace_data.
12372 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12373 TARGET_DEFAULT_NORETURN.
12374
12375 2014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target-delegates.c: Rebuild.
12378 * target.c (update_current_target): Don't inherit or default
12379 to_upload_trace_state_variables.
12380 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12381 Use TARGET_DEFAULT_RETURN.
12382
12383 2014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_upload_tracepoints.
12388 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12389 TARGET_DEFAULT_RETURN.
12390
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12395 to_save_trace_data.
12396 * target.h (struct target_ops) <to_save_trace_data>: Use
12397 TARGET_DEFAULT_NORETURN.
12398
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12403 to_get_trace_state_variable_value.
12404 * target.h (struct target_ops)
12405 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12406
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target-delegates.c: Rebuild.
12410 * target.c (update_current_target): Don't inherit or default
12411 to_trace_find.
12412 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12413
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12418 to_trace_stop.
12419 * target.h (struct target_ops) <to_trace_stop>: Use
12420 TARGET_DEFAULT_NORETURN.
12421
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12423
12424 * target-delegates.c: Rebuild.
12425 * target.c (update_current_target): Don't inherit or default
12426 to_get_tracepoint_status.
12427 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12428 TARGET_DEFAULT_NORETURN.
12429
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target-delegates.c: Rebuild.
12433 * target.c (update_current_target): Don't inherit or default
12434 to_get_trace_status.
12435 * target.h (struct target_ops) <to_get_trace_status>: Use
12436 TARGET_DEFAULT_RETURN.
12437
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target-delegates.c: Rebuild.
12441 * target.c (update_current_target): Don't inherit or default
12442 to_trace_start.
12443 * target.h (struct target_ops) <to_trace_start>: Use
12444 TARGET_DEFAULT_NORETURN.
12445
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target-delegates.c: Rebuild.
12449 * target.c (update_current_target): Don't inherit or default
12450 to_trace_set_readonly_regions.
12451 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12452 Use TARGET_DEFAULT_NORETURN.
12453
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * target-delegates.c: Rebuild.
12457 * target.c (update_current_target): Don't inherit or default
12458 to_disable_tracepoint.
12459 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12460 TARGET_DEFAULT_NORETURN.
12461
12462 2014-02-19 Tom Tromey <tromey@redhat.com>
12463
12464 * target-delegates.c: Rebuild.
12465 * target.c (update_current_target): Don't inherit or default
12466 to_enable_tracepoint.
12467 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12468 TARGET_DEFAULT_NORETURN.
12469
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12471
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_download_trace_state_variable.
12475 * target.h (struct target_ops) <to_download_trace_state_variable>:
12476 Use TARGET_DEFAULT_NORETURN.
12477
12478 2014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12482 to_can_download_tracepoint.
12483 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12484 TARGET_DEFAULT_RETURN.
12485
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target-delegates.c: Rebuild.
12489 * target.c (update_current_target): Don't inherit or default
12490 to_download_tracepoint.
12491 * target.h (struct target_ops) <to_download_tracepoint>: Use
12492 TARGET_DEFAULT_NORETURN.
12493
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target-delegates.c: Rebuild.
12497 * target.c (update_current_target): Don't inherit or default
12498 to_trace_init.
12499 * target.h (struct target_ops) <to_trace_init>: Use
12500 TARGET_DEFAULT_RETURN.
12501
12502 2014-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_string_tracing.
12507 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12508 TARGET_DEFAULT_RETURN.
12509
12510 2014-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_supports_enable_disable_tracepoint.
12515 * target.h (struct target_ops)
12516 <to_supports_enable_disable_tracepoint>: Use
12517 TARGET_DEFAULT_RETURN.
12518
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target-delegates.c: Rebuild.
12522 * target.c (update_current_target): Don't inherit or default
12523 to_supports_multi_process.
12524 * target.h (struct target_ops) <to_supports_multi_process>: Use
12525 TARGET_DEFAULT_RETURN.
12526
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target-delegates.c: Rebuild.
12530 * target.c (update_current_target): Don't inherit or default
12531 to_get_ada_task_ptid.
12532 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12533 TARGET_DEFAULT_FUNC.
12534
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target-delegates.c: Rebuild.
12538 * target.c (update_current_target): Don't inherit or default
12539 to_thread_architecture.
12540 * target.h (struct target_ops) <to_thread_architecture>: Use
12541 TARGET_DEFAULT_FUNC.
12542
12543 2014-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_execution_direction.
12548 * target.h (struct target_ops) <to_execution_direction>: Use
12549 TARGET_DEFAULT_FUNC.
12550
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target-delegates.c: Rebuild.
12554 * target.c (update_current_target): Don't inherit or default
12555 to_can_execute_reverse.
12556 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12557 TARGET_DEFAULT_RETURN.
12558 (target_can_execute_reverse): Unconditionally delegate.
12559
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target-delegates.c: Rebuild.
12563 * target.c (update_current_target): Don't inherit or default
12564 to_goto_bookmark.
12565 (dummy_goto_bookmark): Remove.
12566 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12567 * target.h (struct target_ops) <to_goto_bookmark>: Use
12568 TARGET_DEFAULT_NORETURN.
12569
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12571
12572 * target-delegates.c: Rebuild.
12573 * target.c (update_current_target): Don't inherit or default
12574 to_get_bookmark.
12575 (dummy_get_bookmark): Remove.
12576 (init_dummy_target): Don't inherit or default to_get_bookmark.
12577 * target.h (struct target_ops) <to_get_bookmark>: Use
12578 TARGET_DEFAULT_NORETURN
12579
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_make_corefile_notes.
12585 (init_dummy_target): Don't initialize to_make_corefile_notes.
12586 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12587 TARGET_DEFAULT_FUNC.
12588
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target-delegates.c: Rebuild.
12592 * target.c (update_current_target): Don't inherit or default
12593 to_find_memory_regions.
12594 (init_dummy_target): Don't initialize to_find_memory_regions.
12595 * target.h (struct target_ops) <to_find_memory_regions>: Use
12596 TARGET_DEFAULT_FUNC.
12597
12598 2014-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_log_command.
12603 * target.h (struct target_ops) <to_log_command>: Use
12604 TARGET_DEFAULT_IGNORE.
12605 (target_log_command): Unconditionally delegate.
12606
12607 2014-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_pid_to_exec_file.
12612 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12613 TARGET_DEFAULT_RETURN.
12614
12615 2014-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_thread_name.
12620 (target_thread_name): Unconditionally delegate.
12621 * target.h (struct target_ops) <to_thread_name>: Use
12622 TARGET_DEFAULT_RETURN.
12623
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target-delegates.c: Rebuild.
12627 * target.c (update_current_target): Don't inherit or default
12628 to_extra_thread_info.
12629 * target.h (struct target_ops) <to_extra_thread_info>: Use
12630 TARGET_DEFAULT_RETURN.
12631
12632 2014-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_has_exited.
12637 * target.h (struct target_ops) <to_has_exited>: Use
12638 TARGET_DEFAULT_RETURN..
12639
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_set_syscall_catchpoint.
12645 (return_one): Remove.
12646 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12647 TARGET_DEFAULT_RETURN.
12648
12649 2014-02-19 Tom Tromey <tromey@redhat.com>
12650
12651 * target-delegates.c: Rebuild.
12652 * target.c (update_current_target): Don't inherit or default
12653 to_insert_exec_catchpoint.
12654 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12655 TARGET_DEFAULT_RETURN.
12656
12657 2014-01-08 Tom Tromey <tromey@redhat.com>
12658
12659 * target-delegates.c: Rebuild.
12660 * target.c (update_current_target): Don't inherit or default
12661 to_insert_exec_catchpoint.
12662 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12663 TARGET_DEFAULT_RETURN.
12664
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target-delegates.c: Rebuild.
12668 * target.c (update_current_target): Don't inherit or default
12669 to_remove_vfork_catchpoint.
12670 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12671 TARGET_DEFAULT_RETURN.
12672
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target-delegates.c: Rebuild.
12676 * target.c (update_current_target): Don't inherit or default
12677 to_insert_vfork_catchpoint.
12678 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12679 TARGET_DEFAULT_RETURN.
12680
12681 2014-02-19 Tom Tromey <tromey@redhat.com>
12682
12683 * target-delegates.c: Rebuild.
12684 * target.c (update_current_target): Don't inherit or default
12685 to_remove_fork_catchpoint.
12686 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12687 TARGET_DEFAULT_RETURN.
12688
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12690
12691 * target-delegates.c: Rebuild.
12692 * target.c (update_current_target): Don't inherit or default
12693 to_insert_fork_catchpoint.
12694 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12695 TARGET_DEFAULT_RETURN.
12696
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target-delegates.c: Rebuild.
12700 * target.c (update_current_target): Don't inherit or default
12701 to_post_startup_inferior.
12702 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12703 TARGET_DEFAULT_IGNORE.
12704
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target-delegates.c: Rebuild.
12708 * target.c (update_current_target): Don't inherit or default
12709 to_load.
12710 * target.h (struct target_ops) <to_load>: Use
12711 TARGET_DEFAULT_NORETURN.
12712
12713 2014-02-19 Tom Tromey <tromey@redhat.com>
12714
12715 * target-delegates.c: Rebuild.
12716 * target.c (update_current_target): Don't inherit or default
12717 to_terminal_info.
12718 * target.h (struct target_ops) <to_terminal_info>: Use
12719 TARGET_DEFAULT_FUNC.
12720
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * target-delegates.c: Rebuild.
12724 * target.c (update_current_target): Don't inherit or default
12725 to_terminal_save_ours.
12726 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12727 TARGET_DEFAULT_IGNORE.
12728
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target-delegates.c: Rebuild.
12732 * target.c (update_current_target): Don't inherit or default
12733 to_terminal_ours.
12734 * target.h (struct target_ops) <to_terminal_ours>: Use
12735 TARGET_DEFAULT_IGNORE.
12736
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target-delegates.c: Rebuild.
12740 * target.c (update_current_target): Don't inherit or default
12741 to_terminal_ours_for_output.
12742 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12743 TARGET_DEFAULT_IGNORE.
12744
12745 2014-02-19 Tom Tromey <tromey@redhat.com>
12746
12747 * target-delegates.c: Rebuild.
12748 * target.c (update_current_target): Don't inherit or default
12749 to_terminal_inferior.
12750 * target.h (struct target_ops) <to_terminal_inferior>: Use
12751 TARGET_DEFAULT_IGNORE.
12752
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target-delegates.c: Rebuild.
12756 * target.c (update_current_target): Don't inherit or default
12757 to_terminal_init.
12758 * target.h (struct target_ops) <to_terminal_init>: Use
12759 TARGET_DEFAULT_IGNORE.
12760
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target-delegates.c: Rebuild.
12764 * target.c (update_current_target): Don't inherit or default
12765 to_can_accel_watchpoint_condition.
12766 * target.h (struct target_ops)
12767 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12768
12769 2014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target-delegates.c: Rebuild.
12772 * target.c (update_current_target): Don't inherit or default
12773 to_region_ok_for_hw_watchpoint.
12774 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12775 Use TARGET_DEFAULT_FUNC.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target-delegates.c: Rebuild.
12780 * target.c (update_current_target): Don't inherit or default
12781 to_watchpoint_addr_within_range.
12782 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12783 Use TARGET_DEFAULT_FUNC.
12784
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * target-delegates.c: Rebuild.
12788 * target.c (update_current_target): Don't inherit or default
12789 to_remove_watchpoint.
12790 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12791 TARGET_DEFAULT_NORETURN.
12792
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target-delegates.c: Rebuild.
12796 * target.c (update_current_target): Don't inherit or default
12797 to_insert_watchpoint.
12798 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12799 TARGET_DEFAULT_RETURN.
12800
12801 2014-02-19 Tom Tromey <tromey@redhat.com>
12802
12803 * target-delegates.c: Rebuild.
12804 * target.c (update_current_target): Don't inherit or default
12805 to_remove_hw_breakpoint.
12806 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12807 TARGET_DEFAULT_RETURN.
12808
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target-delegates.c: Rebuild.
12812 * target.c (update_current_target): Don't inherit or default
12813 to_insert_hw_breakpoint.
12814 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12815 TARGET_DEFAULT_RETURN.
12816
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12818
12819 * target-delegates.c: Rebuild.
12820 * target.c (update_current_target): Don't inherit or default
12821 to_can_use_hw_breakpoint.
12822 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12823 TARGET_DEFAULT_RETURN.
12824
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target-delegates.c: Rebuild.
12828 * target.c (update_current_target): Don't inherit or default
12829 to_files_info.
12830 * target.h (struct target_ops) <to_files_info>: Use
12831 TARGET_DEFAULT_IGNORE.
12832
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target-delegates.c: Rebuild.
12836 * target.c (update_current_target): Don't inherit or default
12837 to_store.
12838 * target.h (struct target_ops) <to_store>: Use
12839 TARGET_DEFAULT_NORETURN.
12840
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12842
12843 * target-delegates.c: Rebuild.
12844 * target.c (update_current_target): Don't inherit or default
12845 to_post_attach.
12846 * target.h (struct target_ops) <to_post_attach>: Use
12847 TARGET_DEFAULT_IGNORE.
12848
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target-delegates.c: Rebuild.
12852 * target.c (update_current_target): Don't inherit or default
12853 to_rcmd.
12854 (default_rcmd): New function.
12855 (do_monitor_command): Unconditionally delegate.
12856 * target.h (struct target_ops) <to_rmcd>: Use
12857 TARGET_DEFAULT_FUNC.
12858
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12860
12861 * target-delegates.c: Rebuild.
12862 * target.c (init_dummy_target): Don't initialize to_attach.
12863 (target_attach): Unconditionally delegate.
12864 * target.h (struct target_ops) <to_attach>: Use
12865 TARGET_DEFAULT_FUNC.
12866
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * target-delegates.c: Rebuild.
12870 * target.c (target_detach): Unconditionally delegate.
12871 (init_dummy_target): Don't initialize to_detach.
12872 * target.h (struct target_ops) <to_detach>: Use
12873 TARGET_DEFAULT_IGNORE.
12874
12875 2014-02-19 Tom Tromey <tromey@redhat.com>
12876
12877 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12878 Add argument.
12879 (target_augmented_libraries_svr4_read): Add argument.
12880 * target.c (update_current_target): Update.
12881 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12882 argument.
12883
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_call_history_range>: Add
12887 argument.
12888 * target.c (target_call_history_range): Add argument.
12889 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12890 argument.
12891 (record_btrace_call_history_from): Update.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_call_history_from>: Add
12896 argument.
12897 * target.c (target_call_history_from): Add argument.
12898 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12899 argument.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_call_history>: Add argument.
12904 * target.c (target_call_history): Add argument.
12905 * record-btrace.c (record_btrace_call_history): Add 'self'
12906 argument.
12907
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12909
12910 * target.h (struct target_ops) <to_insn_history_range>: Add
12911 argument.
12912 * target.c (target_insn_history_range): Add argument.
12913 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12914 argument.
12915 (record_btrace_insn_history_from): Update.
12916
12917 2014-02-19 Tom Tromey <tromey@redhat.com>
12918
12919 * target.h (struct target_ops) <to_insn_history_from>: Add
12920 argument.
12921 * target.c (target_insn_history_from): Add argument.
12922 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12923 argument.
12924
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_insn_history>: Add argument.
12928 * target.c (target_insn_history): Add argument.
12929 * record-btrace.c (record_btrace_insn_history): Add 'self'
12930 argument.
12931
12932 2014-02-19 Tom Tromey <tromey@redhat.com>
12933
12934 * target.h (struct target_ops) <to_goto_record>: Add argument.
12935 * target.c (target_goto_record): Add argument.
12936 * record-full.c (record_full_goto): Add 'self' argument.
12937 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12938
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12942 * target.c (target_goto_record_end): Add argument.
12943 * record-full.c (record_full_goto_end): Add 'self' argument.
12944 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12945
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_goto_record_begin>: Add
12949 argument.
12950 * target.c (target_goto_record_begin): Add argument.
12951 * record-full.c (record_full_goto_begin): Add 'self' argument.
12952 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12953 argument.
12954
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_record_is_replaying>: Add
12958 argument.
12959 * target.c (target_record_is_replaying): Add argument.
12960 * record-full.c (record_full_is_replaying): Add 'self' argument.
12961 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12962 argument.
12963 (record_btrace_xfer_partial, record_btrace_store_registers)
12964 (record_btrace_prepare_to_store, record_btrace_resume)
12965 (record_btrace_wait, record_btrace_decr_pc_after_break)
12966 (record_btrace_find_new_threads, record_btrace_thread_alive):
12967 Update.
12968
12969 2014-02-19 Tom Tromey <tromey@redhat.com>
12970
12971 * target.h (struct target_ops) <to_delete_record>: Add argument.
12972 * target.c (target_delete_record): Add argument.
12973 * record-full.c (record_full_delete): Add 'self' argument.
12974
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12976
12977 * target.h (struct target_ops) <to_save_record>: Add argument.
12978 * target.c (target_save_record): Add argument.
12979 * record-full.c (record_full_save): Add 'self' argument.
12980 (record_full_save): Add 'self' argument.
12981
12982 2014-02-19 Tom Tromey <tromey@redhat.com>
12983
12984 * target.h (struct target_ops) <to_info_record>: Add argument.
12985 * target.c (target_info_record): Add argument.
12986 * record.c (info_record_command): Add argument.
12987 * record-full.c (record_full_info): Add 'self' argument.
12988 * record-btrace.c (record_btrace_info): Add 'self' argument.
12989
12990 2014-02-19 Tom Tromey <tromey@redhat.com>
12991
12992 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12993 * target.c (target_stop_recording): Add argument.
12994 * record.c (record_stop): Add argument.
12995 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12996 argument.
12997
12998 2014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * target.h (struct target_ops) <to_read_btrace>: Add argument.
13001 * target.c (struct target_ops) <to_read_btrace>: Add argument.
13002 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
13003 argument.
13004 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
13005 (_initialize_amd64_linux_nat): Use it.
13006 * i386-linux-nat.c (i386_linux_read_btrace): New function.
13007 (_initialize_i386_linux_nat): Use it.
13008
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13010
13011 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13012 * target.c (target_teardown_btrace): Add argument.
13013 * remote.c (remote_teardown_btrace): Add 'self' argument.
13014 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13015 argument.
13016 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13017 argument.
13018
13019 2014-02-19 Tom Tromey <tromey@redhat.com>
13020
13021 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13022 * target.c (target_disable_btrace): Add argument.
13023 * remote.c (remote_disable_btrace): Add 'self' argument.
13024 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13025 argument.
13026 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13027 argument.
13028
13029 2014-02-19 Tom Tromey <tromey@redhat.com>
13030
13031 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13032 * target.c (target_enable_btrace): Add argument.
13033 * remote.c (remote_enable_btrace): Add 'self' argument.
13034 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13035 argument.
13036 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13037 argument.
13038
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13040
13041 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13042 (target_can_use_agent): Add argument.
13043 * target.c (update_current_target): Update.
13044 * remote.c (remote_can_use_agent): Add 'self' argument.
13045 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13046
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * target.h (struct target_ops) <to_use_agent>: Add argument.
13050 (target_use_agent): Add argument.
13051 * target.c (update_current_target): Update.
13052 * remote.c (remote_use_agent): Add 'self' argument.
13053 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13054
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13058 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13059 (target_traceframe_info): Add argument.
13060 * target.c (update_current_target): Update.
13061 * remote.c (remote_traceframe_info): Add 'self' argument.
13062 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13063
13064 2014-02-19 Tom Tromey <tromey@redhat.com>
13065
13066 * target.h (target_static_tracepoint_markers_by_strid): Add
13067 argument.
13068 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13069 'self' argument.
13070 * target.c (update_current_target): Update.
13071 * remote.c (struct target_ops)
13072 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13073 * linux-nat.c (struct target_ops)
13074 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13075
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13079 Add argument.
13080 (target_static_tracepoint_marker_at): Add argument.
13081 * target.c (update_current_target): Update.
13082 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13083 argument.
13084
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13088 (target_set_permissions): Add argument.
13089 * target.c (update_current_target): Update.
13090 * remote.c (remote_set_permissions): Add 'self' argument.
13091 (remote_start_remote): Update.
13092
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13096 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13097 (target_get_tib_address): Add argument.
13098 * target.c (update_current_target): Update.
13099 * remote.c (remote_get_tib_address): Add 'self' argument.
13100
13101 2014-02-19 Tom Tromey <tromey@redhat.com>
13102
13103 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13104 (target_set_trace_notes): Add argument.
13105 * target.c (update_current_target): Update.
13106 * remote.c (remote_set_trace_notes): Add 'self' argument.
13107
13108 2014-02-19 Tom Tromey <tromey@redhat.com>
13109
13110 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13111 argument.
13112 (target_set_trace_buffer_size): Add argument.
13113 * target.c (update_current_target): Update.
13114 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13115
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13117
13118 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13119 argument.
13120 (target_set_circular_trace_buffer): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13123 argument.
13124
13125 2014-02-19 Tom Tromey <tromey@redhat.com>
13126
13127 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13128 argument.
13129 (target_set_disconnected_tracing): Add argument.
13130 * target.c (update_current_target): Update.
13131 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13132
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops)
13136 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13137 (target_get_min_fast_tracepoint_insn_len): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13140 argument.
13141
13142 2014-02-19 Tom Tromey <tromey@redhat.com>
13143
13144 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13145 argument.
13146 (target_get_raw_trace_data): Add argument.
13147 * target.c (update_current_target): Update.
13148 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13149
13150 2014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13153 Add argument.
13154 (target_upload_trace_state_variables): Add argument.
13155 * target.c (update_current_target): Update.
13156 * remote.c (remote_upload_trace_state_variables): Add 'self'
13157 argument.
13158 (remote_start_remote): Update.
13159
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13161
13162 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13163 argument.
13164 (target_upload_tracepoints): Add argument.
13165 * target.c (update_current_target): Update.
13166 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13167 (remote_start_remote): Update.
13168
13169 2014-02-19 Tom Tromey <tromey@redhat.com>
13170
13171 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13172 (target_save_trace_data): Add argument.
13173 * target.c (update_current_target): Update.
13174 * remote.c (remote_save_trace_data): Add 'self' argument.
13175
13176 2014-02-19 Tom Tromey <tromey@redhat.com>
13177
13178 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13179 argument.
13180 * target.h (struct target_ops)
13181 <to_get_trace_state_variable_value>: Add argument.
13182 (target_get_trace_state_variable_value): Add argument.
13183 * target.c (update_current_target): Update.
13184 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13185 argument.
13186 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13187
13188 2014-02-19 Tom Tromey <tromey@redhat.com>
13189
13190 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13191 * target.h (struct target_ops) <to_trace_find>: Add argument.
13192 (target_trace_find): Add argument.
13193 * target.c (update_current_target): Update.
13194 * remote.c (remote_trace_find): Add 'self' argument.
13195 * ctf.c (ctf_trace_find): Add 'self' argument.
13196
13197 2014-02-19 Tom Tromey <tromey@redhat.com>
13198
13199 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13200 (target_trace_stop): Add argument.
13201 * target.c (update_current_target): Update.
13202 * remote.c (remote_trace_stop): Add 'self' argument.
13203
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13205
13206 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13207 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13208 argument.
13209 (target_get_tracepoint_status): Add argument.
13210 * target.c (update_current_target): Update.
13211 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13212
13213 2014-02-19 Tom Tromey <tromey@redhat.com>
13214
13215 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13216 * target.h (struct target_ops) <to_get_trace_status>: Add
13217 argument.
13218 (target_get_trace_status): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_get_trace_status): Add 'self' argument.
13221 (remote_start_remote, remote_can_download_tracepoint): Update.
13222 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13223
13224 2014-02-19 Tom Tromey <tromey@redhat.com>
13225
13226 * target.h (struct target_ops) <to_trace_start>: Add argument.
13227 (target_trace_start): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_trace_start): Add 'self' argument.
13230
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13234 Add argument.
13235 (target_trace_set_readonly_regions): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13238 argument.
13239
13240 2014-02-19 Tom Tromey <tromey@redhat.com>
13241
13242 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13243 argument.
13244 (target_disable_tracepoint): Add argument.
13245 * target.c (update_current_target): Update.
13246 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13247
13248 2014-02-19 Tom Tromey <tromey@redhat.com>
13249
13250 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13251 argument.
13252 (target_enable_tracepoint): Add argument.
13253 * target.c (update_current_target): Update.
13254 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13255
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13257
13258 * target.h (struct target_ops) <to_download_trace_state_variable>:
13259 Add argument.
13260 (target_download_trace_state_variable): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_download_trace_state_variable): Add 'self'
13263 argument.
13264
13265 2014-02-19 Tom Tromey <tromey@redhat.com>
13266
13267 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13268 argument.
13269 (target_can_download_tracepoint): Add argument.
13270 * target.c (update_current_target): Update.
13271 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13272
13273 2014-02-19 Tom Tromey <tromey@redhat.com>
13274
13275 * target.h (struct target_ops) <to_download_tracepoint>: Add
13276 argument.
13277 (target_download_tracepoint): Add argument.
13278 * target.c (update_current_target): Update.
13279 * remote.c (remote_download_tracepoint): Add 'self' argument.
13280
13281 2014-02-19 Tom Tromey <tromey@redhat.com>
13282
13283 * target.h (struct target_ops) <to_trace_init>: Add argument.
13284 (target_trace_init): Add argument.
13285 * target.c (update_current_target): Update.
13286 * remote.c (remote_trace_init): Add 'self' argument.
13287
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13291 * target.c (target_fileio_readlink): Add argument.
13292 * remote.c (remote_hostio_readlink): Add 'self' argument.
13293 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13294
13295 2014-02-19 Tom Tromey <tromey@redhat.com>
13296
13297 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13298 * target.c (target_fileio_unlink): Add argument.
13299 * remote.c (remote_hostio_unlink): Add 'self' argument.
13300 (remote_file_delete): Update.
13301 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13302
13303 2014-02-19 Tom Tromey <tromey@redhat.com>
13304
13305 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13306 * target.c (target_fileio_close): Add argument.
13307 * remote.c (remote_hostio_close): Add 'self' argument.
13308 (remote_hostio_close_cleanup): Update.
13309 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13310 Update.
13311 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13312
13313 2014-02-19 Tom Tromey <tromey@redhat.com>
13314
13315 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13316 * target.c (target_fileio_pread): Add argument.
13317 * remote.c (remote_hostio_pread): Add 'self' argument.
13318 (remote_bfd_iovec_pread, remote_file_get): Update.
13319 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13320
13321 2014-02-19 Tom Tromey <tromey@redhat.com>
13322
13323 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13324 * target.c (target_fileio_pwrite): Add argument.
13325 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13326 (remote_file_put): Update.
13327 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13328
13329 2014-02-19 Tom Tromey <tromey@redhat.com>
13330
13331 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13332 * target.c (target_fileio_open): Add argument.
13333 * remote.c (remote_hostio_open): Add 'self' argument.
13334 (remote_bfd_iovec_open): Add 'self' argument.
13335 (remote_file_put): Add 'self' argument.
13336 (remote_file_get): Add 'self' argument.
13337 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13338
13339 2014-02-19 Tom Tromey <tromey@redhat.com>
13340
13341 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13342 Add argument.
13343 (target_can_run_breakpoint_commands): Add argument.
13344 * target.c (update_current_target): Update.
13345 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13346 argument.
13347 (remote_insert_breakpoint): Add 'self' argument.
13348 (remote_insert_hw_breakpoint): Add 'self' argument.
13349 (remote_can_run_breakpoint_commands): Add 'self' argument.
13350
13351 2014-02-19 Tom Tromey <tromey@redhat.com>
13352
13353 * target.h (struct target_ops)
13354 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13355 (target_supports_evaluation_of_breakpoint_conditions): Add
13356 argument.
13357 * target.c (update_current_target): Update.
13358 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13359 argument.
13360 (remote_insert_breakpoint): Add 'self' argument.
13361 (remote_insert_hw_breakpoint): Add 'self' argument.
13362 (remote_supports_cond_breakpoints): Add 'self' argument.
13363
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13365
13366 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13367 argument.
13368 (target_supports_string_tracing): Add argument.
13369 * target.c (update_current_target): Update.
13370 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13371
13372 2014-02-19 Tom Tromey <tromey@redhat.com>
13373
13374 * target.h (struct target_ops)
13375 <to_supports_disable_randomization>: Add argument.
13376 * target.c (find_default_supports_disable_randomization): Add
13377 argument.
13378 (target_supports_disable_randomization): Add argument.
13379 (find_default_supports_disable_randomization): Add 'self'
13380 argument.
13381 * remote.c (extended_remote_supports_disable_randomization): Add
13382 'self' argument.
13383 (remote_supports_disable_randomization): Add 'self' argument.
13384 (extended_remote_create_inferior): Update.
13385 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13386 'self' argument.
13387
13388 2014-02-19 Tom Tromey <tromey@redhat.com>
13389
13390 * target.h (struct target_ops)
13391 <to_supports_enable_disable_tracepoint>: Add argument.
13392 (target_supports_enable_disable_tracepoint): Add argument.
13393 * target.c (update_current_target): Update.
13394 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13395 argument.
13396
13397 2014-02-19 Tom Tromey <tromey@redhat.com>
13398
13399 * target.h (struct target_ops) <to_supports_multi_process>: Add
13400 argument.
13401 (target_supports_multi_process): Add argument.
13402 * target.c (update_current_target): Update.
13403 * remote.c (remote_supports_multi_process): Add 'self' argument.
13404 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13405 argument.
13406 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13407 argument.
13408
13409 2014-02-19 Tom Tromey <tromey@redhat.com>
13410
13411 * target.h (struct target_ops) <to_execution_direction>: Add
13412 argument.
13413 (target_execution_direction): Add argument.
13414 * target.c (default_execution_direction): Add 'self' argument.
13415 * record-full.c (record_full_execution_direction): Add 'self'
13416 argument.
13417
13418 2014-02-19 Tom Tromey <tromey@redhat.com>
13419
13420 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13421 argument.
13422 (target_can_execute_reverse): Add argument.
13423 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13424 * record-full.c (record_full_can_execute_reverse): Add 'self'
13425 argument.
13426 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13427 argument.
13428
13429 2014-02-19 Tom Tromey <tromey@redhat.com>
13430
13431 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13432 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13433 argument.
13434 (target_get_ada_task_ptid): Add argument.
13435 * target.c (update_current_target): Update.
13436 (default_get_ada_task_ptid): Add 'self' argument.
13437 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13438 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13439 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13440 argument.
13441 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13442 argument.
13443 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13444 argument.
13445 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13446 argument.
13447 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13448 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13449 argument.
13450
13451 2014-02-19 Tom Tromey <tromey@redhat.com>
13452
13453 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13454 (target_goto_bookmark): Add argument.
13455 * target.c (dummy_goto_bookmark): Add 'self' argument.
13456 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13457
13458 2014-02-19 Tom Tromey <tromey@redhat.com>
13459
13460 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13461 (target_get_bookmark): Add argument.
13462 * target.c (dummy_get_bookmark): Add 'self' argument.
13463 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13464
13465 2014-02-19 Tom Tromey <tromey@redhat.com>
13466
13467 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13468 argument.
13469 (target_make_corefile_notes): Add argument.
13470 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13471 * procfs.c (procfs_make_note_section): Add 'self' argument.
13472 (procfs_make_note_section): Add 'self' argument.
13473 (procfs_make_note_section): Add 'self' argument.
13474 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13475 argument.
13476 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13477 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13478 * exec.c (exec_make_note_section): Add 'self' argument.
13479 (exec_make_note_section): Add 'self' argument.
13480
13481 2014-02-19 Tom Tromey <tromey@redhat.com>
13482
13483 * target.h (struct target_ops) <to_find_memory_regions>: Add
13484 argument.
13485 (target_find_memory_regions): Add argument.
13486 * target.c (dummy_find_memory_regions): Add 'self' argument.
13487 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13488 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13489 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13490 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13491 * exec. (exec_do_find_memory_regions): New global.
13492 (exec_set_find_memory_regions): Rewrite.
13493 (exec_find_memory_regions): New function.
13494 (init_exec_ops): Use exec_find_memory_regions.
13495
13496 2014-02-19 Tom Tromey <tromey@redhat.com>
13497
13498 * target.h (struct target_ops) <to_supports_non_stop>: Add
13499 argument.
13500 * target.c (find_default_supports_non_stop): Add argument.
13501 (target_supports_non_stop): Add argument.
13502 (find_default_supports_non_stop): Add 'self' argument.
13503 * remote.c (remote_supports_non_stop): Add 'self' argument.
13504 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13505
13506 2014-02-19 Tom Tromey <tromey@redhat.com>
13507
13508 * target.h (struct target_ops) <to_log_command>: Add argument.
13509 (target_log_command): Add argument.
13510 * serial.h (serial_log_command): Add 'self' argument.
13511 * serial.c (serial_log_command): Add 'self' argument.
13512
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13516 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13517 argument.
13518 (target_pid_to_exec_file): Add argument.
13519 * target.c (debug_to_pid_to_exec_file): Add argument.
13520 (update_current_target): Update.
13521 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13522 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13523 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13524 (linux_handle_extended_wait): Update.
13525 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13526 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13527 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13528 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13529
13530 2014-02-19 Tom Tromey <tromey@redhat.com>
13531
13532 * target.h (struct target_ops) <to_rcmd>: Add argument.
13533 (target_rcmd): Add argument.
13534 * target.c (debug_to_rcmd): Add argument.
13535 (update_current_target, do_monitor_command): Update.
13536 * remote.c (remote_rcmd): Add 'self' argument.
13537 * monitor.c (monitor_rcmd): Add 'self' argument.
13538
13539 2014-02-19 Tom Tromey <tromey@redhat.com>
13540
13541 * windows-nat.c (windows_stop): Add 'self' argument.
13542 * target.h (struct target_ops) <to_stop>: Add argument.
13543 * target.c (target_stop): Add argument.
13544 (debug_to_stop): Add argument.
13545 (update_current_target): Update.
13546 * remote.c (remote_stop): Add 'self' argument.
13547 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13548 (gdbsim_cntrl_c): Update.
13549 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13550 * procfs.c (procfs_stop): Add 'self' argument.
13551 * nto-procfs.c (procfs_stop): Add 'self' argument.
13552 * monitor.c (monitor_stop): Add 'self' argument.
13553 (monitor_open): Update.
13554 * linux-nat.c (linux_nat_stop): Add argument.
13555 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13556 * gnu-nat.c (gnu_stop): Add 'self' argument.
13557 * darwin-nat.c (darwin_stop): Add 'self' argument.
13558
13559 2014-02-19 Tom Tromey <tromey@redhat.com>
13560
13561 * target.h (struct target_ops) <to_thread_name>: Add argument.
13562 * target.c (target_thread_name): Add argument.
13563 (update_current_target): Update.
13564 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13565
13566 2014-02-19 Tom Tromey <tromey@redhat.com>
13567
13568 * target.h (struct target_ops) <to_extra_thread_info>: Add
13569 argument.
13570 (target_extra_thread_info): Add argument.
13571 * target.c (update_current_target): Update.
13572 * remote.c (remote_threads_extra_info): Add 'self' argument.
13573 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13574 argument.
13575 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13576 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13577 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13578 argument.
13579 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13580 argument.
13581 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13582 argument.
13583 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13584 argument.
13585
13586 2014-02-19 Tom Tromey <tromey@redhat.com>
13587
13588 * target.h (struct target_ops) <to_program_signals>: Add argument.
13589 * target.c (target_program_signals): Add argument.
13590 * remote.c (remote_program_signals): Add 'self' argument.
13591
13592 2014-02-19 Tom Tromey <tromey@redhat.com>
13593
13594 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13595 * target.c (target_pass_signals): Add argument.
13596 * remote.c (remote_pass_signals): Add 'self' argument.
13597 (remote_start_remote): Update.
13598 * procfs.c (procfs_pass_signals): Add 'self' argument.
13599 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13600 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13601 (linux_nat_create_inferior, linux_nat_attach): Update.
13602
13603 2014-02-19 Tom Tromey <tromey@redhat.com>
13604
13605 * windows-nat.c (windows_can_run): Add 'self' argument.
13606 * target.h (struct target_ops) <to_can_run>: Add argument.
13607 (target_can_run): Add argument.
13608 * target.c (debug_to_can_run): Add argument.
13609 (update_current_target): Update.
13610 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13611 * inf-child.c (inf_child_can_run): Add 'self' argument.
13612 * go32-nat.c (go32_can_run): Add 'self' argument.
13613
13614 2014-02-19 Tom Tromey <tromey@redhat.com>
13615
13616 * target.h (struct target_ops) <to_has_exited>: Add argument.
13617 (target_has_exited): Add argument.
13618 * target.c (debug_to_has_exited): Add argument.
13619 (update_current_target): Update.
13620
13621 2014-02-19 Tom Tromey <tromey@redhat.com>
13622
13623 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13624 argument.
13625 (target_set_syscall_catchpoint): Add argument.
13626 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13627 argument.
13628 * target.c (update_current_target): Update.
13629
13630 2014-02-19 Tom Tromey <tromey@redhat.com>
13631
13632 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13633 argument.
13634 (target_remove_exec_catchpoint): Add argument.
13635 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13636 (update_current_target): Update.
13637 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13638 argument.
13639
13640 2014-02-19 Tom Tromey <tromey@redhat.com>
13641
13642 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13643 argument.
13644 (target_insert_exec_catchpoint): Add argument.
13645 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13646 (update_current_target): Update.
13647 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13648 argument.
13649
13650 2014-02-19 Tom Tromey <tromey@redhat.com>
13651
13652 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13653 argument.
13654 (target_remove_vfork_catchpoint): Add argument.
13655 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13656 (update_current_target): Update.
13657 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13658 argument.
13659
13660 2014-02-19 Tom Tromey <tromey@redhat.com>
13661
13662 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13663 argument.
13664 (target_insert_vfork_catchpoint): Add argument.
13665 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13666 (update_current_target): Update.
13667 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13668 argument.
13669
13670 2014-02-19 Tom Tromey <tromey@redhat.com>
13671
13672 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13673 argument.
13674 (target_remove_fork_catchpoint): Add argument.
13675 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13676 (update_current_target): Update.
13677 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13678 argument.
13679
13680 2014-02-19 Tom Tromey <tromey@redhat.com>
13681
13682 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13683 argument.
13684 (target_insert_fork_catchpoint): Add argument.
13685 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13686 (update_current_target): Update.
13687 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13688 argument.
13689
13690 2014-02-19 Tom Tromey <tromey@redhat.com>
13691
13692 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13693 argument.
13694 (target_post_startup_inferior): Add argument.
13695 * target.c (debug_to_post_startup_inferior): Add argument.
13696 (update_current_target): Update.
13697 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13698 argument.
13699 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13700 argument.
13701 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13702 argument.
13703 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13704 argument.
13705 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13706 'self' argument.
13707 (super_post_startup_inferior): Likewise.
13708 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13709 'self' argument.
13710 (super_post_startup_inferior): Likewise.
13711 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13712 Add 'self' argument.
13713 (super_post_startup_inferior): Likewise.
13714
13715 2014-02-19 Tom Tromey <tromey@redhat.com>
13716
13717 * target.h (struct target_ops) <to_load>: Add argument.
13718 * target.c (target_load): Add argument.
13719 (debug_to_load): Add argument.
13720 (update_current_target): Update.
13721 * remote.c (remote_load): Add 'self' argument.
13722 * remote-sim.c (gdbsim_load): Add 'self' argument.
13723 * remote-mips.c (mips_load): Add 'self' argument.
13724 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13725 * monitor.c (monitor_load): Add 'self' argument.
13726 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13727
13728 2014-02-19 Tom Tromey <tromey@redhat.com>
13729
13730 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13731 (target_terminal_info): Add argument.
13732 * target.c (debug_to_terminal_info): Add argument.
13733 (default_terminal_info): Likewise.
13734 * inflow.c (child_terminal_info): Add 'self' argument.
13735 * inferior.h (child_terminal_info): Add 'self' argument.
13736 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13737
13738 2014-02-19 Tom Tromey <tromey@redhat.com>
13739
13740 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13741 argument.
13742 (target_terminal_save_ours): Add argument.
13743 * target.c (debug_to_terminal_save_ours): Add argument.
13744 (update_current_target): Update.
13745 * inflow.c (terminal_save_ours): Add 'self' argument.
13746 * inferior.h (terminal_save_ours): Add 'self' argument.
13747
13748 2014-02-19 Tom Tromey <tromey@redhat.com>
13749
13750 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13751 (target_terminal_ours): Add argument.
13752 * target.c (debug_to_terminal_ours): Add argument.
13753 (update_current_target): Update.
13754 * remote.c (remote_terminal_ours): Add 'self' argument.
13755 (remote_close): Update.
13756 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13757 * inflow.c (terminal_ours): Add 'self' argument.
13758 * inferior.h (terminal_ours): Add 'self' argument.
13759 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13760
13761 2014-02-19 Pedro Alves <palves@redhat.com>
13762 Tom Tromey <tromey@redhat.com>
13763
13764 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13765 argument.
13766 (target_terminal_ours_for_output): Add argument.
13767 * target.c (debug_to_terminal_ours_for_output): Add argument.
13768 (update_current_target): Update.
13769 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13770 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13771 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13772
13773 2014-02-19 Tom Tromey <tromey@redhat.com>
13774
13775 * target.h (struct target_ops) <to_terminal_inferior>: Add
13776 argument.
13777 * target.c (target_terminal_inferior): Add argument.
13778 (update_current_target): Update.
13779 * remote.c (remote_terminal_inferior): Add 'self' argument.
13780 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13781 * inflow.c (terminal_inferior): Add 'self' argument.
13782 * inferior.h (terminal_inferior): Add 'self' argument.
13783 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13784 (go32_terminal_inferior): Add 'self' argument.
13785
13786 2014-02-19 Tom Tromey <tromey@redhat.com>
13787
13788 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13789 (target_terminal_init): Add argument.
13790 * target.c (debug_to_terminal_init): Add argument.
13791 (update_current_target): Update.
13792 * inflow.c (terminal_init_inferior): Add 'self' argument.
13793 * inferior.h (terminal_init_inferior): Add 'self' argument.
13794 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13795 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13796
13797 2014-02-19 Tom Tromey <tromey@redhat.com>
13798
13799 * target.h (struct target_ops)
13800 <to_can_accel_watchpoint_condition>: Add argument.
13801 (target_can_accel_watchpoint_condition): Add argument.
13802 * target.c (debug_to_can_accel_watchpoint_condition): Add
13803 argument.
13804 (update_current_target): Update.
13805 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13806 'self' argument.
13807
13808 2014-02-19 Tom Tromey <tromey@redhat.com>
13809
13810 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13811 Add argument.
13812 (target_region_ok_for_hw_watchpoint): Add argument.
13813 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13814 (default_region_ok_for_hw_watchpoint): Add argument.
13815 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13816 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13817 argument.
13818 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13819 argument.
13820 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13821 argument.
13822 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13823 'self' argument.
13824 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13825 'self' argument.
13826 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13827 'self' argument.
13828 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13829 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13830 'self' argument.
13831 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13832 Add 'self' argument.
13833
13834 2014-02-19 Tom Tromey <tromey@redhat.com>
13835
13836 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13837 argument.
13838 (target_insert_watchpoint): Add argument.
13839 * target.c (debug_to_insert_watchpoint): Add argument.
13840 (update_current_target): Update.
13841 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13842 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13843 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13844 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13845 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13846 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13847 argument.
13848 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13849 (procfs_insert_hw_watchpoint): Add 'self' argument.
13850 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13851 argument.
13852 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13853 argument.
13854 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13855 argument.
13856 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13857 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13858 argument.
13859 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13860 'self' argument.
13861
13862 2014-02-19 Tom Tromey <tromey@redhat.com>
13863
13864 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13865 argument.
13866 (target_remove_watchpoint): Add argument.
13867 * target.c (debug_to_remove_watchpoint): Add argument.
13868 (update_current_target): Update.
13869 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13870 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13871 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13872 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13873 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13874 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13875 argument.
13876 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13877 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13878 argument.
13879 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13880 argument.
13881 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13882 argument.
13883 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13884 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13885 argument.
13886 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13887 'self' argument.
13888
13889 2014-02-19 Tom Tromey <tromey@redhat.com>
13890
13891 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13892 argument.
13893 (target_remove_hw_breakpoint): Add argument.
13894 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13895 (update_current_target): Update.
13896 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13897 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13898 argument.
13899 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13900 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13901 argument.
13902 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13903 'self' argument.
13904
13905 2014-02-19 Tom Tromey <tromey@redhat.com>
13906
13907 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13908 argument.
13909 (target_insert_hw_breakpoint): Add argument.
13910 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13911 (update_current_target): Update.
13912 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13913 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13914 argument.
13915 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13916 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13917 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13918 argument.
13919 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13920 'self' argument.
13921
13922 2014-02-19 Tom Tromey <tromey@redhat.com>
13923
13924 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13925 argument.
13926 (target_can_use_hardware_watchpoint): Add argument.
13927 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13928 (update_current_target): Update.
13929 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13930 argument.
13931 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13932 argument.
13933 * remote.c (remote_check_watch_resources): Add 'self' argument.
13934 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13935 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13936 argument.
13937 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13938 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13939 argument.
13940 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13941 argument.
13942 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13943 argument.
13944 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13945 argument.
13946 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13947 argument.
13948 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13949 argument.
13950 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13951 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13952 argument.
13953 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13954 'self' argument.
13955
13956 2014-02-19 Tom Tromey <tromey@redhat.com>
13957
13958 * target.h (struct target_ops) <to_post_attach>: Add argument.
13959 (target_post_attach): Add argument.
13960 * target.c (debug_to_post_attach): Add argument.
13961 (update_current_target): Update.
13962 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13963 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13964 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13965 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13966 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13967
13968 2014-02-19 Tom Tromey <tromey@redhat.com>
13969
13970 * windows-nat.c (windows_close): Add 'self' argument.
13971 * tracepoint.c (tfile_close): Add 'self' argument.
13972 * target.h (struct target_ops) <to_close>: Add argument.
13973 * target.c (target_close): Add argument.
13974 (update_current_target): Update.
13975 * remote.c (remote_close): Add 'self' argument.
13976 * remote-sim.c (gdbsim_close): Add 'self' argument.
13977 * remote-mips.c (mips_close): Add 'self' argument.
13978 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13979 * record-full.c (record_full_close): Add 'self' argument.
13980 * record-btrace.c (record_btrace_close): Add 'self' argument.
13981 * monitor.h (monitor_close): Add 'self' argument.
13982 * monitor.c (monitor_close): Add 'self' argument.
13983 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13984 * linux-nat.c (linux_nat_close): Add argument.
13985 * go32-nat.c (go32_close): Add 'self' argument.
13986 * exec.c (exec_close_1): Add 'self' argument.
13987 * ctf.c (ctf_close): Add 'self' argument.
13988 * corelow.c (core_close): Add 'self' argument.
13989 (core_close_cleanup): Update.
13990 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13991 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13992
13993 2014-02-19 Tom Tromey <tromey@redhat.com>
13994
13995 * remote.c (remote_load): New function.
13996 (init_remote_ops): Use it.
13997
13998 2014-02-19 Tom Tromey <tromey@redhat.com>
13999
14000 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
14001 argument.
14002 * common/linux-btrace.h (linux_supports_btrace): Update.
14003 * remote.c (remote_supports_btrace): Add "self" argument.
14004 * target-delegates.c: Rebuild.
14005 * target.c (target_supports_btrace): Remove.
14006 * target.h (struct target_ops) <to_supports_btrace>: Add
14007 target_ops argument.
14008 (target_supports_btrace): New define.
14009
14010 2014-02-19 Tom Tromey <tromey@redhat.com>
14011
14012 * record-full.c (record_full_beneath_to_resume_ops)
14013 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14014 (record_full_beneath_to_wait)
14015 (record_full_beneath_to_store_registers_ops)
14016 (record_full_beneath_to_store_registers)
14017 (record_full_beneath_to_xfer_partial_ops)
14018 (record_full_beneath_to_xfer_partial)
14019 (record_full_beneath_to_insert_breakpoint_ops)
14020 (record_full_beneath_to_insert_breakpoint)
14021 (record_full_beneath_to_remove_breakpoint_ops)
14022 (record_full_beneath_to_remove_breakpoint)
14023 (record_full_beneath_to_stopped_by_watchpoint)
14024 (record_full_beneath_to_stopped_data_address)
14025 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14026 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14027 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14028 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14029 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14030 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14031 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14032 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14033 (record_full_resume, record_full_wait_1)
14034 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14035 (record_full_store_registers, record_full_xfer_partial)
14036 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14037 (record_full_async, record_full_core_xfer_partial): Use target
14038 delegation.
14039 * target-delegates.c: Rebuild.
14040 * target.c (current_xfer_partial): Remove.
14041 (update_current_target): Do not INHERIT or de_fault
14042 to_insert_breakpoint, to_remove_breakpoint,
14043 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14044 to_is_async_p, to_async. Do not set to_xfer_partial field.
14045 (default_xfer_partial): Simplify.
14046 (current_xfer_partial): Remove.
14047 (target_wait, target_resume): Simplify.
14048 (find_default_can_async_p, find_default_is_async_p): Update.
14049 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14050 to_xfer_partial, to_stopped_by_watchpoint,
14051 to_stopped_data_address.
14052 (target_store_registers): Simplify.
14053 (forward_target_remove_breakpoint)
14054 (forward_target_insert_breakpoint): Remove.
14055 (target_remove_breakpoint, target_insert_breakpoint)
14056 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14057 * target.h (struct target_ops) <to_resume, to_wait,
14058 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14059 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14060 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14061 markup.
14062 (forward_target_remove_breakpoint)
14063 (forward_target_insert_breakpoint): Remove.
14064 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14065 directly.
14066 (record_btrace_insert_breakpoint): Delegate directly.
14067
14068 2014-02-19 Tom Tromey <tromey@redhat.com>
14069
14070 PR build/7701:
14071 * target-delegates.c: New file.
14072 * target.c: Include target-delegates.c.
14073 (init_dummy_target): Call install_dummy_methods.
14074 (complete_target_initialization): Call install_delegators.
14075 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14076 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14077 * make-target-delegates: New file.
14078
14079 2014-02-19 Tom Tromey <tromey@redhat.com>
14080
14081 * record.c (find_record_target): Use find_target_at.
14082 * target.c (find_target_at): New function.
14083 * target.h (find_target_at): Declare.
14084
14085 2014-02-19 Tom Tromey <tromey@redhat.com>
14086
14087 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14088 Add 'ops' argument.
14089 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14090 'ops' argument.
14091 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14092 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14093 'ops' argument.
14094 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14095 argument.
14096 * linux-nat.c (save_sigtrap): Update.
14097 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14098 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14099 (linux_nat_close): Update.
14100 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14101 argument.
14102 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14103 argument.
14104 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14105 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14106 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14107 (tmp_to_async): Add 'ops' argument.
14108 (record_full_stopped_by_watchpoint, record_full_async)
14109 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14110 argument.
14111 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14112 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14113 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14114 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14115 (remote_is_async_p, remote_async): Add 'ops' argument.
14116 (remote_stopped_data_address): Update.
14117 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14118 * target.c (update_current_target)
14119 (find_default_can_async_p, find_default_is_async_p): Update.
14120 (init_dummy_target): Update.
14121 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14122 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14123 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14124 (target_can_async_p, target_is_async_p, target_async)
14125 (target_stopped_by_watchpoint): Update.
14126
14127 2014-02-19 Yao Qi <yao@codesourcery.com>
14128
14129 PR gdb/16220
14130 * gdbarch.sh: Remove startup_gdbarch.
14131 * gdbarch.c: Regenerated.
14132 * gdbarch.h: Likewise.
14133
14134 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14135
14136 * rl78-tdep.c (rl78_g10_register_name): New function.
14137 (rl78_return_value): Add g10 support.
14138 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14139 g10.
14140
14141 2014-02-17 Doug Evans <xdje42@gmail.com>
14142
14143 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14144 (SUBDIR_GUILE_SRCS): Ditto.
14145 (scm-gsmob.o): Ditto.
14146
14147 2014-02-17 Yao Qi <yao@codesourcery.com>
14148
14149 * gnu-nat.c (ILL_RPC): Declare defined function.
14150
14151 2014-02-17 Yao Qi <yao@codesourcery.com>
14152
14153 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14154 mach_msg_type_number_t.
14155 (gnu_write_inferior): Likewise.
14156
14157 2014-02-17 Yao Qi <yao@codesourcery.com>
14158
14159 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14160 in format string.
14161 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14162 (inf_validate_procs, inf_signal): Likewise.
14163 (S_exception_raise_request): Likewise.
14164 (do_mach_notify_dead_name): Likewise.
14165 (steal_exc_port): Likewise.
14166 (gnu_read_inferior): Change 'copy_count''s type to
14167 mach_msg_type_number_t.
14168 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14169 format string.
14170
14171 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14172
14173 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14174 flag. Adjust all users; in particular...
14175 (gnu_wait): ..., don't decrement its value in here...
14176 (gnu_create_inferior): ..., and instead set the flag in here,
14177 around the startup_inferior call, and call that one with
14178 START_INFERIOR_TRAPS_EXPECTED.
14179
14180 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14181 (ILL_RPC): ... new macro.
14182 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14183 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14184 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14185 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14186 functions with ILL_RPC macro.
14187 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14188 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14189 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14190 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14191 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14192 (S_proc_getlogin_reply, S_proc_getsid_reply)
14193 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14194 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14195 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14196 (S_proc_getnports_reply, S_proc_is_important_reply)
14197 (S_proc_get_code_reply): New stub functions, generated with
14198 ILL_RPC macro.
14199
14200 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14201 collected the type check structures.
14202
14203 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14204
14205 2014-02-14 Doug Evans <dje@google.com>
14206
14207 * target.c (target_write_partial): Fix result type.
14208
14209 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14210
14211 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14212 the proper offsets to access fpregset_t.
14213
14214 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14215
14216 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14217 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14218 * h8300-tdep.c (setmachinelist): Remove global.
14219 * hppa-tdep.c (hppa_sigtramp): Remove global.
14220 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14221 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14222 * ravenscar-thread.c (update_target_observer): Remove global.
14223 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14224
14225 2014-02-12 Tom Tromey <tromey@redhat.com>
14226
14227 * common/rsp-low.c: Update comments.
14228 * common/rsp-low.h: Update comments.
14229
14230 2014-02-12 Tom Tromey <tromey@redhat.com>
14231
14232 * common/rsp-low.c (convert_ascii_to_int): Remove.
14233 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14234
14235 2014-02-12 Tom Tromey <tromey@redhat.com>
14236
14237 * common/rsp-low.h (unhexify): Don't declare.
14238 * common/rsp-low.c (unhexify): Remove.
14239
14240 2014-02-12 Tom Tromey <tromey@redhat.com>
14241
14242 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14243 * common/rsp-low.c (convert_int_to_ascii): Remove.
14244
14245 2014-02-12 Tom Tromey <tromey@redhat.com>
14246
14247 * common/rsp-low.h (hexify): Don't declare.
14248 * common/rsp-low.c (hexify): Remove.
14249
14250 2014-02-12 Tom Tromey <tromey@redhat.com>
14251
14252 * common/rsp-low.c (hexify): Never take strlen of argument.
14253
14254 2014-02-12 Tom Tromey <tromey@redhat.com>
14255
14256 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14257 * remote.c (extended_remote_run, remote_rcmd)
14258 (remote_download_trace_state_variable, remote_save_trace_data)
14259 (remote_set_trace_notes): Update.
14260 * tracepoint.c (encode_source_string, tfile_write_status)
14261 (tfile_write_uploaded_tsv): Update.
14262
14263 2014-02-12 Tom Tromey <tromey@redhat.com>
14264
14265 * tracepoint.c: Include rsp-low.h.
14266 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14267 * remote.c: Include rsp-low.h.
14268 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14269 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14270 (remote_unescape_input): Move to common/rsp-low.c.
14271 * common/rsp-low.h: New file.
14272 * common/rsp-low.c: New file.
14273 * Makefile.in (SFILES): Add common/rsp-low.c.
14274 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14275 (COMMON_OBS): Add rsp-low.o.
14276 (rsp-low.o): New target.
14277
14278 2014-02-12 Tom Tromey <tromey@redhat.com>
14279
14280 * utils.h: Include print-utils.h.
14281 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14282 (int_string, core_addr_to_string, core_addr_to_string_nz)
14283 (hex_string, hex_string_custom): Don't declare.
14284 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14285 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14286 (hex_string_custom, int_string, core_addr_to_string)
14287 (core_addr_to_string_nz, host_address_to_string): Move to
14288 common/print-utils.c.
14289 * common/print-utils.h: New file.
14290 * common/print-utils.c: New file
14291 * Makefile.in (SFILES): Add common/print-utils.c.
14292 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14293 (COMMON_OBS): Add print-utils.o.
14294 (print-utils.o): New target.
14295
14296 2014-02-12 Tom Tromey <tromey@redhat.com>
14297
14298 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14299
14300 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14301
14302 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14303
14304 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14305
14306 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14307 if a PT_IO ptrace request returns sucessfully but indicates that 0
14308 bytes were transferred.
14309
14310 2014-02-12 Pedro Alves <palves@redhat.com>
14311 Kevin Buettner <kevinb@redhat.com>
14312
14313 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14314 TYPE_INSTANCE_FLAG_CODE_SPACE.
14315
14316 2014-02-12 Pedro Alves <palves@redhat.com>
14317
14318 * h8300-tdep.c (pseudo_from_raw_register)
14319 (raw_from_pseudo_register): New functions.
14320 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14321 them.
14322
14323 2014-02-12 Pedro Alves <palves@redhat.com>
14324
14325 * h8300-tdep.c (h8300_register_sim_regno): New function.
14326 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14327 gdbarch_register_sim_regno hook.
14328
14329 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14330
14331 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14332
14333 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14334
14335 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14336
14337 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14338
14339 * obsd-tdep.h (obsd_init_abi): New prototype.
14340 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14341 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14342 (obsd_init_abi): New functions.
14343 * i386obsd-tdep.c: Include "obsd-tdep.h".
14344 (i386obsd_init_abi): Call obsd_init_abi.
14345 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14346 (amd64obsd_init_abi): Call obsd_init_abi.
14347 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14348 obsd-tdep.c to gdb_target_obs.
14349
14350 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14351
14352 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14353 double float arguments to 16-byte in the argument slots.
14354
14355 2014-02-11 Doug Evans <xdje42@gmail.com>
14356
14357 * configure.ac: Don't crash if pkg-config is not found and guile
14358 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14359 in guile checks.
14360 * configure: Regenerate.
14361
14362 2014-02-11 Yao Qi <yao@codesourcery.com>
14363
14364 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14365 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14366 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14367 * gnu-nat.c (gnu_xfer_memory): Likewise.
14368 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14369 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14370 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14371 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14372
14373 2014-02-11 Yao Qi <yao@codesourcery.com>
14374
14375 * target.h (enum target_xfer_error): Rename to ...
14376 (enum target_xfer_status): ... it. New. All users updated.
14377 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14378 New.
14379 (TARGET_XFER_STATUS_ERROR_P): New macro.
14380 (target_xfer_error_to_string): Remove declaration.
14381 (target_xfer_status_to_string): Declare.
14382 (target_xfer_partial_ftype): Adjust it.
14383 (struct target_ops) <to_xfer_partial>: Return
14384 target_xfer_status. Add argument xfered_len. Update
14385 comments.
14386 * target.c (target_xfer_error_to_string): Rename to ...
14387 (target_xfer_status_to_string): ... it. New. All callers
14388 updated.
14389 (target_read_live_memory): Likewise. Call target_xfer_partial
14390 instead of target_read.
14391 (memory_xfer_live_readonly_partial): Return
14392 target_xfer_status. Add argument xfered_len.
14393 (raw_memory_xfer_partial): Likewise.
14394 (memory_xfer_partial_1): Likewise.
14395 (memory_xfer_partial): Likewise.
14396 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14397 properly. Update debug message.
14398 (default_xfer_partial, current_xfer_partial): Likewise.
14399 (target_write_partial): Likewise.
14400 (target_read_partial): Likewise. All callers updated.
14401 (read_whatever_is_readable): Likewise.
14402 (target_write_with_progress): Likewise.
14403 (target_read_alloc_1): Likewise.
14404
14405 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14406 * auxv.c (procfs_xfer_auxv): Likewise.
14407 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14408 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14409 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14410 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14411 * corefile.c (read_memory): Adjust.
14412 * corelow.c (core_xfer_partial): Likewise.
14413 * ctf.c (ctf_xfer_partial): Likewise.
14414 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14415 updated.
14416 (darwin_xfer_partial): Likewise.
14417 * exec.c (section_table_xfer_memory_partial): Likewise. All
14418 callers updated.
14419 (exec_xfer_partial): Likewise.
14420 * exec.h (section_table_xfer_memory_partial): Update
14421 declaration.
14422 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14423 negative.
14424 (gnu_xfer_partial): Likewise.
14425 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14426 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14427 (ia64_hpux_xfer_solib_got): Likewise.
14428 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14429 type of 'partial_len' to ULONGEST.
14430 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14431 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14432 (linux_nat_xfer_partial): Likewise.
14433 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14434 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14435 * monitor.c (monitor_xfer_memory): Likewise.
14436 (monitor_xfer_partial): Likewise.
14437 * procfs.c (procfs_xfer_partial): Likewise.
14438 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14439 * record-full.c (record_full_xfer_partial): Likewise.
14440 (record_full_core_xfer_partial): Likewise.
14441 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14442 (gdbsim_xfer_partial): Likewise.
14443 * remote.c (remote_write_bytes_aux): Likewise. All callers
14444 updated.
14445 (remote_write_bytes, remote_read_bytes): Likewise. All
14446 callers updated.
14447 (remote_flash_erase): Likewise. All callers updated.
14448 (remote_write_qxfer): Likewise. All callers updated.
14449 (remote_read_qxfer): Likewise. All callers updated.
14450 (remote_xfer_partial): Likewise.
14451 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14452 (rs6000_xfer_shared_libraries): Likewise.
14453 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14454 (sol_thread_xfer_partial): Likewise.
14455 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14456 (sparc_xfer_partial): Likewise.
14457 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14458 updated.
14459 (spu_xfer_partial): Likewise.
14460 * spu-multiarch.c (spu_xfer_partial): Likewise.
14461 * tracepoint.c (tfile_xfer_partial): Likewise.
14462 * windows-nat.c (windows_xfer_memory): Likewise.
14463 (windows_xfer_shared_libraries): Likewise.
14464 (windows_xfer_partial): Likewise.
14465 * valprint.c: Replace 'target_xfer_error' with
14466 'target_xfer_status' in comments.
14467
14468 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14469
14470 Checked in by Joel Brobecker <brobecker@adacore.com>.
14471 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14472
14473 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14474
14475 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14476 function parameters.
14477
14478 2014-02-10 Will Newton <will.newton@linaro.org>
14479
14480 * elfread.c (elf_rel_plt_read): Look for a .got section if
14481 looking up .got.plt fails.
14482 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14483 on address passed to elf_gnu_ifunc_record_cache.
14484 (elf_gnu_ifunc_resolve_addr): Likewise.
14485 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14486
14487 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14488
14489 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14490 (X_RETTURN): New macro.
14491 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14492
14493 * sparc64-tdep.c (sparc64_init_abi): Hook
14494 sparc_in_function_epilogue_p.
14495
14496 2014-02-10 Gary Benson <gbenson@redhat.com>
14497
14498 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14499 Rename name_matcher to symbol_matcher.
14500
14501 2014-02-10 Gary Benson <gbenson@redhat.com>
14502
14503 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14504 Use expand_symtabs_file_matcher_ftype and
14505 expand_symtabs_symbol_matcher_ftype.
14506
14507 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14508
14509 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14510 (struct ada_symbol_cache): New.
14511 (ada_free_symbol_cache): Forward declare.
14512 (struct ada_pspace_data): New.
14513 (ada_pspace_data_handle): New static global.
14514 (get_ada_pspace_data, ada_pspace_data_cleanup)
14515 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14516 (cache_space, cache): Delete, now folded inside struct
14517 ada_pspace_data.
14518 (ada_get_symbol_cache): New function.
14519 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14520 implementation.
14521 (_initialize_ada_language): Remove initialization of cache_space.
14522 Move call to observer_attach_inferior_exit up, grouping it
14523 with the other observer registrations inside this function.
14524 Rename command to be more general. Add call to
14525 register_program_space_data_with_cleanup.
14526
14527 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14528
14529 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14530 ada_new_objfile_observer.
14531 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14532 (_initialize_tasks): Update uses of ada_new_objfile_observer
14533 and ada_tasks_normal_stop_observer.
14534
14535 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14536
14537 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14538 returned by the 'Length attribute to integer.
14539
14540 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14541
14542 * ada-lang.c (_initialize_ada_language): Initialize
14543 cache_space obstack.
14544
14545 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14546
14547 * ada-lang.c (HASH_SIZE): New macro.
14548 (struct cache_entry): New type.
14549 (cache_space, cache): New static globals.
14550 (ada_clear_symbol_cache, find_entry): New functions.
14551 (lookup_cached_symbol, cache_symbol): Implement.
14552 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14553 (_initialize_ada_language): Attach ada_new_objfile_observer
14554 and ada_free_objfile_observer.
14555
14556 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14557
14558 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14559 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14560 struct block * parameter.
14561 (ada_lookup_symbol_list_worker): Constify local variable "block".
14562 Remove cast which is no longer necessary.
14563
14564 2014-02-10 Doug Evans <xdje42@gmail.com>
14565
14566 Add Guile as an extension language.
14567 * NEWS: Mention Guile scripting.
14568 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14569 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14570 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14571 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14572 (CLIBS): Add GUILE_LIBS.
14573 (install-guile): New rule.
14574 (guile.o): New rule.
14575 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14576 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14577 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14578 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14579 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14580 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14581 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14582 * configure.ac: New option --with-guile.
14583 * configure: Regenerate.
14584 * config.in: Regenerate.
14585 * auto-load.c: Remove #include "python/python.h". Add #include
14586 "gdb/section-scripts.h".
14587 (source_section_scripts): Handle Guile scripts.
14588 (_initialize_auto_load): Add name of Guile objfile script to
14589 scripts-directory help text.
14590 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14591 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14592 (struct breakpoint): New member scm_bp_object.
14593 * defs.h (enum command_control_type): New value guile_control.
14594 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14595 "extension.h".
14596 (show_user): Update comment.
14597 (_initialize_cli_cmds): Update help text for "show user". Update help
14598 text for max-user-call-depth.
14599 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14600 "extension.h".
14601 (multi_line_command_p): Add guile_control.
14602 (print_command_lines): Handle guile_control.
14603 (execute_control_command, recurse_read_control_structure): Ditto.
14604 (process_next_line): Recognize "guile" commands.
14605 * disasm.c (gdb_disassemble_info): Make non-static.
14606 * disasm.h: #include "dis-asm.h".
14607 (struct gdbarch): Add forward decl.
14608 (gdb_disassemble_info): Declare.
14609 * extension.c: #include "guile/guile.h".
14610 (extension_languages): Add guile.
14611 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14612 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14613 * gdbtypes.c (get_unsigned_type_max): New function.
14614 (get_signed_type_minmax): New function.
14615 * gdbtypes.h (get_unsigned_type_max): Declare.
14616 (get_signed_type_minmax): Declare.
14617 * guile/README: New file.
14618 * guile/guile-internal.h: New file.
14619 * guile/guile.c: New file.
14620 * guile/guile.h: New file.
14621 * guile/scm-arch.c: New file.
14622 * guile/scm-auto-load.c: New file.
14623 * guile/scm-block.c: New file.
14624 * guile/scm-breakpoint.c: New file.
14625 * guile/scm-disasm.c: New file.
14626 * guile/scm-exception.c: New file.
14627 * guile/scm-frame.c: New file.
14628 * guile/scm-gsmob.c: New file.
14629 * guile/scm-iterator.c: New file.
14630 * guile/scm-lazy-string.c: New file.
14631 * guile/scm-math.c: New file.
14632 * guile/scm-objfile.c: New file.
14633 * guile/scm-ports.c: New file.
14634 * guile/scm-pretty-print.c: New file.
14635 * guile/scm-safe-call.c: New file.
14636 * guile/scm-string.c: New file.
14637 * guile/scm-symbol.c: New file.
14638 * guile/scm-symtab.c: New file.
14639 * guile/scm-type.c: New file.
14640 * guile/scm-utils.c: New file.
14641 * guile/scm-value.c: New file.
14642 * guile/lib/gdb.scm: New file.
14643 * guile/lib/gdb/boot.scm: New file.
14644 * guile/lib/gdb/experimental.scm: New file.
14645 * guile/lib/gdb/init.scm: New file.
14646 * guile/lib/gdb/iterator.scm: New file.
14647 * guile/lib/gdb/printing.scm: New file.
14648 * guile/lib/gdb/types.scm: New file.
14649 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14650 (VPATH): Add $(GUILE_SRCDIR).
14651 (GUILE_DIR): New variable.
14652 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14653 (all): Add stamp-guile dependency.
14654 (stamp-guile): New rule.
14655 (clean-guile, install-guile, uninstall-guile): New rules.
14656 (install-only): Add install-guile dependency.
14657 (uninstall): Add uninstall-guile dependency.
14658 (clean): Add clean-guile dependency.
14659
14660 2014-02-09 Doug Evans <xdje42@gmail.com>
14661
14662 Revert this patch (which I approved, mea culpa).
14663
14664 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14665
14666 * Makefile.in (all-lib): Remove.
14667 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14668
14669 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14670
14671 Fix Python stack corruption.
14672 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14673 gdb_py_longest.
14674
14675 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14676
14677 * Makefile.in (all-lib): Remove.
14678 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14679
14680 2014-02-07 Doug Evans <dje@google.com>
14681
14682 * extension-priv.h (extension_language_script_ops): Add comment.
14683 (extension_language_ops): Add comment.
14684 (active_ext_lang_state): Fix typo in comment.
14685
14686 2014-02-07 Pedro Alves <palves@redhat.com>
14687
14688 PR breakpoints/16292
14689 * infrun.c (handle_signal_stop) <signal arrives while stepping
14690 over a breakpoint>: Switch back to the stepping thread.
14691
14692 2014-02-07 Yao Qi <yao@codesourcery.com>
14693
14694 * target.c (target_xfer_partial): Return zero if LEN is zero.
14695
14696 2014-02-07 Yao Qi <yao@codesourcery.com>
14697
14698 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14699 (ld_so_xfer_auxv): Likewise.
14700 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14701 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14702 * corelow.c (core_xfer_partial): Likewise.
14703 * ctf.c (ctf_xfer_partial): Likewise.
14704 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14705 (darwin_xfer_partial): Likewise.
14706 * exec.c (exec_xfer_partial): Likewise.
14707 * gnu-nat.c (gnu_xfer_partial): Likewise.
14708 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14709 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14710 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14711 * linux-nat.c (linux_xfer_siginfo): Likewise.
14712 (linux_proc_xfer_spu): Likewise.
14713 * procfs.c (procfs_xfer_partial): Likewise.
14714 * record-full.c (record_full_xfer_partial): Likewise.
14715 (record_full_core_xfer_partial): Likewise.
14716 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14717 * remote.c (remote_write_qxfer): Likewise.
14718 (remote_write_qxfer, remote_read_qxfer): Likewise.
14719 (remote_xfer_partial): Likewise.
14720 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14721 (rs6000_xfer_shared_libraries): Likewise.
14722 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14723 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14724 (spu_xfer_partial): Likewise.
14725 * target.c (memory_xfer_partial_1): Likewise.
14726 * tracepoint.c (tfile_xfer_partial): Likewise.
14727 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14728 (windows_xfer_partial): Likewise.
14729
14730 2014-02-07 Yao Qi <yao@codesourcery.com>
14731
14732 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14733 comments.
14734 (core_xfer_shared_libraries_aix): Likewise.
14735 * gdbarch.c, gdbarch.h: Regenerated.
14736 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14737 ULONGEST. Change 'len_avail' type to ULONGEST.
14738 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14739 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14740 declaration.
14741 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14742
14743 2014-02-07 Yao Qi <yao@codesourcery.com>
14744
14745 * corefile.c (memory_error): Get 'exception' from ERR and pass
14746 'exception' to throw_error.
14747
14748 2014-02-06 Doug Evans <xdje42@gmail.com>
14749
14750 * configure.ac (libpython checking): Remove all but python.o from
14751 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14752 * configure: Regenerate.
14753
14754 * Makefile.in (SFILES): Add extension.c.
14755 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14756 (COMMON_OBS): Add extension.o.
14757 * extension.h: New file.
14758 * extension-priv.h: New file.
14759 * extension.c: New file.
14760
14761 * python/python-internal.h: #include "extension.h".
14762 (gdbpy_auto_load_enabled): Declare.
14763 (gdbpy_apply_val_pretty_printer): Declare.
14764 (gdbpy_apply_frame_filter): Declare.
14765 (gdbpy_preserve_values): Declare.
14766 (gdbpy_breakpoint_cond_says_stop): Declare.
14767 (gdbpy_breakpoint_has_cond): Declare.
14768 (void source_python_script_for_objfile): Delete.
14769 * python/python.c: #include "extension-priv.h".
14770 Delete inclusion of "observer.h".
14771 (extension_language_python): Moved here and renamed from
14772 script_language_python in py-auto-load.c.
14773 Redefined to be of type extension_language_defn.
14774 (python_extension_script_ops): New global.
14775 (python_extension_ops): New global.
14776 (struct python_env): New member previous_active.
14777 (restore_python_env): Call restore_active_ext_lang.
14778 (ensure_python_env): Call set_active_ext_lang.
14779 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14780 New arg extlang.
14781 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14782 New arg extlang.
14783 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14784 New arg extlang.
14785 (gdbpy_eval_from_control_command): Renamed from
14786 eval_python_from_control_command, made static. New arg extlang.
14787 (gdbpy_source_script) Renamed from source_python_script, made static.
14788 New arg extlang.
14789 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14790 result to int. New arg extlang.
14791 (gdbpy_source_objfile_script): Renamed from
14792 source_python_script_for_objfile, made static. New arg extlang.
14793 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14794 static. New args extlang, extlang_printers. Change result type to
14795 "void".
14796 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14797 static. New arg extlang. Rename arg printers to extlang_printers
14798 and change type to ext_lang_type_printers *.
14799 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14800 static. Replace argument arg with extlang, extlang_printers.
14801 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14802 (!HAVE_PYTHON, source_python_script): Delete.
14803 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14804 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14805 (!HAVE_PYTHON, start_type_printers): Delete.
14806 (!HAVE_PYTHON, apply_type_printers): Delete.
14807 (!HAVE_PYTHON, free_type_printers): Delete.
14808 (_initialize_python): Delete call to observer_attach_before_prompt.
14809 (finalize_python): Set/restore active extension language.
14810 (gdbpy_finish_initialization) Renamed from
14811 finish_python_initialization, made static. New arg extlang.
14812 (gdbpy_initialized): New function.
14813 * python/python.h: #include "extension.h". Delete #include
14814 "value.h", "mi/mi-cmds.h".
14815 (extension_language_python): Declare.
14816 (GDBPY_AUTO_FILE_NAME): Delete.
14817 (enum py_bt_status): Moved to extension.h and renamed to
14818 ext_lang_bt_status.
14819 (enum frame_filter_flags): Moved to extension.h.
14820 (enum py_frame_args): Moved to extension.h and renamed to
14821 ext_lang_frame_args.
14822 (finish_python_initialization): Delete.
14823 (eval_python_from_control_command): Delete.
14824 (source_python_script): Delete.
14825 (apply_val_pretty_printer): Delete.
14826 (apply_frame_filter): Delete.
14827 (preserve_python_values): Delete.
14828 (gdbpy_script_language_defn): Delete.
14829 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14830 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14831
14832 * auto-load.c: #include "extension.h".
14833 (GDB_AUTO_FILE_NAME): Delete.
14834 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14835 (script_language_gdb): Delete, moved to extension.c and renamed to
14836 extension_language_gdb.
14837 (source_gdb_script_for_objfile): Delete.
14838 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14839 (loaded_script): Change type of language member to
14840 struct extension_language_defn *.
14841 (init_loaded_scripts_info): Initialize
14842 unsupported_script_warning_printed.
14843 (maybe_add_script): Make static. Change type of language arg to
14844 struct extension_language_defn *.
14845 (clear_section_scripts): Reset unsupported_script_warning_printed.
14846 (auto_load_objfile_script_1): Rewrite to use extension language API.
14847 (auto_load_objfile_script): Make public. Remove support-compiled-in
14848 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14849 (source_section_scripts): Rewrite to use extension language API.
14850 (load_auto_scripts_for_objfile): Rewrite to use
14851 auto_load_scripts_for_objfile.
14852 (collect_matching_scripts_data): Change type of language member to
14853 struct extension_language_defn *.
14854 (auto_load_info_scripts): Change type of language arg to
14855 struct extension_language_defn *.
14856 (unsupported_script_warning_print): New function.
14857 (script_not_found_warning_print): Make static.
14858 (_initialize_auto_load): Rewrite construction of scripts-directory
14859 help.
14860 * auto-load.h (struct objfile): Add forward decl.
14861 (struct script_language): Delete.
14862 (struct auto_load_pspace_info): Add forward decl.
14863 (struct extension_language_defn): Add forward decl.
14864 (maybe_add_script): Delete.
14865 (auto_load_objfile_script): Declare.
14866 (script_not_found_warning_print): Delete.
14867 (auto_load_info_scripts): Update prototype.
14868 (auto_load_gdb_scripts_enabled): Declare.
14869 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14870 auto_load_python_scripts_enabled and made public.
14871 (script_language_python): Delete, moved to python.c.
14872 (gdbpy_script_language_defn): Delete.
14873 (info_auto_load_python_scripts): Update to use
14874 extension_language_python.
14875
14876 * breakpoint.c (condition_command): Replace call to
14877 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14878 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14879 with call to breakpoint_ext_lang_cond_says_stop.
14880 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14881 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14882 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14883 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14884 New arg slang.
14885 (local_setattro): Print name of extension language with existing
14886 stop condition.
14887
14888 * valprint.c (val_print, value_print): Update to call
14889 apply_ext_lang_val_pretty_printer.
14890 * cp-valprint.c (cp_print_value): Update call to
14891 apply_ext_lang_val_pretty_printer.
14892 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14893 (gdbpy_apply_val_pretty_printer): Renamed from
14894 apply_val_pretty_printer. New arg extlang.
14895 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14896
14897 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14898 extension language API.
14899 * cli/cli-script.c (execute_control_command): Update to call
14900 eval_ext_lang_from_control_command.
14901
14902 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14903 enum ext_lang_bt_status values. Update call to
14904 apply_ext_lang_frame_filter.
14905 (mi_cmd_stack_list_locals): Ditto.
14906 (mi_cmd_stack_list_args): Ditto.
14907 (mi_cmd_stack_list_variables): Ditto.
14908 * mi/mi-main.c: Delete #include "python/python-internal.h".
14909 Add #include "extension.h".
14910 (mi_cmd_list_features): Replace reference to python internal variable
14911 gdb_python_initialized with call to ext_lang_initialized_p.
14912
14913 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14914 Update to use enum ext_lang_frame_args. Update to call
14915 apply_ext_lang_frame_filter.
14916 * python/py-framefilter.c (extract_sym): Update to use enum
14917 ext_lang_bt_status.
14918 (extract_value, py_print_type, py_print_value): Ditto.
14919 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14920 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14921 (py_print_frame): Ditto.
14922 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14923 New arg extlang. Update to use enum ext_lang_bt_status.
14924
14925 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14926 finish_python_initialization. Replace with call to
14927 finish_ext_lang_initialization.
14928
14929 * typeprint.c (do_free_global_table): Update to call
14930 free_ext_lang_type_printers.
14931 (create_global_typedef_table): Update to call
14932 start_ext_lang_type_printers.
14933 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14934 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14935 (type_print_options): Change type of global_printers from "void *"
14936 to "struct ext_lang_type_printers *".
14937
14938 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14939 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14940 (gdbpy_preserve_values): Renamed from preserve_python_values.
14941 New arg extlang.
14942 (!HAVE_PYTHON, preserve_python_values): Delete.
14943
14944 * utils.c (quit_flag): Delete, moved to extension.c.
14945 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14946 extension.c.
14947
14948 * eval.c: Delete #include "python/python.h".
14949 * main.c: Delete #include "python/python.h".
14950
14951 * defs.h: Update comment.
14952
14953 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14954
14955 GDB 7.7 released.
14956
14957 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14958
14959 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14960 defined.
14961
14962 2014-02-05 Yao Qi <yao@codesourcery.com>
14963
14964 * remote.c (remote_pass_signals): Remove local 'buf' and use
14965 rs->buf.
14966 (remote_program_signals): Likewise.
14967
14968 2014-02-05 Yao Qi <yao@codesourcery.com>
14969
14970 * ctf.c: Include "inferior.h" and "gdbthread.h".
14971 (CTF_PID): A new macro.
14972 (ctf_open): Call inferior_appeared and add_thread_silent.
14973 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14974 (ctf_thread_alive): New function.
14975 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14976
14977 2014-02-05 Yao Qi <yao@codesourcery.com>
14978
14979 Revert this patch:
14980
14981 2013-05-24 Yao Qi <yao@codesourcery.com>
14982
14983 * tracepoint.c (TFILE_PID): Remove.
14984 (tfile_open): Don't add thread and inferior.
14985 (tfile_close): Don't set 'inferior_ptid'. Don't call
14986 exit_inferior_silent.
14987 (tfile_thread_alive): Remove.
14988 (init_tfile_ops): Don't set field 'to_thread_alive' of
14989 tfile_ops.
14990
14991 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14992
14993 * remote.c (remote_start_remote): Call remote_check_symbols even
14994 if only symbol-file (not file) has been given.
14995
14996 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14997
14998 * gdbarch.sh (skip_entrypoint): New callback.
14999 * gdbarch.c, gdbarch.h: Regenerate.
15000 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
15001 * infrun.c (fill_in_stop_func): Likewise.
15002 * ppc-linux-tdep.c: Include "elf/ppc64.h".
15003 (ppc_elfv2_elf_make_msymbol_special): New function.
15004 (ppc_elfv2_skip_entrypoint): Likewise.
15005 (ppc_linux_init_abi): Install them for ELFv2.
15006
15007 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15008
15009 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15010 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15011 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15012 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15013 structures returned in GPRs.
15014
15015 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15016
15017 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15018 offset to the stack parameter list for the ELFv2 ABI.
15019
15020 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15021
15022 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15023 set_gdbarch_convert_from_func_ptr_addr and
15024 set_gdbarch_elf_make_msymbol_special for ELFv1.
15025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15026 function descriptors on ELFv1.
15027 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15028 set up r12 at function entry.
15029
15030 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15031
15032 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15033 (struct gdbarch_tdep): New member elf_abi.
15034
15035 * rs6000-tdep.c: Include "elf/ppc64.h".
15036 (rs6000_gdbarch_init): Detect ELF ABI version.
15037
15038 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15039
15040 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15041 within a register pair holding a DFP 128-bit value on little-endian.
15042 (ppc64_sysv_abi_return_value_base): Likewise.
15043 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15044 (dfp_pseudo_register_write): Likewise.
15045
15046 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15047
15048 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15049 offset on little-endian when passing _Decimal32.
15050 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15051
15052 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15053
15054 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15055 of the overlapped FP register within the VSX register on little-
15056 endian platforms.
15057 (efpr_pseudo_register_write): Likewise.
15058
15059 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15060
15061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15062 offset on little-endian when passing small structures.
15063
15064 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15065
15066 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15067 (struct ppc64_sysv_argpos): New data structure.
15068 (ppc64_sysv_abi_push_float): Remove.
15069 (ppc64_sysv_abi_push_val): New function.
15070 (ppc64_sysv_abi_push_integer): Likewise.
15071 (ppc64_sysv_abi_push_freg): Likewise.
15072 (ppc64_sysv_abi_push_vreg): Likewise.
15073 (ppc64_sysv_abi_push_param): Likewise.
15074 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15075 (ppc64_sysv_abi_return_value_base): New function.
15076 (ppc64_sysv_abi_return_value): Refactor to use it.
15077
15078 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
15079
15080 * NEWS: Document new target powerpc64le-*-linux*.
15081
15082 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15083
15084 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15085 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15086 core dumps.
15087 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15088 register set used in ELF core dumps. Add floating-point register set.
15089
15090 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15091
15092 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15093 dwarf2_to_gdb[] table using symbolic constants. Adjust
15094 penultimate entry from number representing the PC register
15095 to symbolic constant representing the MDR register. Add
15096 constant for the PC register to the end of the table.
15097
15098 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15099
15100 * bsd-kvm.c: Include <sys/param.h>
15101
15102 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15103
15104 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15105
15106 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15107
15108 * ada-lang.h (clear_ada_sym_cache): Delete.
15109
15110 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
15111
15112 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15113
15114 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15115
15116 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15117 the sigreturn register save area only if the syscall is
15118 sigreturn.
15119
15120 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15121
15122 * valops.c (value_slice): Minor reformatting.
15123
15124 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15125
15126 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15127
15128 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15129
15130 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15131 New static globals.
15132 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15133 (ada_ignore_descriptive_types_p): New static global.
15134 (find_parallel_type_by_descriptive_type): Return immediately
15135 if ada_ignore_descriptive_types_p is set.
15136 (_initialize_ada_language): Register new commands "maintenance
15137 set ada", "maintenance show ada", "maintenance set ada
15138 ignore-descriptive-types" and "maintenance show ada
15139 ignore-descriptive-types".
15140 * NEWS: Add entry for new "maint ada set/show
15141 ignore-descriptive-types" commands.
15142
15143 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15144
15145 * record-btrace.c (record_btrace_close): Call btrace_teardown
15146 for all threads.
15147
15148 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15149
15150 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15151 "ui-out.h".
15152
15153 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15154
15155 * ada-typeprint (type_is_full_subrange_of_target_type):
15156 New function.
15157 (print_range): Add parameter bounds_prefered_p. If not set,
15158 try printing range types using the name of their base type.
15159 (print_range_type): Add parameter bounds_prefered_p.
15160 Use it in call to print_range.
15161 (print_array_type, ada_print_type): Update calls to print_range
15162 and print_range_type.
15163
15164 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15165
15166 * ada-typeprint.c (print_array_type, print_choices, print_range)
15167 (print_range_bound, print_dynamic_range_bound, print_range_type):
15168 Remove declaration.
15169
15170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15171
15172 * ada-typeprint.c (print_range): Add missing empty line
15173 after local declaration.
15174
15175 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15176
15177 * ada-valprint.c (print_optional_low_bound): Get index_type's
15178 target type for as long as it is a TYPE_CODE_RANGE.
15179
15180 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15181
15182 * procfs.c (procfs_make_note_section): Remove assertion and
15183 associated comment.
15184
15185 2014-01-24 Yao Qi <yao@codesourcery.com>
15186
15187 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15188 * corelow.c (get_core_siginfo): Likewise.
15189
15190 2014-01-24 Yao Qi <yao@codesourcery.com>
15191
15192 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15193 ULONGEST. Don't check 'len' is negative.
15194 (remote_write_bytes): Change type of 'len' to ULONGEST.
15195
15196 2014-01-23 Tom Tromey <tromey@redhat.com>
15197
15198 PR python/16485:
15199 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15200 Handle exception from frame.block.
15201 (FrameVars.fetch_frame_locals): Likewise.
15202
15203 2014-01-23 Tom Tromey <tromey@redhat.com>
15204
15205 PR python/16487:
15206 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15207 on a NULL pointer. Move "goto error" to correct place.
15208
15209 2014-01-23 Tom Tromey <tromey@redhat.com>
15210
15211 PR python/16491:
15212 * python/py-framefilter.c (apply_frame_filter): Call
15213 ensure_python_env after computing gdbarch.
15214
15215 2014-01-23 Yao Qi <yao@codesourcery.com>
15216
15217 * target.c (raw_memory_xfer_partial): Change argument type
15218 from void * to gdb_byte *.
15219 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15220
15221 2014-01-22 Doug Evans <dje@google.com>
15222
15223 New gdbserver option --debug-format=timestamp.
15224 * NEWS: Mention it.
15225
15226 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15227
15228 * syscalls/s390x-linux.xml: New file.
15229 * syscalls/s390-linux.xml: New file.
15230 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15231 (XML_SYSCALL_FILENAME_S390X): Likewise.
15232 (op_svc): New enum value for SVC opcode.
15233 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15234 (s390_linux_get_syscall_number): New function.
15235 (s390_gdbarch_init): Register '*get_syscall_number' and the
15236 syscall xml file name.
15237 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15238 "s390-linux.xml" and "s390x-linux.xml".
15239 * NEWS: Announce new feature.
15240
15241 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15242
15243 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15244
15245 2014-01-22 Pedro Alves <palves@redhat.com>
15246
15247 * xtensa-config.c: Include defs.h.
15248
15249 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15250
15251 * common/common-utils.h: Add "ARI:" comment beside __func__
15252 reference.
15253
15254 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15255
15256 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15257 documentation a bit.
15258
15259 2014-01-21 Roland McGrath <mcgrathr@google.com>
15260
15261 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15262 * configure: Regenerate.
15263 * aclocal.m4: Regenerate.
15264 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15265 New substituted variables.
15266 (install-strip): New target.
15267 (INSTALL_SCRIPT): New substituted variable.
15268 (FLAGS_TO_PASS): Add it.
15269 (install-only): Use $(INSTALL_SCRIPT) rather than
15270 $(INSTALL_PROGRAM) for gcore.
15271
15272 2014-01-20 Tom Tromey <tromey@redhat.com>
15273
15274 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15275 together.
15276
15277 2014-01-20 Tom Tromey <tromey@redhat.com>
15278
15279 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15280 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15281 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15282 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15283 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15284 (struct cmd_list_element) <flags>: Remove.
15285 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15286 doc_allocated>: New fields.
15287 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15288 bitfields.
15289 * maint.c (maintenance_do_deprecate): Update.
15290 * top.c (execute_command): Update.
15291
15292 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15293
15294 * xtensa-linux-nat.c: Include asm/ptrace.h.
15295
15296 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15297
15298 * Makefile.in (SFILES): Add d-support.c.
15299 (COMMON_OBS): Add d-support.o.
15300 * d-lang.h (d_parse_symbol): Add comment, now defined in
15301 d-support.c.
15302 * d-lang.c (parse_call_convention)
15303 (parse_attributes, parse_function_types)
15304 (parse_function_args, parse_type, parse_identifier)
15305 (call_convention_p, d_parse_symbol): Move functions to ...
15306 * d-support.c: ... New file.
15307
15308 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15309
15310 * d-lang.h (d_parse_symbol): Add declaration.
15311 * d-lang.c (extract_identifiers)
15312 (extract_type_info): Remove functions.
15313 (parse_call_convention, parse_attributes)
15314 (parse_function_types, parse_function_args)
15315 (parse_type, parse_identifier, call_convention_p)
15316 (d_parse_symbol): New functions.
15317 (d_demangle): Use d_parse_symbol to demangle D symbols.
15318
15319 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15320
15321 * d-lang.h (struct builtin_d_type): New data type.
15322 (builtin_d_type): Add declaration.
15323 * d-lang.c (d_language_arch_info, build_d_types)
15324 (builtin_d_type): New functions.
15325 (enum d_primitive_types): New data type.
15326 (d_language_defn): Change c_language_arch_info to
15327 d_language_arch_info.
15328 (d_type_data): New static variable.
15329 (_initialize_d_language): Initialize d_type_data.
15330
15331 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15332
15333 * d-lang.h (d_main_name): Add declaration.
15334 * d-lang.c (d_main_name): New function.
15335 * symtab.c (find_main_name): Add call to d_main_name.
15336
15337 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15338
15339 * d-lang.c (d_language_defn): Change macro_expansion_c to
15340 macro_expansion_no.
15341
15342 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15343
15344 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15345
15346 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15347
15348 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15349 gdb_exception" declaration.
15350 * remote.c (getpkt_or_notif_sane): Likewise.
15351
15352 2014-01-17 Doug Evans <dje@google.com>
15353
15354 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15355 function, contents of dirnames_to_char_ptr_vec_append moved here.
15356 (delim_string_to_char_ptr_vec): New function.
15357 (dirnames_to_char_ptr_vec_append): Rewrite.
15358 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15359
15360 2014-01-17 Doug Evans <dje@google.com>
15361
15362 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15363 and moved here ...
15364 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15365 #include "common-utils.h".
15366 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15367 * common/vec.h (VEC_ASSERT_PASS): Update.
15368 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15369 (MACH_CHECK_ERROR): Update.
15370
15371 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15372
15373 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15374 comments.
15375 * gdbarch.h: Regenerate.
15376
15377 2014-01-16 Tom Tromey <tromey@redhat.com>
15378
15379 * value.c (struct value) <regnum>: Move earlier.
15380
15381 2014-01-16 Tom Tromey <tromey@redhat.com>
15382
15383 * remote.c (extended_remote_create_inferior): Rename from
15384 extended_remote_create_inferior_1. Add "ops" argument. Remove
15385 old implementation.
15386
15387 2014-01-16 Pedro Alves <palves@redhat.com>
15388
15389 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15390 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15391 the backchain.
15392
15393 2014-01-16 Doug Evans <dje@google.com>
15394
15395 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15396
15397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15398
15399 * btrace.h (btrace_thread_flag): New.
15400 (struct btrace_thread_info) <flags>: New.
15401 * record-btrace.c (record_btrace_resume_thread)
15402 (record_btrace_find_thread_to_move, btrace_step_no_history)
15403 (btrace_step_stopped, record_btrace_start_replaying)
15404 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15405 (record_btrace_find_resume_thread): New.
15406 (record_btrace_resume, record_btrace_wait): Extend.
15407 (record_btrace_can_execute_reverse): New.
15408 (record_btrace_open): Fail in non-stop mode.
15409 (record_btrace_set_replay): Split into this, ...
15410 (record_btrace_stop_replaying): ... this, ...
15411 (record_btrace_clear_histories): ... and this.
15412 (init_record_btrace_ops): Init to_can_execute_reverse.
15413 * NEWS: Announce it.
15414
15415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15416
15417 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15418 (forward_target_decr_pc_after_break)
15419 (target_decr_pc_after_break): New.
15420 * target.c (forward_target_decr_pc_after_break)
15421 (target_decr_pc_after_break): New.
15422 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15423 instead of gdbarch_decr_pc_after_break.
15424 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15425 instead of gdbarch_decr_pc_after_break.
15426 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15427 instead of gdbarch_decr_pc_after_break.
15428 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15429 instead of gdbarch_decr_pc_after_break.
15430 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15431 instead of gdbarch_decr_pc_after_break.
15432 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15433 instead of gdbarch_decr_pc_after_break.
15434
15435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15436
15437 * btrace.c: Include regcache.h.
15438 (btrace_add_pc): New.
15439 (btrace_enable): Call btrace_add_pc.
15440 (btrace_is_empty): New.
15441 * btrace.h (btrace_is_empty): New.
15442 * record-btrace.c (require_btrace, record_btrace_info): Call
15443 btrace_is_empty.
15444
15445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15446
15447 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15448 Support delta reads.
15449 (linux_disable_btrace): Change return type.
15450 * common/linux-btrace.h (linux_read_btrace): Change parameters
15451 and return type to allow error reporting. Update users.
15452 (linux_disable_btrace): Change return type. Update users.
15453 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15454 New.
15455 (btrace_error): New.
15456 (btrace_block) <begin>: Comment on BEGIN == 0.
15457 * btrace.c (btrace_compute_ftrace): Start from the end of
15458 the current trace.
15459 (btrace_stitch_trace, btrace_clear_history): New.
15460 (btrace_fetch): Read delta trace, return if replaying.
15461 (btrace_clear): Move clear history code to btrace_clear_history.
15462 (parse_xml_btrace): Throw an error if parsing failed.
15463 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15464 and return type to allow error reporting.
15465 (target_read_btrace): Change parameters and return type to allow
15466 error reporting.
15467 * target.c (target_read_btrace): Update.
15468 * remote.c (remote_read_btrace): Support delta reads. Pass
15469 errors on.
15470 * NEWS: Announce it.
15471
15472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15473
15474 * record.h (record_btrace_frame_unwind)
15475 (record_btrace_tailcall_frame_unwind): New declarations.
15476 * dwarf2-frame: Include record.h
15477 (dwarf2_frame_cfa): Throw an error for btrace frames.
15478 * record-btrace.c: Include hashtab.h.
15479 (btrace_get_bfun_name): New.
15480 (btrace_call_history): Call btrace_get_bfun_name.
15481 (struct btrace_frame_cache): New.
15482 (bfcache): New.
15483 (bfcache_hash, bfcache_eq, bfcache_new): New.
15484 (btrace_get_frame_function): New.
15485 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15486 (record_btrace_frame_this_id): Compute own id.
15487 (record_btrace_frame_prev_register): Provide PC, throw_error
15488 for all other registers.
15489 (record_btrace_frame_sniffer): Detect btrace frames.
15490 (record_btrace_tailcall_frame_sniffer): New.
15491 (record_btrace_frame_dealloc_cache): New.
15492 (record_btrace_frame_unwind): Add new functions.
15493 (record_btrace_tailcall_frame_unwind): New.
15494 (_initialize_record_btrace): Allocate cache.
15495 * btrace.c (btrace_clear): Call reinit_frame_cache.
15496 * NEWS: Announce it.
15497
15498 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15499
15500 * record-btrace.c (record_btrace_set_replay)
15501 (record_btrace_goto_begin, record_btrace_goto_end)
15502 (record_btrace_goto): New.
15503 (init_record_btrace_ops): Initialize them.
15504 * NEWS: Announce it.
15505
15506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15507
15508 * record-btrace.c (record_btrace_find_new_threads)
15509 (record_btrace_thread_alive): New.
15510 (init_record_btrace_ops): Initialize to_find_new_threads and
15511 to_thread_alive.
15512
15513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15514
15515 * record-btrace.c (record_btrace_resume): New.
15516 (record_btrace_wait): New.
15517 (init_record_btrace_ops): Initialize to_wait and to_resume.
15518
15519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15520
15521 * record-btrace.c (record_btrace_xfer_partial)
15522 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15523 (record_btrace_allow_memory_access): New.
15524 (init_record_btrace_ops): Initialize new methods.
15525 * target.c (raw_memory_xfer_partial): Bail out if target reports
15526 that this memory is not available.
15527
15528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15529
15530 * target.h (target_ops) <to_insert_breakpoint>
15531 <to_remove_breakpoint>: Add target_ops parameter.
15532 (forward_target_insert_breakpoint): New.
15533 (forward_target_remove_breakpoint): New.
15534 (memory_remove_breakpoint, memory_insert_breakpoint):
15535 Add target_ops parameter.
15536 * target.c (target_insert_breakpoint): Split into this and ...
15537 (forward_target_insert_breakpoint): ... this.
15538 (target_remove_breakpoint): Split into this and ...
15539 (forward_target_remove_breakpoint): ... this.
15540 (debug_to_insert_breakpoint): Add target_ops parameter.
15541 Call forward_target_insert_breakpoint.
15542 (debug_to_remove_breakpoint): Add target_ops parameter.
15543 Call forward_target_remove_breakpoint.
15544 (update_current_target): Do not inherit or default to_insert_breakpoint
15545 and to_remove_breakpoint.
15546 * corelow.c (ignore): Add target_ops parameter.
15547 * exec.c (ignore): Add target_ops parameter.
15548 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15549 Add target_ops parameter.
15550 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15551 Add target_ops parameter.
15552 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15553 Add target_ops parameter.
15554 * record-full.c (record_full_beneath_to_insert_breakpoint)
15555 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15556 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15557 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15558 (record_full_core_remove_breakpoint): Add target_ops parameter.
15559 Update users.
15560 (record_full_beneath_to_insert_breakpoint_ops)
15561 (record_full_beneath_to_remove_breakpoint_ops)
15562 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15563 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15564 tmp_to_remove_breakpoint_ops,
15565 record_full_beneath_to_insert_breakpoint_ops, and
15566 record_full_beneath_to_remove_breakpoint_ops.
15567 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15568 (m32r_remove_breakpoint): Add target_ops parameter.
15569 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15570 Add target_ops parameter.
15571 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15572 Add target_ops parameter.
15573
15574 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15575 Markus Metzger <markus.t.metzger@intel.com>
15576
15577 * record-btrace.c: Include frame-unwind.h.
15578 (record_btrace_frame_unwind_stop_reason)
15579 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15580 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15581 New.
15582 (init_record_btrace_ops): Install it.
15583
15584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15585
15586 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15587 get_prev_frame_1.
15588
15589 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15590
15591 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15592 earlier.
15593
15594 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15595
15596 * frame-unwind.c: Include target.h.
15597 (frame_unwind_try_unwinder): New function with code from ...
15598 (frame_unwind_find_by_frame): ... here. New variable
15599 unwinder_from_target, call also target_get_unwinder)
15600 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15601 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15602 * target.h (struct target_ops): New fields to_get_unwinder and
15603 to_get_tailcall_unwinder.
15604 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15605
15606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15607
15608 * record-btrace.c (record_btrace_fetch_registers)
15609 (record_btrace_store_registers)
15610 (record_btrace_to_prepare_to_store): New.
15611 (init_record_btrace_ops): Add the above.
15612
15613 2014-01-16 Tom Tromey <tromey@redhat.com>
15614
15615 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15616 * target.h (struct target_ops) <to_prepare_to_store>: Add
15617 argument.
15618 (target_prepare_to_store): Add argument.
15619 * target.c (debug_to_prepare_to_store): Add argument.
15620 (update_current_target): Update.
15621 * remote.c (remote_prepare_to_store): Add 'self' argument.
15622 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15623 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15624 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15625 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15626 argument.
15627 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15628 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15629 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15630 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15631 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15632
15633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15634
15635 * btrace.h (replay) <replay>: New.
15636 (btrace_is_replaying): New.
15637 * btrace.c (btrace_clear): Free replay iterator.
15638 (btrace_is_replaying): New.
15639 * record-btrace.c (record_btrace_is_replaying): New.
15640 (record_btrace_info): Print insn number if replaying.
15641 (record_btrace_insn_history): Start at replay position.
15642 (record_btrace_call_history): Start at replay position.
15643 (init_record_btrace_ops): Init to_record_is_replaying.
15644
15645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15646
15647 * record-btrace.c (record_btrace_insn_history_range): Include
15648 end.
15649 (record_btrace_insn_history_from): Adjust range.
15650 (record_btrace_call_history_range): Include
15651 end.
15652 (record_btrace_call_history_from): Adjust range.
15653 * NEWS: Announce changes.
15654
15655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15656
15657 * record.h (enum record_print_flag)
15658 <record_print_indent_calls>: New.
15659 * record.c (get_call_history_modifiers): Recognize /c modifier.
15660 (_initialize_record): Document /c modifier.
15661 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15662 Reorder fields. Optionally indent the function name. Update
15663 all users.
15664 * NEWS: Announce changes.
15665
15666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15667
15668 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15669
15670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15671
15672 * btrace.c (ftrace_new_function): Start counting at one.
15673 * record-btrace.c (record_btrace_info): Adjust number of calls
15674 and insns.
15675 * NEWS: Announce it.
15676
15677 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15678
15679 * record-btrace.c (btrace_call_history_insn_range): Print
15680 insn range as [begin, end].
15681
15682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15683
15684 * btrace.h (struct btrace_func_link): New.
15685 (enum btrace_function_flag): New.
15686 (struct btrace_inst): Rename to ...
15687 (struct btrace_insn): ...this. Update all users.
15688 (struct btrace_func) <ibegin, iend>: Remove.
15689 (struct btrace_func_link): New.
15690 (struct btrace_func): Rename to ...
15691 (struct btrace_function): ...this. Update all users.
15692 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15693 (number, level, flags>: New.
15694 (struct btrace_insn_iterator): Rename to ...
15695 (struct btrace_insn_history): ...this.
15696 Update all users.
15697 (struct btrace_insn_iterator, btrace_call_iterator): New.
15698 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15699 (struct btrace_target_info) <begin, end, level>
15700 <insn_history, call_history>: New.
15701 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15702 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15703 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15704 (btrace_call_number, btrace_call_begin, btrace_call_end)
15705 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15706 (btrace_find_function_by_number, btrace_set_insn_history)
15707 (btrace_set_call_history): New.
15708 * btrace.c (btrace_init_insn_iterator)
15709 (btrace_init_func_iterator, compute_itrace): Remove.
15710 (ftrace_print_function_name, ftrace_print_filename)
15711 (ftrace_skip_file): Change
15712 parameter to const.
15713 (ftrace_init_func): Remove.
15714 (ftrace_debug): Use new btrace_function fields.
15715 (ftrace_function_switched): Also consider gaining and
15716 losing symbol information).
15717 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15718 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15719 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15720 New.
15721 (ftrace_new_function): Move. Remove debug print.
15722 (ftrace_update_lines, ftrace_update_insns): New.
15723 (ftrace_update_function): Check for call, ret, and jump.
15724 (compute_ftrace): Renamed to ...
15725 (btrace_compute_ftrace): ...this. Rewritten to compute call
15726 stack.
15727 (btrace_fetch, btrace_clear): Updated.
15728 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15729 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15730 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15731 (btrace_call_number, btrace_call_begin, btrace_call_end)
15732 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15733 (btrace_find_function_by_number, btrace_set_insn_history)
15734 (btrace_set_call_history): New.
15735 * record-btrace.c (require_btrace): Use new btrace thread
15736 info fields.
15737 (record_btrace_info, btrace_insn_history)
15738 (record_btrace_insn_history, record_btrace_insn_history_range):
15739 Use new btrace thread info fields and new iterator.
15740 (btrace_func_history_src_line): Rename to ...
15741 (btrace_call_history_src_line): ...this. Use new btrace
15742 thread info fields.
15743 (btrace_func_history): Rename to ...
15744 (btrace_call_history): ...this. Use new btrace thread info
15745 fields and new iterator.
15746 (record_btrace_call_history, record_btrace_call_history_range):
15747 Use new btrace thread info fields and new iterator.
15748
15749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15750
15751 * frame.h (frame_id_build_unavailable_stack_special): New.
15752 * frame.c (frame_id_build_unavailable_stack_special): New.
15753
15754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15755
15756 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15757 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15758 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15759 to gdbarch.
15760 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15761 (i386_insn_is_jump, i386_jmp_p): New.
15762 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15763 insn_is_jump to gdbarch.
15764 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15765 * gdbarch.h: Regenerated.
15766 * gdbarch.c: Regenerated.
15767 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15768 (default_insn_is_jump): New.
15769 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15770 (default_insn_is_jump): New.
15771
15772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15773
15774 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15775 Change to ...
15776 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15777 (btrace_read_type) <btrace_read_new>: Change to ...
15778 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15779
15780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15781
15782 * common/linux-btrace.c (linux_read_btrace): Free trace from
15783 previous iteration.
15784
15785 2014-01-15 Doug Evans <dje@google.com>
15786
15787 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15788 uint32_t.
15789
15790 2014-01-15 Tom Tromey <tromey@redhat.com>
15791
15792 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15793 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15794 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15795 (set_objfile_main_name): New function.
15796 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15797 language_of_main>: New fields.
15798 (set_objfile_main_name): Declare.
15799 * symtab.c (find_main_name): Loop over objfiles to find the main
15800 name and language.
15801 (set_main_name): Now static.
15802 (get_main_info): Add comment.
15803 * symtab.h (set_main_name): Don't declare.
15804
15805 2014-01-15 Tom Tromey <tromey@redhat.com>
15806
15807 * symtab.c (main_progspace_key): New global.
15808 (struct main_info): New.
15809 (name_of_main, language_of_main): Remove.
15810 (get_main_info, main_info_cleanup): New function.
15811 (set_main_name, main_name, main_language): Use get_main_info.
15812 (_initialize_symtab): Initialize main_progspace_key.
15813
15814 2014-01-15 Tom Tromey <tromey@redhat.com>
15815
15816 * dbxread.c (process_one_symbol): Update.
15817 * dwarf2read.c (read_partial_die): Update.
15818 * symfile.c (set_initial_language): Call main_language.
15819 * symtab.c (language_of_main): Now static.
15820 (set_main_name): Add 'lang' parameter.
15821 (find_main_name): Update.
15822 (main_language): New function.
15823 (symtab_observer_executable_changed): Update.
15824 * symtab.h (set_main_name): Update.
15825 (language_of_main): Remove.
15826 (main_language): Declare.
15827
15828 2014-01-15 Tom Tromey <tromey@redhat.com>
15829
15830 * symfile.c (init_entry_point_info): Use new "initialized" field.
15831 Update.
15832 * objfiles.h (struct entry_point) <initialized>: New field.
15833 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15834 (struct objfile) <ei>: ...here. Remove.
15835 * objfiles.c (entry_point_address_query): Update.
15836
15837 2014-01-15 Tom Tromey <tromey@redhat.com>
15838
15839 * objfiles.c (entry_point_address_query): Relocate entry point
15840 address.
15841 (objfile_relocate1): Do not relocate entry point address.
15842 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15843 <the_bfd_section_index>: New field.
15844 * symfile.c (init_entry_point_info): Find the entry point's
15845 section.
15846
15847 2014-01-15 Tom Tromey <tromey@redhat.com>
15848
15849 * solib-frv.c (enable_break): Use entry_point_address_query.
15850
15851 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15852
15853 * NEWS: Add note on improved process record-replay on
15854 arm*-linux* targets.
15855
15856 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15857
15858 * arm-tdep.c (enum arm_record_result): New enum.
15859 (arm_record_unsupported_insn): New function.
15860 (arm_record_coproc_data_proc): Removed.
15861 (thumb2_record_ld_st_multiple): New function.
15862 (thumb2_record_ld_st_dual_ex_tbb): New function.
15863 (thumb2_record_data_proc_sreg_mimm): New function.
15864 (thumb2_record_ps_dest_generic): New function.
15865 (thumb2_record_branch_misc_cntrl): New function.
15866 (thumb2_record_str_single_data): New function.
15867 (thumb2_record_ld_mem_hints): New function.
15868 (thumb2_record_ld_word): New function.
15869 (thumb2_record_lmul_lmla_div): New function.
15870 (thumb2_record_decode_insn_handler): New function.
15871 (decode_insn): Add thumb32 instruction handlers.
15872
15873 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15874
15875 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15876 (struct arm_linux_record_tdep): Declare.
15877 (arm_canonicalize_syscall): New function.
15878 (arm_all_but_pc_registers_record): New function.
15879 (arm_linux_syscall_record): New function.
15880 (arm_linux_init_abi): Add syscall recording constructs.
15881 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15882 decoding. (arm_record_coproc_data_proc): Update arm syscall
15883 decoding.
15884 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15885 <arm_syscall_record>: New field.
15886 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15887 gdb_target_obs.
15888
15889 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15890
15891 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15892 register for push instruction recording.
15893
15894 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15895
15896 * arm-tdep.c (thumb_record_misc): Update to correct logical
15897 error while recording ldm, ldmia and pop instructions.
15898
15899 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15900
15901 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15902
15903 2014-01-15 Pedro Alves <palves@redhat.com>
15904
15905 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15906 (go32_resume, go32_fetch_registers, store_register)
15907 (go32_store_registers, go32_prepare_to_store)
15908 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15909 (go32_create_inferior, go32_can_run, go32_terminal_init)
15910 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15911 declarations.
15912
15913 2014-01-15 Tom Tromey <tromey@redhat.com>
15914
15915 * target.h (async_callback_ftype): New typedef.
15916 (struct target_ops) <to_async>: Use it.
15917
15918 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15919
15920 * python/py-value.c (get_field_type): Remove unnecessary curly
15921 braces for single-statement if block.
15922
15923 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15924
15925 * python/py-type.c (convert_field): Add missing empty line
15926 after declarations.
15927
15928 2014-01-14 Doug Evans <dje@google.com>
15929
15930 * symfile.h (expand_symtabs_matching): Renamed from
15931 expand_partial_symbol_names. Update prototype.
15932 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15933 * symfile.c (expand_symtabs_matching): Renamed from
15934 expand_partial_symbol_names. New args file_matcher, kind.
15935 Rename arg fun to symbol_matcher.
15936 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15937 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15938 ada_expand_partial_symbol_name.
15939 (ada_make_symbol_completion_list): Update to call
15940 expand_symtabs_matching.
15941 (ada_add_global_exceptions): Call expand_symtabs_matching.
15942 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15943 call map_symbol_filenames.
15944 * symtab.c (sources_info): Update to call map_symbol_filenames.
15945 (search_symbols): Call expand_symtabs_matching.
15946 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15947 (default_make_symbol_completion_list_break_on): Update to call
15948 expand_symtabs_matching.
15949 (make_source_files_completion_list): Update to call
15950 map_symbol_filenames.
15951
15952 2014-01-14 Doug Evans <dje@google.com>
15953
15954 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15955 (expand_symtabs_symbol_matcher_ftype): New typedef.
15956 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15957 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15958 * symfile.c (expand_partial_symbol_names): Update to use
15959 expand_symtabs_symbol_matcher_ftype.
15960 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15961 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15962 Arg name_matcher renamed to symbol_matcher.
15963 * psymtab.c (recursively_search_psymtabs): Update to use
15964 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15965 sym_matcher.
15966 (expand_symtabs_matching_via_partial): Update to use
15967 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15968 Arg name_matcher renamed to symbol_matcher.
15969
15970 2014-01-14 Doug Evans <dje@google.com>
15971
15972 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15973 (map_partial_symbol_filenames): Ditto.
15974 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15975 (map_partial_symbol_filenames): Ditto.
15976 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15977 (map_partial_symbol_filenames): Ditto.
15978 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15979 (map_partial_symbol_filenames): Ditto.
15980 * symtab.c: Delete #include "psymtab.h".
15981
15982 2014-01-14 Pedro Alves <palves@redhat.com>
15983 Tom Tromey <tromey@redhat.com>
15984
15985 * infrun.c (use_displaced_stepping): Use find_record_target
15986 instead of RECORD_IS_USED.
15987 (adjust_pc_after_break): Use record_full_is_used instead of
15988 RECORD_IS_USED.
15989 * record-btrace.c (record_btrace_open): Call record_preopen
15990 instead of checking RECORD_IS_USED.
15991 * record-full.c (record_full_shortname)
15992 (record_full_core_shortname): New globals.
15993 (record_full_is_used): New function.
15994 (find_full_open): Call record_preopen instead of checking
15995 RECORD_IS_USED.
15996 (init_record_full_ops): Set the target's shortname to
15997 record_full_shortname.
15998 (init_record_full_core_ops): Set the target's shortname to
15999 record_full_core_shortname.
16000 * record-full.h (record_full_is_used): Declare.
16001 * record.c (find_record_target): Make extern.
16002 (record_preopen): New function.
16003 * record.h (RECORD_IS_USED): Delete macro.
16004 (find_record_target, record_preopen): Declare functions.
16005
16006 2014-01-14 Yao Qi <yao@codesourcery.com>
16007
16008 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16009 'len''s type to ULONGEST.
16010 (core_xfer_shared_libraries_aix): Likewise.
16011 * gdbarch.c, gdbarch.h: Regenerated.
16012 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16013 Change type of 'len' to ULONGEST.
16014 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16015 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16016
16017 2014-01-14 Yao Qi <yao@codesourcery.com>
16018
16019 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16020 type of 'len' to ULONGEST.
16021 (linux_xfer_osdata_processgroups): Likewise.
16022 (linux_xfer_osdata_threads): Likewise.
16023 (linux_xfer_osdata_fds): Likewise.
16024 (linux_xfer_osdata_isockets): Likewise.
16025 (linux_xfer_osdata_shm): Likewise.
16026 (linux_xfer_osdata_sem): Likewise.
16027 (linux_xfer_osdata_msg): Likewise.
16028 (linux_common_xfer_osdata): Likewise.
16029 (struct osdata_type) <getter>: Likewise.
16030 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16031 the declaration.
16032
16033 2014-01-14 Yao Qi <yao@codesourcery.com>
16034
16035 * target.h (target_xfer_partial_ftype): Update.
16036 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16037 ULONGEST.
16038 * aix-thread.c (aix_thread_xfer_partial): Change type of
16039 argument 'len' to ULONGEST.
16040 * auxv.c (procfs_xfer_auxv): Likewise.
16041 (ld_so_xfer_auxv): Likewise.
16042 (memory_xfer_auxv): Likewise.
16043 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16044 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16045 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16046 * corelow.c (core_xfer_partial): Likewise.
16047 * ctf.c (ctf_xfer_partial): Likewise.
16048 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16049 '%u'.
16050 (darwin_read_dyld_info): Likewise.
16051 (darwin_xfer_partial): Likewise.
16052 * exec.c (section_table_xfer_memory_partial): Likewise.
16053 (exec_xfer_partial): Likewise.
16054 * exec.h (section_table_xfer_memory_partial): Update
16055 declaration.
16056 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16057 instead of plongest.
16058 (gnu_xfer_partial): Likewise.
16059 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16060 (ia64_hpux_xfer_solib_got): Likewise.
16061 (ia64_hpux_xfer_partial): Likewise.
16062 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16063 * inf-ptrace.c (inf_ptrace_xfer_partial):
16064 * inf-ttrace.c (inf_ttrace_xfer_partial):
16065 * linux-nat.c (linux_xfer_siginfo): Likewise.
16066 (linux_nat_xfer_partial): Likewise.
16067 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16068 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16069 * monitor.c (monitor_xfer_memory): Likewise.
16070 (monitor_xfer_partial): Likewise.
16071 * procfs.c (procfs_xfer_partial): Likewise.
16072 * record-full.c (record_full_xfer_partial): Likewise.
16073 (record_full_core_xfer_partial): Likewise.
16074 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16075 instead of plongest.
16076 (gdbsim_xfer_partial): Likewise.
16077 * remote.c (remote_xfer_partial): Likewise.
16078 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16079 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16080 declaration.
16081 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16082 (rs6000_xfer_shared_libraries): Likewise.
16083 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16084 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16085 (sparc_xfer_partial): Likewise.
16086 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16087 (spu_xfer_partial): Likewise.
16088 * spu-multiarch.c (spu_xfer_partial): Likewise.
16089 * target.c (target_read_live_memory): Likewise.
16090 (memory_xfer_live_readonly_partial): Likewise.
16091 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16092 (target_xfer_partial, default_xfer_partial): Likewise.
16093 (current_xfer_partial): Likewise.
16094 * tracepoint.c (tfile_xfer_partial): Likewise.
16095 * windows-nat.c (windows_xfer_memory): Likewise. Call
16096 pulongest instead of plongest.
16097 (windows_xfer_partial): Likewise.
16098 (windows_xfer_shared_libraries): Likewise.
16099
16100 2014-01-14 Yao Qi <yao@codesourcery.com>
16101
16102 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16103 target_xfer_partial_ftype.
16104
16105 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16106
16107 PR python/15464
16108 PR python/16113
16109 * valops.c (value_struct_elt_bitpos): New function
16110 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16111 object to 'None' if the field name is an empty string ("").
16112 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16113 attribute to look for a field when 'name' is 'None'.
16114 (get_field_type): New function
16115
16116 2014-01-13 Doug Evans <dje@google.com>
16117
16118 PR symtab/16426
16119 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16120 (try_open_dwop_file): Ditto.
16121 * gdb_bfd.c: #include "vec.h".
16122 (bfdp): New typedef.
16123 (struct gdb_bfd_data): New member included_bfds.
16124 (gdb_bfd_unref): Unref all included bfds.
16125 (gdb_bfd_record_inclusion): New function.
16126 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16127
16128 2014-01-13 Tom Tromey <tromey@redhat.com>
16129
16130 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16131
16132 2014-01-13 Tom Tromey <tromey@redhat.com>
16133
16134 * defs.h (use_windows): Remove.
16135 * gdb.c (main): Update.
16136 * main.c (captured_main, gdb_main): Update.
16137 * main.h (struct captured_main_args) <use_windows>: Remove.
16138 * top.c (use_windows): Remove.
16139
16140 2014-01-13 Tom Tromey <tromey@redhat.com>
16141
16142 * defs.h (deprecated_flush_hook): Remove.
16143
16144 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16145
16146 PR threads/16216
16147 * linux-thread-db.c (try_thread_db_load): Add parameter
16148 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16149 (try_thread_db_load_from_pdir_1): Move it there from here.
16150 (try_thread_db_load_from_sdir): Update caller.
16151 (try_thread_db_load_from_dir): Move it there from here.
16152
16153 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16154
16155 * regformats/regdat.sh: Always rewrite the register file.
16156
16157 2014-01-13 Pedro Alves <palves@redhat.com>
16158
16159 * Makefile.in (CHECK_HEADERS): New variable.
16160 (check-headers:): New rule.
16161
16162 2014-01-13 Tom Tromey <tromey@redhat.com>
16163
16164 * cli/cli-setshow.c (do_set_command): Update.
16165 * defs.h (deprecated_set_hook): Remove.
16166 * top.c (deprecated_set_hook): Remove.
16167
16168 2014-01-13 Pedro Alves <palves@redhat.com>
16169
16170 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16171 the tracepoint if the PC is a pseudo-register.
16172
16173 2014-01-13 Tom Tromey <tromey@redhat.com>
16174
16175 * defs.h (XCALLOC): Remove.
16176 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16177 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16178 * dwarf2loc.c (allocate_piece_closure): Likewise.
16179 * elfread.c (elf_symfile_segments): Likewise.
16180 (elf_symfile_segments): Likewise.
16181 * gdbtypes.c (copy_type_recursive): Likewise.
16182 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16183 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16184 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16185 XCALLOC.
16186 * mt-tdep.c (mt_gdbarch_init): Likewise.
16187 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16188 XCALLOC.
16189 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16190 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16191 * registry.c (registry_alloc_data): Likewise.
16192 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16193 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16194 * serial.c (serial_fdopen_ops): Likewise.
16195 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16196 XCALLOC.
16197 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16198 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16199 not XCALLOC.
16200
16201 2014-01-13 Tom Tromey <tromey@redhat.com>
16202
16203 * defs.h (XMALLOC): Remove.
16204 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16205 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16206 * cli-out.c (struct ui_out *): Likewise.
16207 * cli/cli-dump.c (add_dump_command): Likewise.
16208 (add_dump_command): Likewise.
16209 * complaints.c (get_complaints): Likewise.
16210 (find_complaint): Likewise.
16211 * dwarf2-frame.c (execute_cfa_program): Likewise.
16212 * dwarf2read.c (abbrev_table_read_table): Likewise.
16213 * gdbarch.sh: Likewise.
16214 * gdbarch.c: Rebuild.
16215 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16216 * interps.c (interp_new): Likewise.
16217 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16218 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16219 * mi/mi-console.c (mi_console_file_new): Likewise.
16220 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16221 * mi/mi-out.c (mi_out_new): Likewise.
16222 * mi/mi-parse.c (mi_parse): Likewise.
16223 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16224 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16225 * observer.c (xalloc_observer_list_node): Likewise.
16226 * regcache.c (regcache_xmalloc_1): Likewise.
16227 * reggroups.c (reggroup_new): Likewise.
16228 (_initialize_reggroup): Likewise.
16229 * registry.c (register_data_with_cleanup): Likewise.
16230 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16231 * ser-base.c (serial_ttystate): Likewise.
16232 * ser-mingw.c (make_pipe_state): Likewise.
16233 * ser-pipe.c (pipe_open): Likewise.
16234 * serial.c (serial_open): Likewise.
16235 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16236 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16237 (tui_alloc_win_info): Likewise.
16238 (tui_add_content_elements): Likewise.
16239 * tui/tui-file.c (tui_file_new): Likewise.
16240 * tui/tui-out.c (tui_out_new): Likewise.
16241 * ui-file.c (mem_file_new): Likewise.
16242 * ui-out.c (push_level): Likewise.
16243 (make_cleanup_ui_out_end): Likewise.
16244 (append_header_to_list): Likewise.
16245 (ui_out_new): Likewise.
16246 * user-regs.c (user_reg_add_builtin): Likewise.
16247
16248 2014-01-13 Tom Tromey <tromey@redhat.com>
16249
16250 * defs.h (XZALLOC): Remove.
16251 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16252 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16253 (get_ada_tasks_inferior_data): Likewise.
16254 * auto-load.c (get_auto_load_pspace_data): Likewise.
16255 * auxv.c (get_auxv_inferior_data): Likewise.
16256 * bfd-target.c (target_bfd_reopen): Likewise.
16257 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16258 (deprecated_insert_raw_breakpoint): Likewise.
16259 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16260 * corelow.c (core_open): Likewise.
16261 * darwin-nat.c (darwin_check_new_threads): Likewise.
16262 (darwin_attach_pid): Likewise.
16263 * dummy-frame.c (dummy_frame_push): Likewise.
16264 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16265 * dwarf2loc.c (allocate_piece_closure): Likewise.
16266 * elfread.c (elf_symfile_segments): Likewise.
16267 * eval.c (ptrmath_type_p): Likewise.
16268 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16269 * gdbtypes.c (alloc_type_arch): Likewise.
16270 (alloc_type_instance): Likewise.
16271 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16272 * inf-child.c (inf_child_can_use_agent): Likewise.
16273 * inflow.c (get_inflow_inferior_data): Likewise.
16274 * infrun.c (save_infcall_suspend_state): Likewise.
16275 * jit.c (jit_reader_load): Likewise.
16276 (get_jit_objfile_data): Likewise.
16277 (get_jit_program_space_data): Likewise.
16278 (jit_object_open_impl): Likewise.
16279 (jit_symtab_open_impl): Likewise.
16280 (jit_block_open_impl): Likewise.
16281 (jit_frame_sniffer): Likewise.
16282 * linux-fork.c (add_fork): Likewise.
16283 * maint.c (make_command_stats_cleanup): Likewise.
16284 * objfiles.c (get_objfile_pspace_data): Likewise.
16285 * opencl-lang.c (struct lval_closure): Likewise.
16286 * osdata.c (osdata_start_osdata): Likewise.
16287 * progspace.c (new_address_space): Likewise.
16288 (add_program_space): Likewise.
16289 * remote-sim.c (get_sim_inferior_data): Likewise.
16290 * sh-tdep.c (sh_gdbarch_init): Likewise.
16291 * skip.c (Ignore): Likewise.
16292 (skip_delete_command): Likewise.
16293 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16294 (library_list_start_library): Likewise.
16295 (solib_aix_current_sos): Likewise.
16296 * solib-darwin.c (get_darwin_info): Likewise.
16297 (darwin_current_sos): Likewise.
16298 * solib-dsbt.c (get_dsbt_info): Likewise.
16299 * solib-ia64-hpux.c (new_so_list): Likewise.
16300 (ia64_hpux_get_solib_linkage_addr): Likewise.
16301 * solib-spu.c (append_ocl_sos): Likewise.
16302 (spu_current_sos): Likewise.
16303 * solib-svr4.c (get_svr4_info): Likewise.
16304 (svr4_keep_data_in_core): Likewise.
16305 (library_list_start_library): Likewise.
16306 (svr4_default_sos): Likewise.
16307 (svr4_read_so_list): Likewise.
16308 * solib-target.c (library_list_start_library): Likewise.
16309 (solib_target_current_sos): Likewise.
16310 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16311 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16312 * symfile.c (default_symfile_segments): Likewise.
16313 * target-descriptions.c (tdesc_data_init): Likewise.
16314 (tdesc_create_reg): Likewise.
16315 (struct tdesc_type *): Likewise.
16316 (tdesc_create_vector): Likewise.
16317 (tdesc_set_struct_size): Likewise.
16318 (struct tdesc_type *): Likewise.
16319 (tdesc_free_feature): Likewise.
16320 (tdesc_create_feature): Likewise.
16321 * windows-nat.c (windows_add_thread): Likewise.
16322 (windows_make_so): Likewise.
16323 * xml-support.c (gdb_xml_body_text): Likewise.
16324 (gdb_xml_create_parser_and_cleanup): Likewise.
16325 (xml_process_xincludes): Likewise.
16326 * xml-syscall.c (allocate_syscalls_info): Likewise.
16327 (syscall_create_syscall_desc): Likewise.
16328
16329 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16330
16331 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16332 function, with code from i386_stap_parse_special_token.
16333 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16334 (i386_stap_parse_special_token): Move code to the two functions
16335 above; simplify it.
16336
16337 2014-01-09 Pedro Alves <palves@redhat.com>
16338 Hui Zhu <hui@codesourcery.com>
16339
16340 PR gdb/16101
16341 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16342 bp_err_string. Don't mark the location shlib_disabled if the
16343 error thrown wasn't a generic or memory error. Catch errors
16344 thrown while inserting breakpoints in overlayed code. Output
16345 error message of software breakpoints.
16346 * remote.c (remote_insert_breakpoint): If this breakpoint has
16347 target-side commands but this stub doesn't support Z0 packets,
16348 throw NOT_SUPPORTED_ERROR error.
16349 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16350 * target.h (target_insert_breakpoint): Extend comment.
16351 (target_insert_hw_breakpoint): Add comment.
16352
16353 2014-01-08 Pedro Alves <palves@redhat.com>
16354
16355 * remote.c (remote_add_thread): Add threads silently if starting
16356 up.
16357 (remote_notice_new_inferior): If in all-stop, and starting up,
16358 don't call notice_new_inferior.
16359 (get_current_thread): New function, factored out from ...
16360 (add_current_inferior_and_thread): ... this. Adjust.
16361 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16362 found any thread, then select the remote's current thread as GDB's
16363 current thread too.
16364
16365 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16366
16367 * NEWS: Create a new section for the next release branch.
16368 Rename the section of the current branch, now that it has
16369 been cut.
16370
16371 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16372
16373 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16374 * version.in: Bump version to 7.7.50.DATE-cvs.
16375
16376 2014-01-08 Yao Qi <yao@codesourcery.com>
16377
16378 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16379 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16380 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16381
16382 2014-01-08 Yao Qi <yao@codesourcery.com>
16383
16384 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16385 return value of bfd_get_filename to symbol_file_add_from_bfd.
16386
16387 2014-01-08 Pierre Muller <muller@sourceware.org>
16388
16389 Fix PR16201.
16390 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16391 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16392 to prim_record_mininal_symbol_and_info.
16393 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16394 in call to prim_record_minimal_symbol_and_info.
16395 (read_pe_exported_syms): Set index field of section_data.
16396
16397 2014-01-07 Andrew Pinski <apinski@cavium.com>
16398
16399 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16400 * features/aarch64.c: Regenerate.
16401
16402 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16403
16404 * target.c (return_null): Define.
16405 (update_current_target): Use it instead of return_zero for
16406 functions that return a pointer.
16407
16408 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16409
16410 * source.c (add_path): Fix check for duplicated paths in the previously
16411 included paths.
16412
16413 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16414
16415 * ada-lang.c: Remove duplicated include statements.
16416 * alphabsd-nat.c: Ditto.
16417 * amd64-darwin-tdep.c: Ditto.
16418 * amd64fbsd-nat.c: Ditto.
16419 * auto-load.c: Ditto.
16420 * ax-gdb.c: Ditto.
16421 * breakpoint.c: Ditto.
16422 * dbxread.c: Ditto.
16423 * fork-child.c: Ditto.
16424 * gdb_usleep.c: Ditto.
16425 * i386-darwin-tdep.c: Ditto.
16426 * i386fbsd-nat.c: Ditto.
16427 * infcmd.c: Ditto.
16428 * inferior.c: Ditto.
16429 * jv-lang.c: Ditto.
16430 * linux-nat.c: Ditto.
16431 * linux-tdep.c: Ditto.
16432 * m68kbsd-nat.c: Ditto.
16433 * m68klinux-nat.c: Ditto.
16434 * microblaze-tdep.c: Ditto.
16435 * mips-linux-tdep.c: Ditto.
16436 * mn10300-tdep.c: Ditto.
16437 * nto-tdep.c: Ditto.
16438 * opencl-lang.c: Ditto.
16439 * osdata.c: Ditto.
16440 * printcmd.c: Ditto.
16441 * regcache.c: Ditto.
16442 * remote-m32r-sdi.c: Ditto.
16443 * remote.c: Ditto.
16444 * symfile.c: Ditto.
16445 * symtab.c: Ditto.
16446 * tilegx-linux-nat.c: Ditto.
16447 * tilegx-tdep.c: Ditto.
16448 * tracepoint.c: Ditto.
16449 * valops.c: Ditto.
16450 * vaxbsd-nat.c: Ditto.
16451 * windows-nat.c: Ditto.
16452 * xtensa-tdep.c: Ditto.
16453
16454 2014-01-07 Yao Qi <yao@codesourcery.com>
16455
16456 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16457
16458 2014-01-07 Yao Qi <yao@codesourcery.com>
16459 Joel Brobecker <brobecker@adacore.com>
16460
16461 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16462 (pdc_write_regs): Likewise.
16463 (fetch_regs_kernel_thread): Likewise.
16464 (store_regs_kernel_thread): Likewise.
16465
16466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16467
16468 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16469 tagged type objects to their actual type.
16470
16471 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16472
16473 * ada-valprint.c (print_field_values): Add "language" parameter.
16474 Update calls to print_field_values and print_variant_part.
16475 Pass new parameter "language" in call to val_print instead
16476 of "current_language". Replace call to ada_val_print by call
16477 to val_print.
16478 (print_variant_part): Add "language" parameter.
16479 (ada_val_print_struct_union): Update call to print_field_values.
16480
16481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16482
16483 * ada-valprint.c (ui_memcpy): Delete.
16484 (ada_print_floating): Update documentation. Add empty line
16485 between between function documentation and implementation.
16486 Delete variable "buffer". Use ui_file_xstrdup in place of
16487 ui_file_put. Minor adjustments following this change.
16488
16489 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16490
16491 * ada-valprint.c (ada_val_print_string): New function,
16492 extracted from ada_val_print_array.
16493 (ada_val_print_array): Replace extracted code by call
16494 to ada_val_print_string followed by a return. Move
16495 "else" branch to the function's top block.
16496
16497 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16498
16499 * ada-valprint.c (ada_val_print_array): Move implementation
16500 down. Rename parameter "offset" and "val" into "offset_aligned"
16501 and "original_value" respectively. Add parameter "offset".
16502
16503 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16504
16505 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16506 re-organizing the code. Change the "???" message printed
16507 when target type is a TYPE_CODE_UNDEF into
16508 "<ref to undefined type>".
16509
16510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16511
16512 * ada-valprint.c (print_record): Delete, implementation inlined...
16513 (ada_val_print_struct_union): ... here. Remove call to
16514 ada_check_typedef in inlined implementation.
16515
16516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16517
16518 * ada-valprint.c (ada_val_print_gnat_array): New function,
16519 extracted from ada_val_print_1;
16520 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16521 (ada_val_print_flt, ada_val_print_struct_union)
16522 (ada_val_print_ref): Likewise.
16523 (ada_val_print_1): Delete variables i and elttype.
16524 Replace extracted-out code by call to corresponding
16525 new functions.
16526
16527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16528
16529 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16530
16531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16532
16533 * ada-valprint.c (ada_val_print_1): Replace calls to
16534 ada_val_print_1 by calls to val_print.
16535
16536 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16537
16538 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16539 Update calls to self accordingly. Replace calls to c_val_print
16540 by calls to val_print.
16541
16542 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16543
16544 * ada-valprint.c (print_record): Delete declaration.
16545 (adjust_type_signedness, ada_val_print_1): Likewise.
16546 (ada_val_print): Move function implementation down.
16547 (print_variant_part, print_field_values, print_record):
16548 Move function implementation up.
16549
16550 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16551
16552 * python/py-type.c (typy_get_name): New function.
16553 (type_object_getset): Add entry for attribute "name".
16554 * NEWS: Add entry mentioning this new attribute.
16555
16556 2014-01-07 Yao Qi <yao@codesourcery.com>
16557
16558 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16559 statement.
16560
16561 2014-01-07 Yao Qi <yao@codesourcery.com>
16562
16563 * gnu-nat.c (info_port_rights): Add qualifier const to
16564 argument args.
16565
16566 2014-01-07 Yao Qi <yao@codesourcery.com>
16567
16568 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16569
16570 2014-01-07 Yao Qi <yao@codesourcery.com>
16571
16572 * gnu-nat.c (make_inf) Update declaration.
16573 (make_inf): Make it static.
16574 (inf_set_traced): Likewise.
16575 (inf_port_to_thread, inf_task_died_status): Likewise.
16576
16577 2014-01-07 Yao Qi <yao@codesourcery.com>
16578
16579 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16580
16581 2014-01-07 Yao Qi <yao@codesourcery.com>
16582
16583 * gnu-nat.c (_initialize_gnu_nat): Declare.
16584
16585 2014-01-07 Yao Qi <yao@codesourcery.com>
16586
16587 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16588 'enum bfd_endian'.
16589 (struct gdbarch_info) <byte_order>: Change type to
16590 'enum bfd_endian'.
16591 <byte_order_for_code>: Likewise.
16592 * gdbarch.c, gdbarch.h: Regenerated.
16593
16594 2014-01-06 Sasha Smundak <asmundak@google.com>
16595
16596 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16597
16598 2014-01-06 Tom Tromey <tromey@redhat.com>
16599
16600 * doublest.c (convert_doublest_to_floatformat): Use const, not
16601 CONST.
16602 * somread.c (som_symtab_read): Likewise.
16603
16604 2014-01-07 Hui Zhu <hui@codesourcery.com>
16605
16606 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16607 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16608 (gdb_bfd_fopen): Ditto.
16609 (gdb_bfd_openr): Ditto.
16610 (gdb_bfd_openw): Ditto.
16611 (gdb_bfd_openr_iovec): Ditto.
16612 (gdb_bfd_fdopenr): Ditto.
16613 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16614 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16615 with xstrdup.
16616 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16617 with xstrdup.
16618 * symfile-mem.c (symbol_file_add_from_memory): Removed
16619 gdb_bfd_stash_filename.
16620
16621 2014-01-03 Doug Evans <dje@google.com>
16622
16623 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16624 output.
16625
16626 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16627
16628 Update year range in copyright notice of all files.
16629
16630 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16631
16632 * top.c (print_gdb_version): Set copyright year to 2014.
16633
16634 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16635
16636 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16637
16638 For older changes see ChangeLog-2013.
16639 \f
16640 Local Variables:
16641 mode: change-log
16642 left-margin: 8
16643 fill-column: 74
16644 version-control: never
16645 coding: utf-8
16646 End:
This page took 0.366007 seconds and 5 git commands to generate.